From 9165ae6a58e967a2c874c5416972d3a151d4f920 Mon Sep 17 00:00:00 2001 From: Shahana Farooqui <23240721+ShahanaFarooqui@users.noreply.github.com> Date: Wed, 10 Aug 2022 23:42:04 -0700 Subject: [PATCH] Removed list forwards from dashboard and pagination Removed list forwards from dashboard and pagination --- backend/controllers/cln/channels.js | 7 +- frontend/564.0428ec771d033752.js | 1 - frontend/564.5eb6603768afa44f.js | 1 + frontend/index.html | 2 +- frontend/main.a45f905361ad3a22.js | 1 + frontend/main.bb5386d8aa345a5a.js | 1 - ...8c6feb4.js => runtime.aaa2a40c5f2b2f06.js} | 2 +- server/controllers/cln/channels.ts | 5 +- .../cln/home/fee-info/fee-info.component.html | 4 +- src/app/cln/home/home.component.ts | 40 +++++----- .../routing/routing-report.component.ts | 75 +++++++++---------- .../failed-transactions.component.ts | 50 ++++--------- .../forwarding-history.component.ts | 58 ++++++-------- .../local-failed-transactions.component.ts | 56 +++++--------- src/app/cln/store/cln.actions.ts | 2 +- src/app/cln/store/cln.effects.ts | 65 +++++----------- .../services/loop/swaps/swaps.component.html | 2 +- src/app/shared/models/apiCallsPayload.ts | 2 +- src/app/shared/models/clnModels.ts | 4 - src/environments/environment.prod.ts | 2 +- src/environments/environment.ts | 2 +- 21 files changed, 148 insertions(+), 234 deletions(-) delete mode 100644 frontend/564.0428ec771d033752.js create mode 100644 frontend/564.5eb6603768afa44f.js create mode 100644 frontend/main.a45f905361ad3a22.js delete mode 100644 frontend/main.bb5386d8aa345a5a.js rename frontend/{runtime.053e1c7068c6feb4.js => runtime.aaa2a40c5f2b2f06.js} (52%) diff --git a/backend/controllers/cln/channels.js b/backend/controllers/cln/channels.js index 89eb8b42..999353ba 100644 --- a/backend/controllers/cln/channels.js +++ b/backend/controllers/cln/channels.js @@ -110,10 +110,7 @@ export const listForwards = (req, res, next) => { } options.url = req.session.selectedNode.ln_server_url + '/v1/channel/listForwards?status=' + (req.query.status ? req.query.status : 'settled'); request.get(options).then((body) => { - if (body && body.length > 0) { - body = common.sortDescByKey(body, 'received_time'); - } - logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Channels', msg: 'Forwarding History Received For Status' + req.query.status, data: body }); + logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Forwarding History Received For Status ' + req.query.status, data: body }); res.status(200).json(body); }).catch((errRes) => { const err = common.handleError(errRes, 'Channels', 'Forwarding History Error', req.session.selectedNode); @@ -154,7 +151,7 @@ export const listForwardsPaginated = (req, res, next) => { options.url = req.session.selectedNode.ln_server_url + '/v1/channel/listForwardsPaginated' + queryStr; logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Paginated Forwarding History url' + options.url }); request.get(options).then((body) => { - logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Channels', msg: 'Paginated Forwarding History Received For Status ' + req.query.status, data: body }); + logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Paginated Forwarding History Received For Status ' + req.query.status, data: body }); res.status(200).json(body); }).catch((errRes) => { const err = common.handleError(errRes, 'Channels', 'Paginated Forwarding History Error', req.session.selectedNode); diff --git a/frontend/564.0428ec771d033752.js b/frontend/564.0428ec771d033752.js deleted file mode 100644 index 92f36da0..00000000 --- a/frontend/564.0428ec771d033752.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[564],{9564:(oi,xr,Nt)=>{"use strict";Nt.r(xr),Nt.d(xr,{CLNModule:()=>rf});var Et=Nt(9808),_t=Nt(1402),Pn=Nt(8878),A=Nt(5e3),Ct=Nt(7093),Y=Nt(5899);function I(r,y){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(s=>{switch(!0){case s instanceof _t.OD:this.loading=!0;break;case s instanceof _t.m2:case s instanceof _t.gk:case s instanceof _t.Q3:this.loading=!1}})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.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,s){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",s.loading))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,Y.pW,_t.lC],styles:[""],data:{animation:[Pn.g]}}),r})();var c=Nt(7579),i=Nt(2722),o=Nt(1365),l=Nt(534),h=Nt(801),a=Nt(7731),g=Nt(9828),E=Nt(5043),u=Nt(5620),C=Nt(6642),e=Nt(62),f=Nt(9444),B=Nt(3954),w=Nt(9224),Q=Nt(7423),p=Nt(2181),S=Nt(5245),m=Nt(3322);const d=function(r){return{backgroundColor:r}};function v(r,y){if(1&r&&A._UZ(0,"span",6),2&r){const t=A.oxw();A.Q6J("ngStyle",A.VKq(1,d,"#"+(null==t.information?null:t.information.color)))}}function D(r,y){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,d,"#"+(null==t.information?null:t.information.color))),A.xp6(1),A.hij(" ",A.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function U(r,y){if(1&r&&(A.TgZ(0,"span",2),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}let T=(()=>{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(e.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,s){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,v,1,3,"span",3),A.qZA()(),A.YNc(7,D,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,U,2,1,"span",5),A.qZA()()),2&t&&(A.xp6(5),A.hij(" ",null==s.information?null:s.information.alias," "),A.xp6(1),A.Q6J("ngIf",!s.showColorFieldSeparately),A.xp6(1),A.Q6J("ngIf",s.showColorFieldSeparately),A.xp6(5),A.Oqu(null!=s.information&&s.information.lnImplementation||null!=s.information&&s.information.version?(null==s.information?null:s.information.lnImplementation)+" "+(null==s.information?null:s.information.version):""),A.xp6(4),A.Q6J("ngForOf",s.chains))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,Et.PC,m.Zl,Et.sg],pipes:[Et.gd],styles:[""]}),r})();function F(r,y){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 z(r,y){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 b=(()=>{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,s){if(1&t&&(A.YNc(0,F,21,11,"div",0),A.YNc(1,z,3,1,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh,Y.pW],pipes:[Et.JJ],styles:[""]}),r})();var Z=Nt(7322),aA=Nt(7238),AA=Nt(4834),lA=Nt(8129);const MA=function(){return["../connections/channels/open"]},cA=function(r){return{filter:r}};function gA(r,y){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=y.$implicit,s=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,MA))("state",A.VKq(24,cA,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",s.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 BA(r,y){if(1&r&&(A.TgZ(0,"div",17),A.YNc(1,gA,20,26,"div",18),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}function DA(r,y){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,BA,2,1,"div",16),A.qZA()()),2&r){const t=A.oxw(),s=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",s)}}function FA(r,y){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 _(r,y){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 dA=(()=>{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(_t.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,s){if(1&t&&(A.YNc(0,DA,24,15,"div",0),A.YNc(1,FA,4,0,"ng-template",null,1,A.W1O),A.YNc(3,_,3,1,"ng-template",null,2,A.W1O)),2&t){const L=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.Wh,Ct.yH,Z.bx,f.BN,aA.gM,Y.pW,AA.d,lA.$V,Et.sg,_t.yS,Q.lW],pipes:[Et.JJ,Et.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),r})();function uA(r,y){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",3)(9,"div")(10,"h4",4),A._uU(11,"Transactions"),A.qZA(),A.TgZ(12,"div",5),A._uU(13),A.ALo(14,"number"),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(7),A.Oqu(A.lcZ(14,4,null==t.fees?null:t.fees.totalTxCount))}}function CA(r,y){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 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","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(t,s){if(1&t&&(A.YNc(0,uA,15,6,"div",0),A.YNc(1,CA,3,1,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh],pipes:[Et.JJ],styles:[""]}),r})();function bA(r,y){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,y){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 q=(()=>{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,s){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 L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh],pipes:[Et.JJ],styles:[""]}),r})();function O(r,y){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,y){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,y){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_them/1e3||0)/s.totalLiquidity*100:0)}}function hA(r,y){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_us/1e3||0)/s.totalLiquidity*100:0)}}const mA=function(){return["../connections/channels/open"]},nA=function(r){return{filter:r}};function EA(r,y){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=y.$implicit,s=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,mA))("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"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction),A.xp6(1),A.Q6J("ngIf","In"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction)}}function GA(r,y){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,y,t){return{"mb-4":r,"mb-2":y,"mb-1":t}};function ot(r,y){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(),s=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",s)}}function TA(r,y){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 it(r,y){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 mt(r,y){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 It=(()=>{class r{constructor(t,s){this.router=t,this.commonService=s,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(_t.F0),A.Y36(e.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 center",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,s){if(1&t&&(A.YNc(0,ot,12,11,"div",0),A.YNc(1,it,3,1,"ng-template",null,1,A.W1O),A.YNc(3,mt,3,1,"ng-template",null,2,A.W1O)),2&t){const L=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.Wh,Ct.yH,Et.mk,m.oO,Z.bx,Y.pW,AA.d,lA.$V,Et.sg,_t.yS,aA.gM,Q.lW],pipes:[Et.JJ,Et.OU],styles:[""]}),r})();var ft=Nt(3251),JA=Nt(9300),WA=Nt(6087),rt=Nt(4847),yA=Nt(2075),Mt=Nt(8966),ht=Nt(429),OA=Nt(3075),Yt=Nt(7531),H=Nt(3390),k=Nt(6534),R=Nt(4107),QA=Nt(508),wA=Nt(2368);function RA(r,y){if(1&r&&(A.TgZ(0,"mat-option",27),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(A.lcZ(2,2,t))}}function rA(r,y){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 ct(r,y){if(1&r&&(A.TgZ(0,"div",28),A._UZ(1,"fa-icon",29),A.YNc(2,rA,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 Ft=(()=>{class r{constructor(t,s,L,vA,gt,ae){this.dialogRef=t,this.data=s,this.store=L,this.decimalPipe=vA,this.commonService=gt,this.actions=ae,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.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 s=this.expiry?this.expiry:3600;this.selTimeUnit!==a.Qk.SECS&&(s=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:s,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.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},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(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(Et.JJ),A.Y36(e.v),A.Y36(C.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,s){if(1&t){const L=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(gt){return s.description=gt}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(gt){return s.invoiceValue=gt})("keyup",function(){return s.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(gt){return s.expiry=gt}),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(gt){return s.onTimeUnitChange(gt)}),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(gt){return s.private=gt}),A._uU(30,"Private Routing Hints"),A.qZA(),A.TgZ(31,"mat-icon",22),A._uU(32,"info_outline"),A.qZA()(),A.YNc(33,ct,3,2,"div",23),A.TgZ(34,"div",24)(35,"button",25),A.NdJ("click",function(){return s.resetData()}),A._uU(36,"Clear Field"),A.qZA(),A.TgZ(37,"button",26),A.NdJ("click",function(){A.CHM(L);const gt=A.MAs(10);return s.onAddInvoice(gt)}),A._uU(38,"Create Invoice"),A.qZA()()()()()()}2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",s.description),A.xp6(3),A.Q6J("ngModel",s.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.invoiceValueHint),A.xp6(2),A.Q6J("ngModel",s.expiry)("step",s.selTimeUnit===s.timeUnitEnum.SECS?300:s.selTimeUnit===s.timeUnitEnum.MINS?10:s.selTimeUnit===s.timeUnitEnum.HOURS?2:1)("min",1),A.xp6(2),A.hij(" ",A.lcZ(24,14,s.selTimeUnit)," "),A.xp6(3),A.Q6J("value",s.selTimeUnit),A.xp6(1),A.Q6J("ngForOf",s.timeUnits),A.xp6(2),A.Q6J("ngModel",s.private),A.xp6(4),A.Q6J("ngIf",""!==s.invoiceError))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,Mt.ZT,w.dn,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,Z.R9,Z.bx,R.gD,Et.sg,QA.ey,wA.Rr,S.Hw,aA.gM,Et.O5,f.BN],pipes:[Et.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var j=Nt(5566),kA=Nt(7861),At=Nt(3093);function xA(r,y){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(L){return A.CHM(t),A.oxw().description=L}),A.qZA()(),A.TgZ(4,"mat-form-field",8)(5,"input",9),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().invoiceValue=L})("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 L=A.MAs(1);return A.oxw().onAddInvoice(L)}),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 KA(r,y){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 st(r,y){1&r&&A._UZ(0,"mat-progress-bar",46)}function Lt(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Expiry Date "),A.qZA())}const Dt=function(r){return{"mr-0":r}};function Rt(r,y){if(1&r&&A._UZ(0,"span",52),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Dt,t.screenSize===t.screenSizeEnum.XS))}}function Vt(r,y){if(1&r&&A._UZ(0,"span",53),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Dt,t.screenSize===t.screenSizeEnum.XS))}}function Le(r,y){if(1&r&&A._UZ(0,"span",54),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Dt,t.screenSize===t.screenSizeEnum.XS))}}function re(r,y){if(1&r&&(A.TgZ(0,"td",48),A.YNc(1,Rt,1,3,"span",49),A.YNc(2,Vt,1,3,"span",50),A.YNc(3,Le,1,3,"span",51),A._uU(4),A.ALo(5,"date"),A.qZA()),2&r){const t=y.$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 Ae(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Date Settled "),A.qZA())}function ye(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$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,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Type "),A.qZA())}function Re(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11&&!t.label.includes("keysend-")?"Bolt11":"Keysend")}}function yn(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Description "),A.qZA())}const xn=function(r){return{"max-width":r}};function ne(r,y){if(1&r&&(A.TgZ(0,"td",48)(1,"div",55)(2,"span",56),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,xn,s.screenSize===s.screenSizeEnum.XS?"10rem":"32rem")),A.xp6(2),A.Oqu(null==t?null:t.description)}}function tn(r,y){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount (Sats) "),A.qZA())}function Te(r,y){if(1&r&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 en(r,y){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount Settled (Sats) "),A.qZA())}function Xe(r,y){if(1&r&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Ln(r,y){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 bn=function(r){return{"px-3":r}};function Jt(r,y){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 vA=A.CHM(t).$implicit;return A.oxw(2).onInvoiceClick(vA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",62),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onRefreshInvoice(vA)}),A._uU(7,"Refresh"),A.qZA()()()()}if(2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,bn,t.screenSize!==t.screenSizeEnum.XS))}}function bt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No invoice available."),A.qZA())}function Xt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting invoices..."),A.qZA())}function oe(r,y){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 vn(r,y){if(1&r&&(A.TgZ(0,"td",66),A.YNc(1,bt,2,0,"p",67),A.YNc(2,Xt,2,0,"p",67),A.YNc(3,oe,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 pn=function(r){return{"display-none":r}};function Yn(r,y){if(1&r&&A._UZ(0,"tr",68),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,pn,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function jn(r,y){1&r&&A._UZ(0,"tr",69)}function Br(r,y){1&r&&A._UZ(0,"tr",70)}const Tn=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},ZA=function(){return["no_invoice"]};function YA(r,y){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(L){return A.CHM(t),A.oxw().selFilter=L}),A.qZA()()(),A.TgZ(8,"div",24),A.YNc(9,st,1,0,"mat-progress-bar",25),A.TgZ(10,"table",26,27),A.ynx(12,28),A.YNc(13,Lt,2,0,"th",29),A.YNc(14,re,6,7,"td",30),A.BQk(),A.ynx(15,31),A.YNc(16,Ae,2,0,"th",29),A.YNc(17,ye,3,4,"td",30),A.BQk(),A.ynx(18,32),A.YNc(19,be,2,0,"th",29),A.YNc(20,Re,2,1,"td",30),A.BQk(),A.ynx(21,33),A.YNc(22,yn,2,0,"th",29),A.YNc(23,ne,4,4,"td",30),A.BQk(),A.ynx(24,34),A.YNc(25,tn,2,0,"th",35),A.YNc(26,Te,4,4,"td",30),A.BQk(),A.ynx(27,36),A.YNc(28,en,2,0,"th",35),A.YNc(29,Xe,4,4,"td",30),A.BQk(),A.ynx(30,37),A.YNc(31,Ln,6,0,"th",38),A.YNc(32,Jt,8,3,"td",39),A.BQk(),A.ynx(33,40),A.YNc(34,vn,4,3,"td",41),A.BQk(),A.YNc(35,Yn,1,3,"tr",42),A.YNc(36,jn,1,0,"tr",43),A.YNc(37,Br,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,Tn,""!==t.errorMessage)),A.xp6(25),A.Q6J("matFooterRowDef",A.DdM(14,ZA)),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 tt=(()=>{class r{constructor(t,s,L,vA,gt,ae,un){this.logger=t,this.store=s,this.decimalPipe=L,this.commonService=vA,this.rtlEffects=gt,this.datePipe=ae,this.actions=un,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(g.gc).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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,JA.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:Ft}}}))}onAddInvoice(t){this.invoiceValue||(this.invoiceValue=0);const s=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:s,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,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:j.y}}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onRefreshInvoice(t){this.store.dispatch((0,ht.n7)({payload:t.label}))}updateInvoicesData(t){this.invoiceJSONArr=this.invoiceJSONArr.map(s=>s.label===t.label?t:s)}loadInvoicesTable(t){this.invoices=new yA.by(t?[...t]:[]),this.invoices.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(s,L)=>((s.paid_at?this.datePipe.transform(new Date(1e3*s.paid_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.expires_at?this.datePipe.transform(new Date(1e3*s.expires_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(L),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(Et.JJ),A.Y36(e.v),A.Y36(At.V),A.Y36(Et.uU),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-invoices-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,xA,15,5,"form",1),A.YNc(2,KA,5,0,"div",2),A.YNc(3,YA,39,15,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,Z.R9,Z.bx,Q.lW,f.BN,lA.$V,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,aA.gM,Et.PC,m.Zl,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.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 UA=Nt(5698),PA=Nt(8104),zA=Nt(9814),HA=Nt(7446);const $A=["sendPaymentForm"],LA=["paymentAmt"],at=["offerAmt"],VA=["paymentReq"],dt=["offerReq"];function St(r,y){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 Ut(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-radio-group",18),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().paymentType=L})("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,St,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 kt(r,y){1&r&&A.GkF(0)}function Wt(r,y){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 te(r,y){if(1&r&&(A.TgZ(0,"div",23),A._UZ(1,"fa-icon",24),A.YNc(2,Wt,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 wt(r,y){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 Pt(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function jt(r,y){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 Ht(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment amount is required."),A.qZA())}function ce(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",29,30),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).paymentAmount=L})("change",function(L){return A.CHM(t),A.oxw(2).onAmountChange(L)}),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,Ht,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 Zt(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",26,27),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().onPaymentRequestEntry(L)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,wt,2,1,"mat-hint",25),A.YNc(4,Pt,2,0,"mat-error",25),A.YNc(5,jt,2,1,"mat-error",25),A.qZA(),A.YNc(6,ce,6,2,"mat-form-field",28)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.paymentRequest),A.xp6(2),A.Q6J("ngIf",s.paymentRequest&&""!==s.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.paymentRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtInvoice)}}function ue(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Pubkey is required."),A.qZA())}function ge(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Keysend amount is required."),A.qZA())}function ve(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",31),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().pubkey=L}),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(L){return A.CHM(t),A.oxw().keysendAmount=L}),A.qZA(),A.YNc(6,ge,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 Ge(r,y){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 Se(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer request is required."),A.qZA())}function xe(r,y){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 Ne(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer amount is required."),A.qZA())}function _e(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",40,41),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).offerAmount=L})("change",function(L){return A.CHM(t),A.oxw(2).onAmountChange(L)}),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,Ne,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 Fn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",42)(1,"input",43),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).offerTitle=L}),A.qZA()()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerTitle)}}function rn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",34,35),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().onPaymentRequestEntry(L)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Ge,2,1,"mat-hint",25),A.YNc(4,Se,2,0,"mat-error",25),A.YNc(5,xe,2,1,"mat-error",25),A.qZA(),A.YNc(6,_e,6,2,"mat-form-field",28),A.TgZ(7,"div",36)(8,"mat-checkbox",37),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().flgSaveToDB=L}),A._uU(9,"Bookmark Offer"),A.qZA(),A.TgZ(10,"mat-icon",38),A._uU(11,"info_outline"),A.qZA()(),A.YNc(12,Fn,2,1,"mat-form-field",39)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.offerRequest),A.xp6(2),A.Q6J("ngIf",s.offerRequest&&""!==s.offerDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.offerRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtOffer),A.xp6(2),A.Q6J("ngModel",s.flgSaveToDB),A.xp6(4),A.Q6J("ngIf",s.flgSaveToDB||""!==s.offerTitle)}}let Cn=(()=>{class r{constructor(t,s,L,vA,gt,ae,un,Qe){this.dialogRef=t,this.data=s,this.store=L,this.logger=vA,this.commonService=gt,this.decimalPipe=ae,this.actions=un,this.dataService=Qe,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.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(g.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,JA.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.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?{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.store.dispatch(this.offerInvoice?(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}}):(0,ht.eM)(this.zeroAmtOffer?{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(s=>{this.paymentType===a.IX.INVOICE?"bolt12 offer"===s.type&&s.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=s,this.setPaymentDecodedDetails()):this.paymentType===a.IX.OFFER&&("bolt11 invoice"===s.type&&s.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=s,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_msat.slice(0,-4)),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.fiatConversion?this.commonService.convertCurrency(this.offerAmount,a.NT.SATS,a.NT.OTHER,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.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,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(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(e.v),A.Y36(Et.JJ),A.Y36(C.eX),A.Y36(PA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-send-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf($A,5),A.Gf(LA,5),A.Gf(at,5),A.Gf(VA,5),A.Gf(dt,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first),A.iGM(L=A.CRH())&&(s.paymentAmt=L.first),A.iGM(L=A.CRH())&&(s.offerAmt=L.first),A.iGM(L=A.CRH())&&(s.payReq=L.first),A.iGM(L=A.CRH())&&(s.offrReq=L.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,s){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,Ut,6,4,"mat-radio-group",7),A.TgZ(10,"form",8,9),A.NdJ("submit",function(){return s.onSendPayment()})("reset",function(){return s.resetData()}),A.YNc(12,kt,1,0,"ng-container",10),A.YNc(13,te,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,Zt,7,5,"ng-template",null,15,A.W1O),A.YNc(21,ve,7,4,"ng-template",null,16,A.W1O),A.YNc(23,rn,13,7,"ng-template",null,17,A.W1O)),2&t){const L=A.MAs(20),vA=A.MAs(22),gt=A.MAs(24);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(3),A.Q6J("ngTemplateOutlet",s.paymentType===s.paymentTypes.KEYSEND?vA:s.paymentType===s.paymentTypes.OFFER?gt:L),A.xp6(1),A.Q6J("ngIf",""!==s.paymentError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,Mt.ZT,w.dn,Et.O5,zA.VQ,OA.JJ,OA.On,zA.U0,OA._Y,OA.JL,OA.F,Et.tP,f.BN,Z.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,Z.bx,Z.TO,HA.oG,S.Hw,aA.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 In=Nt(4947);const an=["sendPaymentForm"];function fn(r,y){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 cn(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Xn(r,y){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(L){return A.CHM(t),A.oxw().onPaymentRequestEntry(L)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(5,fn,2,1,"mat-hint",9),A.YNc(6,cn,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 Fr(r,y){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 Yr(r,y){1&r&&A._UZ(0,"mat-progress-bar",50)}function nr(r,y){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Created At"),A.qZA())}const hn=function(r){return{"mr-0":r}};function qn(r,y){if(1&r&&A._UZ(0,"span",55),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function IA(r,y){if(1&r&&A._UZ(0,"span",56),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function J(r,y){if(1&r&&(A.TgZ(0,"td",52),A.YNc(1,qn,1,3,"span",53),A.YNc(2,IA,1,3,"span",54),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=y.$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 N(r,y){1&r&&(A.TgZ(0,"th",51),A._uU(1," Type "),A.qZA())}function X(r,y){if(1&r&&(A.TgZ(0,"td",52),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function K(r,y){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Payment Hash"),A.qZA())}const fA=function(r){return{"max-width":r}};function pA(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",57)(2,"span",58),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,fA,s.screenSize===s.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash)}}function _A(r,y){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Sent"),A.qZA())}function nt(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 ut(r,y){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Received"),A.qZA())}function Qt(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 vt(r,y){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 xt(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",65)(1,"button",66),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onPaymentClick(vA)}),A._uU(2,"View Info"),A.qZA()()}}function Tt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No payment available."),A.qZA())}function Ot(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting payments..."),A.qZA())}function Kt(r,y){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 fe(r,y){if(1&r&&(A.TgZ(0,"td",67),A.YNc(1,Tt,2,0,"p",9),A.YNc(2,Ot,2,0,"p",9),A.YNc(3,Kt,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 Ee(r,y){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function Ie(r,y){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function nn(r,y){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function Me(r,y){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function je(r,y){if(1&r&&(A.TgZ(0,"span",74),A.YNc(1,nn,1,3,"span",69),A.YNc(2,Me,1,3,"span",70),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=y.$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 Qn(r,y){if(1&r&&(A.ynx(0),A.YNc(1,je,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 Ke(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",68),A.YNc(2,Ee,1,3,"span",69),A.YNc(3,Ie,1,3,"span",70),A._uU(4),A.qZA(),A.YNc(5,Qn,2,1,"ng-container",9),A.qZA()),2&r){const t=y.$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 dn(r,y){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 Kn(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,dn,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 _n(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",68),A._uU(2),A.qZA(),A.YNc(3,Kn,2,1,"span",9),A.qZA()),2&r){const t=y.$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 Sn(r,y){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" Part ID ",t.partid?t.partid:0," ")}}function Rr(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Sn,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 Hn(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",76)(2,"span",58),A._uU(3),A.qZA()(),A.YNc(4,Rr,2,1,"span",9),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(3,fA,s.screenSize===s.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 rr(r,y){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$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 Qr(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,rr,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 $n(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,Qr,2,1,"span",9),A.qZA()),2&r){const t=y.$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 ur(r,y){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function zr(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,ur,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 Vn(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,zr,2,1,"span",9),A.qZA()),2&r){const t=y.$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 Lr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",60)(1,"button",82),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(4).onPaymentClick(vA)}),A._uU(2),A.qZA()()}if(2&r){const t=y.$implicit;A.xp6(2),A.hij("View ",t.partid?t.partid:0,"")}}function dr(r,y){if(1&r&&(A.TgZ(0,"div"),A.YNc(1,Lr,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 br(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",79)(1,"span",60)(2,"button",80),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return vA.is_expanded=!vA.is_expanded}),A._uU(3),A.qZA()(),A.YNc(4,dr,2,1,"div",9),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(3),A.Oqu(t.is_expanded?"Hide":"Show"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Gr(r,y){1&r&&A._UZ(0,"tr",83)}const si=function(r){return{"display-none":r}};function Hr(r,y){if(1&r&&A._UZ(0,"tr",84),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,si,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function ir(r,y){1&r&&A._UZ(0,"tr",85)}function Jr(r,y){1&r&&A._UZ(0,"tr",83)}const Wn=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},bi=function(){return["no_payment"]};function Gi(r,y){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(L){return A.CHM(t),A.oxw().selFilter=L}),A.qZA()()(),A.TgZ(8,"div",21)(9,"div",22),A.YNc(10,Yr,1,0,"mat-progress-bar",23),A.TgZ(11,"table",24,25),A.ynx(13,26),A.YNc(14,nr,2,0,"th",27),A.YNc(15,J,5,6,"td",28),A.BQk(),A.ynx(16,29),A.YNc(17,N,2,0,"th",27),A.YNc(18,X,2,1,"td",28),A.BQk(),A.ynx(19,30),A.YNc(20,K,2,0,"th",27),A.YNc(21,pA,4,4,"td",28),A.BQk(),A.ynx(22,31),A.YNc(23,_A,2,0,"th",32),A.YNc(24,nt,4,4,"td",28),A.BQk(),A.ynx(25,33),A.YNc(26,ut,2,0,"th",32),A.YNc(27,Qt,4,4,"td",28),A.BQk(),A.ynx(28,34),A.YNc(29,vt,6,0,"th",35),A.YNc(30,xt,3,0,"td",36),A.BQk(),A.ynx(31,37),A.YNc(32,fe,4,3,"td",38),A.BQk(),A.ynx(33,39),A.YNc(34,Ke,6,4,"td",28),A.BQk(),A.ynx(35,40),A.YNc(36,_n,4,2,"td",28),A.BQk(),A.ynx(37,41),A.YNc(38,Hn,5,5,"td",28),A.BQk(),A.ynx(39,42),A.YNc(40,$n,5,5,"td",28),A.BQk(),A.ynx(41,43),A.YNc(42,Vn,5,5,"td",28),A.BQk(),A.ynx(43,44),A.YNc(44,br,5,2,"td",45),A.BQk(),A.YNc(45,Gr,1,0,"tr",46),A.YNc(46,Hr,1,3,"tr",47),A.YNc(47,ir,1,0,"tr",48),A.YNc(48,Jr,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,Wn,""!==t.errorMessage)),A.xp6(34),A.Q6J("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),A.xp6(1),A.Q6J("matFooterRowDef",A.DdM(17,bi)),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 aa=(()=>{class r{constructor(t,s,L,vA,gt,ae,un,Qe,An){this.logger=t,this.commonService=s,this.store=L,this.rtlEffects=vA,this.clnEffects=gt,this.decimalPipe=ae,this.titleCasePipe=un,this.datePipe=Qe,this.dataService=An,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(g.PP).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.paymentJSONArr=t.payments||[],this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}is_group(t,s){return s.is_group}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(){this.newlyAddedPayment=this.paymentDecoded.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,UA.q)(1)).subscribe(s=>{s&&(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.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,UA.q)(1)).subscribe(L=>{L&&(this.paymentDecoded.msatoshi=L[0].inputValue,this.store.dispatch((0,ht.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*L[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(s=>{this.paymentDecoded=s,this.paymentDecoded.msatoshi?this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:L=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+L.symbol+this.decimalPipe.transform(L.OTHER?L.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:L=>{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:Cn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(t){const s=[[{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&&s.unshift([{key:"bolt11",value:t.bolt11,title:"Bolt 11",width:100,type:a.Gi.STRING}]),t.bolt12&&""!==t.bolt12&&s.unshift([{key:"bolt12",value:t.bolt12,title:"Bolt 12",width:100,type:a.Gi.STRING}]),t.memo&&""!==t.memo&&s.splice(2,0,[{key:"memo",value:t.memo,title:"Memo",width:100,type:a.Gi.STRING}]),t.hasOwnProperty("partid")?s.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}]):s.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:s}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new yA.by(t?[...t]:[]),this.payments.data=this.paymentJSONArr,this.payments.sort=this.sort,this.payments.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.payments.filterPredicate=(s,L)=>((s.created_at?this.datePipe.transform(new Date(1e3*s.created_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(L),this.payments.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const s=JSON.parse(JSON.stringify(this.payments.data)).reduce((L,vA)=>vA.mpps?L.concat(vA.mpps):(delete vA.is_group,delete vA.is_expanded,delete vA.total_parts,L.concat(vA)),[]);this.commonService.downloadFile(s,"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(e.v),A.Y36(u.yh),A.Y36(At.V),A.Y36(In.J),A.Y36(Et.JJ),A.Y36(Et.rS),A.Y36(Et.uU),A.Y36(PA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf(an,5),A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first),A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Xn,12,3,"form",1),A.YNc(2,Fr,3,0,"div",2),A.YNc(3,Gi,50,18,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,OA.Q7,lA.$V,OA.JJ,OA.On,Z.bx,Z.TO,Q.lW,f.BN,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,aA.gM,Et.PC,m.Zl,R.gD,R.$L,QA.ey,yA.mD,yA.yh,Et.sg,yA.nj,yA.Gk,yA.Ke,yA.Q2,yA.as,yA.XQ,WA.NW],pipes:[Et.uU,Et.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 oo(r,y){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 so(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const vA=A.CHM(t).index,gt=A.oxw().$implicit;return A.oxw(2).onNavigateTo(gt.links[vA])}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function lo(r,y){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 co(r,y){1&r&&A._UZ(0,"mat-progress-bar",28)}function go(r,y){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 Bo(r,y){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 oa(r,y){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 uo(r,y){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 sa(r,y){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 la(r,y){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const ca=function(r){return{"dashboard-card-content":!0,"error-border":r}};function fo(r,y){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,oo,3,1,"button",12),A.TgZ(10,"mat-menu",13,14),A.YNc(12,so,2,1,"button",15),A.YNc(13,lo,2,1,"button",16),A.qZA()()()(),A.TgZ(14,"mat-card-content",17),A.YNc(15,co,1,0,"mat-progress-bar",18),A.TgZ(16,"div",19),A.YNc(17,go,1,2,"rtl-cln-node-info",20),A.YNc(18,Bo,1,2,"rtl-cln-balances-info",21),A.YNc(19,oa,1,4,"rtl-cln-channel-capacity-info",22),A.YNc(20,uo,1,2,"rtl-cln-fee-info",23),A.YNc(21,sa,1,2,"rtl-cln-channel-status-info",24),A.YNc(22,la,2,0,"h3",25),A.qZA()()()()),2&r){const t=y.$implicit,s=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,ca,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR))),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.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 ho(r,y){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,fo,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 Eo(r,y){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 wo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const vA=A.CHM(t).index,gt=A.oxw(2).$implicit;return A.oxw(2).onNavigateTo(gt.links[vA])}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function Co(r,y){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,Eo,3,1,"button",12),A.TgZ(8,"mat-menu",13,42),A.YNc(10,wo,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 Qo(r,y){1&r&&A._UZ(0,"mat-progress-bar",28)}function Mo(r,y){if(1&r&&A._UZ(0,"rtl-cln-node-info",43),2&r){const t=A.oxw(3);A.Q6J("information",t.information)}}function po(r,y){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 Io(r,y){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 ga(r,y){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 mo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const vA=A.CHM(t).index,gt=A.oxw(3).$implicit;return A.oxw(2).onNavigateTo(gt.links[vA])}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function vo(r,y){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,mo,2,1,"button",15),A.qZA()),2&r){const t=A.MAs(4),s=A.oxw(2).$implicit;A.Q6J("matMenuTriggerFor",t),A.xp6(5),A.Q6J("ngForOf",s.goToOptions)}}function Do(r,y){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,vo,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 yo(r,y){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const Ar=function(r){return{"p-0":r}};function fr(r,y){if(1&r&&(A.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),A.YNc(2,Co,11,4,"mat-card-header",37),A.TgZ(3,"mat-card-content",38),A.YNc(4,Qo,1,0,"mat-progress-bar",18),A.TgZ(5,"div",19),A.YNc(6,Mo,1,1,"rtl-cln-node-info",39),A.YNc(7,po,1,2,"rtl-cln-balances-info",21),A.YNc(8,Io,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(9,ga,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(10,Do,8,3,"span",41),A.YNc(11,yo,2,0,"h3",25),A.qZA()()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(1),A.Q6J("ngClass",A.VKq(13,Ar,"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,ca,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.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 li(r,y){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,fr,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 xo=(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.store=s,this.actions=L,this.commonService=vA,this.router=gt,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="330px",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(g.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]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(g.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]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[4]="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(this.activeChannels.filter(s=>s.msatoshi_to_them>0),"msatoshi_to_them")))||[],this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter(s=>s.msatoshi_to_us>0),"msatoshi_to_us")))||[],this.activeChannels.forEach(s=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(s.msatoshi_to_them/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(s.msatoshi_to_us/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(g.Rn).pipe((0,i.R)(this.unSubs[3]),(0,o.M)(this.store.select(g.Wj))).subscribe(([t,s])=>{this.errorMessages[2]="",this.apiCallStatusBalance=t.apiCallStatus,this.apiCallStatusBalance.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBalance.message?JSON.stringify(this.apiCallStatusBalance.message):this.apiCallStatusBalance.message),this.errorMessages[3]="",this.apiCallStatusLRBal=s.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message),this.totalBalance=t.balance,this.balances.onchain=t.balance.totalBalance,this.balances.lightning=s.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const L=s.localRemoteBalance.localBalance?+s.localRemoteBalance.localBalance:0,vA=s.localRemoteBalance.remoteBalance?+s.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:L,remoteBalance:vA,balancedness:+(1-Math.abs((L-vA)/(L+vA))).toFixed(3)},this.channelsStatus.active.capacity=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0,this.logger.info(t),this.logger.info(s)})}onNavigateTo(t){this.router.navigateByUrl("/cln/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.activeChannelsCapacity=this.activeChannels.sort((t,s)=>{const L=+t.msatoshi_to_us+ +t.msatoshi_to_them,vA=+s.msatoshi_to_them+ +s.msatoshi_to_them;return L>vA?-1:L{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.eX),A.Y36(e.v),A.Y36(_t.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-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["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-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",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,s){if(1&t&&(A.YNc(0,ho,7,4,"div",0),A.YNc(1,li,6,4,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",(null==s.selNode?null:s.selNode.userPersona)===s.userPersonaEnum.OPERATOR)("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.Wh,f.BN,B.Il,Et.sg,B.DX,w.a8,Ct.yH,w.dk,w.n5,Q.lW,p.p6,S.Hw,p.VK,p.OP,w.dn,Et.mk,m.oO,Y.pW,Et.RF,Et.n9,T,b,dA,SA,q,Et.ED,It,ft.SP,ft.uX,tt,aa,ft.uD],styles:[""]}),r})();var Ba=Nt(9841),Fo=Nt(8012),ua=Nt(8377),Tr=Nt(7261),ar=Nt(1125),Mr=Nt(5615);const Yo=["form"],To=["formSweepAll"],So=["stepper"];function No(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Uo(r,y){1&r&&(A.TgZ(0,"mat-hint"),A._uU(1,"Amount replaced by UTXO balance"),A.qZA())}function Po(r,y){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 Ro(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t)}}function zo(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Lo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function bo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",39)(1,"input",40,41),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).customFeeRate=L}),A.qZA(),A.YNc(3,Lo,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 Go(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ho(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function fa(r,y){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(L){return A.CHM(t),A.oxw(2).onUTXOSelectionChange(L)})("valueChange",function(L){return A.CHM(t),A.oxw(2).selUTXOs=L}),A.TgZ(10,"mat-select-trigger"),A._uU(11),A.ALo(12,"number"),A.qZA(),A.YNc(13,Ho,3,4,"mat-option",21),A.qZA()(),A.TgZ(14,"div",46)(15,"mat-slide-toggle",47),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).flgUseAllBalance=L})("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 Jo(r,y){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 Oo(r,y){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,Jo,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 ha=function(r,y){return{"mr-6":r,"mr-2":y}};function ko(r,y){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(L){return A.CHM(t),A.oxw().transaction.address=L}),A.qZA(),A.YNc(5,No,2,0,"mat-error",14),A.qZA(),A.TgZ(6,"mat-form-field",15)(7,"input",16,17),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().transaction.satoshis=L}),A.qZA(),A.YNc(9,Uo,2,0,"mat-hint",14),A.TgZ(10,"span",18),A._uU(11),A.qZA(),A.YNc(12,Po,2,1,"mat-error",14),A.qZA(),A.TgZ(13,"mat-form-field",19)(14,"mat-select",20),A.NdJ("selectionChange",function(L){return A.CHM(t),A.oxw().onAmountUnitChange(L)}),A.YNc(15,Ro,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(L){return A.CHM(t),A.oxw().selFeeRate=L})("selectionChange",function(){return A.CHM(t),A.oxw().customFeeRate=null}),A.YNc(21,zo,2,2,"mat-option",21),A.qZA()(),A.YNc(22,bo,4,5,"mat-form-field",27),A.qZA(),A.TgZ(23,"div",28)(24,"mat-checkbox",29),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().flgMinConf=L})("change",function(){A.CHM(t);const L=A.oxw();return L.flgMinConf?L.selFeeRate=null:L.minConfValue=null}),A.qZA(),A.TgZ(25,"mat-form-field",30)(26,"input",31,32),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().minConfValue=L}),A.qZA(),A.YNc(28,Go,2,0,"mat-error",14),A.qZA()()(),A.YNc(29,fa,19,9,"div",33),A._UZ(30,"div",22),A.YNc(31,Oo,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,ha,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 jo(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw(3);A.Oqu(t.passwordFormLabel)}}function Ko(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Password is required."),A.qZA())}function Vo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-step",55)(1,"form",73),A.YNc(2,jo,1,1,"ng-template",67),A.TgZ(3,"div",0)(4,"mat-form-field",1),A._UZ(5,"input",74),A.YNc(6,Ko,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 Wo(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.sendFundFormLabel)}}function Zo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Xo(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function qo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function _o(r,y){if(1&r&&(A.TgZ(0,"mat-form-field",39),A._UZ(1,"input",77),A.YNc(2,qo,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 se(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function $o(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.confirmFormLabel)}}function ci(r,y){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 gi(r,y){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,ci,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 Sr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",51)(1,"mat-vertical-stepper",52,53),A.NdJ("selectionChange",function(L){return A.CHM(t),A.oxw().stepSelectionChanged(L)}),A.YNc(3,Vo,10,4,"mat-step",54),A.TgZ(4,"mat-step",55)(5,"form",56),A.YNc(6,Wo,1,1,"ng-template",57),A.TgZ(7,"div",22)(8,"mat-form-field",1),A._UZ(9,"input",58),A.YNc(10,Zo,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,Xo,2,2,"mat-option",21),A.qZA()(),A.YNc(16,_o,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,se,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,$o,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,gi,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,ha,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 or=(()=>{class r{constructor(t,s,L,vA,gt,ae,un,Qe,An,ia){this.dialogRef=t,this.data=s,this.logger=L,this.store=vA,this.commonService=gt,this.decimalPipe=ae,this.actions=un,this.formBuilder=Qe,this.rtlEffects=An,this.snackBar=ia,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:["",[OA.kI.required]],password:["",[OA.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",OA.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([OA.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:[OA.kI.required])}),(0,Ba.a)([this.store.select(ua.dT),this.store.select(ua.Yj)]).pipe((0,i.R)(this.unSubs[1])).subscribe(([t,s])=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.appConfig=s}),this.store.select(g.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(g.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value"),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[4]),(0,JA.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:Fo(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,UA.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=>this.transaction.utxos.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,i.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){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: "+this.feeRateTypes.find(s=>s.feeRateId===this.sendFundFormGroup.controls.selFeeRate.value).feeRateType:"")}t.selectedIndex0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((L,vA)=>(s.value=L.value+vA.value,s)).value,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 s=this,L=this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit;let vA=t.value===this.amountUnits[2]?a.NT.OTHER:t.value;this.transaction.satoshis&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(+this.transaction.satoshis,L,vA,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[6])).subscribe({next:gt=>{this.selAmountUnit=t.value,s.transaction.satoshis=s.decimalPipe.transform(gt[vA],s.currencyUnitFormats[vA]).replace(/,/g,"")},error:gt=>{s.transaction.satoshis=null,this.amountError="Conversion Error: "+gt,this.selAmountUnit=L,vA=L}})}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(Mt.so),A.Y36(Mt.WI),A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(Et.JJ),A.Y36(C.eX),A.Y36(OA.qu),A.Y36(At.V),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send-modal"]],viewQuery:function(t,s){if(1&t&&(A.Gf(Yo,7),A.Gf(To,5),A.Gf(So,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first),A.iGM(L=A.CRH())&&(s.formSweepAll=L.first),A.iGM(L=A.CRH())&&(s.stepper=L.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,s){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,ko,37,31,"form",7),A.qZA()()(),A.YNc(10,Sr,40,23,"ng-template",null,8,A.W1O)),2&t){const L=A.MAs(11);A.xp6(5),A.Oqu(s.sweepAll?"Sweep All Funds":"Send Funds"),A.xp6(1),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",!s.sweepAll)("ngIfElse",L)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,Mt.ZT,w.dn,Et.O5,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Z.TO,k.q,Z.bx,Z.R9,R.gD,Et.sg,QA.ey,OA.wV,OA.qQ,HA.oG,Et.mk,m.oO,ar.ib,ar.yz,ar.yK,R.$L,wA.Rr,S.Hw,aA.gM,f.BN,Mr.Vq,Mr.C0,OA.sg,Mr.VY,OA.u,Mr.Ic],pipes:[Et.JJ],styles:[""]}),r})();var Or=Nt(1203),Bi=Nt(7544);function As(r,y){1&r&&A._UZ(0,"mat-progress-bar",27)}function ts(r,y){1&r&&(A.TgZ(0,"th",28),A._uU(1," Transaction ID "),A.qZA())}function Nr(r,y){1&r&&(A.TgZ(0,"span",36)(1,"mat-icon",37),A._uU(2,"warning"),A.qZA()())}function Ur(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Nr,3,0,"span",35),A.qZA()),2&r){const t=A.oxw().$implicit;A.oxw();const s=A.MAs(32);A.xp6(1),A.Q6J("ngIf",t.value<1e3)("ngIfElse",s)}}function Hi(r,y){1&r&&A._UZ(0,"span",38)}function Ji(r,y){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 Oi=function(r){return{"max-width":r}};function es(r,y){if(1&r&&(A.TgZ(0,"td",29)(1,"span",30),A.YNc(2,Ur,2,2,"span",31),A.YNc(3,Hi,1,0,"span",32),A.YNc(4,Ji,2,3,"span",33),A.TgZ(5,"span",34),A._uU(6),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(5,Oi,s.screenSize===s.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.Q6J("ngIf",s.numDustUTXOs>0&&!s.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 Ea(r,y){1&r&&(A.TgZ(0,"th",40),A._uU(1," Output "),A.qZA())}function ns(r,y){if(1&r&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.output)," ")}}function rs(r,y){1&r&&(A.TgZ(0,"th",40),A._uU(1," Value (Sats) "),A.qZA())}function is(r,y){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 as(r,y){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 os(r,y){if(1&r&&(A.TgZ(0,"td",29),A.YNc(1,is,3,3,"span",42),A.YNc(2,as,3,3,"span",43),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Q6J("ngIf",t.value>0||0===t.value),A.xp6(1),A.Q6J("ngIf",t.value<0)}}function wa(r,y){1&r&&(A.TgZ(0,"th",40),A._uU(1," Blockheight "),A.qZA())}function ss(r,y){if(1&r&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.blockheight)," ")}}function ls(r,y){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 pr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",49)(1,"button",50),A.NdJ("click",function(L){const gt=A.CHM(t).$implicit;return A.oxw().onUTXOClick(gt,L)}),A._uU(2,"View Info"),A.qZA()()}}function zt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No utxos available."),A.qZA())}function ui(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting utxos..."),A.qZA())}function fi(r,y){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 Ir(r,y){if(1&r&&(A.TgZ(0,"td",51),A.YNc(1,zt,2,0,"p",31),A.YNc(2,ui,2,0,"p",31),A.YNc(3,fi,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 Ca=function(r){return{"display-none":r}};function hi(r,y){if(1&r&&A._UZ(0,"tr",52),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Ca,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function cs(r,y){1&r&&A._UZ(0,"tr",53)}function Qa(r,y){1&r&&A._UZ(0,"tr",54)}function gs(r,y){1&r&&A._UZ(0,"mat-icon",37)}const kr=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Ei=function(){return["no_utxo"]};let Bs=(()=>{class r{constructor(t,s,L){this.logger=t,this.commonService=s,this.store=L,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(g.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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,s){const L=[[{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:L}}}))}loadUTXOsTable(t){this.listUTXOs=new yA.by([...t]),this.listUTXOs.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(s,L)=>JSON.stringify(s).toLowerCase().includes(L),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(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-utxos"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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,s){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 s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.TgZ(5,"div",5)(6,"div",6),A.YNc(7,As,1,0,"mat-progress-bar",7),A.TgZ(8,"table",8,9),A.ynx(10,10),A.YNc(11,ts,2,0,"th",11),A.YNc(12,es,7,7,"td",12),A.BQk(),A.ynx(13,13),A.YNc(14,Ea,2,0,"th",14),A.YNc(15,ns,4,3,"td",12),A.BQk(),A.ynx(16,15),A.YNc(17,rs,2,0,"th",14),A.YNc(18,os,3,2,"td",12),A.BQk(),A.ynx(19,16),A.YNc(20,wa,2,0,"th",14),A.YNc(21,ss,4,3,"td",12),A.BQk(),A.ynx(22,17),A.YNc(23,ls,6,0,"th",18),A.YNc(24,pr,3,0,"td",19),A.BQk(),A.ynx(25,20),A.YNc(26,Ir,4,3,"td",21),A.BQk(),A.YNc(27,hi,1,3,"tr",22),A.YNc(28,cs,1,0,"tr",23),A.YNc(29,Qa,1,0,"tr",24),A.qZA(),A._UZ(30,"mat-paginator",25),A.qZA()()(),A.YNc(31,gs,1,0,"ng-template",null,26,A.W1O)),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.listUTXOs)("ngClass",A.VKq(11,kr,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(13,Ei)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,aA.gM,S.Hw,R.gD,R.$L,QA.ey,Q.lW,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.rS,Et.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 da(r,y){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 Ma(r,y){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 pa=(()=>{class r{constructor(t,s){this.logger=t,this.store=s,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(g.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length,this.dustUtxos=t.utxos.filter(s=>+s.value<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"],[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,s){1&t&&(A.TgZ(0,"div",0)(1,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(vA){return s.onSelectedIndexChanged(vA)}),A.TgZ(2,"mat-tab"),A.YNc(3,da,2,1,"ng-template",2),A._UZ(4,"rtl-cln-on-chain-utxos",3),A.qZA(),A.TgZ(5,"mat-tab"),A.YNc(6,Ma,2,1,"ng-template",2),A._UZ(7,"rtl-cln-on-chain-utxos",4),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("selectedIndex",s.selectedTableIndex),A.xp6(3),A.Q6J("utxos",s.utxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!1),A.xp6(3),A.Q6J("utxos",s.dustUtxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!0))},directives:[Ct.xw,Ct.yH,Ct.Wh,ft.SP,ft.uX,ft.uD,Bi.k,Bs],styles:[""]}),r})();const us=function(r,y){return[r,y]};function fs(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",12),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=null==vA?null:vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.Q6J("active",s.activeLink===(null==t?null:t.link))("routerLink",A.WLB(3,us,null==t?null:t.link,null==s.selectedTable?null:s.selectedTable.name)),A.xp6(1),A.Oqu(null==t?null:t.name)}}let jr=(()=>{class r{constructor(t,s,L){this.store=t,this.router=s,this.activatedRoute=L,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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(s=>s.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.link:this.links[0].link,this.selectedTable=this.tables.find(vA=>vA.name===s.urlAfterRedirects.substring(s.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(g.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{this.selNode=s}),this.store.select(g.Rn).pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{this.balances=[{title:"Total Balance",dataValue:s.balance.totalBalance||0},{title:"Confirmed",dataValue:s.balance.confBalance},{title:"Unconfirmed",dataValue:s.balance.unconfBalance}]})}openSendFundsModal(t){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:t,component:or}}}))}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(s=>s.id===t),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(_t.F0),A.Y36(_t.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,s){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,fs,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(vA){return s.onSelectedTableIndexChanged(vA)}),A.qZA()()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links),A.xp6(4),A.Q6J("selectedTableIndex",null==s.selectedTable?null:s.selectedTable.id))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ft.BU,Et.sg,ft.Nj,_t.rH,Ct.yH,_t.lC,pa],styles:[""]}),r})();function hs(r,y){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 Es(r,y){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 ws=(()=>{class r{constructor(t,s,L){this.store=t,this.logger=s,this.router=L,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,JA.h)(t=>t instanceof _t.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.activeChannels=t.activeChannels.length||0}),this.store.select(g.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(g.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},{title:"Unconfirmed",dataValue:t.balance.unconfBalance}]})}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(_t.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,s){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(vA){return s.activeLink=vA})("selectedTabChange",function(vA){return s.onSelectedTabChange(vA)}),A.TgZ(16,"mat-tab"),A.YNc(17,hs,2,1,"ng-template",8),A.qZA(),A.TgZ(18,"mat-tab"),A.YNc(19,Es,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",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faUsers),A.xp6(6),A.Q6J("selectedIndex",s.activeLink))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ft.SP,ft.uX,ft.uD,Bi.k,Ct.yH,_t.lC],styles:[""]}),r})();function Ia(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Cs=(()=>{class r{constructor(t,s,L){this.logger=t,this.store=s,this.router=L,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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.link:this.links[0].link,this.routerUrl=s.urlAfterRedirects}}),this.store.select(g.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{if(this.selNode=s,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 L=this.links.find(vA=>this.router.url.includes(vA.link));this.activeLink=L?L.link:this.links[0].link}}),this.store.select(g.Wj).pipe((0,i.R)(this.unSubs[2]),(0,o.M)(this.store.select(g.lw))).subscribe(([s,L])=>{this.currencyUnits=L.currencyUnits,this.balances=L.userPersona===a.ol.OPERATOR?[{title:"Local Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(s)})}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(_t.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,s){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,Ia,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",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ft.BU,Et.sg,ft.Nj,_t.rH,Ct.yH,_t.lC],styles:[""]}),r})();function Qs(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let ds=(()=>{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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.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(_t.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,s){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,Qs,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",s.faMapSigns),A.xp6(8),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,Ct.yH,w.a8,w.dn,ft.BU,Et.sg,ft.Nj,_t.rH,_t.lC],styles:[""]}),r})();var Kr=Nt(6895);function Ms(r,y){if(1&r&&(A.TgZ(0,"span",6),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function ma(r,y){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Type"),A.qZA())}function ps(r,y){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Is(r,y){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Address"),A.qZA())}function ms(r,y){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function vs(r,y){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Port"),A.qZA())}function Ds(r,y){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function Nn(r,y){1&r&&(A.TgZ(0,"th",29)(1,"span",30),A._uU(2,"Actions"),A.qZA()())}function ys(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",31)(1,"span",30)(2,"button",32),A.NdJ("copied",function(L){return A.CHM(t),A.oxw(2).onCopyNodeURI(L)}),A._uU(3,"Copy Node URI"),A.qZA()()()}if(2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(2),A.Q6J("payload",(null==s.lookupResult?null:s.lookupResult.nodeid)+"@"+t.address+":"+t.port)}}function xs(r,y){1&r&&A._UZ(0,"tr",33)}function Fs(r,y){1&r&&A._UZ(0,"tr",34)}const Ys=function(r){return{"background-color":r}};function Ts(r,y){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,Ms,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,ma,2,0,"th",18),A.YNc(36,ps,2,1,"td",19),A.BQk(),A.ynx(37,20),A.YNc(38,Is,2,0,"th",18),A.YNc(39,ms,2,1,"td",19),A.BQk(),A.ynx(40,21),A.YNc(41,vs,2,0,"th",18),A.YNc(42,Ds,2,1,"td",19),A.BQk(),A.ynx(43,22),A.YNc(44,Nn,3,0,"th",23),A.YNc(45,ys,4,1,"td",24),A.BQk(),A.YNc(46,xs,1,0,"tr",25),A.YNc(47,Fs,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,Ys,"#"+(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 Ss=(()=>{class r{constructor(t,s){this.logger=t,this.snackBar=s,this.featureDescriptions=[],this.displayedColumns=["type","address","port","actions"]}ngOnInit(){if(this.addresses=new yA.by(this.lookupResult&&this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,s)=>t[s]&&isNaN(t[s])?t[s].toLocaleLowerCase():t[s]?+t[s]:null,this.lookupResult.features&&""!==this.lookupResult.features.trim()){const t=parseInt(this.lookupResult.features,16);a.Df.forEach(s=>{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(g.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,s){1&t&&A.YNc(0,va,204,91,"div",0),2&t&&A.Q6J("ngIf",s.lookupResult)},directives:[Et.O5,Ct.xw,AA.d,Ct.Wh,Ct.yH],pipes:[Et.JJ,Et.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 Ve=["form"];function Er(r,y){if(1&r&&(A.TgZ(0,"mat-radio-button",17),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("value",t.id)("checked",s.selectedFieldId===t.id),A.xp6(1),A.hij(" ",t.name," ")}}function ji(r,y){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 Rs(r,y){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 wi(r,y){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,Rs,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",""!==t.nodeLookupValue.nodeid)("ngIfElse",s)}}function Ci(r,y){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 Qi(r,y){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,Ci,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",t.channelLookupValue.length>0)("ngIfElse",s)}}function De(r,y){1&r&&(A.TgZ(0,"span",24)(1,"h3"),A._uU(2,"Error! Unable to find details!"),A.qZA()())}function zs(r,y){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,wi,2,2,"span",22),A.YNc(6,Qi,2,2,"span",22),A.YNc(7,De,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 wr(r,y){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find details!"),A.qZA())}const Ls=function(r){return{"mt-1":!0,"mt-2":r}};let bs=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.commonService=s,this.store=L,this.actions=vA,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,JA.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 r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lookups"]],viewQuery:function(t,s){if(1&t&&A.Gf(Ve,7),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.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,s){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(vA){return s.selectedFieldId=vA})("change",function(vA){return s.onSelectChange(vA)}),A.YNc(7,Er,2,3,"mat-radio-button",7),A.qZA()(),A.TgZ(8,"mat-form-field",8)(9,"input",9,10),A.NdJ("change",function(){return s.clearLookupValue()})("ngModelChange",function(vA){return s.lookupKey=vA}),A.qZA(),A.YNc(11,ji,2,1,"mat-error",11),A.qZA(),A.TgZ(12,"div",12)(13,"button",13),A.NdJ("click",function(){return s.resetData()}),A._uU(14,"Clear"),A.qZA(),A.TgZ(15,"button",14),A.NdJ("click",function(){return s.onLookup()}),A._uU(16,"Lookup"),A.qZA()()(),A.YNc(17,zs,8,4,"div",15),A.qZA()()(),A.YNc(18,wr,2,0,"ng-template",null,16,A.W1O)),2&t&&(A.xp6(6),A.Q6J("ngModel",s.selectedFieldId),A.xp6(1),A.Q6J("ngForOf",s.lookupFields),A.xp6(1),A.Q6J("ngClass",A.VKq(7,Ls,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM)),A.xp6(1),A.Q6J("placeholder",(null==s.lookupFields[s.selectedFieldId]?null:s.lookupFields[s.selectedFieldId].placeholder)||"Lookup Key")("ngModel",s.lookupKey),A.xp6(2),A.Q6J("ngIf",!s.lookupKey),A.xp6(6),A.Q6J("ngIf",s.flgSetLookupValue))},directives:[Ct.xw,Ct.yH,Ct.Wh,w.dn,OA._Y,OA.JL,OA.F,zA.VQ,OA.JJ,OA.On,Et.sg,zA.U0,Z.KE,Et.mk,m.oO,Yt.Nt,OA.Fj,OA.Q7,Et.O5,Z.TO,Q.lW,Et.RF,Et.n9,Ss,ki,Et.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 Vr=(()=>{return(r=Vr||(Vr={})).KB="KB",r.KW="KW",Vr;var r})();function di(r,y){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 sr(r,y){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 Da=(()=>{class r{constructor(){this.perkbw={}}ngAfterContentChecked(){this.feeRateStyle===Vr.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===Vr.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,s){if(1&t&&(A.YNc(0,di,67,24,"div",0),A.YNc(1,sr,3,1,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh,S.Hw,aA.gM],pipes:[Et.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function Pr(r,y){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 ya(r,y){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 Gs=(()=>{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,s){if(1&t&&(A.YNc(0,Pr,52,15,"div",0),A.YNc(1,ya,3,1,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh,S.Hw,aA.gM],pipes:[Et.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function Mi(r,y){1&r&&A._UZ(0,"mat-progress-bar",19)}function pi(r,y){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 mr(r,y){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 Hs(r,y){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 Ii(r,y){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 Wr(r,y){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 Js(r,y){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 xa=function(r){return{"dashboard-card-content":!0,"error-border":r}};function Os(r,y){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,Mi,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,pi,1,2,"rtl-cln-node-info",14),A.YNc(13,mr,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Hs,1,2,"rtl-cln-fee-info",16),A.YNc(15,Ii,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Wr,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Js,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&r){const t=y.$implicit,s=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,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.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 Fa(r,y){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,Os,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsOperator)}}function ks(r,y){1&r&&A._UZ(0,"mat-progress-bar",19)}function js(r,y){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 Ks(r,y){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 Vs(r,y){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 Ws(r,y){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 Zs(r,y){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 Xs(r,y){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 qs(r,y){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,ks,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,js,1,2,"rtl-cln-node-info",14),A.YNc(13,Ks,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Vs,1,2,"rtl-cln-fee-info",16),A.YNc(15,Ws,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Zs,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Xs,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&r){const t=y.$implicit,s=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,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.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 _s(r,y){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,qs,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsMerchant)}}let $s=(()=>{class r{constructor(t,s,L){this.logger=t,this.commonService=s,this.store=L,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(g.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.selNode=t.nodeSettings,this.information=t.information,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1]),(0,o.M)(this.store.select(g.Wj))).subscribe(([t,s])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusLRBal=t.apiCallStatus,this.apiCallStatusChannels=s.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(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.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=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0}),this.store.select(g.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.fees=t.fees}),this.store.select(g.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),t.forwardingHistory&&t.forwardingHistory.listForwards.length&&(this.fees.totalTxCount=t.forwardingHistory.listForwards.length)}),this.store.select(g.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.feeRatesPerKB=t.feeRatesPerKB}),this.store.select(g.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.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(e.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,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Fa,2,1,"mat-grid-list",1),A.YNc(2,_s,2,1,"mat-grid-list",1),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.OPERATOR),A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.MERCHANT))},directives:[Ct.xw,Ct.Wh,Et.O5,B.Il,Et.sg,B.DX,Ct.yH,f.BN,w.a8,w.dn,Et.mk,m.oO,Y.pW,Et.RF,Et.n9,T,q,SA,Da,Gs],styles:[""]}),r})();function A0(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let mi=(()=>{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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.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(_t.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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){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,A0,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",s.faUserCheck),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ft.BU,Et.sg,ft.Nj,_t.rH,Ct.yH,_t.lC],styles:[""]}),r})();var Ki=Nt(9122);function vi(r,y){if(1&r&&(A.TgZ(0,"mat-option",7),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.hij(" ",t.addressTp," ")}}let Ya=(()=>{class r{constructor(t,s){this.store=t,this.clnEffects=s,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,UA.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Ki.n}}}))},0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(In.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,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),A.NdJ("ngModelChange",function(vA){return s.selectedAddressType=vA}),A.YNc(4,vi,2,2,"mat-option",4),A.qZA()(),A.TgZ(5,"div",5)(6,"button",6),A.NdJ("click",function(){return s.onGenerateAddress()}),A._uU(7,"Generate Address"),A.qZA()()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selectedAddressType),A.xp6(1),A.Q6J("ngForOf",s.addressTypes))},directives:[Ct.xw,Ct.Wh,Z.KE,Ct.yH,R.gD,OA.JJ,OA.On,Et.sg,QA.ey,Q.lW],styles:[""]}),r})(),Ta=(()=>{class r{constructor(t,s){this.store=t,this.activatedRoute=s,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:or}}}))}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(_t.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,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return s.openSendFundsModal()}),A._uU(3),A.qZA()()()),2&t&&(A.xp6(3),A.Oqu(s.sweepAll?"Sweep All":"Send Funds"))},directives:[Ct.xw,Ct.yH,Ct.Wh,Q.lW],styles:[""]}),r})();var Di=Nt(8675),Un=Nt(4004),tr=Nt(1079),yi=Nt(9843);const Vi=["form"];function Wi(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t.alias?t.alias:t.id?t.id:"")}}function t0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer alias is required."),A.qZA())}function Zr(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer not found in the list."),A.qZA())}function Sa(r,y){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,Wi,2,2,"mat-option",26),A.ALo(5,"async"),A.qZA(),A.YNc(6,t0,2,0,"mat-error",17),A.YNc(7,Zr,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.MAs(3),s=A.oxw();A.xp6(1),A.Q6J("formControl",s.selectedPeer)("matAutocomplete",t),A.xp6(1),A.Q6J("displayWith",s.displayFn),A.xp6(2),A.Q6J("ngForOf",A.lcZ(5,6,s.filteredPeers)),A.xp6(2),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.notfound)}}function e0(r,y){1&r&&A.GkF(0)}function n0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function r0(r,y){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 i0(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function a0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function o0(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",43)(1,"input",44,45),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().customFeeRate=L}),A.qZA(),A.YNc(3,a0,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 s0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function l0(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function c0(r,y){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(L){return A.CHM(t),A.oxw().onUTXOSelectionChange(L)})("valueChange",function(L){return A.CHM(t),A.oxw().selUTXOs=L}),A.TgZ(3,"mat-select-trigger"),A._uU(4),A.ALo(5,"number"),A.qZA(),A.YNc(6,l0,3,4,"mat-option",26),A.qZA()(),A.TgZ(7,"div",28)(8,"mat-slide-toggle",48),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().flgUseAllBalance=L})("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 g0(r,y){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 B0(r,y){if(1&r&&(A.TgZ(0,"div",50),A._UZ(1,"fa-icon",51),A.YNc(2,g0,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 u0(r,y){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 f0(r,y){if(1&r&&A.YNc(0,u0,26,4,"mat-expansion-panel",52),2&r){const t=A.oxw();A.Q6J("ngIf",t.peer)}}const xi=function(r,y){return{"mr-6":r,"mr-2":y}};let pe=(()=>{class r{constructor(t,s,L,vA,gt,ae){this.dialogRef=t,this.data=s,this.store=L,this.actions=vA,this.decimalPipe=gt,this.commonService=ae,this.selectedPeer=new OA.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.isCompatibleVersion=this.data.message.isCompatibleVersion,this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.utxos=this.data.message.utxos,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(L=>L.type===a.AB.UPDATE_API_CALL_STATUS_CLN||L.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(L=>{L.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&L.payload.status===a.Bn.ERROR&&"SaveNewChannel"===L.payload.action&&(this.channelConnectionError=L.payload.message),L.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()});let t="",s="";this.sortedPeers=this.peers.sort((L,vA)=>(t=L.alias?L.alias.toLowerCase():L.id?L.id.toLowerCase():"",s=vA.alias?vA.alias.toLowerCase():L.id.toLowerCase(),ts?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,i.R)(this.unSubs[1]),(0,Di.O)(""),(0,Un.U)(L=>"string"==typeof L?L:L.alias?L.alias:L.id),(0,Un.U)(L=>L?this.filterPeers(L):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(s=>0===s.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.id?t.id:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.id?this.selectedPeer.value.id:null,"string"==typeof this.selectedPeer.value){const t=this.peers.filter(s=>s.alias.length===this.selectedPeer.value.length&&0===s.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].id&&(this.selectedPubkey=t[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){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)":this.feeRateTypes.find(s=>s.feeRateId===this.selFeeRate).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){const s={value:0};this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((L,vA)=>(s.value=L.value+vA.value,s)).value,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(s=>t.utxos.push(s.txid+":"+s.output))),this.store.dispatch((0,ht.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(C.eX),A.Y36(Et.JJ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(Vi,7),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.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",""],[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,s){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 s.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.NdJ("submit",function(){return s.onOpenChannel()})("reset",function(){return s.resetData()}),A.TgZ(11,"div",9),A.YNc(12,Sa,8,8,"mat-form-field",10),A.qZA(),A.YNc(13,e0,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(vA){return s.fundingAmount=vA}),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,n0,2,0,"mat-error",17),A.YNc(25,r0,2,1,"mat-error",17),A.qZA(),A.TgZ(26,"div",18)(27,"mat-slide-toggle",19),A.NdJ("ngModelChange",function(vA){return s.isPrivate=vA}),A._uU(28,"Private Channel"),A.qZA()()(),A.TgZ(29,"mat-expansion-panel",20),A.NdJ("closed",function(){return s.onAdvancedPanelToggle(!0)})("opened",function(){return s.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(vA){return s.selFeeRate=vA})("selectionChange",function(){return s.customFeeRate=null}),A.YNc(39,i0,2,2,"mat-option",26),A.qZA()(),A.YNc(40,o0,4,5,"mat-form-field",27),A.qZA(),A.TgZ(41,"div",28)(42,"mat-checkbox",29),A.NdJ("ngModelChange",function(vA){return s.flgMinConf=vA})("change",function(){return s.flgMinConf?s.selFeeRate=null:s.minConfValue=null}),A.qZA(),A.TgZ(43,"mat-form-field",30)(44,"input",31,32),A.NdJ("ngModelChange",function(vA){return s.minConfValue=vA}),A.qZA(),A.YNc(46,s0,2,0,"mat-error",17),A.qZA()()(),A.YNc(47,c0,12,8,"div",33),A.qZA()()(),A.YNc(48,B0,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,f0,1,1,"ng-template",null,38,A.W1O)),2&t){const L=A.MAs(18),vA=A.MAs(55);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(7),A.Q6J("ngIf",!s.peer&&s.peers&&s.peers.length>0),A.xp6(1),A.Q6J("ngTemplateOutlet",vA),A.xp6(4),A.Q6J("ngModel",s.fundingAmount)("step",1e3)("min",1)("max",s.totalBalance)("disabled",s.flgUseAllBalance),A.xp6(3),A.AsE("Remaining Bal: ",A.lcZ(21,29,s.totalBalance-(s.fundingAmount?s.fundingAmount:0)),"",s.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),A.xp6(4),A.Q6J("ngIf",(null==L.errors?null:L.errors.required)||!s.fundingAmount),A.xp6(1),A.Q6J("ngIf",null==L.errors?null:L.errors.max),A.xp6(2),A.Q6J("ngModel",s.isPrivate),A.xp6(6),A.Oqu(s.advancedTitle),A.xp6(4),A.Q6J("fxFlex","customperkb"!==s.selFeeRate||s.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",s.selFeeRate)("disabled",s.flgMinConf),A.xp6(1),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.selFeeRate&&!s.flgMinConf),A.xp6(2),A.Q6J("ngModel",s.flgMinConf)("ngClass",A.WLB(31,xi,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",s.minConfValue)("step",1)("min",0)("required",s.flgMinConf)("disabled",!s.flgMinConf),A.xp6(2),A.Q6J("ngIf",s.flgMinConf&&!s.minConfValue),A.xp6(1),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,w.dn,OA._Y,OA.JL,OA.F,Et.O5,Z.KE,Yt.Nt,OA.Fj,tr.ZL,OA.Q7,OA.JJ,OA.oH,tr.XC,Et.sg,QA.ey,Z.TO,Et.tP,OA.wV,OA.qQ,OA.Fd,k.q,yi.F,OA.On,Z.bx,Z.R9,wA.Rr,ar.ib,ar.yz,ar.yK,R.gD,HA.oG,Et.mk,m.oO,R.$L,S.Hw,aA.gM,f.BN,H.h,AA.d],pipes:[Et.Ov,Et.JJ],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function ee(r,y){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 h0(r,y){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 Na=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.store=s,this.commonService=L,this.router=vA,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,JA.h)(t=>t instanceof _t.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(g.OL).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t.nodeSettings,this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(g.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(g.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value")}),this.store.select(g.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:pe}}}))}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(e.v),A.Y36(_t.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,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(3,"Open Channel"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-tab-group",4),A.NdJ("selectedIndexChange",function(vA){return s.activeLink=vA})("selectedTabChange",function(vA){return s.onSelectedTabChange(vA)}),A.TgZ(6,"mat-tab"),A.YNc(7,ee,2,1,"ng-template",5),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,h0,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",s.activeLink))},directives:[Ct.xw,Ct.yH,Ct.Wh,Q.lW,ft.SP,ft.uX,ft.uD,Bi.k,_t.lC],styles:[""]}),r})();function Xr(r,y){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 Ua(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Show Advanced"),A.qZA())}function E0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Hide Advanced"),A.qZA())}function w0(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",23),A.NdJ("copied",function(L){return A.CHM(t),A.oxw().onCopyChanID(L)}),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 Pa(r,y){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 C0=function(r){return{"xs-scroll-y":r}},En=function(r,y){return{"mt-2":r,"mt-1":y}};let Fi=(()=>{class r{constructor(t,s,L,vA,gt){this.dialogRef=t,this.data=s,this.logger=L,this.commonService=vA,this.snackBar=gt,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(Mt.so),A.Y36(Mt.WI),A.Y36(E.mQ),A.Y36(e.v),A.Y36(Tr.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,s){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 s.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,Xr,8,2,"div",16),A.TgZ(87,"div",17)(88,"button",18),A.NdJ("click",function(){return s.onShowAdvanced()}),A.YNc(89,Ua,2,0,"p",19),A.YNc(90,E0,2,0,"ng-template",null,20,A.W1O),A.qZA(),A.YNc(92,w0,2,1,"button",21),A.YNc(93,Pa,2,0,"button",22),A.qZA()()()()()),2&t){const L=A.MAs(91);A.xp6(4),A.Q6J("icon",s.faReceipt),A.xp6(5),A.Q6J("ngClass",A.VKq(35,C0,s.screenSize===s.screenSizeEnum.XS)),A.xp6(7),A.Oqu(s.channel.short_channel_id),A.xp6(5),A.Oqu(s.channel.alias),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.channel_id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(43,25,s.channel.msatoshi_to_us)),A.xp6(6),A.Oqu(A.lcZ(49,27,s.channel.spendable_msatoshi)),A.xp6(6),A.Oqu(A.lcZ(55,29,s.channel.msatoshi_total)),A.xp6(6),A.Oqu(s.channel.state),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(68,31,s.channel.our_channel_reserve_satoshis)),A.xp6(6),A.Oqu(A.lcZ(74,33,s.channel.their_channel_reserve_satoshis)),A.xp6(6),A.Oqu(s.channel.connected?"Yes":"No"),A.xp6(5),A.Oqu(s.channel.private?"Yes":"No"),A.xp6(1),A.Q6J("inset",!0),A.xp6(1),A.Q6J("ngIf",s.showAdvanced),A.xp6(1),A.Q6J("ngClass",A.WLB(37,En,!s.showAdvanced,s.showAdvanced)),A.xp6(2),A.Q6J("ngIf",!s.showAdvanced)("ngIfElse",L),A.xp6(3),A.Q6J("ngIf",s.showCopy),A.xp6(1),A.Q6J("ngIf",!s.showCopy)}},directives:[Ct.xw,Ct.Wh,Ct.yH,w.dk,f.BN,Q.lW,w.dn,Et.mk,m.oO,AA.d,Et.O5,H.h,Kr.y],pipes:[Et.JJ],styles:[""]}),r})();function Ra(r,y){1&r&&A._UZ(0,"mat-progress-bar",33)}function Yi(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Short Channel ID "),A.qZA())}function Q0(r,y){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 vr(r,y){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 Zn=function(r){return{"max-width":r}};function lr(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"div",36),A.YNc(2,Q0,2,1,"span",37),A.YNc(3,vr,2,1,"span",38),A.TgZ(4,"span",39),A._uU(5),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,Zn,s.screenSize===s.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 cr(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Alias "),A.qZA())}function d0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"div",36)(2,"span",39),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Zn,s.screenSize===s.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(2),A.Oqu(null==t?null:t.alias)}}function M0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Connected "),A.qZA())}function p0(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function Ti(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Private "),A.qZA())}function I0(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function za(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," State "),A.qZA())}function m0(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.state,"")}}function v0(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Local Balance (Sats) "),A.qZA())}function de(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 La(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Remote Balance (Sats) "),A.qZA())}function D0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 y0(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Total mSatoshis "),A.qZA())}function ba(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_total)," ")}}function x0(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Spendable Satoshi "),A.qZA())}function F0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function Y0(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1,"Balance Score "),A.qZA())}function Ga(r,y){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=y.$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 Si(r,y){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 Ha(r,y){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(L){const gt=A.CHM(t).$implicit;return A.oxw().onChannelClick(gt,L)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onViewRemotePolicy(vA)}),A._uU(7,"View Remote Fee"),A.qZA(),A.TgZ(8,"mat-option",53),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onChannelUpdate(vA)}),A._uU(9,"Update Fee Policy"),A.qZA(),A.TgZ(10,"mat-option",53),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onChannelClose(vA)}),A._uU(11,"Close Channel"),A.qZA()()()()}}function T0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function S0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No channel available."),A.qZA())}function N0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting channels..."),A.qZA())}function U0(r,y){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 P0(r,y){if(1&r&&(A.TgZ(0,"td",57),A.YNc(1,T0,2,0,"p",58),A.YNc(2,S0,2,0,"p",58),A.YNc(3,N0,2,0,"p",58),A.YNc(4,U0,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 R0=function(r){return{"display-none":r}};function z0(r,y){if(1&r&&A._UZ(0,"tr",59),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,R0,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Ni(r,y){1&r&&A._UZ(0,"tr",60)}function L0(r,y){1&r&&A._UZ(0,"tr",61)}const Zi=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Ja=function(){return["no_peer"]};let b0=(()=>{class r{constructor(t,s,L,vA,gt,ae){var un,Qe,An,ia;this.logger=t,this.store=s,this.rtlEffects=L,this.clnEffects=vA,this.commonService=gt,this.router=ae,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===(Qe=null===(un=this.router.getCurrentNavigation().extras)||void 0===un?void 0:un.state)||void 0===Qe?void 0:Qe.filter)?null===(ia=null===(An=this.router.getCurrentNavigation().extras)||void 0===An?void 0:An.state)||void 0===ia?void 0:ia.filter:""}ngOnInit(){this.store.select(g.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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,UA.q)(1)).subscribe(s=>{if(0===s.length)return!1;let L={};L=s[0].source!==this.information.id?s[0]:s[1];const vA=[[{key:"base_fee_millisatoshi",value:L.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:a.Gi.NUMBER},{key:"fee_per_millionth",value:L.fee_per_millionth,title:"Fee/Millionth",width:33,type:a.Gi.NUMBER},{key:"delay",value:L.delay,title:"Delay",width:33,type:a.Gi.NUMBER}]],gt="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:gt,message:vA}}}))},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(L=>{L&&this.store.dispatch((0,ht.pW)({payload:{baseFeeMsat:L[0].inputValue,feeRate:L[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,UA.q)(1)).subscribe(s=>{this.myChanPolicy=s.length>0&&s[0].source===this.information.id?{fee_base_msat:s[0].base_fee_millisatoshi,fee_rate_milli_msat:s[0].fee_per_millionth}:s.length>1&&s[1].source===this.information.id?{fee_base_msat:s[1].base_fee_millisatoshi,fee_rate_milli_msat:s[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},this.logger.info(this.myChanPolicy);const L="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),vA=[];setTimeout(()=>{this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:vA,titleMessage:L,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(s=>{s&&this.store.dispatch((0,ht.pW)({payload:{baseFeeMsat:s[0].inputValue,feeRate:s[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(s=>{s&&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,s){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:Fi}}}))}loadChannelsTable(t){t.sort((s,L)=>s.active===L.active?0:L.active?1:-1),this.channels=new yA.by([...t]),this.channels.filterPredicate=(s,L)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state?s.state.toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(L),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]: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(At.V),A.Y36(In.J),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-open-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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,s){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 s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.YNc(5,Ra,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,Yi,2,0,"th",10),A.YNc(11,lr,6,6,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,cr,2,0,"th",10),A.YNc(14,d0,4,4,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,M0,2,0,"th",10),A.YNc(17,p0,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,Ti,2,0,"th",10),A.YNc(20,I0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,za,2,0,"th",10),A.YNc(23,m0,2,1,"td",11),A.BQk(),A.ynx(24,16),A.YNc(25,v0,2,0,"th",17),A.YNc(26,de,4,4,"td",11),A.BQk(),A.ynx(27,18),A.YNc(28,La,2,0,"th",17),A.YNc(29,D0,4,4,"td",11),A.BQk(),A.ynx(30,19),A.YNc(31,y0,2,0,"th",17),A.YNc(32,ba,4,3,"td",11),A.BQk(),A.ynx(33,20),A.YNc(34,x0,2,0,"th",17),A.YNc(35,F0,4,3,"td",11),A.BQk(),A.ynx(36,21),A.YNc(37,Y0,2,0,"th",22),A.YNc(38,Ga,6,4,"td",23),A.BQk(),A.ynx(39,24),A.YNc(40,Si,8,0,"th",25),A.YNc(41,Ha,12,0,"td",26),A.BQk(),A.ynx(42,27),A.YNc(43,P0,5,4,"td",28),A.BQk(),A.YNc(44,z0,1,3,"tr",29),A.YNc(45,Ni,1,0,"tr",30),A.YNc(46,L0,1,0,"tr",31),A.qZA()(),A._UZ(47,"mat-paginator",32),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Zi,""!==s.errorMessage)),A.xp6(37),A.Q6J("matFooterRowDef",A.DdM(13,Ja)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,Et.O5,Y.pW,lA.$V,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,aA.gM,f.BN,Z.bx,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.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 qr=["outputIdx"];function wn(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Output Index required."),A.qZA())}function Ui(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Invalid index value."),A.qZA())}function Oa(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fees is required."),A.qZA())}function G0(r,y){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 H0=(()=>{class r{constructor(t,s,L,vA,gt,ae){this.actions=t,this.dialogRef=s,this.data=L,this.store=vA,this.logger=gt,this.snackBar=ae,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,ht._E)({payload:a._t[0]})),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.SET_NEW_ADDRESS_CLN),(0,UA.q)(1)).subscribe(t=>{this.store.dispatch((0,ht.Wi)({payload:{address:t.payload,satoshis:"all",feeRate:this.fees,utxos:[this.bumpFeeChannel.funding_txid+":"+this.outputIndex.toString()]}}))}),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN),(0,UA.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,JA.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(C.eX),A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-bump-fee"]],viewQuery:function(t,s){if(1&t&&A.Gf(qr,5),2&t){let L;A.iGM(L=A.CRH())&&(s.payReq=L.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,s){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 s.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(vA){return s.onCopyID(vA)}),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(vA){return s.outputIndex=vA}),A.qZA(),A.YNc(35,wn,2,0,"mat-error",20),A.YNc(36,Ui,2,0,"mat-error",20),A.qZA(),A.TgZ(37,"mat-form-field",17)(38,"input",21,22),A.NdJ("ngModelChange",function(vA){return s.fees=vA}),A.qZA(),A.YNc(40,Oa,2,0,"mat-error",20),A.qZA()(),A.YNc(41,G0,4,2,"div",23),A.qZA()(),A.TgZ(42,"div",24)(43,"button",25),A.NdJ("click",function(){return s.resetData()}),A._uU(44,"Clear"),A.qZA(),A.TgZ(45,"button",26),A.NdJ("click",function(){return s.onBumpFee()}),A._uU(46),A.qZA()()()()()()),2&t){const L=A.MAs(34);A.xp6(12),A.hij("Bump fee for transaction id: ",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid," "),A.xp6(1),A.Q6J("icon",s.faCopy)("payload",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid),A.xp6(3),A.Q6J("icon",s.faInfoCircle),A.xp6(17),A.Q6J("ngModel",s.outputIndex)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",null==L.errors?null:L.errors.required),A.xp6(1),A.Q6J("ngIf",null==L.errors?null:L.errors.pendingChannelOutputIndex),A.xp6(2),A.Q6J("ngModel",s.fees)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",!s.fees),A.xp6(1),A.Q6J("ngIf",""!==s.bumpFeeError),A.xp6(5),A.Oqu(""!==s.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,w.dn,OA._Y,OA.JL,OA.F,f.BN,Z.R9,Kr.y,aA.gM,Z.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fj,k.q,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO],styles:[""]}),r})();function J0(r,y){1&r&&A._UZ(0,"mat-progress-bar",30)}function O0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Short Channel ID "),A.qZA())}function k0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.short_channel_id,"")}}function j0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Alias "),A.qZA())}function K0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function V0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Connected "),A.qZA())}function ka(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function W0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Private "),A.qZA())}function Z0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function X0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," State "),A.qZA())}const gr=function(r){return{"max-width":r}};function q0(r,y){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,gr,s.screenSize===s.screenSizeEnum.XS?"10rem":"")),A.xp6(1),A.hij(" ",s.CLNChannelPendingState[null==t?null:t.state]," ")}}function Pi(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," mSatoshi To Us "),A.qZA())}function _0(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_to_us)," ")}}function $0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Total (Sats) "),A.qZA())}function Al(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi_total)/1e3)," ")}}function ja(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Spendable Satoshi "),A.qZA())}function tl(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function el(r,y){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 nl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onChannelClose(L)}),A._uU(1,"Close Channel"),A.qZA()}}function rl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onBumpFee(L)}),A._uU(1,"Bump Fee"),A.qZA()}}function Ka(r,y){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(L){const gt=A.CHM(t).$implicit;return A.oxw().onChannelClick(gt,L)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,nl,2,0,"mat-option",42),A.YNc(7,rl,2,0,"mat-option",42),A.qZA()()()}if(2&r){const t=y.$implicit,s=A.oxw();A.xp6(6),A.Q6J("ngIf",s.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 il(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function Va(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No pending/inactive channel available."),A.qZA())}function Wa(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting pending/inactive channels..."),A.qZA())}function Za(r,y){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 al(r,y){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,il,2,0,"p",44),A.YNc(2,Va,2,0,"p",44),A.YNc(3,Wa,2,0,"p",44),A.YNc(4,Za,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 ol=function(r){return{"display-none":r}};function sl(r,y){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,ol,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function ll(r,y){1&r&&A._UZ(0,"tr",46)}function cl(r,y){1&r&&A._UZ(0,"tr",47)}const Xa=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},gl=function(){return["no_peer"]};let Bl=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.store=s,this.rtlEffects=L,this.commonService=vA,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(g.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,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=[...t.pendingChannels,...t.inactiveChannels],this.channelsData=this.channelsData.sort((s,L)=>this.CLNChannelPendingState[s.state]>=this.CLNChannelPendingState[L.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:H0}}}))}onChannelClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:Fi}}}))}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(s=>{s&&this.store.dispatch((0,ht.BL)({payload:{id:t.id,channelId:t.channel_id,force:!0}}))})}loadChannelsTable(t){t.sort((s,L)=>s.active===L.active?0:L.active?1:-1),this.channels=new yA.by([...t]),this.channels.filterPredicate=(s,L)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state&&this.CLNChannelPendingState[s.state]?this.CLNChannelPendingState[s.state].toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(L),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,L)=>"state"===L?this.CLNChannelPendingState[s.state]:s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]: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(At.V),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-pending-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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,s){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 s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.YNc(5,J0,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,O0,2,0,"th",10),A.YNc(11,k0,2,1,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,j0,2,0,"th",10),A.YNc(14,K0,2,1,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,V0,2,0,"th",10),A.YNc(17,ka,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,W0,2,0,"th",10),A.YNc(20,Z0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,X0,2,0,"th",10),A.YNc(23,q0,2,4,"td",16),A.BQk(),A.ynx(24,17),A.YNc(25,Pi,2,0,"th",18),A.YNc(26,_0,4,3,"td",11),A.BQk(),A.ynx(27,19),A.YNc(28,$0,2,0,"th",18),A.YNc(29,Al,4,3,"td",11),A.BQk(),A.ynx(30,20),A.YNc(31,ja,2,0,"th",18),A.YNc(32,tl,4,3,"td",11),A.BQk(),A.ynx(33,21),A.YNc(34,el,6,0,"th",22),A.YNc(35,Ka,8,2,"td",23),A.BQk(),A.ynx(36,24),A.YNc(37,al,5,4,"td",25),A.BQk(),A.YNc(38,sl,1,3,"tr",26),A.YNc(39,ll,1,0,"tr",27),A.YNc(40,cl,1,0,"tr",28),A.qZA()(),A._UZ(41,"mat-paginator",29),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Xa,""!==s.errorMessage)),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(13,gl)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,Et.O5,Y.pW,lA.$V,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.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 ul=["peersForm"],fl=["stepper"];function hl(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.peerFormLabel)}}function El(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Address is required."),A.qZA())}function qa(r,y){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 _a(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.channelFormLabel)}}function wl(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function Cl(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be a positive number."),A.qZA())}function Ql(r,y){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 on(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Dr(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function dl(r,y){if(1&r&&(A.TgZ(0,"mat-form-field",43),A._UZ(1,"input",44),A.YNc(2,Dr,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 $a(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ml(r,y){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 pl=function(r,y){return{"mr-6":r,"mr-2":y}};let Ao=(()=>{class r{constructor(t,s,L,vA,gt,ae,un){this.dialogRef=t,this.data=s,this.store=L,this.formBuilder=vA,this.actions=gt,this.logger=ae,this.commonService=un,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.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.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[OA.kI.required]],peerAddress:[this.peerAddress,[OA.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[OA.kI.required,OA.kI.min(1),OA.kI.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}],hiddenAmount:["",[OA.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([OA.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:[OA.kI.required])}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.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(){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:this.newlyAddedPeer.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){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: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.id):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.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(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(OA.qu),A.Y36(C.eX),A.Y36(E.mQ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connect-peer"]],viewQuery:function(t,s){if(1&t&&(A.Gf(ul,5),A.Gf(fl,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first),A.iGM(L=A.CRH())&&(s.stepper=L.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",""],["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,s){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 s.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(vA){return s.stepSelectionChanged(vA)}),A.TgZ(12,"mat-step",10)(13,"form",11),A.YNc(14,hl,1,1,"ng-template",12),A.TgZ(15,"mat-form-field",1),A._UZ(16,"input",13),A.YNc(17,El,2,0,"mat-error",14),A.qZA(),A.YNc(18,qa,4,2,"div",15),A.TgZ(19,"div",16)(20,"button",17),A.NdJ("click",function(){return s.onConnectPeer()}),A._uU(21),A.qZA()()()(),A.TgZ(22,"mat-step",10)(23,"form",18),A.NdJ("ngSubmit",function(){return s.onOpenChannel()}),A.YNc(24,_a,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,wl,2,0,"mat-error",14),A.YNc(34,Cl,2,0,"mat-error",14),A.YNc(35,Ql,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,on,2,2,"mat-option",31),A.qZA()(),A.YNc(44,dl,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,$a,2,0,"mat-error",14),A.qZA()()()(),A.YNc(50,Ml,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",s.peerFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.peerFormGroup),A.xp6(4),A.Q6J("ngIf",null==s.peerFormGroup.controls.peerAddress.errors?null:s.peerFormGroup.controls.peerAddress.errors.required),A.xp6(1),A.Q6J("ngIf",""!==s.peerConnectionError),A.xp6(3),A.Oqu(""!==s.peerConnectionError?"Retry":"Add Peer"),A.xp6(1),A.Q6J("stepControl",s.channelFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.channelFormGroup),A.xp6(5),A.Q6J("step",1e3),A.xp6(2),A.hij("Remaining Bal: ",s.totalBalance-(s.channelFormGroup.controls.fundingAmount.value?s.channelFormGroup.controls.fundingAmount.value:0),""),A.xp6(3),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.min),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.max),A.xp6(6),A.Q6J("fxFlex","customperkb"!==s.channelFormGroup.controls.selFeeRate.value||s.channelFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.channelFormGroup.controls.selFeeRate.value&&!s.channelFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(27,pl,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",s.channelFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",s.channelFormGroup.controls.flgMinConf.value&&!s.channelFormGroup.controls.minConfValue.value),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError),A.xp6(3),A.Oqu(""!==s.channelConnectionError?"Retry":"Open Channel"),A.xp6(2),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(null!=s.newlyAddedPeer&&s.newlyAddedPeer.id?"Do It Later":"Close"))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,w.dn,Mr.Vq,Mr.C0,OA._Y,OA.JL,OA.sg,Mr.VY,Z.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.u,OA.Q7,Et.O5,Z.TO,f.BN,OA.wV,Z.bx,Z.R9,wA.Rr,R.gD,Et.sg,QA.ey,OA.qQ,k.q,HA.oG,Et.mk,m.oO,Mt.ZT],styles:[""]}),r})();function Il(r,y){1&r&&A._UZ(0,"mat-progress-bar",32)}function ml(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1," Alias "),A.qZA())}const Xi=function(r){return{"mr-0":r}};function vl(r,y){if(1&r&&A._UZ(0,"span",37),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xi,t.screenSize===t.screenSizeEnum.XS))}}function yr(r,y){if(1&r&&A._UZ(0,"span",38),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xi,t.screenSize===t.screenSizeEnum.XS))}}const qi=function(r){return{"max-width":r}};function Dl(r,y){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,vl,1,3,"span",35),A.YNc(2,yr,1,3,"span",36),A._uU(3),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(4,qi,s.screenSize===s.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 yl(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function xl(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function to(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1," Network Address "),A.qZA())}function _i(r,y){1&r&&(A.TgZ(0,"span"),A._uU(1,","),A._UZ(2,"br"),A.qZA())}function er(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.YNc(2,_i,3,0,"span",42),A.qZA()),2&r){const t=y.$implicit,s=y.last;A.xp6(1),A.Oqu(t),A.xp6(1),A.Q6J("ngIf",!s)}}function Fl(r,y){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,er,3,2,"span",41),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"20rem")),A.xp6(1),A.Q6J("ngForOf",null==t?null:t.netaddr)}}function Yl(r,y){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 Tl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onPeerDetach(L)}),A._uU(1,"Disconnect"),A.qZA()}}function Sl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onConnectPeer(L)}),A._uU(1,"Reconnect"),A.qZA()}}function Gl(r,y){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(L){const gt=A.CHM(t).$implicit;return A.oxw().onPeerClick(gt,L)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",46),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(vA)}),A._uU(7,"Open Channel"),A.qZA(),A.YNc(8,Tl,2,0,"mat-option",49),A.YNc(9,Sl,2,0,"mat-option",49),A.qZA()()()}if(2&r){const t=y.$implicit;A.xp6(8),A.Q6J("ngIf",t.connected),A.xp6(1),A.Q6J("ngIf",!t.connected)}}function Nl(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No connected peer."),A.qZA())}function Ul(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting peers..."),A.qZA())}function Pl(r,y){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 Rl(r,y){if(1&r&&(A.TgZ(0,"td",50),A.YNc(1,Nl,2,0,"p",42),A.YNc(2,Ul,2,0,"p",42),A.YNc(3,Pl,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 eo=function(r){return{"display-none":r}};function zl(r,y){if(1&r&&A._UZ(0,"tr",51),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,eo,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function eA(r,y){1&r&&A._UZ(0,"tr",52)}function G(r,y){1&r&&A._UZ(0,"tr",53)}const V=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},M=function(){return["no_peer"]};let x=(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.store=s,this.rtlEffects=L,this.actions=vA,this.commonService=gt,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(g.Ao).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.availableBalance=t.balance.totalBalance||0}),this.store.select(g.Wi).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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,JA.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,s){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:Ao}}}))}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:pe}}}))}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(L=>{L&&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 yA.by([...t]),this.peers.sortingDataAccessor=(s,L)=>{if("netaddr"===L){if(s.netaddr&&s.netaddr[0]){const vA=s.netaddr[0].toString().split(".");return vA[0]?+vA[0]:s.netaddr[0]}return""}return s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null},this.peers.sort=this.sort,this.peers.filterPredicate=(s,L)=>JSON.stringify(s).toLowerCase().includes(L),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(At.V),A.Y36(C.eX),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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,s){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),A.NdJ("click",function(){return s.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 s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()()(),A.TgZ(14,"div",12),A.YNc(15,Il,1,0,"mat-progress-bar",13),A.TgZ(16,"table",14,15),A.ynx(18,16),A.YNc(19,ml,2,0,"th",17),A.YNc(20,Dl,4,6,"td",18),A.BQk(),A.ynx(21,19),A.YNc(22,yl,2,0,"th",20),A.YNc(23,xl,2,4,"td",21),A.BQk(),A.ynx(24,22),A.YNc(25,to,2,0,"th",17),A.YNc(26,Fl,2,4,"td",18),A.BQk(),A.ynx(27,23),A.YNc(28,Yl,6,0,"th",24),A.YNc(29,Gl,10,2,"td",25),A.BQk(),A.ynx(30,26),A.YNc(31,Rl,4,3,"td",27),A.BQk(),A.YNc(32,zl,1,3,"tr",28),A.YNc(33,eA,1,0,"tr",29),A.YNc(34,G,1,0,"tr",30),A.qZA()(),A._UZ(35,"mat-paginator",31),A.qZA()()),2&t&&(A.xp6(8),A.Q6J("icon",s.faUsers),A.xp6(5),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.peers)("ngClass",A.VKq(12,V,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,M)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,Q.lW,f.BN,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,aA.gM,Et.sg,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.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 P=["queryRoutesForm"];function tA(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Destination pubkey is required."),A.qZA())}function oA(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function sA(r,y){1&r&&A._UZ(0,"mat-progress-bar",38)}function iA(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function NA(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function jA(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," Alias "),A.qZA())}function lt(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function qA(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," Channel "),A.qZA())}function Bt(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.channel," ")}}function pt(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," Direction "),A.qZA())}function yt(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.direction," ")}}function Gt(r,y){1&r&&(A.TgZ(0,"th",41),A._uU(1," Delay "),A.qZA())}function $t(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.delay)," ")}}function qt(r,y){1&r&&(A.TgZ(0,"th",41),A._uU(1," Amount (Sats) "),A.qZA())}function ie(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi)/1e3)," ")}}function Be(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Amount mSat "),A.qZA())}function we(r,y){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.amount_msat," ")}}function Ce(r,y){1&r&&(A.TgZ(0,"th",45)(1,"span",42),A._uU(2,"Actions"),A.qZA()())}function He(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",44)(1,"button",46),A.NdJ("click",function(L){const gt=A.CHM(t).$implicit;return A.oxw().onHopClick(gt,L)}),A._uU(2,"View Info"),A.qZA()()}}function sn(r,y){1&r&&A._UZ(0,"tr",47)}function Je(r,y){1&r&&A._UZ(0,"tr",48)}const le=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}};let ln=(()=>{class r{constructor(t,s,L){this.store=t,this.clnEffects=s,this.commonService=L,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 yA.by([]),this.qrHops.data=[],t.routes&&t.routes.length&&t.routes.length>0?(this.flgLoading[0]=!1,this.qrHops=new yA.by([...t.routes]),this.qrHops.data=t.routes):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]: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,s){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(In.J),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-query-routes"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(P,7)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.form=L.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,s){if(1&t){const L=A.EpF();A.TgZ(0,"div",0)(1,"form",1,2),A.NdJ("ngSubmit",function(){return A.CHM(L),A.MAs(2).form.valid&&s.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(gt){return s.destinationPubkey=gt}),A.qZA(),A.YNc(10,tA,2,0,"mat-error",8),A.qZA(),A.TgZ(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(gt){return s.amount=gt}),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 s.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,sA,1,0,"mat-progress-bar",19),A.TgZ(26,"table",20,21),A.ynx(28,22),A.YNc(29,iA,2,0,"th",23),A.YNc(30,NA,2,1,"td",24),A.BQk(),A.ynx(31,25),A.YNc(32,jA,2,0,"th",23),A.YNc(33,lt,2,1,"td",24),A.BQk(),A.ynx(34,26),A.YNc(35,qA,2,0,"th",23),A.YNc(36,Bt,2,1,"td",24),A.BQk(),A.ynx(37,27),A.YNc(38,pt,2,0,"th",23),A.YNc(39,yt,2,1,"td",24),A.BQk(),A.ynx(40,28),A.YNc(41,Gt,2,0,"th",29),A.YNc(42,$t,4,3,"td",24),A.BQk(),A.ynx(43,30),A.YNc(44,qt,2,0,"th",29),A.YNc(45,ie,4,3,"td",24),A.BQk(),A.ynx(46,31),A.YNc(47,Be,2,0,"th",32),A.YNc(48,we,2,1,"td",33),A.BQk(),A.ynx(49,34),A.YNc(50,Ce,3,0,"th",35),A.YNc(51,He,3,0,"td",33),A.BQk(),A.YNc(52,sn,1,0,"tr",36),A.YNc(53,Je,1,0,"tr",37),A.qZA()()()}2&t&&(A.xp6(4),A.Q6J("icon",s.faExclamationTriangle),A.xp6(4),A.Q6J("ngModel",s.destinationPubkey),A.xp6(2),A.Q6J("ngIf",!s.destinationPubkey),A.xp6(2),A.Q6J("ngModel",s.amount)("step",1e3)("min",0),A.xp6(1),A.Q6J("ngIf",!s.amount),A.xp6(8),A.Q6J("icon",s.faRoute),A.xp6(4),A.Q6J("ngIf",!0===s.flgLoading[0]),A.xp6(1),A.Q6J("dataSource",s.qrHops)("ngClass",A.VKq(14,le,"error"===s.flgLoading[0])),A.xp6(26),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns))},directives:[Ct.xw,Ct.yH,OA._Y,OA.JL,OA.F,Ct.Wh,f.BN,Z.KE,Yt.Nt,OA.Fj,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO,OA.wV,OA.qQ,k.q,Q.lW,lA.$V,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,yA.as,yA.XQ,yA.nj,yA.Gk],pipes:[Et.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 We(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}let Oe=(()=>{class r{constructor(t,s,L){this.dataService=t,this.snackBar=s,this.logger=L,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(PA.D),A.Y36(Tr.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,s){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(vA){return s.message=vA})("keyup",function(){return s.onMessageChange()}),A.qZA(),A.YNc(5,We,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"div",6)(7,"button",7),A.NdJ("click",function(){return s.resetData()}),A._uU(8,"Clear Field"),A.qZA(),A.TgZ(9,"button",8),A.NdJ("click",function(){return s.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(vA){return s.onCopyField(vA)}),A._uU(19,"Copy Signature"),A.qZA()()()()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(6),A.Q6J("inset",!0),A.xp6(5),A.Oqu(s.signature),A.xp6(2),A.Q6J("payload",s.signature))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO,Q.lW,AA.d,Kr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function he(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}function qe(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Signature is required."),A.qZA())}function Ue(r,y){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 Fe(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Pubkey Used"),A.qZA())}function $e(r,y){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 Rn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",21)(1,"button",22),A.NdJ("copied",function(L){return A.CHM(t),A.oxw(2).onCopyField(L)}),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 gn(r,y){if(1&r&&(A.TgZ(0,"div",15),A._UZ(1,"mat-divider",16),A.TgZ(2,"div",17),A.YNc(3,Fe,2,0,"p",5),A.qZA(),A.YNc(4,$e,3,1,"div",18),A.YNc(5,Rn,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 mn=(()=>{class r{constructor(t,s,L){this.dataService=t,this.snackBar=s,this.logger=L,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(PA.D),A.Y36(Tr.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,s){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(vA){return s.message=vA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(5,he,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"mat-form-field",3)(7,"input",6,7),A.NdJ("ngModelChange",function(vA){return s.signature=vA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(9,qe,2,0,"mat-error",5),A.qZA(),A.YNc(10,Ue,4,0,"p",8),A.TgZ(11,"div",9)(12,"button",10),A.NdJ("click",function(){return s.resetData()}),A._uU(13,"Clear Fields"),A.qZA(),A.TgZ(14,"button",11),A.NdJ("click",function(){return s.onVerify()}),A._uU(15,"Verify"),A.qZA()(),A.YNc(16,gn,6,4,"div",12),A.qZA()()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(2),A.Q6J("ngModel",s.signature),A.xp6(2),A.Q6J("ngIf",!s.signature),A.xp6(1),A.Q6J("ngIf",s.showVerifyStatus&&!s.verifyRes.verified),A.xp6(6),A.Q6J("ngIf",s.showVerifyStatus&&s.verifyRes.verified))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO,S.Hw,Q.lW,AA.d,Kr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function Gn(r,y){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 Jn(r,y){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(L){return A.CHM(t),A.oxw().filterValue=L})("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 Dn(r,y){1&r&&A._UZ(0,"mat-progress-bar",33)}function Mn(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Status"),A.qZA())}function On(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.status)}}function kn(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Received Time"),A.qZA())}function me(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Pe(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Resolved Time"),A.qZA())}function Ye(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function Ze(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"In Channel"),A.qZA())}function ke(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function Bn(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Out Channel"),A.qZA())}function $i(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function zn(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount In (Sats)"),A.qZA())}function Aa(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 ta(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount Out (Sats)"),A.qZA())}function Ll(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 bl(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fee (mSat)"),A.qZA())}function Ri(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.fee))}}function _r(r,y){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 ea(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"button",43),A.NdJ("click",function(L){const gt=A.CHM(t).$implicit;return A.oxw(2).onForwardingEventClick(gt,L)}),A._uU(2,"View Info"),A.qZA()()}}function zi(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No forwarding history available."),A.qZA())}function Li(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting forwarding history..."),A.qZA())}function $r(r,y){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,y){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,zi,2,0,"p",45),A.YNc(2,Li,2,0,"p",45),A.YNc(3,$r,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 ti=function(r){return{"display-none":r}};function ei(r,y){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ti,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function ni(r,y){1&r&&A._UZ(0,"tr",47)}function ri(r,y){1&r&&A._UZ(0,"tr",48)}const ii=function(){return["no_event"]};function ai(r,y){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,Dn,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,Mn,2,0,"th",15),A.YNc(6,On,2,1,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,kn,2,0,"th",15),A.YNc(9,me,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,Pe,2,0,"th",15),A.YNc(12,Ye,3,4,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,Ze,2,0,"th",15),A.YNc(15,ke,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,Bn,2,0,"th",15),A.YNc(18,$i,2,1,"td",16),A.BQk(),A.ynx(19,21),A.YNc(20,zn,2,0,"th",22),A.YNc(21,Aa,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,ta,2,0,"th",22),A.YNc(24,Ll,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,bl,2,0,"th",22),A.YNc(27,Ri,4,3,"td",16),A.BQk(),A.ynx(28,25),A.YNc(29,_r,6,0,"th",26),A.YNc(30,ea,3,0,"td",27),A.BQk(),A.ynx(31,28),A.YNc(32,Ai,4,3,"td",29),A.BQk(),A.YNc(33,ei,1,3,"tr",30),A.YNc(34,ni,1,0,"tr",31),A.YNc(35,ri,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,ii)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Cr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",49),A.NdJ("page",function(L){return A.CHM(t),A.oxw().onPageChange(L)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalForwardedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let na=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.commonService=s,this.store=L,this.datePipe=vA,this.eventsData=[],this.filterValue="",this.flgCompatible=!0,this.information={},this.successfulEvents=[],this.displayedColumns=[],this.flgSticky=!1,this.indexOffset=-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.store.select(g.Bo).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.ey))).subscribe(([t,s])=>{this.information=s,this.flgCompatible=!this.information.api_version||this.commonService.isVersionCompatible(this.information.api_version,"0.7.3"),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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,this.indexOffset=t.forwardingHistory.offset,this.successfulEvents=t.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sort&&this.paginator&&this.loadForwardingEventsTable(this.flgCompatible?this.successfulEvents:this.successfulEvents.slice(0,this.pageSize)),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.flgCompatible?this.successfulEvents:this.successfulEvents.slice(0,this.pageSize))}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,this.indexOffset=0,this.totalForwardedTransactions=this.eventsData.length,this.paginator&&this.paginator.firstPage(),t.eventsData.firstChange||this.loadForwardingEventsTable(this.successfulEvents.slice(0,this.pageSize))),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,s){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 yA.by([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.forwardingHistoryEvents.filterPredicate=(s,L)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase()+" ":"")+(s.resolved_time?this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase()+" ":"")+(s.in_channel?s.in_channel.toLowerCase()+" ":"")+(s.out_channel?s.out_channel.toLowerCase()+" ":"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase()+" ":"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase()+" ":"")+(s.in_msatoshi?s.in_msatoshi/1e3+" ":"")+(s.out_msatoshi?s.out_msatoshi/1e3+" ":"")+(s.fee?s.fee+" ":"")).includes(L),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())}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.flgCompatible?this.store.dispatch((0,ht.u0)({payload:{status:a.OO.SETTLED,maxLen:this.pageSize,offset:this.indexOffset}})):this.loadForwardingEventsTable(this.successfulEvents.slice(this.indexOffset,this.indexOffset+this.pageSize))}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(e.v),A.Y36(u.yh),A.Y36(Et.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-forwarding-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Gn,2,1,"div",1),A.YNc(2,Jn,4,1,"div",2),A.YNc(3,ai,36,7,"div",3),A.YNc(4,Cr,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,R.gD,R.$L,QA.ey,Q.lW,yA.mD,yA.yh,yA.Ke,yA.Q2,Et.mk,m.oO,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function no(r,y){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 ro(r,y){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("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(L){return A.CHM(t),A.oxw().selFilter=L}),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function io(r,y){1&r&&A._UZ(0,"mat-progress-bar",32)}function ra(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Received Time"),A.qZA())}function Wl(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Zl(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Resolved Time"),A.qZA())}function Xl(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function ql(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"In Channel"),A.qZA())}function _l(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function $l(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Out Channel"),A.qZA())}function Ac(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function tc(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount In (Sats)"),A.qZA())}function ec(r,y){if(1&r&&(A.TgZ(0,"td",34)(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 nc(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount Out (Sats)"),A.qZA())}function rc(r,y){if(1&r&&(A.TgZ(0,"td",34)(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 ic(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Fee (mSats)"),A.qZA())}function ac(r,y){if(1&r&&(A.TgZ(0,"td",34)(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,null==t?null:t.fee,"1.0-0"))}}function oc(r,y){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(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function sc(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",41)(1,"button",42),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onFailedEventClick(vA)}),A._uU(2,"View Info"),A.qZA()()}}function lc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function cc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function gc(r,y){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 Bc(r,y){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,lc,2,0,"p",44),A.YNc(2,cc,2,0,"p",44),A.YNc(3,gc,2,1,"p",44),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 uc=function(r){return{"display-none":r}};function fc(r,y){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,uc,(null==t.failedForwardingEvents?null:t.failedForwardingEvents.data)&&(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)>0))}}function hc(r,y){1&r&&A._UZ(0,"tr",46)}function Ec(r,y){1&r&&A._UZ(0,"tr",47)}const wc=function(){return["no_event"]};function Cc(r,y){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,io,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,ra,2,0,"th",15),A.YNc(6,Wl,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,Zl,2,0,"th",15),A.YNc(9,Xl,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,ql,2,0,"th",15),A.YNc(12,_l,2,1,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,$l,2,0,"th",15),A.YNc(15,Ac,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,tc,2,0,"th",21),A.YNc(18,ec,4,4,"td",16),A.BQk(),A.ynx(19,22),A.YNc(20,nc,2,0,"th",21),A.YNc(21,rc,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,ic,2,0,"th",21),A.YNc(24,ac,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,oc,6,0,"th",25),A.YNc(27,sc,3,0,"td",26),A.BQk(),A.ynx(28,27),A.YNc(29,Bc,4,3,"td",28),A.BQk(),A.YNc(30,fc,1,3,"tr",29),A.YNc(31,hc,1,0,"tr",30),A.YNc(32,Ec,1,0,"tr",31),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,wc)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Qc(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",48),A.NdJ("page",function(L){return A.CHM(t),A.oxw().onPageChange(L)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalFailedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let dc=(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.commonService=s,this.store=L,this.datePipe=vA,this.router=gt,this.flgCompatible=!0,this.information={},this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.indexOffset=-1,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,maxLen:this.pageSize,offset:0}})),this.store.select(g.xQ).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.ey))).subscribe(([t,s])=>{this.information=s,this.flgCompatible=!this.information.api_version||this.commonService.isVersionCompatible(this.information.api_version,"0.7.3"),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalFailedTransactions=t.failedForwardingHistory.totalForwards,this.indexOffset=t.failedForwardingHistory.offset,this.failedEvents=t.failedForwardingHistory.listForwards||[],this.failedEvents.length>0&&this.sort&&this.paginator&&this.loadFailedEventsTable(this.flgCompatible?this.failedEvents:this.failedEvents.slice(0,this.pageSize)),this.logger.info(t)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadFailedEventsTable(this.flgCompatible?this.failedEvents:this.failedEvents.slice(0,this.pageSize))}onFailedEventClick(t){const s=[[{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&&s.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:s}}}))}loadFailedEventsTable(t){this.failedForwardingEvents=new yA.by([...t]),this.failedForwardingEvents.sort=this.sort,this.failedForwardingEvents.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.failedForwardingEvents.filterPredicate=(s,L)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.resolved_time?this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.payment_hash?s.payment_hash.toLowerCase():"")+(s.in_channel?s.in_channel.toLowerCase():"")+(s.out_channel?s.out_channel.toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"")+(s.out_msatoshi?s.out_msatoshi/1e3:"")+(s.fee?s.fee:"")).includes(L),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()}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.flgCompatible?this.store.dispatch((0,ht.u0)({payload:{status:a.OO.FAILED,maxLen:this.pageSize,offset:this.indexOffset}})):this.loadFailedEventsTable(this.failedEvents.slice(this.indexOffset,this.indexOffset+this.pageSize))}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(e.v),A.Y36(u.yh),A.Y36(Et.uU),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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","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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",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","","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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,no,2,1,"div",1),A.YNc(2,ro,4,1,"div",2),A.YNc(3,Cc,33,7,"div",3),A.YNc(4,Qc,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,R.gD,R.$L,QA.ey,Q.lW,yA.mD,yA.yh,yA.Ke,yA.Q2,Et.mk,m.oO,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const Mc=["tableIn"],pc=["tableOut"],Ic=["paginatorIn"],mc=["paginatorOut"];function vc(r,y){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 Dc(r,y){1&r&&A._UZ(0,"mat-progress-bar",36)}function yc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}const ao=function(r){return{"max-width":r}};function xc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Fc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Yc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Tc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Sc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function Nc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function Uc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Pc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Rc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 zc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No incoming routing peer available."),A.qZA())}function Lc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting incoming routing peers..."),A.qZA())}function bc(r,y){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 Gc(r,y){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,zc,2,0,"p",43),A.YNc(2,Lc,2,0,"p",43),A.YNc(3,bc,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 Hl=function(r){return{"display-none":r}};function Hc(r,y){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hl,(null==t.RoutingPeersIncoming?null:t.RoutingPeersIncoming.data)&&(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function Jc(r,y){1&r&&A._UZ(0,"tr",45)}function Oc(r,y){1&r&&A._UZ(0,"tr",46)}function kc(r,y){1&r&&A._UZ(0,"mat-progress-bar",36)}function jc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}function Kc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Vc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Wc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Zc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Xc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function qc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function _c(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 $c(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Ag(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 tg(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No outgoing routing peer available."),A.qZA())}function eg(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting outgoing routing peers..."),A.qZA())}function ng(r,y){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 rg(r,y){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,tg,2,0,"p",43),A.YNc(2,eg,2,0,"p",43),A.YNc(3,ng,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 ig(r,y){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hl,(null==t.RoutingPeersOutgoing?null:t.RoutingPeersOutgoing.data)&&(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function ag(r,y){1&r&&A._UZ(0,"tr",45)}function og(r,y){1&r&&A._UZ(0,"tr",46)}const sg=function(r,y){return{"mt-2":r,"mt-1":y}},lg=function(){return["no_incoming_event"]},cg=function(r){return{"mt-2":r}},gg=function(){return["no_outgoing_event"]};function Bg(r,y){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(L){return A.CHM(t),A.oxw().filterIn=L}),A.qZA()()(),A.TgZ(7,"div",10),A.YNc(8,Dc,1,0,"mat-progress-bar",11),A.TgZ(9,"table",12,13),A.ynx(11,14),A.YNc(12,yc,2,0,"th",15),A.YNc(13,xc,2,4,"td",16),A.BQk(),A.ynx(14,17),A.YNc(15,Fc,2,0,"th",15),A.YNc(16,Yc,2,4,"td",16),A.BQk(),A.ynx(17,18),A.YNc(18,Tc,2,0,"th",19),A.YNc(19,Sc,4,3,"td",20),A.BQk(),A.ynx(20,21),A.YNc(21,Nc,2,0,"th",19),A.YNc(22,Uc,4,4,"td",20),A.BQk(),A.ynx(23,22),A.YNc(24,Pc,2,0,"th",19),A.YNc(25,Rc,4,4,"td",20),A.BQk(),A.ynx(26,23),A.YNc(27,Gc,4,3,"td",24),A.BQk(),A.YNc(28,Hc,1,3,"tr",25),A.YNc(29,Jc,1,0,"tr",26),A.YNc(30,Oc,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(L){return A.CHM(t),A.oxw().filterOut=L}),A.qZA()()(),A.TgZ(39,"div",31),A.YNc(40,kc,1,0,"mat-progress-bar",11),A.TgZ(41,"table",32,33),A.ynx(43,14),A.YNc(44,jc,2,0,"th",15),A.YNc(45,Kc,2,4,"td",16),A.BQk(),A.ynx(46,17),A.YNc(47,Vc,2,0,"th",15),A.YNc(48,Wc,2,4,"td",16),A.BQk(),A.ynx(49,18),A.YNc(50,Zc,2,0,"th",19),A.YNc(51,Xc,4,3,"td",20),A.BQk(),A.ynx(52,21),A.YNc(53,qc,2,0,"th",19),A.YNc(54,_c,4,4,"td",20),A.BQk(),A.ynx(55,22),A.YNc(56,$c,2,0,"th",19),A.YNc(57,Ag,4,4,"td",20),A.BQk(),A.ynx(58,34),A.YNc(59,rg,4,3,"td",24),A.BQk(),A.YNc(60,ig,1,3,"tr",25),A.YNc(61,ag,1,0,"tr",26),A.YNc(62,og,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,sg,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,lg)),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,cg,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,gg)),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 ug=(()=>{class r{constructor(t,s,L){this.logger=t,this.commonService=s,this.store=L,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(g.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="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 s=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new yA.by(s[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(L,vA)=>JSON.stringify(L).toLowerCase().includes(vA),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new yA.by(s[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(L,vA)=>JSON.stringify(L).toLowerCase().includes(vA),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new yA.by([]),this.RoutingPeersOutgoing=new yA.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter(),this.logger.info(this.RoutingPeersIncoming),this.logger.info(this.RoutingPeersOutgoing)}groupRoutingPeers(t){const s=[],L=[];return t.forEach(vA=>{const gt=s.find(un=>un.channel_id===vA.in_channel),ae=L.find(un=>un.channel_id===vA.out_channel);gt?(gt.events++,gt.total_amount=+gt.total_amount+ +vA.in_msatoshi,gt.total_fee=vA.in_msatoshi-vA.out_msatoshi+ +gt.total_fee):s.push({channel_id:vA.in_channel,alias:vA.in_channel_alias,events:1,total_amount:vA.in_msatoshi,total_fee:vA.in_msatoshi-vA.out_msatoshi}),ae?(ae.events++,ae.total_amount=+ae.total_amount+ +vA.out_msatoshi,ae.total_fee=vA.in_msatoshi-vA.out_msatoshi+ +ae.total_fee):L.push({channel_id:vA.out_channel,alias:vA.out_channel_alias,events:1,total_amount:vA.out_msatoshi,total_fee:vA.in_msatoshi-vA.out_msatoshi})}),[this.commonService.sortDescByKey(s,"total_fee"),this.commonService.sortDescByKey(L,"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(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(Mc,5,rt.YE),A.Gf(pc,5,rt.YE),A.Gf(Ic,5),A.Gf(mc,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sortIn=L.first),A.iGM(L=A.CRH())&&(s.sortOut=L.first),A.iGM(L=A.CRH())&&(s.paginatorIn=L.first),A.iGM(L=A.CRH())&&(s.paginatorOut=L.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,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,vc,2,1,"div",1),A.YNc(2,Bg,65,29,"div",2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,Et.mk,m.oO,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.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 fg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",7),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let hg=(()=>{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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.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(_t.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,s){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,fg,2,3,"div",6),A.qZA(),A._UZ(9,"router-outlet"),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartBar),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ft.BU,Et.sg,ft.Nj,_t.rH,_t.lC],styles:[""]}),r})();var Jl=Nt(7772),Ol=Nt(7671),kl=Nt(1210);function Eg(r,y){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 wg(r,y){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 Cg(r,y){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 Qg(r,y){1&r&&(A.TgZ(0,"div",14),A._uU(1,"No routing report for the selected period"),A.qZA())}function dg(r,y){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=y.model,s=A.oxw(2);A.xp6(2),A.hij("Events: ",A.lcZ(3,2,(s.selReportBy===s.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),A.xp6(3),A.hij("Fee: ",A.xi3(6,4,(s.selReportBy===s.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function Mg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical",18),A.NdJ("select",function(L){return A.CHM(t),A.oxw().onChartBarSelected(L)})("mouseup",function(L){return A.CHM(t),A.oxw().onChartMouseUp(L)}),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 pg(r,y){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 Ig=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.commonService=s,this.store=L,this.dataService=vA,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.select(g.Bo).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.ey))).subscribe(([t,s])=>{t.forwardingHistory.status===a.OO.SETTLED&&(t.apiCallStatus.status===a.Bn.COMPLETED||t.apiCallStatus.status===a.Bn.ERROR)&&(s.api_version&&this.commonService.isVersionCompatible(s.api_version,"0.7.3")?this.dataService.getForwardingHistory("CLN","","",a.OO.SETTLED).pipe((0,i.R)(this.unSubs[0])).subscribe(L=>{this.events=L||[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(L)}):(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),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,s){const L=Math.round(t.getTime()/1e3),vA=Math.round(s.getTime()/1e3);this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeMsat=null,this.events&&this.events.length>0&&(this.events.forEach(gt=>{gt.received_time>=L&>.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){const s=Math.round(t.getTime()/1e3),L=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let vA=0;vA<12;vA++)L.push({name:a.gg[vA].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod.map(vA=>{const gt=new Date(1e3*+vA.received_time).getMonth();return L[gt].value=L[gt].value+ +vA.fee/1e3,L[gt].extra.totalEvents=L[gt].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}else{for(let vA=0;vA{const gt=Math.floor((+vA.received_time-s)/this.secondsInADay);return L[gt].value=L[gt].value+ +vA.fee/1e3,L[gt].extra.totalEvents=L[gt].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}return L}prepareEventsReport(t){const s=Math.round(t.getTime()/1e3),L=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let vA=0;vA<12;vA++)L.push({name:a.gg[vA].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod.map(vA=>{const gt=new Date(1e3*+vA.received_time).getMonth();return L[gt].value=L[gt].value+1,L[gt].extra.totalFees=L[gt].extra.totalFees+ +vA.fee/1e3,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}else{for(let vA=0;vA{const gt=Math.floor((+vA.received_time-s)/this.secondsInADay);return L[gt].value=L[gt].value+1,L[gt].extra.totalFees=L[gt].extra.totalFees+ +vA.fee/1e3,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}return L}onSelectionChange(t){const s=t.selDate.getMonth(),L=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(L,0,1,0,0,0),this.endDate=new Date(L,11,31,23,59,59)):(this.startDate=new Date(L,s,1,0,0,0),this.endDate=new Date(L,s,this.getMonthDays(s,L),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,s){return 1===t&&s%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(e.v),A.Y36(u.yh),A.Y36(PA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(vA){return s.onChartMouseUp(vA)})},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,s){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(vA){return s.onSelectionChange(vA)}),A.qZA(),A.TgZ(2,"div",2)(3,"mat-radio-group",3),A.NdJ("ngModelChange",function(vA){return s.selReportBy=vA})("change",function(){return s.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,Eg,4,0,"div",8),A.YNc(12,wg,2,1,"div",9),A.YNc(13,Cg,4,8,"div",10),A.YNc(14,Qg,2,0,"div",8),A.TgZ(15,"div",11),A.YNc(16,Mg,3,11,"ngx-charts-bar-vertical",12),A.qZA(),A.TgZ(17,"div",11),A.YNc(18,pg,1,2,"rtl-cln-forwarding-history",13),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selReportBy),A.xp6(3),A.s9C("value",s.reportBy.FEES),A.xp6(2),A.s9C("value",s.reportBy.EVENTS),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.ERROR),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&(s.routingReportData.length<=0||s.filteredEventsBySelectedPeriod.length<=0)),A.xp6(2),A.Q6J("ngIf",s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(2),A.Q6J("ngIf",s.filteredEventsBySelectedPeriod&&s.filteredEventsBySelectedPeriod.length>0))},directives:[Ct.xw,Ct.Wh,Ct.yH,Ol.D,zA.VQ,OA.JJ,OA.On,zA.U0,Et.O5,Y.pW,kl.K$,na],pipes:[Et.JJ],styles:[""],data:{animation:[Jl.J]}}),r})();var mg=Nt(165);function vg(r,y){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 Dg(r,y){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 yg(r,y){if(1&r&&(A.TgZ(0,"div",8),A.YNc(1,vg,4,7,"div",9),A.YNc(2,Dg,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 xg(r,y){1&r&&(A.TgZ(0,"div",11),A._uU(1,"No transactions report for the selected period"),A.qZA())}function Fg(r,y){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=y.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 Yg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical-2d",12),A.NdJ("select",function(L){return A.CHM(t),A.oxw().onChartBarSelected(L)})("mouseup",function(L){return A.CHM(t),A.oxw().onChartMouseUp(L)}),A.YNc(1,Fg,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 Tg(r,y){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 Sg=(()=>{class r{constructor(t,s,L){this.logger=t,this.commonService=s,this.store=L,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(g.PP).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.gc))).subscribe(([t,s])=>{this.payments=t.payments,this.invoices=s.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,s){const L=Math.round(t.getTime()/1e3),vA=Math.round(s.getTime()/1e3),gt=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const ae=this.payments.filter(Qe=>"complete"===Qe.status&&Qe.created_at>=L&&Qe.created_at"paid"===Qe.status&&Qe.paid_at>=L&&Qe.paid_at{const An=new Date(1e3*Qe.created_at).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,gt[An].series[0].value=gt[An].series[0].value+Qe.msatoshi_sent/1e3,gt[An].series[0].extra.total=gt[An].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const An=new Date(1e3*+Qe.paid_at).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,gt[An].series[1].value=gt[An].series[1].value+Qe.msatoshi_received/1e3,gt[An].series[1].extra.total=gt[An].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let Qe=0;Qe{const An=Math.floor((+Qe.created_at-L)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,gt[An].series[0].value=gt[An].series[0].value+Qe.msatoshi_sent/1e3,gt[An].series[0].extra.total=gt[An].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const An=Math.floor((+Qe.paid_at-L)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,gt[An].series[1].value=gt[An].series[1].value+Qe.msatoshi_received/1e3,gt[An].series[1].extra.total=gt[An].series[1].extra.total+1,this.transactionsReportSummary})}return gt}prepareTableData(){return this.transactionsReportData.reduce((t,s)=>s.series[0].extra.total>0||s.series[1].extra.total>0?t.concat({date:s.date,amount_paid:s.series[0].value,num_payments:s.series[0].extra.total,amount_received:s.series[1].value,num_invoices:s.series[1].extra.total}):t,[])}onSelectionChange(t){const s=t.selDate.getMonth(),L=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(L,0,1,0,0,0),this.endDate=new Date(L,11,31,23,59,59)):(this.startDate=new Date(L,s,1,0,0,0),this.endDate=new Date(L,s,this.getMonthDays(s,L),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,s){return 1===t&&s%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(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(vA){return s.onChartMouseUp(vA)})},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,s){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(vA){return s.onSelectionChange(vA)}),A.qZA(),A.TgZ(2,"div",2),A.YNc(3,yg,3,3,"div",3),A.YNc(4,xg,2,0,"div",4),A.TgZ(5,"div",5),A.YNc(6,Yg,3,13,"ngx-charts-bar-vertical-2d",6),A.qZA(),A.TgZ(7,"div",5),A.YNc(8,Tg,1,3,"rtl-transactions-report-table",7),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(1),A.Q6J("ngIf",s.transactionsNonZeroReportData.length<=0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0))},directives:[Ct.xw,Ct.Wh,Ct.yH,Ol.D,Et.O5,kl.H5,mg.g],pipes:[Et.JJ],styles:[""],data:{animation:[Jl.J]}}),r})();var ze=Nt(1643),Ng=Nt(9442);function Ug(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Pg=(()=>{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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.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(_t.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,s){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,Ug,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",s.faSearch),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ft.BU,Et.sg,ft.Nj,_t.rH,Ct.yH,_t.lC],styles:[""]}),r})();var Rg=Nt(4641),zg=Nt(8493);function Lg(r,y){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 bg(r,y){if(1&r&&(A.TgZ(0,"div",21),A._UZ(1,"fa-icon",22),A.YNc(2,Lg,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 Gg=(()=>{class r{constructor(t,s,L,vA,gt,ae){this.dialogRef=t,this.data=s,this.store=L,this.decimalPipe=vA,this.commonService=gt,this.actions=ae,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.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,JA.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.fiatConversion&&this.offerValue>99&&(this.offerValueHint="",this.commonService.convertCurrency(this.offerValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.offerValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},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(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(Et.JJ),A.Y36(e.v),A.Y36(C.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,s){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(vA){return s.description=vA}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(vA){return s.offerValue=vA})("keyup",function(){return s.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(vA){return s.vendor=vA}),A.qZA()()(),A.YNc(22,bg,3,2,"div",17),A.TgZ(23,"div",18)(24,"button",19),A.NdJ("click",function(){return s.resetData()}),A._uU(25,"Clear Field"),A.qZA(),A.TgZ(26,"button",20),A.NdJ("click",function(){return s.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",s.description),A.xp6(3),A.Q6J("ngModel",s.offerValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.offerValueHint),A.xp6(2),A.Q6J("ngModel",s.vendor),A.xp6(1),A.Q6J("ngIf",""!==s.offerError))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,Mt.ZT,w.dn,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,Z.R9,Z.bx,Et.O5,f.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var jl=Nt(1462);function Hg(r,y){1&r&&A._UZ(0,"mat-progress-bar",28)}function Jg(r,y){1&r&&(A.TgZ(0,"th",29),A._uU(1," Offer ID "),A.qZA())}const Kl=function(r){return{"mr-0":r}};function Og(r,y){if(1&r&&A._UZ(0,"span",35),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Kl,t.screenSize===t.screenSizeEnum.XS))}}function kg(r,y){if(1&r&&A._UZ(0,"span",36),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Kl,t.screenSize===t.screenSizeEnum.XS))}}const jg=function(r){return{"max-width":r}};function Kg(r,y){if(1&r&&(A.TgZ(0,"td",30)(1,"div",31)(2,"span",32),A.YNc(3,Og,1,3,"span",33),A.YNc(4,kg,1,3,"span",34),A._uU(5),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,jg,s.screenSize===s.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 Vg(r,y){1&r&&(A.TgZ(0,"th",29),A._uU(1," Single Use "),A.qZA())}function Wg(r,y){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t.single_use?"Yes":"No")}}function Zg(r,y){1&r&&(A.TgZ(0,"th",29),A._uU(1," Used "),A.qZA())}function Xg(r,y){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",t.used?"Yes":"No"," ")}}function qg(r,y){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 _g(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onDisableOffer(L)}),A._uU(1,"Disable Offer"),A.qZA()}}function $g(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onPrintOffer(L)}),A._uU(1,"Export QR code"),A.qZA()}}const AB=function(r){return{"px-3":r}};function tB(r,y){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 vA=A.CHM(t).$implicit;return A.oxw().onOfferClick(vA)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,_g,2,0,"mat-option",44),A.YNc(7,$g,2,0,"mat-option",44),A.qZA()()()}if(2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngClass",A.VKq(3,AB,s.screenSize!==s.screenSizeEnum.XS)),A.xp6(6),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",t.active)}}function eB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer available."),A.qZA())}function nB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offers..."),A.qZA())}function rB(r,y){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 iB(r,y){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,eB,2,0,"p",46),A.YNc(2,nB,2,0,"p",46),A.YNc(3,rB,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 aB=function(r){return{"display-none":r}};function oB(r,y){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,aB,(null==t.offers?null:t.offers.data)&&(null==t.offers||null==t.offers.data?null:t.offers.data.length)>0))}}function sB(r,y){1&r&&A._UZ(0,"tr",48)}function lB(r,y){1&r&&A._UZ(0,"tr",49)}const cB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},gB=function(){return["no_offer"]};let BB=(()=>{class r{constructor(t,s,L,vA,gt,ae,un){this.logger=t,this.store=s,this.commonService=L,this.rtlEffects=vA,this.dataService=gt,this.decimalPipe=ae,this.datePipe=un,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(g.Y_).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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:Gg}}}))}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:jl.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(s=>{s&&this.store.dispatch((0,ht.i9)({payload:{offer_id:t.offer_id}}))})}onPrintOffer(t){this.dataService.decodePayment(t.bolt12,!1).pipe((0,UA.q)(1)).subscribe(s=>{s.offer_id&&!s.amount_msat?(s.amount_msat="0msat",s.amount=0):s.amount=+(s.amount||s.amount_msat.slice(0,-4));const L={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:s.vendor||s.issuer||"",alignment:"center",fontSize:25,color:"#272727",margin:[0,20,0,0]},content:[{svg:'',width:249,height:40,alignment:"center"},{text:s.description?s.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==s?void 0:s.amount_msat)&&0!==(null==s?void 0:s.amount)?this.decimalPipe.transform(s.amount/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"}};Rg.createPdf(L,null,null,zg.I.vfs).download("Offer-"+(s&&s.description?s.description:t.bolt12))})}applyFilter(){this.offers.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offers=new yA.by(t?[...t]:[]),this.offers.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.offers.sort=this.sort,this.offers.filterPredicate=(s,L)=>(("active"===L||"inactive"===L||"used"===L||"unused"===L||"single"===L||"multiple"===L)&&(L=" "+L),((s.active?" active":" inactive")+(s.used?" used":" unused")+(s.single_use?" single":" multiple")+JSON.stringify(s).toLowerCase()).includes(L)),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(e.v),A.Y36(At.V),A.Y36(PA.D),A.Y36(Et.JJ),A.Y36(Et.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offers-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return s.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 s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.TgZ(12,"div",10),A.YNc(13,Hg,1,0,"mat-progress-bar",11),A.TgZ(14,"table",12,13),A.ynx(16,14),A.YNc(17,Jg,2,0,"th",15),A.YNc(18,Kg,6,6,"td",16),A.BQk(),A.ynx(19,17),A.YNc(20,Vg,2,0,"th",15),A.YNc(21,Wg,2,1,"td",16),A.BQk(),A.ynx(22,18),A.YNc(23,Zg,2,0,"th",15),A.YNc(24,Xg,2,1,"td",16),A.BQk(),A.ynx(25,19),A.YNc(26,qg,6,0,"th",20),A.YNc(27,tB,8,5,"td",21),A.BQk(),A.ynx(28,22),A.YNc(29,iB,4,3,"td",23),A.BQk(),A.YNc(30,oB,1,3,"tr",24),A.YNc(31,sB,1,0,"tr",25),A.YNc(32,lB,1,0,"tr",26),A.qZA()(),A._UZ(33,"mat-paginator",27),A.qZA()()),2&t&&(A.xp6(7),A.Q6J("icon",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offers)("ngClass",A.VKq(12,cB,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,gB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,Q.lW,f.BN,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,aA.gM,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.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 uB(r,y){1&r&&A._UZ(0,"mat-progress-bar",30)}function fB(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Updated At "),A.qZA())}function hB(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,t.lastUpdatedAt,"dd/MMM/y HH:mm"))}}function EB(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Title "),A.qZA())}const Vl=function(r){return{"max-width":r}};function wB(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Vl,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.title)}}function CB(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1," Amount (Sats) "),A.qZA())}function QB(r,y){if(1&r&&(A.TgZ(0,"td",36)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(0===t.amountmSat?"Open":A.lcZ(3,1,t.amountmSat/1e3))}}function dB(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Description "),A.qZA())}function MB(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Vl,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.description)}}function pB(r,y){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 IB=function(r){return{"px-3":r}};function mB(r,y){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 vA=A.CHM(t).$implicit;return A.oxw().onOfferBookmarkClick(vA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",41),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onRePayOffer(vA)}),A._uU(7,"Pay Again"),A.qZA(),A.TgZ(8,"mat-option",41),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onDeleteBookmark(vA)}),A._uU(9,"Delete Bookmark"),A.qZA()()()()}if(2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,IB,t.screenSize!==t.screenSizeEnum.XS))}}function vB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer bookmarked."),A.qZA())}function DB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offer bookmarks..."),A.qZA())}function yB(r,y){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 xB(r,y){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,vB,2,0,"p",46),A.YNc(2,DB,2,0,"p",46),A.YNc(3,yB,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 FB=function(r){return{"display-none":r}};function YB(r,y){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,FB,(null==t.offersBookmarks?null:t.offersBookmarks.data)&&(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)>0))}}function TB(r,y){1&r&&A._UZ(0,"tr",48)}function SB(r,y){1&r&&A._UZ(0,"tr",49)}const NB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},UB=function(){return["no_offer"]};let PB=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.store=s,this.commonService=L,this.rtlEffects=vA,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(g.EQ).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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:jl.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(s=>{s&&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:Cn}}}))}applyFilter(){this.offersBookmarks.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offersBookmarks=new yA.by(t?[...t]:[]),this.offersBookmarks.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.offersBookmarks.sort=this.sort,this.offersBookmarks.filterPredicate=(s,L)=>JSON.stringify(s).toLowerCase().includes(L),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(e.v),A.Y36(At.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offer-bookmarks-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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,s){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 s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.TgZ(10,"div",9),A.YNc(11,uB,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,fB,2,0,"th",14),A.YNc(16,hB,3,4,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,EB,2,0,"th",14),A.YNc(19,wB,4,4,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,CB,2,0,"th",18),A.YNc(22,QB,4,3,"td",19),A.BQk(),A.ynx(23,20),A.YNc(24,dB,2,0,"th",14),A.YNc(25,MB,4,4,"td",15),A.BQk(),A.ynx(26,21),A.YNc(27,pB,6,0,"th",22),A.YNc(28,mB,10,3,"td",23),A.BQk(),A.ynx(29,24),A.YNc(30,xB,4,3,"td",25),A.BQk(),A.YNc(31,YB,1,3,"tr",26),A.YNc(32,TB,1,0,"tr",27),A.YNc(33,SB,1,0,"tr",28),A.qZA()(),A._UZ(34,"mat-paginator",29),A.qZA()()),2&t&&(A.xp6(5),A.Q6J("icon",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offersBookmarks)("ngClass",A.VKq(12,NB,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(14,UB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,f.BN,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.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 RB(r,y){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 zB(r,y){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("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(L){return A.CHM(t),A.oxw().selFilter=L}),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function LB(r,y){1&r&&A._UZ(0,"mat-progress-bar",31)}function bB(r,y){1&r&&(A.TgZ(0,"th",32),A._uU(1,"Received Time"),A.qZA())}function GB(r,y){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function HB(r,y){1&r&&(A.TgZ(0,"th",32),A._uU(1,"In Channel"),A.qZA())}function JB(r,y){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function OB(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Amount In (Sats)"),A.qZA())}function kB(r,y){if(1&r&&(A.TgZ(0,"td",33)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 jB(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fail Reason"),A.qZA())}function KB(r,y){if(1&r&&(A.TgZ(0,"td",37),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Oqu(s.CLNFailReason[null==t?null:t.failreason])}}function VB(r,y){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 WB(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"button",43),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onFailedLocalEventClick(vA)}),A._uU(2,"View Info"),A.qZA()()}}function ZB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function XB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function qB(r,y){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 _B(r,y){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,ZB,2,0,"p",45),A.YNc(2,XB,2,0,"p",45),A.YNc(3,qB,2,1,"p",45),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 $B=function(r){return{"display-none":r}};function Au(r,y){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,$B,(null==t.failedLocalForwardingEvents?null:t.failedLocalForwardingEvents.data)&&(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)>0))}}function tu(r,y){1&r&&A._UZ(0,"tr",47)}function eu(r,y){1&r&&A._UZ(0,"tr",48)}const nu=function(){return["no_event"]};function ru(r,y){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,LB,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,bB,2,0,"th",15),A.YNc(6,GB,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,HB,2,0,"th",15),A.YNc(9,JB,2,1,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,OB,2,0,"th",19),A.YNc(12,kB,4,4,"td",16),A.BQk(),A.ynx(13,20),A.YNc(14,jB,2,0,"th",21),A.YNc(15,KB,2,1,"td",22),A.BQk(),A.ynx(16,23),A.YNc(17,VB,6,0,"th",24),A.YNc(18,WB,3,0,"td",25),A.BQk(),A.ynx(19,26),A.YNc(20,_B,4,3,"td",27),A.BQk(),A.YNc(21,Au,1,3,"tr",28),A.YNc(22,tu,1,0,"tr",29),A.YNc(23,eu,1,0,"tr",30),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,nu)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function iu(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",49),A.NdJ("page",function(L){return A.CHM(t),A.oxw().onPageChange(L)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalLocalFailedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let au=(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.commonService=s,this.store=L,this.datePipe=vA,this.router=gt,this.flgCompatible=!0,this.information={},this.CLNFailReason=a.p7,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.indexOffset=-1,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,maxLen:this.pageSize,offset:0}})),this.store.select(g.lK).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.ey))).subscribe(([t,s])=>{this.information=s,this.flgCompatible=!this.information.api_version||this.commonService.isVersionCompatible(this.information.api_version,"0.7.3"),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalLocalFailedTransactions=t.localFailedForwardingHistory.totalForwards,this.indexOffset=t.localFailedForwardingHistory.offset,this.failedLocalEvents=t.localFailedForwardingHistory.listForwards||[],this.failedLocalEvents.length>0&&this.sort&&this.paginator&&this.loadLocalfailedLocalEventsTable(this.flgCompatible?this.failedLocalEvents:this.failedLocalEvents.slice(0,this.pageSize)),this.logger.info(t)})}ngAfterViewInit(){this.failedLocalEvents.length>0&&this.loadLocalfailedLocalEventsTable(this.flgCompatible?this.failedLocalEvents:this.failedLocalEvents.slice(0,this.pageSize))}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:this.CLNFailReason[t.failreason],title:"Reason for Failure",width:100,type:a.Gi.STRING}]]}}}))}loadLocalfailedLocalEventsTable(t){this.failedLocalForwardingEvents=new yA.by([...t]),this.failedLocalForwardingEvents.filterPredicate=(s,L)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.failreason&&this.CLNFailReason[s.failreason]?this.CLNFailReason[s.failreason].toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"")).includes(L),this.failedLocalForwardingEvents.sort=this.sort,this.failedLocalForwardingEvents.sortingDataAccessor=(s,L)=>"failreason"===L?this.CLNFailReason[s.failreason]:s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,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()}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.flgCompatible?this.store.dispatch((0,ht.u0)({payload:{status:a.OO.LOCAL_FAILED,maxLen:this.pageSize,offset:this.indexOffset}})):this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(this.indexOffset,this.indexOffset+this.pageSize))}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(e.v),A.Y36(u.yh),A.Y36(Et.uU),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-local-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.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","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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",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","","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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,RB,2,1,"div",1),A.YNc(2,zB,4,1,"div",2),A.YNc(3,ru,24,7,"div",3),A.YNc(4,iu,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,R.gD,R.$L,QA.ey,Q.lW,yA.mD,yA.yh,yA.Ke,yA.Q2,Et.mk,m.oO,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const ou=["form"];function su(r,y){1&r&&A.GkF(0)}function lu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Requested amount is required."),A.qZA())}function cu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee rate is required."),A.qZA())}function gu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount is required."),A.qZA())}function Bu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount must be greater than or equal to 20000. This estimate covers force close fee for the provider."),A.qZA())}function uu(r,y){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 fu(r,y){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 hu(r,y){if(1&r&&(A.TgZ(0,"div",26),A._UZ(1,"fa-icon",27),A.YNc(2,fu,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 Eu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Type"),A.qZA())}function wu(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Cu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Address"),A.qZA())}function Qu(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function du(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Port"),A.qZA())}function Mu(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function pu(r,y){1&r&&A._UZ(0,"tr",49)}function Iu(r,y){1&r&&A._UZ(0,"tr",50)}function mu(r,y){if(1&r&&(A.TgZ(0,"mat-expansion-panel",29)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),A._uU(4,"Node: \xa0"),A.qZA(),A.TgZ(5,"strong",30),A._uU(6),A.qZA()()(),A.TgZ(7,"div",7)(8,"div",0)(9,"div",1)(10,"h4",31),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",32),A._uU(13),A.qZA()()(),A._UZ(14,"mat-divider",33),A.TgZ(15,"div",0)(16,"div",1)(17,"h4",31),A._uU(18,"Last Timestamp"),A.qZA(),A.TgZ(19,"span",34),A._uU(20),A.ALo(21,"date"),A.qZA()()(),A._UZ(22,"mat-divider",33),A.TgZ(23,"div",35)(24,"h4",36),A._uU(25,"Addresses"),A.qZA(),A.TgZ(26,"div",37)(27,"table",38,39),A.ynx(29,40),A.YNc(30,Eu,2,0,"th",41),A.YNc(31,wu,2,1,"td",42),A.BQk(),A.ynx(32,43),A.YNc(33,Cu,2,0,"th",41),A.YNc(34,Qu,2,1,"td",42),A.BQk(),A.ynx(35,44),A.YNc(36,du,2,0,"th",41),A.YNc(37,Mu,2,1,"td",42),A.BQk(),A.YNc(38,pu,1,0,"tr",45),A.YNc(39,Iu,1,0,"tr",46),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 vu(r,y){if(1&r&&A.YNc(0,mu,40,9,"mat-expansion-panel",28),2&r){const t=A.oxw();A.Q6J("ngIf",t.node)}}let Du=(()=>{class r{constructor(t,s,L,vA){this.dialogRef=t,this.data=s,this.actions=L,this.store=vA,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,s,L,vA,gt;this.alertTitle=this.data.alertTitle||"",this.totalBalance=(null===(t=this.data.message)||void 0===t?void 0:t.balance)||0,this.node=(null===(s=this.data.message)||void 0===s?void 0:s.node)||{},this.requestedAmount=(null===(L=this.data.message)||void 0===L?void 0:L.requestedAmount)||0,this.feeRate=(null===(vA=this.data.message)||void 0===vA?void 0:vA.feeRate)||0,this.localAmount=(null===(gt=this.data.message)||void 0===gt?void 0:gt.localAmount)||0,this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(ae=>ae.type===a.AB.UPDATE_API_CALL_STATUS_CLN||ae.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(ae=>{ae.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&ae.payload.status===a.Bn.ERROR&&"SaveNewChannel"===ae.payload.action&&(this.channelConnectionError=ae.payload.message),ae.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()})}onClose(){this.dialogRef.close(!1)}resetData(){var t,s,L;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===(s=this.data.message)||void 0===s?void 0:s.feeRate),this.form.controls.lamount.setValue(null===(L=this.data.message)||void 0===L?void 0:L.localAmount),this.calculateFee(),this.channelConnectionError=""}calculateFee(){var t,s,L;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===(s=this.node.option_will_fund)||void 0===s?void 0:s.lease_fee_basis)||0)/1e4+ +((null===(L=this.node.option_will_fund)||void 0===L?void 0:L.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};this.store.dispatch((0,ht.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(C.eX),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-liquidity-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(ou,7),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.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",""],[4,"ngIf"],["matInput","","placeholder","Fee Rate","type","number","tabindex","2","required","","name","feerate",3,"ngModel","step","min","ngModelChange","keyup"],["feeRt","ngModel"],["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,s){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 s.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.YNc(11,su,1,0,"ng-container",9),A.TgZ(12,"div",10)(13,"mat-form-field",11)(14,"input",12,13),A.NdJ("ngModelChange",function(vA){return s.requestedAmount=vA})("keyup",function(){return s.calculateFee()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.YNc(18,lu,2,0,"mat-error",15),A.qZA(),A.TgZ(19,"mat-form-field",11)(20,"input",16,17),A.NdJ("ngModelChange",function(vA){return s.feeRate=vA})("keyup",function(){return s.calculateFee()}),A.qZA(),A.TgZ(22,"span",14),A._uU(23," Sats/vByte "),A.qZA(),A.YNc(24,cu,2,0,"mat-error",15),A.qZA(),A.TgZ(25,"mat-form-field",11)(26,"input",18,19),A.NdJ("ngModelChange",function(vA){return s.localAmount=vA}),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,gu,2,0,"mat-error",15),A.YNc(34,Bu,2,0,"mat-error",15),A.YNc(35,uu,2,1,"mat-error",15),A.qZA()(),A.TgZ(36,"div",20)(37,"span"),A._uU(38),A.ALo(39,"number"),A.qZA()(),A.YNc(40,hu,3,2,"div",21),A.TgZ(41,"div",22)(42,"button",23),A.NdJ("click",function(){return s.resetData()}),A._uU(43,"Clear"),A.qZA(),A.TgZ(44,"button",24),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(45,"Execute"),A.qZA()()()()()(),A.YNc(46,vu,1,1,"ng-template",null,25,A.W1O)),2&t){const L=A.MAs(15),vA=A.MAs(21),gt=A.MAs(27),ae=A.MAs(47);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(6),A.Q6J("ngTemplateOutlet",ae),A.xp6(3),A.Q6J("ngModel",s.requestedAmount)("step",1e4)("min",0),A.xp6(4),A.Q6J("ngIf",null==L.errors?null:L.errors.required),A.xp6(2),A.Q6J("ngModel",s.feeRate)("step",10)("min",0),A.xp6(4),A.Q6J("ngIf",null==vA.errors?null:vA.errors.required),A.xp6(2),A.Q6J("ngModel",s.localAmount)("step",1e4)("min",2e4)("max",s.totalBalance),A.xp6(3),A.hij("Remaining Bal: ",A.lcZ(30,20,s.totalBalance-(s.localAmount?s.localAmount:0)),""),A.xp6(4),A.Q6J("ngIf",null==gt.errors?null:gt.errors.required),A.xp6(1),A.Q6J("ngIf",null==gt.errors?null:gt.errors.min),A.xp6(1),A.Q6J("ngIf",null==gt.errors?null:gt.errors.max),A.xp6(3),A.hij("Total cost to lease ",A.lcZ(39,22,s.node.channelOpeningFee)," (Sats)"),A.xp6(2),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,w.dn,OA._Y,OA.JL,OA.F,Et.tP,Z.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fj,k.q,H.h,OA.Q7,OA.JJ,OA.On,Z.R9,Et.O5,Z.TO,OA.Fd,yi.F,Z.bx,f.BN,ar.ib,ar.yz,ar.yK,AA.d,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,yA.as,yA.XQ,yA.nj,yA.Gk],pipes:[Et.JJ,Et.uU],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function yu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel amount is required."),A.qZA())}function xu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel opening fee rate is required."),A.qZA())}function Fu(r,y){1&r&&A._UZ(0,"mat-progress-bar",40)}function Yu(r,y){1&r&&(A.TgZ(0,"th",41),A._uU(1," Alias "),A.qZA())}function Tu(r,y){1&r&&A._UZ(0,"span",44)}const Su=function(r){return{"max-width":r}};function Nu(r,y){if(1&r&&(A.TgZ(0,"td",42),A._uU(1),A.YNc(2,Tu,1,0,"span",43),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(3,Su,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.alias,""),A.xp6(1),A.Q6J("ngIf",t.tor_node)}}function Uu(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1," Capacity/Channels "),A.qZA())}function Pu(r,y){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.$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 Ru(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1," Lease Fee "),A.qZA())}function zu(r,y){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.$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 Lu(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1," Routing Fee "),A.qZA())}function bu(r,y){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.$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 Gu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Channel Opening Fee "),A.qZA())}function Hu(r,y){if(1&r&&(A.TgZ(0,"td",46)(1,"span",48),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,t.channelOpeningFee,"1.0-0")," Sats ")}}function Ju(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",49)(1,"div",50)(2,"mat-select",51),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",52),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function Ou(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",53)(1,"div",54)(2,"mat-select",51),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",52),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onViewLeaseInfo(vA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",52),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(vA)}),A._uU(7,"Open Channel"),A.qZA(),A.TgZ(8,"mat-option",52),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(vA,"LN")}),A._uU(9,"View on Lnrouter"),A.qZA(),A.TgZ(10,"mat-option",52),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(vA,"AM")}),A._uU(11,"View on Amboss"),A.qZA()()()()}}function ku(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No node with liquidity."),A.qZA())}function ju(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting nodes with liquidity..."),A.qZA())}function Ku(r,y){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 Vu(r,y){if(1&r&&(A.TgZ(0,"td",55),A.YNc(1,ku,2,0,"p",15),A.YNc(2,ju,2,0,"p",15),A.YNc(3,Ku,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 Wu=function(r){return{"display-none":r}};function Zu(r,y){if(1&r&&A._UZ(0,"tr",56),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Wu,(null==t.liquidityNodes?null:t.liquidityNodes.data)&&(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)>0))}}function Xu(r,y){1&r&&A._UZ(0,"tr",57)}function qu(r,y){1&r&&A._UZ(0,"tr",58)}const _u=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},$u=function(){return["no_lqNode"]},ef=_t.Bz.forChild([{path:"",component:n,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:xo,canActivate:[ze.eQ]},{path:"onchain",component:jr,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:Ya,canActivate:[ze.eQ]},{path:"send/:selTab",component:Ta,data:{sweepAll:!1},canActivate:[ze.eQ]},{path:"sweep/:selTab",component:Ta,data:{sweepAll:!0},canActivate:[ze.eQ]}]},{path:"connections",component:ws,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Na,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:b0,canActivate:[ze.eQ]},{path:"pending",component:Bl,canActivate:[ze.eQ]}]},{path:"peers",component:x,data:{sweepAll:!1},canActivate:[ze.eQ]}]},{path:"liquidityads",component:(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.store=s,this.dataService=L,this.commonService=vA,this.rtlEffects=gt,this.askTooltipMsg="",this.nodesTooltipMsg="",this.displayedColumns=[],this.faBullhorn=h.Acd,this.faExclamationTriangle=h.eHv,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.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 for 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,Ba.a)([this.store.select(g.OL),this.dataService.listNetworkNodes("?liquidity_ads=yes")]).pipe((0,i.R)(this.unSubs[0])).subscribe({next:([t,s])=>{this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t),s&&!s.length&&(s=[]),this.logger.info("Received Liquidity Ads Enabled Nodes: "+JSON.stringify(s)),this.apiCallStatus.status=a.Bn.COMPLETED,this.liquidityNodesData=s.filter(L=>(L.tor_node=!!L.addresses&&L.addresses.filter(vA=>{var gt;return null===(gt=null==vA?void 0:vA.type)||void 0===gt?void 0:gt.includes("tor")}).length>0,L.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/1e3+this.channelAmount*+t.option_will_fund.lease_fee_basis/1e4+ +t.option_will_fund.funding_weight/4*this.channelOpeningFeeRate)}),this.paginator&&this.paginator.firstPage()}onFilter(){}loadLiqNodesTable(t){this.liquidityNodes=new yA.by([...t]),this.liquidityNodes.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]: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=(s,L)=>s.channelCount>=this.channelCount&&s.nodeCapacity>=this.nodeCapacity,this.onFilter()}viewLeaseOn(t,s){"LN"===s?window.open("https://lnrouter.app/node/"+t.nodeid,"_blank"):"AM"===s&&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:Du}}}))}onViewLeaseInfo(t){const s=t.addresses.reduce((vA,gt)=>(gt.address.length>40&&(gt.address=gt.address.substring(0,39)+"..."),vA.concat(JSON.stringify(gt).replace("{","").replace("}","").replace(/:/g,": ").replace(/,/g,"        ").replace(/"/g,""))),[]);this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Lease Information",noBtnText:"Close",yesBtnText:"Open Channel",message:[[{key:"alias",value:t.alias,title:"Node Alias",width:50,type:a.Gi.STRING},{key:"last_timestamp",value:t.last_timestamp,title:"Last Timestamp",width:50,type:a.Gi.DATE_TIME}],[{key:"nodeid",value:t.nodeid,title:"Node ID",width:100,type:a.Gi.STRING}],[{key:"base_fee",value:t.option_will_fund.lease_fee_base_msat/1e3,title:"Lease Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"fee_basis",value:t.option_will_fund.lease_fee_basis,title:"Lease Base Basis (bps)",width:50,type:a.Gi.NUMBER}],[{key:"channel_max_base",value:t.option_will_fund.channel_fee_max_base_msat/1e3,title:"Max Channel Routing Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"channel_max_rate",value:1e3*t.option_will_fund.channel_fee_max_proportional_thousandths,title:"Max Channel Routing Fee Rate (ppm)",width:50,type:a.Gi.NUMBER}],[{key:"funding_rate",value:t.option_will_fund.funding_weight,title:"Funding Weight",width:100,type:a.Gi.NUMBER}],[{key:"address",value:s,title:"Address",width:100,type:a.Gi.ARRAY}]]}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(vA=>{vA&&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(PA.D),A.Y36(e.v),A.Y36(At.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-liquidity-ads-list"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Liquidity Ads")}])],decls:54,vars:20,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","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container","mt-2",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","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","",3,"ngStyle"],["matBadge","Tor Node","matBadgeOverlap","false","class","tab-badge",4,"ngIf"],["matBadge","Tor Node","matBadgeOverlap","false",1,"tab-badge"],["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,s){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 suplemented 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(vA){return s.channelAmount=vA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(22,yu,2,0,"mat-error",15),A.qZA(),A.TgZ(23,"mat-form-field",13)(24,"input",16),A.NdJ("ngModelChange",function(vA){return s.channelOpeningFeeRate=vA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(25,xu,2,0,"mat-error",15),A.qZA()()(),A.TgZ(26,"div",17),A.YNc(27,Fu,1,0,"mat-progress-bar",18),A.TgZ(28,"table",19,20),A.ynx(30,21),A.YNc(31,Yu,2,0,"th",22),A.YNc(32,Nu,3,5,"td",23),A.BQk(),A.ynx(33,24),A.YNc(34,Uu,2,0,"th",25),A.YNc(35,Pu,4,8,"td",26),A.BQk(),A.ynx(36,27),A.YNc(37,Ru,2,0,"th",25),A.YNc(38,zu,4,8,"td",26),A.BQk(),A.ynx(39,28),A.YNc(40,Lu,2,0,"th",25),A.YNc(41,bu,4,8,"td",26),A.BQk(),A.ynx(42,29),A.YNc(43,Gu,2,0,"th",30),A.YNc(44,Hu,4,4,"td",26),A.BQk(),A.ynx(45,31),A.YNc(46,Ju,6,0,"th",32),A.YNc(47,Ou,12,0,"td",33),A.BQk(),A.ynx(48,34),A.YNc(49,Vu,4,3,"td",35),A.BQk(),A.YNc(50,Zu,1,3,"tr",36),A.YNc(51,Xu,1,0,"tr",37),A.YNc(52,qu,1,0,"tr",38),A.qZA()(),A._UZ(53,"mat-paginator",39),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faBullhorn),A.xp6(10),A.Q6J("icon",s.faExclamationTriangle),A.xp6(7),A.Q6J("matTooltip",s.askTooltipMsg),A.xp6(3),A.Q6J("ngModel",s.channelAmount),A.xp6(1),A.Q6J("ngIf",!s.channelAmount),A.xp6(2),A.Q6J("ngModel",s.channelOpeningFeeRate),A.xp6(1),A.Q6J("ngIf",!s.channelOpeningFeeRate),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.liquidityNodes)("ngClass",A.VKq(17,_u,""!==s.errorMessage)),A.xp6(22),A.Q6J("matFooterRowDef",A.DdM(19,$u)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Ct.yH,OA._Y,OA.JL,OA.F,S.Hw,aA.gM,Z.KE,Yt.Nt,OA.wV,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO,lA.$V,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,Bi.k,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})(),canActivate:[ze.eQ]},{path:"transactions",component:Cs,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:aa,canActivate:[ze.eQ]},{path:"invoices",component:tt,canActivate:[ze.eQ]},{path:"offers",component:BB,canActivate:[ze.eQ]},{path:"offrBookmarks",component:PB,canActivate:[ze.eQ]}]},{path:"messages",component:mi,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Oe,canActivate:[ze.eQ]},{path:"verify",component:mn,canActivate:[ze.eQ]}]},{path:"routing",component:ds,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:na,canActivate:[ze.eQ]},{path:"failedtransactions",component:dc,canActivate:[ze.eQ]},{path:"localfail",component:au,canActivate:[ze.eQ]},{path:"routingpeers",component:ug,canActivate:[ze.eQ]}]},{path:"reports",component:hg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Ig,canActivate:[ze.eQ]},{path:"transactions",component:Sg,canActivate:[ze.eQ]}]},{path:"graph",component:Pg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:bs,canActivate:[ze.eQ]},{path:"queryroutes",component:ln,canActivate:[ze.eQ]}]},{path:"rates",component:$s,canActivate:[ze.eQ]},{path:"**",component:Ng.w},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]);var nf=Nt(8750);let rf=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=A.oAB({type:r,bootstrap:[n]}),r.\u0275inj=A.cJS({providers:[ze.eQ],imports:[[Et.ez,nf.m,ef]]}),r})()},4641:function(oi,xr,Nt){var Et=Nt(7757);"undefined"!=typeof self&&self,oi.exports=function(){var _t={9282:function(Y,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,g=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),B=n(9539).inspect,w=n(9539).types,Q=w.isPromise,p=w.isRegExp,S=Object.assign?Object.assign:n(8091).assign,m=Object.is?Object.is:n(609);function z(){var $=n(9158);v=$.isDeepEqual,D=$.isDeepStrictEqual}var AA=!1,lA=Y.exports=DA,MA={};function cA($){throw $.message instanceof Error?$.message:new e($)}function BA($,W,hA,mA){if(!hA){var nA=!1;if(0===W)nA=!0,mA="No value argument passed to `assert.ok()`";else if(mA instanceof Error)throw mA;var EA=new e({actual:hA,expected:!0,message:mA,operator:"==",stackStartFn:$});throw EA.generatedMessage=nA,EA}}function DA(){for(var $=arguments.length,W=new Array($),hA=0;hA<$;hA++)W[hA]=arguments[hA];BA.apply(void 0,[DA,W.length].concat(W))}lA.fail=function gA($,W,hA,mA,nA){var GA,EA=arguments.length;if(0===EA?GA="Failed":1===EA?(hA=$,$=void 0):(!1===AA&&(AA=!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&&(mA="!=")),hA instanceof Error)throw hA;var ot={actual:$,expected:W,operator:void 0===mA?"fail":mA,stackStartFn:nA||gA};void 0!==hA&&(ot.message=hA);var TA=new e(ot);throw GA&&(TA.message=GA,TA.generatedMessage=!0),TA},lA.AssertionError=e,lA.ok=DA,lA.equal=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");W!=hA&&cA({actual:W,expected:hA,message:mA,operator:"==",stackStartFn:$})},lA.notEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");W==hA&&cA({actual:W,expected:hA,message:mA,operator:"!=",stackStartFn:$})},lA.deepEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),v(W,hA)||cA({actual:W,expected:hA,message:mA,operator:"deepEqual",stackStartFn:$})},lA.notDeepEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),v(W,hA)&&cA({actual:W,expected:hA,message:mA,operator:"notDeepEqual",stackStartFn:$})},lA.deepStrictEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),D(W,hA)||cA({actual:W,expected:hA,message:mA,operator:"deepStrictEqual",stackStartFn:$})},lA.notDeepStrictEqual=function FA($,W,hA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),D($,W)&&cA({actual:$,expected:W,message:hA,operator:"notDeepStrictEqual",stackStartFn:FA})},lA.strictEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");m(W,hA)||cA({actual:W,expected:hA,message:mA,operator:"strictEqual",stackStartFn:$})},lA.notStrictEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");m(W,hA)&&cA({actual:W,expected:hA,message:mA,operator:"notStrictEqual",stackStartFn:$})};var _=function $(W,hA,mA){var nA=this;(function o($,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!==mA&&"string"==typeof mA[EA]&&p(W[EA])&&W[EA].test(mA[EA])?mA[EA]:W[EA])})};function dA($,W,hA,mA,nA,EA){if(!(hA in $)||!D($[hA],W[hA])){if(!mA){var GA=new _($,nA),et=new _(W,nA,$),ot=new e({actual:GA,expected:et,operator:"deepStrictEqual",stackStartFn:EA});throw ot.actual=$,ot.expected=W,ot.operator=EA.name,ot}cA({actual:$,expected:W,message:mA,operator:EA.name,stackStartFn:EA})}}function uA($,W,hA,mA){if("function"!=typeof W){if(p(W))return W.test($);if(2===arguments.length)throw new g("expected",["Function","RegExp"],W);if("object"!==i($)||null===$){var nA=new e({actual:$,expected:W,message:hA,operator:"deepStrictEqual",stackStartFn:mA});throw nA.operator=mA.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])||dA($,W,GA,hA,EA,mA)}),!0}return void 0!==W.prototype&&$ instanceof W||!Error.isPrototypeOf(W)&&!0===W.call({},$)}function CA($){if("function"!=typeof $)throw new g("fn","Function",$);try{$()}catch(W){return W}return MA}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 g("promiseFn",["Function","Promise"],$);W=$}return Promise.resolve().then(function(){return W}).then(function(){return MA}).catch(function(hA){return hA})})}function XA($,W,hA,mA){if("string"==typeof hA){if(4===arguments.length)throw new g("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.'));mA=hA,hA=void 0}else if(null!=hA&&"object"!==i(hA)&&"function"!=typeof hA)throw new g("error",["Object","Error","Function","RegExp"],hA);if(W===MA){var nA="";hA&&hA.name&&(nA+=" (".concat(hA.name,")")),nA+=mA?": ".concat(mA):".",cA({actual:void 0,expected:hA,operator:$.name,message:"Missing expected ".concat("rejects"===$.name?"rejection":"exception").concat(nA),stackStartFn:$})}if(hA&&!uA(W,hA,mA,$))throw W}function q($,W,hA,mA){if(W!==MA){if("string"==typeof hA&&(mA=hA,hA=void 0),!hA||uA(W,hA)){var nA=mA?": ".concat(mA):".";cA({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];BA.apply(void 0,[O,W.length].concat(W))}lA.throws=function $(W){for(var hA=arguments.length,mA=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;nAgA.length)&&(DA=gA.length),gA.substring(DA-BA.length,DA)===BA}var T="",F="",z="",b="",Z={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 AA(gA){var BA=Object.keys(gA),DA=Object.create(Object.getPrototypeOf(gA));return BA.forEach(function(FA){DA[FA]=gA[FA]}),Object.defineProperty(DA,"message",{value:gA.message}),DA}function lA(gA){return m(gA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function MA(gA,BA,DA){var FA="",_="",dA=0,uA="",CA=!1,SA=lA(gA),bA=SA.split("\n"),XA=lA(BA).split("\n"),q=0,O="";if("strictEqual"===DA&&"object"===p(gA)&&"object"===p(BA)&&null!==gA&&null!==BA&&(DA="strictEqualObject"),1===bA.length&&1===XA.length&&bA[0]!==XA[0]){var $=bA[0].length+XA[0].length;if($<=10){if(!("object"===p(gA)&&null!==gA||"object"===p(BA)&&null!==BA||0===gA&&0===BA))return"".concat(Z[DA],"\n\n")+"".concat(bA[0]," !== ").concat(XA[0],"\n")}else if("strictEqualObject"!==DA&&$<(c.stderr&&c.stderr.isTTY?c.stderr.columns:80)){for(;bA[0][q]===XA[0][q];)q++;q>2&&(O="\n ".concat(function U(gA,BA){if(BA=Math.floor(BA),0==gA.length||0==BA)return"";var DA=gA.length*BA;for(BA=Math.floor(Math.log(BA)/Math.log(2));BA;)gA+=gA,BA--;return gA+gA.substring(0,DA-gA.length)}(" ",q),"^"),q=0)}}for(var hA=bA[bA.length-1],mA=XA[XA.length-1];hA===mA&&(q++<2?uA="\n ".concat(hA).concat(uA):FA=hA,bA.pop(),XA.pop(),0!==bA.length&&0!==XA.length);)hA=bA[bA.length-1],mA=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(T,"...").concat(b);EA.length>27;)EA.pop();return"".concat(Z.notIdentical,"\n\n").concat(EA.join("\n"),"\n")}q>3&&(uA="\n".concat(T,"...").concat(b).concat(uA),CA=!0),""!==FA&&(uA="\n ".concat(FA).concat(uA),FA="");var GA=0,et=Z[DA]+"\n".concat(F,"+ actual").concat(b," ").concat(z,"- expected").concat(b),ot=" ".concat(T,"...").concat(b," Lines skipped");for(q=0;q1&&q>2&&(TA>4?(_+="\n".concat(T,"...").concat(b),CA=!0):TA>3&&(_+="\n ".concat(XA[q-2]),GA++),_+="\n ".concat(XA[q-1]),GA++),dA=q,FA+="\n".concat(z,"-").concat(b," ").concat(XA[q]),GA++;else if(XA.length1&&q>2&&(TA>4?(_+="\n".concat(T,"...").concat(b),CA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),dA=q,_+="\n".concat(F,"+").concat(b," ").concat(bA[q]),GA++;else{var it=XA[q],mt=bA[q],It=mt!==it&&(!D(mt,",")||mt.slice(0,-1)!==it);It&&D(it,",")&&it.slice(0,-1)===mt&&(It=!1,mt+=","),It?(TA>1&&q>2&&(TA>4?(_+="\n".concat(T,"...").concat(b),CA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),dA=q,_+="\n".concat(F,"+").concat(b," ").concat(mt),FA+="\n".concat(z,"-").concat(b," ").concat(it),GA+=2):(_+=FA,FA="",(1===TA||0===q)&&(_+="\n ".concat(mt),GA++))}if(GA>20&&q30)for(q[26]="".concat(T,"...").concat(b);q.length>27;)q.pop();FA=g(this,1===q.length?Q(BA).call(this,"".concat(XA," ").concat(q[0])):Q(BA).call(this,"".concat(XA,"\n\n").concat(q.join("\n"),"\n")))}else{var O=lA(CA),$="",W=Z[dA];"notDeepEqual"===dA||"notEqual"===dA?(O="".concat(Z[dA],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):($="".concat(lA(SA)),O.length>512&&(O="".concat(O.slice(0,509),"...")),$.length>512&&($="".concat($.slice(0,509),"...")),"deepEqual"===dA||"equal"===dA?O="".concat(W,"\n\n").concat(O,"\n\nshould equal\n\n"):$=" ".concat(dA," ").concat($)),FA=g(this,Q(BA).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=CA,FA.expected=SA,FA.operator=dA,Error.captureStackTrace&&Error.captureStackTrace(E(FA),uA),FA.name="AssertionError",g(FA)}return function u(gA,BA){if("function"!=typeof BA&&null!==BA)throw new TypeError("Super expression must either be null or a function");gA.prototype=Object.create(BA&&BA.prototype,{constructor:{value:gA,writable:!0,configurable:!0}}),BA&&w(gA,BA)}(BA,gA),function a(gA,BA,DA){return BA&&h(gA.prototype,BA),DA&&h(gA,DA),gA}(BA,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(FA,_){return m(this,function i(gA){for(var BA=1;BA2?"one of ".concat(S," ").concat(p.slice(0,m-1).join(", "),", or ")+p[m-1]:2===m?"one of ".concat(S," ").concat(p[0]," or ").concat(p[1]):"of ".concat(S," ").concat(p[0])}return"of ".concat(S," ").concat(String(p))}e("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),e("ERR_INVALID_ARG_TYPE",function(p,S,m){var d,v;if(void 0===u&&(u=n(9282)),u("string"==typeof p,"'name' must be a string"),"string"==typeof S&&function B(p,S,m){return p.substr(!m||m<0?0:+m,S.length)===S}(S,"not ")?(d="must not be",S=S.replace(/^not /,"")):d="must be",function w(p,S,m){return(void 0===m||m>p.length)&&(m=p.length),p.substring(m-S.length,m)===S}(p," argument"))v="The ".concat(p," ").concat(d," ").concat(f(S,"type"));else{var D=function Q(p,S,m){return"number"!=typeof m&&(m=0),!(m+S.length>p.length)&&-1!==p.indexOf(S,m)}(p,".")?"property":"argument";v='The "'.concat(p,'" ').concat(D," ").concat(d," ").concat(f(S,"type"))}return v+". Received type ".concat(c(m))},TypeError),e("ERR_INVALID_ARG_VALUE",function(p,S){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===C&&(C=n(9539));var d=C.inspect(S);return d.length>128&&(d="".concat(d.slice(0,128),"...")),"The argument '".concat(p,"' ").concat(m,". Received ").concat(d)},TypeError,RangeError),e("ERR_INVALID_RETURN_VALUE",function(p,S,m){var d;return d=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(c(m)),"Expected ".concat(p,' to be returned from the "').concat(S,'"')+" function but got ".concat(d,".")},TypeError),e("ERR_MISSING_ARGS",function(){for(var p=arguments.length,S=new Array(p),m=0;m0,"At least one arg needs to be specified");var d="The ",v=S.length;switch(S=S.map(function(D){return'"'.concat(D,'"')}),v){case 1:d+="".concat(S[0]," argument");break;case 2:d+="".concat(S[0]," and ").concat(S[1]," arguments");break;default:d+=S.slice(0,v-1).join(", "),d+=", and ".concat(S[v-1]," arguments")}return"".concat(d," must be specified")},TypeError),Y.exports.codes=E},9158:function(Y,I,n){"use strict";function c(JA,WA){return function l(JA){if(Array.isArray(JA))return JA}(JA)||function o(JA,WA){var rt=[],yA=!0,Mt=!1,ht=void 0;try{for(var Yt,OA=JA[Symbol.iterator]();!(yA=(Yt=OA.next()).done)&&(rt.push(Yt.value),!WA||rt.length!==WA);yA=!0);}catch(H){Mt=!0,ht=H}finally{try{!yA&&null!=OA.return&&OA.return()}finally{if(Mt)throw ht}}return rt}(JA,WA)||function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(JA){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(JA)}var a=void 0!==/a/g.flags,g=function(WA){var rt=[];return WA.forEach(function(yA){return rt.push(yA)}),rt},E=function(WA){var rt=[];return WA.forEach(function(yA,Mt){return rt.push([Mt,yA])}),rt},u=Object.is?Object.is:n(609),C=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},e=Number.isNaN?Number.isNaN:n(360);function f(JA){return JA.call.bind(JA)}var B=f(Object.prototype.hasOwnProperty),w=f(Object.prototype.propertyIsEnumerable),Q=f(Object.prototype.toString),p=n(9539).types,S=p.isAnyArrayBuffer,m=p.isArrayBufferView,d=p.isDate,v=p.isMap,D=p.isRegExp,U=p.isSet,T=p.isNativeError,F=p.isBoxedPrimitive,z=p.isNumberObject,b=p.isStringObject,Z=p.isBooleanObject,aA=p.isBigIntObject,AA=p.isSymbolObject,lA=p.isFloat32Array,MA=p.isFloat64Array;function cA(JA){if(0===JA.length||JA.length>10)return!0;for(var WA=0;WA57)return!0}return 10===JA.length&&JA>=Math.pow(2,32)}function gA(JA){return Object.keys(JA).filter(cA).concat(C(JA).filter(Object.prototype.propertyIsEnumerable.bind(JA)))}function BA(JA,WA){if(JA===WA)return 0;for(var rt=JA.length,yA=WA.length,Mt=0,ht=Math.min(rt,yA);Mt=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 o(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"),S=0,m=p.length-1;S>>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,R){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 B(H,k,R)}function B(H,k,R){if("string"==typeof H)return function S(H,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!f.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var R=0|F(H,k),QA=e(R),wA=QA.write(H,k);return wA!==R&&(QA=QA.slice(0,wA)),QA}(H,k);if(ArrayBuffer.isView(H))return function d(H){if(yA(H,Uint8Array)){var k=new Uint8Array(H);return v(k.buffer,k.byteOffset,k.byteLength)}return m(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(yA(H,ArrayBuffer)||H&&yA(H.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(yA(H,SharedArrayBuffer)||H&&yA(H.buffer,SharedArrayBuffer)))return v(H,k,R);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,R);var wA=function D(H){if(f.isBuffer(H)){var k=0|U(H.length),R=e(k);return 0===R.length||H.copy(R,0,0,k),R}return void 0!==H.length?"number"!=typeof H.length||Mt(H.length)?e(0):m(H):"Buffer"===H.type&&Array.isArray(H.data)?m(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,R);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|U(H))}function m(H){for(var k=H.length<0?0:0|U(H.length),R=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)||yA(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 R=H.length,QA=arguments.length>2&&!0===arguments[2];if(!QA&&0===R)return 0;for(var wA=!1;;)switch(k){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return It(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return WA(H).length;default:if(wA)return QA?-1:It(H).length;k=(""+k).toLowerCase(),wA=!0}}function z(H,k,R){var QA=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===R||R>this.length)&&(R=this.length),R<=0)||(R>>>=0)<=(k>>>=0))return"";for(H||(H="utf8");;)switch(H){case"hex":return CA(this,k,R);case"utf8":case"utf-8":return DA(this,k,R);case"ascii":return dA(this,k,R);case"latin1":case"binary":return uA(this,k,R);case"base64":return BA(this,k,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return SA(this,k,R);default:if(QA)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),QA=!0}}function b(H,k,R){var QA=H[k];H[k]=H[R],H[R]=QA}function Z(H,k,R,QA,wA){if(0===H.length)return-1;if("string"==typeof R?(QA=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),Mt(R=+R)&&(R=wA?0:H.length-1),R<0&&(R=H.length+R),R>=H.length){if(wA)return-1;R=H.length-1}else if(R<0){if(!wA)return-1;R=0}if("string"==typeof k&&(k=f.from(k,QA)),f.isBuffer(k))return 0===k.length?-1:aA(H,k,R,QA,wA);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?wA?Uint8Array.prototype.indexOf.call(H,k,R):Uint8Array.prototype.lastIndexOf.call(H,k,R):aA(H,[k],R,QA,wA);throw new TypeError("val must be string, number or Buffer")}function aA(H,k,R,QA,wA){var j,RA=1,rA=H.length,ct=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,ct/=2,R/=2}function Ft(KA,st){return 1===RA?KA[st]:KA.readUInt16BE(st*RA)}if(wA){var kA=-1;for(j=R;jrA&&(R=rA-ct),j=R;j>=0;j--){for(var At=!0,xA=0;xAwA&&(QA=wA):QA=wA;var rA,RA=k.length;for(QA>RA/2&&(QA=RA/2),rA=0;rA>8,RA.push(R%256),RA.push(QA);return RA}(k,H.length-R),H,R,QA)}function BA(H,k,R){return a.fromByteArray(0===k&&R===H.length?H:H.slice(k,R))}function DA(H,k,R){R=Math.min(H.length,R);for(var QA=[],wA=k;wA239?4:RA>223?3:RA>191?2:1;if(wA+ct<=R){var Ft=void 0,j=void 0,kA=void 0,At=void 0;switch(ct){case 1:RA<128&&(rA=RA);break;case 2:128==(192&(Ft=H[wA+1]))&&(At=(31&RA)<<6|63&Ft)>127&&(rA=At);break;case 3:j=H[wA+2],128==(192&(Ft=H[wA+1]))&&128==(192&j)&&(At=(15&RA)<<12|(63&Ft)<<6|63&j)>2047&&(At<55296||At>57343)&&(rA=At);break;case 4:j=H[wA+2],kA=H[wA+3],128==(192&(Ft=H[wA+1]))&&128==(192&j)&&128==(192&kA)&&(At=(15&RA)<<18|(63&Ft)<<12|(63&j)<<6|63&kA)>65535&&At<1114112&&(rA=At)}}null===rA?(rA=65533,ct=1):rA>65535&&(QA.push((rA-=65536)>>>10&1023|55296),rA=56320|1023&rA),QA.push(rA),wA+=ct}return function _(H){var k=H.length;if(k<=4096)return String.fromCharCode.apply(String,H);for(var R="",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 R=0;RR&&(k+=" ... "),""},E&&(f.prototype[E]=f.prototype.inspect),f.prototype.compare=function(k,R,QA,wA,RA){if(yA(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===R&&(R=0),void 0===QA&&(QA=k?k.length:0),void 0===wA&&(wA=0),void 0===RA&&(RA=this.length),R<0||QA>k.length||wA<0||RA>this.length)throw new RangeError("out of range index");if(wA>=RA&&R>=QA)return 0;if(wA>=RA)return-1;if(R>=QA)return 1;if(this===k)return 0;for(var rA=(RA>>>=0)-(wA>>>=0),ct=(QA>>>=0)-(R>>>=0),Ft=Math.min(rA,ct),j=this.slice(wA,RA),kA=k.slice(R,QA),At=0;At>>=0,isFinite(QA)?(QA>>>=0,void 0===wA&&(wA="utf8")):(wA=QA,QA=void 0)}var RA=this.length-R;if((void 0===QA||QA>RA)&&(QA=RA),k.length>0&&(QA<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");wA||(wA="utf8");for(var rA=!1;;)switch(wA){case"hex":return AA(this,k,R,QA);case"utf8":case"utf-8":return lA(this,k,R,QA);case"ascii":case"latin1":case"binary":return MA(this,k,R,QA);case"base64":return cA(this,k,R,QA);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gA(this,k,R,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 dA(H,k,R){var QA="";R=Math.min(H.length,R);for(var wA=k;wAQA)&&(R=QA);for(var wA="",RA=k;RAR)throw new RangeError("Trying to access beyond buffer length")}function XA(H,k,R,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 q(H,k,R,QA,wA){et(k,QA,wA,H,R,7);var RA=Number(k&BigInt(4294967295));H[R++]=RA,H[R++]=RA>>=8,H[R++]=RA>>=8,H[R++]=RA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[R++]=rA,H[R++]=rA>>=8,H[R++]=rA>>=8,H[R++]=rA>>=8,R}function O(H,k,R,QA,wA){et(k,QA,wA,H,R,7);var RA=Number(k&BigInt(4294967295));H[R+7]=RA,H[R+6]=RA>>=8,H[R+5]=RA>>=8,H[R+4]=RA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[R+3]=rA,H[R+2]=rA>>=8,H[R+1]=rA>>=8,H[R]=rA>>=8,R+8}function $(H,k,R,QA,wA,RA){if(R+QA>H.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function W(H,k,R,QA,wA){return k=+k,R>>>=0,wA||$(H,0,R,4),g.write(H,k,R,QA,23,4),R+4}function hA(H,k,R,QA,wA){return k=+k,R>>>=0,wA||$(H,0,R,8),g.write(H,k,R,QA,52,8),R+8}f.prototype.slice=function(k,R){var QA=this.length;(k=~~k)<0?(k+=QA)<0&&(k=0):k>QA&&(k=QA),(R=void 0===R?QA:~~R)<0?(R+=QA)<0&&(R=0):R>QA&&(R=QA),R>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k],RA=1,rA=0;++rA>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k+--R],RA=1;R>0&&(RA*=256);)wA+=this[k+--R]*RA;return wA},f.prototype.readUint8=f.prototype.readUInt8=function(k,R){return k>>>=0,R||bA(k,1,this.length),this[k]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(k,R){return k>>>=0,R||bA(k,2,this.length),this[k]|this[k+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(k,R){return k>>>=0,R||bA(k,2,this.length),this[k]<<8|this[k+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(k,R){return k>>>=0,R||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,R){return k>>>=0,R||bA(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},f.prototype.readBigUInt64LE=OA(function(k){ot(k>>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=R+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 R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=R*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,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k],RA=1,rA=0;++rA=(RA*=128)&&(wA-=Math.pow(2,8*R)),wA},f.prototype.readIntBE=function(k,R,QA){k>>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=R,RA=1,rA=this[k+--wA];wA>0&&(RA*=256);)rA+=this[k+--wA]*RA;return rA>=(RA*=128)&&(rA-=Math.pow(2,8*R)),rA},f.prototype.readInt8=function(k,R){return k>>>=0,R||bA(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},f.prototype.readInt16LE=function(k,R){k>>>=0,R||bA(k,2,this.length);var QA=this[k]|this[k+1]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt16BE=function(k,R){k>>>=0,R||bA(k,2,this.length);var QA=this[k+1]|this[k]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt32LE=function(k,R){return k>>>=0,R||bA(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},f.prototype.readInt32BE=function(k,R){return k>>>=0,R||bA(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},f.prototype.readBigInt64LE=OA(function(k){ot(k>>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||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 R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=(R<<24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k];return(BigInt(wA)<>>=0,R||bA(k,4,this.length),g.read(this,k,!0,23,4)},f.prototype.readFloatBE=function(k,R){return k>>>=0,R||bA(k,4,this.length),g.read(this,k,!1,23,4)},f.prototype.readDoubleLE=function(k,R){return k>>>=0,R||bA(k,8,this.length),g.read(this,k,!0,52,8)},f.prototype.readDoubleBE=function(k,R){return k>>>=0,R||bA(k,8,this.length),g.read(this,k,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(k,R,QA,wA){k=+k,R>>>=0,QA>>>=0,wA||XA(this,k,R,QA,Math.pow(2,8*QA)-1,0);var rA=1,ct=0;for(this[R]=255&k;++ct>>=0,QA>>>=0,wA||XA(this,k,R,QA,Math.pow(2,8*QA)-1,0);var rA=QA-1,ct=1;for(this[R+rA]=255&k;--rA>=0&&(ct*=256);)this[R+rA]=k/ct&255;return R+QA},f.prototype.writeUint8=f.prototype.writeUInt8=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,1,255,0),this[R]=255&k,R+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,65535,0),this[R]=255&k,this[R+1]=k>>>8,R+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,65535,0),this[R]=k>>>8,this[R+1]=255&k,R+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,4294967295,0),this[R+3]=k>>>24,this[R+2]=k>>>16,this[R+1]=k>>>8,this[R]=255&k,R+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,4294967295,0),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},f.prototype.writeBigUInt64LE=OA(function(k,R){return void 0===R&&(R=0),q(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=OA(function(k,R){return void 0===R&&(R=0),O(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(k,R,QA,wA){if(k=+k,R>>>=0,!wA){var RA=Math.pow(2,8*QA-1);XA(this,k,R,QA,RA-1,-RA)}var rA=0,ct=1,Ft=0;for(this[R]=255&k;++rA>0)-Ft&255;return R+QA},f.prototype.writeIntBE=function(k,R,QA,wA){if(k=+k,R>>>=0,!wA){var RA=Math.pow(2,8*QA-1);XA(this,k,R,QA,RA-1,-RA)}var rA=QA-1,ct=1,Ft=0;for(this[R+rA]=255&k;--rA>=0&&(ct*=256);)k<0&&0===Ft&&0!==this[R+rA+1]&&(Ft=1),this[R+rA]=(k/ct>>0)-Ft&255;return R+QA},f.prototype.writeInt8=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,1,127,-128),k<0&&(k=255+k+1),this[R]=255&k,R+1},f.prototype.writeInt16LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,32767,-32768),this[R]=255&k,this[R+1]=k>>>8,R+2},f.prototype.writeInt16BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,32767,-32768),this[R]=k>>>8,this[R+1]=255&k,R+2},f.prototype.writeInt32LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,2147483647,-2147483648),this[R]=255&k,this[R+1]=k>>>8,this[R+2]=k>>>16,this[R+3]=k>>>24,R+4},f.prototype.writeInt32BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},f.prototype.writeBigInt64LE=OA(function(k,R){return void 0===R&&(R=0),q(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=OA(function(k,R){return void 0===R&&(R=0),O(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(k,R,QA){return W(this,k,R,!0,QA)},f.prototype.writeFloatBE=function(k,R,QA){return W(this,k,R,!1,QA)},f.prototype.writeDoubleLE=function(k,R,QA){return hA(this,k,R,!0,QA)},f.prototype.writeDoubleBE=function(k,R,QA){return hA(this,k,R,!1,QA)},f.prototype.copy=function(k,R,QA,wA){if(!f.isBuffer(k))throw new TypeError("argument should be a Buffer");if(QA||(QA=0),!wA&&0!==wA&&(wA=this.length),R>=k.length&&(R=k.length),R||(R=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-R>>=0,QA=void 0===QA?this.length:QA>>>0,k||(k=0),"number"==typeof k)for(rA=R;rA=QA+4;R-=3)k="_"+H.slice(R-3,R)+k;return""+H.slice(0,R)+k}function et(H,k,R,QA,wA,RA){if(H>R||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 <= "+R+rA,new mA.ERR_OUT_OF_RANGE("value",ct,H)}!function GA(H,k,R){ot(k,"offset"),(void 0===H[k]||void 0===H[k+R])&&TA(k,H.length-(R+1))}(QA,wA,RA)}function ot(H,k){if("number"!=typeof H)throw new mA.ERR_INVALID_ARG_TYPE(k,"number",H)}function TA(H,k,R){throw Math.floor(H)!==H?(ot(H,R),new mA.ERR_OUT_OF_RANGE(R||"offset","an integer",H)):k<0?new mA.ERR_BUFFER_OUT_OF_BOUNDS:new mA.ERR_OUT_OF_RANGE(R||"offset",">= "+(R?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,R){var QA='The value of "'+H+'" is out of range.',wA=R;return Number.isInteger(R)&&Math.abs(R)>Math.pow(2,32)?wA=EA(String(R)):"bigint"==typeof R&&(wA=String(R),(R>Math.pow(BigInt(2),BigInt(32))||R<-Math.pow(BigInt(2),BigInt(32)))&&(wA=EA(wA)),wA+="n"),QA+" It must be "+k+". Received "+wA},RangeError);var it=/[^+/0-9A-Za-z-_]/g;function It(H,k){k=k||1/0;for(var R,QA=H.length,wA=null,RA=[],rA=0;rA55295&&R<57344){if(!wA){if(R>56319){(k-=3)>-1&&RA.push(239,191,189);continue}if(rA+1===QA){(k-=3)>-1&&RA.push(239,191,189);continue}wA=R;continue}if(R<56320){(k-=3)>-1&&RA.push(239,191,189),wA=R;continue}R=65536+(wA-55296<<10|R-56320)}else wA&&(k-=3)>-1&&RA.push(239,191,189);if(wA=null,R<128){if((k-=1)<0)break;RA.push(R)}else if(R<2048){if((k-=2)<0)break;RA.push(R>>6|192,63&R|128)}else if(R<65536){if((k-=3)<0)break;RA.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;RA.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return RA}function WA(H){return a.toByteArray(function mt(H){if((H=(H=H.split("=")[0]).trim().replace(it,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(H))}function rt(H,k,R,QA){var wA;for(wA=0;wA=k.length||wA>=H.length);++wA)k[wA+R]=H[wA];return wA}function yA(H,k){return H instanceof k||null!=H&&null!=H.constructor&&null!=H.constructor.name&&H.constructor.name===k.name}function Mt(H){return H!=H}var ht=function(){for(var H="0123456789abcdef",k=new Array(256),R=0;R<16;++R)for(var QA=16*R,wA=0;wA<16;++wA)k[QA+wA]=H[R]+H[wA];return k}();function OA(H){return"undefined"==typeof BigInt?Yt:H}function Yt(){throw new Error("BigInt not supported")}},477:function(Y,I,n){"use strict";n(7803),n(1539),Y.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},2094:function(Y,I,n){"use strict";var lA,MA,cA,c=n(477),i=n(9781),o=n(7854),l=n(614),h=n(111),a=n(2597),g=n(648),E=n(6330),u=n(8880),C=n(1320),e=n(3070).f,f=n(7976),B=n(9518),w=n(7674),Q=n(5112),p=n(9711),S=o.Int8Array,m=S&&S.prototype,d=o.Uint8ClampedArray,v=d&&d.prototype,D=S&&B(S),U=m&&B(m),T=Object.prototype,F=o.TypeError,z=Q("toStringTag"),b=p("TYPED_ARRAY_TAG"),Z=p("TYPED_ARRAY_CONSTRUCTOR"),aA=c&&!!w&&"Opera"!==g(o.opera),AA=!1,gA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BA={BigInt64Array:8,BigUint64Array:8},FA=function(bA){if(!h(bA))return!1;var XA=g(bA);return a(gA,XA)||a(BA,XA)};for(lA in gA)(cA=(MA=o[lA])&&MA.prototype)?u(cA,Z,MA):aA=!1;for(lA in BA)(cA=(MA=o[lA])&&MA.prototype)&&u(cA,Z,MA);if((!aA||!l(D)||D===Function.prototype)&&(D=function(){throw F("Incorrect invocation")},aA))for(lA in gA)o[lA]&&w(o[lA],D);if((!aA||!U||U===T)&&(U=D.prototype,aA))for(lA in gA)o[lA]&&w(o[lA].prototype,U);if(aA&&B(v)!==U&&w(v,U),i&&!a(U,z))for(lA in AA=!0,e(U,z,{get:function(){return h(this)?this[b]:void 0}}),gA)o[lA]&&u(o[lA],b,lA);Y.exports={NATIVE_ARRAY_BUFFER_VIEWS:aA,TYPED_ARRAY_CONSTRUCTOR:Z,TYPED_ARRAY_TAG:AA&&b,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,q){if(i){if(q)for(var O in gA){var $=o[O];if($&&a($.prototype,bA))try{delete $.prototype[bA]}catch(W){}}(!U[bA]||q)&&C(U,bA,q?XA:aA&&m[bA]||XA)}},exportTypedArrayStaticMethod:function(bA,XA,q){var O,$;if(i){if(w){if(q)for(O in gA)if(($=o[O])&&a($,bA))try{delete $[bA]}catch(W){}if(D[bA]&&!q)return;try{return C(D,bA,q?XA:aA&&D[bA]||XA)}catch(W){}}for(O in gA)($=o[O])&&(!$[bA]||q)&&C($,bA,XA)}},isView:function(bA){if(!h(bA))return!1;var XA=g(bA);return"DataView"===XA||a(gA,XA)||a(BA,XA)},isTypedArray:FA,TypedArray:D,TypedArrayPrototype:U}},2091:function(Y,I,n){"use strict";n(8309);var c=n(7854),i=n(1702),o=n(9781),l=n(477),h=n(6530),a=n(8880),g=n(2248),E=n(7293),u=n(5787),C=n(9303),e=n(7466),f=n(7067),B=n(1179),w=n(9518),Q=n(7674),p=n(8006).f,S=n(3070).f,m=n(1285),d=n(206),v=n(8003),D=n(9909),U=h.PROPER,T=h.CONFIGURABLE,F=D.get,z=D.set,b="ArrayBuffer",Z="DataView",aA="prototype",lA="Wrong index",MA=c[b],cA=MA,gA=cA&&cA[aA],BA=c[Z],DA=BA&&BA[aA],FA=Object.prototype,_=c.Array,dA=c.RangeError,uA=i(m),CA=i([].reverse),SA=B.pack,bA=B.unpack,XA=function(ft){return[255&ft]},q=function(ft){return[255&ft,ft>>8&255]},O=function(ft){return[255&ft,ft>>8&255,ft>>16&255,ft>>24&255]},$=function(ft){return ft[3]<<24|ft[2]<<16|ft[1]<<8|ft[0]},W=function(ft){return SA(ft,23,4)},hA=function(ft){return SA(ft,52,8)},mA=function(ft,JA){S(ft[aA],JA,{get:function(){return F(this)[JA]}})},nA=function(ft,JA,WA,rt){var yA=f(WA),Mt=F(ft);if(yA+JA>Mt.byteLength)throw dA(lA);var ht=F(Mt.buffer).bytes,OA=yA+Mt.byteOffset,Yt=d(ht,OA,OA+JA);return rt?Yt:CA(Yt)},EA=function(ft,JA,WA,rt,yA,Mt){var ht=f(WA),OA=F(ft);if(ht+JA>OA.byteLength)throw dA(lA);for(var Yt=F(OA.buffer).bytes,H=ht+OA.byteOffset,k=rt(+yA),R=0;Rot;)(TA=et[ot++])in cA||a(cA,TA,MA[TA]);gA.constructor=cA}Q&&w(DA)!==FA&&Q(DA,FA);var it=new BA(new cA(2)),mt=i(DA.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),(it.getInt8(0)||!it.getInt8(1))&&g(DA,{setInt8:function(ft,JA){mt(this,ft,JA<<24>>24)},setUint8:function(ft,JA){mt(this,ft,JA<<24>>24)}},{unsafe:!0})}else gA=(cA=function(ft){u(this,gA);var JA=f(ft);z(this,{bytes:uA(_(JA),0),byteLength:JA}),o||(this.byteLength=JA)})[aA],DA=(BA=function(ft,JA,WA){u(this,DA),u(ft,gA);var rt=F(ft).byteLength,yA=C(JA);if(yA<0||yA>rt)throw dA("Wrong offset");if(yA+(WA=void 0===WA?rt-yA:e(WA))>rt)throw dA("Wrong length");z(this,{buffer:ft,byteLength:WA,byteOffset:yA}),o||(this.buffer=ft,this.byteLength=WA,this.byteOffset=yA)})[aA],o&&(mA(cA,"byteLength"),mA(BA,"buffer"),mA(BA,"byteLength"),mA(BA,"byteOffset")),g(DA,{getInt8:function(ft){return nA(this,1,ft)[0]<<24>>24},getUint8:function(ft){return nA(this,1,ft)[0]},getInt16:function(ft){var JA=nA(this,2,ft,arguments.length>1?arguments[1]:void 0);return(JA[1]<<8|JA[0])<<16>>16},getUint16:function(ft){var JA=nA(this,2,ft,arguments.length>1?arguments[1]:void 0);return JA[1]<<8|JA[0]},getInt32:function(ft){return $(nA(this,4,ft,arguments.length>1?arguments[1]:void 0))},getUint32:function(ft){return $(nA(this,4,ft,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ft){return bA(nA(this,4,ft,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ft){return bA(nA(this,8,ft,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ft,JA){EA(this,1,ft,XA,JA)},setUint8:function(ft,JA){EA(this,1,ft,XA,JA)},setInt16:function(ft,JA){EA(this,2,ft,q,JA,arguments.length>2?arguments[2]:void 0)},setUint16:function(ft,JA){EA(this,2,ft,q,JA,arguments.length>2?arguments[2]:void 0)},setInt32:function(ft,JA){EA(this,4,ft,O,JA,arguments.length>2?arguments[2]:void 0)},setUint32:function(ft,JA){EA(this,4,ft,O,JA,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ft,JA){EA(this,4,ft,W,JA,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ft,JA){EA(this,8,ft,hA,JA,arguments.length>2?arguments[2]:void 0)}});v(cA,b),v(BA,Z),Y.exports={ArrayBuffer:cA,DataView:BA}},7803:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(2091),l=n(6340),h="ArrayBuffer",a=o[h];c({global:!0,forced:i[h]!==a},{ArrayBuffer:a}),l(h)},194:function(Y,I,n){"use strict";Y.exports=function(c){return function(){var i=c,l=i.lib.BlockCipher,h=i.algo,a=[],g=[],E=[],u=[],C=[],e=[],f=[],B=[],w=[],Q=[];!function(){for(var m=[],d=0;d<256;d++)m[d]=d<128?d<<1:d<<1^283;var v=0,D=0;for(d=0;d<256;d++){var U=D^D<<1^D<<2^D<<3^D<<4;a[v]=U=U>>>8^255&U^99,g[U]=v;var b,T=m[v],F=m[T],z=m[F];E[v]=(b=257*m[U]^16843008*U)<<24|b>>>8,u[v]=b<<16|b>>>16,C[v]=b<<8|b>>>24,e[v]=b,f[U]=(b=16843009*z^65537*F^257*T^16843008*v)<<24|b>>>8,B[U]=b<<16|b>>>16,w[U]=b<<8|b>>>24,Q[U]=b,v?(v=T^m[m[m[z^T]]],D^=m[m[D]]):v=D=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],S=h.AES=l.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var v=this._keyPriorReset=this._key,D=v.words,U=v.sigBytes/4,F=4*((this._nRounds=U+6)+1),z=this._keySchedule=[],b=0;b6&&b%U==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[b/U|0]<<24),z[b]=z[b-U]^d);for(var Z=this._invKeySchedule=[],aA=0;aA>>24]]^B[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,B,w,Q,g),D=d[v+1],d[v+1]=d[v+3],d[v+3]=D},_doCryptBlock:function(d,v,D,U,T,F,z,b){for(var Z=this._nRounds,aA=d[v]^D[0],AA=d[v+1]^D[1],lA=d[v+2]^D[2],MA=d[v+3]^D[3],cA=4,gA=1;gA>>24]^T[AA>>>16&255]^F[lA>>>8&255]^z[255&MA]^D[cA++],DA=U[AA>>>24]^T[lA>>>16&255]^F[MA>>>8&255]^z[255&aA]^D[cA++],FA=U[lA>>>24]^T[MA>>>16&255]^F[aA>>>8&255]^z[255&AA]^D[cA++],_=U[MA>>>24]^T[aA>>>16&255]^F[AA>>>8&255]^z[255&lA]^D[cA++];aA=BA,AA=DA,lA=FA,MA=_}BA=(b[aA>>>24]<<24|b[AA>>>16&255]<<16|b[lA>>>8&255]<<8|b[255&MA])^D[cA++],DA=(b[AA>>>24]<<24|b[lA>>>16&255]<<16|b[MA>>>8&255]<<8|b[255&aA])^D[cA++],FA=(b[lA>>>24]<<24|b[MA>>>16&255]<<16|b[aA>>>8&255]<<8|b[255&AA])^D[cA++],_=(b[MA>>>24]<<24|b[aA>>>16&255]<<16|b[AA>>>8&255]<<8|b[255&lA])^D[cA++],d[v]=BA,d[v+1]=DA,d[v+2]=FA,d[v+3]=_},keySize:8});i.AES=l._createHelper(S)}(),c.AES}(n(757),n(7508),n(3440),n(3839),n(1582))},1582:function(Y,I,n){"use strict";n(7042),n(2222),n(1539),n(9714),n(561),Y.exports=function(c){var o,l,h,a,g,C,f,B,Q,p,S,d,D,T,F,b,Z;c.lib.Cipher||(a=(l=(o=c).lib).WordArray,C=o.enc.Base64,f=o.algo.EvpKDF,B=l.Cipher=(g=l.BufferedBlockAlgorithm).extend({cfg:(h=l.Base).extend(),createEncryptor:function(AA,lA){return this.create(this._ENC_XFORM_MODE,AA,lA)},createDecryptor:function(AA,lA){return this.create(this._DEC_XFORM_MODE,AA,lA)},init:function(AA,lA,MA){this.cfg=this.cfg.extend(MA),this._xformMode=AA,this._key=lA,this.reset()},reset:function(){g.reset.call(this),this._doReset()},process:function(AA){return this._append(AA),this._process()},finalize:function(AA){return AA&&this._append(AA),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function aA(AA){return"string"==typeof AA?Z:F}return function(AA){return{encrypt:function(MA,cA,gA){return aA(cA).encrypt(AA,MA,cA,gA)},decrypt:function(MA,cA,gA){return aA(cA).decrypt(AA,MA,cA,gA)}}}}()}),l.StreamCipher=B.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),Q=o.mode={},p=l.BlockCipherMode=h.extend({createEncryptor:function(AA,lA){return this.Encryptor.create(AA,lA)},createDecryptor:function(AA,lA){return this.Decryptor.create(AA,lA)},init:function(AA,lA){this._cipher=AA,this._iv=lA}}),S=Q.CBC=function(){var aA=p.extend();function AA(lA,MA,cA){var gA,BA=this._iv;BA?(gA=BA,this._iv=undefined):gA=this._prevBlock;for(var DA=0;DA>>2]}},l.BlockCipher=B.extend({cfg:B.cfg.extend({mode:S,padding:d}),reset:function(){var AA;B.reset.call(this);var lA=this.cfg,MA=lA.iv,cA=lA.mode;this._xformMode==this._ENC_XFORM_MODE?AA=cA.createEncryptor:(AA=cA.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==AA?this._mode.init(this,MA&&MA.words):(this._mode=AA.call(cA,this,MA&&MA.words),this._mode.__creator=AA)},_doProcessBlock:function(AA,lA){this._mode.processBlock(AA,lA)},_doFinalize:function(){var AA,lA=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(lA.pad(this._data,this.blockSize),AA=this._process(!0)):(AA=this._process(!0),lA.unpad(AA)),AA},blockSize:4}),D=l.CipherParams=h.extend({init:function(AA){this.mixIn(AA)},toString:function(AA){return(AA||this.formatter).stringify(this)}}),T=(o.format={}).OpenSSL={stringify:function(AA){var MA=AA.ciphertext,cA=AA.salt;return(cA?a.create([1398893684,1701076831]).concat(cA).concat(MA):MA).toString(C)},parse:function(AA){var lA,MA=C.parse(AA),cA=MA.words;return 1398893684==cA[0]&&1701076831==cA[1]&&(lA=a.create(cA.slice(2,4)),cA.splice(0,4),MA.sigBytes-=16),D.create({ciphertext:MA,salt:lA})}},F=l.SerializableCipher=h.extend({cfg:h.extend({format:T}),encrypt:function(AA,lA,MA,cA){cA=this.cfg.extend(cA);var gA=AA.createEncryptor(MA,cA),BA=gA.finalize(lA),DA=gA.cfg;return D.create({ciphertext:BA,key:MA,iv:DA.iv,algorithm:AA,mode:DA.mode,padding:DA.padding,blockSize:AA.blockSize,formatter:cA.format})},decrypt:function(AA,lA,MA,cA){return cA=this.cfg.extend(cA),lA=this._parse(lA,cA.format),AA.createDecryptor(MA,cA).finalize(lA.ciphertext)},_parse:function(AA,lA){return"string"==typeof AA?lA.parse(AA,this):AA}}),b=(o.kdf={}).OpenSSL={execute:function(AA,lA,MA,cA){cA||(cA=a.random(8));var gA=f.create({keySize:lA+MA}).compute(AA,cA),BA=a.create(gA.words.slice(lA),4*MA);return gA.sigBytes=4*lA,D.create({key:gA,iv:BA,salt:cA})}},Z=l.PasswordBasedCipher=F.extend({cfg:F.cfg.extend({kdf:b}),encrypt:function(AA,lA,MA,cA){var gA=(cA=this.cfg.extend(cA)).kdf.execute(MA,AA.keySize,AA.ivSize);cA.iv=gA.iv;var BA=F.encrypt.call(this,AA,lA,gA.key,cA);return BA.mixIn(gA),BA},decrypt:function(AA,lA,MA,cA){cA=this.cfg.extend(cA),lA=this._parse(lA,cA.format);var gA=cA.kdf.execute(MA,AA.keySize,AA.ivSize,lA.salt);return cA.iv=gA.iv,F.decrypt.call(this,AA,lA,gA.key,cA)}}))}(n(757),n(3839))},757:function(Y,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,o){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(m){}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 m(){}return function(d){var v;return m.prototype=d,v=new m,m.prototype=null,v}}(),g={},E=g.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,U=this.sigBytes,T=d.sigBytes;if(this.clamp(),U%4)for(var F=0;F>>2]|=(D[F>>>2]>>>24-F%4*8&255)<<24-(U+F)%4*8;else for(var b=0;b>>2]=D[b>>>2];return this.sigBytes+=T,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-T%4*8&255;U.push((F>>>4).toString(16)),U.push((15&F).toString(16))}return U.join("")},parse:function(d){for(var v=d.length,D=[],U=0;U>>3]|=parseInt(d.substr(U,2),16)<<24-U%8*4;return new C.init(D,v/2)}},B=e.Latin1={stringify:function(d){for(var v=d.words,D=d.sigBytes,U=[],T=0;T>>2]>>>24-T%4*8&255));return U.join("")},parse:function(d){for(var v=d.length,D=[],U=0;U>>2]|=(255&d.charCodeAt(U))<<24-U%4*8;return new C.init(D,v)}},w=e.Utf8={stringify:function(d){try{return decodeURIComponent(escape(B.stringify(d)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(d){return B.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,U=D.words,T=D.sigBytes,F=this.blockSize,b=T/(4*F),Z=(b=d?i.ceil(b):i.max((0|b)-this._minBufferSize,0))*F,aA=i.min(4*Z,T);if(Z){for(var AA=0;AA>>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(;B.length%4;)B.push(v);return B.join("")},parse:function(u){var C=u.length,e=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var B=0;B>>6-B%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(Y,I,n){"use strict";n(9600),Y.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,B=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=B.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,B=this._reverseMap;if(!B){B=this._reverseMap=[];for(var w=0;w>>6-B%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return l.create(e,f)}(u,e,B)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},c.enc.Base64url;var l}(n(757))},4978:function(Y,I,n){"use strict";n(9600),Y.exports=function(c){return function(){var l=c.lib.WordArray,h=c.enc;function g(E){return E<<8&4278255360|E>>>8&16711935}h.Utf16=h.Utf16BE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],B=0;B>>2]>>>16-B%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=[],B=0;B>>2]>>>16-B%4*8&65535);f.push(String.fromCharCode(w))}return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=g(u.charCodeAt(f)<<16-f%2*16);return l.create(e,2*C)}}}(),c.enc.Utf16}(n(757))},3839:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return h=(o=(i=c).lib).WordArray,E=(a=i.algo).EvpKDF=(l=o.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,B=this.cfg,w=B.hasher.create(),Q=h.create(),p=Q.words,S=B.keySize,m=B.iterations;p.lengthB&&(e=C.finalize(e)),e.clamp();for(var w=this._oKey=e.clone(),Q=this._iKey=e.clone(),p=w.words,S=Q.words,m=0;m>>2]|=g[C]<<24-C%4*8;h.call(this,u,E)}else h.apply(this,arguments)};a.prototype=l}}(),c.lib.WordArray},Y.exports=i(n(757))},3440:function(Y,I,n){"use strict";Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,g=o.algo,E=[];!function(){for(var w=0;w<64;w++)E[w]=4294967296*i.abs(i.sin(w+1))|0}();var u=g.MD5=a.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,p){for(var S=0;S<16;S++){var m=p+S,d=Q[m];Q[m]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var v=this._hash.words,D=Q[p+0],U=Q[p+1],T=Q[p+2],F=Q[p+3],z=Q[p+4],b=Q[p+5],Z=Q[p+6],aA=Q[p+7],AA=Q[p+8],lA=Q[p+9],MA=Q[p+10],cA=Q[p+11],gA=Q[p+12],BA=Q[p+13],DA=Q[p+14],FA=Q[p+15],_=v[0],dA=v[1],uA=v[2],CA=v[3];_=C(_,dA,uA,CA,D,7,E[0]),CA=C(CA,_,dA,uA,U,12,E[1]),uA=C(uA,CA,_,dA,T,17,E[2]),dA=C(dA,uA,CA,_,F,22,E[3]),_=C(_,dA,uA,CA,z,7,E[4]),CA=C(CA,_,dA,uA,b,12,E[5]),uA=C(uA,CA,_,dA,Z,17,E[6]),dA=C(dA,uA,CA,_,aA,22,E[7]),_=C(_,dA,uA,CA,AA,7,E[8]),CA=C(CA,_,dA,uA,lA,12,E[9]),uA=C(uA,CA,_,dA,MA,17,E[10]),dA=C(dA,uA,CA,_,cA,22,E[11]),_=C(_,dA,uA,CA,gA,7,E[12]),CA=C(CA,_,dA,uA,BA,12,E[13]),uA=C(uA,CA,_,dA,DA,17,E[14]),_=e(_,dA=C(dA,uA,CA,_,FA,22,E[15]),uA,CA,U,5,E[16]),CA=e(CA,_,dA,uA,Z,9,E[17]),uA=e(uA,CA,_,dA,cA,14,E[18]),dA=e(dA,uA,CA,_,D,20,E[19]),_=e(_,dA,uA,CA,b,5,E[20]),CA=e(CA,_,dA,uA,MA,9,E[21]),uA=e(uA,CA,_,dA,FA,14,E[22]),dA=e(dA,uA,CA,_,z,20,E[23]),_=e(_,dA,uA,CA,lA,5,E[24]),CA=e(CA,_,dA,uA,DA,9,E[25]),uA=e(uA,CA,_,dA,F,14,E[26]),dA=e(dA,uA,CA,_,AA,20,E[27]),_=e(_,dA,uA,CA,BA,5,E[28]),CA=e(CA,_,dA,uA,T,9,E[29]),uA=e(uA,CA,_,dA,aA,14,E[30]),_=f(_,dA=e(dA,uA,CA,_,gA,20,E[31]),uA,CA,b,4,E[32]),CA=f(CA,_,dA,uA,AA,11,E[33]),uA=f(uA,CA,_,dA,cA,16,E[34]),dA=f(dA,uA,CA,_,DA,23,E[35]),_=f(_,dA,uA,CA,U,4,E[36]),CA=f(CA,_,dA,uA,z,11,E[37]),uA=f(uA,CA,_,dA,aA,16,E[38]),dA=f(dA,uA,CA,_,MA,23,E[39]),_=f(_,dA,uA,CA,BA,4,E[40]),CA=f(CA,_,dA,uA,D,11,E[41]),uA=f(uA,CA,_,dA,F,16,E[42]),dA=f(dA,uA,CA,_,Z,23,E[43]),_=f(_,dA,uA,CA,lA,4,E[44]),CA=f(CA,_,dA,uA,gA,11,E[45]),uA=f(uA,CA,_,dA,FA,16,E[46]),_=B(_,dA=f(dA,uA,CA,_,T,23,E[47]),uA,CA,D,6,E[48]),CA=B(CA,_,dA,uA,aA,10,E[49]),uA=B(uA,CA,_,dA,DA,15,E[50]),dA=B(dA,uA,CA,_,b,21,E[51]),_=B(_,dA,uA,CA,gA,6,E[52]),CA=B(CA,_,dA,uA,F,10,E[53]),uA=B(uA,CA,_,dA,MA,15,E[54]),dA=B(dA,uA,CA,_,U,21,E[55]),_=B(_,dA,uA,CA,AA,6,E[56]),CA=B(CA,_,dA,uA,FA,10,E[57]),uA=B(uA,CA,_,dA,Z,15,E[58]),dA=B(dA,uA,CA,_,BA,21,E[59]),_=B(_,dA,uA,CA,z,6,E[60]),CA=B(CA,_,dA,uA,cA,10,E[61]),uA=B(uA,CA,_,dA,T,15,E[62]),dA=B(dA,uA,CA,_,lA,21,E[63]),v[0]=v[0]+_|0,v[1]=v[1]+dA|0,v[2]=v[2]+uA|0,v[3]=v[3]+CA|0},_doFinalize:function(){var Q=this._data,p=Q.words,S=8*this._nDataBytes,m=8*Q.sigBytes;p[m>>>5]|=128<<24-m%32;var d=i.floor(S/4294967296),v=S;p[15+(m+64>>>9<<4)]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p[14+(m+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,U=D.words,T=0;T<4;T++){var F=U[T];U[T]=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,S,m,d,v){var D=w+(Q&p|~Q&S)+m+v;return(D<>>32-d)+Q}function e(w,Q,p,S,m,d,v){var D=w+(Q&S|p&~S)+m+v;return(D<>>32-d)+Q}function f(w,Q,p,S,m,d,v){var D=w+(Q^p^S)+m+v;return(D<>>32-d)+Q}function B(w,Q,p,S,m,d,v){var D=w+(p^(Q|~S))+m+v;return(D<>>32-d)+Q}o.MD5=a._createHelper(u),o.HmacMD5=a._createHmacHelper(u)}(Math),c.MD5}(n(757))},702:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return c.mode.CFB=function(){var i=c.lib.BlockCipherMode.extend();function o(l,h,a,g){var E,u=this._iv;u?(E=u.slice(0),this._iv=void 0):E=this._prevBlock,g.encryptBlock(E,0);for(var C=0;C>24&255)){var g=a>>16&255,E=a>>8&255,u=255&a;255===g?(g=0,255===E?(E=0,255===u?u=0:++u):++E):++g,a=0,a+=g<<16,a+=E<<8,a+=u}else a+=16777216;return a}var h=i.Encryptor=i.extend({processBlock:function(g,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]=o(a[0]))&&(a[1]=o(a[1])),a}(f);var B=f.slice(0);u.encryptBlock(B,0);for(var w=0;w>>2]|=g<<24-E%4*8,o.sigBytes+=g},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},c.pad.Ansix923}(n(757),n(1582))},4431:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return c.pad.Iso10126={pad:function(o,l){var h=4*l,a=h-o.sigBytes%h;o.concat(c.lib.WordArray.random(a-1)).concat(c.lib.WordArray.create([a<<24],1))},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},c.pad.Iso10126}(n(757),n(1582))},8800:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return c.pad.Iso97971={pad:function(o,l){o.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(o,l)},unpad:function(o){c.pad.ZeroPadding.unpad(o),o.sigBytes--}},c.pad.Iso97971}(n(757),n(1582))},649:function(Y,I,n){"use strict";Y.exports=function(c){return c.pad.NoPadding={pad:function(){},unpad:function(){}},c.pad.NoPadding}(n(757),n(1582))},3992:function(Y,I,n){"use strict";Y.exports=function(c){return c.pad.ZeroPadding={pad:function(o,l){var h=4*l;o.clamp(),o.sigBytes+=h-(o.sigBytes%h||h)},unpad:function(o){var l=o.words,h=o.sigBytes-1;for(h=o.sigBytes-1;h>=0;h--)if(l[h>>>2]>>>24-h%4*8&255){o.sigBytes=h+1;break}}},c.pad.ZeroPadding}(n(757),n(1582))},3486:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return h=(o=(i=c).lib).WordArray,E=(a=i.algo).HMAC,u=a.PBKDF2=(l=o.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 B=this.cfg,w=E.create(B.hasher,e),Q=h.create(),p=h.create([1]),S=Q.words,m=p.words,d=B.keySize,v=B.iterations;S.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(B){var S=B.words,m=S[0],d=S[1],v=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),U=v>>>16|4294901760&D,T=D<<16|65535&v;for(Q[0]^=v,Q[1]^=U,Q[2]^=D,Q[3]^=T,Q[4]^=v,Q[5]^=U,Q[6]^=D,Q[7]^=T,p=0;p<4;p++)C.call(this)}},_doProcessBlock:function(f,B){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[B+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,B=0;B<8;B++)g[B]=f[B];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,B=0;B<8;B++){var w=e[B]+f[B],Q=65535&w,p=w>>>16;E[B]=((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(Y,I,n){"use strict";Y.exports=function(c){return function(){var i=c,l=i.lib.StreamCipher,a=[],g=[],E=[],u=i.algo.Rabbit=l.extend({_doReset:function(){for(var f=this._key.words,B=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(B){var S=B.words,m=S[0],d=S[1],v=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),U=v>>>16|4294901760&D,T=D<<16|65535&v;for(p[0]^=v,p[1]^=U,p[2]^=D,p[3]^=T,p[4]^=v,p[5]^=U,p[6]^=D,p[7]^=T,w=0;w<4;w++)C.call(this)}},_doProcessBlock:function(f,B){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[B+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,B=0;B<8;B++)g[B]=f[B];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,B=0;B<8;B++){var w=e[B]+f[B],Q=65535&w,p=w>>>16;E[B]=((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(Y,I,n){"use strict";n(1539),n(8674),Y.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,B=this._S=[],w=0;w<256;w++)B[w]=w;w=0;for(var Q=0;w<256;w++){var p=w%f,m=B[w];B[w]=B[Q=(Q+B[w]+(e[p>>>2]>>>24-p%4*8&255))%256],B[Q]=m}this._i=this._j=0},_doProcessBlock:function(C,e){C[e]^=g.call(this)},keySize:8,ivSize:0});function g(){for(var u=this._S,C=this._i,e=this._j,f=0,B=0;B<4;B++){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*B}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--)g.call(this)}});i.RC4Drop=l._createHelper(E)}(),c.RC4}(n(757),n(7508),n(3440),n(3839),n(1582))},8714:function(Y,I,n){"use strict";Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,g=o.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]),B=h.create([1352829926,1548603684,1836072691,2053994217,0]),w=g.RIPEMD160=a.extend({_doReset:function(){this._hash=h.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(U,T){for(var F=0;F<16;F++){var z=T+F,b=U[z];U[z]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8)}var BA,DA,FA,_,dA,uA,CA,SA,bA,XA,q,Z=this._hash.words,aA=f.words,AA=B.words,lA=E.words,MA=u.words,cA=C.words,gA=e.words;for(uA=BA=Z[0],CA=DA=Z[1],SA=FA=Z[2],bA=_=Z[3],XA=dA=Z[4],F=0;F<80;F+=1)q=BA+U[T+lA[F]]|0,q+=F<16?Q(DA,FA,_)+aA[0]:F<32?p(DA,FA,_)+aA[1]:F<48?S(DA,FA,_)+aA[2]:F<64?m(DA,FA,_)+aA[3]:d(DA,FA,_)+aA[4],q=(q=v(q|=0,cA[F]))+dA|0,BA=dA,dA=_,_=v(FA,10),FA=DA,DA=q,q=uA+U[T+MA[F]]|0,q+=F<16?d(CA,SA,bA)+AA[0]:F<32?m(CA,SA,bA)+AA[1]:F<48?S(CA,SA,bA)+AA[2]:F<64?p(CA,SA,bA)+AA[3]:Q(CA,SA,bA)+AA[4],q=(q=v(q|=0,gA[F]))+XA|0,uA=XA,XA=bA,bA=v(SA,10),SA=CA,CA=q;q=Z[1]+FA+bA|0,Z[1]=Z[2]+_+XA|0,Z[2]=Z[3]+dA+uA|0,Z[3]=Z[4]+BA+CA|0,Z[4]=Z[0]+DA+SA|0,Z[0]=q},_doFinalize:function(){var U=this._data,T=U.words,F=8*this._nDataBytes,z=8*U.sigBytes;T[z>>>5]|=128<<24-z%32,T[14+(z+64>>>9<<4)]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8),U.sigBytes=4*(T.length+1),this._process();for(var b=this._hash,Z=b.words,aA=0;aA<5;aA++){var AA=Z[aA];Z[aA]=16711935&(AA<<8|AA>>>24)|4278255360&(AA<<24|AA>>>8)}return b},clone:function(){var U=a.clone.call(this);return U._hash=this._hash.clone(),U}});function Q(D,U,T){return D^U^T}function p(D,U,T){return D&U|~D&T}function S(D,U,T){return(D|~U)^T}function m(D,U,T){return D&T|U&~T}function d(D,U,T){return D^(U|~T)}function v(D,U){return D<>>32-U}o.RIPEMD160=a._createHelper(w),o.HmacRIPEMD160=a._createHmacHelper(w)}(Math),c.RIPEMD160}(n(757))},9865:function(Y,I,n){"use strict";Y.exports=function(c){return l=(o=(i=c).lib).WordArray,g=[],E=i.algo.SHA1=(h=o.Hasher).extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,e){for(var f=this._hash.words,B=f[0],w=f[1],Q=f[2],p=f[3],S=f[4],m=0;m<80;m++){if(m<16)g[m]=0|C[e+m];else{var d=g[m-3]^g[m-8]^g[m-14]^g[m-16];g[m]=d<<1|d>>>31}var v=(B<<5|B>>>27)+S+g[m];v+=m<20?1518500249+(w&Q|~w&p):m<40?1859775393+(w^Q^p):m<60?(w&Q|w&p|Q&p)-1894007588:(w^Q^p)-899497514,S=p,p=Q,Q=w<<30|w>>>2,w=B,B=v}f[0]=f[0]+B|0,f[1]=f[1]+w|0,f[2]=f[2]+Q|0,f[3]=f[3]+p|0,f[4]=f[4]+S|0},_doFinalize:function(){var C=this._data,e=C.words,f=8*this._nDataBytes,B=8*C.sigBytes;return e[B>>>5]|=128<<24-B%32,e[14+(B+64>>>9<<4)]=Math.floor(f/4294967296),e[15+(B+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,o,l,h,g,E}(n(757))},6876:function(Y,I,n){"use strict";Y.exports=function(c){return l=(i=c).lib.WordArray,g=(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(g),i.HmacSHA224=a._createHmacHelper(g),c.SHA224;var i,l,h,a,g}(n(757),n(8921))},8921:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,g=o.algo,E=[],u=[];!function(){function f(p){for(var S=i.sqrt(p),m=2;m<=S;m++)if(!(p%m))return!1;return!0}function B(p){return 4294967296*(p-(0|p))|0}for(var w=2,Q=0;Q<64;)f(w)&&(Q<8&&(E[Q]=B(i.pow(w,.5))),u[Q]=B(i.pow(w,.3333333333333333)),Q++),w++}();var C=[],e=g.SHA256=a.extend({_doReset:function(){this._hash=new h.init(E.slice(0))},_doProcessBlock:function(B,w){for(var Q=this._hash.words,p=Q[0],S=Q[1],m=Q[2],d=Q[3],v=Q[4],D=Q[5],U=Q[6],T=Q[7],F=0;F<64;F++){if(F<16)C[F]=0|B[w+F];else{var z=C[F-15],Z=C[F-2];C[F]=((z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3)+C[F-7]+((Z<<15|Z>>>17)^(Z<<13|Z>>>19)^Z>>>10)+C[F-16]}var lA=p&S^p&m^S&m,gA=T+((v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25))+(v&D^~v&U)+u[F]+C[F];T=U,U=D,D=v,v=d+gA|0,d=m,m=S,S=p,p=gA+(((p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22))+lA)|0}Q[0]=Q[0]+p|0,Q[1]=Q[1]+S|0,Q[2]=Q[2]+m|0,Q[3]=Q[3]+d|0,Q[4]=Q[4]+v|0,Q[5]=Q[5]+D|0,Q[6]=Q[6]+U|0,Q[7]=Q[7]+T|0},_doFinalize:function(){var B=this._data,w=B.words,Q=8*this._nDataBytes,p=8*B.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,B.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var B=a.clone.call(this);return B._hash=this._hash.clone(),B}});o.SHA256=a._createHelper(e),o.HmacSHA256=a._createHmacHelper(e)}(Math),c.SHA256}(n(757))},8342:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,E=o.x64.Word,u=o.algo,C=[],e=[],f=[];!function(){for(var Q=1,p=0,S=0;S<24;S++){C[Q+5*p]=(S+1)*(S+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 U=0,T=0,F=0;F<7;F++){if(1&v){var z=(1<>>24)|4278255360&(D<<24|D>>>8),(T=m[v]).high^=U=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8),T.low^=D}for(var F=0;F<24;F++){for(var z=0;z<5;z++){for(var b=0,Z=0,aA=0;aA<5;aA++)b^=(T=m[z+5*aA]).high,Z^=T.low;var AA=B[z];AA.high=b,AA.low=Z}for(z=0;z<5;z++){var lA=B[(z+4)%5],MA=B[(z+1)%5],cA=MA.high,gA=MA.low;for(b=lA.high^(cA<<1|gA>>>31),Z=lA.low^(gA<<1|cA>>>31),aA=0;aA<5;aA++)(T=m[z+5*aA]).high^=b,T.low^=Z}for(var BA=1;BA<25;BA++){var DA=(T=m[BA]).high,FA=T.low,_=C[BA];_<32?(b=DA<<_|FA>>>32-_,Z=FA<<_|DA>>>32-_):(b=FA<<_-32|DA>>>64-_,Z=DA<<_-32|FA>>>64-_);var dA=B[e[BA]];dA.high=b,dA.low=Z}var uA=B[0],CA=m[0];for(uA.high=CA.high,uA.low=CA.low,z=0;z<5;z++)for(aA=0;aA<5;aA++){var SA=B[BA=z+5*aA],bA=B[(z+1)%5+5*aA],XA=B[(z+2)%5+5*aA];(T=m[BA]).high=SA.high^~bA.high&XA.high,T.low=SA.low^~bA.low&XA.low}var T,q=f[F];(T=m[0]).high^=q.high,T.low^=q.low}},_doFinalize:function(){var p=this._data,S=p.words,d=8*p.sigBytes,v=32*this.blockSize;S[d>>>5]|=1<<24-d%32,S[(i.ceil((d+1)/v)*v>>>5)-1]|=128,p.sigBytes=4*S.length,this._process();for(var D=this._state,U=this.cfg.outputLength/8,T=U/8,F=[],z=0;z>>24)|4278255360&(Z<<24|Z>>>8),F.push(aA=16711935&(aA<<8|aA>>>24)|4278255360&(aA<<24|aA>>>8)),F.push(Z)}return new h.init(F,U)},clone:function(){for(var p=a.clone.call(this),S=p._state=this._state.slice(0),m=0;m<25;m++)S[m]=S[m].clone();return p}});o.SHA3=a._createHelper(w),o.HmacSHA3=a._createHmacHelper(w)}(Math),c.SHA3}(n(757),n(2601))},8122:function(Y,I,n){"use strict";Y.exports=function(c){return l=(o=(i=c).x64).Word,h=o.WordArray,E=(a=i.algo).SHA384=(g=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=g._doFinalize.call(this);return C.sigBytes-=16,C}}),i.SHA384=g._createHelper(E),i.HmacSHA384=g._createHmacHelper(E),c.SHA384;var i,o,l,h,a,g,E}(n(757),n(2601),n(7991))},7991:function(Y,I,n){"use strict";var i;i=function(c){return function(){var i=c,l=i.lib.Hasher,h=i.x64,a=h.Word,g=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 B=0;B<80;B++)e[B]=u()}();var f=E.SHA512=l.extend({_doReset:function(){this._hash=new g.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,S=p[0],m=p[1],d=p[2],v=p[3],D=p[4],U=p[5],T=p[6],F=p[7],z=S.high,b=S.low,Z=m.high,aA=m.low,AA=d.high,lA=d.low,MA=v.high,cA=v.low,gA=D.high,BA=D.low,DA=U.high,FA=U.low,_=T.high,dA=T.low,uA=F.high,CA=F.low,SA=z,bA=b,XA=Z,q=aA,O=AA,$=lA,W=MA,hA=cA,mA=gA,nA=BA,EA=DA,GA=FA,et=_,ot=dA,TA=uA,it=CA,mt=0;mt<80;mt++){var It,ft,JA=e[mt];if(mt<16)ft=JA.high=0|w[Q+2*mt],It=JA.low=0|w[Q+2*mt+1];else{var WA=e[mt-15],rt=WA.high,yA=WA.low,ht=(yA>>>1|rt<<31)^(yA>>>8|rt<<24)^(yA>>>7|rt<<25),OA=e[mt-2],Yt=OA.high,H=OA.low,R=(H>>>19|Yt<<13)^(H<<3|Yt>>>29)^(H>>>6|Yt<<26),QA=e[mt-7],rA=e[mt-16],Ft=rA.low;JA.high=ft=(ft=(ft=((rt>>>1|yA<<31)^(rt>>>8|yA<<24)^rt>>>7)+QA.high+((It=ht+QA.low)>>>0>>0?1:0))+((Yt>>>19|H<<13)^(Yt<<3|H>>>29)^Yt>>>6)+((It+=R)>>>0>>0?1:0))+rA.high+((It+=Ft)>>>0>>0?1:0),JA.low=It}var re,j=mA&EA^~mA&et,kA=nA&GA^~nA&ot,At=SA&XA^SA&O^XA&O,st=(bA>>>28|SA<<4)^(bA<<30|SA>>>2)^(bA<<25|SA>>>7),Rt=C[mt],Le=Rt.low,Ae=TA+((mA>>>14|nA<<18)^(mA>>>18|nA<<14)^(mA<<23|nA>>>9))+((re=it+((nA>>>14|mA<<18)^(nA>>>18|mA<<14)^(nA<<23|mA>>>9)))>>>0>>0?1:0),ye=st+(bA&q^bA&$^q&$);TA=et,it=ot,et=EA,ot=GA,EA=mA,GA=nA,mA=W+(Ae=(Ae=(Ae=Ae+j+((re+=kA)>>>0>>0?1:0))+Rt.high+((re+=Le)>>>0>>0?1:0))+ft+((re+=It)>>>0>>0?1:0))+((nA=hA+re|0)>>>0>>0?1:0)|0,W=O,hA=$,O=XA,$=q,XA=SA,q=bA,SA=Ae+(((SA>>>28|bA<<4)^(SA<<30|bA>>>2)^(SA<<25|bA>>>7))+At+(ye>>>0>>0?1:0))+((bA=re+ye|0)>>>0>>0?1:0)|0}b=S.low=b+bA,S.high=z+SA+(b>>>0>>0?1:0),aA=m.low=aA+q,m.high=Z+XA+(aA>>>0>>0?1:0),lA=d.low=lA+$,d.high=AA+O+(lA>>>0<$>>>0?1:0),cA=v.low=cA+hA,v.high=MA+W+(cA>>>0>>0?1:0),BA=D.low=BA+nA,D.high=gA+mA+(BA>>>0>>0?1:0),FA=U.low=FA+GA,U.high=DA+EA+(FA>>>0>>0?1:0),dA=T.low=dA+ot,T.high=_+et+(dA>>>0>>0?1:0),CA=F.low=CA+it,F.high=uA+TA+(CA>>>0>>0?1:0)},_doFinalize:function(){var w=this._data,Q=w.words,p=8*this._nDataBytes,S=8*w.sigBytes;return Q[S>>>5]|=128<<24-S%32,Q[30+(S+128>>>10<<5)]=Math.floor(p/4294967296),Q[31+(S+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},Y.exports=i(n(757),n(2601))},8437:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(){var i=c,o=i.lib,l=o.WordArray,h=o.BlockCipher,a=i.algo,g=[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 m=this._key.words,d=[],v=0;v<56;v++){var D=g[v]-1;d[v]=m[D>>>5]>>>31-D%32&1}for(var U=this._subKeys=[],T=0;T<16;T++){var F=U[T]=[],z=u[T];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 b=this._invSubKeys=[];for(v=0;v<16;v++)b[v]=U[15-v]},encryptBlock:function(S,m){this._doCryptBlock(S,m,this._subKeys)},decryptBlock:function(S,m){this._doCryptBlock(S,m,this._invSubKeys)},_doCryptBlock:function(S,m,d){this._lBlock=S[m],this._rBlock=S[m+1],B.call(this,4,252645135),B.call(this,16,65535),w.call(this,2,858993459),w.call(this,8,16711935),B.call(this,1,1431655765);for(var v=0;v<16;v++){for(var D=d[v],U=this._lBlock,T=this._rBlock,F=0,z=0;z<8;z++)F|=C[z][((T^D[z])&e[z])>>>0];this._lBlock=T,this._rBlock=U^F}var b=this._lBlock;this._lBlock=this._rBlock,this._rBlock=b,B.call(this,1,1431655765),w.call(this,8,16711935),w.call(this,2,858993459),B.call(this,16,65535),B.call(this,4,252645135),S[m]=this._lBlock,S[m+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function B(p,S){var m=(this._lBlock>>>p^this._rBlock)&S;this._rBlock^=m,this._lBlock^=m<>>p^this._lBlock)&S;this._lBlock^=m,this._rBlock^=m<192.");var d=m.slice(0,2),v=m.length<4?m.slice(0,2):m.slice(2,4),D=m.length<6?m.slice(0,2):m.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(S,m){this._des1.encryptBlock(S,m),this._des2.decryptBlock(S,m),this._des3.encryptBlock(S,m)},decryptBlock:function(S,m){this._des3.decryptBlock(S,m),this._des2.encryptBlock(S,m),this._des1.decryptBlock(S,m)},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(Y,I,n){"use strict";n(7042),Y.exports=function(c){return h=(l=c.lib).Base,a=l.WordArray,(g=c.x64={}).Word=h.extend({init:function(e,f){this.high=e,this.low=f}}),g.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,B=[],w=0;w=g.length?{done:!0}:{done:!1,value:g[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 o(g,E){(null==E||E>g.length)&&(E=g.length);for(var u=0,C=new Array(E);u=Q)){D.next=13;break}return D.next=13,[Q,p,f.tags[S]];case 13:w=f.stateTable[1][d],Q=null;case 15:0!==w&&null==Q&&(Q=m),f.accepting[w]&&(p=m),0===w&&(w=1);case 18:m++,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()}},B)}),e},E.apply=function(C,e){for(var B,f=c(this.match(C));!(B=f()).done;)for(var d,w=B.value,Q=w[0],p=w[1],m=c(w[2]);!(d=m()).done;){var v=d.value;"function"==typeof e[v]&&e[v](Q,p,C.slice(Q,p+1))}},g}()},8478:function(Y,I,n){"use strict";var c=n(8823).Buffer;n(7042),n(6699);var i=n(3857),o=n(2635);Y.exports=function(){function l(a){var g;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){var E=this.readUInt32(),u="";for(g=0;g<4;g++)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(g=0;g0)for(g=0;gthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}l.decode=function(g,E){return i.readFile(g,function(u,C){return new l(C).decode(function(f){return E(f)})})},l.load=function(g){return new l(i.readFileSync(g))};var h=l.prototype;return h.read=function(g){for(var E=new Array(g),u=0;u=2147483648)throw new RangeError('The value "'+g+'" is invalid for option "size"');var C=o(g);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(g){}l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),Y.exports=l},3361:function(Y,I,n){"use strict";function c(B,w){var Q=Object.keys(B);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(B);w&&(p=p.filter(function(S){return Object.getOwnPropertyDescriptor(B,S).enumerable})),Q.push.apply(Q,p)}return Q}function o(B,w,Q){return w in B?Object.defineProperty(B,w,{value:Q,enumerable:!0,configurable:!0,writable:!0}):B[w]=Q,B}function h(B,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,S=""+p.data;p=p.next;)S+=Q+p.data;return S}},{key:"concat",value:function(Q){if(0===this.length)return E.alloc(0);for(var p=E.allocUnsafe(Q>>>0),S=this.head,m=0;S;)f(S.data,p,m),m+=S.data.length,S=S.next;return p}},{key:"consume",value:function(Q,p){var S;return Qd.length?d.length:Q;if(m+=v===d.length?d:d.slice(0,Q),0==(Q-=v)){v===d.length?(++S,this.head=p.next?p.next:this.tail=null):(this.head=p,p.data=d.slice(v));break}++S}return this.length-=S,m}},{key:"_getBuffer",value:function(Q){var p=E.allocUnsafe(Q),S=this.head,m=1;for(S.data.copy(p),Q-=S.data.length;S=S.next;){var d=S.data,v=Q>d.length?d.length:Q;if(d.copy(p,p.length-Q,0,v),0==(Q-=v)){v===d.length?(++m,this.head=S.next?S.next:this.tail=null):(this.head=S,S.data=d.slice(v));break}++m}return this.length-=m,p}},{key:e,value:function(Q,p){return C(this,function i(B){for(var w=1;wIA.length)&&(J=IA.length);for(var N=0,X=new Array(J);N=IA.length?{done:!0}:{done:!1,value:IA[X++]}},e:function(ut){throw ut},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 _A,fA=!0,pA=!1;return{s:function(){N=IA[Symbol.iterator]()},n:function(){var ut=N.next();return fA=ut.done,ut},e:function(ut){pA=!0,_A=ut},f:function(){try{!fA&&null!=N.return&&N.return()}finally{if(pA)throw _A}}}}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,X){return this._items[N]=X}},{key:"get",value:function(N){return this._items[N]}},{key:"toString",value:function(){var N=this,X=Object.keys(this._items).sort(function(Qt,vt){return N._compareKeys(Qt,vt)}),K=["<<"];if(this.limits&&X.length>1){var pA=X[X.length-1];K.push(" /Limits ".concat(bA.convert([this._dataForKey(X[0]),this._dataForKey(pA)])))}K.push(" /".concat(this._keysName()," ["));var nt,_A=DA(X);try{for(_A.s();!(nt=_A.n()).done;){var ut=nt.value;K.push(" ".concat(bA.convert(this._dataForKey(ut))," ").concat(bA.convert(this._items[ut])))}}catch(Qt){_A.e(Qt)}finally{_A.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}(),dA=function(J,N){return(Array(N+1).join("0")+J).slice(-N)},uA=/[\n\r\t\b\f()\\]/g,CA={"\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 X=0,K=N-1;X1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof N)return"/".concat(N);if(N instanceof String){for(var K=N,fA=!1,pA=0,_A=K.length;pA<_A;pA++)if(K.charCodeAt(pA)>127){fA=!0;break}var nt;return nt=fA?SA(i.from("\ufeff".concat(K),"utf16le")):i.from(K.valueOf(),"ascii"),K=(K=X?X(nt).toString("binary"):nt.toString("binary")).replace(uA,function(Ot){return CA[Ot]}),"(".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 ut="D:".concat(dA(N.getUTCFullYear(),4))+dA(N.getUTCMonth()+1,2)+dA(N.getUTCDate(),2)+dA(N.getUTCHours(),2)+dA(N.getUTCMinutes(),2)+dA(N.getUTCSeconds(),2)+"Z";return X&&(ut=(ut=X(i.from(ut,"ascii")).toString("binary")).replace(uA,function(Ot){return CA[Ot]})),"(".concat(ut,")")}if(Array.isArray(N)){var Qt=N.map(function(Ot){return IA.convert(Ot,X)}).join(" ");return"[".concat(Qt,"]")}if("[object Object]"==={}.toString.call(N)){var vt=["<<"];for(var xt in N){var Tt=N[xt];vt.push("/".concat(xt," ").concat(IA.convert(Tt,X)))}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){m(N,IA);var J=F(N);function N(X,K){var fA,pA=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(this,N),(fA=J.call(this)).document=X,fA.id=K,fA.data=pA,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),q={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||q;var X=Array.isArray(this.size)?this.size:O[this.size.toUpperCase()];this.width=X["portrait"===this.layout?0:1],this.height=X["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){m(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:X=K-1}return!1}var mA=[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,mA)},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],it=[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],mt=[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],It=function(J){return hA(J,et)||hA(J,mt)||hA(J,TA)||hA(J,it)},ft=[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],JA=function(J){return hA(J,ft)},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],rt=function(J){return hA(J,WA)},yA=function(J){return hA(J,et)},Mt=function(J){return hA(J,EA)},ht=function(J){return J.codePointAt(0)},OA=function(J){return J[0]},Yt=function(J){return J[J.length-1]};function H(IA){for(var J=[],N=IA.length,X=0;X=55296&&K<=56319&&N>X+1){var fA=IA.charCodeAt(X+1);if(fA>=56320&&fA<=57343){J.push(1024*(K-55296)+fA-56320+65536),X+=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 yA(vt)?32:vt}).filter(function(vt){return!Mt(vt)}),X=String.fromCodePoint.apply(null,N).normalize("NFKC"),K=H(X);if(K.some(It))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 _A=K.some(JA),nt=K.some(rt);if(_A&&nt)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");var ut=JA(ht(OA(X))),Qt=JA(ht(Yt(X)));if(_A&&(!ut||!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 X}var R=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]:{},X="".concat(N.CreationDate.getTime(),"\n");for(var K in N)!N.hasOwnProperty(K)||(X+="".concat(K,": ").concat(N[K].valueOf(),"\n"));return Vt(h.default.MD5(X))}},{key:"generateRandomWordArray",value:function(N){return h.default.lib.WordArray.random(N)}},{key:"create",value:function(N){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return X.ownerPassword||X.userPassword?new IA(N,X):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 X={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,X,N);break;case 5:this._setupEncryptionV5(X,N)}this.dictionary=this.document.ref(X)}},{key:"_setupEncryptionV1V2V4",value:function(N,X,K){var fA,pA;switch(N){case 1:fA=2,this.keyBits=40,pA=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,pA=wA(K.permissions);break;case 4:fA=4,this.keyBits=128,pA=wA(K.permissions)}var Qt,_A=Lt(K.userPassword),nt=K.ownerPassword?Lt(K.ownerPassword):_A,ut=function ct(IA,J,N,X){for(var K=X,fA=IA>=3?51:1,pA=0;pA=3?20:1;for(var ut=0;ut=3?51:1,nt=0;nt<_A;nt++)(pA=h.default.MD5(pA)).sigBytes=J/8;return pA}(fA,this.keyBits,this.document._id,_A,ut,pA),Qt=2===fA?function RA(IA){return h.default.RC4.encrypt(Lt(),IA).ciphertext}(this.encryptionKey):function rA(IA,J){for(var N=J.clone(),X=h.default.MD5(Lt().concat(h.default.lib.WordArray.create(IA))),K=0;K<20;K++){for(var fA=Math.ceil(N.sigBytes/4),pA=0;pA=2&&(X.Length=this.keyBits),4===N&&(X.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},X.StmF="StdCF",X.StrF="StdCF"),X.R=fA,X.O=Vt(ut),X.U=Vt(Qt),X.P=pA}},{key:"_setupEncryptionV5",value:function(N,X){this.keyBits=256;var K=wA(X.permissions),fA=Dt(X.userPassword),pA=X.ownerPassword?Dt(X.ownerPassword):fA;this.encryptionKey=function KA(IA){return IA(32)}(IA.generateRandomWordArray);var _A=function j(IA,J){var N=J(8),X=J(8);return h.default.SHA256(IA.clone().concat(N)).concat(N).concat(X)}(fA,IA.generateRandomWordArray),ut=function kA(IA,J,N){var X=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,X,K).ciphertext}(fA,h.default.lib.WordArray.create(_A.words.slice(10,12),8),this.encryptionKey),Qt=function At(IA,J,N){var X=N(8),K=N(8);return h.default.SHA256(IA.clone().concat(X).concat(J)).concat(X).concat(K)}(pA,_A,IA.generateRandomWordArray),xt=function xA(IA,J,N,X){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(X,K,fA).ciphertext}(pA,h.default.lib.WordArray.create(Qt.words.slice(10,12),8),_A,this.encryptionKey),Tt=function st(IA,J,N){var X=h.default.lib.WordArray.create([Rt(IA),4294967295,1415668834],12).concat(N(4));return h.default.AES.encrypt(X,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=Vt(Qt),N.OE=Vt(xt),N.U=Vt(_A),N.UE=Vt(ut),N.P=K,N.Perms=Vt(Tt)}},{key:"getEncryptFn",value:function(N,X){var K,pA;if(this.version<5&&(K=this.encryptionKey.clone().concat(h.default.lib.WordArray.create([(255&N)<<24|(65280&N)<<8|N>>8&65280|255&X,(65280&X)<<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(ut){return Vt(h.default.RC4.encrypt(h.default.lib.WordArray.create(ut),fA).ciphertext)}}pA=4===this.version?h.default.MD5(K.concat(h.default.lib.WordArray.create([1933667412],4))):this.encryptionKey;var _A=IA.generateRandomWordArray(16),nt={mode:h.default.mode.CBC,padding:h.default.pad.Pkcs7,iv:_A};return function(ut){return Vt(_A.clone().concat(h.default.AES.encrypt(h.default.lib.WordArray.create(ut),pA,nt).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 Lt(){for(var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",J=i.alloc(32),N=IA.length,X=0;X255)throw new Error("Password contains one or more invalid characters.");J[X]=K,X++}for(;X<32;)J[X]=Le[X-N],X++;return h.default.lib.WordArray.create(J)}function Dt(){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),X=0;X>8&65280|IA>>24&255}function Vt(IA){for(var J=[],N=0;N>8*(3-N%4)&255);return i.from(J)}var Jt,bt,Xt,oe,vn,pn,Le=[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],re=bA.number,Ae=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,X,K){if(null==K&&(K=1),X=this.doc._normalizeColor(X),0===this.stops.length)if(3===X.length)this._colorSpace="DeviceRGB";else if(4===X.length)this._colorSpace="DeviceCMYK";else{if(1!==X.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==X.length||"DeviceCMYK"===this._colorSpace&&4!==X.length||"DeviceGray"===this._colorSpace&&1!==X.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,X,K]),this}},{key:"setTransform",value:function(N,X,K,fA,pA,_A){return this.transform=[N,X,K,fA,pA,_A],this}},{key:"embed",value:function(N){var X,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 pA=[],_A=[],nt=[],ut=0;ut>16,N>>8&255,255&N]}else bn[J]&&(J=bn[J]);return Array.isArray(J)?(3===J.length?J=J.map(function(X){return X/255}):4===J.length&&(J=J.map(function(X){return X/100})),J):null},_setColor:function(J,N){return J instanceof tn?(J.apply(N),!0):Array.isArray(J)&&J[0]instanceof Xe?(J[0].apply(N,J[1]),!0):this._setColorCore(J,N)},_setColorCore:function(J,N){if(!(J=this._normalizeColor(J)))return!1;var X=N?"SCN":"scn",K=this._getColorSpace(J);return this._setColorSpace(K,N),J=J.join(" "),this.addContent("".concat(J," ").concat(X)),!0},_setColorSpace:function(J,N){var X=N?"CS":"cs";return this.addContent("/".concat(J," ").concat(X))},_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 X,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 pA=z(this._opacityRegistry[fA],2);X=pA[0],K=pA[1]}else{X={Type:"ExtGState"},null!=J&&(X.ca=J),null!=N&&(X.CA=N),(X=this.ref(X)).end();var _A=++this._opacityCount;K="Gs".concat(_A),this._opacityRegistry[fA]=[X,K]}return this.page.ext_gstates[K]=X,this.addContent("/".concat(K," gs"))}},linearGradient:function(J,N,X,K){return new Te(this,J,N,X,K)},radialGradient:function(J,N,X,K,fA,pA){return new en(this,J,N,X,K,fA,pA)},pattern:function(J,N,X,K){return new Xe(this,J,N,X,K)}},bn={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]};Jt=bt=Xt=oe=vn=pn=0;var Yn={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},Tn={M:function(J,N){return Xt=oe=null,vn=Jt=N[0],pn=bt=N[1],J.moveTo(Jt,bt)},m:function(J,N){return Xt=oe=null,vn=Jt+=N[0],pn=bt+=N[1],J.moveTo(Jt,bt)},C:function(J,N){return Jt=N[4],bt=N[5],Xt=N[2],oe=N[3],J.bezierCurveTo.apply(J,b(N))},c:function(J,N){return J.bezierCurveTo(N[0]+Jt,N[1]+bt,N[2]+Jt,N[3]+bt,N[4]+Jt,N[5]+bt),Xt=Jt+N[2],oe=bt+N[3],Jt+=N[4],bt+=N[5]},S:function(J,N){return null===Xt&&(Xt=Jt,oe=bt),J.bezierCurveTo(Jt-(Xt-Jt),bt-(oe-bt),N[0],N[1],N[2],N[3]),Xt=N[0],oe=N[1],Jt=N[2],bt=N[3]},s:function(J,N){return null===Xt&&(Xt=Jt,oe=bt),J.bezierCurveTo(Jt-(Xt-Jt),bt-(oe-bt),Jt+N[0],bt+N[1],Jt+N[2],bt+N[3]),Xt=Jt+N[0],oe=bt+N[1],Jt+=N[2],bt+=N[3]},Q:function(J,N){return Xt=N[0],oe=N[1],J.quadraticCurveTo(N[0],N[1],Jt=N[2],bt=N[3])},q:function(J,N){return J.quadraticCurveTo(N[0]+Jt,N[1]+bt,N[2]+Jt,N[3]+bt),Xt=Jt+N[0],oe=bt+N[1],Jt+=N[2],bt+=N[3]},T:function(J,N){return null===Xt?(Xt=Jt,oe=bt):(Xt=Jt-(Xt-Jt),oe=bt-(oe-bt)),J.quadraticCurveTo(Xt,oe,N[0],N[1]),Xt=Jt-(Xt-Jt),oe=bt-(oe-bt),Jt=N[0],bt=N[1]},t:function(J,N){return null===Xt?(Xt=Jt,oe=bt):(Xt=Jt-(Xt-Jt),oe=bt-(oe-bt)),J.quadraticCurveTo(Xt,oe,Jt+N[0],bt+N[1]),Jt+=N[0],bt+=N[1]},A:function(J,N){return ZA(J,Jt,bt,N),Jt=N[5],bt=N[6]},a:function(J,N){return N[5]+=Jt,N[6]+=bt,ZA(J,Jt,bt,N),Jt=N[5],bt=N[6]},L:function(J,N){return Xt=oe=null,J.lineTo(Jt=N[0],bt=N[1])},l:function(J,N){return Xt=oe=null,J.lineTo(Jt+=N[0],bt+=N[1])},H:function(J,N){return Xt=oe=null,J.lineTo(Jt=N[0],bt)},h:function(J,N){return Xt=oe=null,J.lineTo(Jt+=N[0],bt)},V:function(J,N){return Xt=oe=null,J.lineTo(Jt,bt=N[0])},v:function(J,N){return Xt=oe=null,J.lineTo(Jt,bt+=N[0])},Z:function(J){return J.closePath(),Jt=vn,bt=pn},z:function(J){return J.closePath(),Jt=vn,bt=pn}},ZA=function(J,N,X,K){var Kt,fA=z(K,7),Ot=DA(YA(fA[5],fA[6],fA[0],fA[1],fA[3],fA[4],fA[2],N,X));try{for(Ot.s();!(Kt=Ot.n()).done;){var Ee=tt.apply(void 0,b(Kt.value));J.bezierCurveTo.apply(J,b(Ee))}}catch(Ie){Ot.e(Ie)}finally{Ot.f()}},YA=function(J,N,X,K,fA,pA,_A,nt,ut){var Qt=_A*(Math.PI/180),vt=Math.sin(Qt),xt=Math.cos(Qt);X=Math.abs(X),K=Math.abs(K);var Tt=(Xt=xt*(nt-J)*.5+vt*(ut-N)*.5)*Xt/(X*X)+(oe=xt*(ut-N)*.5-vt*(nt-J)*.5)*oe/(K*K);Tt>1&&(X*=Tt=Math.sqrt(Tt),K*=Tt);var Ot=xt/X,Kt=vt/X,fe=-vt/K,Ee=xt/K,Ie=Ot*nt+Kt*ut,nn=fe*nt+Ee*ut,Me=Ot*J+Kt*N,je=fe*J+Ee*N,Ke=1/((Me-Ie)*(Me-Ie)+(je-nn)*(je-nn))-.25;Ke<0&&(Ke=0);var dn=Math.sqrt(Ke);pA===fA&&(dn=-dn);var Kn=.5*(Ie+Me)-dn*(je-nn),_n=.5*(nn+je)+dn*(Me-Ie),Sn=Math.atan2(nn-_n,Ie-Kn),Hn=Math.atan2(je-_n,Me-Kn)-Sn;Hn<0&&1===pA?Hn+=2*Math.PI:Hn>0&&0===pA&&(Hn-=2*Math.PI);for(var rr=Math.ceil(Math.abs(Hn/(.5*Math.PI+.001))),Qr=[],$n=0;$n0&&(K[K.length]=+fA),X[X.length]={cmd:N,args:K},K=[],fA="",pA=!1),N=Qt;else if([" ",","].includes(Qt)||"-"===Qt&&fA.length>0&&"e"!==fA[fA.length-1]||"."===Qt&&pA){if(0===fA.length)continue;K.length===_A?(X[X.length]={cmd:N,args:K},K=[+fA],"M"===N&&(N="L"),"m"===N&&(N="l")):K[K.length]=+fA,pA="."===Qt,fA=["-","."].includes(Qt)?Qt:""}else fA+=Qt,"."===Qt&&(pA=!0)}}catch(vt){nt.e(vt)}finally{nt.f()}return fA.length>0&&(K.length===_A?(X[X.length]={cmd:N,args:K},K=[+fA],"M"===N&&(N="L"),"m"===N&&(N="l")):K[K.length]=+fA),X[X.length]={cmd:N,args:K},X}(X);!function(J,N){Jt=bt=Xt=oe=vn=pn=0;for(var X=0;X1&&void 0!==arguments[1]?arguments[1]:{},X=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(X),", ").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,X,K,fA,pA){return this.addContent("".concat(PA(J)," ").concat(PA(N)," ").concat(PA(X)," ").concat(PA(K)," ").concat(PA(fA)," ").concat(PA(pA)," c"))},quadraticCurveTo:function(J,N,X,K){return this.addContent("".concat(PA(J)," ").concat(PA(N)," ").concat(PA(X)," ").concat(PA(K)," v"))},rect:function(J,N,X,K){return this.addContent("".concat(PA(J)," ").concat(PA(N)," ").concat(PA(X)," ").concat(PA(K)," re"))},roundedRect:function(J,N,X,K,fA){null==fA&&(fA=0);var pA=(fA=Math.min(fA,.5*X,.5*K))*(1-zA);return this.moveTo(J+fA,N),this.lineTo(J+X-fA,N),this.bezierCurveTo(J+X-pA,N,J+X,N+pA,J+X,N+fA),this.lineTo(J+X,N+K-fA),this.bezierCurveTo(J+X,N+K-pA,J+X-pA,N+K,J+X-fA,N+K),this.lineTo(J+fA,N+K),this.bezierCurveTo(J+pA,N+K,J,N+K-pA,J,N+K-fA),this.lineTo(J,N+fA),this.bezierCurveTo(J,N+pA,J+pA,N,J+fA,N),this.closePath()},ellipse:function(J,N,X,K){null==K&&(K=X);var fA=X*zA,pA=K*zA,_A=(J-=X)+2*X,nt=(N-=K)+2*K,ut=J+X,Qt=N+K;return this.moveTo(J,Qt),this.bezierCurveTo(J,Qt-pA,ut-fA,N,ut,N),this.bezierCurveTo(ut+fA,N,_A,Qt-pA,_A,Qt),this.bezierCurveTo(_A,Qt+pA,ut+fA,nt,ut,nt),this.bezierCurveTo(ut-fA,nt,J,Qt+pA,J,Qt),this.closePath()},circle:function(J,N,X){return this.ellipse(J,N,X)},arc:function(J,N,X,K,fA,pA){null==pA&&(pA=!1);var _A=2*Math.PI,nt=.5*Math.PI,ut=fA-K;Math.abs(ut)>_A?ut=_A:0!==ut&&pA!==ut<0&&(ut=(pA?-1:1)*_A+ut);var vt=Math.ceil(Math.abs(ut)/nt),xt=ut/vt,Tt=xt/nt*zA*X,Ot=K,Kt=-Math.sin(Ot)*Tt,fe=Math.cos(Ot)*Tt,Ee=J+Math.cos(Ot)*X,Ie=N+Math.sin(Ot)*X;this.moveTo(Ee,Ie);for(var nn=0;nn1&&void 0!==arguments[1]?arguments[1]:{},K=J*Math.PI/180,fA=Math.cos(K),pA=Math.sin(K),_A=X=0;if(null!=N.origin){var nt=z(N.origin,2),Qt=(_A=nt[0])*pA+(X=nt[1])*fA;_A-=_A*fA-X*pA,X-=Qt}return this.transform(fA,pA,-pA,fA,_A,X)},scale:function(J,N){var K,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==N&&(N=J),"object"==typeof N&&(X=N,N=J);var fA=K=0;if(null!=X.origin){var pA=z(X.origin,2);fA=pA[0],K=pA[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},LA=".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+/),at=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[LA[N]];this.bbox=this.attributes.FontBBox.split(/\s+/).map(function(X){return+X}),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="",X=DA(this.contents.split("\n"));try{for(X.s();!(K=X.n()).done;){var pA,_A,fA=K.value;if(pA=fA.match(/^Start(\w+)/))N=pA[1];else if(pA=fA.match(/^End(\w+)/))N="";else switch(N){case"FontMetrics":var nt=(pA=fA.match(/(^\w+)\s+(.*)/))[1],ut=pA[2];(_A=this.attributes[nt])?(Array.isArray(_A)||(_A=this.attributes[nt]=[_A]),_A.push(ut)):this.attributes[nt]=ut;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":(pA=fA.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[pA[1]+"\0"+pA[2]]=parseInt(pA[3]))}}}catch(vt){X.e(vt)}finally{X.f()}}},{key:"encodeText",value:function(N){for(var X=[],K=0,fA=N.length;K>8,nt=0;this.font.post.isFixedPitch&&(nt|=1),1<=_A&&_A<=7&&(nt|=2),nt|=4,10===_A&&(nt|=8),this.font.head.macStyle.italic&&(nt|=64);var Qt=[1,2,3,4,5,6].map(function(Kt){return String.fromCharCode((K.id.charCodeAt(Kt)||73)+17)}).join("")+"+"+this.font.postscriptName,vt=this.font.bbox,xt=this.document.ref({Type:"FontDescriptor",FontName:Qt,Flags:nt,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?xt.data.FontFile3=pA:xt.data.FontFile2=pA,xt.end();var Tt={Type:"Font",Subtype:"CIDFontType0",BaseFont:Qt,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:xt,W:[0,this.widths]};fA||(Tt.Subtype="CIDFontType2",Tt.CIDToGIDMap="Identity");var Ot=this.document.ref(Tt);return Ot.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:Qt,Encoding:"Identity-H",DescendantFonts:[Ot],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}},{key:"toUnicodeCmap",value:function(){var _A,K=this.document.ref(),fA=[],pA=DA(this.unicode);try{for(pA.s();!(_A=pA.n()).done;){var vt,ut=[],Qt=DA(_A.value);try{for(Qt.s();!(vt=Qt.n()).done;){var xt=vt.value;xt>65535&&(ut.push(Ut((xt-=65536)>>>10&1023|55296)),xt=56320|1023&xt),ut.push(Ut(xt))}}catch(Tt){Qt.e(Tt)}finally{Qt.f()}fA.push("<".concat(ut.join(" "),">"))}}catch(Tt){pA.e(Tt)}finally{pA.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(Ut(fA.length-1),"> [").concat(fA.join(" "),"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend")),K}}]),N}(VA),Wt=function(){function IA(){f(this,IA)}return w(IA,null,[{key:"open",value:function(N,X,K,fA){var pA;if("string"==typeof X){if(St.isStandardFont(X))return new St(N,X,fA);X=e.readFileSync(X)}if(i.isBuffer(X)?pA=a.default.create(X,K):X instanceof Uint8Array?pA=a.default.create(i.from(X),K):X instanceof ArrayBuffer&&(pA=a.default.create(i.from(new Uint8Array(X)),K)),null==pA)throw new Error("Not a supported font format or standard PDF font.");return new kt(N,pA,fA)}}]),IA}(),te={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,X){var K,fA;if("number"==typeof N&&(X=N,N=null),"string"==typeof J&&this._registeredFonts[J]){K=J;var pA=this._registeredFonts[J];J=pA.src,N=pA.family}else"string"!=typeof(K=N||J)&&(K=null);if(null!=X&&this.fontSize(X),fA=this._fontFamilies[K])return this._font=fA,this;var _A="F".concat(++this._fontCount);return this._font=Wt.open(this,J,N,_A),(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,X){return this._registeredFonts[J]={src:N,family:X},this}},wt=function(IA){m(N,IA);var J=F(N);function N(X,K){var fA;return f(this,N),(fA=J.call(this)).document=X,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(pA){var _A=fA.continuedX||fA.indent;return fA.document.x+=_A,fA.lineWidth-=_A,fA.once("line",function(){if(fA.document.x-=_A,fA.lineWidth+=_A,pA.continued&&!fA.continuedX&&(fA.continuedX=fA.indent),!pA.continued)return fA.continuedX=0})}),fA.on("lastLine",function(pA){var _A=pA.align;return"justify"===_A&&(pA.align="left"),fA.lastLine=!0,fA.once("line",function(){return fA.document.y+=pA.paragraphGap||0,pA.align=_A,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 pA,_A=new E.default(K),nt=null,ut=Object.create(null);pA=_A.nextBreak();){var Qt,vt=K.slice((null!=nt?nt.position:void 0)||0,pA.position),xt=null!=ut[vt]?ut[vt]:ut[vt]=this.wordWidth(vt);if(xt>this.lineWidth+this.continuedX)for(var Tt=nt,Ot={};vt.length;){var Kt,fe;xt>this.spaceLeft?(Kt=Math.ceil(this.spaceLeft/(xt/vt.length)),fe=(xt=this.wordWidth(vt.slice(0,Kt)))<=this.spaceLeft&&Ktthis.spaceLeft&&Kt>0;Ee||fe;)Ee?Ee=(xt=this.wordWidth(vt.slice(0,--Kt)))>this.spaceLeft&&Kt>0:(Ee=(xt=this.wordWidth(vt.slice(0,++Kt)))>this.spaceLeft&&Kt>0,fe=xt<=this.spaceLeft&&Ktthis.maxY||_A>this.maxY)&&this.nextSection();var nt="",ut=0,Qt=0,vt=0,xt=this.document.y,Tt=function(){return fA.textWidth=ut+pA.wordSpacing*(Qt-1),fA.wordCount=Qt,fA.lineWidth=pA.lineWidth,xt=pA.document.y,pA.emit("line",nt,fA,pA),vt++};return this.emit("sectionStart",fA,this),this.eachWord(K,function(Ot,Kt,fe,Ee){if((null==Ee||Ee.required)&&(pA.emit("firstLine",fA,pA),pA.spaceLeft=pA.lineWidth),Kt<=pA.spaceLeft&&(nt+=Ot,ut+=Kt,Qt++),fe.required||Kt>pA.spaceLeft){var Ie=pA.document.currentLineHeight(!0);if(null!=pA.height&&pA.ellipsis&&pA.document.y+2*Ie>pA.maxY&&pA.column>=pA.columns){for(!0===pA.ellipsis&&(pA.ellipsis="\u2026"),nt=nt.replace(/\s+$/,""),ut=pA.wordWidth(nt+pA.ellipsis);nt&&ut>pA.lineWidth;)nt=nt.slice(0,-1).replace(/\s+$/,""),ut=pA.wordWidth(nt+pA.ellipsis);ut<=pA.lineWidth&&(nt+=pA.ellipsis),ut=pA.wordWidth(nt)}return fe.required&&(Kt>pA.spaceLeft&&(Tt(),nt=Ot,ut=Kt,Qt=1),pA.emit("lastLine",fA,pA)),Tt(),pA.document.y+Ie>pA.maxY&&!pA.nextSection()?(Qt=0,nt="",!1):fe.required?(pA.spaceLeft=pA.lineWidth,nt="",ut=0,Qt=0):(pA.spaceLeft=pA.lineWidth-Kt,nt=Ot,ut=Kt,Qt=1)}return pA.spaceLeft-=Kt}),Qt>0&&(this.emit("lastLine",fA,this),Tt()),this.emit("sectionEnd",fA,this),!0===fA.continued?(vt>1&&(this.continuedX=0),this.continuedX+=fA.textWidth||0,this.document.y=xt):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,b(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}(g.EventEmitter),Pt=bA.number,jt={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,X,K,fA){var pA=this;K=this._initOptions(N,X,K),J=null==J?"":"".concat(J),K.wordSpacing&&(J=J.replace(/\s{2,}/g," "));var _A=function(){K.structParent&&K.structParent.add(pA.struct(K.structType||"P",[pA.markStructureContent(K.structType||"P")]))};if(K.width){var nt=this._wrapper;nt||((nt=new wt(this,K)).on("line",fA),nt.on("firstLine",_A)),this._wrapper=K.continued?nt:null,this._textOptions=K.continued?K:null,nt.wrap(J,K)}else{var Qt,ut=DA(J.split("\n"));try{for(ut.s();!(Qt=ut.n()).done;){var vt=Qt.value;_A(),fA(vt,K)}}catch(xt){ut.e(xt)}finally{ut.f()}}return this},text:function(J,N,X,K){return this._text(J,N,X,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 X=this,K=this.x,fA=this.y;(N=this._initOptions(N)).height=1/0;var pA=N.lineGap||this._lineGap||0;this._text(J,this.x,this.y,N,function(){return X.y+=X.currentLineHeight(!0)+pA});var _A=this.y-fA;return this.x=K,this.y=fA,_A},list:function(J,N,X,K,fA){var pA=this,_A=(K=this._initOptions(N,X,K)).listType||"bullet",nt=Math.round(this._font.ascender/1e3*this._fontSize),ut=nt/2,Qt=K.bulletRadius||nt/3,vt=K.textIndent||("bullet"===_A?5*Qt:2*nt),xt=K.bulletIndent||("bullet"===_A?8*Qt:2*nt),Tt=1,Ot=[],Kt=[],fe=[];!function Me(je){for(var Qn=1,Ke=0;Ke0&&void 0!==arguments[0]?arguments[0]:{},N=arguments.length>1?arguments[1]:void 0,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof J&&(X=J,J=null);var K=Object.assign({},X);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]:{},X=arguments.length>2?arguments[2]:void 0;this._fragment(J,this.x,this.y,N);var K=N.lineGap||this._lineGap||0;return X?this.y+=this.currentLineHeight(!0)+K:this.x+=this.widthOfString(J)},_fragment:function(J,N,X,K){var pA,_A,nt,ut,Qt,vt,fA=this;if(0!==(J="".concat(J).replace(/\n/g,"")).length){var Tt=K.wordSpacing||0,Ot=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 Kt=this.widthOfString(" ")+Ot;Tt=Math.max(0,(K.lineWidth-Qt)/Math.max(1,vt.length-1)-Kt)}if("number"==typeof K.baseline)pA=-K.baseline;else{switch(K.baseline){case"svg-middle":pA=.5*this._font.xHeight;break;case"middle":case"svg-central":pA=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":pA=this._font.descender;break;case"alphabetic":pA=0;break;case"mathematical":pA=.5*this._font.ascender;break;case"hanging":pA=.8*this._font.ascender;break;default:pA=this._font.ascender}pA=pA/1e3*this._fontSize}var je,fe=K.textWidth+Tt*(K.wordCount-1)+Ot*(J.length-1);if(null!=K.link&&this.link(N,X,fe,this.currentLineHeight(),K.link),null!=K.goTo&&this.goTo(N,X,fe,this.currentLineHeight(),K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",N,X,null),K.underline){this.save(),K.stroke||this.strokeColor.apply(this,b(this._fillColor||[]));var Ee=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(Ee);var Ie=X+this.currentLineHeight()-Ee;this.moveTo(N,Ie),this.lineTo(N+fe,Ie),this.stroke(),this.restore()}if(K.strike){this.save(),K.stroke||this.strokeColor.apply(this,b(this._fillColor||[]));var nn=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(nn);var Me=X+this.currentLineHeight()/2;this.moveTo(N,Me),this.lineTo(N+fe,Me),this.stroke(),this.restore()}this.save(),K.oblique&&(je="number"==typeof K.oblique?-Math.tan(K.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,N,X),this.transform(1,0,je,1,-je*pA,0),this.transform(1,0,0,1,-N,-X)),this.transform(1,0,0,-1,0,this.page.height),X=this.page.height-X-pA,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(Pt(N)," ").concat(Pt(X)," Tm")),this.addContent("/".concat(this._font.id," ").concat(Pt(this._fontSize)," Tf"));var Qn=K.fill&&K.stroke?2:K.stroke?1:0;if(Qn&&this.addContent("".concat(Qn," Tr")),Ot&&this.addContent("".concat(Pt(Ot)," Tc")),Tt){vt=J.trim().split(/\s+/),Tt+=this.widthOfString(" ")+Ot,Tt*=1e3/this._fontSize,_A=[],ut=[];var dn,Ke=DA(vt);try{for(Ke.s();!(dn=Ke.n()).done;){var Sn=z(this._font.encode(dn.value,K.features),2),Hn=Sn[1];_A=_A.concat(Sn[0]),ut=ut.concat(Hn);var rr={},Qr=ut[ut.length-1];for(var $n in Qr)rr[$n]=Qr[$n];rr.xAdvance+=Tt,ut[ut.length-1]=rr}}catch(Jr){Ke.e(Jr)}finally{Ke.f()}}else{var Vn=z(this._font.encode(J,K.features),2);_A=Vn[0],ut=Vn[1]}var Lr=this._fontSize/1e3,dr=[],br=0,Gr=!1,si=function(Wn){if(br ").concat(Pt(-Gi)))}return br=Wn},Hr=function(Wn){if(si(Wn),dr.length>0)return fA.addContent("[".concat(dr.join(" "),"] TJ")),dr.length=0};for(nt=0;nt3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof N&&(K=N,N=null),N=null!=(Qt=null!=N?N:K.x)?Qt:this.x,X=null!=(vt=null!=X?X:K.y)?vt:this.y,"string"==typeof J&&(nt=this._imageRegistry[J]),nt||(nt=J.width&&J.height?J:this.openImage(J)),nt.obj||nt.embed(this),null==this.page.xobjects[nt.label]&&(this.page.xobjects[nt.label]=nt.obj);var xt=K.width||nt.width,Tt=K.height||nt.height;if(K.width&&!K.height){var Ot=xt/nt.width;xt=nt.width*Ot,Tt=nt.height*Ot}else if(K.height&&!K.width){var Kt=Tt/nt.height;xt=nt.width*Kt,Tt=nt.height*Kt}else if(K.scale)xt=nt.width*K.scale,Tt=nt.height*K.scale;else if(K.fit){var fe=z(K.fit,2);(ut=nt.width/nt.height)>(_A=fe[0])/(fA=fe[1])?(xt=_A,Tt=_A/ut):(Tt=fA,xt=fA*ut)}else if(K.cover){var Ee=z(K.cover,2);(ut=nt.width/nt.height)>(_A=Ee[0])/(fA=Ee[1])?(Tt=fA,xt=fA*ut):(xt=_A,Tt=_A/ut)}return(K.fit||K.cover)&&("center"===K.align?N=N+_A/2-xt/2:"right"===K.align&&(N=N+_A-xt),"center"===K.valign?X=X+fA/2-Tt/2:"bottom"===K.valign&&(X=X+fA-Tt)),null!=K.link&&this.link(N,X,xt,Tt,K.link),null!=K.goTo&&this.goTo(N,X,xt,Tt,K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",N,X,null),this.y===X&&(this.y+=Tt),this.save(),this.transform(xt,0,0,-Tt,N,X+Tt),this.addContent("/".concat(nt.label," Do")),this.restore(),this},openImage:function(J){var N;return"string"==typeof J&&(N=this._imageRegistry[J]),N||(N=ge.open(J,"I".concat(++this._imageCount)),"string"==typeof J&&(this._imageRegistry[J]=N)),N}},Ge={annotate:function(J,N,X,K,fA){for(var pA in fA.Type="Annot",fA.Rect=this._convertRect(J,N,X,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 _A=fA[pA];fA[pA[0].toUpperCase()+pA.slice(1)]=_A}var nt=this.ref(fA);return this.page.annotations.push(nt),nt.end(),this},note:function(J,N,X,K,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Text",pA.Contents=new String(fA),pA.Name="Comment",null==pA.color&&(pA.color=[243,223,92]),this.annotate(J,N,X,K,pA)},goTo:function(J,N,X,K,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Link",pA.A=this.ref({S:"GoTo",D:new String(fA)}),pA.A.end(),this.annotate(J,N,X,K,pA)},link:function(J,N,X,K,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(pA.Subtype="Link","number"==typeof fA){var _A=this._root.data.Pages.data;if(!(fA>=0&&fA<_A.Kids.length))throw new Error("The document has no page ".concat(fA));pA.A=this.ref({S:"GoTo",D:[_A.Kids[fA],"XYZ",null,null,null]}),pA.A.end()}else pA.A=this.ref({S:"URI",URI:new String(fA)}),pA.A.end();return this.annotate(J,N,X,K,pA)},_markup:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},_A=z(this._convertRect(J,N,X,K),4),nt=_A[0],ut=_A[1],Qt=_A[2],vt=_A[3];return fA.QuadPoints=[nt,vt,Qt,vt,nt,ut,Qt,ut],fA.Contents=new String,this.annotate(J,N,X,K,fA)},highlight:function(J,N,X,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,X,K,fA)},underline:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Underline",this._markup(J,N,X,K,fA)},strike:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="StrikeOut",this._markup(J,N,X,K,fA)},lineAnnotation:function(J,N,X,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,X,this.page.height-K],this.annotate(J,N,X,K,fA)},rectAnnotation:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Square",fA.Contents=new String,this.annotate(J,N,X,K,fA)},ellipseAnnotation:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Circle",fA.Contents=new String,this.annotate(J,N,X,K,fA)},textAnnotation:function(J,N,X,K,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="FreeText",pA.Contents=new String(fA),pA.DA=new String,this.annotate(J,N,X,K,pA)},fileAnnotation:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},_A=this.file(fA.src,Object.assign({hidden:!0},fA));return pA.Subtype="FileAttachment",pA.FS=_A,pA.Contents?pA.Contents=new String(pA.Contents):_A.data.Desc&&(pA.Contents=_A.data.Desc),this.annotate(J,N,X,K,pA)},_convertRect:function(J,N,X,K){var fA=N;N+=K;var pA=J+X,_A=z(this._ctm,6),nt=_A[0],ut=_A[1],Qt=_A[2],vt=_A[3],xt=_A[4],Tt=_A[5];return[J=nt*J+Qt*N+xt,N=ut*J+vt*N+Tt,pA=nt*pA+Qt*fA+xt,fA=ut*pA+vt*fA+Tt]}},Se=function(){function IA(J,N,X,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!==X&&(this.outlineData.Title=new String(X)),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 X=this.children[this.children.length-1];this.outlineData.First=this.children[0].dictionary,this.outlineData.Last=X.dictionary;for(var K=0,fA=this.children.length;K0&&(pA.outlineData.Prev=this.children[K-1].dictionary),K0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode="UseOutlines"}},Ne=function(){function IA(J,N){f(this,IA),this.refs=[{pageRef:J,mcid:N}]}return w(IA,[{key:"push",value:function(N){var X=this;N.refs.forEach(function(K){return X.refs.push(K)})}}]),IA}(),_e=function(){function IA(J,N){var X=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 pA=this.dictionary.data;(Array.isArray(K)||this._isValidChild(K))&&(fA=K,K={}),void 0!==K.title&&(pA.T=new String(K.title)),void 0!==K.lang&&(pA.Lang=new String(K.lang)),void 0!==K.alt&&(pA.Alt=new String(K.alt)),void 0!==K.expanded&&(pA.E=new String(K.expanded)),void 0!==K.actual&&(pA.ActualText=new String(K.actual)),this._children=[],fA&&(Array.isArray(fA)||(fA=[fA]),fA.forEach(function(_A){return X.add(_A)}),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 Ne&&this._addContentToParentTree(N),"function"==typeof N&&this._attached&&(N=this._contentForClosure(N)),this._children.push(N),this}},{key:"_addContentToParentTree",value:function(N){var X=this;N.refs.forEach(function(K){var fA=K.pageRef,pA=K.mcid;X.document.getStructParentTree().get(fA.data.StructParents)[pA]=X.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(X,K){X instanceof IA&&X.setAttached(),"function"==typeof X&&(N._children[K]=N._contentForClosure(X))}),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 Ne||"function"==typeof N}},{key:"_contentForClosure",value:function(N){var X=this.document.markStructureContent(this.dictionary.data.S);return N(),this.document.endMarkedContent(),this._addContentToParentTree(X),X}},{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(X){return N._flushChild(X)}),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}},{key:"_flushChild",value:function(N){var X=this;N instanceof IA&&this.dictionary.data.K.push(N.dictionary),N instanceof Ne&&N.refs.forEach(function(K){var fA=K.pageRef,pA=K.mcid;X.dictionary.data.Pg||(X.dictionary.data.Pg=fA),X.dictionary.data.K.push(X.dictionary.data.Pg===fA?pA:{Type:"MCR",Pg:fA,MCID:pA})})}}]),IA}(),Fn=function(IA){m(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}(_),rn={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 X=0;for(this.page.markings.forEach(function(fA){(X||fA.structContent||"Artifact"===fA.tag)&&X++});X--;)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]:{},X=this.getStructParentTree().get(this.page.structParentTreeKey),K=X.length;X.push(null),this.markContent(J,S(S({},N),{},{mcid:K}));var fA=new Ne(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 _e(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(X){if(X.structContent){var K=X.structContent,fA=N.markStructureContent(X.tag,X.options);K.push(fA),N.page.markings.slice(-1)[0].structContent=K}else N.markContent(X.tag,X.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()}},Cn={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},In={left:0,center:1,right:2},an={value:"V",defaultValue:"DV"},fn={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},cn_number={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},cn_percent={nDec:0,sepComma:!1},Xn={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(X){N[X]=J._acroform.fonts[X]}),this._root.data.AcroForm.data.Fields.forEach(function(X){J._endChild(X)}),this._root.data.AcroForm.end()}return this},_endChild:function(J){var N=this;return Array.isArray(J.data.Kids)&&(J.data.Kids.forEach(function(X){N._endChild(X)}),J.end()),this},formField:function(J){var X=this._fieldDict(J,null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),K=this.ref(X);return this._addToParent(K),K},formAnnotation:function(J,N,X,K,fA,pA){var nt=this._fieldDict(J,N,arguments.length>6&&void 0!==arguments[6]?arguments[6]:{});return nt.Subtype="Widget",void 0===nt.F&&(nt.F=4),this.annotate(X,K,fA,pA,nt),this._addToParent(this.page.annotations[this.page.annotations.length-1])},formText:function(J,N,X,K,fA){return this.formAnnotation(J,"text",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formPushButton:function(J,N,X,K,fA){return this.formAnnotation(J,"pushButton",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCombo:function(J,N,X,K,fA){return this.formAnnotation(J,"combo",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formList:function(J,N,X,K,fA){return this.formAnnotation(J,"list",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formRadioButton:function(J,N,X,K,fA){return this.formAnnotation(J,"radioButton",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCheckbox:function(J,N,X,K,fA){return this.formAnnotation(J,"checkbox",N,X,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 X=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({},X);return null!==N&&(K=this._resolveType(N,X)),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 X,K,fA="";if(void 0!==fn[N.type])X="AFSpecial_Keystroke",K="AFSpecial_Format",fA=fn[N.type];else{var pA=N.type.charAt(0).toUpperCase()+N.type.slice(1);if(X="AF".concat(pA,"_Keystroke"),K="AF".concat(pA,"_Format"),"date"===N.type)X+="Ex",fA=String(N.param);else if("time"===N.type)fA=String(N.param);else if("number"===N.type){var _A=Object.assign({},cn_number,N);fA=String([String(_A.nDec),_A.sepComma?"0":"1",'"'+_A.negStyle+'"',"null",'"'+_A.currency+'"',String(_A.currencyPrepend)].join(","))}else if("percent"===N.type){var nt=Object.assign({},cn_percent,N);fA=String([String(nt.nDec),nt.sepComma?"0":"1"].join(","))}}J.AA=J.AA?J.AA:{},J.AA.K={S:"JavaScript",JS:new String("".concat(X,"(").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(X){Cn[X]&&(N|=Cn[X],delete J[X])}),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 In[J.align]&&(N=In[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 X(K){if(Array.isArray(K))for(var fA=0;fA1&&void 0!==arguments[1]?arguments[1]:{};N.name=N.name||J;var K,X={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]&&(X.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 pA=e.statSync(J),nt=pA.ctime;X.Params.CreationDate=pA.birthtime,X.Params.ModDate=nt}}N.creationDate instanceof Date&&(X.Params.CreationDate=N.creationDate),N.modifiedDate instanceof Date&&(X.Params.ModDate=N.modifiedDate),N.type&&(X.Subtype=N.type.replace("/","#2F"));var Qt,ut=h.default.MD5(h.default.lib.WordArray.create(new Uint8Array(K)));X.Params.CheckSum=new String(ut),X.Params.Size=K.byteLength,this._fileRegistry||(this._fileRegistry={});var vt=this._fileRegistry[N.name];vt&&Yr(X,vt)?Qt=vt.ref:((Qt=this.ref(X)).end(K),this._fileRegistry[N.name]=S(S({},X),{},{ref:Qt}));var xt={Type:"Filespec",F:new String(N.name),EF:{F:Qt},UF:new String(N.name)};N.description&&(xt.Desc=new String(N.description));var Tt=this.ref(xt);return Tt.end(),N.hidden||this.addNamedEmbeddedFile(N.name,Tt),Tt}};function Yr(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 nr=function(IA){m(N,IA);var J=F(N);function N(){var X,K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(f(this,N),(X=J.call(this,K)).options=K,K.pdfVersion){case"1.4":X.version=1.4;break;case"1.5":X.version=1.5;break;case"1.6":X.version=1.6;break;case"1.7":case"1.7ext3":X.version=1.7;break;default:X.version=1.3}X.compress=null==X.options.compress||X.options.compress,X._pageBuffer=[],X._pageBufferStart=0,X._offsets=[],X._waiting=0,X._ended=!1,X._offset=0;var fA=X.ref({Type:"Pages",Count:0,Kids:[]}),pA=X.ref({Dests:new W});if(X._root=X.ref({Type:"Catalog",Pages:fA,Names:pA}),X.options.lang&&(X._root.data.Lang=new String(X.options.lang)),X.page=null,X.initColor(),X.initVector(),X.initFonts(K.font),X.initText(),X.initImages(),X.initOutline(),X.initMarkings(K),X.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},X.options.info)for(var _A in X.options.info)X.info[_A]=X.options.info[_A];return X.options.displayTitle&&(X._root.data.ViewerPreferences=X.ref({DisplayDocTitle:!0})),X._id=R.generateFileID(X.info),X._security=R.create(U(X),K),X._write("%PDF-".concat(X.version)),X._write("%\xff\xff\xff\xff"),!1!==X.options.autoFirstPage&&X.addPage(),X}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 pA,fA=DA(K);try{for(fA.s();!(pA=fA.n()).done;){var _A=pA.value;this.endPageMarkings(_A),_A.end()}}catch(nt){fA.e(nt)}finally{fA.f()}}},{key:"addNamedDestination",value:function(K){for(var fA=arguments.length,pA=new Array(fA>1?fA-1:0),_A=1;_A>z&AA]},getCombiningClass:function(mA){var nA=d.get(mA);return m.combiningClasses[nA>>b&lA]},getScript:function(mA){var nA=d.get(mA);return m.scripts[nA>>Z&MA]},getEastAsianWidth:function(mA){var nA=d.get(mA);return m.eaw[nA>>10&cA]},getNumericValue:function(mA){var nA=d.get(mA),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 ot=2+(31&EA);ot>0;)nA*=10,ot--;return nA}nA=(EA>>2)-191;for(var TA=1+(3&EA);TA>0;)nA*=60,TA--;return nA},isAlphabetic:uA,isDigit:CA,isPunctuation:SA,isLowerCase:bA,isUpperCase:XA,isTitleCase:q,isWhiteSpace:O,isBaseForm:$,isMark:W});I.default=Q},4781:function(Y,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),o=n(1753).swap32LE;Y.exports=function(){function D(T){var F="function"==typeof T.readUInt32BE&&"function"==typeof T.slice;if(F||T instanceof Uint8Array){var z;if(F)this.highStart=T.readUInt32LE(0),this.errorValue=T.readUInt32LE(4),z=T.readUInt32LE(8),T=T.slice(12);else{var b=new DataView(T.buffer);this.highStart=b.getUint32(0,!0),this.errorValue=b.getUint32(4,!0),z=b.getUint32(8,!0),T=T.subarray(12)}T=c(T,new Uint8Array(z)),T=c(T,new Uint8Array(z)),o(T),this.data=new Uint32Array(T.buffer)}else{var Z=T;this.data=Z.data,this.highStart=Z.highStart,this.errorValue=Z.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(Y,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,g,E){var u=a[g];a[g]=a[E],a[E]=u};Y.exports={swap32LE:function(a){c&&function(a){for(var g=a.length,E=0;E/)){for(;at=$A();)VA.childNodes.push(at),at.parentNode=VA,VA.textContent+=3===at.nodeType||4===at.nodeType?at.nodeValue:at.textContent;return(LA=tt.match(/^<\/([\w:.-]+)\s*>/,!0))?(LA[1]===VA.nodeName||(ne('parseXml: tag not matching, opening "'+VA.nodeName+'" & closing "'+LA[1]+'"'),zA=!0),VA):(ne('parseXml: tag not matching, opening "'+VA.nodeName+'" & not closing'),zA=!0,VA)}if(tt.match(/^\/>/))return VA;ne('parseXml: tag could not be parsed "'+VA.nodeName+'"'),zA=!0}else{if(LA=tt.match(/^/))return new YA(null,8,LA,zA);if(LA=tt.match(/^<\?[\s\S]*?\?>/))return new YA(null,7,LA,zA);if(LA=tt.match(/^/))return new YA(null,10,LA,zA);if(LA=tt.match(/^/,!0))return new YA("#cdata-section",4,LA[1],zA);if(LA=tt.match(/^([^<]+)/,!0))return new YA("#text",3,AA(LA[1]),zA)}};PA=HA();)1!==PA.nodeType||UA?(1===PA.nodeType||3===PA.nodeType&&""!==PA.nodeValue.trim())&&ne("parseXml: data after document end has been discarded"):UA=PA;return tt.matchAll()&&ne("parseXml: parsing error"),UA}function AA(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 lA(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]),en?en(tt,ZA):tt}function MA(ZA,YA,tt){var UA=ZA[0].slice(),PA=ZA[1]*YA;if(tt){for(var zA=0;zA=0;YA--)ZA=cA(bn[YA].savedMatrix,ZA);return ZA}function DA(){return(new WA).M(0,0).L(o.page.width,0).L(o.page.width,o.page.height).L(0,o.page.height).transform(FA(BA())).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]),zA=bA(ZA[4]),HA=bA(ZA[5]);if(SA(YA*PA-tt*UA,0))return[YA,tt,UA,PA,zA,HA]}function dA(ZA){var YA=ZA[2]||0,tt=ZA[1]||0,UA=ZA[0]||0;if(CA(YA,0)&&CA(tt,0))return[];if(CA(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)]:CA(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 CA(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 q(ZA){for(var UA,YA=new It((ZA||"").trim()),tt=[1,0,0,1,0,0];UA=YA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){for(var PA=UA[1],zA=[],HA=new It(UA[2].trim()),$A=void 0;$A=HA.matchNumber();)zA.push(Number($A)),HA.matchSeparator();if("matrix"===PA&&6===zA.length)tt=cA(tt,[zA[0],zA[1],zA[2],zA[3],zA[4],zA[5]]);else if("translate"===PA&&2===zA.length)tt=cA(tt,[1,0,0,1,zA[0],zA[1]]);else if("translate"===PA&&1===zA.length)tt=cA(tt,[1,0,0,1,zA[0],0]);else if("scale"===PA&&2===zA.length)tt=cA(tt,[zA[0],0,0,zA[1],0,0]);else if("scale"===PA&&1===zA.length)tt=cA(tt,[zA[0],0,0,zA[0],0,0]);else if("rotate"===PA&&3===zA.length){var LA=zA[0]*Math.PI/180;tt=cA(tt,[1,0,0,1,zA[1],zA[2]],[Math.cos(LA),Math.sin(LA),-Math.sin(LA),Math.cos(LA),0,0],[1,0,0,1,-zA[1],-zA[2]])}else if("rotate"===PA&&1===zA.length){var at=zA[0]*Math.PI/180;tt=cA(tt,[Math.cos(at),Math.sin(at),-Math.sin(at),Math.cos(at),0,0])}else if("skewX"===PA&&1===zA.length){var VA=zA[0]*Math.PI/180;tt=cA(tt,[1,0,Math.tan(VA),1,0,0])}else{if("skewY"!==PA||1!==zA.length)return;var dt=zA[0]*Math.PI/180;tt=cA(tt,[1,Math.tan(dt),0,1,0,0])}YA.matchSeparator()}if(!YA.matchAll())return tt}function O(ZA,YA,tt,UA,PA,zA){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,dt=tt/PA,St={Min:0,Mid:.5,Max:1}[HA[2]||"Mid"]-(zA||0),Ut={Min:0,Mid:.5,Max:1}[HA[3]||"Mid"]-(zA||0);return"slice"===$A?dt=VA=Math.max(VA,dt):"meet"===$A&&(dt=VA=Math.min(VA,dt)),[VA,0,0,dt,St*(YA-UA*VA),Ut*(tt-PA*dt)]}function $(ZA){var YA=Object.create(null);ZA=(ZA||"").trim().split(/;/);for(var tt=0;ttue&&(Ht=ue,ue=ce,ce=Ht),Zt>ge&&(Ht=ge,ge=Zt,Zt=Ht);for(var ve=dA(St),Ge=0;Ge=0&&ve[Ge]<=1){var Se=uA(ve[Ge],VA);Seue&&(ue=Se)}for(var xe=dA(Ut),Ne=0;Ne=0&&xe[Ne]<=1){var _e=uA(xe[Ne],dt);_ege&&(ge=_e)}return[ce,Zt,ue,ge]},this.getPointAtLength=function(Ht){if(CA(Ht,0))return this.startPoint;if(CA(Ht,this.totalLength))return this.endPoint;if(!(Ht<0||Ht>this.totalLength))for(var ce=1;ce<=at;ce++){var Zt=kt[ce-1],ue=kt[ce];if(Zt<=Ht&&Ht<=ue){var ge=(ce-(ue-Ht)/(ue-Zt))/at,ve=uA(ge,VA),Ge=uA(ge,dt),Se=uA(ge,St),xe=uA(ge,Ut);return[ve,Ge,Math.atan2(xe,Se)]}}}},JA=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(zA){if(zA>=0&&zA<=this.totalLength){var HA=zA/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 zA,HA,$A,YA=0,tt=0,UA=0,PA=0;this.move=function(LA,at){return YA=UA=LA,tt=PA=at,null},this.line=function(LA,at){var VA=new JA(UA,PA,LA,at);return UA=LA,PA=at,VA},this.curve=function(LA,at,VA,dt,St,Ut){var kt=new ft(UA,PA,LA,at,VA,dt,St,Ut);return UA=St,PA=Ut,kt},this.close=function(){var LA=new JA(UA,PA,YA,tt);return UA=YA,PA=tt,LA},this.addCommand=function(LA){this.pathCommands.push(LA);var at=this[LA[0]].apply(this,LA.slice(3));at&&(at.hasStart=LA[1],at.hasEnd=LA[2],this.startPoint=this.startPoint||at.startPoint,this.endPoint=at.endPoint,this.pathSegments.push(at),this.totalLength+=at.totalLength)},this.M=function(LA,at){return this.addCommand(["move",!0,!0,LA,at]),zA="M",this},this.m=function(LA,at){return this.M(UA+LA,PA+at)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),zA="Z",this},this.L=function(LA,at){return this.addCommand(["line",!0,!0,LA,at]),zA="L",this},this.l=function(LA,at){return this.L(UA+LA,PA+at)},this.H=function(LA){return this.L(LA,PA)},this.h=function(LA){return this.L(UA+LA,PA)},this.V=function(LA){return this.L(UA,LA)},this.v=function(LA){return this.L(UA,PA+LA)},this.C=function(LA,at,VA,dt,St,Ut){return this.addCommand(["curve",!0,!0,LA,at,VA,dt,St,Ut]),zA="C",HA=VA,$A=dt,this},this.c=function(LA,at,VA,dt,St,Ut){return this.C(UA+LA,PA+at,UA+VA,PA+dt,UA+St,PA+Ut)},this.S=function(LA,at,VA,dt){return this.C(UA+("C"===zA?UA-HA:0),PA+("C"===zA?PA-$A:0),LA,at,VA,dt)},this.s=function(LA,at,VA,dt){return this.C(UA+("C"===zA?UA-HA:0),PA+("C"===zA?PA-$A:0),UA+LA,PA+at,UA+VA,PA+dt)},this.Q=function(LA,at,VA,dt){return this.addCommand(["curve",!0,!0,UA+.6666666666666666*(LA-UA),PA+2/3*(at-PA),VA+2/3*(LA-VA),dt+2/3*(at-dt),VA,dt]),zA="Q",HA=LA,$A=at,this},this.q=function(LA,at,VA,dt){return this.Q(UA+LA,PA+at,UA+VA,PA+dt)},this.T=function(LA,at){return this.Q(UA+("Q"===zA?UA-HA:0),PA+("Q"===zA?PA-$A:0),LA,at)},this.t=function(LA,at){return this.Q(UA+("Q"===zA?UA-HA:0),PA+("Q"===zA?PA-$A:0),UA+LA,PA+at)},this.A=function(LA,at,VA,dt,St,Ut,kt){if(CA(LA,0)||CA(at,0))this.addCommand(["line",!0,!0,Ut,kt]);else{VA*=Math.PI/180,LA=Math.abs(LA),at=Math.abs(at),dt=1*!!dt,St=1*!!St;var Wt=Math.cos(VA)*(UA-Ut)/2+Math.sin(VA)*(PA-kt)/2,te=Math.cos(VA)*(PA-kt)/2-Math.sin(VA)*(UA-Ut)/2,wt=Wt*Wt/(LA*LA)+te*te/(at*at);wt>1&&(LA*=Math.sqrt(wt),at*=Math.sqrt(wt));var Pt=Math.sqrt(Math.max(0,LA*LA*at*at-LA*LA*te*te-at*at*Wt*Wt)/(LA*LA*te*te+at*at*Wt*Wt)),jt=(dt===St?-1:1)*Pt*LA*te/at,Ht=(dt===St?1:-1)*Pt*at*Wt/LA,ce=Math.cos(VA)*jt-Math.sin(VA)*Ht+(UA+Ut)/2,Zt=Math.sin(VA)*jt+Math.cos(VA)*Ht+(PA+kt)/2,ue=Math.atan2((te-Ht)/at,(Wt-jt)/LA),ge=Math.atan2((-te-Ht)/at,(-Wt-jt)/LA);0===St&&ge-ue>0?ge-=2*Math.PI:1===St&&ge-ue<0&&(ge+=2*Math.PI);for(var ve=Math.ceil(Math.abs(ge-ue)/(Math.PI/Ln)),Ge=0;GeLA[2]&&(LA[2]=dt[2]),dt[1]LA[3]&&(LA[3]=dt[3]);return LA[0]===1/0&&(LA[0]=0),LA[1]===1/0&&(LA[1]=0),LA[2]===-1/0&&(LA[2]=0),LA[3]===-1/0&&(LA[3]=0),LA},this.getPointAtLength=function(LA){if(LA>=0&&LA<=this.totalLength){for(var at,VA=0;VAPA.selector.specificity||(YA[zA]=PA.css[zA],tt[zA]=PA.selector.specificity)}return YA}(YA),this.allowedChildren=[],this.attr=function(zA){if("function"==typeof YA.getAttribute)return YA.getAttribute(zA)},this.resolveUrl=function(zA){var HA=(zA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],$A=HA[1]||HA[3]||HA[5]||HA[7],LA=HA[2]||HA[4]||HA[6]||HA[8];if(LA){if(!$A){var at=l.getElementById(LA);if(at)return-1===this.stack.indexOf(at)?at:void ne('SVGtoPDF: loop of circular references for id "'+LA+'"')}if(Xe){var VA=Jt[$A];if(!VA){(function XA(ZA){return"object"==typeof ZA&&null!==ZA&&"number"==typeof ZA.length})(VA=Xe($A))||(VA=[VA]);for(var dt=0;dt=0&&$A[3]>=0?$A:HA},this.getPercent=function(zA,HA){var $A=this.attr(zA),LA=new It(($A||"").trim()),dt=LA.matchNumber();return!dt||(LA.match("%")&&(dt*=.01),LA.matchAll())?HA:Math.max(0,Math.min(1,dt))},this.chooseValue=function(zA){for(var HA=0;HA=0&&(LA=VA);break;case"stroke-miterlimit":null!=(VA=parseFloat($A))&&VA>=1&&(LA=VA);break;case"word-spacing":case"letter-spacing":LA=this.computeLength($A,this.getViewport());break;case"stroke-dashoffset":if(null!=(LA=this.computeLength($A,this.getViewport()))&&LA<0)for(var te=this.get("stroke-dasharray"),wt=0;wt0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,at){var VA="userSpaceOnUse"!==this.attr("patternUnits"),dt="objectBoundingBox"===this.attr("patternContentUnits"),St=this.getLength("x",VA?1:this.getParentVWidth(),0),Ut=this.getLength("y",VA?1:this.getParentVHeight(),0),kt=this.getLength("width",VA?1:this.getParentVWidth(),0),Wt=this.getLength("height",VA?1:this.getParentVHeight(),0);dt&&!VA?(St=(St-HA[0])/(HA[2]-HA[0])||0,Ut=(Ut-HA[1])/(HA[3]-HA[1])||0,kt=kt/(HA[2]-HA[0])||0,Wt=Wt/(HA[3]-HA[1])||0):!dt&&VA&&(St=HA[0]+St*(HA[2]-HA[0]),Ut=HA[1]+Ut*(HA[3]-HA[1]),kt*=HA[2]-HA[0],Wt*=HA[3]-HA[1]);var te=this.getViewbox("viewBox",[0,0,kt,Wt]),Pt=cA(O((this.attr("preserveAspectRatio")||"").trim(),kt,Wt,te[2],te[3],0),[1,0,0,1,-te[0],-te[1]]),jt=q(this.attr("patternTransform"));if(dt&&(jt=cA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],jt)),(jt=_(jt=cA(jt,[1,0,0,1,St,Ut])))&&(Pt=_(Pt))&&(kt=bA(kt))&&(Wt=bA(Wt))){var Ht=w([0,0,kt,Wt]);return o.transform.apply(o,Pt),this.drawChildren(LA,at),Q(Ht),[m(Ht,kt,Wt,jt),$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){rt.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 zA=this.getChildren;this.getChildren=function(){var HA=zA.call(this);return HA.length>0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,at){var VA=this.getChildren();if(0!==VA.length){if(1===VA.length){var dt=VA[0],St=dt.get("stop-color");return"none"===St?void 0:MA(St,dt.get("stop-opacity")*$A,at)}var te,wt,Pt,jt,Ht,ce,Ut="userSpaceOnUse"!==this.attr("gradientUnits"),kt=q(this.attr("gradientTransform")),Wt=this.attr("spreadMethod"),Zt=0,ue=0,ge=1;if(Ut&&(kt=cA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],kt)),kt=_(kt)){if("linearGradient"===this.name)wt=this.getLength("x1",Ut?1:this.getVWidth(),0),Pt=this.getLength("x2",Ut?1:this.getVWidth(),Ut?1:this.getVWidth()),jt=this.getLength("y1",Ut?1:this.getVHeight(),0),Ht=this.getLength("y2",Ut?1:this.getVHeight(),0);else{Pt=this.getLength("cx",Ut?1:this.getVWidth(),Ut?.5:.5*this.getVWidth()),Ht=this.getLength("cy",Ut?1:this.getVHeight(),Ut?.5:.5*this.getVHeight()),ce=this.getLength("r",Ut?1:this.getViewport(),Ut?.5:.5*this.getViewport()),wt=this.getLength("fx",Ut?1:this.getVWidth(),Pt),jt=this.getLength("fy",Ut?1:this.getVHeight(),Ht),ce<0&&ne("SvgElemGradient: negative r value");var ve=Math.sqrt(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2)),Ge=1;ve>ce&&(wt=Pt+(wt-Pt)*(Ge=ce/ve),jt=Ht+(jt-Ht)*Ge),ce=Math.max(ce,ve*Ge*1.000001)}if("reflect"===Wt||"repeat"===Wt){var Se=FA(kt),xe=gA([HA[0],HA[1]],Se),Ne=gA([HA[2],HA[1]],Se),_e=gA([HA[2],HA[3]],Se),Fn=gA([HA[0],HA[3]],Se);"linearGradient"===this.name?(Zt=Math.max((xe[0]-Pt)*(Pt-wt)+(xe[1]-Ht)*(Ht-jt),(Ne[0]-Pt)*(Pt-wt)+(Ne[1]-Ht)*(Ht-jt),(_e[0]-Pt)*(Pt-wt)+(_e[1]-Ht)*(Ht-jt),(Fn[0]-Pt)*(Pt-wt)+(Fn[1]-Ht)*(Ht-jt))/(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2)),ue=Math.max((xe[0]-wt)*(wt-Pt)+(xe[1]-jt)*(jt-Ht),(Ne[0]-wt)*(wt-Pt)+(Ne[1]-jt)*(jt-Ht),(_e[0]-wt)*(wt-Pt)+(_e[1]-jt)*(jt-Ht),(Fn[0]-wt)*(wt-Pt)+(Fn[1]-jt)*(jt-Ht))/(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2))):Zt=Math.sqrt(Math.max(Math.pow(xe[0]-Pt,2)+Math.pow(xe[1]-Ht,2),Math.pow(Ne[0]-Pt,2)+Math.pow(Ne[1]-Ht,2),Math.pow(_e[0]-Pt,2)+Math.pow(_e[1]-Ht,2),Math.pow(Fn[0]-Pt,2)+Math.pow(Fn[1]-Ht,2)))/ce-1,Zt=Math.ceil(Zt+.5),ge=(ue=Math.ceil(ue+.5))+1+Zt}te="linearGradient"===this.name?o.linearGradient(wt-ue*(Pt-wt),jt-ue*(Ht-jt),Pt+Zt*(Pt-wt),Ht+Zt*(Ht-jt)):o.radialGradient(wt,jt,0,Pt,Ht,ce+Zt*ce);for(var rn=0;rn0&&te.stop((rn+0)/ge,cn[0],cn[1]),te.stop((rn+Cn)/(Zt+ue+1),cn[0],cn[1]),an===VA.length-1&&Cn<1&&te.stop((rn+1)/ge,cn[0],cn[1])}return te.setTransform.apply(te,kt),[te,1]}return UA?[UA[0],UA[1]*$A]:void 0}}},rA=function(YA,tt){yA.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(o.save(),this.transform(),this.clip(),UA)this.shape.insertInDocument(),z(u.white),o.fill(this.get("clip-rule"));else{var HA;this.mask()&&(HA=w(DA()));var $A=this.shape.getSubPaths(),LA=this.getFill(UA,PA),at=this.getStroke(UA,PA),VA=this.get("stroke-width"),dt=this.get("stroke-linecap");if(LA||at){if(LA&&z(LA),at){for(var St=0;St<$A.length;St++)if(CA($A[St].totalLength,0)&&("square"===dt||"round"===dt)&&VA>0&&$A[St].startPoint&&$A[St].startPoint.length>1){var Ut=$A[St].startPoint[0],kt=$A[St].startPoint[1];z(at),"square"===dt?o.rect(Ut-.5*VA,kt-.5*VA,VA,VA):"round"===dt&&o.circle(Ut,kt,.5*VA),o.fill()}var Wt=this.get("stroke-dasharray"),te=this.get("stroke-dashoffset");if(SA(this.dashScale,1)){for(var wt=0;wt0&&$A[Pt].insertInDocument();LA&&at?o.fillAndStroke(this.get("fill-rule")):LA?o.fill(this.get("fill-rule")):at&&o.stroke()}var jt=this.get("marker-start"),Ht=this.get("marker-mid"),ce=this.get("marker-end");if("none"!==jt||"none"!==Ht||"none"!==ce){var Zt=this.shape.getMarkers();if("none"!==jt&&new st(jt,null).drawMarker(!1,PA,Zt[0],VA),"none"!==Ht)for(var ge=1;ge0&&HA>0?$A&&LA?($A=Math.min($A,.5*zA),LA=Math.min(LA,.5*HA),this.shape=(new WA).M(UA+$A,PA).L(UA+zA-$A,PA).A($A,LA,0,0,1,UA+zA,PA+LA).L(UA+zA,PA+HA-LA).A($A,LA,0,0,1,UA+zA-$A,PA+HA).L(UA+$A,PA+HA).A($A,LA,0,0,1,UA,PA+HA-LA).L(UA,PA+LA).A($A,LA,0,0,1,UA+$A,PA).Z()):this.shape=(new WA).M(UA,PA).L(UA+zA,PA).L(UA+zA,PA+HA).L(UA,PA+HA).Z():this.shape=new WA},Ft=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),PA=this.getLength("cy",this.getVHeight(),0),zA=this.getLength("r",this.getViewport(),0);this.shape=zA>0?(new WA).M(UA+zA,PA).A(zA,zA,0,0,1,UA-zA,PA).A(zA,zA,0,0,1,UA+zA,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),zA=this.getLength("rx",this.getVWidth(),0),HA=this.getLength("ry",this.getVHeight(),0);this.shape=zA>0&&HA>0?(new WA).M(UA+zA,PA).A(zA,HA,0,0,1,UA-zA,PA).A(zA,HA,0,0,1,UA+zA,PA).Z():new WA},kA=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("x1",this.getVWidth(),0),PA=this.getLength("y1",this.getVHeight(),0),zA=this.getLength("x2",this.getVWidth(),0),HA=this.getLength("y2",this.getVHeight(),0);this.shape=(new WA).M(UA,PA).L(zA,HA)},At=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},st=function(YA,tt){Mt.call(this,YA,tt);var UA=this.getLength("markerWidth",this.getParentVWidth(),3),PA=this.getLength("markerHeight",this.getParentVHeight(),3),zA=this.getViewbox("viewBox",[0,0,UA,PA]);this.getVWidth=function(){return zA[2]},this.getVHeight=function(){return zA[3]},this.drawMarker=function(HA,$A,LA,at){o.save();var VA=this.attr("orient"),dt=this.attr("markerUnits"),St="auto"===VA?LA[2]:(parseFloat(VA)||0)*Math.PI/180,Ut="userSpaceOnUse"===dt?1:at;o.transform(Math.cos(St)*Ut,Math.sin(St)*Ut,-Math.sin(St)*Ut,Math.cos(St)*Ut,LA[0],LA[1]);var wt,kt=this.getLength("refX",this.getVWidth(),0),Wt=this.getLength("refY",this.getVHeight(),0),te=O(this.attr("preserveAspectRatio"),UA,PA,zA[2],zA[3],.5);"hidden"===this.get("overflow")&&o.rect(te[0]*(zA[0]+zA[2]/2-kt)-UA/2,te[3]*(zA[1]+zA[3]/2-Wt)-PA/2,UA,PA).clip(),o.transform.apply(o,te),o.translate(-kt,-Wt),this.get("opacity")<1&&!HA&&(wt=w(DA())),this.drawChildren(HA,$A),wt&&(Q(wt),o.fillOpacity(this.get("opacity")),p(wt)),o.restore()}},Lt=function(YA,tt){Mt.call(this,YA,tt),this.useMask=function(UA){var PA=w(DA());o.save(),"objectBoundingBox"===this.attr("clipPathUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!0,!1),o.restore(),Q(PA),S(PA,!0)}},Dt=function(YA,tt){Mt.call(this,YA,tt),this.useMask=function(UA){var zA,HA,$A,LA,PA=w(DA());o.save(),"userSpaceOnUse"===this.attr("maskUnits")?(zA=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])),LA=this.getLength("height",this.getVHeight(),1.2*(UA[3]-UA[1]))):(zA=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]),LA=this.getLength("height",this.getVHeight(),1.2)*(UA[3]-UA[1])),o.rect(zA,HA,$A,LA).clip(),"objectBoundingBox"===this.attr("maskContentUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!1,!0),o.restore(),Q(PA),S(PA,!0)}},Rt=function(YA,tt){yA.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")}o.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,zA,HA){var $A=this.getFill(zA,HA),LA=this.getStroke(zA,HA);$A&&z($A),LA&&(b(LA),o.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 at=0,VA=this._pos;at0?HA:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((zA=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===zA.nodeName){var $A=new KA(zA,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}},Ae=function(YA,tt){Rt.call(this,YA,tt),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(UA){var LA,at,PA="",zA=YA.textContent,HA=[],$A=[],VA=0,dt=0;function St(){if($A.length)for(var wt=$A[$A.length-1],Ht={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[LA+at]*(wt.x+wt.width-$A[0].x)||0,ce=0;ce<$A.length;ce++)$A[ce].x-=Ht;$A=[]}function Wt(wt){var Pt=wt.pathObject,jt=wt.pathLength,Ht=wt.pathScale;if(Pt)for(var ce=wt.getLength("startOffset",jt,0),Zt=0;Ztjt||ue<0)wt._pos[Zt].hidden=!0;else{var ge=Pt.getPointAtLength(ue*Ht);SA(Ht,1)&&(wt._pos[Zt].scale*=Ht,wt._pos[Zt].width*=Ht),wt._pos[Zt].x=ge[0]-.5*wt._pos[Zt].width*Math.cos(ge[2])-wt._pos[Zt].y*Math.sin(ge[2]),wt._pos[Zt].y=ge[1]-.5*wt._pos[Zt].width*Math.sin(ge[2])+wt._pos[Zt].y*Math.cos(ge[2]),wt._pos[Zt].rotate=ge[2]+wt._pos[Zt].rotate,wt._pos[Zt].continuous=!1}}else for(var ve=0;ve0&&ge<1/0)for(var ve=0;ve=2)for(var Ge=(Pt-(ue-Zt))/(wt.length-1),Se=0;Se0?p-4:p;for(D=0;D>16&255,m[d++]=w>>8&255,m[d++]=255&w;return 2===S&&(w=c[B.charCodeAt(D)]<<2|c[B.charCodeAt(D+1)]>>4,m[d++]=255&w),1===S&&(w=c[B.charCodeAt(D)]<<10|c[B.charCodeAt(D+1)]<<4|c[B.charCodeAt(D+2)]>>2,m[d++]=w>>8&255,m[d++]=255&w),m},I.fromByteArray=function f(B){for(var w,Q=B.length,p=Q%3,S=[],m=16383,d=0,v=Q-p;dv?v:d+m));return 1===p?S.push(n[(w=B[Q-1])>>2]+n[w<<4&63]+"=="):2===p&&S.push(n[(w=(B[Q-2]<<8)+B[Q-1])>>10]+n[w>>4&63]+n[w<<2&63]+"="),S.join("")};for(var n=[],c=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,h=o.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=B.indexOf("=");return-1===Q&&(Q=w),[Q,Q===w?0:4-Q%4]}function C(B){return n[B>>18&63]+n[B>>12&63]+n[B>>6&63]+n[63&B]}function e(B,w,Q){for(var S=[],m=w;m0},o.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},o.prototype.readBits=function(l){32-this.bit_pos_>>this.bit_pos_&i[l];return this.bit_pos_+=l,h},Y.exports=o},7080:function(Y,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(Y,I,n){var i=n(6154).g,o=n(6154).j,l=n(4181),h=n(5139),a=n(966).h,g=n(966).g,E=n(7080),u=n(8435),C=n(2973),v=1080,U=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]),b=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 Z($){var W;return 0===$.readBits(1)?16:(W=$.readBits(3))>0?17+W:(W=$.readBits(3))>0?8+W:17}function aA($){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(et=0;et0;++et){var Mt,rt=U[et],yA=0;mA.fillBitWindow(),mA.bit_pos_+=WA[yA+=mA.val_>>>mA.bit_pos_&15].bits,It[rt]=Mt=WA[yA].value,0!==Mt&&(ft-=32>>Mt,++JA)}if(1!==JA&&0!==ft)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function cA($,W,hA,mA){for(var nA=0,EA=8,GA=0,et=0,ot=32768,TA=[],it=0;it<32;it++)TA.push(new a(0,0));for(g(TA,0,5,$,18);nA0;){var It,mt=0;if(mA.readMoreInput(),mA.fillBitWindow(),mA.bit_pos_+=TA[mt+=mA.val_>>>mA.bit_pos_&31].bits,(It=255&TA[mt].value)<16)GA=0,hA[nA++]=It,0!==It&&(EA=It,ot-=32768>>It);else{var JA,WA,ft=It-14,rt=0;if(16===It&&(rt=EA),et!==rt&&(GA=0,et=rt),JA=GA,GA>0&&(GA-=2,GA<<=ft),nA+(WA=(GA+=mA.readBits(ft)+3)-JA)>W)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var yA=0;yA>>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=aA(W)+1,ot=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");ot[GA]=0,++GA}else ot[GA]=TA-nA,++GA}return W.readBits(1)&&function _($,W){var mA,hA=new Uint8Array(256);for(mA=0;mA<256;++mA)hA[mA]=mA;for(mA=0;mA=$&&(it-=$),mA[hA]=it,nA[et+(1&EA[ot])]=it,++EA[ot]}function SA($,W,hA,mA,nA,EA){var TA,GA=nA+1,et=hA&nA,ot=EA.pos_&l.IBUF_MASK;if(W<8||EA.bit_pos_+(W<<3)0;)EA.readMoreInput(),mA[et++]=EA.readBits(8),et===GA&&($.write(mA,GA),et=0);else{if(EA.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;EA.bit_pos_<32;)mA[et]=EA.val_>>>EA.bit_pos_,EA.bit_pos_+=8,++et,--W;if(ot+(TA=EA.bit_end_pos_-EA.bit_pos_>>3)>l.IBUF_MASK){for(var it=l.IBUF_MASK+1-ot,mt=0;mt=GA)for($.write(mA,GA),et-=GA,mt=0;mt=GA;){if(EA.input_.read(mA,et,TA=GA-et)W.buffer.length){var ne=new Uint8Array(mA+H);ne.set(W.buffer),W.buffer=ne}if(nA=xn.input_end,k=xn.is_uncompressed,xn.is_metadata)for(bA(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,mA,it,TA,ht),mA+=H;continue}for(hA=0;hA<3;++hA)wA[hA]=aA(ht)+1,wA[hA]>=2&&(gA(wA[hA]+2,yA,hA*v,ht),gA(26,Mt,hA*v,ht),R[hA]=BA(Mt,hA*v,ht),rA[hA]=1);for(ht.readMoreInput(),j=(1<<(ct=ht.readBits(2)))-1,kA=(Ft=16+(ht.readBits(4)<0;){var en,Xe,Ln,bn,Jt,bt,Xt,oe,pn,Yn,jn,Br;for(ht.readMoreInput(),0===R[1]&&(CA(wA[1],yA,1,QA,RA,rA,ht),R[1]=BA(Mt,v,ht),yn=rt[1].htrees[QA[1]]),--R[1],(Xe=(en=MA(rt[1].codes,yn,ht))>>6)>=2?(Xe-=2,Xt=-1):Xt=0,bn=u.kCopyRangeLut[Xe]+(7&en),Jt=u.kInsertLengthPrefixCode[Ln=u.kInsertRangeLut[Xe]+(en>>3&7)].offset+ht.readBits(u.kInsertLengthPrefixCode[Ln].nbits),bt=u.kCopyLengthPrefixCode[bn].offset+ht.readBits(u.kCopyLengthPrefixCode[bn].nbits),JA=it[mA-1&TA],WA=it[mA-2&TA],pn=0;pn4?3:bt-2))]],ht))>=Ft&&(Br=(Xt-=Ft)&j,Xt=Ft+((Tn=(2+(1&(Xt>>=ct))<<(jn=1+(Xt>>1)))-4)+ht.readBits(jn)<(et=mA=h.minDictionaryWordLength&&bt<=h.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+mA+" distance: "+oe+" len: "+bt+" bytes left: "+H);var Tn=h.offsetsByLength[bt],ZA=oe-et-1,YA=h.sizeBitsByLength[bt],PA=ZA>>YA;if(Tn+=(ZA&(1<=mt){W.write(it,ot);for(var HA=0;HA0&&(It[3&ft]=oe,++ft),bt>H)throw new Error("Invalid backward reference. pos: "+mA+" distance: "+oe+" len: "+bt+" bytes left: "+H);for(pn=0;pn>=1;return(h&g-1)+g}function o(h,a,g,E,u){do{h[a+(E-=g)]=new n(u.bits,u.value)}while(E>0)}function l(h,a,g){for(var E=1<0;--U[f])o(h,a+w,Q,d,new n(255&f,65535&D[B++])),w=i(w,f);for(S=v-1,p=-1,f=g+1,Q=2;f<=c;++f,Q<<=1)for(;U[f]>0;--U[f])(w&S)!==p&&(a+=d,v+=d=1<<(m=l(U,f,g)),h[C+(p=w&S)]=new n(m+g&255,a-C-p&65535)),o(h,a+(w>>g),Q,d,new n(f-g&255,65535&D[B++])),w=i(w,f);return v}},8435:function(Y,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(Y,I){function n(i){this.buffer=i,this.pos=0}function c(i){this.buffer=i,this.pos=0}n.prototype.read=function(i,o,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,o),this.pos),this.pos+=o,o},I.j=c},2973:function(Y,I,n){var c=n(5139),f=10,B=11;function T(b,Z,aA){this.prefix=new Uint8Array(b.length),this.transform=Z,this.suffix=new Uint8Array(aA.length);for(var AA=0;AA'),new T("",0,"\n"),new T("",3,""),new T("",0,"]"),new T("",0," for "),new T("",14,""),new T("",2,""),new T("",0," a "),new T("",0," that "),new T(" ",f,""),new T("",0,". "),new T(".",0,""),new T(" ",0,", "),new T("",15,""),new T("",0," with "),new T("",0,"'"),new T("",0," from "),new T("",0," by "),new T("",16,""),new T("",17,""),new T(" the ",0,""),new T("",4,""),new T("",0,". The "),new T("",B,""),new T("",0," on "),new T("",0," as "),new T("",0," is "),new T("",7,""),new T("",1,"ing "),new T("",0,"\n\t"),new T("",0,":"),new T(" ",0,". "),new T("",0,"ed "),new T("",20,""),new T("",18,""),new T("",6,""),new T("",0,"("),new T("",f,", "),new T("",8,""),new T("",0," at "),new T("",0,"ly "),new T(" the ",0," of "),new T("",5,""),new T("",9,""),new T(" ",f,", "),new T("",f,'"'),new T(".",0,"("),new T("",B," "),new T("",f,'">'),new T("",0,'="'),new T(" ",0,"."),new T(".com/",0,""),new T(" the ",0," of the "),new T("",f,"'"),new T("",0,". This "),new T("",0,","),new T(".",0," "),new T("",f,"("),new T("",f,"."),new T("",0," not "),new T(" ",0,'="'),new T("",0,"er "),new T(" ",B," "),new T("",0,"al "),new T(" ",B,""),new T("",0,"='"),new T("",B,'"'),new T("",f,". "),new T(" ",0,"("),new T("",0,"ful "),new T(" ",f,". "),new T("",0,"ive "),new T("",0,"less "),new T("",B,"'"),new T("",0,"est "),new T(" ",f,"."),new T("",B,'">'),new T(" ",0,"='"),new T("",f,","),new T("",0,"ize "),new T("",B,"."),new T("\xc2\xa0",0,""),new T(" ",0,","),new T("",f,'="'),new T("",B,'="'),new T("",0,"ous "),new T("",B,", "),new T("",f,"='"),new T(" ",f,","),new T(" ",B,'="'),new T(" ",B,", "),new T("",B,","),new T("",B,"("),new T("",B,". "),new T(" ",B,"."),new T("",B,"='"),new T(" ",B,". "),new T(" ",f,'="'),new T(" ",B,"='"),new T(" ",f,"='")];function z(b,Z){return b[Z]<192?(b[Z]>=97&&b[Z]<=122&&(b[Z]^=32),1):b[Z]<224?(b[Z+1]^=32,2):(b[Z+2]^=5,3)}I.kTransforms=F,I.kNumTransforms=F.length,I.transformDictionaryWord=function(b,Z,aA,AA,lA){var _,MA=F[lA].prefix,cA=F[lA].suffix,gA=F[lA].transform,BA=gA<12?0:gA-11,DA=0,FA=Z;BA>AA&&(BA=AA);for(var dA=0;dA0;){var uA=z(b,_);_+=uA,AA-=uA}for(var CA=0;CAI.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,o(this.init_done,"close before init"),o(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,B,w,Q,p,S,m){return this._write(!0,f,B,w,Q,p,S,m)},e.prototype.writeSync=function(f,B,w,Q,p,S,m){return this._write(!1,f,B,w,Q,p,S,m)},e.prototype._write=function(f,B,w,Q,p,S,m,d){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==I.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===B,"must provide flush value"),this.write_in_progress=!0,B!==I.Z_NO_FLUSH&&B!==I.Z_PARTIAL_FLUSH&&B!==I.Z_SYNC_FLUSH&&B!==I.Z_FULL_FLUSH&&B!==I.Z_FINISH&&B!==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=S,this.strm.next_out=m,this.flush=B,!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,B=this.strm.avail_in;return this.write_in_progress=!1,[B,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,B=this.strm.avail_in;this.write_in_progress=!1,this.callback(B,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,B,w,Q,p){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(f>=8&&f<=15,"invalid windowBits"),o(B>=-1&&B<=9,"invalid compression level"),o(w>=1&&w<=9,"invalid memlevel"),o(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(B,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,B,w,Q,p){switch(this.level=f,this.windowBits=B,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(Y,I,n){"use strict";var c=n(4155),i=n(8823).Buffer,o=n(2830).Transform,l=n(4505),h=n(9539),a=n(9282).ok,g=n(8823).kMaxLength,E="Cannot create final Buffer. It would be larger than 0x"+g.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=g?dA=new RangeError(E):_=i.concat(cA,gA),cA=[],AA.close(),MA(dA,_)}AA.on("error",function DA(_){AA.removeListener("end",FA),AA.removeListener("readable",BA),MA(_)}),AA.on("end",FA),AA.end(lA),BA()}function S(AA,lA){if("string"==typeof lA&&(lA=i.from(lA)),!i.isBuffer(lA))throw new TypeError("Not a string or buffer");return AA._processChunk(lA,AA._finishFlushFlag)}function m(AA){if(!(this instanceof m))return new m(AA);b.call(this,AA,l.DEFLATE)}function d(AA){if(!(this instanceof d))return new d(AA);b.call(this,AA,l.INFLATE)}function v(AA){if(!(this instanceof v))return new v(AA);b.call(this,AA,l.GZIP)}function D(AA){if(!(this instanceof D))return new D(AA);b.call(this,AA,l.GUNZIP)}function U(AA){if(!(this instanceof U))return new U(AA);b.call(this,AA,l.DEFLATERAW)}function T(AA){if(!(this instanceof T))return new T(AA);b.call(this,AA,l.INFLATERAW)}function F(AA){if(!(this instanceof F))return new F(AA);b.call(this,AA,l.UNZIP)}function z(AA){return AA===l.Z_NO_FLUSH||AA===l.Z_PARTIAL_FLUSH||AA===l.Z_SYNC_FLUSH||AA===l.Z_FULL_FLUSH||AA===l.Z_FINISH||AA===l.Z_BLOCK}function b(AA,lA){var MA=this;if(this._opts=AA=AA||{},this._chunkSize=AA.chunkSize||I.Z_DEFAULT_CHUNK,o.call(this,AA),AA.flush&&!z(AA.flush))throw new Error("Invalid flush flag: "+AA.flush);if(AA.finishFlush&&!z(AA.finishFlush))throw new Error("Invalid flush flag: "+AA.finishFlush);if(this._flushFlag=AA.flush||l.Z_NO_FLUSH,this._finishFlushFlag=void 0!==AA.finishFlush?AA.finishFlush:l.Z_FINISH,AA.chunkSize&&(AA.chunkSizeI.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+AA.chunkSize);if(AA.windowBits&&(AA.windowBitsI.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+AA.windowBits);if(AA.level&&(AA.levelI.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+AA.level);if(AA.memLevel&&(AA.memLevelI.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+AA.memLevel);if(AA.strategy&&AA.strategy!=I.Z_FILTERED&&AA.strategy!=I.Z_HUFFMAN_ONLY&&AA.strategy!=I.Z_RLE&&AA.strategy!=I.Z_FIXED&&AA.strategy!=I.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+AA.strategy);if(AA.dictionary&&!i.isBuffer(AA.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new l.Zlib(lA);var cA=this;this._hadError=!1,this._handle.onerror=function(DA,FA){Z(cA),cA._hadError=!0;var _=new Error(DA);_.errno=FA,_.code=I.codes[FA],cA.emit("error",_)};var gA=I.Z_DEFAULT_COMPRESSION;"number"==typeof AA.level&&(gA=AA.level);var BA=I.Z_DEFAULT_STRATEGY;"number"==typeof AA.strategy&&(BA=AA.strategy),this._handle.init(AA.windowBits||I.Z_DEFAULT_WINDOWBITS,gA,AA.memLevel||I.Z_DEFAULT_MEMLEVEL,BA,AA.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=gA,this._strategy=BA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!MA._handle},configurable:!0,enumerable:!0})}function Z(AA,lA){lA&&c.nextTick(lA),AA._handle&&(AA._handle.close(),AA._handle=null)}function aA(AA){AA.emit("close")}Object.defineProperty(I,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),I.Deflate=m,I.Inflate=d,I.Gzip=v,I.Gunzip=D,I.DeflateRaw=U,I.InflateRaw=T,I.Unzip=F,I.createDeflate=function(AA){return new m(AA)},I.createInflate=function(AA){return new d(AA)},I.createDeflateRaw=function(AA){return new U(AA)},I.createInflateRaw=function(AA){return new T(AA)},I.createGzip=function(AA){return new v(AA)},I.createGunzip=function(AA){return new D(AA)},I.createUnzip=function(AA){return new F(AA)},I.deflate=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new m(lA),AA,MA)},I.deflateSync=function(AA,lA){return S(new m(lA),AA)},I.gzip=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new v(lA),AA,MA)},I.gzipSync=function(AA,lA){return S(new v(lA),AA)},I.deflateRaw=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new U(lA),AA,MA)},I.deflateRawSync=function(AA,lA){return S(new U(lA),AA)},I.unzip=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new F(lA),AA,MA)},I.unzipSync=function(AA,lA){return S(new F(lA),AA)},I.inflate=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new d(lA),AA,MA)},I.inflateSync=function(AA,lA){return S(new d(lA),AA)},I.gunzip=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new D(lA),AA,MA)},I.gunzipSync=function(AA,lA){return S(new D(lA),AA)},I.inflateRaw=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new T(lA),AA,MA)},I.inflateRawSync=function(AA,lA){return S(new T(lA),AA)},h.inherits(b,o),b.prototype.params=function(AA,lA,MA){if(AAI.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+AA);if(lA!=I.Z_FILTERED&&lA!=I.Z_HUFFMAN_ONLY&&lA!=I.Z_RLE&&lA!=I.Z_FIXED&&lA!=I.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+lA);if(this._level!==AA||this._strategy!==lA){var cA=this;this.flush(l.Z_SYNC_FLUSH,function(){a(cA._handle,"zlib binding closed"),cA._handle.params(AA,lA),cA._hadError||(cA._level=AA,cA._strategy=lA,MA&&MA())})}else c.nextTick(MA)},b.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},b.prototype._flush=function(AA){this._transform(i.alloc(0),"",AA)},b.prototype.flush=function(AA,lA){var MA=this,cA=this._writableState;("function"==typeof AA||void 0===AA&&!lA)&&(lA=AA,AA=l.Z_FULL_FLUSH),cA.ended?lA&&c.nextTick(lA):cA.ending?lA&&this.once("end",lA):cA.needDrain?lA&&this.once("drain",function(){return MA.flush(AA,lA)}):(this._flushFlag=AA,this.write(i.alloc(0),"",lA))},b.prototype.close=function(AA){Z(this,AA),c.nextTick(aA,this)},b.prototype._transform=function(AA,lA,MA){var cA,gA=this._writableState,DA=(gA.ending||gA.ended)&&(!AA||gA.length===AA.length);return null===AA||i.isBuffer(AA)?this._handle?(DA?cA=this._finishFlushFlag:(cA=this._flushFlag,AA.length>=gA.length&&(this._flushFlag=this._opts.flush||l.Z_NO_FLUSH)),void this._processChunk(AA,cA,MA)):MA(new Error("zlib binding closed")):MA(new Error("invalid input"))},b.prototype._processChunk=function(AA,lA,MA){var cA=AA&&AA.length,gA=this._chunkSize-this._offset,BA=0,DA=this,FA="function"==typeof MA;if(!FA){var uA,_=[],dA=0;this.on("error",function(q){uA=q}),a(this._handle,"zlib binding closed");do{var CA=this._handle.writeSync(lA,AA,BA,cA,this._buffer,this._offset,gA)}while(!this._hadError&&XA(CA[0],CA[1]));if(this._hadError)throw uA;if(dA>=g)throw Z(this),new RangeError(E);var SA=i.concat(_,dA);return Z(this),SA}a(this._handle,"zlib binding closed");var bA=this._handle.write(lA,AA,BA,cA,this._buffer,this._offset,gA);function XA(q,O){if(this&&(this.buffer=null,this.callback=null),!DA._hadError){var $=gA-O;if(a($>=0,"have should not go down"),$>0){var W=DA._buffer.slice(DA._offset,DA._offset+$);DA._offset+=$,FA?DA.push(W):(_.push(W),dA+=W.length)}if((0===O||DA._offset>=DA._chunkSize)&&(gA=DA._chunkSize,DA._offset=0,DA._buffer=i.allocUnsafe(DA._chunkSize)),0===O){if(BA+=cA-q,cA=q,!FA)return!0;var hA=DA._handle.write(lA,AA,BA,cA,DA._buffer,DA._offset,DA._chunkSize);return hA.callback=XA,void(hA.buffer=AA)}if(!FA)return!1;MA()}}bA.buffer=AA,bA.callback=XA},h.inherits(m,b),h.inherits(d,b),h.inherits(v,b),h.inherits(D,b),h.inherits(U,b),h.inherits(T,b),h.inherits(F,b)},1924:function(Y,I,n){"use strict";var c=n(210),i=n(5559),o=i(c("String.prototype.indexOf"));Y.exports=function(h,a){var g=c(h,!!a);return"function"==typeof g&&o(h,".prototype.")>-1?i(g):g}},5559:function(Y,I,n){"use strict";var c=n(8612),i=n(210),o=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),h=i("%Reflect.apply%",!0)||c.call(l,o),a=i("%Object.getOwnPropertyDescriptor%",!0),g=i("%Object.defineProperty%",!0),E=i("%Math.max%");if(g)try{g({},"a",{value:1})}catch(C){g=null}Y.exports=function(e){var f=h(c,l,arguments);return a&&g&&a(f,"length").configurable&&g(f,"length",{value:1+E(0,e.length-(arguments.length-1))}),f};var u=function(){return h(c,o,arguments)};g?g(Y.exports,"apply",{value:u}):Y.exports.apply=u},6313:function(Y,I,n){var c=n(8823).Buffer,i=function(){"use strict";function o(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 S(m,d){if(null===m)return null;if(0==d)return m;var v,D;if("object"!=typeof m)return m;if(o.__isArray(m))v=[];else if(o.__isRegExp(m))v=new RegExp(m.source,E(m)),m.lastIndex&&(v.lastIndex=m.lastIndex);else if(o.__isDate(m))v=new Date(m.getTime());else{if(p&&c.isBuffer(m))return v=c.allocUnsafe?c.allocUnsafe(m.length):new c(m.length),m.copy(v),v;void 0===f?(D=Object.getPrototypeOf(m),v=Object.create(D)):(v=Object.create(f),D=f)}if(C){var U=w.indexOf(m);if(-1!=U)return Q[U];w.push(m),Q.push(v)}for(var T in m){var F;D&&(F=Object.getOwnPropertyDescriptor(D,T)),(!F||null!=F.set)&&(v[T]=S(m[T],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 o.clonePrototype=function(C){if(null===C)return null;var e=function(){};return e.prototype=C,new e},o.__objToStr=l,o.__isDate=function h(u){return"object"==typeof u&&"[object Date]"===l(u)},o.__isArray=function a(u){return"object"==typeof u&&"[object Array]"===l(u)},o.__isRegExp=function g(u){return"object"==typeof u&&"[object RegExp]"===l(u)},o.__getRegExpFlags=E,o}();Y.exports&&(Y.exports=i)},4667:function(Y,I,n){n(2479);var c=n(857);Y.exports=c.Object.values},7633:function(Y,I,n){n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var c=n(857);Y.exports=c.Promise},3867:function(Y,I,n){var c=n(1150);n(8628),n(7314),n(7479),n(6290),Y.exports=c},9662:function(Y,I,n){var c=n(7854),i=n(614),o=n(6330),l=c.TypeError;Y.exports=function(h){if(i(h))return h;throw l(o(h)+" is not a function")}},9483:function(Y,I,n){var c=n(7854),i=n(4411),o=n(6330),l=c.TypeError;Y.exports=function(h){if(i(h))return h;throw l(o(h)+" is not a constructor")}},6077:function(Y,I,n){var c=n(7854),i=n(614),o=c.String,l=c.TypeError;Y.exports=function(h){if("object"==typeof h||i(h))return h;throw l("Can't set "+o(h)+" as a prototype")}},1223:function(Y,I,n){var c=n(5112),i=n(30),o=n(3070),l=c("unscopables"),h=Array.prototype;null==h[l]&&o.f(h,l,{configurable:!0,value:i(null)}),Y.exports=function(a){h[l][a]=!0}},1530:function(Y,I,n){"use strict";var c=n(8710).charAt;Y.exports=function(i,o,l){return o+(l?c(i,o).length:1)}},5787:function(Y,I,n){var c=n(7854),i=n(7976),o=c.TypeError;Y.exports=function(l,h){if(i(h,l))return l;throw o("Incorrect invocation")}},9670:function(Y,I,n){var c=n(7854),i=n(111),o=c.String,l=c.TypeError;Y.exports=function(h){if(i(h))return h;throw l(o(h)+" is not an object")}},1048:function(Y,I,n){"use strict";var c=n(7908),i=n(1400),o=n(6244),l=Math.min;Y.exports=[].copyWithin||function(a,g){var E=c(this),u=o(E),C=i(a,u),e=i(g,u),f=arguments.length>2?arguments[2]:void 0,B=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(Y,I,n){"use strict";var c=n(7908),i=n(1400),o=n(6244);Y.exports=function(h){for(var a=c(this),g=o(a),E=arguments.length,u=i(E>1?arguments[1]:void 0,g),C=E>2?arguments[2]:void 0,e=void 0===C?g:i(C,g);e>u;)a[u++]=h;return a}},8533:function(Y,I,n){"use strict";var c=n(2092).forEach,o=n(9341)("forEach");Y.exports=o?[].forEach:function(h){return c(this,h,arguments.length>1?arguments[1]:void 0)}},7745:function(Y){Y.exports=function(I,n){for(var c=0,i=n.length,o=new I(i);i>c;)o[c]=n[c++];return o}},8457:function(Y,I,n){"use strict";var c=n(7854),i=n(9974),o=n(6916),l=n(7908),h=n(3411),a=n(7659),g=n(4411),E=n(6244),u=n(6135),C=n(8554),e=n(1246),f=c.Array;Y.exports=function(w){var Q=l(w),p=g(this),S=arguments.length,m=S>1?arguments[1]:void 0,d=void 0!==m;d&&(m=i(m,S>2?arguments[2]:void 0));var U,T,F,z,b,Z,v=e(Q),D=0;if(!v||this==f&&a(v))for(U=E(Q),T=p?new this(U):f(U);U>D;D++)Z=d?m(Q[D],D):Q[D],u(T,D,Z);else for(b=(z=C(Q,v)).next,T=p?new this:[];!(F=o(b,z)).done;D++)Z=d?h(z,m,[F.value,D],!0):F.value,u(T,D,Z);return T.length=D,T}},1318:function(Y,I,n){var c=n(5656),i=n(1400),o=n(6244),l=function(h){return function(a,g,E){var f,u=c(a),C=o(u),e=i(E,C);if(h&&g!=g){for(;C>e;)if((f=u[e++])!=f)return!0}else for(;C>e;e++)if((h||e in u)&&u[e]===g)return h||e||0;return!h&&-1}};Y.exports={includes:l(!0),indexOf:l(!1)}},2092:function(Y,I,n){var c=n(9974),i=n(1702),o=n(8361),l=n(7908),h=n(6244),a=n(5417),g=i([].push),E=function(u){var C=1==u,e=2==u,f=3==u,B=4==u,w=6==u,Q=7==u,p=5==u||w;return function(S,m,d,v){for(var aA,AA,D=l(S),U=o(D),T=c(m,d),F=h(U),z=0,b=v||a,Z=C?b(S,F):e||Q?b(S,0):void 0;F>z;z++)if((p||z in U)&&(AA=T(aA=U[z],z,D),u))if(C)Z[z]=AA;else if(AA)switch(u){case 3:return!0;case 5:return aA;case 6:return z;case 2:g(Z,aA)}else switch(u){case 4:return!1;case 7:g(Z,aA)}return w?-1:f||B?B:Z}};Y.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(Y,I,n){"use strict";var c=n(2104),i=n(5656),o=n(9303),l=n(6244),h=n(9341),a=Math.min,g=[].lastIndexOf,E=!!g&&1/[1].lastIndexOf(1,-0)<0,u=h("lastIndexOf");Y.exports=E||!u?function(f){if(E)return c(g,this,arguments)||0;var B=i(this),w=l(B),Q=w-1;for(arguments.length>1&&(Q=a(Q,o(arguments[1]))),Q<0&&(Q=w+Q);Q>=0;Q--)if(Q in B&&B[Q]===f)return Q||0;return-1}:g},1194:function(Y,I,n){var c=n(7293),i=n(5112),o=n(7392),l=i("species");Y.exports=function(h){return o>=51||!c(function(){var a=[];return(a.constructor={})[l]=function(){return{foo:1}},1!==a[h](Boolean).foo})}},9341:function(Y,I,n){"use strict";var c=n(7293);Y.exports=function(i,o){var l=[][i];return!!l&&c(function(){l.call(null,o||function(){throw 1},1)})}},3671:function(Y,I,n){var c=n(7854),i=n(9662),o=n(7908),l=n(8361),h=n(6244),a=c.TypeError,g=function(E){return function(u,C,e,f){i(C);var B=o(u),w=l(B),Q=h(B),p=E?Q-1:0,S=E?-1:1;if(e<2)for(;;){if(p in w){f=w[p],p+=S;break}if(p+=S,E?p<0:Q<=p)throw a("Reduce of empty array with no initial value")}for(;E?p>=0:Q>p;p+=S)p in w&&(f=C(f,w[p],p,B));return f}};Y.exports={left:g(!1),right:g(!0)}},206:function(Y,I,n){var c=n(1702);Y.exports=c([].slice)},4362:function(Y,I,n){var c=n(206),i=Math.floor,o=function(a,g){var E=a.length,u=i(E/2);return E<8?l(a,g):h(a,o(c(a,0,u),g),o(c(a,u),g),g)},l=function(a,g){for(var C,e,E=a.length,u=1;u0;)a[e]=a[--e];e!==u++&&(a[e]=C)}return a},h=function(a,g,E,u){for(var C=g.length,e=E.length,f=0,B=0;f1?arguments[1]:void 0);Z=Z?Z.next:z.first;)for(b(Z.value,Z.key,this);Z&&Z.removed;)Z=Z.previous},has:function(F){return!!U(this,F)}}),o(d,p?{get:function(F){var z=U(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}}),m},setStrong:function(w,Q,p){var S=Q+" Iterator",m=B(Q),d=B(S);g(w,Q,function(v,D){f(this,{type:S,target:v,state:m(v),kind:D,last:void 0})},function(){for(var v=d(this),D=v.kind,U=v.last;U&&U.removed;)U=U.previous;return v.target&&(v.last=U=U?U.next:v.state.first)?"keys"==D?{value:U.key,done:!1}:"values"==D?{value:U.value,done:!1}:{value:[U.key,U.value],done:!1}:(v.target=void 0,{value:void 0,done:!0})},p?"entries":"values",!p,!0),E(Q)}}},7710:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(1702),l=n(4705),h=n(1320),a=n(2423),g=n(408),E=n(5787),u=n(614),C=n(111),e=n(7293),f=n(7072),B=n(8003),w=n(9587);Y.exports=function(Q,p,S){var m=-1!==Q.indexOf("Map"),d=-1!==Q.indexOf("Weak"),v=m?"set":"add",D=i[Q],U=D&&D.prototype,T=D,F={},z=function(cA){var gA=o(U[cA]);h(U,cA,"add"==cA?function(DA){return gA(this,0===DA?0:DA),this}:"delete"==cA?function(BA){return!(d&&!C(BA))&&gA(this,0===BA?0:BA)}:"get"==cA?function(DA){return d&&!C(DA)?void 0:gA(this,0===DA?0:DA)}:"has"==cA?function(DA){return!(d&&!C(DA))&&gA(this,0===DA?0:DA)}:function(DA,FA){return gA(this,0===DA?0:DA,FA),this})};if(l(Q,!u(D)||!(d||U.forEach&&!e(function(){(new D).entries().next()}))))T=S.getConstructor(p,Q,m,v),a.enable();else if(l(Q,!0)){var Z=new T,aA=Z[v](d?{}:-0,1)!=Z,AA=e(function(){Z.has(1)}),lA=f(function(cA){new D(cA)}),MA=!d&&e(function(){for(var cA=new D,gA=5;gA--;)cA[v](gA,gA);return!cA.has(-0)});lA||((T=p(function(cA,gA){E(cA,U);var BA=w(new D,cA,T);return null!=gA&&g(gA,BA[v],{that:BA,AS_ENTRIES:m}),BA})).prototype=U,U.constructor=T),(AA||MA)&&(z("delete"),z("has"),m&&z("get")),(MA||aA)&&z(v),d&&U.clear&&delete U.clear}return F[Q]=T,c({global:!0,forced:T!=D},F),B(T,Q),d||S.setStrong(T,Q,m),T}},9920:function(Y,I,n){var c=n(2597),i=n(3887),o=n(1236),l=n(3070);Y.exports=function(h,a){for(var g=i(a),E=l.f,u=o.f,C=0;C"+C+""}},4994:function(Y,I,n){"use strict";var c=n(3383).IteratorPrototype,i=n(30),o=n(9114),l=n(8003),h=n(7497),a=function(){return this};Y.exports=function(g,E,u){var C=E+" Iterator";return g.prototype=i(c,{next:o(1,u)}),l(g,C,!1,!0),h[C]=a,g}},8880:function(Y,I,n){var c=n(9781),i=n(3070),o=n(9114);Y.exports=c?function(l,h,a){return i.f(l,h,o(1,a))}:function(l,h,a){return l[h]=a,l}},9114:function(Y){Y.exports=function(I,n){return{enumerable:!(1&I),configurable:!(2&I),writable:!(4&I),value:n}}},6135:function(Y,I,n){"use strict";var c=n(4948),i=n(3070),o=n(9114);Y.exports=function(l,h,a){var g=c(h);g in l?i.f(l,g,o(0,a)):l[g]=a}},8709:function(Y,I,n){"use strict";var c=n(7854),i=n(9670),o=n(2140),l=c.TypeError;Y.exports=function(h){if(i(this),"string"===h||"default"===h)h="string";else if("number"!==h)throw l("Incorrect hint");return o(this,h)}},654:function(Y,I,n){"use strict";var c=n(2109),i=n(6916),o=n(1913),l=n(6530),h=n(614),a=n(4994),g=n(9518),E=n(7674),u=n(8003),C=n(8880),e=n(1320),f=n(5112),B=n(7497),w=n(3383),Q=l.PROPER,p=l.CONFIGURABLE,S=w.IteratorPrototype,m=w.BUGGY_SAFARI_ITERATORS,d=f("iterator"),v="keys",D="values",U="entries",T=function(){return this};Y.exports=function(F,z,b,Z,aA,AA,lA){a(b,z,Z);var dA,uA,CA,MA=function(SA){if(SA===aA&&FA)return FA;if(!m&&SA in BA)return BA[SA];switch(SA){case v:case D:case U:return function(){return new b(this,SA)}}return function(){return new b(this)}},cA=z+" Iterator",gA=!1,BA=F.prototype,DA=BA[d]||BA["@@iterator"]||aA&&BA[aA],FA=!m&&DA||MA(aA),_="Array"==z&&BA.entries||DA;if(_&&(dA=g(_.call(new F)))!==Object.prototype&&dA.next&&(!o&&g(dA)!==S&&(E?E(dA,S):h(dA[d])||e(dA,d,T)),u(dA,cA,!0,!0),o&&(B[cA]=T)),Q&&aA==D&&DA&&DA.name!==D&&(!o&&p?C(BA,"name",D):(gA=!0,FA=function(){return i(DA,this)})),aA)if(uA={values:MA(D),keys:AA?FA:MA(v),entries:MA(U)},lA)for(CA in uA)(m||gA||!(CA in BA))&&e(BA,CA,uA[CA]);else c({target:z,proto:!0,forced:m||gA},uA);return(!o||lA)&&BA[d]!==FA&&e(BA,d,FA,{name:aA}),B[z]=FA,uA}},7235:function(Y,I,n){var c=n(857),i=n(2597),o=n(6061),l=n(3070).f;Y.exports=function(h){var a=c.Symbol||(c.Symbol={});i(a,h)||l(a,h,{value:o.f(h)})}},9781:function(Y,I,n){var c=n(7293);Y.exports=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:function(Y,I,n){var c=n(7854),i=n(111),o=c.document,l=i(o)&&i(o.createElement);Y.exports=function(h){return l?o.createElement(h):{}}},8324:function(Y){Y.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(Y,I,n){var i=n(317)("span").classList,o=i&&i.constructor&&i.constructor.prototype;Y.exports=o===Object.prototype?void 0:o},8886:function(Y,I,n){var i=n(8113).match(/firefox\/(\d+)/i);Y.exports=!!i&&+i[1]},7871:function(Y){Y.exports="object"==typeof window},256:function(Y,I,n){var c=n(8113);Y.exports=/MSIE|Trident/.test(c)},1528:function(Y,I,n){var c=n(8113),i=n(7854);Y.exports=/ipad|iphone|ipod/i.test(c)&&void 0!==i.Pebble},6833:function(Y,I,n){var c=n(8113);Y.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},5268:function(Y,I,n){var c=n(4326),i=n(7854);Y.exports="process"==c(i.process)},1036:function(Y,I,n){var c=n(8113);Y.exports=/web0s(?!.*chrome)/i.test(c)},8113:function(Y,I,n){var c=n(5005);Y.exports=c("navigator","userAgent")||""},7392:function(Y,I,n){var g,E,c=n(7854),i=n(8113),o=c.process,l=c.Deno,h=o&&o.versions||l&&l.version,a=h&&h.v8;a&&(E=(g=a.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!E&&i&&(!(g=i.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=i.match(/Chrome\/(\d+)/))&&(E=+g[1]),Y.exports=E},8008:function(Y,I,n){var i=n(8113).match(/AppleWebKit\/(\d+)\./);Y.exports=!!i&&+i[1]},748:function(Y){Y.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(Y,I,n){var c=n(7293),i=n(9114);Y.exports=!c(function(){var o=Error("a");return!("stack"in o)||(Object.defineProperty(o,"stack",i(1,7)),7!==o.stack)})},2109:function(Y,I,n){var c=n(7854),i=n(1236).f,o=n(8880),l=n(1320),h=n(3505),a=n(9920),g=n(4705);Y.exports=function(E,u){var w,Q,p,S,m,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(S=u[Q],p=E.noTargetGet?(m=i(w,Q))&&m.value:w[Q],!g(e?Q:C+(f?".":"#")+Q,E.forced)&&void 0!==p){if(typeof S==typeof p)continue;a(S,p)}(E.sham||p&&p.sham)&&o(S,"sham",!0),l(w,Q,S,E)}}},7293:function(Y){Y.exports=function(I){try{return!!I()}catch(n){return!0}}},7007:function(Y,I,n){"use strict";n(4916);var c=n(1702),i=n(1320),o=n(2261),l=n(7293),h=n(5112),a=n(8880),g=h("species"),E=RegExp.prototype;Y.exports=function(u,C,e,f){var B=h(u),w=!l(function(){var m={};return m[B]=function(){return 7},7!=""[u](m)}),Q=w&&!l(function(){var m=!1,d=/a/;return"split"===u&&((d={}).constructor={},d.constructor[g]=function(){return d},d.flags="",d[B]=/./[B]),d.exec=function(){return m=!0,null},d[B](""),!m});if(!w||!Q||e){var p=c(/./[B]),S=C(B,""[u],function(m,d,v,D,U){var T=c(m),F=d.exec;return F===o||F===E.exec?w&&!U?{done:!0,value:p(d,v,D)}:{done:!0,value:T(v,d,D)}:{done:!1}});i(String.prototype,u,S[0]),i(E,B,S[1])}f&&a(E[B],"sham",!0)}},6677:function(Y,I,n){var c=n(7293);Y.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(Y){var I=Function.prototype,n=I.apply,i=I.call;Y.exports="object"==typeof Reflect&&Reflect.apply||(I.bind?i.bind(n):function(){return i.apply(n,arguments)})},9974:function(Y,I,n){var c=n(1702),i=n(9662),o=c(c.bind);Y.exports=function(l,h){return i(l),void 0===h?l:o?o(l,h):function(){return l.apply(h,arguments)}}},7065:function(Y,I,n){"use strict";var c=n(7854),i=n(1702),o=n(9662),l=n(111),h=n(2597),a=n(206),g=c.Function,E=i([].concat),u=i([].join),C={},e=function(f,B,w){if(!h(C,B)){for(var Q=[],p=0;p]*>)/g,E=/\$([$&'`]|\d{1,2})/g;Y.exports=function(u,C,e,f,B,w){var Q=e+u.length,p=f.length,S=E;return void 0!==B&&(B=i(B),S=g),h(w,S,function(m,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=B[a(d,1,-1)];break;default:var D=+d;if(0===D)return m;if(D>p){var U=o(D/10);return 0===U?m:U<=p?void 0===f[U-1]?l(d,1):f[U-1]+l(d,1):m}v=f[D-1]}return void 0===v?"":v})}},7854:function(Y,I,n){var c=function(i){return i&&i.Math==Math&&i};Y.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(Y,I,n){var c=n(1702),i=n(7908),o=c({}.hasOwnProperty);Y.exports=Object.hasOwn||function(h,a){return o(i(h),a)}},3501:function(Y){Y.exports={}},842:function(Y,I,n){var c=n(7854);Y.exports=function(i,o){var l=c.console;l&&l.error&&(1==arguments.length?l.error(i):l.error(i,o))}},490:function(Y,I,n){var c=n(5005);Y.exports=c("document","documentElement")},4664:function(Y,I,n){var c=n(9781),i=n(7293),o=n(317);Y.exports=!c&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},1179:function(Y,I,n){var i=n(7854).Array,o=Math.abs,l=Math.pow,h=Math.floor,a=Math.log,g=Math.LN2;Y.exports={pack:function(C,e,f){var v,D,U,B=i(f),w=8*f-e-1,Q=(1<>1,S=23===e?l(2,-24)-l(2,-77):0,m=C<0||0===C&&1/C<0?1:0,d=0;for((C=o(C))!=C||C===1/0?(D=C!=C?1:0,v=Q):(v=h(a(C)/g),C*(U=l(2,-v))<1&&(v--,U*=2),(C+=v+p>=1?S/U:S*l(2,1-p))*U>=2&&(v++,U/=2),v+p>=Q?(D=0,v=Q):v+p>=1?(D=(C*U-1)*l(2,e),v+=p):(D=C*l(2,p-1)*l(2,e),v=0));e>=8;B[d++]=255&D,D/=256,e-=8);for(v=v<0;B[d++]=255&v,v/=256,w-=8);return B[--d]|=128*m,B},unpack:function(C,e){var v,f=C.length,B=8*f-e-1,w=(1<>1,p=B-7,S=f-1,m=C[S--],d=127&m;for(m>>=7;p>0;d=256*d+C[S],S--,p-=8);for(v=d&(1<<-p)-1,d>>=-p,p+=e;p>0;v=256*v+C[S],S--,p-=8);if(0===d)d=1-Q;else{if(d===w)return v?NaN:m?-1/0:1/0;v+=l(2,e),d-=Q}return(m?-1:1)*v*l(2,d-e)}}},8361:function(Y,I,n){var c=n(7854),i=n(1702),o=n(7293),l=n(4326),h=c.Object,a=i("".split);Y.exports=o(function(){return!h("z").propertyIsEnumerable(0)})?function(g){return"String"==l(g)?a(g,""):h(g)}:h},9587:function(Y,I,n){var c=n(614),i=n(111),o=n(7674);Y.exports=function(l,h,a){var g,E;return o&&c(g=h.constructor)&&g!==a&&i(E=g.prototype)&&E!==a.prototype&&o(l,E),l}},2788:function(Y,I,n){var c=n(1702),i=n(614),o=n(5465),l=c(Function.toString);i(o.inspectSource)||(o.inspectSource=function(h){return l(h)}),Y.exports=o.inspectSource},8340:function(Y,I,n){var c=n(111),i=n(8880);Y.exports=function(o,l){c(l)&&"cause"in l&&i(o,"cause",l.cause)}},2423:function(Y,I,n){var c=n(2109),i=n(1702),o=n(3501),l=n(111),h=n(2597),a=n(3070).f,g=n(8006),E=n(1156),u=n(9711),C=n(6677),e=!1,f=u("meta"),B=0,w=Object.isExtensible||function(){return!0},Q=function(D){a(D,f,{value:{objectID:"O"+B++,weakData:{}}})},v=Y.exports={enable:function(){v.enable=function(){},e=!0;var D=g.f,U=i([].splice),T={};T[f]=1,D(T).length&&(g.f=function(F){for(var z=D(F),b=0,Z=z.length;bz;z++)if((Z=MA(Q[z]))&&E(w,Z))return Z;return new B(!1)}T=u(Q,F)}for(aA=T.next;!(AA=o(aA,T)).done;){try{Z=MA(AA.value)}catch(cA){e(T,"throw",cA)}if("object"==typeof Z&&Z&&E(w,Z))return Z}return new B(!1)}},9212:function(Y,I,n){var c=n(6916),i=n(9670),o=n(8173);Y.exports=function(l,h,a){var g,E;i(l);try{if(!(g=o(l,"return"))){if("throw"===h)throw a;return a}g=c(g,l)}catch(u){E=!0,g=u}if("throw"===h)throw a;if(E)throw g;return i(g),a}},3383:function(Y,I,n){"use strict";var C,e,f,c=n(7293),i=n(614),o=n(30),l=n(9518),h=n(1320),a=n(5112),g=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={}:g&&(C=o(C)),i(C[E])||h(C,E,function(){return this}),Y.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:u}},7497:function(Y){Y.exports={}},6244:function(Y,I,n){var c=n(7466);Y.exports=function(i){return c(i.length)}},5948:function(Y,I,n){var Q,p,S,m,d,v,D,U,c=n(7854),i=n(9974),o=n(1236).f,l=n(261).set,h=n(6833),a=n(1528),g=n(1036),E=n(5268),u=c.MutationObserver||c.WebKitMutationObserver,C=c.document,e=c.process,f=c.Promise,B=o(c,"queueMicrotask"),w=B&&B.value;w||(Q=function(){var T,F;for(E&&(T=e.domain)&&T.exit();p;){F=p.fn,p=p.next;try{F()}catch(z){throw p?m():S=void 0,z}}S=void 0,T&&T.enter()},h||E||g||!u||!C?!a&&f&&f.resolve?((D=f.resolve(void 0)).constructor=f,U=i(D.then,D),m=function(){U(Q)}):E?m=function(){e.nextTick(Q)}:(l=i(l,c),m=function(){l(Q)}):(d=!0,v=C.createTextNode(""),new u(Q).observe(v,{characterData:!0}),m=function(){v.data=d=!d})),Y.exports=w||function(T){var F={fn:T,next:void 0};S&&(S.next=F),p||(p=F,m()),S=F}},3366:function(Y,I,n){var c=n(7854);Y.exports=c.Promise},133:function(Y,I,n){var c=n(7392),i=n(7293);Y.exports=!!Object.getOwnPropertySymbols&&!i(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&c&&c<41})},8536:function(Y,I,n){var c=n(7854),i=n(614),o=n(2788),l=c.WeakMap;Y.exports=i(l)&&/native code/.test(o(l))},8523:function(Y,I,n){"use strict";var c=n(9662),i=function(o){var l,h;this.promise=new o(function(a,g){if(void 0!==l||void 0!==h)throw TypeError("Bad Promise constructor");l=a,h=g}),this.resolve=c(l),this.reject=c(h)};Y.exports.f=function(o){return new i(o)}},6277:function(Y,I,n){var c=n(1340);Y.exports=function(i,o){return void 0===i?arguments.length<2?"":o:c(i)}},3929:function(Y,I,n){var c=n(7854),i=n(7850),o=c.TypeError;Y.exports=function(l){if(i(l))throw o("The method doesn't accept regular expressions");return l}},7023:function(Y,I,n){var i=n(7854).isFinite;Y.exports=Number.isFinite||function(l){return"number"==typeof l&&i(l)}},1574:function(Y,I,n){"use strict";var c=n(9781),i=n(1702),o=n(6916),l=n(7293),h=n(1956),a=n(5181),g=n(5296),E=n(7908),u=n(8361),C=Object.assign,e=Object.defineProperty,f=i([].concat);Y.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 B={},w={},Q=Symbol(),p="abcdefghijklmnopqrst";return B[Q]=7,p.split("").forEach(function(S){w[S]=S}),7!=C({},B)[Q]||h(C({},w)).join("")!=p})?function(w,Q){for(var p=E(w),S=arguments.length,m=1,d=a.f,v=g.f;S>m;)for(var z,D=u(arguments[m++]),U=d?f(h(D),d(D)):h(D),T=U.length,F=0;T>F;)z=U[F++],(!c||o(v,D,z))&&(p[z]=D[z]);return p}:C},30:function(Y,I,n){var S,c=n(9670),i=n(6048),o=n(748),l=n(3501),h=n(490),a=n(317),g=n(6200),C="prototype",e="script",f=g("IE_PROTO"),B=function(){},w=function(d){return"<"+e+">"+d+""},Q=function(d){d.write(w("")),d.close();var v=d.parentWindow.Object;return d=null,v},m=function(){try{S=new ActiveXObject("htmlfile")}catch(v){}m="undefined"!=typeof document?document.domain&&S?Q(S):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(S);for(var d=o.length;d--;)delete m[C][o[d]];return m()};l[f]=!0,Y.exports=Object.create||function(v,D){var U;return null!==v?(B[C]=c(v),U=new B,B[C]=null,U[f]=v):U=m(),void 0===D?U:i(U,D)}},6048:function(Y,I,n){var c=n(9781),i=n(3070),o=n(9670),l=n(5656),h=n(1956);Y.exports=c?Object.defineProperties:function(g,E){o(g);for(var B,u=l(E),C=h(E),e=C.length,f=0;e>f;)i.f(g,B=C[f++],u[B]);return g}},3070:function(Y,I,n){var c=n(7854),i=n(9781),o=n(4664),l=n(9670),h=n(4948),a=c.TypeError,g=Object.defineProperty;I.f=i?g:function(u,C,e){if(l(u),C=h(C),l(e),o)try{return g(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(Y,I,n){var c=n(9781),i=n(6916),o=n(5296),l=n(9114),h=n(5656),a=n(4948),g=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(B){}if(g(e,f))return l(!i(o.f,e,f),e[f])}},1156:function(Y,I,n){var c=n(4326),i=n(5656),o=n(8006).f,l=n(206),h="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Y.exports.f=function(E){return h&&"Window"==c(E)?function(g){try{return o(g)}catch(E){return l(h)}}(E):o(i(E))}},8006:function(Y,I,n){var c=n(6324),o=n(748).concat("length","prototype");I.f=Object.getOwnPropertyNames||function(h){return c(h,o)}},5181:function(Y,I){I.f=Object.getOwnPropertySymbols},9518:function(Y,I,n){var c=n(7854),i=n(2597),o=n(614),l=n(7908),h=n(6200),a=n(8544),g=h("IE_PROTO"),E=c.Object,u=E.prototype;Y.exports=a?E.getPrototypeOf:function(C){var e=l(C);if(i(e,g))return e[g];var f=e.constructor;return o(f)&&e instanceof f?f.prototype:e instanceof E?u:null}},7976:function(Y,I,n){var c=n(1702);Y.exports=c({}.isPrototypeOf)},6324:function(Y,I,n){var c=n(1702),i=n(2597),o=n(5656),l=n(1318).indexOf,h=n(3501),a=c([].push);Y.exports=function(g,E){var f,u=o(g),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(Y,I,n){var c=n(6324),i=n(748);Y.exports=Object.keys||function(l){return c(l,i)}},5296:function(Y,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(Y,I,n){var c=n(1702),i=n(9670),o=n(6077);Y.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(g){}return function(E,u){return i(E),o(u),l?a(E,u):E.__proto__=u,E}}():void 0)},4699:function(Y,I,n){var c=n(9781),i=n(1702),o=n(1956),l=n(5656),a=i(n(5296).f),g=i([].push),E=function(u){return function(C){for(var p,e=l(C),f=o(e),B=f.length,w=0,Q=[];B>w;)p=f[w++],(!c||a(e,p))&&g(Q,u?[p,e[p]]:e[p]);return Q}};Y.exports={entries:E(!0),values:E(!1)}},288:function(Y,I,n){"use strict";var c=n(1694),i=n(648);Y.exports=c?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(Y,I,n){var c=n(7854),i=n(6916),o=n(614),l=n(111),h=c.TypeError;Y.exports=function(a,g){var E,u;if("string"===g&&o(E=a.toString)&&!l(u=i(E,a))||o(E=a.valueOf)&&!l(u=i(E,a))||"string"!==g&&o(E=a.toString)&&!l(u=i(E,a)))return u;throw h("Can't convert object to primitive value")}},3887:function(Y,I,n){var c=n(5005),i=n(1702),o=n(8006),l=n(5181),h=n(9670),a=i([].concat);Y.exports=c("Reflect","ownKeys")||function(E){var u=o.f(h(E)),C=l.f;return C?a(u,C(E)):u}},857:function(Y,I,n){var c=n(7854);Y.exports=c},2534:function(Y){Y.exports=function(I){try{return{error:!1,value:I()}}catch(n){return{error:!0,value:n}}}},9478:function(Y,I,n){var c=n(9670),i=n(111),o=n(8523);Y.exports=function(l,h){if(c(l),i(h)&&h.constructor===l)return h;var a=o.f(l);return(0,a.resolve)(h),a.promise}},2248:function(Y,I,n){var c=n(1320);Y.exports=function(i,o,l){for(var h in o)c(i,h,o[h],l);return i}},1320:function(Y,I,n){var c=n(7854),i=n(614),o=n(2597),l=n(8880),h=n(3505),a=n(2788),g=n(9909),E=n(6530).CONFIGURABLE,u=g.get,C=g.enforce,e=String(String).split("String");(Y.exports=function(f,B,w,Q){var v,p=!!Q&&!!Q.unsafe,S=!!Q&&!!Q.enumerable,m=!!Q&&!!Q.noTargetGet,d=Q&&void 0!==Q.name?Q.name:B;i(w)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(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?!m&&f[B]&&(S=!0):delete f[B],S?f[B]=w:l(f,B,w)):S?f[B]=w:h(B,w)})(Function.prototype,"toString",function(){return i(this)&&u(this).source||a(this)})},7651:function(Y,I,n){var c=n(7854),i=n(6916),o=n(9670),l=n(614),h=n(4326),a=n(2261),g=c.TypeError;Y.exports=function(E,u){var C=E.exec;if(l(C)){var e=i(C,E,u);return null!==e&&o(e),e}if("RegExp"===h(E))return i(a,E,u);throw g("RegExp#exec called on incompatible receiver")}},2261:function(Y,I,n){"use strict";var U,T,c=n(6916),i=n(1702),o=n(1340),l=n(7066),h=n(2999),a=n(2309),g=n(30),E=n(9909).get,u=n(9441),C=n(7168),e=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,B=f,w=i("".charAt),Q=i("".indexOf),p=i("".replace),S=i("".slice),m=(T=/b*/g,c(f,U=/a/,"a"),c(f,T,"a"),0!==U.lastIndex||0!==T.lastIndex),d=h.UNSUPPORTED_Y||h.BROKEN_CARET,v=void 0!==/()??/.exec("")[1];(m||v||d||u||C)&&(B=function(T){var aA,AA,lA,MA,cA,gA,BA,F=this,z=E(F),b=o(T),Z=z.raw;if(Z)return Z.lastIndex=F.lastIndex,aA=c(B,Z,b),F.lastIndex=Z.lastIndex,aA;var DA=z.groups,FA=d&&F.sticky,_=c(l,F),dA=F.source,uA=0,CA=b;if(FA&&(_=p(_,"y",""),-1===Q(_,"g")&&(_+="g"),CA=S(b,F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&"\n"!==w(b,F.lastIndex-1))&&(dA="(?: "+dA+")",CA=" "+CA,uA++),AA=new RegExp("^(?:"+dA+")",_)),v&&(AA=new RegExp("^"+dA+"$(?!\\s)",_)),m&&(lA=F.lastIndex),MA=c(f,FA?AA:F,CA),FA?MA?(MA.input=S(MA.input,uA),MA[0]=S(MA[0],uA),MA.index=F.lastIndex,F.lastIndex+=MA[0].length):F.lastIndex=0:m&&MA&&(F.lastIndex=F.global?MA.index+MA[0].length:lA),v&&MA&&MA.length>1&&c(e,MA[0],AA,function(){for(cA=1;cAb)","g");return"b"!==l.exec("b").groups.a||"bc"!=="b".replace(l,"$c")})},4488:function(Y,I,n){var i=n(7854).TypeError;Y.exports=function(o){if(null==o)throw i("Can't call method on "+o);return o}},3505:function(Y,I,n){var c=n(7854),i=Object.defineProperty;Y.exports=function(o,l){try{i(c,o,{value:l,configurable:!0,writable:!0})}catch(h){c[o]=l}return l}},6340:function(Y,I,n){"use strict";var c=n(5005),i=n(3070),o=n(5112),l=n(9781),h=o("species");Y.exports=function(a){var g=c(a);l&&g&&!g[h]&&(0,i.f)(g,h,{configurable:!0,get:function(){return this}})}},8003:function(Y,I,n){var c=n(3070).f,i=n(2597),l=n(5112)("toStringTag");Y.exports=function(h,a,g){h&&!i(h=g?h:h.prototype,l)&&c(h,l,{configurable:!0,value:a})}},6200:function(Y,I,n){var c=n(2309),i=n(9711),o=c("keys");Y.exports=function(l){return o[l]||(o[l]=i(l))}},5465:function(Y,I,n){var c=n(7854),i=n(3505),o="__core-js_shared__",l=c[o]||i(o,{});Y.exports=l},2309:function(Y,I,n){var c=n(1913),i=n(5465);(Y.exports=function(o,l){return i[o]||(i[o]=void 0!==l?l:{})})("versions",[]).push({version:"3.19.0",mode:c?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(Y,I,n){var c=n(9670),i=n(9483),l=n(5112)("species");Y.exports=function(h,a){var E,g=c(h).constructor;return void 0===g||null==(E=c(g)[l])?a:i(E)}},3429:function(Y,I,n){var c=n(7293);Y.exports=function(i){return c(function(){var o=""[i]('"');return o!==o.toLowerCase()||o.split('"').length>3})}},8710:function(Y,I,n){var c=n(1702),i=n(9303),o=n(1340),l=n(4488),h=c("".charAt),a=c("".charCodeAt),g=c("".slice),E=function(u){return function(C,e){var Q,p,f=o(l(C)),B=i(e),w=f.length;return B<0||B>=w?u?"":void 0:(Q=a(f,B))<55296||Q>56319||B+1===w||(p=a(f,B+1))<56320||p>57343?u?h(f,B):Q:u?g(f,B,B+2):p-56320+(Q-55296<<10)+65536}};Y.exports={codeAt:E(!1),charAt:E(!0)}},8415:function(Y,I,n){"use strict";var c=n(7854),i=n(9303),o=n(1340),l=n(4488),h=c.RangeError;Y.exports=function(g){var E=o(l(this)),u="",C=i(g);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(Y,I,n){var c=n(6530).PROPER,i=n(7293),o=n(1361);Y.exports=function(h){return i(function(){return!!o[h]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[h]()||c&&o[h].name!==h})}},3111:function(Y,I,n){var c=n(1702),i=n(4488),o=n(1340),l=n(1361),h=c("".replace),a="["+l+"]",g=RegExp("^"+a+a+"*"),E=RegExp(a+a+"*$"),u=function(C){return function(e){var f=o(i(e));return 1&C&&(f=h(f,g,"")),2&C&&(f=h(f,E,"")),f}};Y.exports={start:u(1),end:u(2),trim:u(3)}},261:function(Y,I,n){var U,T,F,z,c=n(7854),i=n(2104),o=n(9974),l=n(614),h=n(2597),a=n(7293),g=n(490),E=n(206),u=n(317),C=n(6833),e=n(5268),f=c.setImmediate,B=c.clearImmediate,w=c.process,Q=c.Dispatch,p=c.Function,S=c.MessageChannel,m=c.String,d=0,v={},D="onreadystatechange";try{U=c.location}catch(lA){}var b=function(lA){if(h(v,lA)){var MA=v[lA];delete v[lA],MA()}},Z=function(lA){return function(){b(lA)}},aA=function(lA){b(lA.data)},AA=function(lA){c.postMessage(m(lA),U.protocol+"//"+U.host)};(!f||!B)&&(f=function(MA){var cA=E(arguments,1);return v[++d]=function(){i(l(MA)?MA:p(MA),void 0,cA)},T(d),d},B=function(MA){delete v[MA]},e?T=function(lA){w.nextTick(Z(lA))}:Q&&Q.now?T=function(lA){Q.now(Z(lA))}:S&&!C?(z=(F=new S).port2,F.port1.onmessage=aA,T=o(z.postMessage,z)):c.addEventListener&&l(c.postMessage)&&!c.importScripts&&U&&"file:"!==U.protocol&&!a(AA)?(T=AA,c.addEventListener("message",aA,!1)):T=D in u("script")?function(lA){g.appendChild(u("script"))[D]=function(){g.removeChild(this),b(lA)}}:function(lA){setTimeout(Z(lA),0)}),Y.exports={set:f,clear:B}},863:function(Y,I,n){var c=n(1702);Y.exports=c(1..valueOf)},1400:function(Y,I,n){var c=n(9303),i=Math.max,o=Math.min;Y.exports=function(l,h){var a=c(l);return a<0?i(a+h,0):o(a,h)}},7067:function(Y,I,n){var c=n(7854),i=n(9303),o=n(7466),l=c.RangeError;Y.exports=function(h){if(void 0===h)return 0;var a=i(h),g=o(a);if(a!==g)throw l("Wrong length or index");return g}},5656:function(Y,I,n){var c=n(8361),i=n(4488);Y.exports=function(o){return c(i(o))}},9303:function(Y){var I=Math.ceil,n=Math.floor;Y.exports=function(c){var i=+c;return i!=i||0===i?0:(i>0?n:I)(i)}},7466:function(Y,I,n){var c=n(9303),i=Math.min;Y.exports=function(o){return o>0?i(c(o),9007199254740991):0}},7908:function(Y,I,n){var c=n(7854),i=n(4488),o=c.Object;Y.exports=function(l){return o(i(l))}},4590:function(Y,I,n){var c=n(7854),i=n(3002),o=c.RangeError;Y.exports=function(l,h){var a=i(l);if(a%h)throw o("Wrong offset");return a}},3002:function(Y,I,n){var c=n(7854),i=n(9303),o=c.RangeError;Y.exports=function(l){var h=i(l);if(h<0)throw o("The argument can't be less than 0");return h}},7593:function(Y,I,n){var c=n(7854),i=n(6916),o=n(111),l=n(2190),h=n(8173),a=n(2140),g=n(5112),E=c.TypeError,u=g("toPrimitive");Y.exports=function(C,e){if(!o(C)||l(C))return C;var B,f=h(C,u);if(f){if(void 0===e&&(e="default"),B=i(f,C,e),!o(B)||l(B))return B;throw E("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(C,e)}},4948:function(Y,I,n){var c=n(7593),i=n(2190);Y.exports=function(o){var l=c(o,"string");return i(l)?l:l+""}},1694:function(Y,I,n){var o={};o[n(5112)("toStringTag")]="z",Y.exports="[object z]"===String(o)},1340:function(Y,I,n){var c=n(7854),i=n(648),o=c.String;Y.exports=function(l){if("Symbol"===i(l))throw TypeError("Cannot convert a Symbol value to a string");return o(l)}},6330:function(Y,I,n){var i=n(7854).String;Y.exports=function(o){try{return i(o)}catch(l){return"Object"}}},9843:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(6916),l=n(9781),h=n(3832),a=n(2094),g=n(2091),E=n(5787),u=n(9114),C=n(8880),e=n(5988),f=n(7466),B=n(7067),w=n(4590),Q=n(4948),p=n(2597),S=n(648),m=n(111),d=n(2190),v=n(30),D=n(7976),U=n(7674),T=n(8006).f,F=n(7321),z=n(2092).forEach,b=n(6340),Z=n(3070),aA=n(1236),AA=n(9909),lA=n(9587),MA=AA.get,cA=AA.set,gA=Z.f,BA=aA.f,DA=Math.round,FA=i.RangeError,_=g.ArrayBuffer,dA=_.prototype,uA=g.DataView,CA=a.NATIVE_ARRAY_BUFFER_VIEWS,SA=a.TYPED_ARRAY_CONSTRUCTOR,bA=a.TYPED_ARRAY_TAG,XA=a.TypedArray,q=a.TypedArrayPrototype,O=a.aTypedArrayConstructor,$=a.isTypedArray,W="BYTES_PER_ELEMENT",hA="Wrong length",mA=function(TA,it){O(TA);for(var mt=0,It=it.length,ft=new TA(It);It>mt;)ft[mt]=it[mt++];return ft},nA=function(TA,it){gA(TA,it,{get:function(){return MA(this)[it]}})},EA=function(TA){var it;return D(dA,TA)||"ArrayBuffer"==(it=S(TA))||"SharedArrayBuffer"==it},GA=function(TA,it){return $(TA)&&!d(it)&&it in TA&&e(+it)&&it>=0},et=function(it,mt){return mt=Q(mt),GA(it,mt)?u(2,it[mt]):BA(it,mt)},ot=function(it,mt,It){return mt=Q(mt),!(GA(it,mt)&&m(It)&&p(It,"value"))||p(It,"get")||p(It,"set")||It.configurable||p(It,"writable")&&!It.writable||p(It,"enumerable")&&!It.enumerable?gA(it,mt,It):(it[mt]=It.value,it)};l?(CA||(aA.f=et,Z.f=ot,nA(q,"buffer"),nA(q,"byteOffset"),nA(q,"byteLength"),nA(q,"length")),c({target:"Object",stat:!0,forced:!CA},{getOwnPropertyDescriptor:et,defineProperty:ot}),Y.exports=function(TA,it,mt){var It=TA.match(/\d+$/)[0]/8,ft=TA+(mt?"Clamped":"")+"Array",JA="get"+TA,WA="set"+TA,rt=i[ft],yA=rt,Mt=yA&&yA.prototype,ht={},H=function(k,R){gA(k,R,{get:function(){return function(k,R){var QA=MA(k);return QA.view[JA](R*It+QA.byteOffset,!0)}(this,R)},set:function(QA){return function(k,R,QA){var wA=MA(k);mt&&(QA=(QA=DA(QA))<0?0:QA>255?255:255&QA),wA.view[WA](R*It+wA.byteOffset,QA,!0)}(this,R,QA)},enumerable:!0})};CA?h&&(yA=it(function(k,R,QA,wA){return E(k,Mt),lA(m(R)?EA(R)?void 0!==wA?new rt(R,w(QA,It),wA):void 0!==QA?new rt(R,w(QA,It)):new rt(R):$(R)?mA(yA,R):o(F,yA,R):new rt(B(R)),k,yA)}),U&&U(yA,XA),z(T(rt),function(k){k in yA||C(yA,k,rt[k])}),yA.prototype=Mt):(yA=it(function(k,R,QA,wA){E(k,Mt);var ct,Ft,j,RA=0,rA=0;if(m(R)){if(!EA(R))return $(R)?mA(yA,R):o(F,yA,R);ct=R,rA=w(QA,It);var kA=R.byteLength;if(void 0===wA){if(kA%It||(Ft=kA-rA)<0)throw FA(hA)}else if((Ft=f(wA)*It)+rA>kA)throw FA(hA);j=Ft/It}else j=B(R),ct=new _(Ft=j*It);for(cA(k,{buffer:ct,byteOffset:rA,byteLength:Ft,length:j,view:new uA(ct)});RA1?arguments[1]:void 0,p=void 0!==Q,S=g(B);if(S&&!E(S))for(T=(U=a(B,S)).next,B=[];!(D=i(T,U)).done;)B.push(D.value);for(p&&w>2&&(Q=c(Q,arguments[2])),d=h(B),v=new(u(f))(d),m=0;d>m;m++)v[m]=p?Q(B[m],m):B[m];return v}},6304:function(Y,I,n){var c=n(2094),i=n(6707),o=c.TYPED_ARRAY_CONSTRUCTOR,l=c.aTypedArrayConstructor;Y.exports=function(h){return l(i(h,h[o]))}},9711:function(Y,I,n){var c=n(1702),i=0,o=Math.random(),l=c(1..toString);Y.exports=function(h){return"Symbol("+(void 0===h?"":h)+")_"+l(++i+o,36)}},3307:function(Y,I,n){var c=n(133);Y.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(Y,I,n){var c=n(5112);I.f=c},5112:function(Y,I,n){var c=n(7854),i=n(2309),o=n(2597),l=n(9711),h=n(133),a=n(3307),g=i("wks"),E=c.Symbol,u=E&&E.for,C=a?E:E&&E.withoutSetter||l;Y.exports=function(e){if(!o(g,e)||!h&&"string"!=typeof g[e]){var f="Symbol."+e;g[e]=h&&o(E,e)?E[e]:a&&u?u(f):C(f)}return g[e]}},1361:function(Y){Y.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(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(7976),l=n(9518),h=n(7674),a=n(9920),g=n(30),E=n(8880),u=n(9114),C=n(7741),e=n(8340),f=n(408),B=n(6277),w=n(2914),Q=i.Error,p=[].push,S=function(v,D){var U=o(m,this)?this:g(m),T=arguments.length>2?arguments[2]:void 0;h&&(U=h(new Q(void 0),l(U))),E(U,"message",B(D,"")),w&&E(U,"stack",C(U.stack,1)),e(U,T);var F=[];return f(v,p,{that:F}),E(U,"errors",F),U};h?h(S,Q):a(S,Q);var m=S.prototype=g(Q.prototype,{constructor:u(1,S),message:u(1,""),name:u(1,"AggregateError")});c({global:!0},{AggregateError:S})},2222:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(7293),l=n(3157),h=n(111),a=n(7908),g=n(6244),E=n(6135),u=n(5417),C=n(1194),e=n(5112),f=n(7392),B=e("isConcatSpreadable"),w=9007199254740991,Q="Maximum allowed index exceeded",p=i.TypeError,S=f>=51||!o(function(){var D=[];return D[B]=!1,D.concat()[0]!==D}),m=C("concat"),d=function(D){if(!h(D))return!1;var U=D[B];return void 0!==U?!!U:l(D)};c({target:"Array",proto:!0,forced:!S||!m},{concat:function(U){var b,Z,aA,AA,lA,T=a(this),F=u(T,0),z=0;for(b=-1,aA=arguments.length;bw)throw p(Q);for(Z=0;Z=w)throw p(Q);E(F,z++,lA)}return F.length=z,F}})},545:function(Y,I,n){var c=n(2109),i=n(1048),o=n(1223);c({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},3290:function(Y,I,n){var c=n(2109),i=n(1285),o=n(1223);c({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(Y,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(Y,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(Y,I,n){"use strict";var c=n(2109),i=n(1318).includes,o=n(1223);c({target:"Array",proto:!0},{includes:function(h){return i(this,h,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(Y,I,n){"use strict";var c=n(5656),i=n(1223),o=n(7497),l=n(9909),h=n(654),a="Array Iterator",g=l.set,E=l.getterFor(a);Y.exports=h(Array,"Array",function(u,C){g(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"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9600:function(Y,I,n){"use strict";var c=n(2109),i=n(1702),o=n(8361),l=n(5656),h=n(9341),a=i([].join),g=o!=Object,E=h("join",",");c({target:"Array",proto:!0,forced:g||!E},{join:function(C){return a(l(this),void 0===C?",":C)}})},1249:function(Y,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(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(3157),l=n(4411),h=n(111),a=n(1400),g=n(6244),E=n(5656),u=n(6135),C=n(5112),e=n(1194),f=n(206),B=e("slice"),w=C("species"),Q=i.Array,p=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(m,d){var F,z,b,v=E(this),D=g(v),U=a(m,D),T=a(void 0===d?D:d,D);if(o(v)&&((l(F=v.constructor)&&(F===Q||o(F.prototype))||h(F)&&null===(F=F[w]))&&(F=void 0),F===Q||void 0===F))return f(v,U,T);for(z=new(void 0===F?Q:F)(p(T-U,0)),b=0;U3)){if(e)return!0;if(B)return B<603;var F,z,b,Z,T="";for(F=65;F<76;F++){switch(z=String.fromCharCode(F),F){case 66:case 69:case 70:case 72:b=3;break;case 68:case 71:b=4;break;default:b=2}for(Z=0;Z<47;Z++)w.push({k:z+Z,v:b})}for(w.sort(function(aA,AA){return AA.v-aA.v}),Z=0;Za(z)?1:-1}}(F)),aA=b.length,AA=0;AAw)throw e(Q);for(z=g(d,F),b=0;bv-F+T;b--)delete d[b-1]}else if(T>F)for(b=v-F;b>D;b--)aA=b+T-1,(Z=b+F-1)in d?d[aA]=d[Z]:delete d[aA];for(b=0;b2)if(lA=p(lA),43===(MA=U(lA,0))||45===MA){if(88===(cA=U(lA,2))||120===cA)return NaN}else if(48===MA){switch(U(lA,1)){case 66:case 98:gA=2,BA=49;break;case 79:case 111:gA=8,BA=55;break;default:return+lA}for(FA=(DA=D(lA,2)).length,_=0;_BA)return NaN;return parseInt(DA,gA)}return+lA};if(l(S,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var aA,z=function(lA){var MA=arguments.length<1?0:m(T(lA)),cA=this;return E(d,cA)&&e(function(){Q(cA)})?g(Object(MA),cA,z):MA},b=c?f(m):"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(","),Z=0;b.length>Z;Z++)a(m,aA=b[Z])&&!a(z,aA)&&w(z,aA,B(m,aA));z.prototype=d,d.constructor=z,h(i,S,z)}},3299:function(Y,I,n){n(2109)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},5192:function(Y,I,n){n(2109)({target:"Number",stat:!0},{isFinite:n(7023)})},3161:function(Y,I,n){n(2109)({target:"Number",stat:!0},{isInteger:n(5988)})},6977:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(1702),l=n(9303),h=n(863),a=n(8415),g=n(7293),E=i.RangeError,u=i.String,C=Math.floor,e=o(a),f=o("".slice),B=o(1..toFixed),w=function(v,D,U){return 0===D?U:D%2==1?w(v,D-1,U*v):w(v*v,D/2,U)},p=function(v,D,U){for(var T=-1,F=U;++T<6;)v[T]=(F+=D*v[T])%1e7,F=C(F/1e7)},S=function(v,D){for(var U=6,T=0;--U>=0;)v[U]=C((T+=v[U])/D),T=T%D*1e7},m=function(v){for(var D=6,U="";--D>=0;)if(""!==U||0===D||0!==v[D]){var T=u(v[D]);U=""===U?T:U+e("0",7-T.length)+T}return U};c({target:"Number",proto:!0,forced:g(function(){return"0.000"!==B(8e-5,3)||"1"!==B(.9,0)||"1.25"!==B(1.255,2)||"1000000000000000128"!==B(0xde0b6b3a7640080,0)})||!g(function(){B({})})},{toFixed:function(D){var Z,aA,AA,lA,U=h(this),T=l(D),F=[0,0,0,0,0,0],z="",b="0";if(T<0||T>20)throw E("Incorrect fraction digits");if(U!=U)return"NaN";if(U<=-1e21||U>=1e21)return u(U);if(U<0&&(z="-",U=-U),U>1e-21)if(aA=(Z=function(v){for(var D=0,U=v;U>=4096;)D+=12,U/=4096;for(;U>=2;)D+=1,U/=2;return D}(U*w(2,69,1))-69)<0?U*w(2,-Z,1):U/w(2,Z,1),aA*=4503599627370496,(Z=52-Z)>0){for(p(F,0,aA),AA=T;AA>=7;)p(F,1e7,0),AA-=7;for(p(F,w(10,AA,1),0),AA=Z-1;AA>=23;)S(F,8388608),AA-=23;S(F,1<0?z+((lA=b.length)<=T?"0."+e("0",T-lA)+b:f(b,0,lA-T)+"."+f(b,lA-T)):z+b}})},9601:function(Y,I,n){var c=n(2109),i=n(1574);c({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(Y,I,n){var c=n(2109),i=n(6677),o=n(7293),l=n(111),h=n(2423).onFreeze,a=Object.freeze;c({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!i},{freeze:function(u){return a&&l(u)?a(h(u)):u}})},5003:function(Y,I,n){var c=n(2109),i=n(7293),o=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(o(u),C)}})},9337:function(Y,I,n){var c=n(2109),i=n(9781),o=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=o(u),f={},B=0;e.length>B;)void 0!==(Q=C(u,w=e[B++]))&&a(f,w,Q);return f}})},489:function(Y,I,n){var c=n(2109),i=n(7293),o=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(o(E))}})},7941:function(Y,I,n){var c=n(2109),i=n(7908),o=n(1956);c({target:"Object",stat:!0,forced:n(7293)(function(){o(1)})},{keys:function(g){return o(i(g))}})},1539:function(Y,I,n){var c=n(1694),i=n(1320),o=n(288);c||i(Object.prototype,"toString",o,{unsafe:!0})},2479:function(Y,I,n){var c=n(2109),i=n(4699).values;c({target:"Object",stat:!0},{values:function(l){return i(l)}})},7922:function(Y,I,n){"use strict";var c=n(2109),i=n(6916),o=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,B=h(function(){var w=o(u.resolve),Q=[],p=0,S=1;a(E,function(m){var d=p++,v=!1;S++,i(w,u,m).then(function(D){v||(v=!0,Q[d]={status:"fulfilled",value:D},--S||e(Q))},function(D){v||(v=!0,Q[d]={status:"rejected",reason:D},--S||e(Q))})}),--S||e(Q)});return B.error&&f(B.value),C.promise}})},4668:function(Y,I,n){"use strict";var c=n(2109),i=n(9662),o=n(5005),l=n(6916),h=n(8523),a=n(2534),g=n(408),E="No one promise resolved";c({target:"Promise",stat:!0},{any:function(C){var e=this,f=o("AggregateError"),B=h.f(e),w=B.resolve,Q=B.reject,p=a(function(){var S=i(e.resolve),m=[],d=0,v=1,D=!1;g(C,function(U){var T=d++,F=!1;v++,l(S,e,U).then(function(z){F||D||(D=!0,w(z))},function(z){F||D||(F=!0,m[T]=z,--v||Q(new f(m,E)))})}),--v||Q(new f(m,E))});return p.error&&Q(p.value),B.promise}})},7727:function(Y,I,n){"use strict";var c=n(2109),i=n(1913),o=n(3366),l=n(7293),h=n(5005),a=n(614),g=n(6707),E=n(9478),u=n(1320);if(c({target:"Promise",proto:!0,real:!0,forced:!!o&&l(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(f){var B=g(this,h("Promise")),w=a(f);return this.then(w?function(Q){return E(B,f()).then(function(){return Q})}:f,w?function(Q){return E(B,f()).then(function(){throw Q})}:f)}}),!i&&a(o)){var e=h("Promise").prototype.finally;o.prototype.finally!==e&&u(o.prototype,"finally",e,{unsafe:!0})}},8674:function(Y,I,n){"use strict";var TA,it,mt,It,c=n(2109),i=n(1913),o=n(7854),l=n(5005),h=n(6916),a=n(3366),g=n(1320),E=n(2248),u=n(7674),C=n(8003),e=n(6340),f=n(9662),B=n(614),w=n(111),Q=n(5787),p=n(2788),S=n(408),m=n(7072),d=n(6707),v=n(261).set,D=n(5948),U=n(9478),T=n(842),F=n(8523),z=n(2534),b=n(9909),Z=n(4705),aA=n(5112),AA=n(7871),lA=n(5268),MA=n(7392),cA=aA("species"),gA="Promise",BA=b.get,DA=b.set,FA=b.getterFor(gA),_=a&&a.prototype,dA=a,uA=_,CA=o.TypeError,SA=o.document,bA=o.process,XA=F.f,q=XA,O=!!(SA&&SA.createEvent&&o.dispatchEvent),$=B(o.PromiseRejectionEvent),W="unhandledrejection",ot=!1,ft=Z(gA,function(){var R=p(dA),QA=R!==String(dA);if(!QA&&66===MA||i&&!uA.finally)return!0;if(MA>=51&&/native code/.test(R))return!1;var wA=new dA(function(ct){ct(1)}),RA=function(ct){ct(function(){},function(){})};return(wA.constructor={})[cA]=RA,!(ot=wA.then(function(){})instanceof RA)||!QA&&AA&&!$}),JA=ft||!m(function(R){dA.all(R).catch(function(){})}),WA=function(R){var QA;return!(!w(R)||!B(QA=R.then))&&QA},rt=function(R,QA){if(!R.notified){R.notified=!0;var wA=R.reactions;D(function(){for(var RA=R.value,rA=1==R.state,ct=0;wA.length>ct;){var KA,st,Lt,Ft=wA[ct++],j=rA?Ft.ok:Ft.fail,kA=Ft.resolve,At=Ft.reject,xA=Ft.domain;try{j?(rA||(2===R.rejection&&OA(R),R.rejection=1),!0===j?KA=RA:(xA&&xA.enter(),KA=j(RA),xA&&(xA.exit(),Lt=!0)),KA===Ft.promise?At(CA("Promise-chain cycle")):(st=WA(KA))?h(st,KA,kA,At):kA(KA)):At(RA)}catch(Dt){xA&&!Lt&&xA.exit(),At(Dt)}}R.reactions=[],R.notified=!1,QA&&!R.rejection&&Mt(R)})}},yA=function(R,QA,wA){var RA,rA;O?((RA=SA.createEvent("Event")).promise=QA,RA.reason=wA,RA.initEvent(R,!1,!0),o.dispatchEvent(RA)):RA={promise:QA,reason:wA},!$&&(rA=o["on"+R])?rA(RA):R===W&&T("Unhandled promise rejection",wA)},Mt=function(R){h(v,o,function(){var rA,QA=R.facade,wA=R.value;if(ht(R)&&(rA=z(function(){lA?bA.emit("unhandledRejection",wA,QA):yA(W,QA,wA)}),R.rejection=lA||ht(R)?2:1,rA.error))throw rA.value})},ht=function(R){return 1!==R.rejection&&!R.parent},OA=function(R){h(v,o,function(){var QA=R.facade;lA?bA.emit("rejectionHandled",QA):yA("rejectionhandled",QA,R.value)})},Yt=function(R,QA,wA){return function(RA){R(QA,RA,wA)}},H=function(R,QA,wA){R.done||(R.done=!0,wA&&(R=wA),R.value=QA,R.state=2,rt(R,!0))},k=function(R,QA,wA){if(!R.done){R.done=!0,wA&&(R=wA);try{if(R.facade===QA)throw CA("Promise can't be resolved itself");var RA=WA(QA);RA?D(function(){var rA={done:!1};try{h(RA,QA,Yt(k,rA,R),Yt(H,rA,R))}catch(ct){H(rA,ct,R)}}):(R.value=QA,R.state=1,rt(R,!1))}catch(rA){H({done:!1},rA,R)}}};if(ft&&(dA=function(QA){Q(this,uA),f(QA),h(TA,this);var wA=BA(this);try{QA(Yt(k,wA),Yt(H,wA))}catch(RA){H(wA,RA)}},(TA=function(QA){DA(this,{type:gA,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=E(uA=dA.prototype,{then:function(QA,wA){var RA=FA(this),rA=RA.reactions,ct=XA(d(this,dA));return ct.ok=!B(QA)||QA,ct.fail=B(wA)&&wA,ct.domain=lA?bA.domain:void 0,RA.parent=!0,rA[rA.length]=ct,0!=RA.state&&rt(RA,!1),ct.promise},catch:function(R){return this.then(void 0,R)}}),it=function(){var R=new TA,QA=BA(R);this.promise=R,this.resolve=Yt(k,QA),this.reject=Yt(H,QA)},F.f=XA=function(R){return R===dA||R===mt?new it(R):q(R)},!i&&B(a)&&_!==Object.prototype)){It=_.then,ot||(g(_,"then",function(QA,wA){var RA=this;return new dA(function(rA,ct){h(It,RA,rA,ct)}).then(QA,wA)},{unsafe:!0}),g(_,"catch",uA.catch,{unsafe:!0}));try{delete _.constructor}catch(R){}u&&u(_,uA)}c({global:!0,wrap:!0,forced:ft},{Promise:dA}),C(dA,gA,!1,!0),e(gA),mt=l(gA),c({target:gA,stat:!0,forced:ft},{reject:function(QA){var wA=XA(this);return h(wA.reject,void 0,QA),wA.promise}}),c({target:gA,stat:!0,forced:i||ft},{resolve:function(QA){return U(i&&this===mt?dA:this,QA)}}),c({target:gA,stat:!0,forced:JA},{all:function(QA){var wA=this,RA=XA(wA),rA=RA.resolve,ct=RA.reject,Ft=z(function(){var j=f(wA.resolve),kA=[],At=0,xA=1;S(QA,function(KA){var st=At++,Lt=!1;xA++,h(j,wA,KA).then(function(Dt){Lt||(Lt=!0,kA[st]=Dt,--xA||rA(kA))},ct)}),--xA||rA(kA)});return Ft.error&&ct(Ft.value),RA.promise},race:function(QA){var wA=this,RA=XA(wA),rA=RA.reject,ct=z(function(){var Ft=f(wA.resolve);S(QA,function(j){h(Ft,wA,j).then(RA.resolve,rA)})});return ct.error&&rA(ct.value),RA.promise}})},2419:function(Y,I,n){var c=n(2109),i=n(5005),o=n(2104),l=n(7065),h=n(9483),a=n(9670),g=n(111),E=n(30),u=n(7293),C=i("Reflect","construct"),e=Object.prototype,f=[].push,B=u(function(){function p(){}return!(C(function(){},[],p)instanceof p)}),w=!u(function(){C(function(){})}),Q=B||w;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(S,m){h(S),a(m);var d=arguments.length<3?S:h(arguments[2]);if(w&&!B)return C(S,m,d);if(S==d){switch(m.length){case 0:return new S;case 1:return new S(m[0]);case 2:return new S(m[0],m[1]);case 3:return new S(m[0],m[1],m[2]);case 4:return new S(m[0],m[1],m[2],m[3])}var v=[null];return o(f,v,m),new(o(l,S,v))}var D=d.prototype,U=E(g(D)?D:e),T=o(S,U,m);return g(T)?T:U}})},4916:function(Y,I,n){"use strict";var c=n(2109),i=n(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2087:function(Y,I,n){var c=n(9781),i=n(3070),o=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:o})},9714:function(Y,I,n){"use strict";var c=n(1702),i=n(6530).PROPER,o=n(1320),l=n(9670),h=n(7976),a=n(1340),g=n(7293),E=n(7066),u="toString",C=RegExp.prototype,e=C[u],f=c(E);(g(function(){return"/a/b"!=e.call({source:"a",flags:"b"})})||i&&e.name!=u)&&o(RegExp.prototype,u,function(){var p=l(this),S=a(p.source),m=p.flags;return"/"+S+"/"+a(void 0===m&&h(C,p)&&!("flags"in C)?f(p):m)},{unsafe:!0})},189:function(Y,I,n){"use strict";n(7710)("Set",function(o){return function(){return o(this,arguments.length?arguments[0]:void 0)}},n(5631))},9841:function(Y,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(Y,I,n){var c=n(2109),i=n(7854),o=n(1702),l=n(1400),h=i.RangeError,a=String.fromCharCode,g=String.fromCodePoint,E=o([].join);c({target:"String",stat:!0,forced:!!g&&1!=g.length},{fromCodePoint:function(e){for(var Q,f=[],B=arguments.length,w=0;B>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(Y,I,n){"use strict";var c=n(2109),i=n(1702),o=n(3929),l=n(4488),h=n(1340),a=n(4964),g=i("".indexOf);c({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~g(h(l(this)),h(o(u)),arguments.length>1?arguments[1]:void 0)}})},8734:function(Y,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(Y,I,n){"use strict";var c=n(8710).charAt,i=n(1340),o=n(9909),l=n(654),h="String Iterator",a=o.set,g=o.getterFor(h);l(String,"String",function(E){a(this,{type:h,string:i(E),index:0})},function(){var f,u=g(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(Y,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(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(6916),l=n(1702),h=n(4994),a=n(4488),g=n(7466),E=n(1340),u=n(9670),C=n(4326),e=n(7976),f=n(7850),B=n(7066),w=n(8173),Q=n(1320),p=n(7293),S=n(5112),m=n(6707),d=n(1530),v=n(7651),D=n(9909),U=n(1913),T=S("matchAll"),F="RegExp String",z=F+" Iterator",b=D.set,Z=D.getterFor(z),aA=RegExp.prototype,AA=i.TypeError,lA=l(B),MA=l("".indexOf),cA=l("".matchAll),gA=!!cA&&!p(function(){cA("a",/./)}),BA=h(function(_,dA,uA,CA){b(this,{type:z,regexp:_,string:dA,global:uA,unicode:CA,done:!1})},F,function(){var _=Z(this);if(_.done)return{value:void 0,done:!0};var dA=_.regexp,uA=_.string,CA=v(dA,uA);return null===CA?{value:void 0,done:_.done=!0}:_.global?(""===E(CA[0])&&(dA.lastIndex=d(uA,g(dA.lastIndex),_.unicode)),{value:CA,done:!1}):(_.done=!0,{value:CA,done:!1})}),DA=function(FA){var uA,CA,SA,bA,XA,q,_=u(this),dA=E(FA);return uA=m(_,RegExp),void 0===(CA=_.flags)&&e(aA,_)&&!("flags"in aA)&&(CA=lA(_)),SA=void 0===CA?"":E(CA),bA=new uA(uA===RegExp?_.source:_,SA),XA=!!~MA(SA,"g"),q=!!~MA(SA,"u"),bA.lastIndex=g(_.lastIndex),new BA(bA,dA,XA,q)};c({target:"String",proto:!0,forced:gA},{matchAll:function(_){var uA,CA,SA,bA,dA=a(this);if(null!=_){if(f(_)&&(uA=E(a("flags"in aA?_.flags:lA(_))),!~MA(uA,"g")))throw AA("`.matchAll` does not allow non-global regexes");if(gA)return cA(dA,_);if(void 0===(SA=w(_,T))&&U&&"RegExp"==C(_)&&(SA=DA),SA)return o(SA,_,dA)}else if(gA)return cA(dA,_);return CA=E(dA),bA=new RegExp(_,"g"),U?o(DA,bA,CA):bA[T](CA)}}),U||T in aA||Q(aA,T,DA)},4723:function(Y,I,n){"use strict";var c=n(6916),i=n(7007),o=n(9670),l=n(7466),h=n(1340),a=n(4488),g=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:g(w,C);return p?c(p,w,Q):new RegExp(w)[C](h(Q))},function(B){var w=o(this),Q=h(B),p=f(e,w,Q);if(p.done)return p.value;if(!w.global)return u(w,Q);var S=w.unicode;w.lastIndex=0;for(var v,m=[],d=0;null!==(v=u(w,Q));){var D=h(v[0]);m[d]=D,""===D&&(w.lastIndex=E(Q,l(w.lastIndex),S)),d++}return 0===d?null:m}]})},2481:function(Y,I,n){n(2109)({target:"String",proto:!0},{repeat:n(8415)})},5306:function(Y,I,n){"use strict";var c=n(2104),i=n(6916),o=n(1702),l=n(7007),h=n(7293),a=n(9670),g=n(614),E=n(9303),u=n(7466),C=n(1340),e=n(4488),f=n(1530),B=n(8173),w=n(647),Q=n(7651),S=n(5112)("replace"),m=Math.max,d=Math.min,v=o([].concat),D=o([].push),U=o("".indexOf),T=o("".slice),F=function(aA){return void 0===aA?aA:String(aA)},z="$0"==="a".replace(/./,"$0"),b=!!/./[S]&&""===/./[S]("a","$0");l("replace",function(aA,AA,lA){var MA=b?"$":"$0";return[function(gA,BA){var DA=e(this),FA=null==gA?void 0:B(gA,S);return FA?i(FA,gA,DA,BA):i(AA,C(DA),gA,BA)},function(cA,gA){var BA=a(this),DA=C(cA);if("string"==typeof gA&&-1===U(gA,MA)&&-1===U(gA,"$<")){var FA=lA(AA,BA,DA,gA);if(FA.done)return FA.value}var _=g(gA);_||(gA=C(gA));var dA=BA.global;if(dA){var uA=BA.unicode;BA.lastIndex=0}for(var CA=[];;){var SA=Q(BA,DA);if(null===SA||(D(CA,SA),!dA))break;""===C(SA[0])&&(BA.lastIndex=f(DA,u(BA.lastIndex),uA))}for(var XA="",q=0,O=0;O=q&&(XA+=T(DA,q,W)+GA,q=W+$.length)}return XA+T(DA,q)}]},!!h(function(){var aA=/./;return aA.exec=function(){var AA=[];return AA.groups={a:"7"},AA},"7"!=="".replace(aA,"$")})||!z||b)},3123:function(Y,I,n){"use strict";var c=n(2104),i=n(6916),o=n(1702),l=n(7007),h=n(7850),a=n(9670),g=n(4488),E=n(6707),u=n(1530),C=n(7466),e=n(1340),f=n(8173),B=n(206),w=n(7651),Q=n(2261),p=n(2999),S=n(7293),m=p.UNSUPPORTED_Y,d=4294967295,v=Math.min,D=[].push,U=o(/./.exec),T=o(D),F=o("".slice),z=!S(function(){var b=/(?:)/,Z=b.exec;b.exec=function(){return Z.apply(this,arguments)};var aA="ab".split(b);return 2!==aA.length||"a"!==aA[0]||"b"!==aA[1]});l("split",function(b,Z,aA){var AA;return AA="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(lA,MA){var cA=e(g(this)),gA=void 0===MA?d:MA>>>0;if(0===gA)return[];if(void 0===lA)return[cA];if(!h(lA))return i(Z,cA,lA,gA);for(var dA,uA,CA,BA=[],FA=0,_=new RegExp(lA.source,(lA.ignoreCase?"i":"")+(lA.multiline?"m":"")+(lA.unicode?"u":"")+(lA.sticky?"y":"")+"g");(dA=i(Q,_,cA))&&!((uA=_.lastIndex)>FA&&(T(BA,F(cA,FA,dA.index)),dA.length>1&&dA.index=gA));)_.lastIndex===dA.index&&_.lastIndex++;return FA===cA.length?(CA||!U(_,""))&&T(BA,""):T(BA,F(cA,FA)),BA.length>gA?B(BA,0,gA):BA}:"0".split(void 0,0).length?function(lA,MA){return void 0===lA&&0===MA?[]:i(Z,this,lA,MA)}:Z,[function(MA,cA){var gA=g(this),BA=null==MA?void 0:f(MA,b);return BA?i(BA,MA,gA,cA):i(AA,e(gA),MA,cA)},function(lA,MA){var cA=a(this),gA=e(lA),BA=aA(AA,cA,gA,MA,AA!==Z);if(BA.done)return BA.value;var DA=E(cA,RegExp),FA=cA.unicode,dA=new DA(m?"^(?:"+cA.source+")":cA,(cA.ignoreCase?"i":"")+(cA.multiline?"m":"")+(cA.unicode?"u":"")+(m?"g":"y")),uA=void 0===MA?d:MA>>>0;if(0===uA)return[];if(0===gA.length)return null===w(dA,gA)?[gA]:[];for(var CA=0,SA=0,bA=[];SA2?arguments[2]:void 0)})},8927:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).every,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("every",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3105:function(Y,I,n){"use strict";var c=n(2094),i=n(6916),o=n(1285),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("fill",function(g){var E=arguments.length;return i(o,l(this),g,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)})},5035:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).filter,o=n(3074),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("filter",function(g){var E=i(l(this),g,arguments.length>1?arguments[1]:void 0);return o(this,E)})},7174:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).findIndex,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("findIndex",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4345:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).find,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("find",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4197:function(Y,I,n){n(9843)("Float32",function(i){return function(l,h,a){return i(this,l,h,a)}})},6495:function(Y,I,n){n(9843)("Float64",function(i){return function(l,h,a){return i(this,l,h,a)}})},2846:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).forEach,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("forEach",function(a){i(o(this),a,arguments.length>1?arguments[1]:void 0)})},8145:function(Y,I,n){"use strict";var c=n(3832);(0,n(2094).exportTypedArrayStaticMethod)("from",n(7321),c)},4731:function(Y,I,n){"use strict";var c=n(2094),i=n(1318).includes,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("includes",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},7209:function(Y,I,n){"use strict";var c=n(2094),i=n(1318).indexOf,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("indexOf",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},5109:function(Y,I,n){n(9843)("Int16",function(i){return function(l,h,a){return i(this,l,h,a)}})},5125:function(Y,I,n){n(9843)("Int32",function(i){return function(l,h,a){return i(this,l,h,a)}})},7145:function(Y,I,n){n(9843)("Int8",function(i){return function(l,h,a){return i(this,l,h,a)}})},6319:function(Y,I,n){"use strict";var c=n(7854),i=n(1702),o=n(6530).PROPER,l=n(2094),h=n(6992),g=n(5112)("iterator"),E=c.Uint8Array,u=i(h.values),C=i(h.keys),e=i(h.entries),f=l.aTypedArray,B=l.exportTypedArrayMethod,w=E&&E.prototype[g],Q=!!w&&"values"===w.name,p=function(){return u(f(this))};B("entries",function(){return e(f(this))}),B("keys",function(){return C(f(this))}),B("values",p,o&&!Q),B(g,p,o&&!Q)},8867:function(Y,I,n){"use strict";var c=n(2094),i=n(1702),o=c.aTypedArray,l=c.exportTypedArrayMethod,h=i([].join);l("join",function(g){return h(o(this),g)})},7789:function(Y,I,n){"use strict";var c=n(2094),i=n(2104),o=n(6583),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("lastIndexOf",function(g){var E=arguments.length;return i(o,l(this),E>1?[g,arguments[1]]:[g])})},3739:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).map,o=n(6304),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("map",function(g){return i(l(this),g,arguments.length>1?arguments[1]:void 0,function(E,u){return new(o(E))(u)})})},4483:function(Y,I,n){"use strict";var c=n(2094),i=n(3671).right,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduceRight",function(a){var g=arguments.length;return i(o(this),a,g,g>1?arguments[1]:void 0)})},9368:function(Y,I,n){"use strict";var c=n(2094),i=n(3671).left,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduce",function(a){var g=arguments.length;return i(o(this),a,g,g>1?arguments[1]:void 0)})},2056:function(Y,I,n){"use strict";var c=n(2094),i=c.aTypedArray,l=Math.floor;(0,c.exportTypedArrayMethod)("reverse",function(){for(var C,a=this,g=i(a).length,E=l(g/2),u=0;u1?arguments[1]:void 0,1),w=this.length,Q=h(f),p=o(Q),S=0;if(p+B>w)throw g("Wrong length");for(;SB;)Q[B]=e[B++];return Q},o(function(){new Int8Array(1).slice()}))},7462:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).some,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("some",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3824:function(Y,I,n){"use strict";var c=n(7854),i=n(1702),o=n(7293),l=n(9662),h=n(4362),a=n(2094),g=n(8886),E=n(256),u=n(7392),C=n(8008),e=c.Array,f=a.aTypedArray,B=a.exportTypedArrayMethod,w=c.Uint16Array,Q=w&&i(w.prototype.sort),p=!(!Q||o(function(){Q(new w(2),null)})&&o(function(){Q(new w(2),{})})),S=!!Q&&!o(function(){if(u)return u<74;if(g)return g<67;if(E)return!0;if(C)return C<602;var D,U,d=new w(516),v=e(516);for(D=0;D<516;D++)U=D%4,d[D]=515-D,v[D]=D-2*U+3;for(Q(d,function(T,F){return(T/4|0)-(F/4|0)}),D=0;D<516;D++)if(d[D]!==v[D])return!0});B("sort",function(v){return void 0!==v&&l(v),S?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},!S||p)},5021:function(Y,I,n){"use strict";var c=n(2094),i=n(7466),o=n(1400),l=n(6304),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("subarray",function(E,u){var C=h(this),e=C.length,f=o(E,e);return new(l(C))(C.buffer,C.byteOffset+f*C.BYTES_PER_ELEMENT,i((void 0===u?e:o(u,e))-f))})},2974:function(Y,I,n){"use strict";var c=n(7854),i=n(2104),o=n(2094),l=n(7293),h=n(206),a=c.Int8Array,g=o.aTypedArray,E=o.exportTypedArrayMethod,u=[].toLocaleString,C=!!a&&l(function(){u.call(new a(1))});E("toLocaleString",function(){return i(u,C?h(g(this)):g(this),h(arguments))},l(function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()})||!l(function(){a.prototype.toLocaleString.call([1,2])}))},5016:function(Y,I,n){"use strict";var c=n(2094).exportTypedArrayMethod,i=n(7293),o=n(7854),l=n(1702),h=o.Uint8Array,a=h&&h.prototype||{},g=[].toString,E=l([].join);i(function(){g.call({})})&&(g=function(){return E(this)}),c("toString",g,a.toString!=g)},8255:function(Y,I,n){n(9843)("Uint16",function(i){return function(l,h,a){return i(this,l,h,a)}})},9135:function(Y,I,n){n(9843)("Uint32",function(i){return function(l,h,a){return i(this,l,h,a)}})},2472:function(Y,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}})},9743:function(Y,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}},!0)},8628:function(Y,I,n){n(9170)},5743:function(Y,I,n){n(5837)},7314:function(Y,I,n){n(7922)},6290:function(Y,I,n){n(4668)},7479:function(Y,I,n){"use strict";var c=n(2109),i=n(8523),o=n(2534);c({target:"Promise",stat:!0},{try:function(l){var h=i.f(this),a=o(l);return(a.error?h.reject:h.resolve)(a.value),h.promise}})},3728:function(Y,I,n){n(6373)},4747:function(Y,I,n){var c=n(7854),i=n(8324),o=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 g in i)i[g]&&a(c[g]&&c[g].prototype);a(o)},3948:function(Y,I,n){var c=n(7854),i=n(8324),o=n(8509),l=n(6992),h=n(8880),a=n(5112),g=a("iterator"),E=a("toStringTag"),u=l.values,C=function(f,B){if(f){if(f[g]!==u)try{h(f,g,u)}catch(Q){f[g]=u}if(f[E]||h(f,E,B),i[B])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(o,"DOMTokenList")},3753:function(Y,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(Y,I,n){var c=n(7633);n(3948),Y.exports=c},251:function(Y,I,n){var c=n(2215),i=n(2584),o=n(609),l=n(8420),h=n(2847),a=n(8923),g=Date.prototype.getTime;function E(f,B,w){var Q=w||{};return!!(Q.strict?o(f,B):f===B)||(!f||!B||"object"!=typeof f&&"object"!=typeof B?Q.strict?o(f,B):f==B:function e(f,B,w){var Q,p;if(typeof f!=typeof B||u(f)||u(B)||f.prototype!==B.prototype||i(f)!==i(B))return!1;var S=l(f),m=l(B);if(S!==m)return!1;if(S||m)return f.source===B.source&&h(f)===h(B);if(a(f)&&a(B))return g.call(f)===g.call(B);var d=C(f),v=C(B);if(d!==v)return!1;if(d||v){if(f.length!==B.length)return!1;for(Q=0;Q=0;Q--)if(D[Q]!=U[Q])return!1;for(Q=D.length-1;Q>=0;Q--)if(!E(f[p=D[Q]],B[p],w))return!1;return!0}(f,B,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])}Y.exports=E},4289:function(Y,I,n){"use strict";var c=n(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=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(B){return!1}}(),u=function(e,f,B,w){f in e&&(!function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}(w)||!w())||(E?h(e,f,{configurable:!0,enumerable:!1,value:B,writable:!0}):e[f]=B)},C=function(e,f){var B=arguments.length>2?arguments[2]:{},w=c(f);i&&(w=l.call(w,Object.getOwnPropertySymbols(f)));for(var Q=0;Q0&&z.length>T&&!z.warned){z.warned=!0;var b=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");b.name="MaxListenersExceededWarning",b.emitter=d,b.type=v,b.count=z.length,function i(d){console&&console.warn&&console.warn(d)}(b)}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 U={fired:!1,wrapFn:void 0,target:d,type:v,listener:D},T=u.bind(U);return T.listener=D,U.wrapFn=T,T}function e(d,v,D){var U=d._events;if(void 0===U)return[];var T=U[v];return void 0===T?[]:"function"==typeof T?D?[T.listener||T]:[T]:D?function Q(d){for(var v=new Array(d.length),D=0;D0&&(z=D[0]),z instanceof Error)throw z;var b=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw b.context=z,b}var Z=F[v];if(void 0===Z)return!1;if("function"==typeof Z)n(Z,this,D);else{var aA=Z.length,AA=B(Z,aA);for(U=0;U=0;z--)if(U[z]===D||U[z].listener===D){b=U[z].listener,F=z;break}if(F<0)return this;0===F?U.shift():function w(d,v){for(;v+1=0;T--)this.removeListener(v,D[T]);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(Y,I,n){var c=n(4275),i=n(7672);void 0===i.pdfMake&&(i.pdfMake=c),Y.exports=c},7672:function(Y,I,n){"use strict";Y.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(Y){var I=Object.prototype.hasOwnProperty,n=Object.prototype.toString;Y.exports=function(i,o,l){if("[object Function]"!==n.call(o))throw new TypeError("iterator must be a function");var h=i.length;if(h===+h)for(var a=0;a1&&"boolean"!=typeof aA)throw new l('"allowMissing" argument must be a boolean');var AA=F(Z),lA=AA.length>0?AA[0]:"",MA=z("%"+lA+"%",aA),cA=MA.name,gA=MA.value,BA=!1,DA=MA.alias;DA&&(lA=DA[0],d(AA,m([0,1],DA)));for(var FA=1,_=!0;FA=AA.length){var SA=a(gA,dA);gA=(_=!!SA)&&"get"in SA&&!("originalValue"in SA.get)?SA.get:gA[dA]}else _=S(gA,dA),gA=gA[dA];_&&!BA&&(B[cA]=gA)}}return gA}},1405:function(Y,I,n){"use strict";var c="undefined"!=typeof Symbol&&Symbol,i=n(5419);Y.exports=function(){return"function"==typeof c&&"function"==typeof Symbol&&"symbol"==typeof c("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:function(Y){"use strict";Y.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(Y,I,n){"use strict";var c=n(5419);Y.exports=function(){return c()&&!!Symbol.toStringTag}},7642:function(Y,I,n){"use strict";var c=n(8612);Y.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},688:function(Y,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(B,w){if(this.encodingName=B.encodingName,!B)throw new Error("DBCS codec is called without the data.");if(!B.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var Q=B.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 U=this.decodeTables[h-v[D]],T=129;T<=254;T++){if(U[T]===i)U[T]=h-m;else{if(U[T]===h-m)continue;if(U[T]>h)throw new Error("gb18030 decode tables conflict at byte 3")}for(var F=this.decodeTables[h-U[T]],z=48;z<=57;z++)F[z]===i&&(F[z]=-2)}}}this.defaultCharUnicode=w.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var b={};if(B.encodeSkipVals)for(p=0;pw)return-1;for(var Q=0,p=B.length;Q>1);B[S]<=w?Q=S:p=S}return Q}u.prototype.encoder=C,u.prototype.decoder=e,u.prototype._getDecodeTrieNode=function(B){for(var w=[];B>0;B>>>=8)w.push(255&B);0==w.length&&w.push(0);for(var Q=this.decodeTables[0],p=w.length-1;p>0;p--){var S=Q[w[p]];if(S==i)Q[w[p]]=h-this.decodeTables.length,this.decodeTables.push(Q=a.slice(0));else{if(!(S<=h))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+B.toString(16));Q=this.decodeTables[h-S]}}return Q},u.prototype._addDecodeChunk=function(B){var w=parseInt(B[0],16),Q=this._getDecodeTrieNode(w);w&=255;for(var p=1;p255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+B[0]+": too long"+w)},u.prototype._getEncodeBucket=function(B){var w=B>>8;return void 0===this.encodeTable[w]&&(this.encodeTable[w]=a.slice(0)),this.encodeTable[w]},u.prototype._setEncodeChar=function(B,w){var Q=this._getEncodeBucket(B),p=255&B;Q[p]<=l?this.encodeTableSeq[l-Q[p]][-1]=w:Q[p]==i&&(Q[p]=w)},u.prototype._setEncodeSequence=function(B,w){var m,Q=B[0],p=this._getEncodeBucket(Q),S=255&Q;p[S]<=l?m=this.encodeTableSeq[l-p[S]]:(m={},p[S]!==i&&(m[-1]=p[S]),p[S]=l-this.encodeTableSeq.length,this.encodeTableSeq.push(m));for(var d=1;d=0)this._setEncodeChar(v,D),S=!0;else if(v<=h){var U=h-v;m[U]||(this._fillEncodeTable(U,D<<8>>>0,Q)?S=!0:m[U]=!0)}else v<=l&&(this._setEncodeSequence(this.decodeTableSeq[l-v],D),S=!0)}return S},C.prototype.write=function(B){for(var w=c.alloc(B.length*(this.gb18030?4:3)),Q=this.leadSurrogate,p=this.seqObj,S=-1,m=0,d=0;;){if(-1===S){if(m==B.length)break;var v=B.charCodeAt(m++)}else v=S,S=-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&&(S=v,v=i,Q=-1);var D=i;if(void 0!==p&&v!=i){var U=p[v];if("object"==typeof U){p=U;continue}"number"==typeof U?D=U:null==U&&void 0!==(U=p[-1])&&(D=U,S=v),p=void 0}else if(v>=0){var T=this.encodeTable[v>>8];if(void 0!==T&&(D=T[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 B=c.alloc(10),w=0;if(this.seqObj){var Q=this.seqObj[-1];void 0!==Q&&(Q<256?B[w++]=Q:(B[w++]=Q>>8,B[w++]=255&Q)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(B[w++]=this.defaultCharSingleByte,this.leadSurrogate=-1),B.slice(0,w)}},C.prototype.findIdx=f,e.prototype.write=function(B){for(var w=c.alloc(2*B.length),Q=this.nodeIdx,p=this.prevBytes,S=this.prevBytes.length,m=-this.prevBytes.length,v=0,D=0;v=0?B[v]:p[v+S];if(!((d=this.decodeTables[Q][U])>=0))if(d===i)d=this.defaultCharUnicode.charCodeAt(0),v=m;else if(-2===d){if(v>=3)var T=12600*(B[v-3]-129)+1260*(B[v-2]-48)+10*(B[v-1]-129)+(U-48);else T=12600*(p[v-3+S]-129)+1260*((v-2>=0?B[v-2]:p[v-2+S])-48)+10*((v-1>=0?B[v-1]:p[v-1+S])-129)+(U-48);var F=f(this.gb18030.gbChars,T);d=this.gb18030.uChars[F]+T-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+"/"+U);for(var z=this.decodeTableSeq[l-d],b=0;b>8;d=z[z.length-1]}if(d>=65536){var Z=55296|(d-=65536)>>10;w[D++]=255&Z,w[D++]=Z>>8,d=56320|1023&d}w[D++]=255&d,w[D++]=d>>8,Q=0,m=v+1}return this.nodeIdx=Q,this.prevBytes=m>=0?Array.prototype.slice.call(B,m):p.slice(m+S).concat(Array.prototype.slice.call(B)),w.slice(0,D).toString("ucs2")},e.prototype.end=function(){for(var B="";this.prevBytes.length>0;){B+=this.defaultCharUnicode;var w=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,w.length>0&&(B+=this.write(w))}return this.prevBytes=[],this.nodeIdx=0,B}},5990:function(Y,I,n){"use strict";Y.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(Y,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&B)):(C[e++]=224+(B>>>12),C[e++]=128+(B>>>6&63),C[e++]=128+(63&B))}return C.slice(0,e)},g.prototype.end=function(){},E.prototype.write=function(u){for(var C=this.acc,e=this.contBytes,f=this.accBytes,B="",w=0;w0&&(B+=this.defaultCharUnicode,e=0),Q<128?B+=String.fromCharCode(Q):Q<224?(C=31&Q,e=1,f=1):Q<240?(C=15&Q,e=2,f=1):B+=this.defaultCharUnicode):e>0?(C=C<<6|63&Q,f++,0==--e&&(B+=2===f&&C<128&&C>0||3===f&&C<2048?this.defaultCharUnicode:String.fromCharCode(C))):B+=this.defaultCharUnicode}return this.acc=C,this.contBytes=e,this.accBytes=f,B},E.prototype.end=function(){var u=0;return this.contBytes>0&&(u+=this.defaultCharUnicode),u}},9068:function(Y,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 g="",E=0;E<128;E++)g+=String.fromCharCode(E);h.chars=g+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(Y){"use strict";Y.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(Y,I,n){"use strict";var c=n(7103).Buffer;function i(){}function o(){}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 g(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,B=0,w=0;A:for(var Q=0;Q=100)break A}return w>B?"utf-16be":w1114111)&&(f=B),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 g(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=[],B=0,w=0,Q=0,p=0,S=0;A:for(var m=0;m16)&&Q++,(0!==f[3]||f[2]>16)&&w++,0===f[0]&&0===f[1]&&(0!==f[2]||0!==f[3])&&S++,(0!==f[0]||0!==f[1])&&0===f[2]&&0===f[3]&&p++,f.length=0,++B>=100)break A}return S-Q>p-w?"utf-32be":S-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=B,f.prototype.decoder=w,f.prototype.bomAware=!0,B.prototype.write=function(p){for(var S=this.inBase64,m=this.base64Accum,d=this.base64AccumIdx,v=c.alloc(5*p.length+10),D=0,U=0;U0&&(D+=v.write(m.slice(0,d).toString("base64").replace(/\//g,",").replace(/=+$/,""),D),d=0),v[D++]=C,S=!1),S||(v[D++]=T,T===e&&(v[D++]=C))):(S||(v[D++]=e,S=!0),S&&(m[d++]=T>>8,m[d++]=255&T,d==m.length&&(D+=v.write(m.toString("base64").replace(/\//g,","),D),d=0)))}return this.inBase64=S,this.base64AccumIdx=d,v.slice(0,D)},B.prototype.end=function(){var p=c.alloc(10),S=0;return this.inBase64&&(this.base64AccumIdx>0&&(S+=p.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),S),this.base64AccumIdx=0),p[S++]=C,this.inBase64=!1),p.slice(0,S)};var Q=g.slice();Q[",".charCodeAt(0)]=!0,w.prototype.write=function(p){for(var S="",m=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(Y,I){"use strict";function c(o,l){this.encoder=o,this.addBOM=!0}function i(o,l){this.decoder=o,this.pass=!1,this.options=l||{}}I.PrependBOM=c,c.prototype.write=function(o){return this.addBOM&&(o="\ufeff"+o,this.addBOM=!1),this.encoder.write(o)},c.prototype.end=function(){return this.encoder.end()},I.StripBOM=i,i.prototype.write=function(o){var l=this.decoder.write(o);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(Y,I,n){"use strict";var l,c=n(7103).Buffer,i=n(5395),o=Y.exports;o.encodings=null,o.defaultCharUnicode="\ufffd",o.defaultCharSingleByte="?",o.encode=function(a,g,E){a=""+(a||"");var u=o.getEncoder(g,E),C=u.write(a),e=u.end();return e&&e.length>0?c.concat([C,e]):C},o.decode=function(a,g,E){"string"==typeof a&&(o.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),o.skipDecodeWarning=!0),a=c.from(""+(a||""),"binary"));var u=o.getDecoder(g,E),C=u.write(a),e=u.end();return e?C+e:C},o.encodingExists=function(a){try{return o.getCodec(a),!0}catch(g){return!1}},o.toEncoding=o.encode,o.fromEncoding=o.decode,o._codecDataCache={},o.getCodec=function(a){o.encodings||(o.encodings=n(6934));for(var g=o._canonicalizeEncoding(a),E={};;){var u=o._codecDataCache[g];if(u)return u;var C=o.encodings[g];switch(typeof C){case"string":g=C;break;case"object":for(var e in C)E[e]=C[e];E.encodingName||(E.encodingName=g),g=C.type;break;case"function":return E.encodingName||(E.encodingName=g),u=new C(E,o),o._codecDataCache[E.encodingName]=u,u;default:throw new Error("Encoding not recognized: '"+a+"' (searched as: '"+g+"')")}}},o._canonicalizeEncoding=function(h){return(""+h).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},o.getEncoder=function(a,g){var E=o.getCodec(a),u=new E.encoder(g,E);return E.bomAware&&g&&g.addBOM&&(u=new i.PrependBOM(u,g)),u},o.getDecoder=function(a,g){var E=o.getCodec(a),u=new E.decoder(g,E);return E.bomAware&&!(g&&!1===g.stripBOM)&&(u=new i.StripBOM(u,g)),u},o.enableStreamingAPI=function(a){if(!o.supportsStreams){var g=n(8044)(a);o.IconvLiteEncoderStream=g.IconvLiteEncoderStream,o.IconvLiteDecoderStream=g.IconvLiteDecoderStream,o.encodeStream=function(u,C){return new o.IconvLiteEncoderStream(o.getEncoder(u,C),C)},o.decodeStream=function(u,C){return new o.IconvLiteDecoderStream(o.getDecoder(u,C),C)},o.supportsStreams=!0}};try{l=n(5832)}catch(h){}l&&l.Transform?o.enableStreamingAPI(l):o.encodeStream=o.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},8044:function(Y,I,n){"use strict";var c=n(7103).Buffer;Y.exports=function(i){var o=i.Transform;function l(a,g){this.conv=a,(g=g||{}).decodeStrings=!1,o.call(this,g)}function h(a,g){this.conv=a,(g=g||{}).encoding=this.encoding="utf8",o.call(this,g)}return(l.prototype=Object.create(o.prototype,{constructor:{value:l}}))._transform=function(a,g,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 g=this.conv.end();g&&g.length&&this.push(g),a()}catch(E){a(E)}},l.prototype.collect=function(a){var g=[];return this.on("error",a),this.on("data",function(E){g.push(E)}),this.on("end",function(){a(null,c.concat(g))}),this},(h.prototype=Object.create(o.prototype,{constructor:{value:h}}))._transform=function(a,g,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 g=this.conv.end();g&&g.length&&this.push(g,this.encoding),a()}catch(E){a(E)}},h.prototype.collect=function(a){var g="";return this.on("error",a),this.on("data",function(E){g+=E}),this.on("end",function(){a(null,g)}),this},{IconvLiteEncoderStream:l,IconvLiteDecoderStream:h}}},645:function(Y,I){I.read=function(n,c,i,o,l){var h,a,g=8*l-o-1,E=(1<>1,C=-7,e=i?l-1:0,f=i?-1:1,B=n[c+e];for(e+=f,h=B&(1<<-C)-1,B>>=-C,C+=g;C>0;h=256*h+n[c+e],e+=f,C-=8);for(a=h&(1<<-C)-1,h>>=-C,C+=o;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*(B?-1:1);a+=Math.pow(2,o),h-=u}return(B?-1:1)*a*Math.pow(2,h-o)},I.write=function(n,c,i,o,l,h){var a,g,E,u=8*h-l-1,C=(1<>1,f=23===l?Math.pow(2,-24)-Math.pow(2,-77):0,B=o?0:h-1,w=o?1:-1,Q=c<0||0===c&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=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?(g=0,a=C):a+e>=1?(g=(c*E-1)*Math.pow(2,l),a+=e):(g=c*Math.pow(2,e-1)*Math.pow(2,l),a=0));l>=8;n[i+B]=255&g,B+=w,g/=256,l-=8);for(a=a<0;n[i+B]=255&a,B+=w,a/=256,u-=8);n[i+B-w]|=128*Q}},5717:function(Y){Y.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(Y,I,n){"use strict";var c=n(6410)(),o=n(1924)("Object.prototype.toString"),l=function(E){return!(c&&E&&"object"==typeof E&&Symbol.toStringTag in E)&&"[object Arguments]"===o(E)},h=function(E){return!!l(E)||null!==E&&"object"==typeof E&&"number"==typeof E.length&&E.length>=0&&"[object Array]"!==o(E)&&"[object Function]"===o(E.callee)},a=function(){return l(arguments)}();l.isLegacyArguments=h,Y.exports=a?l:h},8923:function(Y,I,n){"use strict";var c=Date.prototype.getDay,o=Object.prototype.toString,h=n(6410)();Y.exports=function(g){return"object"==typeof g&&null!==g&&(h?function(g){try{return c.call(g),!0}catch(E){return!1}}(g):"[object Date]"===o.call(g))}},8662:function(Y,I,n){"use strict";var g,c=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,l=n(6410)(),h=Object.getPrototypeOf;Y.exports=function(u){if("function"!=typeof u)return!1;if(o.test(i.call(u)))return!0;if(!l)return"[object GeneratorFunction]"===c.call(u);if(!h)return!1;if(void 0===g){var e=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch(E){}}();g=!!e&&h(e)}return h(u)===g}},8611:function(Y){"use strict";Y.exports=function(n){return n!=n}},360:function(Y,I,n){"use strict";var c=n(5559),i=n(4289),o=n(8611),l=n(9415),h=n(6743),a=c(l(),Number);i(a,{getPolyfill:l,implementation:o,shim:h}),Y.exports=a},9415:function(Y,I,n){"use strict";var c=n(8611);Y.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:c}},6743:function(Y,I,n){"use strict";var c=n(4289),i=n(9415);Y.exports=function(){var l=i();return c(Number,{isNaN:l},{isNaN:function(){return Number.isNaN!==l}}),l}},8420:function(Y,I,n){"use strict";var o,l,h,a,c=n(1924),i=n(6410)();if(i){o=c("Object.prototype.hasOwnProperty"),l=c("RegExp.prototype.exec"),h={};var g=function(){throw h};a={toString:g,valueOf:g},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=g)}var E=c("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;Y.exports=i?function(f){if(!f||"object"!=typeof f)return!1;var B=u(f,"lastIndex");if(!B||!o(B,"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(Y,I,n){"use strict";var c=n(9804),i=n(3083),o=n(1924),l=o("Object.prototype.toString"),h=n(6410)(),a="undefined"==typeof globalThis?n.g:globalThis,g=i(),E=o("Array.prototype.indexOf",!0)||function(Q,p){for(var S=0;S-1}return!!e&&function(Q){var p=!1;return c(C,function(S,m){if(!p)try{p=S.call(Q)===m}catch(d){}}),p}(Q)}},4244:function(Y){"use strict";var I=function(n){return n!=n};Y.exports=function(c,i){return 0===c&&0===i?1/c==1/i:!!(c===i||I(c)&&I(i))}},609:function(Y,I,n){"use strict";var c=n(4289),i=n(5559),o=n(4244),l=n(5624),h=n(2281),a=i(l(),Object);c(a,{getPolyfill:l,implementation:o,shim:h}),Y.exports=a},5624:function(Y,I,n){"use strict";var c=n(4244);Y.exports=function(){return"function"==typeof Object.is?Object.is:c}},2281:function(Y,I,n){"use strict";var c=n(5624),i=n(4289);Y.exports=function(){var l=c();return i(Object,{is:l},{is:function(){return Object.is!==l}}),l}},8987:function(Y,I,n){"use strict";var c;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=n(1414),h=Object.prototype.propertyIsEnumerable,a=!h.call({toString:null},"toString"),g=h.call(function(){},"prototype"),E=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(B){var w=B.constructor;return w&&w.prototype===B},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 B in window)try{if(!C["$"+B]&&i.call(window,B)&&null!==window[B]&&"object"==typeof window[B])try{u(window[B])}catch(w){return!0}}catch(w){return!0}return!1}();c=function(w){var Q=null!==w&&"object"==typeof w,p="[object Function]"===o.call(w),S=l(w),m=Q&&"[object String]"===o.call(w),d=[];if(!Q&&!p&&!S)throw new TypeError("Object.keys called on a non-object");var v=g&&p;if(m&&w.length>0&&!i.call(w,0))for(var D=0;D0)for(var U=0;U=0&&"[object Function]"===I.call(c.callee)),o}},4236:function(Y,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 g in a)c(a,g)&&(l[g]=a[g])}}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,g,E){if(h.subarray&&l.subarray)l.set(h.subarray(a,a+g),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[o++]|0)|0}while(--a);l%=65521,h%=65521}return l|h<<16|0}},1619:function(Y){"use strict";Y.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(Y){"use strict";var n=function I(){for(var i,o=[],l=0;l<256;l++){i=l;for(var h=0;h<8;h++)i=1&i?3988292384^i>>>1:i>>>1;o[l]=i}return o}();Y.exports=function c(i,o,l,h){var a=n,g=h+l;i^=-1;for(var E=h;E>>8^a[255&(i^o[E])];return-1^i}},405:function(Y,I,n){"use strict";var OA,c=n(4236),i=n(342),o=n(6069),l=n(2869),h=n(8898),B=-2,DA=258,FA=262,q=666;function nA(j,kA){return j.msg=h[kA],kA}function EA(j){return(j<<1)-(j>4?9:0)}function GA(j){for(var kA=j.length;--kA>=0;)j[kA]=0}function et(j){var kA=j.state,At=kA.pending;At>j.avail_out&&(At=j.avail_out),0!==At&&(c.arraySet(j.output,kA.pending_buf,kA.pending_out,At,j.next_out),j.next_out+=At,kA.pending_out+=At,j.total_out+=At,j.avail_out-=At,kA.pending-=At,0===kA.pending&&(kA.pending_out=0))}function ot(j,kA){i._tr_flush_block(j,j.block_start>=0?j.block_start:-1,j.strstart-j.block_start,kA),j.block_start=j.strstart,et(j.strm)}function TA(j,kA){j.pending_buf[j.pending++]=kA}function it(j,kA){j.pending_buf[j.pending++]=kA>>>8&255,j.pending_buf[j.pending++]=255&kA}function mt(j,kA,At,xA){var KA=j.avail_in;return KA>xA&&(KA=xA),0===KA?0:(j.avail_in-=KA,c.arraySet(kA,j.input,j.next_in,KA,At),1===j.state.wrap?j.adler=o(j.adler,kA,KA,At):2===j.state.wrap&&(j.adler=l(j.adler,kA,KA,At)),j.next_in+=KA,j.total_in+=KA,KA)}function It(j,kA){var KA,st,At=j.max_chain_length,xA=j.strstart,Lt=j.prev_length,Dt=j.nice_match,Rt=j.strstart>j.w_size-FA?j.strstart-(j.w_size-FA):0,Vt=j.window,Le=j.w_mask,re=j.prev,Ae=j.strstart+DA,ye=Vt[xA+Lt-1],be=Vt[xA+Lt];j.prev_length>=j.good_match&&(At>>=2),Dt>j.lookahead&&(Dt=j.lookahead);do{if(Vt[(KA=kA)+Lt]===be&&Vt[KA+Lt-1]===ye&&Vt[KA]===Vt[xA]&&Vt[++KA]===Vt[xA+1]){xA+=2,KA++;do{}while(Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&xALt){if(j.match_start=kA,Lt=st,st>=Dt)break;ye=Vt[xA+Lt-1],be=Vt[xA+Lt]}}}while((kA=re[kA&Le])>Rt&&0!=--At);return Lt<=j.lookahead?Lt:j.lookahead}function ft(j){var At,xA,KA,st,Lt,kA=j.w_size;do{if(st=j.window_size-j.lookahead-j.strstart,j.strstart>=kA+(kA-FA)){c.arraySet(j.window,j.window,kA,kA,0),j.match_start-=kA,j.strstart-=kA,j.block_start-=kA,At=xA=j.hash_size;do{KA=j.head[--At],j.head[At]=KA>=kA?KA-kA:0}while(--xA);At=xA=kA;do{KA=j.prev[--At],j.prev[At]=KA>=kA?KA-kA:0}while(--xA);st+=kA}if(0===j.strm.avail_in)break;if(xA=mt(j.strm,j.window,j.strstart+j.lookahead,st),j.lookahead+=xA,j.lookahead+j.insert>=3)for(j.ins_h=j.window[Lt=j.strstart-j.insert],j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<=3)if(xA=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,xA=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&&(Lt=2,xA-=16),KA<1||KA>9||8!==At||xA<8||xA>15||kA<0||kA>9||st<0||st>4)return nA(j,B);8===xA&&(xA=9);var Dt=new H;return j.state=Dt,Dt.strm=j,Dt.wrap=Lt,Dt.gzhead=null,Dt.w_bits=xA,Dt.w_size=1<j.pending_buf_size-5&&(At=j.pending_buf_size-5);;){if(j.lookahead<=1){if(ft(j),0===j.lookahead&&0===kA)return 1;if(0===j.lookahead)break}j.strstart+=j.lookahead,j.lookahead=0;var xA=j.block_start+At;if((0===j.strstart||j.strstart>=xA)&&(j.lookahead=j.strstart-xA,j.strstart=xA,ot(j,!1),0===j.strm.avail_out)||j.strstart-j.block_start>=j.w_size-FA&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):(j.strstart>j.block_start&&ot(j,!1),1)}),new ht(4,4,8,4,WA),new ht(4,5,16,8,WA),new ht(4,6,32,32,WA),new ht(4,4,16,16,rt),new ht(8,16,32,32,rt),new ht(8,16,128,128,rt),new ht(8,32,128,256,rt),new ht(32,128,258,1024,rt),new ht(32,258,258,4096,rt)],I.deflateInit=function RA(j,kA){return wA(j,kA,8,15,8,0)},I.deflateInit2=wA,I.deflateReset=R,I.deflateResetKeep=k,I.deflateSetHeader=function QA(j,kA){return j&&j.state&&2===j.state.wrap?(j.state.gzhead=kA,0):B},I.deflate=function rA(j,kA){var At,xA,KA,st;if(!j||!j.state||kA>5||kA<0)return j?nA(j,B):B;if(xA=j.state,!j.output||!j.input&&0!==j.avail_in||xA.status===q&&4!==kA)return nA(j,0===j.avail_out?-5:B);if(xA.strm=j,At=xA.last_flush,xA.last_flush=kA,42===xA.status)if(2===xA.wrap)j.adler=0,TA(xA,31),TA(xA,139),TA(xA,8),xA.gzhead?(TA(xA,(xA.gzhead.text?1:0)+(xA.gzhead.hcrc?2:0)+(xA.gzhead.extra?4:0)+(xA.gzhead.name?8:0)+(xA.gzhead.comment?16:0)),TA(xA,255&xA.gzhead.time),TA(xA,xA.gzhead.time>>8&255),TA(xA,xA.gzhead.time>>16&255),TA(xA,xA.gzhead.time>>24&255),TA(xA,9===xA.level?2:xA.strategy>=2||xA.level<2?4:0),TA(xA,255&xA.gzhead.os),xA.gzhead.extra&&xA.gzhead.extra.length&&(TA(xA,255&xA.gzhead.extra.length),TA(xA,xA.gzhead.extra.length>>8&255)),xA.gzhead.hcrc&&(j.adler=l(j.adler,xA.pending_buf,xA.pending,0)),xA.gzindex=0,xA.status=69):(TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,9===xA.level?2:xA.strategy>=2||xA.level<2?4:0),TA(xA,3),xA.status=113);else{var Lt=8+(xA.w_bits-8<<4)<<8;Lt|=(xA.strategy>=2||xA.level<2?0:xA.level<6?1:6===xA.level?2:3)<<6,0!==xA.strstart&&(Lt|=32),Lt+=31-Lt%31,xA.status=113,it(xA,Lt),0!==xA.strstart&&(it(xA,j.adler>>>16),it(xA,65535&j.adler)),j.adler=1}if(69===xA.status)if(xA.gzhead.extra){for(KA=xA.pending;xA.gzindex<(65535&xA.gzhead.extra.length)&&(xA.pending!==xA.pending_buf_size||(xA.gzhead.hcrc&&xA.pending>KA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),et(j),KA=xA.pending,xA.pending!==xA.pending_buf_size));)TA(xA,255&xA.gzhead.extra[xA.gzindex]),xA.gzindex++;xA.gzhead.hcrc&&xA.pending>KA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),xA.gzindex===xA.gzhead.extra.length&&(xA.gzindex=0,xA.status=73)}else xA.status=73;if(73===xA.status)if(xA.gzhead.name){KA=xA.pending;do{if(xA.pending===xA.pending_buf_size&&(xA.gzhead.hcrc&&xA.pending>KA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),et(j),KA=xA.pending,xA.pending===xA.pending_buf_size)){st=1;break}st=xA.gzindexKA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),0===st&&(xA.gzindex=0,xA.status=91)}else xA.status=91;if(91===xA.status)if(xA.gzhead.comment){KA=xA.pending;do{if(xA.pending===xA.pending_buf_size&&(xA.gzhead.hcrc&&xA.pending>KA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),et(j),KA=xA.pending,xA.pending===xA.pending_buf_size)){st=1;break}st=xA.gzindexKA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),0===st&&(xA.status=103)}else xA.status=103;if(103===xA.status&&(xA.gzhead.hcrc?(xA.pending+2>xA.pending_buf_size&&et(j),xA.pending+2<=xA.pending_buf_size&&(TA(xA,255&j.adler),TA(xA,j.adler>>8&255),j.adler=0,xA.status=113)):xA.status=113),0!==xA.pending){if(et(j),0===j.avail_out)return xA.last_flush=-1,0}else if(0===j.avail_in&&EA(kA)<=EA(At)&&4!==kA)return nA(j,-5);if(xA.status===q&&0!==j.avail_in)return nA(j,-5);if(0!==j.avail_in||0!==xA.lookahead||0!==kA&&xA.status!==q){var Rt=2===xA.strategy?function Mt(j,kA){for(var At;;){if(0===j.lookahead&&(ft(j),0===j.lookahead)){if(0===kA)return 1;break}if(j.match_length=0,At=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,At&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(ot(j,!1),0===j.strm.avail_out)?1:2}(xA,kA):3===xA.strategy?function yA(j,kA){for(var At,xA,KA,st,Lt=j.window;;){if(j.lookahead<=DA){if(ft(j),j.lookahead<=DA&&0===kA)return 1;if(0===j.lookahead)break}if(j.match_length=0,j.lookahead>=3&&j.strstart>0&&(xA=Lt[KA=j.strstart-1])===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]){st=j.strstart+DA;do{}while(xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&KAj.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=3?(At=i._tr_tally(j,1,j.match_length-3),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(At=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),At&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(ot(j,!1),0===j.strm.avail_out)?1:2}(xA,kA):OA[xA.level].func(xA,kA);if((3===Rt||4===Rt)&&(xA.status=q),1===Rt||3===Rt)return 0===j.avail_out&&(xA.last_flush=-1),0;if(2===Rt&&(1===kA?i._tr_align(xA):5!==kA&&(i._tr_stored_block(xA,0,0,!1),3===kA&&(GA(xA.head),0===xA.lookahead&&(xA.strstart=0,xA.block_start=0,xA.insert=0))),et(j),0===j.avail_out))return xA.last_flush=-1,0}return 4!==kA?0:xA.wrap<=0?1:(2===xA.wrap?(TA(xA,255&j.adler),TA(xA,j.adler>>8&255),TA(xA,j.adler>>16&255),TA(xA,j.adler>>24&255),TA(xA,255&j.total_in),TA(xA,j.total_in>>8&255),TA(xA,j.total_in>>16&255),TA(xA,j.total_in>>24&255)):(it(xA,j.adler>>>16),it(xA,65535&j.adler)),et(j),xA.wrap>0&&(xA.wrap=-xA.wrap),0!==xA.pending?0:1)},I.deflateEnd=function ct(j){var kA;return j&&j.state?42!==(kA=j.state.status)&&69!==kA&&73!==kA&&91!==kA&&103!==kA&&113!==kA&&kA!==q?nA(j,B):(j.state=null,113===kA?nA(j,-3):0):B},I.deflateSetDictionary=function Ft(j,kA){var xA,KA,st,Lt,Dt,Rt,Vt,Le,At=kA.length;if(!j||!j.state||2===(Lt=(xA=j.state).wrap)||1===Lt&&42!==xA.status||xA.lookahead)return B;for(1===Lt&&(j.adler=o(j.adler,kA,At,0)),xA.wrap=0,At>=xA.w_size&&(0===Lt&&(GA(xA.head),xA.strstart=0,xA.block_start=0,xA.insert=0),Le=new c.Buf8(xA.w_size),c.arraySet(Le,kA,At-xA.w_size,xA.w_size,0),kA=Le,At=xA.w_size),Dt=j.avail_in,Rt=j.next_in,Vt=j.input,j.avail_in=At,j.next_in=0,j.input=kA,ft(xA);xA.lookahead>=3;){KA=xA.strstart,st=xA.lookahead-2;do{xA.ins_h=(xA.ins_h<>>=U=D>>>24,p-=U,0==(U=D>>>16&255))aA[g++]=65535&D;else{if(!(16&U)){if(0==(64&U)){D=S[(65535&D)+(Q&(1<>>=U,p-=U),p<15&&(Q+=Z[h++]<>>=U=D>>>24,p-=U,!(16&(U=D>>>16&255))){if(0==(64&U)){D=m[(65535&D)+(Q&(1<C){i.msg="invalid distance too far back",l.mode=30;break A}if(Q>>>=U,p-=U,F>(U=g-E)){if((U=F-U)>f&&l.sane){i.msg="invalid distance too far back",l.mode=30;break A}if(z=0,b=w,0===B){if(z+=e-U,U2;)aA[g++]=b[z++],aA[g++]=b[z++],aA[g++]=b[z++],T-=3;T&&(aA[g++]=b[z++],T>1&&(aA[g++]=b[z++]))}else{z=g-F;do{aA[g++]=aA[z++],aA[g++]=aA[z++],aA[g++]=aA[z++],T-=3}while(T>2);T&&(aA[g++]=aA[z++],T>1&&(aA[g++]=aA[z++]))}break}}break}}while(h>3)<<3))-1,i.next_in=h-=T,i.next_out=g,i.avail_in=h>>24&255)+(wA>>>8&65280)+((65280&wA)<<8)+((255&wA)<<24)}function mt(){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 It(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 ft(wA){var RA;return wA&&wA.state?((RA=wA.state).wsize=0,RA.whave=0,RA.wnext=0,It(wA)):Q}function JA(wA,RA){var rA,ct;return!wA||!wA.state||(ct=wA.state,RA<0?(rA=0,RA=-RA):(rA=1+(RA>>4),RA<48&&(RA&=15)),RA&&(RA<8||RA>15))?Q:(null!==ct.window&&ct.wbits!==RA&&(ct.window=null),ct.wrap=rA,ct.wbits=RA,ft(wA))}function WA(wA,RA){var rA,ct;return wA?(ct=new mt,wA.state=ct,ct.window=null,0!==(rA=JA(wA,RA))&&(wA.state=null),rA):Q}var Mt,ht,yA=!0;function OA(wA){if(yA){var RA;for(Mt=new c.Buf32(512),ht=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,Mt,0,wA.work,{bits:9}),RA=0;RA<32;)wA.lens[RA++]=5;h(2,wA.lens,0,32,ht,0,wA.work,{bits:5}),yA=!1}wA.lencode=Mt,wA.lenbits=9,wA.distcode=ht,wA.distbits=5}function Yt(wA,RA,rA,ct){var Ft,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):((Ft=j.wsize-j.wnext)>ct&&(Ft=ct),c.arraySet(j.window,RA,rA-ct,Ft,j.wnext),(ct-=Ft)?(c.arraySet(j.window,RA,rA-ct,ct,0),j.wnext=ct,j.whave=j.wsize):(j.wnext+=Ft,j.wnext===j.wsize&&(j.wnext=0),j.whave>>8&255,rA.check=o(rA.check,Te,2,0),KA=0,st=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(st-=4,ne=8+(15&(KA>>>=4)),0===rA.wbits)rA.wbits=ne;else if(ne>rA.wbits){wA.msg="invalid window size",rA.mode=30;break}rA.dmax=1<>8&1),512&rA.flags&&(Te[0]=255&KA,Te[1]=KA>>>8&255,rA.check=o(rA.check,Te,2,0)),KA=0,st=0,rA.mode=3;case 3:for(;st<32;){if(0===At)break A;At--,KA+=ct[j++]<>>8&255,Te[2]=KA>>>16&255,Te[3]=KA>>>24&255,rA.check=o(rA.check,Te,4,0)),KA=0,st=0,rA.mode=4;case 4:for(;st<16;){if(0===At)break A;At--,KA+=ct[j++]<>8),512&rA.flags&&(Te[0]=255&KA,Te[1]=KA>>>8&255,rA.check=o(rA.check,Te,2,0)),KA=0,st=0,rA.mode=5;case 5:if(1024&rA.flags){for(;st<16;){if(0===At)break A;At--,KA+=ct[j++]<>>8&255,rA.check=o(rA.check,Te,2,0)),KA=0,st=0}else rA.head&&(rA.head.extra=null);rA.mode=6;case 6:if(1024&rA.flags&&((Rt=rA.length)>At&&(Rt=At),Rt&&(rA.head&&(ne=rA.head.extra_len-rA.length,rA.head.extra||(rA.head.extra=new Array(rA.head.extra_len)),c.arraySet(rA.head.extra,ct,j,Rt,ne)),512&rA.flags&&(rA.check=o(rA.check,ct,Rt,j)),At-=Rt,j+=Rt,rA.length-=Rt),rA.length))break A;rA.length=0,rA.mode=7;case 7:if(2048&rA.flags){if(0===At)break A;Rt=0;do{ne=ct[j+Rt++],rA.head&&ne&&rA.length<65536&&(rA.head.name+=String.fromCharCode(ne))}while(ne&&Rt>9&1,rA.head.done=!0),wA.adler=rA.check=0,rA.mode=12;break;case 10:for(;st<32;){if(0===At)break A;At--,KA+=ct[j++]<>>=7&st,st-=7&st,rA.mode=27;break}for(;st<3;){if(0===At)break A;At--,KA+=ct[j++]<>>=1)){case 0:rA.mode=14;break;case 1:if(OA(rA),rA.mode=20,6===RA){KA>>>=2,st-=2;break A}break;case 2:rA.mode=17;break;case 3:wA.msg="invalid block type",rA.mode=30}KA>>>=2,st-=2;break;case 14:for(KA>>>=7&st,st-=7&st;st<32;){if(0===At)break A;At--,KA+=ct[j++]<>>16^65535)){wA.msg="invalid stored block lengths",rA.mode=30;break}if(rA.length=65535&KA,KA=0,st=0,rA.mode=15,6===RA)break A;case 15:rA.mode=16;case 16:if(Rt=rA.length){if(Rt>At&&(Rt=At),Rt>xA&&(Rt=xA),0===Rt)break A;c.arraySet(Ft,ct,j,Rt,kA),At-=Rt,j+=Rt,xA-=Rt,kA+=Rt,rA.length-=Rt;break}rA.mode=12;break;case 17:for(;st<14;){if(0===At)break A;At--,KA+=ct[j++]<>>=5)),st-=5,rA.ncode=4+(15&(KA>>>=5)),KA>>>=4,st-=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,st-=3}for(;rA.have<19;)rA.lens[Ln[rA.have++]]=0;if(rA.lencode=rA.lendyn,rA.lenbits=7,tn=h(0,rA.lens,0,19,rA.lencode,0,rA.work,en={bits:rA.lenbits}),rA.lenbits=en.bits,tn){wA.msg="invalid code lengths set",rA.mode=30;break}rA.have=0,rA.mode=19;case 19:for(;rA.have>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>>=Ae,st-=Ae,rA.lens[rA.have++]=be;else{if(16===be){for(Xe=Ae+2;st>>=Ae,st-=Ae,0===rA.have){wA.msg="invalid bit length repeat",rA.mode=30;break}ne=rA.lens[rA.have-1],Rt=3+(3&KA),KA>>>=2,st-=2}else if(17===be){for(Xe=Ae+3;st>>=Ae)),KA>>>=3,st-=3}else{for(Xe=Ae+7;st>>=Ae)),KA>>>=7,st-=7}if(rA.have+Rt>rA.nlen+rA.ndist){wA.msg="invalid bit length repeat",rA.mode=30;break}for(;Rt--;)rA.lens[rA.have++]=ne}}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,tn=h(1,rA.lens,0,rA.nlen,rA.lencode,0,rA.work,en={bits:rA.lenbits}),rA.lenbits=en.bits,tn){wA.msg="invalid literal/lengths set",rA.mode=30;break}if(rA.distbits=6,rA.distcode=rA.distdyn,tn=h(2,rA.lens,rA.nlen,rA.ndist,rA.distcode,0,rA.work,en={bits:rA.distbits}),rA.distbits=en.bits,tn){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(At>=6&&xA>=258){wA.next_out=kA,wA.avail_out=xA,wA.next_in=j,wA.avail_in=At,rA.hold=KA,rA.bits=st,l(wA,Dt),kA=wA.next_out,Ft=wA.output,xA=wA.avail_out,j=wA.next_in,ct=wA.input,At=wA.avail_in,KA=rA.hold,st=rA.bits,12===rA.mode&&(rA.back=-1);break}for(rA.back=0;ye=(re=rA.lencode[KA&(1<>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>Re)])>>>16&255,be=65535&re,!(Re+(Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>>=Re,st-=Re,rA.back+=Re}if(KA>>>=Ae,st-=Ae,rA.back+=Ae,rA.length=be,0===ye){rA.mode=26;break}if(32&ye){rA.back=-1,rA.mode=12;break}if(64&ye){wA.msg="invalid literal/length code",rA.mode=30;break}rA.extra=15&ye,rA.mode=22;case 22:if(rA.extra){for(Xe=rA.extra;st>>=rA.extra,st-=rA.extra,rA.back+=rA.extra}rA.was=rA.length,rA.mode=23;case 23:for(;ye=(re=rA.distcode[KA&(1<>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>Re)])>>>16&255,be=65535&re,!(Re+(Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>>=Re,st-=Re,rA.back+=Re}if(KA>>>=Ae,st-=Ae,rA.back+=Ae,64&ye){wA.msg="invalid distance code",rA.mode=30;break}rA.offset=be,rA.extra=15&ye,rA.mode=24;case 24:if(rA.extra){for(Xe=rA.extra;st>>=rA.extra,st-=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===xA)break A;if(rA.offset>(Rt=Dt-xA)){if((Rt=rA.offset-Rt)>rA.whave&&rA.sane){wA.msg="invalid distance too far back",rA.mode=30;break}Vt=Rt>rA.wnext?rA.wsize-(Rt-=rA.wnext):rA.wnext-Rt,Rt>rA.length&&(Rt=rA.length),Le=rA.window}else Le=Ft,Vt=kA-rA.offset,Rt=rA.length;Rt>xA&&(Rt=xA),xA-=Rt,rA.length-=Rt;do{Ft[kA++]=Le[Vt++]}while(--Rt);0===rA.length&&(rA.mode=21);break;case 26:if(0===xA)break A;Ft[kA++]=rA.length,xA--,rA.mode=21;break;case 27:if(rA.wrap){for(;st<32;){if(0===At)break A;At--,KA|=ct[j++]<=1&&0===CA[z];z--);if(b>z&&(b=z),0===z)return S[m++]=20971520,S[m++]=20971520,v.bits=1,0;for(F=1;F0&&(0===B||1!==z))return-1;for(SA[1]=0,U=1;U852||2===B&&lA>592)return 1;for(;;){q=U-aA,d[T]uA?(O=bA[XA+d[T]],$=_[dA+d[T]]):(O=96,$=0),cA=1<>aA)+(gA-=cA)]=q<<24|O<<16|$|0}while(0!==gA);for(cA=1<>=1;if(0!==cA?(MA&=cA-1,MA+=cA):MA=0,T++,0==--CA[U]){if(U===z)break;U=w[Q+d[T]]}if(U>b&&(MA&DA)!==BA){for(0===aA&&(aA=b),FA+=F,AA=1<<(Z=U-aA);Z+aA852||2===B&&lA>592)return 1;S[BA=MA&DA]=b<<24|Z<<16|FA-m|0}}return 0!==MA&&(S[FA+MA]=4194304|U-aA<<24),v.bits=b,0}},8898:function(Y){"use strict";Y.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(Y,I,n){"use strict";var c=n(4236);function a(H){for(var k=H.length;--k>=0;)H[k]=0}var B=256,w=286,Q=30,m=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],b=[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],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],aA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lA=new Array(576);a(lA);var MA=new Array(60);a(MA);var cA=new Array(512);a(cA);var gA=new Array(256);a(gA);var BA=new Array(29);a(BA);var _,dA,uA,DA=new Array(Q);function FA(H,k,R,QA,wA){this.static_tree=H,this.extra_bits=k,this.extra_base=R,this.elems=QA,this.max_length=wA,this.has_stree=H&&H.length}function CA(H,k){this.dyn_tree=H,this.max_code=0,this.stat_desc=k}function SA(H){return H<256?cA[H]:cA[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,R){H.bi_valid>16-R?(H.bi_buf|=k<>16-H.bi_valid,H.bi_valid+=R-16):(H.bi_buf|=k<>>=1,R<<=1}while(--k>0);return R>>>1}function hA(H,k,R){var RA,rA,QA=new Array(16),wA=0;for(RA=1;RA<=m;RA++)QA[RA]=wA=wA+R[RA-1]<<1;for(rA=0;rA<=k;rA++){var ct=H[2*rA+1];0!==ct&&(H[2*rA]=O(QA[ct]++,ct))}}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,R,QA){var wA=2*k,RA=2*R;return H[wA]>1;rA>=1;rA--)ot(H,R,rA);j=RA;do{rA=H.heap[1],H.heap[1]=H.heap[H.heap_len--],ot(H,R,1),ct=H.heap[1],H.heap[--H.heap_max]=rA,H.heap[--H.heap_max]=ct,R[2*j]=R[2*rA]+R[2*ct],H.depth[j]=(H.depth[rA]>=H.depth[ct]?H.depth[rA]:H.depth[ct])+1,R[2*rA+1]=R[2*ct+1]=j,H.heap[1]=j++,ot(H,R,1)}while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1],function W(H,k){var j,kA,At,xA,KA,st,R=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,ct=k.stat_desc.extra_base,Ft=k.stat_desc.max_length,Lt=0;for(xA=0;xA<=m;xA++)H.bl_count[xA]=0;for(R[2*H.heap[H.heap_max]+1]=0,j=H.heap_max+1;j<573;j++)(xA=R[2*R[2*(kA=H.heap[j])+1]+1]+1)>Ft&&(xA=Ft,Lt++),R[2*kA+1]=xA,!(kA>QA)&&(H.bl_count[xA]++,KA=0,kA>=ct&&(KA=rA[kA-ct]),H.opt_len+=(st=R[2*kA])*(xA+KA),RA&&(H.static_len+=st*(wA[2*kA+1]+KA)));if(0!==Lt){do{for(xA=Ft-1;0===H.bl_count[xA];)xA--;H.bl_count[xA]--,H.bl_count[xA+1]+=2,H.bl_count[Ft]--,Lt-=2}while(Lt>0);for(xA=Ft;0!==xA;xA--)for(kA=H.bl_count[xA];0!==kA;)!((At=H.heap[--j])>QA)&&(R[2*At+1]!==xA&&(H.opt_len+=(xA-R[2*At+1])*R[2*At],R[2*At+1]=xA),kA--)}}(H,k),hA(R,Ft,H.bl_count)}function mt(H,k,R){var QA,RA,wA=-1,rA=k[1],ct=0,Ft=7,j=4;for(0===rA&&(Ft=138,j=3),k[2*(R+1)+1]=65535,QA=0;QA<=R;QA++)RA=rA,rA=k[2*(QA+1)+1],!(++ct>=7;QA0?(2===H.strm.data_type&&(H.strm.data_type=function WA(H){var R,k=4093624447;for(R=0;R<=31;R++,k>>>=1)if(1&k&&0!==H.dyn_ltree[2*R])return 0;if(0!==H.dyn_ltree[18]||0!==H.dyn_ltree[20]||0!==H.dyn_ltree[26])return 1;for(R=32;R=3&&0===H.bl_tree[2*aA[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=R+5,R+4<=wA&&-1!==k?Mt(H,k,R,QA):4===H.strategy||RA===wA?(XA(H,2+(QA?1:0),3),TA(H,lA,MA)):(XA(H,4+(QA?1:0),3),function JA(H,k,R,QA){var wA;for(XA(H,k-257,5),XA(H,R-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&R,H.last_lit++,0===k?H.dyn_ltree[2*R]++:(H.matches++,k--,H.dyn_ltree[2*(gA[R]+B+1)]++,H.dyn_dtree[2*SA(k)]++),H.last_lit===H.lit_bufsize-1},I._tr_align=function ht(H){XA(H,2,3),q(H,256,lA),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(Y){"use strict";Y.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(Y){var n,c,I=Y.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){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:o}catch(w){c=o}}();var E,a=[],g=!1,u=-1;function C(){!g||!E||(g=!1,E.length?a=E.concat(a):u=-1,a.length&&e())}function e(){if(!g){var w=l(C);g=!0;for(var Q=a.length;Q;){for(E=a,a=[];++u1)for(var p=1;p=0;--DA){var FA=this.tryEntries[DA],_=FA.completion;if("root"===FA.tryLoc)return BA("end");if(FA.tryLoc<=this.prev){var dA=i.call(FA,"catchLoc"),uA=i.call(FA,"finallyLoc");if(dA&&uA){if(this.prev=0;--BA){var DA=this.tryEntries[BA];if(DA.tryLoc<=this.prev&&i.call(DA,"finallyLoc")&&this.prev=0;--gA){var BA=this.tryEntries[gA];if(BA.finallyLoc===cA)return this.complete(BA.completion,BA.afterLoc),aA(BA),Q}},catch:function(cA){for(var gA=this.tryEntries.length-1;gA>=0;--gA){var BA=this.tryEntries[gA];if(BA.tryLoc===cA){var DA=BA.completion;if("throw"===DA.type){var FA=DA.arg;aA(BA)}return FA}}throw new Error("illegal catch attempt")},delegateYield:function(cA,gA,BA){return this.delegate={iterator:lA(cA),resultName:gA,nextLoc:BA},"next"===this.method&&(this.arg=o),Q}},n}(Y.exports);try{regeneratorRuntime=I}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=I:Function("r","regeneratorRuntime = r")(I)}},3697:function(Y){"use strict";var I=Object,n=TypeError;Y.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(Y,I,n){"use strict";var c=n(4289),i=n(5559),o=n(3697),l=n(1721),h=n(2753),a=i(l());c(a,{getPolyfill:l,implementation:o,shim:h}),Y.exports=a},1721:function(Y,I,n){"use strict";var c=n(3697),i=n(4289).supportsDescriptors,o=Object.getOwnPropertyDescriptor;Y.exports=function(){if(i&&"gim"===/a/gim.flags){var h=o(RegExp.prototype,"flags");if(h&&"function"==typeof h.get&&"boolean"==typeof/a/.dotAll)return h.get}return c}},2753:function(Y,I,n){"use strict";var c=n(4289).supportsDescriptors,i=n(1721),o=Object.getOwnPropertyDescriptor,l=Object.defineProperty,h=TypeError,a=Object.getPrototypeOf,g=/a/;Y.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(g),e=o(C,"flags");return(!e||e.get!==u)&&l(C,"flags",{configurable:!0,enumerable:!1,get:u}),u}},6099:function(Y,I,n){var c=n(8823).Buffer;!function(i){i.parser=function(q,O){return new l(q,O)},i.SAXParser=l,i.SAXStream=e,i.createStream=function C(q,O){return new e(q,O)},i.MAX_BUFFER_LENGTH=65536;var E,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function l(q,O){if(!(this instanceof l))return new l(q,O);var $=this;(function a(q){for(var O=0,$=o.length;O<$;O++)q[o[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=!!q,$.noscript=!(!q&&!$.opt.noscript),$.state=b.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),aA($,"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(q){function O(){}return O.prototype=q,new O}),Object.keys||(Object.keys=function(q){var O=[];for(var $ in q)q.hasOwnProperty($)&&O.push($);return O}),l.prototype={end:function(){gA(this)},write:function XA(q){var O=this;if(this.error)throw this.error;if(O.closed)return cA(O,"Cannot write after close. Assign an onready handler.");if(null===q)return gA(O);"object"==typeof q&&(q=q.toString());for(var $=0,W="";W=bA(q,$++),O.c=W,W;)switch(O.trackPosition&&(O.position++,"\n"===W?(O.line++,O.column=0):O.column++),O.state){case b.BEGIN:if(O.state=b.BEGIN_WHITESPACE,"\ufeff"===W)continue;SA(O,W);continue;case b.BEGIN_WHITESPACE:SA(O,W);continue;case b.TEXT:if(O.sawRoot&&!O.closedRoot){for(var hA=$-1;W&&"<"!==W&&"&"!==W;)(W=bA(q,$++))&&O.trackPosition&&(O.position++,"\n"===W?(O.line++,O.column=0):O.column++);O.textNode+=q.substring(hA,$-1)}"<"!==W||O.sawRoot&&O.closedRoot&&!O.strict?(!D(W)&&(!O.sawRoot||O.closedRoot)&&BA(O,"Text data outside of root node."),"&"===W?O.state=b.TEXT_ENTITY:O.textNode+=W):(O.state=b.OPEN_WAKA,O.startTagPosition=O.position);continue;case b.SCRIPT:"<"===W?O.state=b.SCRIPT_ENDING:O.script+=W;continue;case b.SCRIPT_ENDING:"/"===W?O.state=b.CLOSE_TAG:(O.script+="<"+W,O.state=b.SCRIPT);continue;case b.OPEN_WAKA:"!"===W?(O.state=b.SGML_DECL,O.sgmlDecl=""):D(W)||(F(S,W)?(O.state=b.OPEN_TAG,O.tagName=W):"/"===W?(O.state=b.CLOSE_TAG,O.tagName=""):"?"===W?(O.state=b.PROC_INST,O.procInstName=O.procInstBody=""):(BA(O,"Unencoded <"),O.startTagPosition+1"===W?(AA(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=b.TEXT):(U(W)&&(O.state=b.SGML_DECL_QUOTED),O.sgmlDecl+=W);continue;case b.SGML_DECL_QUOTED:W===O.q&&(O.state=b.SGML_DECL,O.q=""),O.sgmlDecl+=W;continue;case b.DOCTYPE:">"===W?(O.state=b.TEXT,AA(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=W,"["===W?O.state=b.DOCTYPE_DTD:U(W)&&(O.state=b.DOCTYPE_QUOTED,O.q=W));continue;case b.DOCTYPE_QUOTED:O.doctype+=W,W===O.q&&(O.q="",O.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:O.doctype+=W,"]"===W?O.state=b.DOCTYPE:U(W)&&(O.state=b.DOCTYPE_DTD_QUOTED,O.q=W);continue;case b.DOCTYPE_DTD_QUOTED:O.doctype+=W,W===O.q&&(O.state=b.DOCTYPE_DTD,O.q="");continue;case b.COMMENT:"-"===W?O.state=b.COMMENT_ENDING:O.comment+=W;continue;case b.COMMENT_ENDING:"-"===W?(O.state=b.COMMENT_ENDED,O.comment=MA(O.opt,O.comment),O.comment&&AA(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+W,O.state=b.COMMENT);continue;case b.COMMENT_ENDED:">"!==W?(BA(O,"Malformed comment"),O.comment+="--"+W,O.state=b.COMMENT):O.state=b.TEXT;continue;case b.CDATA:"]"===W?O.state=b.CDATA_ENDING:O.cdata+=W;continue;case b.CDATA_ENDING:"]"===W?O.state=b.CDATA_ENDING_2:(O.cdata+="]"+W,O.state=b.CDATA);continue;case b.CDATA_ENDING_2:">"===W?(O.cdata&&AA(O,"oncdata",O.cdata),AA(O,"onclosecdata"),O.cdata="",O.state=b.TEXT):"]"===W?O.cdata+="]":(O.cdata+="]]"+W,O.state=b.CDATA);continue;case b.PROC_INST:"?"===W?O.state=b.PROC_INST_ENDING:D(W)?O.state=b.PROC_INST_BODY:O.procInstName+=W;continue;case b.PROC_INST_BODY:if(!O.procInstBody&&D(W))continue;"?"===W?O.state=b.PROC_INST_ENDING:O.procInstBody+=W;continue;case b.PROC_INST_ENDING:">"===W?(AA(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=b.TEXT):(O.procInstBody+="?"+W,O.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:F(m,W)?O.tagName+=W:(DA(O),">"===W?dA(O):"/"===W?O.state=b.OPEN_TAG_SLASH:(D(W)||BA(O,"Invalid character in tag name"),O.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:">"===W?(dA(O,!0),uA(O)):(BA(O,"Forward-slash in opening tag not followed by >"),O.state=b.ATTRIB);continue;case b.ATTRIB:if(D(W))continue;">"===W?dA(O):"/"===W?O.state=b.OPEN_TAG_SLASH:F(S,W)?(O.attribName=W,O.attribValue="",O.state=b.ATTRIB_NAME):BA(O,"Invalid attribute name");continue;case b.ATTRIB_NAME:"="===W?O.state=b.ATTRIB_VALUE:">"===W?(BA(O,"Attribute without value"),O.attribValue=O.attribName,_(O),dA(O)):D(W)?O.state=b.ATTRIB_NAME_SAW_WHITE:F(m,W)?O.attribName+=W:BA(O,"Invalid attribute name");continue;case b.ATTRIB_NAME_SAW_WHITE:if("="===W)O.state=b.ATTRIB_VALUE;else{if(D(W))continue;BA(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",AA(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",">"===W?dA(O):F(S,W)?(O.attribName=W,O.state=b.ATTRIB_NAME):(BA(O,"Invalid attribute name"),O.state=b.ATTRIB)}continue;case b.ATTRIB_VALUE:if(D(W))continue;U(W)?(O.q=W,O.state=b.ATTRIB_VALUE_QUOTED):(BA(O,"Unquoted attribute value"),O.state=b.ATTRIB_VALUE_UNQUOTED,O.attribValue=W);continue;case b.ATTRIB_VALUE_QUOTED:if(W!==O.q){"&"===W?O.state=b.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=W;continue}_(O),O.q="",O.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:D(W)?O.state=b.ATTRIB:">"===W?dA(O):"/"===W?O.state=b.OPEN_TAG_SLASH:F(S,W)?(BA(O,"No whitespace between attributes"),O.attribName=W,O.attribValue="",O.state=b.ATTRIB_NAME):BA(O,"Invalid attribute name");continue;case b.ATTRIB_VALUE_UNQUOTED:if(!T(W)){"&"===W?O.state=b.ATTRIB_VALUE_ENTITY_U:O.attribValue+=W;continue}_(O),">"===W?dA(O):O.state=b.ATTRIB;continue;case b.CLOSE_TAG:if(O.tagName)">"===W?uA(O):F(m,W)?O.tagName+=W:O.script?(O.script+=""===W?uA(O):BA(O,"Invalid characters in closing tag");continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:var nA,EA;switch(O.state){case b.TEXT_ENTITY:nA=b.TEXT,EA="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:nA=b.ATTRIB_VALUE_QUOTED,EA="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:nA=b.ATTRIB_VALUE_UNQUOTED,EA="attribValue"}";"===W?(O[EA]+=CA(O),O.entity="",O.state=nA):F(O.entity.length?v:d,W)?O.entity+=W:(BA(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(q){for(var O=Math.max(i.MAX_BUFFER_LENGTH,10),$=0,W=0,hA=o.length;WO)switch(o[W]){case"textNode":lA(q);break;case"cdata":AA(q,"oncdata",q.cdata),q.cdata="";break;case"script":AA(q,"onscript",q.script),q.script="";break;default:cA(q,"Max buffer length exceeded: "+o[W])}$=Math.max($,mA)}q.bufferCheckPosition=i.MAX_BUFFER_LENGTH-$+q.position}(O),O},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function g(q){lA(q),""!==q.cdata&&(AA(q,"oncdata",q.cdata),q.cdata=""),""!==q.script&&(AA(q,"onscript",q.script),q.script="")}(this)}};try{E=n(2830).Stream}catch(q){E=function(){}}var u=i.EVENTS.filter(function(q){return"error"!==q&&"end"!==q});function e(q,O){if(!(this instanceof e))return new e(q,O);E.apply(this),this._parser=new l(q,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(q){if("function"==typeof c&&"function"==typeof c.isBuffer&&c.isBuffer(q)){if(!this._decoder){var O=n(2553).s;this._decoder=new O("utf8")}q=this._decoder.write(q)}return this._parser.write(q.toString()),this.emit("data",q),!0},e.prototype.end=function(q){return q&&q.length&&this.write(q),this._parser.end(),!0},e.prototype.on=function(q,O){var $=this;return!$._parser["on"+q]&&-1!==u.indexOf(q)&&($._parser["on"+q]=function(){var W=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,q),$.emit.apply($,W)}),E.prototype.on.call($,q,O)};var w="http://www.w3.org/XML/1998/namespace",Q="http://www.w3.org/2000/xmlns/",p={xml:w,xmlns:Q},S=/[:_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]/,m=/[:_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(q){return" "===q||"\n"===q||"\r"===q||"\t"===q}function U(q){return'"'===q||"'"===q}function T(q){return">"===q||D(q)}function F(q,O){return q.test(O)}function z(q,O){return!F(q,O)}var q,O,$,b=0;for(var Z in i.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},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(q){var O=i.ENTITIES[q],$="number"==typeof O?String.fromCharCode(O):O;i.ENTITIES[q]=$}),i.STATE)i.STATE[i.STATE[Z]]=Z;function aA(q,O,$){q[O]&&q[O]($)}function AA(q,O,$){q.textNode&&lA(q),aA(q,O,$)}function lA(q){q.textNode=MA(q.opt,q.textNode),q.textNode&&aA(q,"ontext",q.textNode),q.textNode=""}function MA(q,O){return q.trim&&(O=O.trim()),q.normalize&&(O=O.replace(/\s+/g," ")),O}function cA(q,O){return lA(q),q.trackPosition&&(O+="\nLine: "+q.line+"\nColumn: "+q.column+"\nChar: "+q.c),O=new Error(O),q.error=O,aA(q,"onerror",O),q}function gA(q){return q.sawRoot&&!q.closedRoot&&BA(q,"Unclosed root tag"),q.state!==b.BEGIN&&q.state!==b.BEGIN_WHITESPACE&&q.state!==b.TEXT&&cA(q,"Unexpected end"),lA(q),q.c="",q.closed=!0,aA(q,"onend"),l.call(q,q.strict,q.opt),q}function BA(q,O){if("object"!=typeof q||!(q instanceof l))throw new Error("bad call to strictFail");q.strict&&cA(q,O)}function DA(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var O=q.tags[q.tags.length-1]||q,$=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&($.ns=O.ns),q.attribList.length=0,AA(q,"onopentagstart",$)}function FA(q,O){var W=q.indexOf(":")<0?["",q]:q.split(":"),hA=W[0],mA=W[1];return O&&"xmlns"===q&&(hA="xmlns",mA=""),{prefix:hA,local:mA}}function _(q){if(q.strict||(q.attribName=q.attribName[q.looseCase]()),-1!==q.attribList.indexOf(q.attribName)||q.tag.attributes.hasOwnProperty(q.attribName))q.attribName=q.attribValue="";else{if(q.opt.xmlns){var O=FA(q.attribName,!0),W=O.local;if("xmlns"===O.prefix)if("xml"===W&&q.attribValue!==w)BA(q,"xml: prefix must be bound to "+w+"\nActual: "+q.attribValue);else if("xmlns"===W&&q.attribValue!==Q)BA(q,"xmlns: prefix must be bound to "+Q+"\nActual: "+q.attribValue);else{var hA=q.tag,mA=q.tags[q.tags.length-1]||q;hA.ns===mA.ns&&(hA.ns=Object.create(mA.ns)),hA.ns[W]=q.attribValue}q.attribList.push([q.attribName,q.attribValue])}else q.tag.attributes[q.attribName]=q.attribValue,AA(q,"onattribute",{name:q.attribName,value:q.attribValue});q.attribName=q.attribValue=""}}function dA(q,O){if(q.opt.xmlns){var $=q.tag,W=FA(q.tagName);$.prefix=W.prefix,$.local=W.local,$.uri=$.ns[W.prefix]||"",$.prefix&&!$.uri&&(BA(q,"Unbound namespace prefix: "+JSON.stringify(q.tagName)),$.uri=W.prefix),$.ns&&(q.tags[q.tags.length-1]||q).ns!==$.ns&&Object.keys($.ns).forEach(function(ft){AA(q,"onopennamespace",{prefix:ft,uri:$.ns[ft]})});for(var mA=0,nA=q.attribList.length;mA",q.tagName="",void(q.state=b.SCRIPT);AA(q,"onscript",q.script),q.script=""}var O=q.tags.length,$=q.tagName;q.strict||($=$[q.looseCase]());for(var W=$;O--&&q.tags[O].name!==W;)BA(q,"Unexpected close tag");if(O<0)return BA(q,"Unmatched closing tag: "+q.tagName),q.textNode+="",void(q.state=b.TEXT);q.tagName=$;for(var mA=q.tags.length;mA-- >O;){var nA=q.tag=q.tags.pop();q.tagName=q.tag.name,AA(q,"onclosetag",q.tagName);var EA={};for(var GA in nA.ns)EA[GA]=nA.ns[GA];q.opt.xmlns&&nA.ns!==(q.tags[q.tags.length-1]||q).ns&&Object.keys(nA.ns).forEach(function(ot){AA(q,"onclosenamespace",{prefix:ot,uri:nA.ns[ot]})})}0===O&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=b.TEXT}function CA(q){var W,O=q.entity,$=O.toLowerCase(),hA="";return q.ENTITIES[O]?q.ENTITIES[O]:q.ENTITIES[$]?q.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?(BA(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint(W))}function SA(q,O){"<"===O?(q.state=b.OPEN_WAKA,q.startTagPosition=q.position):D(O)||(BA(q,"Non-whitespace before first tag."),q.textNode=O,q.state=b.TEXT)}function bA(q,O){var $="";return O1114111||O(ot)!==ot)throw RangeError("Invalid code point: "+ot);ot<=65535?hA.push(ot):hA.push(55296+((ot-=65536)>>10),ot%1024+56320),(EA+1===GA||hA.length>W)&&(et+=q.apply(null,hA),hA.length=0)}return et},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$)}(I)},2830:function(Y,I,n){Y.exports=o;var c=n(7187).EventEmitter;function o(){c.call(this)}n(5717)(o,c),o.Readable=n(6577),o.Writable=n(323),o.Duplex=n(8656),o.Transform=n(4473),o.PassThrough=n(2366),o.finished=n(1086),o.pipeline=n(6472),o.Stream=o,o.prototype.pipe=function(l,h){var a=this;function g(w){l.writable&&!1===l.write(w)&&a.pause&&a.pause()}function E(){a.readable&&a.resume&&a.resume()}a.on("data",g),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(B(),0===c.listenerCount(this,"error"))throw w}function B(){a.removeListener("data",g),l.removeListener("drain",E),a.removeListener("end",C),a.removeListener("close",e),a.removeListener("error",f),l.removeListener("error",f),a.removeListener("end",B),a.removeListener("close",B),l.removeListener("close",B)}return a.on("error",f),l.on("error",f),a.on("end",B),a.on("close",B),l.on("close",B),l.emit("pipe",a),l}},8106:function(Y){"use strict";var n={};function c(a,g,E){E||(E=Error);var C=function(e){function f(B,w,Q){return e.call(this,function u(e,f,B){return"string"==typeof g?g:g(e,f,B)}(B,w,Q))||this}return function I(a,g){a.prototype=Object.create(g.prototype),a.prototype.constructor=a,a.__proto__=g}(f,e),f}(E);C.prototype.name=E.name,C.prototype.code=a,n[a]=C}function i(a,g){if(Array.isArray(a)){var E=a.length;return a=a.map(function(u){return String(u)}),E>2?"one of ".concat(g," ").concat(a.slice(0,E-1).join(", "),", or ")+a[E-1]:2===E?"one of ".concat(g," ").concat(a[0]," or ").concat(a[1]):"of ".concat(g," ").concat(a[0])}return"of ".concat(g," ").concat(String(a))}c("ERR_INVALID_OPT_VALUE",function(a,g){return'The value "'+g+'" is invalid for option "'+a+'"'},TypeError),c("ERR_INVALID_ARG_TYPE",function(a,g,E){var u,C;if("string"==typeof g&&function o(a,g,E){return a.substr(!E||E<0?0:+E,g.length)===g}(g,"not ")?(u="must not be",g=g.replace(/^not /,"")):u="must be",function l(a,g,E){return(void 0===E||E>a.length)&&(E=a.length),a.substring(E-g.length,E)===g}(a," argument"))C="The ".concat(a," ").concat(u," ").concat(i(g,"type"));else{var e=function h(a,g,E){return"number"!=typeof E&&(E=0),!(E+g.length>a.length)&&-1!==a.indexOf(g,E)}(a,".")?"property":"argument";C='The "'.concat(a,'" ').concat(e," ").concat(u," ").concat(i(g,"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"),Y.exports.q=n},8656:function(Y,I,n){"use strict";var c=n(4155),i=Object.keys||function(e){var f=[];for(var B in e)f.push(B);return f};Y.exports=E;var o=n(6577),l=n(323);n(5717)(E,o);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):lA(nA,TA,EA,!0);else if(TA.ended)F(nA,new m);else{if(TA.destroyed)return!1;TA.reading=!1,TA.decoder&&!GA?(EA=TA.decoder.write(EA),TA.objectMode||0!==EA.length?lA(nA,TA,EA,!1):dA(nA,TA)):lA(nA,TA,EA,!1)}else et||(TA.reading=!1,dA(nA,TA));return!TA.ended&&(TA.lengthEA.highWaterMark&&(EA.highWaterMark=function gA(nA){return nA>=cA?nA=cA:(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 dA(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 q(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 mA(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=BA(nA,EA))&&EA.ended)return 0===EA.length&&W(this),null;var ot,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!==ot&&this.emit("data",ot),ot},aA.prototype._read=function(nA){F(this,new d("_read()"))},aA.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?ht:mt;function it(OA,Yt){e("onunpipe"),OA===GA&&Yt&&!1===Yt.hasUnpiped&&(Yt.hasUnpiped=!0,function JA(){e("cleanup"),nA.removeListener("close",yA),nA.removeListener("finish",Mt),nA.removeListener("drain",It),nA.removeListener("error",rt),nA.removeListener("unpipe",it),GA.removeListener("end",mt),GA.removeListener("end",ht),GA.removeListener("data",WA),ft=!0,et.awaitDrain&&(!nA._writableState||nA._writableState.needDrain)&&It()}())}function mt(){e("onend"),nA.end()}et.endEmitted?c.nextTick(TA):GA.once("end",TA),nA.on("unpipe",it);var It=function CA(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",It);var ft=!1;function WA(OA){e("ondata");var Yt=nA.write(OA);e("dest.write",Yt),!1===Yt&&((1===et.pipesCount&&et.pipes===nA||et.pipesCount>1&&-1!==mA(et.pipes,nA))&&!ft&&(e("false write response, pause",et.awaitDrain),et.awaitDrain++),GA.pause())}function rt(OA){e("onerror",OA),ht(),nA.removeListener("error",rt),0===l(nA,"error")&&F(nA,OA)}function yA(){nA.removeListener("finish",Mt),ht()}function Mt(){e("onfinish"),nA.removeListener("close",yA),ht()}function ht(){e("unpipe"),GA.unpipe(nA)}return GA.on("data",WA),function b(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",rt),nA.once("close",yA),nA.once("finish",Mt),nA.emit("pipe",GA),et.flowing||(e("pipe resume"),GA.resume()),nA},aA.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,ot=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},aA.prototype.removeListener=function(nA,EA){var GA=h.prototype.removeListener.call(this,nA,EA);return"readable"===nA&&c.nextTick(SA,this),GA},aA.prototype.removeAllListeners=function(nA){var EA=h.prototype.removeAllListeners.apply(this,arguments);return("readable"===nA||void 0===nA)&&c.nextTick(SA,this),EA},aA.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(q,nA,EA))}(this,nA)),nA.paused=!1,this},aA.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},aA.prototype.wrap=function(nA){var EA=this,GA=this._readableState,et=!1;for(var ot in nA.on("end",function(){if(e("wrapped end"),GA.decoder&&!GA.ended){var it=GA.decoder.end();it&&it.length&&EA.push(it)}EA.push(null)}),nA.on("data",function(it){e("wrapped data"),GA.decoder&&(it=GA.decoder.write(it)),GA.objectMode&&null==it||!(GA.objectMode||it&&it.length)||EA.push(it)||(et=!0,nA.pause())}),nA)void 0===this[ot]&&"function"==typeof nA[ot]&&(this[ot]=function(mt){return function(){return nA[mt].apply(nA,arguments)}}(ot));for(var TA=0;TA-1))throw new U($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(Z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Z.prototype._write=function(O,$,W){W(new p("_write()"))},Z.prototype._writev=null,Z.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(Z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Z.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function($){!this._writableState||(this._writableState.destroyed=$)}}),Z.prototype.destroy=e.destroy,Z.prototype._undestroy=e.undestroy,Z.prototype._destroy=function(O,$){$(O)}},828:function(Y,I,n){"use strict";var i,c=n(4155);function o(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"),g=Symbol("error"),E=Symbol("ended"),u=Symbol("lastPromise"),C=Symbol("handlePromise"),e=Symbol("stream");function f(d,v){return{value:d,done:v}}function B(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(B,d)}var p=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((o(i={get stream(){return this[e]},next:function(){var v=this,D=this[g];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,b){c.nextTick(function(){v[g]?b(v[g]):z(f(void 0,!0))})});var T,U=this[u];if(U)T=new Promise(function Q(d,v){return function(D,U){d.then(function(){v[E]?D(f(void 0,!0)):v[C](D,U)},U)}}(U,this));else{var F=this[e].read();if(null!==F)return Promise.resolve(f(F,!1));T=new Promise(this[C])}return this[u]=T,T}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var v=this;return new Promise(function(D,U){v[e].destroy(null,function(T){T?U(T):D(f(void 0,!0))})})}),i),p);Y.exports=function(v){var D,U=Object.create(S,(o(D={},e,{value:v,writable:!0}),o(D,h,{value:null,writable:!0}),o(D,a,{value:null,writable:!0}),o(D,g,{value:null,writable:!0}),o(D,E,{value:v._readableState.endEmitted,writable:!0}),o(D,C,{value:function(F,z){var b=U[e].read();b?(U[u]=null,U[h]=null,U[a]=null,F(f(b,!1))):(U[h]=F,U[a]=z)},writable:!0}),D));return U[u]=null,l(v,function(T){if(T&&"ERR_STREAM_PREMATURE_CLOSE"!==T.code){var F=U[a];return null!==F&&(U[u]=null,U[h]=null,U[a]=null,F(T)),void(U[g]=T)}var z=U[h];null!==z&&(U[u]=null,U[h]=null,U[a]=null,z(f(void 0,!0))),U[E]=!0}),v.on("readable",w.bind(null,U)),U}},1029:function(Y,I,n){"use strict";var c=n(4155);function o(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)}Y.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(B){!u&&B?C._writableState?C._writableState.errorEmitted?c.nextTick(l,C):(C._writableState.errorEmitted=!0,c.nextTick(o,C,B)):c.nextTick(o,C,B):u?(c.nextTick(l,C),u(B)):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 g(E,u){var C=E._readableState,e=E._writableState;C&&C.autoDestroy||e&&e.autoDestroy?E.destroy(u):E.emit("error",u)}}},1086:function(Y,I,n){"use strict";var c=n(8106).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}Y.exports=function h(a,g,E){if("function"==typeof g)return h(a,null,g);g||(g={}),E=function i(a){var g=!1;return function(){if(!g){g=!0;for(var E=arguments.length,u=new Array(E),C=0;C0,function(T){S||(S=T),T&&m.forEach(u),!D&&(m.forEach(u),p(S))})});return w.reduce(C)}},94:function(Y,I,n){"use strict";var c=n(8106).q.ERR_INVALID_OPT_VALUE;Y.exports={getHighWaterMark:function o(l,h,a,g){var E=function i(l,h,a){return null!=l.highWaterMark?l.highWaterMark:h?l[a]:null}(h,g,a);if(null!=E){if(!isFinite(E)||Math.floor(E)!==E||E<0)throw new c(g?a:"highWaterMark",E);return Math.floor(E)}return l.objectMode?16:16384}}},3194:function(Y,I,n){Y.exports=n(7187).EventEmitter},1818:function(Y,I,n){var c,o;void 0!==(o="function"==typeof(c=function(){"use strict";function h(e,f,B){var w=new XMLHttpRequest;w.open("GET",e),w.responseType="blob",w.onload=function(){C(w.response,f,B)},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(B){}return 200<=f.status&&299>=f.status}function g(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(B){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,B){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?g(Q):a(Q.href)?h(e,f,B):g(Q,Q.target="_blank")):(Q.href=w.createObjectURL(e),setTimeout(function(){w.revokeObjectURL(Q.href)},4e4),setTimeout(function(){g(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(e,f,B){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,B),f);else if(a(e))h(e,f,B);else{var w=document.createElement("a");w.href=e,w.target="_blank",setTimeout(function(){g(w)})}}:function(e,f,B,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof e)return h(e,f,B);var Q="application/octet-stream"===e.type,p=/constructor/i.test(E.HTMLElement)||E.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||Q&&p||u)&&"undefined"!=typeof FileReader){var m=new FileReader;m.onloadend=function(){var D=m.result;D=S?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=D:location=D,w=null},m.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,Y.exports=C})?c.apply(I,[]):c)&&(Y.exports=o)},2553:function(Y,I,n){"use strict";var c=n(1750).Buffer,i=c.isEncoding||function(m){switch((m=""+m)&&m.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(m){var d;switch(this.encoding=function l(m){var d=function o(m){if(!m)return"utf8";for(var d;;)switch(m){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 m;default:if(d)return;m=(""+m).toLowerCase(),d=!0}}(m);if("string"!=typeof d&&(c.isEncoding===i||!i(m)))throw new Error("Unknown encoding: "+m);return d||m}(m),this.encoding){case"utf16le":this.text=f,this.end=B,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=S)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(d)}function a(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function u(m){var d=this.lastTotal-this.lastNeed,v=function E(m,d,v){if(128!=(192&d[0]))return m.lastNeed=0,"\ufffd";if(m.lastNeed>1&&d.length>1){if(128!=(192&d[1]))return m.lastNeed=1,"\ufffd";if(m.lastNeed>2&&d.length>2&&128!=(192&d[2]))return m.lastNeed=2,"\ufffd"}}(this,m);return void 0!==v?v:this.lastNeed<=m.length?(m.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,d,0,m.length),void(this.lastNeed-=m.length))}function f(m,d){if((m.length-d)%2==0){var v=m.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]=m[m.length-2],this.lastChar[1]=m[m.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",d,m.length-1)}function B(m){var d=m&&m.length?this.write(m):"";return this.lastNeed?d+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):d}function w(m,d){var v=(m.length-d)%3;return 0===v?m.toString("base64",d):(this.lastNeed=3-v,this.lastTotal=3,1===v?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",d,m.length-v))}function Q(m){var d=m&&m.length?this.write(m):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function p(m){return m.toString(this.encoding)}function S(m){return m&&m.length?this.write(m):""}I.s=h,h.prototype.write=function(m){if(0===m.length)return"";var d,v;if(this.lastNeed){if(void 0===(d=this.fillLast(m)))return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v=0?(U>0&&(m.lastNeed=U-1),U):--D=0?(U>0&&(m.lastNeed=U-2),U):--D=0?(U>0&&(2===U?U=0:m.lastNeed=U-3),U):0}(this,m,d);if(!this.lastNeed)return m.toString("utf8",d);this.lastTotal=v;var D=m.length-(v-this.lastNeed);return m.copy(this.lastChar,0,D),m.toString("utf8",d,D)},h.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},311:function(Y){function c(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(T,F){this.source=T,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=F,this.destLen=0,this.ltree=new c,this.dtree=new c}var o=new c,l=new c,h=new Uint8Array(30),a=new Uint16Array(30),g=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(T,F,z,b){var Z,aA;for(Z=0;Z>>=1,F}function S(T,F,z){if(!F)return z;for(;T.bitcount<24;)T.tag|=T.source[T.sourceIndex++]<>>16-F;return T.tag>>>=F,T.bitcount-=F,b+z}function m(T,F){for(;T.bitcount<24;)T.tag|=T.source[T.sourceIndex++]<>>=1,++Z,z+=F.table[Z],b-=F.table[Z]}while(b>=0);return T.tag=aA,T.bitcount-=Z,F.trans[z+b]}function d(T,F,z){var b,Z,aA,AA,lA,MA;for(b=S(T,5,257),Z=S(T,5,1),aA=S(T,4,4),AA=0;AA<19;++AA)e[AA]=0;for(AA=0;AA8;)T.sourceIndex--,T.bitcount-=8;if((F=256*(F=T.source[T.sourceIndex+1])+T.source[T.sourceIndex])!==(65535&~(256*T.source[T.sourceIndex+3]+T.source[T.sourceIndex+2])))return-3;for(T.sourceIndex+=4,b=F;b;--b)T.dest[T.destLen++]=T.source[T.sourceIndex++];return T.bitcount=0,0}(function B(T,F){var z;for(z=0;z<7;++z)T.table[z]=0;for(T.table[7]=24,T.table[8]=152,T.table[9]=112,z=0;z<24;++z)T.trans[z]=256+z;for(z=0;z<144;++z)T.trans[24+z]=z;for(z=0;z<8;++z)T.trans[168+z]=280+z;for(z=0;z<112;++z)T.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})(o,l),f(h,a,4,3),f(g,E,2,1),h[28]=0,a[28]=258,Y.exports=function U(T,F){var b,aA,z=new i(T,F);do{switch(b=p(z),S(z,2,0)){case 0:aA=D(z);break;case 1:aA=v(z,o,l);break;case 2:d(z,z.ltree,z.dtree),aA=v(z,z.ltree,z.dtree);break;default:aA=-3}if(0!==aA)throw new Error("Data error")}while(!b);return z.destLen=eA.length?{done:!0}:{done:!1,value:eA[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(eA,G){(null==G||G>eA.length)&&(G=eA.length);for(var V=0,M=new Array(G);V0?iA[0]:"value";if(tA.has(jA))return tA.get(jA);var lt=x.apply(this,iA);return tA.set(jA,lt),lt}return Object.defineProperty(this,G,{value:oA}),oA}}}}D.registerFormat=function(eA){U.push(eA)},D.openSync=function(eA,G){var V=v.readFileSync(eA);return D.create(V,G)},D.open=function(eA,G,V){"function"==typeof G&&(V=G,G=null),v.readFile(eA,function(M,x){if(M)return V(M);try{var P=D.create(x,G)}catch(tA){return V(tA)}return V(null,P)})},D.create=function(eA,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(eA){return(eA.length-eA._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(Z,"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(Z,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(Z,"nGroups")},14:{length:e.uint32,numRecords:e.uint32,varSelectors:new e.LazyArray(cA,"numRecords")}}),BA=new e.Struct({platformID:e.uint16,encodingID:e.uint16,table:new e.Pointer(e.uint32,gA,{type:"parent",lazy:!0})}),DA=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(BA,"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}),dA=new e.Struct({advance:e.uint16,bearing:e.int16}),uA=new e.Struct({metrics:new e.LazyArray(dA,function(eA){return eA.parent.hhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.hhea.numberOfMetrics})}),CA=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(eA,G,V){return void 0===V&&(V=0),1===eA&&XA[V]?XA[V]:bA[eA][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"},q=[[],{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(eA){return SA(eA.platformID,eA.encodingID,eA.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(eA){for(var M,G={},V=g(this.records);!(M=V()).done;){var x=M.value,P=q[x.platformID][x.languageID];null==P&&null!=this.langTags&&x.languageID>=32768&&(P=this.langTags[x.languageID-32768].tag),null==P&&(P=x.platformID+"-"+x.languageID);var tA=x.nameID>=256?"fontFeatures":hA[x.nameID]||x.nameID;null==G[tA]&&(G[tA]={});var oA=G[tA];x.nameID>=256&&(oA=oA[x.nameID]||(oA[x.nameID]={})),("string"==typeof x.string||"string"!=typeof oA[P])&&(oA[P]=x.string)}this.records=G},W.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var eA=[];for(var G in this.records){var V=this.records[G];"fontFeatures"!==G&&(eA.push({platformID:3,encodingID:1,languageID:1033,nameID:hA.indexOf(G),length:c.byteLength(V.en,"utf16le"),string:V.en}),"postscriptName"===G&&eA.push({platformID:1,encodingID:0,languageID:0,nameID:hA.indexOf(G),length:V.en.length,string:V.en}))}this.records=eA,this.count=eA.length,this.stringOffset=W.size(this,null,!1)}};var mA=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=mA.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(eA){return eA.parent.maxp.numGlyphs})}}),GA=new e.Struct({controlValues:new e.Array(e.int16)}),et=new e.Struct({instructions:new e.Array(e.uint8)}),ot=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}});ot.process=function(){if(0===this.version)for(var eA=0;eA>>=1};var TA=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),it=new e.Array(new e.Buffer),mt=function(){function eA(V){this.type=V}var G=eA.prototype;return G.getCFFVersion=function(M){for(;M&&!M.hdrSize;)M=M.parent;return M?M.version:-1},G.decode=function(M,x){var tA=this.getCFFVersion(x)>=2?M.readUInt32BE():M.readUInt16BE();if(0===tA)return[];var sA,oA=M.readUInt8();if(1===oA)sA=e.uint8;else if(2===oA)sA=e.uint16;else if(3===oA)sA=e.uint24;else{if(4!==oA)throw new Error("Bad offset size in CFFIndex: ".concat(oA," ").concat(M.pos));sA=e.uint32}for(var iA=[],NA=M.pos+(tA+1)*oA-1,jA=sA.decode(M),lt=0;lt>4;if(15===tA)break;x+=ft[tA];var oA=15&P;if(15===oA)break;x+=ft[oA]}return parseFloat(x)}return null},eA.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},eA.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 P=""+x,tA=0;tAP;)x.pop()},eA}(),null],[19,"Subrs",new yA(new mt,{type:"local"}),null]]),Yt=[".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"],R=[".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"})}),ct=new e.Struct({defaultLangSys:new e.Pointer(e.uint16,RA),count:e.uint16,langSysRecords:new e.Array(rA,"count")}),Ft=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,ct,{type:"parent"})}),j=new e.Array(Ft,e.uint16),kA=new e.Struct({featureParams:e.uint16,lookupCount:e.uint16,lookupListIndexes:new e.Array(e.uint16,"lookupCount")}),At=new e.Struct({tag:new e.String(4),feature:new e.Pointer(e.uint16,kA,{type:"parent"})}),xA=new e.Array(At,e.uint16),KA=new e.Struct({markAttachmentType:e.uint8,flags:new e.Bitfield(e.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function st(eA){var G=new e.Struct({lookupType:e.uint16,flags:KA,subTableCount:e.uint16,subTables:new e.Array(new e.Pointer(e.uint16,eA),"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 Lt=new e.Struct({start:e.uint16,end:e.uint16,startCoverageIndex:e.uint16}),Dt=new e.VersionedStruct(e.uint16,{1:{glyphCount:e.uint16,glyphs:new e.Array(e.uint16,"glyphCount")},2:{rangeCount:e.uint16,rangeRecords:new e.Array(Lt,"rangeCount")}}),Rt=new e.Struct({start:e.uint16,end:e.uint16,class:e.uint16}),Vt=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(Rt,"classRangeCount")}}),Le=new e.Struct({a:e.uint16,b:e.uint16,deltaFormat:e.uint16}),re=new e.Struct({sequenceIndex:e.uint16,lookupListIndex:e.uint16}),Ae=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,input:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(re,"lookupCount")}),ye=new e.Array(new e.Pointer(e.uint16,Ae),e.uint16),be=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,classes:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(re,"lookupCount")}),Re=new e.Array(new e.Pointer(e.uint16,be),e.uint16),yn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),ruleSetCount:e.uint16,ruleSets:new e.Array(new e.Pointer(e.uint16,ye),"ruleSetCount")},2:{coverage:new e.Pointer(e.uint16,Dt),classDef:new e.Pointer(e.uint16,Vt),classSetCnt:e.uint16,classSet:new e.Array(new e.Pointer(e.uint16,Re),"classSetCnt")},3:{glyphCount:e.uint16,lookupCount:e.uint16,coverages:new e.Array(new e.Pointer(e.uint16,Dt),"glyphCount"),lookupRecords:new e.Array(re,"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(eA){return eA.inputGlyphCount-1}),lookaheadGlyphCount:e.uint16,lookahead:new e.Array(e.uint16,"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(re,"lookupCount")}),ne=new e.Array(new e.Pointer(e.uint16,xn),e.uint16),tn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),chainCount:e.uint16,chainRuleSets:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},2:{coverage:new e.Pointer(e.uint16,Dt),backtrackClassDef:new e.Pointer(e.uint16,Vt),inputClassDef:new e.Pointer(e.uint16,Vt),lookaheadClassDef:new e.Pointer(e.uint16,Vt),chainCount:e.uint16,chainClassSet:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},3:{backtrackGlyphCount:e.uint16,backtrackCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"backtrackGlyphCount"),inputGlyphCount:e.uint16,inputCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"inputGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(re,"lookupCount")}}),Te=new e.Fixed(16,"BE",14),en=new e.Struct({startCoord:Te,peakCoord:Te,endCoord:Te}),Xe=new e.Struct({axisCount:e.uint16,regionCount:e.uint16,variationRegions:new e.Array(new e.Array(en,"axisCount"),"regionCount")}),Ln=new e.Struct({shortDeltas:new e.Array(e.int16,function(eA){return eA.parent.shortDeltaCount}),regionDeltas:new e.Array(e.int8,function(eA){return eA.parent.regionIndexCount-eA.parent.shortDeltaCount}),deltas:function(G){return G.shortDeltas.concat(G.regionDeltas)}}),bn=new e.Struct({itemCount:e.uint16,shortDeltaCount:e.uint16,regionIndexCount:e.uint16,regionIndexes:new e.Array(e.uint16,"regionIndexCount"),deltaSets:new e.Array(Ln,"itemCount")}),Jt=new e.Struct({format:e.uint16,variationRegionList:new e.Pointer(e.uint32,Xe),variationDataCount:e.uint16,itemVariationData:new e.Array(new e.Pointer(e.uint32,bn),"variationDataCount")}),bt=new e.VersionedStruct(e.uint16,{1:(i={axisIndex:e.uint16},i.axisIndex=e.uint16,i.filterRangeMinValue=Te,i.filterRangeMaxValue=Te,i)}),Xt=new e.Struct({conditionCount:e.uint16,conditionTable:new e.Array(new e.Pointer(e.uint32,bt),"conditionCount")}),oe=new e.Struct({featureIndex:e.uint16,alternateFeatureTable:new e.Pointer(e.uint32,kA,{type:"parent"})}),vn=new e.Struct({version:e.fixed32,substitutionCount:e.uint16,substitutions:new e.Array(oe,"substitutionCount")}),pn=new e.Struct({conditionSet:new e.Pointer(e.uint32,Xt,{type:"parent"}),featureTableSubstitution:new e.Pointer(e.uint32,vn,{type:"parent"})}),Yn=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,featureVariationRecordCount:e.uint32,featureVariationRecords:new e.Array(pn,"featureVariationRecordCount")}),jn=function(){function eA(V,M){this.predefinedOps=V,this.type=M}var G=eA.prototype;return G.decode=function(M,x,P){return this.predefinedOps[P[0]]?this.predefinedOps[P[0]]:this.type.decode(M,x,P)},G.size=function(M,x){return this.type.size(M,x)},G.encode=function(M,x,P){var tA=this.predefinedOps.indexOf(x);return-1!==tA?tA:this.type.encode(M,x,P)},eA}(),Br=function(eA){function G(){return eA.call(this,"UInt8")||this}return h(G,eA),G.prototype.decode=function(x){return 127&e.uint8.decode(x)},G}(e.Number),Tn=new e.Struct({first:e.uint16,nLeft:e.uint8}),ZA=new e.Struct({first:e.uint16,nLeft:e.uint16}),tt=new jn([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 yA(new e.VersionedStruct(new Br,{0:{nCodes:e.uint8,codes:new e.Array(e.uint8,"nCodes")},1:{nRanges:e.uint8,ranges:new e.Array(Tn,"nRanges")}}),{lazy:!0})),UA=function(eA){function G(){return eA.apply(this,arguments)||this}return h(G,eA),G.prototype.decode=function(x,P){for(var tA=f.resolveLength(this.length,x,P),oA=0,sA=[];oA=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 P=0;P>1;if(M=x[oA+1].first))return x[oA].fd;P=oA+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(eA,[{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)}}]),eA}(),wt=new e.Struct({glyphIndex:e.uint16,vertOriginY:e.int16}),Pt=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,defaultVertOriginY:e.int16,numVertOriginYMetrics:e.uint16,metrics:new e.Array(wt,"numVertOriginYMetrics")}),jt=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}),Ht=new e.Struct({height:e.uint8,width:e.uint8,bearingX:e.int8,bearingY:e.int8,advance:e.uint8}),ce=new e.Struct({glyph:e.uint16,xOffset:e.int8,yOffset:e.int8}),Zt=function(){},ue=function(){},ve=(new e.VersionedStruct("version",{1:{metrics:Ht,data:Zt},2:{metrics:Ht,data:ue},5:{data:ue},6:{metrics:jt,data:Zt},7:{metrics:jt,data:ue},8:{metrics:Ht,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},9:{metrics:jt,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},17:{metrics:Ht,dataLen:e.uint32,data:new e.Buffer("dataLen")},18:{metrics:jt,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)})),Ge=new e.Struct({glyphCode:e.uint16,offset:e.uint16}),Se=new e.VersionedStruct(e.uint16,{header:{imageFormat:e.uint16,imageDataOffset:e.uint32},1:{offsetArray:new e.Array(e.uint32,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},2:{imageSize:e.uint32,bigMetrics:jt},3:{offsetArray:new e.Array(e.uint16,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},4:{numGlyphs:e.uint32,glyphArray:new e.Array(Ge,function(eA){return eA.numGlyphs+1})},5:{imageSize:e.uint32,bigMetrics:jt,numGlyphs:e.uint32,glyphCodeArray:new e.Array(e.uint16,"numGlyphs")}}),xe=new e.Struct({firstGlyphIndex:e.uint16,lastGlyphIndex:e.uint16,subtable:new e.Pointer(e.uint32,Se)}),Ne=new e.Struct({indexSubTableArray:new e.Pointer(e.uint32,new e.Array(xe,1),{type:"parent"}),indexTablesSize:e.uint32,numberOfIndexSubTables:e.uint32,colorRef:e.uint32,hori:ve,vert:ve,startGlyphIndex:e.uint16,endGlyphIndex:e.uint16,ppemX:e.uint8,ppemY:e.uint8,bitDepth:e.uint8,flags:new e.Bitfield(e.uint8,["horizontal","vertical"])}),_e=new e.Struct({version:e.uint32,numSizes:e.uint32,sizes:new e.Array(Ne,"numSizes")}),Fn=new e.Struct({ppem:e.uint16,resolution:e.uint16,imageOffsets:new e.Array(new e.Pointer(e.uint32,"void"),function(eA){return eA.parent.parent.maxp.numGlyphs+1})}),rn=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")}),Cn=new e.Struct({gid:e.uint16,paletteIndex:e.uint16}),In=new e.Struct({gid:e.uint16,firstLayerIndex:e.uint16,numLayers:e.uint16}),an=new e.Struct({version:e.uint16,numBaseGlyphRecords:e.uint16,baseGlyphRecord:new e.Pointer(e.uint32,new e.Array(In,"numBaseGlyphRecords")),layerRecords:new e.Pointer(e.uint32,new e.Array(Cn,"numLayerRecords"),{lazy:!0}),numLayerRecords:e.uint16}),fn=new e.Struct({blue:e.uint8,green:e.uint8,red:e.uint8,alpha:e.uint8}),cn=new e.VersionedStruct(e.uint16,{header:{numPaletteEntries:e.uint16,numPalettes:e.uint16,numColorRecords:e.uint16,colorRecords:new e.Pointer(e.uint32,new e.Array(fn,"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"))}}),Xn=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,Le)}}),Fr=new e.Struct({defaultIndex:e.uint16,baseCoordCount:e.uint16,baseCoords:new e.Array(new e.Pointer(e.uint16,Xn),"baseCoordCount")}),Yr=new e.Struct({tag:new e.String(4),minCoord:new e.Pointer(e.uint16,Xn,{type:"parent"}),maxCoord:new e.Pointer(e.uint16,Xn,{type:"parent"})}),nr=new e.Struct({minCoord:new e.Pointer(e.uint16,Xn),maxCoord:new e.Pointer(e.uint16,Xn),featMinMaxCount:e.uint16,featMinMaxRecords:new e.Array(Yr,"featMinMaxCount")}),hn=new e.Struct({tag:new e.String(4),minMax:new e.Pointer(e.uint16,nr,{type:"parent"})}),qn=new e.Struct({baseValues:new e.Pointer(e.uint16,Fr),defaultMinMax:new e.Pointer(e.uint16,nr),baseLangSysCount:e.uint16,baseLangSysRecords:new e.Array(hn,"baseLangSysCount")}),IA=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,qn,{type:"parent"})}),J=new e.Array(IA,e.uint16),N=new e.Array(new e.String(4),e.uint16),X=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,X),vertAxis:new e.Pointer(e.uint16,X)},65536:{},65537:{itemVariationStore:new e.Pointer(e.uint32,Jt)}}),fA=new e.Array(e.uint16,e.uint16),pA=new e.Struct({coverage:new e.Pointer(e.uint16,Dt),glyphCount:e.uint16,attachPoints:new e.Array(new e.Pointer(e.uint16,fA),"glyphCount")}),_A=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{caretValuePoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Le)}}),nt=new e.Array(new e.Pointer(e.uint16,_A),e.uint16),ut=new e.Struct({coverage:new e.Pointer(e.uint16,Dt),ligGlyphCount:e.uint16,ligGlyphs:new e.Array(new e.Pointer(e.uint16,nt),"ligGlyphCount")}),Qt=new e.Struct({markSetTableFormat:e.uint16,markSetCount:e.uint16,coverage:new e.Array(new e.Pointer(e.uint32,Dt),"markSetCount")}),vt=new e.VersionedStruct(e.uint32,{header:{glyphClassDef:new e.Pointer(e.uint16,Vt),attachList:new e.Pointer(e.uint16,pA),ligCaretList:new e.Pointer(e.uint16,ut),markAttachClassDef:new e.Pointer(e.uint16,Vt)},65536:{},65538:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt)},65539:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt),itemVariationStore:new e.Pointer(e.uint32,Jt)}}),xt=new e.Bitfield(e.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),Tt={xPlacement:e.int16,yPlacement:e.int16,xAdvance:e.int16,yAdvance:e.int16,xPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}}),yPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}}),xAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}}),yAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}})},Ot=function(){function eA(V){void 0===V&&(V="valueFormat"),this.key=V}var G=eA.prototype;return G.buildStruct=function(M){for(var x=M;!x[this.key]&&x.parent;)x=x.parent;if(x[this.key]){var P={rel:function(){return x._startOffset}},tA=x[this.key];for(var oA in tA)tA[oA]&&(P[oA]=Tt[oA]);return new e.Struct(P)}},G.size=function(M,x){return this.buildStruct(x).size(M,x)},G.decode=function(M,x){var P=this.buildStruct(x).decode(M,x);return delete P.rel,P},eA}(),Kt=new e.Struct({secondGlyph:e.uint16,value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),fe=new e.Array(Kt,e.uint16),Ee=new e.Struct({value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),Ie=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,Le),yDeviceTable:new e.Pointer(e.uint16,Le)}}),nn=new e.Struct({entryAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"}),exitAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"})}),Me=new e.Struct({class:e.uint16,markAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"})}),je=new e.Array(Me,e.uint16),Qn=new e.Array(new e.Pointer(e.uint16,Ie),function(eA){return eA.parent.classCount}),Ke=new e.Array(Qn,e.uint16),dn=new e.Array(new e.Pointer(e.uint16,Ie),function(eA){return eA.parent.parent.classCount}),Kn=new e.Array(dn,e.uint16),_n=new e.Array(new e.Pointer(e.uint16,Kn),e.uint16),Sn=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),valueFormat:xt,value:new Ot},2:{coverage:new e.Pointer(e.uint16,Dt),valueFormat:xt,valueCount:e.uint16,values:new e.LazyArray(new Ot,"valueCount")}}),2:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),valueFormat1:xt,valueFormat2:xt,pairSetCount:e.uint16,pairSets:new e.LazyArray(new e.Pointer(e.uint16,fe),"pairSetCount")},2:{coverage:new e.Pointer(e.uint16,Dt),valueFormat1:xt,valueFormat2:xt,classDef1:new e.Pointer(e.uint16,Vt),classDef2:new e.Pointer(e.uint16,Vt),class1Count:e.uint16,class2Count:e.uint16,classRecords:new e.LazyArray(new e.LazyArray(Ee,"class2Count"),"class1Count")}}),3:{format:e.uint16,coverage:new e.Pointer(e.uint16,Dt),entryExitCount:e.uint16,entryExitRecords:new e.Array(nn,"entryExitCount")},4:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,Dt),baseCoverage:new e.Pointer(e.uint16,Dt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,je),baseArray:new e.Pointer(e.uint16,Ke)},5:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,Dt),ligatureCoverage:new e.Pointer(e.uint16,Dt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,je),ligatureArray:new e.Pointer(e.uint16,_n)},6:{format:e.uint16,mark1Coverage:new e.Pointer(e.uint16,Dt),mark2Coverage:new e.Pointer(e.uint16,Dt),classCount:e.uint16,mark1Array:new e.Pointer(e.uint16,je),mark2Array:new e.Pointer(e.uint16,Ke)},7:yn,8:tn,9:{posFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,Sn)}});Sn.versions[9].extension.type=Sn;var Rr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,xA),lookupList:new e.Pointer(e.uint16,new st(Sn))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Yn)}}),Hn=new e.Array(e.uint16,e.uint16),rr=Hn,Qr=new e.Struct({glyph:e.uint16,compCount:e.uint16,components:new e.Array(e.uint16,function(eA){return eA.compCount-1})}),$n=new e.Array(new e.Pointer(e.uint16,Qr),e.uint16),ur=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),deltaGlyphID:e.int16},2:{coverage:new e.Pointer(e.uint16,Dt),glyphCount:e.uint16,substitute:new e.LazyArray(e.uint16,"glyphCount")}}),2:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,Dt),count:e.uint16,sequences:new e.LazyArray(new e.Pointer(e.uint16,Hn),"count")},3:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,Dt),count:e.uint16,alternateSet:new e.LazyArray(new e.Pointer(e.uint16,rr),"count")},4:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,Dt),count:e.uint16,ligatureSets:new e.LazyArray(new e.Pointer(e.uint16,$n),"count")},5:yn,6:tn,7:{substFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,ur)},8:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,Dt),backtrackCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"backtrackGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"lookaheadGlyphCount"),glyphCount:e.uint16,substitutes:new e.Array(e.uint16,"glyphCount")}});ur.versions[7].extension.type=ur;var zr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,xA),lookupList:new e.Pointer(e.uint16,new st(ur))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Yn)}}),Vn=new e.Array(e.uint16,e.uint16),Lr=new e.Struct({shrinkageEnableGSUB:new e.Pointer(e.uint16,Vn),shrinkageDisableGSUB:new e.Pointer(e.uint16,Vn),shrinkageEnableGPOS:new e.Pointer(e.uint16,Vn),shrinkageDisableGPOS:new e.Pointer(e.uint16,Vn),shrinkageJstfMax:new e.Pointer(e.uint16,new st(Sn)),extensionEnableGSUB:new e.Pointer(e.uint16,Vn),extensionDisableGSUB:new e.Pointer(e.uint16,Vn),extensionEnableGPOS:new e.Pointer(e.uint16,Vn),extensionDisableGPOS:new e.Pointer(e.uint16,Vn),extensionJstfMax:new e.Pointer(e.uint16,new st(Sn))}),dr=new e.Array(new e.Pointer(e.uint16,Lr),e.uint16),br=new e.Struct({tag:new e.String(4),jstfLangSys:new e.Pointer(e.uint16,dr)}),Gr=new e.Struct({extenderGlyphs:new e.Pointer(e.uint16,new e.Array(e.uint16,e.uint16)),defaultLangSys:new e.Pointer(e.uint16,dr),langSysCount:e.uint16,langSysRecords:new e.Array(br,"langSysCount")}),si=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Gr,{type:"parent"})}),Hr=new e.Struct({version:e.uint32,scriptCount:e.uint16,scriptList:new e.Array(si,"scriptCount")}),Jr=new e.Struct({entry:new(function(){function eA(V){this._size=V}var G=eA.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)},eA}())(function(eA){return 1+((48&eA.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}}),Wn=new e.Struct({entryFormat:e.uint16,mapCount:e.uint16,mapData:new e.Array(Jr,"mapCount")}),bi=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,itemVariationStore:new e.Pointer(e.uint32,Jt),advanceWidthMapping:new e.Pointer(e.uint32,Wn),LSBMapping:new e.Pointer(e.uint32,Wn),RSBMapping:new e.Pointer(e.uint32,Wn)}),Gi=new e.Struct({format:e.uint32,length:e.uint32,offset:e.uint32}),aa=new e.Struct({reserved:new e.Reserved(e.uint16,2),cbSignature:e.uint32,signature:new e.Buffer("cbSignature")}),oo=new e.Struct({ulVersion:e.uint32,usNumSigs:e.uint16,usFlag:e.uint16,signatures:new e.Array(Gi,"usNumSigs"),signatureBlocks:new e.Array(aa,"usNumSigs")}),so=new e.Struct({rangeMaxPPEM:e.uint16,rangeGaspBehavior:new e.Bitfield(e.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),lo=new e.Struct({version:e.uint16,numRanges:e.uint16,gaspRanges:new e.Array(so,"numRanges")}),co=new e.Struct({pixelSize:e.uint8,maximumWidth:e.uint8,widths:new e.Array(e.uint8,function(eA){return eA.parent.parent.maxp.numGlyphs})}),go=new e.Struct({version:e.uint16,numRecords:e.int16,sizeDeviceRecord:e.int32,records:new e.Array(co,"numRecords")}),Bo=new e.Struct({left:e.uint16,right:e.uint16,value:e.int16}),oa=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)}}),uo=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")}),sa=new e.VersionedStruct("format",{0:{nPairs:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,pairs:new e.Array(Bo,"nPairs")},2:{rowWidth:e.uint16,leftTable:new e.Pointer(e.uint16,oa,{type:"parent"}),rightTable:new e.Pointer(e.uint16,oa,{type:"parent"}),array:new e.Pointer(e.uint16,uo,{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(eA){return eA.leftClassCount*eA.rightClassCount})}}),la=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:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._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:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}}),ca=new e.VersionedStruct(e.uint16,{0:{nTables:e.uint16,tables:new e.Array(la,"nTables")},1:{reserved:new e.Reserved(e.uint16),nTables:e.uint32,tables:new e.Array(la,"nTables")}}),fo=new e.Struct({version:e.uint16,numGlyphs:e.uint16,yPels:new e.Array(e.uint8,"numGlyphs")}),ho=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)}),Eo=new e.Struct({bCharSet:e.uint8,xRatio:e.uint8,yStartRatio:e.uint8,yEndRatio:e.uint8}),wo=new e.Struct({yPelHeight:e.uint16,yMax:e.int16,yMin:e.int16}),Co=new e.Struct({recs:e.uint16,startsz:e.uint8,endsz:e.uint8,entries:new e.Array(wo,"recs")}),Qo=new e.Struct({version:e.uint16,numRecs:e.uint16,numRatios:e.uint16,ratioRanges:new e.Array(Eo,"numRatios"),offsets:new e.Array(e.uint16,"numRatios"),groups:new e.Array(Co,"numRecs")}),Mo=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}),po=new e.Struct({advance:e.uint16,bearing:e.int16}),Io=new e.Struct({metrics:new e.LazyArray(po,function(eA){return eA.parent.vhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.vhea.numberOfMetrics})}),ga=new e.Fixed(16,"BE",14),mo=new e.Struct({fromCoord:ga,toCoord:ga}),vo=new e.Struct({pairCount:e.uint16,correspondence:new e.Array(mo,"pairCount")}),Do=new e.Struct({version:e.fixed32,axisCount:e.uint32,segment:new e.Array(vo,"axisCount")}),yo=function(){function eA(V,M,x){this.type=V,this.stream=M,this.parent=x,this.base=this.stream.pos,this._items=[]}var G=eA.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,"]")},eA}(),Ar=function(eA){function G(M){return eA.call(this,M,0)||this}return h(G,eA),G.prototype.decode=function(x,P){return new yo(this.type,x,P)},G}(e.Array),fr=function(G){void 0===G&&(G=e.uint16),G=new(function(){function oA(iA){this.type=iA}var sA=oA.prototype;return sA.decode=function(NA,jA){return this.type.decode(NA,jA=jA.parent.parent)},sA.size=function(NA,jA){return this.type.size(NA,jA=jA.parent.parent)},sA.encode=function(NA,jA,lt){return this.type.encode(NA,jA,lt=lt.parent.parent)},oA}())(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}),P=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,values:new e.Pointer(e.uint16,new e.Array(G,function(oA){return oA.lastGlyph-oA.firstGlyph+1}),{type:"parent"})}),tA=new e.Struct({glyph:e.uint16,value:G});return new e.VersionedStruct(e.uint16,{0:{values:new Ar(G)},2:{binarySearchHeader:M,segments:new e.Array(x,function(oA){return oA.binarySearchHeader.nUnits})},4:{binarySearchHeader:M,segments:new e.Array(P,function(oA){return oA.binarySearchHeader.nUnits})},6:{binarySearchHeader:M,segments:new e.Array(tA,function(oA){return oA.binarySearchHeader.nUnits})},8:{firstGlyph:e.uint16,count:e.uint16,values:new e.Array(G,"count")}})};function li(eA,G){void 0===eA&&(eA={}),void 0===G&&(G=e.uint16);var V=Object.assign({newState:e.uint16,flags:e.uint16},eA),M=new e.Struct(V),x=new Ar(new e.Array(e.uint16,function(tA){return tA.nClasses}));return new e.Struct({nClasses:e.uint32,classTable:new e.Pointer(e.uint32,new fr(G)),stateArray:new e.Pointer(e.uint32,x),entryTable:new e.Pointer(e.uint32,new Ar(M))})}var Ba=new e.VersionedStruct("format",{0:{deltas:new e.Array(e.int16,32)},1:{deltas:new e.Array(e.int16,32),mappingData:new fr(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 fr(e.uint16)}}),Fo=new e.Struct({version:e.fixed32,format:e.uint16,defaultBaseline:e.uint16,subtable:Ba}),ua=new e.Struct({setting:e.uint16,nameIndex:e.int16,name:function(G){return G.parent.parent.parent.name.records.fontFeatures[G.nameIndex]}}),Tr=new e.Struct({feature:e.uint16,nSettings:e.uint16,settingTable:new e.Pointer(e.uint32,new e.Array(ua,"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]}}),ar=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(Tr,"featureNameCount")}),Mr=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]}}),Yo=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(eA){return eA.parent.axisCount}),postscriptNameID:new e.Optional(e.uint16,function(eA){return eA.parent.instanceSize-eA._currentOffset>0})}),To=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(Mr,"axisCount"),instance:new e.Array(Yo,"instanceCount")}),So=new e.Fixed(16,"BE",14),No=function(){function eA(){}return eA.decode=function(V,M){return M.flags?V.readUInt32BE():2*V.readUInt16BE()},eA}(),Uo=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(So,"axisCount"),"globalCoordCount")),glyphCount:e.uint16,flags:e.uint16,offsetToData:e.uint32,offsets:new e.Array(new e.Pointer(No,"void",{relativeTo:function(G){return G.offsetToData},allowNull:!1}),function(eA){return eA.glyphCount+1})}),Po=new e.Struct({length:e.uint16,coverage:e.uint16,subFeatureFlags:e.uint32,stateTable:new function xo(eA,G){void 0===eA&&(eA={}),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(sA){return(sA.newStateOffset-(sA.parent.stateArray.base-sA.parent._startOffset))/sA.parent.nClasses},flags:e.uint16},eA),x=new e.Struct(M),P=new Ar(new e.Array(e.uint8,function(oA){return oA.nClasses}));return new e.Struct({nClasses:e.uint16,classTable:new e.Pointer(e.uint16,V),stateArray:new e.Pointer(e.uint16,P),entryTable:new e.Pointer(e.uint16,new Ar(x))})}}),Ro=new e.Struct({justClass:e.uint32,beforeGrowLimit:e.fixed32,beforeShrinkLimit:e.fixed32,afterGrowLimit:e.fixed32,afterShrinkLimit:e.fixed32,growFlags:e.uint16,shrinkFlags:e.uint16}),zo=new e.Array(Ro,e.uint32),Lo=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}}),bo=new e.Struct({actionClass:e.uint16,actionType:e.uint16,actionLength:e.uint32,actionData:Lo,padding:new e.Reserved(e.uint8,function(eA){return eA.actionLength-eA._currentOffset})}),Go=new e.Array(bo,e.uint32),Ho=new e.Struct({lookupTable:new fr(new e.Pointer(e.uint16,Go))}),fa=new e.Struct({classTable:new e.Pointer(e.uint16,Po,{type:"parent"}),wdcOffset:e.uint16,postCompensationTable:new e.Pointer(e.uint16,Ho,{type:"parent"}),widthDeltaClusters:new fr(new e.Pointer(e.uint16,zo,{type:"parent",relativeTo:function(G){return G.wdcOffset}}))}),Jo=new e.Struct({version:e.uint32,format:e.uint16,horizontal:new e.Pointer(e.uint16,fa),vertical:new e.Pointer(e.uint16,fa)}),Oo={action:e.uint16},ha={markIndex:e.uint16,currentIndex:e.uint16},ko={currentInsertIndex:e.uint16,markedInsertIndex:e.uint16},jo=new e.Struct({items:new Ar(new e.Pointer(e.uint32,new fr))}),Ko=new e.VersionedStruct("type",{0:{stateTable:new li},1:{stateTable:new li(ha),substitutionTable:new e.Pointer(e.uint32,jo)},2:{stateTable:new li(Oo),ligatureActions:new e.Pointer(e.uint32,new Ar(e.uint32)),components:new e.Pointer(e.uint32,new Ar(e.uint16)),ligatureList:new e.Pointer(e.uint32,new Ar(e.uint16))},4:{lookupTable:new fr},5:{stateTable:new li(ko),insertionActions:new e.Pointer(e.uint32,new Ar(e.uint16))}}),Vo=new e.Struct({length:e.uint32,coverage:e.uint24,type:e.uint8,subFeatureFlags:e.uint32,table:Ko,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}),Wo=new e.Struct({featureType:e.uint16,featureSetting:e.uint16,enableFlags:e.uint32,disableFlags:e.uint32}),Zo=new e.Struct({defaultFlags:e.uint32,chainLength:e.uint32,nFeatureEntries:e.uint32,nSubtables:e.uint32,features:new e.Array(Wo,"nFeatureEntries"),subtables:new e.Array(Vo,"nSubtables")}),Xo=new e.Struct({version:e.uint16,unused:new e.Reserved(e.uint16),nChains:e.uint32,chains:new e.Array(Zo,"nChains")}),qo=new e.Struct({left:e.int16,top:e.int16,right:e.int16,bottom:e.int16}),_o=new e.Struct({version:e.fixed32,format:e.uint16,lookupTable:new fr(qo)}),se={};se.cmap=DA,se.head=FA,se.hhea=_,se.hmtx=uA,se.maxp=CA,se.name=W,se["OS/2"]=mA,se.post=EA,se.fpgm=et,se.loca=ot,se.prep=TA,se["cvt "]=GA,se.glyf=it,se["CFF "]=te,se.CFF2=te,se.VORG=Pt,se.EBLC=_e,se.CBLC=se.EBLC,se.sbix=rn,se.COLR=an,se.CPAL=cn,se.BASE=K,se.GDEF=vt,se.GPOS=Rr,se.GSUB=zr,se.JSTF=Hr,se.HVAR=bi,se.DSIG=oo,se.gasp=lo,se.hdmx=go,se.kern=ca,se.LTSH=fo,se.PCLT=ho,se.VDMX=Qo,se.vhea=Mo,se.vmtx=Io,se.avar=Do,se.bsln=Fo,se.feat=ar,se.fvar=To,se.gvar=Uo,se.just=Jo,se.morx=Xo,se.opbd=_o;var or,$o=new e.Struct({tag:new e.String(4),checkSum:e.uint32,offset:new e.Pointer(e.uint32,"void",{type:"global"}),length:e.uint32}),ci=new e.Struct({tag:new e.String(4),numTables:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,tables:new e.Array($o,"numTables")});function gi(eA,G){for(var V=0,M=eA.length-1;V<=M;){var x=V+M>>1,P=G(eA[x]);if(P<0)M=x-1;else{if(!(P>0))return x;V=x+1}}return-1}function Sr(eA,G){for(var V=[];eA>1;if(MsA.endCode.get(jA))){var lt=sA.idRangeOffset.get(jA),qA=void 0;if(0===lt)qA=M+sA.idDelta.get(jA);else{var Bt=lt/2+(M-sA.startCode.get(jA))-(sA.segCount-jA);0!==(qA=sA.glyphIndexArray.get(Bt)||0)&&(qA+=sA.idDelta.get(jA))}return 65535&qA}iA=jA+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return sA.glyphIndices.get(M-sA.firstCode)||0;case 12:case 13:for(var pt=0,yt=sA.nGroups-1;pt<=yt;){var Gt=pt+yt>>1,$t=sA.groups.get(Gt);if(M<$t.startCharCode)yt=Gt-1;else{if(!(M>$t.endCharCode))return 12===sA.version?$t.glyphID+(M-$t.startCharCode):$t.glyphID;pt=Gt+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format ".concat(sA.version))}},G.getVariationSelector=function(M,x){if(!this.uvs)return 0;var P=this.uvs.varSelectors.toArray(),tA=gi(P,function(sA){return x-sA.varSelector}),oA=P[tA];return-1!==tA&&oA.defaultUVS&&(tA=gi(oA.defaultUVS,function(sA){return MsA.startUnicodeValue+sA.additionalCount?1:0})),-1!==tA&&oA.nonDefaultUVS&&-1!==(tA=gi(oA.nonDefaultUVS,function(sA){return M-sA.unicodeValue}))?oA.nonDefaultUVS[tA].glyphID:0},G.getCharacterSet=function(){var M=this.cmap;switch(M.version){case 0:return Sr(0,M.codeMap.length);case 4:for(var x=[],P=M.endCode.toArray(),tA=0;tA=qt.glyphID&&M<=qt.glyphID+(qt.endCharCode-qt.startCharCode)&&yt.push(qt.startCharCode+(M-qt.glyphID))}return yt;case 13:for(var we,ie=[],Be=g(x.groups.toArray());!(we=Be()).done;){var Ce=we.value;M===Ce.glyphID&&ie.push.apply(ie,Sr(Ce.startCharCode,Ce.endCharCode+1))}return ie;default:throw new Error("Unknown cmap format ".concat(x.version))}},eA}()).prototype,"getCharacterSet",[z],Object.getOwnPropertyDescriptor(or.prototype,"getCharacterSet"),or.prototype),F(or.prototype,"codePointsForGlyph",[z],Object.getOwnPropertyDescriptor(or.prototype,"codePointsForGlyph"),or.prototype),or),As=function(){function eA(V){this.kern=V.kern}var G=eA.prototype;return G.process=function(M,x){for(var P=0;P=0&&(iA=NA.pairs[jA].value);break;case 2:var qA=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(sA.format))}sA.coverage.override?P=iA:P+=iA}}return P},eA}(),ts=function(){function eA(V){this.font=V}var G=eA.prototype;return G.positionGlyphs=function(M,x){for(var P=0,tA=0,oA=0;oA1&&(sA.minX+=(oA.codePoints.length-1)*sA.width/oA.codePoints.length);for(var iA=-x[P].xAdvance,NA=0,jA=this.font.unitsPerEm/16,lt=P+1;lt<=tA;lt++){var qA=M[lt],Bt=qA.cbox,pt=x[lt],yt=this.getCombiningClass(qA.codePoints[0]);if("Not_Reordered"!==yt){switch(pt.xOffset=pt.yOffset=0,yt){case"Double_Above":case"Double_Below":pt.xOffset+=sA.minX-Bt.width/2-Bt.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":pt.xOffset+=sA.minX-Bt.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":pt.xOffset+=sA.maxX-Bt.width-Bt.minX;break;default:pt.xOffset+=sA.minX+(sA.width-Bt.width)/2-Bt.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)&&(sA.minY+=jA),pt.yOffset=-sA.minY-Bt.maxY,sA.minY+=Bt.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)&&(sA.maxY+=jA),pt.yOffset=sA.maxY-Bt.minY,sA.maxY+=Bt.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},eA}(),Nr=function(){function eA(V,M,x,P){void 0===V&&(V=1/0),void 0===M&&(M=1/0),void 0===x&&(x=-1/0),void 0===P&&(P=-1/0),this.minX=V,this.minY=M,this.maxX=x,this.maxY=P}var G=eA.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 eA(this.minX,this.minY,this.maxX,this.maxY)},l(eA,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),eA}(),Ur={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"},Hi={};for(var Ji in Ur){var Oi=Ur[Ji];if(Array.isArray(Oi))for(var Ea,es=g(Oi);!(Ea=es()).done;)Hi[Ea.value]=Ji;else Hi[Oi]=Ji}var os={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 wa(eA){return os[eA]?"rtl":"ltr"}for(var ss=function(){function eA(G,V,M,x,P){if(this.glyphs=G,this.positions=null,this.script=M,this.language=x||null,this.direction=P||wa(M),this.features={},Array.isArray(V))for(var oA,tA=g(V);!(oA=tA()).done;)this.features[oA.value]=!0;else"object"==typeof V&&(this.features=V)}return l(eA,[{key:"advanceWidth",get:function(){for(var x,V=0,M=g(this.positions);!(x=M()).done;)V+=x.value.xAdvance;return V}},{key:"advanceHeight",get:function(){for(var x,V=0,M=g(this.positions);!(x=M()).done;)V+=x.value.yAdvance;return V}},{key:"bbox",get:function(){for(var V=new Nr,M=0,x=0,P=0;P>1]).firstGlyph)return null;if(MoA.lastGlyph))return 2===this.table.version?oA.value:oA.values[M-oA.firstGlyph];x=tA+1}}return null;case 6:for(var sA=0,iA=this.table.binarySearchHeader.nUnits-1;sA<=iA;){var tA,oA;if(65535===(oA=this.table.segments[tA=sA+iA>>1]).glyph)return null;if(MoA.glyph))return oA.value;sA=tA+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 tA,P=g(this.table.segments);!(tA=P()).done;){var oA=tA.value;if(2===this.table.version&&oA.value===M)x.push.apply(x,Sr(oA.firstGlyph,oA.lastGlyph+1));else for(var sA=0;sA=-1;){var iA=null,NA=1,jA=!0;oA===M.length||-1===oA?NA=0:65535===(iA=M[oA]).id?NA=2:null==(NA=this.lookupTable.lookup(iA.id))&&(NA=1);var lt=this.stateTable.stateArray.getItem(tA),Bt=this.stateTable.entryTable.getItem(lt[NA]);0!==NA&&2!==NA&&(P(iA,Bt,oA),jA=!(16384&Bt.flags)),tA=Bt.newState,jA&&(oA+=sA)}return M},G.traverse=function(M,x,P){if(void 0===x&&(x=0),void 0===P&&(P=new Set),!P.has(x)){P.add(x);for(var tA=this.stateTable,oA=tA.nClasses,iA=tA.entryTable,NA=tA.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 P=this.getStateMachine(M),tA=this.getProcessor();return P.process(this.glyphs,!!(4194304&this.subtable.coverage),tA)}this.processNoncontextualSubstitutions(this.subtable,this.glyphs)},G.getStateMachine=function(M){return new fs(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,P){32768&x.flags&&(this.firstGlyph=P),8192&x.flags&&(this.lastGlyph=P),function ys(eA,G,V,M){switch(G){case 0:return eA;case 1:return Nn(eA,[V,1],[M,0]);case 2:return Nn(eA,[V,0],[M,1]);case 3:return Nn(eA,[V,1],[M,1]);case 4:return Nn(eA,[V,2],[M,0]);case 5:return Nn(eA,[V,2],[M,0],!0,!1);case 6:return Nn(eA,[V,0],[M,2]);case 7:return Nn(eA,[V,0],[M,2],!1,!0);case 8:return Nn(eA,[V,1],[M,2]);case 9:return Nn(eA,[V,1],[M,2],!1,!0);case 10:return Nn(eA,[V,2],[M,1]);case 11:return Nn(eA,[V,2],[M,1],!0,!1);case 12:return Nn(eA,[V,2],[M,2]);case 13:return Nn(eA,[V,2],[M,2],!0,!1);case 14:return Nn(eA,[V,2],[M,2],!1,!0);case 15:return Nn(eA,[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,P){var tA=this.subtable.table.substitutionTable.items;if(65535!==x.markIndex){var oA=tA.getItem(x.markIndex);(iA=new Ei(oA).lookup((M=this.glyphs[this.markedGlyph]).id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(iA,M.codePoints))}if(65535!==x.currentIndex){var iA,NA=tA.getItem(x.currentIndex);(iA=new Ei(NA).lookup((M=this.glyphs[P]).id))&&(this.glyphs[P]=this.font.getGlyph(iA,M.codePoints))}32768&x.flags&&(this.markedGlyph=P)},G.processLigature=function(M,x,P){if(32768&x.flags&&this.ligatureStack.push(P),8192&x.flags){for(var tA,oA=this.subtable.table.ligatureActions,sA=this.subtable.table.components,iA=this.subtable.table.ligatureList,NA=x.action,jA=!1,lt=0,qA=[],Bt=[];!jA;){var pt,yt=this.ligatureStack.pop();(pt=qA).unshift.apply(pt,this.glyphs[yt].codePoints);var Gt=oA.getItem(NA++);jA=!!(2147483648&Gt);var $t=!!(1073741824&Gt),qt=(1073741823&Gt)<<2>>2;if(lt+=sA.getItem(qt+=this.glyphs[yt].id),jA||$t){var Be=iA.getItem(lt);this.glyphs[yt]=this.font.getGlyph(Be,qA),Bt.push(yt),lt=0,qA=[]}else this.glyphs[yt]=this.font.getGlyph(65535)}(tA=this.ligatureStack).push.apply(tA,Bt)}},G.processNoncontextualSubstitutions=function(M,x,P){var tA=new Ei(M.table.lookupTable);for(P=0;P>>5,!!(1024&x.flags)),65535!==x.currentInsertIndex&&this._insertGlyphs(P,x.currentInsertIndex,(992&x.flags)>>>5,!!(2048&x.flags))},G.getSupportedFeatures=function(){for(var P,M=[],x=g(this.morx.chains);!(P=x()).done;)for(var sA,oA=g(P.value.features);!(sA=oA()).done;){var iA=sA.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=g(this.morx.chains);!(x=M()).done;)for(var sA,P=x.value,tA=P.defaultFlags,oA=g(P.subtables);!(sA=oA()).done;){var iA=sA.value;iA.subFeatureFlags&tA&&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 tA=this.getStateMachine(M),oA=this.getProcessor(),sA=[],iA=[];this.glyphs=[],tA.traverse({enter:function(jA,lt){var qA=x.glyphs;iA.push({glyphs:qA.slice(),ligatureStack:x.ligatureStack.slice()});var Bt=x.font.getGlyph(jA);sA.push(Bt),qA.push(sA[sA.length-1]),oA(qA[qA.length-1],lt,qA.length-1);for(var pt=0,yt=0,Gt=0;Gt0&&M.applyFeatures(sA,x,P)}},eA}(),Ys=["rvrn"],Ts=["ccmp","locl","rlig","mark","mkmk"],Ss=["frac","numr","dnom"],Ns=["calt","clig","liga","rclt","curs","kern"],Us={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},hr=function(){function eA(){}return eA.plan=function(V,M,x){this.planPreprocessing(V),this.planFeatures(V),this.planPostprocessing(V,x),V.assignGlobalFeatures(M),this.assignFeatures(V,M)},eA.planPreprocessing=function(V){V.add({global:[].concat(Ys,Us[V.direction]),local:Ss})},eA.planFeatures=function(V){},eA.planPostprocessing=function(V,M){V.add([].concat(Ts,Ns)),V.setFeatureOverrides(M)},eA.assignFeatures=function(V,M){for(var x=0;x0&&w.isDigit(M[tA-1].codePoints[0]);)M[tA-1].features.numr=!0,M[tA-1].features.frac=!0,tA--;for(;oAthis.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,P=this.increment(M);return this.index=x,P},G.peekIndex=function(M){void 0===M&&(M=1);var x=this.index;this.increment(M);var P=this.index;return this.index=x,P},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(eA,[{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),eA}(),Vr=["DFLT","dflt","latn"],di=function(){function eA(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=eA.prototype;return G.findScript=function(M){if(null==this.table.scriptList)return null;Array.isArray(M)||(M=[M]);for(var P,x=g(M);!(P=x()).done;)for(var sA,tA=P.value,oA=g(this.table.scriptList);!(sA=oA()).done;){var iA=sA.value;if(iA.tag===tA)return iA}return null},G.selectScript=function(M,x,P){var oA,tA=!1;if(!this.script||M!==this.scriptTag){if((oA=this.findScript(M))||(oA=this.findScript(Vr)),!oA)return this.scriptTag;this.scriptTag=oA.tag,this.script=oA.script,this.language=null,this.languageTag=null,tA=!0}if((!P||P!==this.direction)&&(this.direction=P||wa(M)),x&&x.length<4&&(x+=" ".repeat(4-x.length)),!x||x!==this.languageTag){this.language=null;for(var iA,sA=g(this.script.langSysRecords);!(iA=sA()).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),tA=!0}if(tA&&(this.features={},this.language))for(var lt,jA=g(this.language.featureIndexes);!(lt=jA()).done;){var qA=lt.value,Bt=this.table.featureList[qA],pt=this.substituteFeatureForVariations(qA);this.features[Bt.tag]=pt||Bt.feature}return this.scriptTag},G.lookupsForFeatures=function(M,x){void 0===M&&(M=[]);for(var oA,P=[],tA=g(M);!(oA=tA()).done;){var sA=oA.value,iA=this.features[sA];if(iA)for(var jA,NA=g(iA.lookupListIndexes);!(jA=NA()).done;){var lt=jA.value;x&&-1!==x.indexOf(lt)||P.push({feature:sA,index:lt,lookup:this.table.lookupList.get(lt)})}}return P.sort(function(qA,Bt){return qA.index-Bt.index}),P},G.substituteFeatureForVariations=function(M){if(-1===this.variationsIndex)return null;for(var oA,tA=g(this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions);!(oA=tA()).done;){var sA=oA.value;if(sA.featureIndex===M)return sA.alternateFeatureTable}return null},G.findVariationsIndex=function(M){var x=this.table.featureVariations;if(!x)return-1;for(var P=x.featureVariationRecords,tA=0;tA=0})},G.getClassID=function(M,x){switch(x.version){case 1:var P=M-x.startGlyph;if(P>=0&&P0&&this.codePoints.every(w.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}}]),eA}(),Da=function(eA){function G(){return eA.apply(this,arguments)||this}return h(G,eA),G.planFeatures=function(M){M.add(["ljmo","vjmo","tjmo"],!1)},G.assignFeatures=function(M,x){for(var P=0,tA=0;tAmr){var lt=Zr(V,tA,M.features);lt.features.tjmo=!0,jA.push(lt)}return eA.splice.apply(eA,[G,1].concat(jA)),G+jA.length-1}function e0(eA,G,V){var sA,iA,NA,jA,M=eA[G],P=Di(eA[G].codePoints[0]),tA=eA[G-1].codePoints[0],oA=Di(tA);if(4===oA&&3===P)sA=tA,jA=M;else{2===P?(iA=eA[G-1],NA=M):(iA=eA[G-2],NA=eA[G-1],jA=M);var lt=iA.codePoints[0],qA=NA.codePoints[0];(function(G){return 4352<=G&&G<=4370})(lt)&&function(G){return 4449<=G&&G<=4469}(qA)&&(sA=Pr+28*(21*(lt-4352)+(qA-4449)))}var Bt=jA&&jA.codePoints[0]||mr;if(null!=sA&&(Bt===mr||function(G){return 1<=G&&G<=4546}(Bt))){var pt=sA+(Bt-mr);if(V.hasGlyphForCodePoint(pt)){var yt=2===oA?3:2;return eA.splice(G-yt+1,yt,Zr(V,pt,M.features)),G-yt+1}}return iA&&(iA.features.ljmo=!0),NA&&(NA.features.vjmo=!0),jA&&(jA.features.tjmo=!0),4===oA?(Sa(eA,G-1,V),G+1):G}function r0(eA,G,V){var M=eA[G];if(0!==V.glyphForCodePoint(eA[G].codePoints[0]).advanceWidth){var tA=function n0(eA){switch(Di(eA)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(eA[G-1].codePoints[0]);return eA.splice(G,1),eA.splice(G-tA,0,M)}}function i0(eA,G,V){var M=eA[G],x=eA[G].codePoints[0];if(V.hasGlyphForCodePoint(9676)){var P=Zr(V,9676,M.features),tA=0===V.glyphForCodePoint(x).advanceWidth?G:G+1;eA.splice(tA,0,P),G++}return G}var xi={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"]]},pe_X=1,pe_N=8,pe_H=16,pe_ZWNJ=32,pe_ZWJ=64,pe_M=128,pe_RS=8192,pe_Repha=32768,pe_Ra=65536,pe_CM=1<<17,ee={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},h0=2|pe_Ra|pe_CM|4|2048|4096,Na=pe_ZWJ|pe_ZWNJ,Xr=pe_H|16384,Ua={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:ee.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:ee.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:ee.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:ee.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:ee.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:ee.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},E0={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},w0=xi.decompositions,Pa=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")),C0=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"]]}),En=function(eA){function G(){return eA.apply(this,arguments)||this}return h(G,eA),G.planFeatures=function(M){M.addStage(Q0),M.addStage(["locl","ccmp"]),M.addStage(M0),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(p0),M.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),M.unicodeScript=function rs(eA){return Hi[eA]}(M.script),M.indicConfig=Ua[M.unicodeScript]||Ua.Default,M.isOldSpec=M.indicConfig.hasOldSpec&&"2"!==M.script[M.script.length-1]},G.assignFeatures=function(M,x){for(var P=function(sA){var iA=x[sA].codePoints[0],NA=E0[iA]||w0[iA];if(NA){var jA=NA.map(function(lt){var qA=M.font.glyphForCodePoint(lt);return new sr(M.font,qA.id,[lt],x[sA].features)});x.splice.apply(x,[sA,1].concat(jA))}},tA=x.length-1;tA>=0;tA--)P(tA)},G}(hr);function Fi(eA){return Pa.get(eA.codePoints[0])>>8}function Ra(eA){return 1<<(255&Pa.get(eA.codePoints[0]))}T(En,"zeroMarkWidths","NONE");var Yi=function(G,V,M,x){this.category=G,this.position=V,this.syllableType=M,this.syllable=x};function Q0(eA,G){for(var P,V=0,M=0,x=g(C0.match(G.map(Fi)));!(P=x()).done;){var tA=P.value,oA=tA[0],sA=tA[1],iA=tA[2];if(oA>M){++V;for(var NA=M;NAGt);break;case"First":for(var Ce=(yt=iA)+1;CeWe&&!(vr(G[Oe])||ln&&G[Oe].shaperInfo.category===pe_H);Oe--);if(G[Oe].shaperInfo.category!==pe_H&&Oe>We){var he=G[We];G.splice.apply(G,[We,0].concat(G.splice(We+1,Oe-We))),G[Oe]=he}break}for(var qe=ee.Start,Ue=iA;UeiA;$e--)if(G[$e-1].shaperInfo.position!==ee.Pre_M){Fe.position=G[$e-1].shaperInfo.position;break}}else Fe.position!==ee.SMVD&&(qe=Fe.position)}for(var Rn=yt,gn=yt+1;gniA&&!vr(G[zn]))}}}}function p0(eA,G,V){for(var M=V.indicConfig,x=eA._layoutEngine.engine.GSUBProcessor.features,P=0,tA=Ti(G,0);P=ee.Base_C){if(oA&&sA+1ee.Base_C&&sA--;break}if(sA===tA&&PP&&!(G[jA].shaperInfo.category&(pe_M|Xr));)jA--;lr(G[jA])&&G[jA].shaperInfo.position!==ee.Pre_M?jA+1P;lt--)if(G[lt-1].shaperInfo.position===ee.Pre_M){var qA=lt-1;qAP&&G[pt].shaperInfo.position===ee.SMVD;)pt--;if(lr(G[pt]))for(var $t=sA+1;$tP&&!(G[Be-1].shaperInfo.category&(pe_M|Xr));)Be--;if(Be>P&&G[Be-1].shaperInfo.category===pe_M)for(var we=ie,Ce=sA+1;CeP&&lr(G[Be-1])&&Be=eA.length)return G;for(var V=eA[G].shaperInfo.syllable;++G=0;tA--)P(tA)},G}(hr);function La(eA){return m0.get(eA.codePoints[0])}T(de,"zeroMarkWidths","BEFORE_GPOS");var D0=function(G,V,M){this.category=G,this.syllableType=V,this.syllable=M};function y0(eA,G){for(var x,V=0,M=g(v0.match(G.map(La)));!(x=M()).done;){var P=x.value,tA=P[0],oA=P[1],sA=P[2];++V;for(var iA=tA;iA<=oA;iA++)G[iA].shaperInfo=new D0(I0[La(G[iA])],sA[0],V);for(var NA="R"===G[tA].shaperInfo.category?1:Math.min(3,oA-tA),jA=tA;jA1)for(P=M+1;P=eA.length)return G;for(var V=eA[G].shaperInfo.syllable;++G=0;Gn--)this.glyphs.splice(Be[Gn],1);return this.glyphs[this.glyphIterator.index]=le,!0}}return!1;case 5:return this.applyContext(P);case 6:return this.applyChainingContext(P);case 7:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("GSUB lookupType ".concat(x," is not supported"))}},G}(di),U0=function(eA){function G(){return eA.apply(this,arguments)||this}h(G,eA);var V=G.prototype;return V.applyPositionValue=function(x,P){var tA=this.positions[this.glyphIterator.peekIndex(x)];null!=P.xAdvance&&(tA.xAdvance+=P.xAdvance),null!=P.yAdvance&&(tA.yAdvance+=P.yAdvance),null!=P.xPlacement&&(tA.xOffset+=P.xPlacement),null!=P.yPlacement&&(tA.yOffset+=P.yPlacement);var oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;oA&&sA&&(P.xPlaDevice&&(tA.xOffset+=oA.getDelta(sA,P.xPlaDevice.a,P.xPlaDevice.b)),P.yPlaDevice&&(tA.yOffset+=oA.getDelta(sA,P.yPlaDevice.a,P.yPlaDevice.b)),P.xAdvDevice&&(tA.xAdvance+=oA.getDelta(sA,P.xAdvDevice.a,P.xAdvDevice.b)),P.yAdvDevice&&(tA.yAdvance+=oA.getDelta(sA,P.yAdvDevice.a,P.yAdvDevice.b)))},V.applyLookup=function(x,P){switch(x){case 1:var tA=this.coverageIndex(P.coverage);if(-1===tA)return!1;switch(P.version){case 1:this.applyPositionValue(0,P.value);break;case 2:this.applyPositionValue(0,P.values.get(tA))}return!0;case 2:var oA=this.glyphIterator.peek();if(!oA)return!1;var sA=this.coverageIndex(P.coverage);if(-1===sA)return!1;switch(P.version){case 1:for(var jA,NA=g(P.pairSets.get(sA));!(jA=NA()).done;){var lt=jA.value;if(lt.secondGlyph===oA.id)return this.applyPositionValue(0,lt.value1),this.applyPositionValue(1,lt.value2),!0}return!1;case 2:var qA=this.getClassID(this.glyphIterator.cur.id,P.classDef1),Bt=this.getClassID(oA.id,P.classDef2);if(-1===qA||-1===Bt)return!1;var pt=P.classRecords.get(qA).get(Bt);return this.applyPositionValue(0,pt.value1),this.applyPositionValue(1,pt.value2),!0}case 3:var yt=this.glyphIterator.peekIndex(),Gt=this.glyphs[yt];if(!Gt)return!1;var $t=P.entryExitRecords[this.coverageIndex(P.coverage)];if(!$t||!$t.exitAnchor)return!1;var qt=P.entryExitRecords[this.coverageIndex(P.coverage,Gt.id)];if(!qt||!qt.entryAnchor)return!1;var ie=this.getAnchor(qt.entryAnchor),Be=this.getAnchor($t.exitAnchor),we=this.positions[this.glyphIterator.index],Ce=this.positions[yt];switch(this.direction){case"ltr":we.xAdvance=Be.x+we.xOffset;var He=ie.x+Ce.xOffset;Ce.xAdvance-=He,Ce.xOffset-=He;break;case"rtl":we.xAdvance-=He=Be.x+we.xOffset,we.xOffset-=He,Ce.xAdvance=ie.x+Ce.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=yt,we.yOffset=ie.y-Be.y):(Gt.cursiveAttachment=this.glyphIterator.index,we.yOffset=Be.y-ie.y),!0;case 4:var sn=this.coverageIndex(P.markCoverage);if(-1===sn)return!1;for(var Je=this.glyphIterator.index;--Je>=0&&(this.glyphs[Je].isMark||this.glyphs[Je].ligatureComponent>0););if(Je<0)return!1;var le=this.coverageIndex(P.baseCoverage,this.glyphs[Je].id);if(-1===le)return!1;var ln=P.markArray[sn];return this.applyAnchor(ln,P.baseArray[le][ln.class],Je),!0;case 5:var Oe=this.coverageIndex(P.markCoverage);if(-1===Oe)return!1;for(var he=this.glyphIterator.index;--he>=0&&this.glyphs[he].isMark;);if(he<0)return!1;var qe=this.coverageIndex(P.ligatureCoverage,this.glyphs[he].id);if(-1===qe)return!1;var Ue=P.ligatureArray[qe],Fe=this.glyphIterator.cur,$e=this.glyphs[he],Rn=$e.ligatureID&&$e.ligatureID===Fe.ligatureID&&Fe.ligatureComponent>0?Math.min(Fe.ligatureComponent,$e.codePoints.length)-1:$e.codePoints.length-1,gn=P.markArray[Oe];return this.applyAnchor(gn,Ue[Rn][gn.class],he),!0;case 6:var Gn=this.coverageIndex(P.mark1Coverage);if(-1===Gn)return!1;var Jn=this.glyphIterator.peekIndex(-1),Dn=this.glyphs[Jn];if(!Dn||!Dn.isMark)return!1;var Mn=this.glyphIterator.cur,On=!1;if(Mn.ligatureID===Dn.ligatureID?Mn.ligatureID?Mn.ligatureComponent===Dn.ligatureComponent&&(On=!0):On=!0:(Mn.ligatureID&&!Mn.ligatureComponent||Dn.ligatureID&&!Dn.ligatureComponent)&&(On=!0),!On)return!1;var kn=this.coverageIndex(P.mark2Coverage,Dn.id);if(-1===kn)return!1;var me=P.mark1Array[Gn];return this.applyAnchor(me,P.mark2Array[kn][me.class],Jn),!0;case 7:return this.applyContext(P);case 8:return this.applyChainingContext(P);case 9:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("Unsupported GPOS table: ".concat(x))}},V.applyAnchor=function(x,P,tA){var oA=this.getAnchor(P),sA=this.getAnchor(x.markAnchor),NA=this.positions[this.glyphIterator.index];NA.xOffset=oA.x-sA.x,NA.yOffset=oA.y-sA.y,this.glyphIterator.cur.markAttachment=tA},V.getAnchor=function(x){var P=x.xCoordinate,tA=x.yCoordinate,oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;return oA&&sA&&(x.xDeviceTable&&(P+=oA.getDelta(sA,x.xDeviceTable.a,x.xDeviceTable.b)),x.yDeviceTable&&(tA+=oA.getDelta(sA,x.yDeviceTable.a,x.yDeviceTable.b))),{x:P,y:tA}},V.applyFeatures=function(x,P,tA){eA.prototype.applyFeatures.call(this,x,P,tA);for(var oA=0;oA>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 P=[];return this.engine&&P.push.apply(P,this.engine.getAvailableFeatures(M,x)),this.font.kern&&-1===P.indexOf("kern")&&P.push("kern"),P},G.stringsForGlyph=function(M){for(var oA,x=new Set,tA=g(this.font._cmapProcessor.codePointsForGlyph(M));!(oA=tA()).done;)x.add(String.fromCodePoint(oA.value));if(this.engine&&this.engine.stringsForGlyph)for(var NA,iA=g(this.engine.stringsForGlyph(M));!(NA=iA()).done;)x.add(NA.value);return Array.from(x)},eA}(),z0={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Ni=function(){function eA(){this.commands=[],this._bbox=null,this._cbox=null}var G=eA.prototype;return G.toFunction=function(){var M=this;return function(x){M.commands.forEach(function(P){return x[P.command].apply(x,P.args)})}},G.toSVG=function(){return this.commands.map(function(x){var P=x.args.map(function(tA){return Math.round(100*tA)/100});return"".concat(z0[x.command]).concat(P.join(" "))}).join("")},G.mapPoints=function(M){for(var tA,x=new eA,P=g(this.commands);!(tA=P()).done;){for(var oA=tA.value,sA=[],iA=0;iA0&&this.codePoints.every(w.isMark),this.isLigature=this.codePoints.length>1}var G=eA.prototype;return G._getPath=function(){return new Ni},G._getCBox=function(){return this.path.cbox},G._getBBox=function(){return this.path.bbox},G._getTableMetrics=function(M){if(this.id0)sA=Math.abs(NA.typoAscender-NA.typoDescender),iA=NA.typoAscender-M.maxY;else{var jA=this._font.hhea;sA=Math.abs(jA.ascent-jA.descent),iA=jA.ascent-M.maxY}return this._font._variationProcessor&&this._font.HVAR&&(P+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:P,advanceHeight:sA,leftBearing:tA,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 qr[this.id];case 2:var x=M.glyphNameIndex[this.id];return x0?this._decodeSimple(sA,tA):sA.numberOfContours<0&&this._decodeComposite(sA,tA,oA),sA},V._decodeSimple=function(x,P){x.points=[];var tA=new e.Array(e.uint16,x.numberOfContours).decode(P);x.instructions=new e.Array(e.uint8,e.uint16).decode(P);for(var oA=[],sA=tA[tA.length-1]+1;oA.length=0,0,0);x.points.push(qA)}var Bt=0;for(lt=0;lt>1,iA.length=0}function ln(Oe,he){Gt&&sA.closePath(),sA.moveTo(Oe,he),Gt=!0}return function Oe(){for(;P.pos1&&Je(),Bt+=iA.shift(),ln(qA,Bt);break;case 5:for(;iA.length>=2;)qA+=iA.shift(),Bt+=iA.shift(),sA.lineTo(qA,Bt);break;case 6:case 7:for(var qe=6===he;iA.length>=1;)qe?qA+=iA.shift():Bt+=iA.shift(),sA.lineTo(qA,Bt),qe=!qe;break;case 8:for(;iA.length>0;){var me=qA+iA.shift(),Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift();qA=Ye+iA.shift(),Bt=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt)}break;case 10:var Ue=iA.pop()+we,Fe=Be[Ue];if(Fe){yt[Ue]=!0;var $e=P.pos,Rn=oA;P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=$e,oA=Rn}break;case 11:if(x.version>=2)break;return;case 14:if(x.version>=2)break;iA.length>0&&Je(),Gt&&(sA.closePath(),Gt=!1);break;case 15:if(x.version<2)throw new Error("vsindex operator not supported in CFF v1");He=iA.pop();break;case 16:if(x.version<2)throw new Error("blend operator not supported in CFF v1");if(!sn)throw new Error("blend operator in non-variation font");for(var gn=sn.getBlendVector(Ce,He),mn=iA.pop(),Gn=mn*gn.length,Jn=iA.length-Gn,Dn=Jn-mn,Mn=0;Mn>3;break;case 21:iA.length>2&&Je(),qA+=iA.shift(),Bt+=iA.shift(),ln(qA,Bt);break;case 22:iA.length>1&&Je(),ln(qA+=iA.shift(),Bt);break;case 24:for(;iA.length>=8;)me=qA+iA.shift(),Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye+iA.shift(),Bt=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt);qA+=iA.shift(),Bt+=iA.shift(),sA.lineTo(qA,Bt);break;case 25:for(;iA.length>=8;)qA+=iA.shift(),Bt+=iA.shift(),sA.lineTo(qA,Bt);me=qA+iA.shift(),Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye+iA.shift(),Bt=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt);break;case 26:for(iA.length%2&&(qA+=iA.shift());iA.length>=4;)me=qA,Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye,Bt=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt);break;case 27:for(iA.length%2&&(Bt+=iA.shift());iA.length>=4;)me=qA+iA.shift(),Pe=Bt,Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt=Ze);break;case 28:iA.push(P.readInt16BE());break;case 29:Ue=iA.pop()+qt,(Fe=$t[Ue])&&(pt[Ue]=!0,$e=P.pos,Rn=oA,P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=$e,oA=Rn);break;case 30:case 31:for(qe=31===he;iA.length>=4;)qe?(me=qA+iA.shift(),Pe=Bt,Ye=me+iA.shift(),Ze=Pe+iA.shift(),Bt=Ze+iA.shift(),qA=Ye+(1===iA.length?iA.shift():0)):(me=qA,Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye+iA.shift(),Bt=Ze+(1===iA.length?iA.shift():0)),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt),qe=!qe;break;case 12:switch(he=P.readUInt8()){case 3:var ke=iA.pop(),Bn=iA.pop();iA.push(ke&&Bn?1:0);break;case 4:ke=iA.pop(),Bn=iA.pop(),iA.push(ke||Bn?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(),Bn=iA.pop(),iA.push(ke+Bn);break;case 11:ke=iA.pop(),Bn=iA.pop(),iA.push(ke-Bn);break;case 12:ke=iA.pop(),Bn=iA.pop(),iA.push(ke/Bn);break;case 14:ke=iA.pop(),iA.push(-ke);break;case 15:ke=iA.pop(),Bn=iA.pop(),iA.push(ke===Bn?1:0);break;case 18:iA.pop();break;case 20:var $i=iA.pop(),zn=iA.pop();NA[zn]=$i;break;case 21:zn=iA.pop(),iA.push(NA[zn]||0);break;case 22:var Aa=iA.pop(),ta=iA.pop(),Ll=iA.pop(),bl=iA.pop();iA.push(Ll<=bl?Aa:ta);break;case 23:iA.push(Math.random());break;case 24:ke=iA.pop(),Bn=iA.pop(),iA.push(ke*Bn);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(),Bn=iA.pop(),iA.push(Bn,ke);break;case 29:(zn=iA.pop())<0?zn=0:zn>iA.length-1&&(zn=iA.length-1),iA.push(iA[zn]);break;case 30:var Ri=iA.pop(),_r=iA.pop();if(_r>=0)for(;_r>0;){for(var ea=iA[Ri-1],zi=Ri-2;zi>=0;zi--)iA[zi+1]=iA[zi];iA[0]=ea,_r--}else for(;_r<0;){ea=iA[0];for(var Li=0;Li<=Ri;Li++)iA[Li]=iA[Li+1];iA[Ri-1]=ea,_r++}break;case 34:me=qA+iA.shift(),Pe=Bt,Ye=me+iA.shift(),Ze=Pe+iA.shift();var $r=Ye+iA.shift(),Ai=Ze,ti=$r+iA.shift(),ei=Ai,ni=ti+iA.shift(),ri=ei,ii=ni+iA.shift(),ai=ri;qA=ii,Bt=ai,sA.bezierCurveTo(me,Pe,Ye,Ze,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 35:for(var Cr=[],na=0;na<=5;na++)qA+=iA.shift(),Bt+=iA.shift(),Cr.push(qA,Bt);sA.bezierCurveTo.apply(sA,Cr.slice(0,6)),sA.bezierCurveTo.apply(sA,Cr.slice(6)),iA.shift();break;case 36:me=qA+iA.shift(),Pe=Bt+iA.shift(),Ye=me+iA.shift(),ei=Ai=Ze=Pe+iA.shift(),ni=(ti=($r=Ye+iA.shift())+iA.shift())+iA.shift(),ri=ei+iA.shift(),ii=ni+iA.shift(),qA=ii,Bt=ai=ri,sA.bezierCurveTo(me,Pe,Ye,Ze,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 37:var no=qA,ro=Bt;Cr=[];for(var io=0;io<=4;io++)qA+=iA.shift(),Bt+=iA.shift(),Cr.push(qA,Bt);Math.abs(qA-no)>Math.abs(Bt-ro)?(qA+=iA.shift(),Bt=ro):(qA=no,Bt+=iA.shift()),Cr.push(qA,Bt),sA.bezierCurveTo.apply(sA,Cr.slice(0,6)),sA.bezierCurveTo.apply(sA,Cr.slice(6));break;default:throw new Error("Unknown op: 12 ".concat(he))}break;default:throw new Error("Unknown op: ".concat(he))}else if(he<247)iA.push(he-139);else if(he<251){var ra=P.readUInt8();iA.push(256*(he-247)+ra+108)}else he<255?(ra=P.readUInt8(),iA.push(256*-(he-251)-ra-108)):iA.push(P.readInt32BE()/65536)}}(),Gt&&sA.closePath(),sA},G}(Ui),$0=new e.Struct({originX:e.uint16,originY:e.uint16,type:new e.String(4),data:new e.Buffer(function(eA){return eA.parent.buflen-eA._currentOffset})}),Al=function(eA){function G(){return eA.apply(this,arguments)||this}h(G,eA);var V=G.prototype;return V.getImageForSize=function(x){for(var P=0;P=x)break}var oA=tA.imageOffsets,sA=oA[this.id],iA=oA[this.id+1];return sA===iA?null:(this._font.stream.pos=sA,$0.decode(this._font.stream,{buflen:iA-sA}))},V.render=function(x,P){var tA=this.getImageForSize(P);null!=tA&&x.image(tA.data,{height:P,x:tA.originX,y:P/this._font.unitsPerEm*(this.bbox.minY-tA.originY)}),this._font.sbix.flags.renderOutlines&&eA.prototype.render.call(this,x,P)},G}(Pi),ja=function(G,V){this.glyph=G,this.color=V},tl=function(eA){function G(){return eA.apply(this,arguments)||this}h(G,eA);var V=G.prototype;return V._getBBox=function(){for(var x=new Nr,P=0;P>1;if(this.id<(iA=P.baseGlyphRecord[sA]).gid)oA=sA-1;else{if(!(this.id>iA.gid)){var NA=iA;break}tA=sA+1}}if(null==NA){var jA=this._font._getBaseGlyph(this.id);return[new ja(jA,lt={red:0,green:0,blue:0,alpha:255})]}for(var qA=[],Bt=NA.firstLayerIndex;Bt=1&&x[P]=P.glyphCount)){var tA=P.offsets[M];if(tA!==P.offsets[M+1]){var oA=this.font.stream;if(oA.pos=tA,!(oA.pos>=oA.length)){var sA=oA.readUInt16BE(),iA=tA+oA.readUInt16BE();if(32768&sA){var NA=oA.pos;oA.pos=iA;var jA=this.decodePoints();iA=oA.pos,oA.pos=NA}var lt=x.map(function(gn){return gn.copy()});sA&=4095;for(var qA=0;qA=P.globalCoordCount)throw new Error("Invalid gvar table");yt=P.globalCoords[4095&pt]}if(16384&pt){for(var $t=[],qt=0;qtMath.max(0,x[NA]))return 0;iA=(iA*oA[NA]+Number.EPSILON)/(x[NA]+Number.EPSILON)}else{if(oA[NA]tA[NA])return 0;iA=oA[NA]sA)){var NA=tA,jA=tA;for(tA++;tA<=sA;)P[tA]&&(this.deltaInterpolate(jA+1,tA-1,jA,tA,x,M),jA=tA),tA++;jA===NA?this.deltaShift(oA,sA,jA,x,M):(this.deltaInterpolate(jA+1,sA,jA,NA,x,M),NA>0&&this.deltaInterpolate(oA,NA-1,jA,NA,x,M)),tA=sA+1}}},G.deltaInterpolate=function(M,x,P,tA,oA,sA){if(!(M>x))for(var iA=["x","y"],NA=0;NAoA[tA][jA]){var lt=P;P=tA,tA=lt}var qA=oA[P][jA],Bt=oA[tA][jA],pt=sA[P][jA],yt=sA[tA][jA];if(qA!==Bt||pt===yt)for(var Gt=qA===Bt?0:(yt-pt)/(Bt-qA),$t=M;$t<=x;$t++){var qt=oA[$t][jA];qt<=qA?qt+=pt-qA:qt>=Bt?qt+=yt-Bt:qt=pt+(qt-qA)*Gt,sA[$t][jA]=qt}}},G.deltaShift=function(M,x,P,tA,oA){var sA=oA[P].x-tA[P].x,iA=oA[P].y-tA[P].y;if(0!==sA||0!==iA)for(var NA=M;NA<=x;NA++)NA!==P&&(oA[NA].x+=sA,oA[NA].y+=iA)},G.getAdvanceAdjustment=function(M,x){var P,tA;if(x.advanceWidthMapping){var oA=M;oA>=x.advanceWidthMapping.mapCount&&(oA=x.advanceWidthMapping.mapCount-1);var iA=x.advanceWidthMapping.mapData[oA];P=iA.outerIndex,tA=iA.innerIndex}else P=0,tA=M;return this.getDelta(x.itemVariationStore,P,tA)},G.getDelta=function(M,x,P){if(x>=M.itemVariationData.length)return 0;var tA=M.itemVariationData[x];if(P>=tA.deltaSets.length)return 0;for(var oA=tA.deltaSets[P],sA=this.getBlendVector(M,x),iA=0,NA=0;NAqA.peakCoord||qA.peakCoord>qA.endCoord||qA.startCoord<0&&qA.endCoord>0&&0!==qA.peakCoord||0===qA.peakCoord?1:tA[lt]qA.endCoord?0:tA[lt]===qA.peakCoord?1:tA[lt]=0&&V<=255?1:2},eA.encode=function(V,M){M>=0&&M<=255?V.writeUInt8(M):V.writeInt16BE(M)},eA}(),_a=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(qa,0),yPoints:new e.Array(qa,0)}),wl=function(){function eA(){}var G=eA.prototype;return G.encodeSimple=function(M,x){void 0===x&&(x=[]);for(var P=[],tA=[],oA=[],sA=[],iA=0,NA=0,jA=0,lt=0,qA=0,Bt=0;Bt0&&(sA.push(iA),iA=0),sA.push(qt),lt=qt),NA=Gt,jA=$t,qA++}"closePath"===pt.command&&P.push(qA-1)}M.commands.length>1&&"closePath"!==M.commands[M.commands.length-1].command&&P.push(qA-1);var Ce=M.bbox,He={numberOfContours:P.length,xMin:Ce.minX,yMin:Ce.minY,xMax:Ce.maxX,yMax:Ce.maxY,endPtsOfContours:P,instructions:x,flags:sA,xPoints:tA,yPoints:oA},sn=_a.size(He),Je=4-sn%4,le=new e.EncodeStream(sn+Je);return _a.encode(le,He),0!==Je&&le.fill(0,Je),le.buffer},G._encodePoint=function(M,x,P,tA,oA,sA){var iA=M-x;return M===x?tA|=sA:(-255<=iA&&iA<=255&&(tA|=oA,iA<0?iA=-iA:tA|=sA),P.push(iA)),tA},eA}(),Cl=function(eA){function G(M){var x;return(x=eA.call(this,M)||this).glyphEncoder=new wl,x}h(G,eA);var V=G.prototype;return V._addGlyph=function(x){var P=this.font.getGlyph(x),tA=P._decode(),oA=this.font.loca.offsets[x],sA=this.font.loca.offsets[x+1],iA=this.font._getTableStream("glyf");iA.pos+=oA;var NA=iA.readBuffer(sA-oA);if(tA&&tA.numberOfContours<0){NA=c.from(NA);for(var lt,jA=g(tA.components);!(lt=jA()).done;){var qA=lt.value;x=this.includeGlyph(qA.glyphID),NA.writeUInt16BE(x,qA.pos)}}else tA&&this.font._variationProcessor&&(NA=this.glyphEncoder.encodeSimple(P.path,tA.instructions));return this.glyf.push(NA),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:P.advanceWidth,bearing:P._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 P=0;P255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},tA=Object.assign({},this.cff.topDict);tA.Private=null,tA.charset=P,tA.Encoding=null,tA.CharStrings=this.charstrings;for(var oA=0,sA=["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"];oA0&&Object.defineProperty(this,x,{get:this._getTable.bind(this,P)})}}eA.probe=function(M){var x=M.toString("ascii",0,4);return"true"===x||"OTTO"===x||x===String.fromCharCode(0,1,0,0)};var G=eA.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=ci.decode(this.stream,{_startOffset:0})},G._decodeTable=function(M){var x=this.stream.pos,P=this._getTableStream(M.tag),tA=se[M.tag].decode(P,this,M.length);return this.stream.pos=x,tA},G.getName=function(M,x){void 0===x&&(x=this.defaultLanguage||D.defaultLanguage);var P=this.name&&this.name.records[M];return P&&(P[x]||P[this.defaultLanguage]||P[D.defaultLanguage]||P.en||P[Object.keys(P)[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=[],P=M.length,tA=0,oA=-1,sA=-1;tA<=P;){var iA=0,NA=0;if(tA>>6&3},transformed:function(G){return"glyf"===G.tag||"loca"===G.tag?0===G.transformVersion:0!==G.transformVersion},transformLength:new e.Optional(Ao,function(eA){return eA.transformed})}),Xi=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(ml,"numTables")});Xi.process=function(){for(var eA={},G=0;G0){for(var iA=[],NA=0,jA=0;jA>7);if((iA&=127)<10)oA=0,sA=er(iA,((14&iA)<<7)+G.readUInt8());else if(iA<20)oA=er(iA,((iA-10&14)<<7)+G.readUInt8()),sA=0;else if(iA<84)oA=er(iA,1+(48&(jA=iA-20))+((lt=G.readUInt8())>>4)),sA=er(iA>>1,1+((12&jA)<<2)+(15<));else if(iA<120){var jA;oA=er(iA,1+((jA=iA-84)/12<<8)+G.readUInt8()),sA=er(iA>>1,1+(jA%12>>2<<8)+G.readUInt8())}else if(iA<124){var lt=G.readUInt8(),qA=G.readUInt8();oA=er(iA,(lt<<4)+(qA>>4)),sA=er(iA>>1,((15&qA)<<8)+G.readUInt8())}else oA=er(iA,G.readUInt16BE()),sA=er(iA>>1,G.readUInt16BE());P.push(new gr(NA,!1,x+=oA,M+=sA))}return P}var Yl=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}}),Tl=function(){function eA(V){if(this.stream=V,"ttcf"!==V.readString(4))throw new Error("Not a TrueType collection");this.header=Yl.decode(V)}return eA.probe=function(M){return"ttcf"===M.toString("ascii",0,4)},eA.prototype.getFont=function(M){for(var P,x=g(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA;var sA=new Dr(oA);if(sA.postscriptName===M)return sA}return null},l(eA,[{key:"fonts",get:function(){for(var P,M=[],x=g(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA,M.push(new Dr(oA))}return M}}]),eA}(),Sl=new e.String(e.uint8),Nl=(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})),Ul=new e.Struct({name:new e.String(4),maxTypeIndex:e.uint16,refList:new e.Pointer(e.uint16,new e.Array(Nl,function(eA){return eA.maxTypeIndex+1}),{type:"parent"})}),Pl=new e.Struct({length:e.uint16,types:new e.Array(Ul,function(eA){return eA.length+1})}),Rl=new e.Struct({reserved:new e.Reserved(e.uint8,24),typeList:new e.Pointer(e.uint16,Pl),nameListOffset:new e.Pointer(e.uint16,"void")}),eo=new e.Struct({dataOffset:e.uint32,map:new e.Pointer(e.uint32,Rl),dataLength:e.uint32,mapLength:e.uint32}),zl=function(){function eA(V){this.stream=V,this.header=eo.decode(this.stream);for(var x,M=g(this.header.map.typeList.types);!(x=M()).done;){for(var oA,P=x.value,tA=g(P.refList);!(oA=tA()).done;){var sA=oA.value;sA.nameOffset>=0?(this.stream.pos=sA.nameOffset+this.header.map.nameListOffset,sA.name=Sl.decode(this.stream)):sA.name=null}"sfnt"===P.name&&(this.sfnt=P)}}return eA.probe=function(M){var x=new e.DecodeStream(M);try{var P=eo.decode(x)}catch(iA){return!1}for(var oA,tA=g(P.map.typeList.types);!(oA=tA()).done;)if("sfnt"===oA.value.name)return!0;return!1},eA.prototype.getFont=function(M){if(!this.sfnt)return null;for(var P,x=g(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4)),iA=new Dr(sA);if(iA.postscriptName===M)return iA}return null},l(eA,[{key:"fonts",get:function(){for(var P,M=[],x=g(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4));M.push(new Dr(sA))}return M}}]),eA}();D.registerFormat(Dr),D.registerFormat(Ml),D.registerFormat(vl),D.registerFormat(Tl),D.registerFormat(zl),Y.exports=D},7337:function(Y,I,n){"use strict";var c=n(4781),i=n(9742),o=n(2055),l=o.BK,h=o.CR,a=o.LF,g=o.NL,E=o.SG,u=o.WJ,C=o.SP,e=o.ZWJ,f=o.BA,B=o.HY,w=o.NS,Q=o.AI,p=o.AL,S=o.CJ,m=o.HL,d=o.RI,v=o.SA,D=o.XX,U=n(8383),T=U.DI_BRK,F=U.IN_BRK,z=U.CI_BRK,b=U.CP_BRK,aA=U.pairTable,lA=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==")),MA=function(FA){switch(FA){case Q:case v:case E:case D:return p;case S:return w;default:return FA}},cA=function(FA){switch(FA){case a:case g:return l;case C:return u;default:return FA}},gA=function(FA,_){void 0===_&&(_=!1),this.position=FA,this.required=_};Y.exports=function(){function DA(_){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=DA.prototype;return FA.nextCodePoint=function(){var dA=this.string.charCodeAt(this.pos++),uA=this.string.charCodeAt(this.pos);return 55296<=dA&&dA<=56319&&56320<=uA&&uA<=57343?(this.pos++,1024*(dA-55296)+(uA-56320)+65536):dA},FA.nextCharClass=function(){return MA(lA.get(this.nextCodePoint()))},FA.getSimpleBreak=function(){switch(this.nextClass){case C:return!1;case l:case a:case g:return this.curClass=l,!1;case h:return this.curClass=h,!1}return null},FA.getPairTableBreak=function(dA){var uA=!1;switch(aA[this.curClass][this.nextClass]){case T:uA=!0;break;case F:uA=dA===C;break;case z:if(!(uA=dA===C))return!1;break;case b:if(dA!==C)return uA}return this.LB8a&&(uA=!1),!this.LB21a||this.curClass!==B&&this.curClass!==f?this.LB21a=this.curClass===m:(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 dA=this.nextCharClass();this.curClass=cA(dA),this.nextClass=dA,this.LB8a=dA===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]),m(CA)?SA.showHidden=CA:CA&&I._extend(SA,CA),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,CA){var SA=g.styles[CA];return SA?"\x1b["+g.colors[SA][0]+"m"+uA+"\x1b["+g.colors[SA][1]+"m":uA}function u(uA,CA){return uA}function e(uA,CA,SA){if(uA.customInspect&&CA&&AA(CA.inspect)&&CA.inspect!==I.inspect&&(!CA.constructor||CA.constructor.prototype!==CA)){var bA=CA.inspect(SA,uA);return U(bA)||(bA=e(uA,bA,SA)),bA}var XA=function f(uA,CA){if(F(CA))return uA.stylize("undefined","undefined");if(U(CA)){var SA="'"+JSON.stringify(CA).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return uA.stylize(SA,"string")}return D(CA)?uA.stylize(""+CA,"number"):m(CA)?uA.stylize(""+CA,"boolean"):d(CA)?uA.stylize("null","null"):void 0}(uA,CA);if(XA)return XA;var q=Object.keys(CA),O=function C(uA){var CA={};return uA.forEach(function(SA,bA){CA[SA]=!0}),CA}(q);if(uA.showHidden&&(q=Object.getOwnPropertyNames(CA)),aA(CA)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return B(CA);if(0===q.length){if(AA(CA))return uA.stylize("[Function"+(CA.name?": "+CA.name:"")+"]","special");if(z(CA))return uA.stylize(RegExp.prototype.toString.call(CA),"regexp");if(Z(CA))return uA.stylize(Date.prototype.toString.call(CA),"date");if(aA(CA))return B(CA)}var EA,W="",hA=!1,mA=["{","}"];return S(CA)&&(hA=!0,mA=["[","]"]),AA(CA)&&(W=" [Function"+(CA.name?": "+CA.name:"")+"]"),z(CA)&&(W=" "+RegExp.prototype.toString.call(CA)),Z(CA)&&(W=" "+Date.prototype.toUTCString.call(CA)),aA(CA)&&(W=" "+B(CA)),0!==q.length||hA&&0!=CA.length?SA<0?z(CA)?uA.stylize(RegExp.prototype.toString.call(CA),"regexp"):uA.stylize("[Object]","special"):(uA.seen.push(CA),EA=hA?function w(uA,CA,SA,bA,XA){for(var q=[],O=0,$=CA.length;O<$;++O)DA(CA,String(O))?q.push(Q(uA,CA,SA,bA,String(O),!0)):q.push("");return XA.forEach(function(W){W.match(/^\d+$/)||q.push(Q(uA,CA,SA,bA,W,!0))}),q}(uA,CA,SA,O,q):q.map(function(GA){return Q(uA,CA,SA,O,GA,hA)}),uA.seen.pop(),function p(uA,CA,SA){return uA.reduce(function(q,O){return O.indexOf("\n"),q+O.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?SA[0]+(""===CA?"":CA+"\n ")+" "+uA.join(",\n ")+" "+SA[1]:SA[0]+CA+" "+uA.join(", ")+" "+SA[1]}(EA,W,mA)):mA[0]+W+mA[1]}function B(uA){return"["+Error.prototype.toString.call(uA)+"]"}function Q(uA,CA,SA,bA,XA,q){var O,$,W;if((W=Object.getOwnPropertyDescriptor(CA,XA)||{value:CA[XA]}).get?$=uA.stylize(W.set?"[Getter/Setter]":"[Getter]","special"):W.set&&($=uA.stylize("[Setter]","special")),DA(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&&($=q?$.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(q&&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 S(uA){return Array.isArray(uA)}function m(uA){return"boolean"==typeof uA}function d(uA){return null===uA}function D(uA){return"number"==typeof uA}function U(uA){return"string"==typeof uA}function F(uA){return void 0===uA}function z(uA){return b(uA)&&"[object RegExp]"===MA(uA)}function b(uA){return"object"==typeof uA&&null!==uA}function Z(uA){return b(uA)&&"[object Date]"===MA(uA)}function aA(uA){return b(uA)&&("[object Error]"===MA(uA)||uA instanceof Error)}function AA(uA){return"function"==typeof uA}function MA(uA){return Object.prototype.toString.call(uA)}function cA(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 CA=c.pid;l[uA]=function(){var SA=I.format.apply(I,arguments);console.error("%s %d: %s",uA,CA,SA)}}else l[uA]=function(){};return l[uA]},I.inspect=g,g.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]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=n(5955),I.isArray=S,I.isBoolean=m,I.isNull=d,I.isNullOrUndefined=function v(uA){return null==uA},I.isNumber=D,I.isString=U,I.isSymbol=function T(uA){return"symbol"==typeof uA},I.isUndefined=F,I.isRegExp=z,I.types.isRegExp=z,I.isObject=b,I.isDate=Z,I.types.isDate=Z,I.isError=aA,I.types.isNativeError=aA,I.isFunction=AA,I.isPrimitive=function lA(uA){return null===uA||"boolean"==typeof uA||"number"==typeof uA||"string"==typeof uA||"symbol"==typeof uA||void 0===uA},I.isBuffer=n(384);var gA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function BA(){var uA=new Date,CA=[cA(uA.getHours()),cA(uA.getMinutes()),cA(uA.getSeconds())].join(":");return[uA.getDate(),gA[uA.getMonth()],CA].join(" ")}function DA(uA,CA){return Object.prototype.hasOwnProperty.call(uA,CA)}I.log=function(){console.log("%s - %s",BA(),I.format.apply(I,arguments))},I.inherits=n(5717),I._extend=function(uA,CA){if(!CA||!b(CA))return uA;for(var SA=Object.keys(CA),bA=SA.length;bA--;)uA[SA[bA]]=CA[SA[bA]];return uA};var FA="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(uA,CA){if(!uA){var SA=new Error("Promise was rejected with a falsy value");SA.reason=uA,uA=SA}return CA(uA)}I.promisify=function(CA){if("function"!=typeof CA)throw new TypeError('The "original" argument must be of type Function');if(FA&&CA[FA]){var SA;if("function"!=typeof(SA=CA[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,q=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,U=v&&v.compressed?"":"\n";for(var F in this.attr)Object.prototype.hasOwnProperty.call(this.attr,F)&&(D+=" "+F+'="'+S(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+=">"+U;for(var z=d+(v&&v.compressed?"":" "),b=0,Z=this.children.length;b"}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},o.prototype.toString=function(d){return m(S(this.text),d)},o.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!--"+m(S(this.comment),d)+"--\x3e"},h.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},i.prototype.type="element",o.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 g=null;function u(){g[0]&&g[0]._opentag.apply(g[0],arguments)}function C(){g[0]&&g[0]._closetag.apply(g[0],arguments)}function e(){g[0]&&g[0]._text.apply(g[0],arguments)}function f(){g[0]&&g[0]._cdata.apply(g[0],arguments)}function B(){g[0]&&g[0]._comment.apply(g[0],arguments)}function w(){g[0]&&g[0]._doctype.apply(g[0],arguments)}function Q(){g[0]&&g[0]._error.apply(g[0],arguments)}function S(d){return d.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function m(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}Y.exports&&!n.g.xmldocAssumeBrowser?Y.exports.XmlDocument=a:this.XmlDocument=a}()},6255:function(Y,I,n){"use strict";"undefined"!=typeof window&&!window.Promise&&n(3867),n(4667);function i(o){this.fs=o,this.resolving={}}i.prototype.resolve=function(o,l){if(!this.resolving[o]){var h=this;this.resolving[o]=new Promise(function(a,g){0===o.toLowerCase().indexOf("https://")||0===o.toLowerCase().indexOf("http://")?function(o,l){return new Promise(function(h,a){var g=new XMLHttpRequest;for(var E in g.open("GET",o,!0),l)g.setRequestHeader(E,l[E]);g.responseType="arraybuffer",g.onreadystatechange=function(){4===g.readyState&&(g.status>=200&&g.status<300||setTimeout(function(){a(new TypeError('Failed to fetch (url: "'+o+'")'))},0))},g.onload=function(){g.status>=200&&g.status<300&&h(g.response)},g.onerror=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+o+'")'))},0)},g.ontimeout=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+o+'")'))},0)},g.send()})}(o,l).then(function(E){h.fs.writeFileSync(o,E),a()},function(E){g(E)}):a()})}return this.resolving[o]},i.prototype.resolved=function(){var o=this;return new Promise(function(l,h){Promise.all(Object.values(o.resolving)).then(function(){l()},function(a){h(a)})})},Y.exports=i},4275:function(Y,I,n){"use strict";var c=n(8823).Buffer,i=n(6225).isFunction,o=n(6225).isUndefined,a=(n(6225),n(1818).saveAs),g={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};function E(C,e,f,B){this.docDefinition=C,this.tableLayouts=e||null,this.fonts=f||g,this.vfs=B}E.prototype._createDoc=function(C,e){var f=function(U){return"object"==typeof U?{url:U.url,headers:U.headers}:{url:U,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 S=new(n(6255))(n(3857));for(var m in this.fonts)if(this.fonts.hasOwnProperty(m)){if(this.fonts[m].normal){var d=f(this.fonts[m].normal);S.resolve(d.url,d.headers),this.fonts[m].normal=d.url}this.fonts[m].bold&&(d=f(this.fonts[m].bold),S.resolve(d.url,d.headers),this.fonts[m].bold=d.url),this.fonts[m].italics&&(d=f(this.fonts[m].italics),S.resolve(d.url,d.headers),this.fonts[m].italics=d.url),this.fonts[m].bolditalics&&(d=f(this.fonts[m].bolditalics),S.resolve(d.url,d.headers),this.fonts[m].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]),S.resolve(d.url,d.headers),this.docDefinition.images[v]=d.url);var D=this;S.resolved().then(function(){var U=w.createPdfKitDocument(D.docDefinition,C);e(U)},function(U){throw U})},E.prototype._flushDoc=function(C,e){var B,f=[];C.on("readable",function(){for(var w;null!==(w=C.read(9007199254740991));)f.push(w)}),C.on("end",function(){B=c.concat(f),e(B,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(B){f._flushDoc(B,function(w,Q){e(Q)})})},E.prototype._bufferToBlob=function(C){var e;try{e=new Blob([C],{type:"application/pdf"})}catch(B){if("InvalidStateError"===B.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)&&(o(e)||(f=e),e=C,C=null),C=C||"file.pdf",this.getBlob(function(B){a(B,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(B){var w=f._bufferToBlob(B);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(B){f._flushDoc(B,function(w){C(w)})})},E.prototype.getStream=function(C,e){if(!i(e))return this._createDoc(C);this._createDoc(C,function(B){e(B)})},Y.exports={createPdf:function(C,e,f,B){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,B||n.g.pdfMake.vfs)}}},3857:function(Y,I,n){"use strict";var i=n(8823).Buffer;function o(){this.fileSystem={},this.dataSystem={}}function l(h){return 0===h.indexOf("/")&&(h=h.substring("/".length)),0===h.indexOf("/")&&(h=h.substring(1)),h}o.prototype.existsSync=function(h){return h=l(h),void 0!==this.fileSystem[h]||void 0!==this.dataSystem[h]},o.prototype.readFileSync=function(h,a){h=l(h);var g=this.dataSystem[h];if("string"==typeof g&&"utf8"===a)return g;if(g)return new i(g,"string"==typeof g?"base64":void 0);var E=this.fileSystem[h];if(E)return E;throw"File '"+h+"' not found in virtual file system"},o.prototype.writeFileSync=function(h,a){this.fileSystem[l(h)]=a},o.prototype.bindFS=function(h){this.dataSystem=h||{}},Y.exports=new o},4498:function(Y,I,n){"use strict";var c=n(6225).isString;function o(a){return"auto"===a.width}function l(a){return null==a.width||"*"===a.width||"star"===a.width}Y.exports={buildColumnWidths:function i(a,g){var E=[],u=0,C=0,e=[],f=0,B=0,w=[],Q=g;a.forEach(function(D){o(D)?(E.push(D),u+=D._minWidth,C+=D._maxWidth):l(D)?(e.push(D),f=Math.max(f,D._minWidth),B=Math.max(B,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=g)E.forEach(function(D){D._calcWidth=D._minWidth}),e.forEach(function(D){D._calcWidth=f});else{if(S0){var v=g/e.length;e.forEach(function(D){D._calcWidth=v})}}},measureMinMax:function h(a){for(var g={min:0,max:0},E={min:0,max:0},u=0,C=0,e=a.length;C=0;z--){var Z=w.styleStack.styleDictionary[T[z]];for(var aA in Z)Z.hasOwnProperty(aA)&&(F[aA]=Z[aA])}return F}function d(T){return h(T)?T=[T,T,T,T]:g(T)&&2===T.length&&(T=[T[0],T[1],T[0],T[1]]),T}var v=[void 0,void 0,void 0,void 0];if(B.style){var U=m(g(B.style)?B.style:[B.style]);U&&(v=S(U,v)),U.margin&&(v=d(U.margin))}return v=S(B,v),B.margin&&(v=d(B.margin)),void 0===v[0]&&void 0===v[1]&&void 0===v[2]&&void 0===v[3]?null:v}(),B.columns)return Q(w.measureColumns(B));if(B.stack)return Q(w.measureVerticalContainer(B));if(B.ul)return Q(w.measureUnorderedList(B));if(B.ol)return Q(w.measureOrderedList(B));if(B.table)return Q(w.measureTable(B));if(void 0!==B.text)return Q(w.measureLeaf(B));if(B.toc)return Q(w.measureToc(B));if(B.image)return Q(w.measureImage(B));if(B.svg)return Q(w.measureSVG(B));if(B.canvas)return Q(w.measureCanvas(B));if(B.qr)return Q(w.measureQr(B));throw"Unrecognized document structure: "+JSON.stringify(B,E)});function Q(S){var m=S._margin;return m&&(S._minWidth+=m[0]+m[2],S._maxWidth+=m[0]+m[2]),S}},f.prototype.convertIfBase64Image=function(B){if(/^data:image\/(jpeg|jpg|png);base64,/.test(B.image)){var w="$$pdfmake$$"+this.autoImageIndex++;this.images[w]=B.image,B.image=w}},f.prototype.measureImageWithDimensions=function(B,w){if(B.fit){var Q=w.width/w.height>B.fit[0]/B.fit[1]?B.fit[0]/w.width:B.fit[1]/w.height;B._width=B._minWidth=B._maxWidth=w.width*Q,B._height=w.height*Q}else B._width=B._minWidth=B._maxWidth=B.width||w.width,B._height=B.height||w.height*B._width/w.width,h(B.maxWidth)&&B.maxWidthB._width&&(B._width=B._minWidth=B._maxWidth=B.minWidth,B._height=B._width*w.height/w.width),h(B.minHeight)&&B.minHeight>B._height&&(B._height=B.minHeight,B._width=B._minWidth=B._maxWidth=B._height*w.width/w.height);B._alignment=this.styleStack.getProperty("alignment")},f.prototype.measureImage=function(B){this.images&&this.convertIfBase64Image(B);var w=this.imageMeasure.measureImage(B.image);return this.measureImageWithDimensions(B,w),B},f.prototype.measureSVG=function(B){var w=this.svgMeasure.measureSVG(B.svg);return this.measureImageWithDimensions(B,w),B.font=this.styleStack.getProperty("font"),B.svg=this.svgMeasure.writeDimensions(B.svg,{width:B._width,height:B._height}),B},f.prototype.measureLeaf=function(B){B._textRef&&B._textRef._textNodeRef.text&&(B.text=B._textRef._textNodeRef.text);var w=this.styleStack.clone();w.push(B);var Q=this.textTools.buildInlines(B.text,w);return B._inlines=Q.items,B._minWidth=Q.minWidth,B._maxWidth=Q.maxWidth,B},f.prototype.measureToc=function(B){if(B.toc.title&&(B.toc.title=this.measureNode(B.toc.title)),B.toc._items.length>0){for(var w=[],Q=B.toc.textStyle||{},p=B.toc.numberStyle||Q,S=B.toc.textMargin||[0,0,0,0],m=0,d=B.toc._items.length;m=26?F((z/26>>0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[z%26>>0]}(T-1)}function m(T){if(T<1||T>4999)return T.toString();var Z,F=T,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},b="";for(Z in z)for(;F>=z[Z];)b+=Z,F-=z[Z];return b}var v;switch(Q){case"none":v=null;break;case"upper-alpha":v=S(B).toUpperCase();break;case"lower-alpha":v=S(B);break;case"upper-roman":v=m(B);break;case"lower-roman":v=m(B).toLowerCase();break;default:v=function d(T){return T.toString()}(B)}if(null===v)return{};p&&(g(p)?(p[0]&&(v=p[0]+v),p[1]&&(v+=p[1]),v+=" "):v+=p+" ");var D={text:v},U=w.getProperty("markerColor");return U&&(D.color=U),{_inlines:this.textTools.buildInlines(D,w).items}},f.prototype.measureUnorderedList=function(B){var w=this.styleStack.clone(),Q=B.ul;B.type=B.type||"disc",B._gapSize=this.gapSizeForList(),B._minWidth=0,B._maxWidth=0;for(var p=0,S=Q.length;p0?w.length-1:0;return B._minWidth=S.min+B._gap*m,B._maxWidth=S.max+B._gap*m,B},f.prototype.measureTable=function(B){(function lA(MA){if(MA.table.widths||(MA.table.widths="auto"),l(MA.table.widths))for(MA.table.widths=[MA.table.widths];MA.table.widths.length1?(aA(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&&AA(B.table,p,Q,D.rowSpan)}}!function b(){for(var MA,cA,gA=0,BA=w.length;gA0)for(MA=_/DA.span,cA=0;cA0)for(MA=dA/DA.span,cA=0;cAE.page?g:E.page>g.page?E:g.y>E.y?g:E).page,x:u.x,y:u.y,availableHeight:u.availableHeight,availableWidth:u.availableWidth}}(this,g.bottomMost)},o.prototype.markEnding=function(g){this.page=g._columnEndingContext.page,this.x=g._columnEndingContext.x,this.y=g._columnEndingContext.y,this.availableWidth=g._columnEndingContext.availableWidth,this.availableHeight=g._columnEndingContext.availableHeight,this.lastColumnWidth=g._columnEndingContext.lastColumnWidth},o.prototype.saveContextInEndingCell=function(g){g._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}},o.prototype.completeColumnGroup=function(g){var E=this.snapshots.pop();this.calculateBottomMost(E),this.endingCell=null,this.x=E.x;var u=E.bottomMost.y;g&&(E.page===E.bottomMost.page?E.y+g>u&&(u=E.y+g):u+=g),this.y=u,this.page=E.bottomMost.page,this.availableWidth=E.availableWidth,this.availableHeight=E.bottomMost.availableHeight,g&&(this.availableHeight-=u-E.bottomMost.y),this.lastColumnWidth=E.lastColumnWidth},o.prototype.addMargin=function(g,E){this.x+=g,this.availableWidth-=g+(E||0)},o.prototype.moveDown=function(g){return this.y+=g,this.availableHeight-=g,this.availableHeight>0},o.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},o.prototype.pageSnapshot=function(){return this.snapshots[0]?this.snapshots[0]:this},o.prototype.moveTo=function(g,E){null!=g&&(this.x=g,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)},o.prototype.moveToRelative=function(g,E){null!=g&&(this.x=this.x+g),null!=E&&(this.y=this.y+E)},o.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})},o.prototype.endDetachedBlock=function(){var g=this.snapshots.pop();this.x=g.x,this.y=g.y,this.availableWidth=g.availableWidth,this.availableHeight=g.availableHeight,this.page=g.page,this.endingCell=g.endingCell,this.lastColumnWidth=g.lastColumnWidth};var h=function(g,E){return(E=function l(g,E){return void 0===g?E:i(g)&&"landscape"===g.toLowerCase()?"landscape":"portrait"}(E,g.pageSize.orientation))!==g.pageSize.orientation?{orientation:E,width:g.pageSize.height,height:g.pageSize.width}:{orientation:g.pageSize.orientation,width:g.pageSize.width,height:g.pageSize.height}};o.prototype.moveToNextPage=function(g){var E=this.page+1,u=this.page,C=this.y,e=E>=this.pages.length;if(e){var f=this.availableWidth,B=this.getCurrentPage().pageSize.orientation,w=h(this.getCurrentPage(),g);this.addPage(w),B===w.orientation&&(this.availableWidth=f)}else this.page=E,this.initializePage();return{newPageCreated:e,prevPage:u,prevY:C,y:this.y}},o.prototype.addPage=function(g){var E={items:[],pageSize:g};return this.pages.push(E),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.tracker.emit("pageAdded"),E},o.prototype.getCurrentPage=function(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]},o.prototype.getCurrentPosition=function(){var g=this.getCurrentPage().pageSize,E=g.height-this.pageMargins.top-this.pageMargins.bottom,u=g.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:g.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}},Y.exports=o},1196:function(Y,I,n){"use strict";var c=n(4775),i=n(6225).isNumber,o=n(6225).pack,l=n(6225).offsetVector,h=n(3858);function a(u,C){this.context=u,this.contextStack=[],this.tracker=C}function g(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(),B=this.context,w=B.getCurrentPage(),Q=this.getCurrentPositionOnPage();return!(B.availableHeight0&&u.inlines[0].alignment,B=0;switch(f){case"right":B=C-e;break;case"center":B=(C-e)/2}if(B&&(u.x=(u.x||0)+B),"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),g(B,{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(),B=this.getCurrentPositionOnPage();if(!f||void 0===u.absolutePosition&&e.availableHeightB.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=B.page+1),p.x=(p.x||0)+(C?u.xOffset||0:B.x),p.y=(p.y||0)+(e?u.yOffset||0:B.y),w.items.push({type:"line",item:p});break;case"vector":var S=o(Q.item);l(S,C?u.xOffset||0:B.x,e?u.yOffset||0:B.y),w.items.push({type:"vector",item:S});break;case"image":case"svg":var m=o(Q.item);m.x=(m.x||0)+(C?u.xOffset||0:B.x),m.y=(m.y||0)+(e?u.yOffset||0:B.y),w.items.push({type:Q.type,item:m})}}),f||B.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()},Y.exports=a},2249:function(Y,I,n){"use strict";var c=n(6225).isArray;function o(l,h){for(var a in this.fonts={},this.pdfKitDoc=h,this.fontCache={},l)if(l.hasOwnProperty(a)){var g=l[a];this.fonts[a]={normal:g.normal,bold:g.bold,italics:g.italics,bolditalics:g.bolditalics}}}o.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)},o.prototype.getFontFile=function(l,h,a){var g=this.getFontType(h,a);return this.fonts[l]&&this.fonts[l][g]?this.fonts[l][g]:null},o.prototype.provideFont=function(l,h,a){var g=this.getFontType(h,a);if(null===this.getFontFile(l,h,a))throw new Error("Font '"+l+"' in style '"+g+"' is not defined in the font section of the document definition.");if(this.fontCache[l]=this.fontCache[l]||{},!this.fontCache[l][g]){var E=this.fonts[l][g];c(E)||(E=[E]),this.fontCache[l][g]=this.pdfKitDoc.font.apply(this.pdfKitDoc,E)._font}return this.fontCache[l][g]},Y.exports=o},6225:function(Y){"use strict";function i(B){return Array.isArray(B)}Y.exports={isString:function I(B){return"string"==typeof B||B instanceof String},isNumber:function n(B){return"number"==typeof B||B instanceof Number},isBoolean:function c(B){return"boolean"==typeof B},isArray:i,isFunction:function o(B){return"function"==typeof B},isObject:function l(B){return null!==B&&"object"==typeof B},isNull:function h(B){return null===B},isUndefined:function a(B){return void 0===B},pack:function g(){for(var B={},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(mA){void 0!==W[mA]&&(hA[mA]=W[mA])}),hA.startPosition=W.positions[0],hA.pageNumbers=Array.from(new Set(W.positions.map(function(mA){return mA.pageNumber}))),hA.pages=dA.length,hA.stack=C(W.stack),W.nodeInfo=hA});for(var uA=0;uA<_.length;uA++){var CA=_[uA];if("before"!==CA.pageBreak&&!CA.pageBreakCalculated){CA.pageBreakCalculated=!0;var SA=CA.nodeInfo.pageNumbers[0],bA=[],XA=[],q=[];if(gA.length>1)for(var O=uA+1,$=_.length;O<$;O++)_[O].nodeInfo.pageNumbers.indexOf(SA)>-1&&bA.push(_[O].nodeInfo),gA.length>2&&_[O].nodeInfo.pageNumbers.indexOf(SA+1)>-1&&XA.push(_[O].nodeInfo);if(gA.length>3)for(O=0;O-1&&q.push(_[O].nodeInfo);if(gA(CA.nodeInfo,bA,XA,q))return CA.pageBreak="before",!0}}return!1}this.docPreprocessor=new i,this.docMeasure=new o(z,b,Z,this.imageMeasure,this.svgMeasure,this.tableLayouts,MA);for(var FA=this.tryLayoutDocument(F,z,b,Z,aA,AA,lA,MA,cA);BA(FA.linearNodeList,FA.pages);)FA.linearNodeList.forEach(function(dA){dA.resetXY()}),FA=this.tryLayoutDocument(F,z,b,Z,aA,AA,lA,MA,cA);return FA.pages},U.prototype.tryLayoutDocument=function(F,z,b,Z,aA,AA,lA,MA,cA,gA){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 BA=this;return this.writer.context().tracker.startTracking("pageAdded",function(){BA.addBackground(aA)}),this.addBackground(aA),this.processNode(F),this.addHeadersAndFooters(AA,lA),null!=cA&&this.addWatermark(cA,z,Z),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}},U.prototype.addBackground=function(F){var z=S(F)?F:function(){return F},b=this.writer.context(),Z=b.getCurrentPage().pageSize,aA=z(b.page+1,Z);aA&&(this.writer.beginUnbreakableBlock(Z.width,Z.height),aA=this.docPreprocessor.preprocessDocument(aA),this.processNode(this.docMeasure.measureDocument(aA)),this.writer.commitUnbreakableBlock(0,0),b.backgroundLength[b.page]+=aA.positions.length)},U.prototype.addStaticRepeatable=function(F,z){this.addDynamicRepeatable(function(){return JSON.parse(JSON.stringify(F))},z)},U.prototype.addDynamicRepeatable=function(F,z){for(var Z=0,aA=this.writer.context().pages.length;Z1;)_.push({fontSize:SA}),(dA=FA.sizeOfRotatedText(BA.text,BA.angle,_)).width>gA.width?SA=(uA+(CA=SA))/2:dA.widthgA.height?(uA+(CA=SA))/2:((uA=SA)+CA)/2),_.pop();return SA}(this.pageSize,F,z));var Z={text:F.text,font:z.provideFont(F.font,F.bold,F.italics),fontSize:F.fontSize,color:F.color,opacity:F.opacity,angle:F.angle};Z._size=function MA(gA,BA){var DA=new m(BA),FA=new d(null,{font:gA.font,bold:gA.bold,italics:gA.italics});return FA.push({fontSize:gA.fontSize}),{size:DA.sizeOfString(gA.text,FA),rotatedSize:DA.sizeOfRotatedText(gA.text,gA.angle,FA)}}(F,z);for(var aA=this.writer.context().pages,AA=0,lA=aA.length;AA0;cA--)MA.push(lA);return MA}(F._gap);Z&&(b-=(Z.length-1)*F._gap),a.buildColumnWidths(z,b);var aA=this.processRow(z,z,Z);D(F.positions,aA.positions)},U.prototype.processRow=function(F,z,b,Z,aA,AA){var lA=this,MA=[],cA=[];return this.tracker.auto("pageChanged",function gA(FA){for(var _,dA=0,uA=MA.length;dA1)for(var SA=1;SAFA?b[FA]:0}function DA(FA,_){if(FA.rowSpan&&FA.rowSpan>1){var dA=aA+FA.rowSpan-1;if(dA>=Z.length)throw"Row span for column "+_+" (with indexes starting from 0) exceeded row count";return Z[dA][_]}return null}},U.prototype.processList=function(F,z){var AA,b=this,Z=F?z.ol:z.ul,aA=z._gapSize;this.writer.context().addMargin(aA.width),this.tracker.auto("lineAdded",function lA(MA){if(AA){var cA=AA;if(AA=null,cA.canvas){var gA=cA.canvas[0];w(gA,-cA._minWidth,0),b.writer.addVector(gA)}else if(cA._inlines){var BA=new E(b.pageSize.width);BA.addInline(cA._inlines[0]),BA.x=-cA._minWidth,BA.y=MA.getAscenderHeight()-BA.getAscenderHeight(),b.writer.addLine(BA,!0)}}},function(){Z.forEach(function(MA){AA=MA.listMarker,b.processNode(MA),D(z.positions,MA.positions)})}),this.writer.context().addMargin(-aA.width)},U.prototype.processTable=function(F){var z=new g(F);z.beginTable(this.writer);for(var b=F.table.heights,Z=0,aA=F.table.body.length;Z0&&(b.hasEnoughSpaceForInline(F._inlines[0],F._inlines.slice(1))||aA);){var AA=!1,lA=F._inlines.shift();if(aA=!1,!lA.noWrap&&lA.text.length>1&&lA.width>b.getAvailableWidth()){var MA=lA.width/lA.text.length,cA=Math.floor(b.getAvailableWidth()/MA);if(cA<1&&(cA=1),cA0){var u=g.pages[0];if(u.xOffset=h,u.yOffset=a,E>1)if(void 0!==h||void 0!==a)u.height=g.getCurrentPage().pageSize.height-g.pageMargins.top-g.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=T(dA||40),bA=SA.top;return _.forEach(function(XA){XA.items.forEach(function(q){var O=CA(q);O>bA&&(bA=O)})}),bA+=SA.bottom}function U(_,dA){_&&"auto"===_.height&&(_.height=1/0);var CA=function z(_){if(C(_)){var dA=l[_.toUpperCase()];if(!dA)throw"Page size "+_+" not recognized";return{width:dA[0],height:dA[1]}}return _}(_||"A4");return function uA(SA){return!!C(SA)&&("portrait"===(SA=SA.toLowerCase())&&CA.width>CA.height||"landscape"===SA&&CA.widthCA.height?"landscape":"portrait",CA}function T(_){if(e(_))_={left:_,right:_,top:_,bottom:_};else if(B(_))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 b(_,dA){_.pageSize.orientation!==(dA.options.size[0]>dA.options.size[1]?"landscape":"portrait")&&(dA.options.size=[dA.options.size[1],dA.options.size[0]])}function aA(_,dA){var uA=_;return dA.sup&&(uA-=.75*dA.fontSize),dA.sub&&(uA+=.35*dA.fontSize),uA}function AA(_,dA,uA,CA,SA){function bA(ot,TA){var it,mt,It=new E(null);if(w(ot.positions))throw"Page reference id not found";var ft=ot.positions[0].pageNumber.toString();switch(TA.text=ft,it=It.widthOfString(TA.text,TA.font,TA.fontSize,TA.characterSpacing,TA.fontFeatures),mt=TA.width-it,TA.width=it,TA.alignment){case"right":TA.x+=mt;break;case"center":TA.x+=mt/2}}_._pageNodeRef&&bA(_._pageNodeRef,_.inlines[0]),dA=dA||0,uA=uA||0;var XA=_.getHeight(),O=XA-_.getAscenderHeight();g.drawBackground(_,dA,uA,CA,SA);for(var $=0,W=_.inlines.length;$1){var XA=_.points[0],q=_.points[_.points.length-1];(_.closePath||XA.x===q.x&&XA.y===q.y)&&uA.closePath()}break;case"path":uA.path(_.d)}if(_.linearGradient&&CA){var O=1/(_.linearGradient.length-1);for(SA=0;SA<_.linearGradient.length;SA++)CA.stop(SA*O,_.linearGradient[SA]);_.color=CA}Q(_.color)&&(_.color=p(_.color,dA));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 cA(_,dA,uA,CA){var SA=e(_.opacity)?_.opacity:1;if(CA.opacity(SA),_.cover){var bA=_.cover.align||"center",XA=_.cover.valign||"center",q=_.cover.width?_.cover.width:_.width,O=_.cover.height?_.cover.height:_.height;CA.save(),CA.rect(_.x,_.y,q,O).clip(),CA.image(_.image,_.x,_.y,{cover:[q,O],align:bA,valign:XA}),CA.restore()}else CA.image(_.image,_.x,_.y,{width:_._width,height:_._height});_.link&&CA.link(_.x,_.y,_._width,_._height,_.link),_.linkToPage&&(CA.ref({Type:"Action",S:"GoTo",D:[_.linkToPage,0,0]}).end(),CA.annotate(_.x,_.y,_._width,_._height,{Subtype:"Link",Dest:[_.linkToPage-1,"XYZ",null,null,null]})),_.linkToDestination&&CA.goTo(_.x,_.y,_._width,_._height,_.linkToDestination)}function gA(_,dA,uA,CA,SA){var bA=Object.assign({width:_._width,height:_._height,assumePt:!0},_.options);bA.fontCallback=function(XA,q,O){var $=XA.split(",").map(function(nA){return nA.trim().replace(/('|")/g,"")}),W=function(_,dA,uA){for(var CA=0;CA-1&&(bA=bA.slice(0,XA)),uA.height===1/0){var q=D(bA,_.pageMargins);this.pdfKitDoc.options.size=[uA.width,q]}var O=function FA(_,dA){var uA={};return Object.keys(_).forEach(function(CA){var SA=_[CA];uA[CA]=dA.pattern(SA.boundingBox,SA.xStep,SA.yStep,SA.pattern,SA.colored)}),uA}(_.patterns||{},this.pdfKitDoc);if(function Z(_,dA,uA,CA,SA){uA._pdfMakePages=_,uA.addPage();var bA=0;SA&&_.forEach(function(mA){bA+=mA.items.length});var XA=0;SA=SA||function(){};for(var q=0;q<_.length;q++){q>0&&(b(_[q],uA),uA.addPage(uA.options));for(var O=_[q],$=0,W=O.items.length;$=128?285:0);var p=[[]];for(w=0;w<30;++w){for(var S=p[w],m=[],d=0;d<=w;++d)m.push(B[(d6},Z=function(q,O){var $=-8&function(q){var O=I[q],$=16*q*q+128*q+64;return F(q)&&($-=36),O[2].length&&($-=25*O[2].length*O[2].length-10*O[2].length-55),$}(q),W=I[q];return $-8*W[0][O]*W[1][O]},aA=function(q,O){switch(O){case 1:return q<10?10:q<27?12:14;case 2:return q<10?9:q<27?11:13;case 4:return q<10?8:16;case 8:return q<10?8:q<27?10:12}},AA=function(q,O,$){var W=Z(q,$)-4-aA(q,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}},cA=function(q,O){for(var $=q.slice(0),W=q.length,hA=O.length,mA=0;mA=0)for(var EA=0;EA=0;--mA)hA>>W+mA&1&&(hA^=$<>nA&1;return q},uA=function(q){for(var mA=function(JA){for(var WA=0,rt=0;rt=5&&(WA+=JA[rt]-5+3);for(rt=5;rt=4*yA||JA[rt+1]>=4*yA)&&(WA+=40)}return WA},nA=q.length,EA=0,GA=0,et=0;et=nA){for(hA.push(mA|TA>>(it-=nA));it>=8;)hA.push(TA>>(it-=8)&255);mA=0,nA=8}it>0&&(mA|=(TA&(1<>3);nA=function(q,O,$){for(var W=[],hA=q.length/O|0,mA=0,nA=O-q.length%O,EA=0;EA>Mt&1,hA[It+yA][ft+Mt]=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]),mA=9;mA<$-8;++mA)W[6][mA]=W[mA][6]=1&~mA,hA[6][mA]=hA[mA][6]=1;var EA=O[2],GA=EA.length;for(mA=0;mA>mt++&1,hA[mA][$-11+TA]=hA[$-11+TA][mA]=1}return{matrix:W,reserved:hA}}(O),GA=EA.matrix,et=EA.reserved;if(function(q,O,$){for(var W=q.length,hA=0,mA=-1,nA=W-1;nA>=0;nA-=2){6==nA&&--nA;for(var EA=mA<0?W-1:0,GA=0;GAnA-2;--et)O[EA][et]||(q[EA][et]=$[hA>>3]>>(7&~hA)&1,++hA);EA+=mA}mA=-mA}}(GA,et,nA),hA<0){_(GA,et,0),dA(GA,0,W,0);var ot=0,TA=uA(GA);for(_(GA,et,0),hA=1;hA<8;++hA){_(GA,et,hA),dA(GA,0,W,hA);var it=uA(GA);TA>it&&(TA=it,ot=hA),_(GA,et,hA)}hA=ot}return _(GA,et,hA),dA(GA,0,W,hA),GA};function SA(q,O){var $={numeric:1,alphanumeric:2,octet:4},hA=(O=O||{}).version||-1,mA={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 q?q.match(h)?1:q.match(g)?2:4:4;else if(1!=nA&&2!=nA&&4!=nA)throw"invalid or unsupported mode";if(null===(q=function(q,O){switch(q){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,q)))throw"invalid data format";if(mA<0||mA>3)throw"invalid ECC level";if(hA<0){for(hA=1;hA<=40&&!(q.length<=AA(hA,nA,mA));++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 CA(q,hA,nA,mA,EA)}Y.exports={measure:function XA(q){var O=function bA(q,O){var $=[],W=O.background||"#fff",hA=O.foreground||"#000",mA=SA(q,O),nA=mA.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 g=[];a.style&&(g=i(a.style)?a.style:[a.style]);for(var E=0,u=g.length;E0&&this.pop(E),u},h.prototype.getProperty=function(a){if(this.styleOverrides)for(var g=this.styleOverrides.length-1;g>=0;g--){var E=this.styleOverrides[g];if(c(E)){var u=this.styleDictionary[E];if(u&&!o(u[a])&&!l(u[a]))return u[a]}else if(!o(E[a])&&!l(E[a]))return E[a]}return this.defaultStyle&&this.defaultStyle[a]},Y.exports=h},7601:function(Y,I,n){"use strict";var c=n(6513);function i(h){var a=parseFloat(h);if("number"==typeof a&&!isNaN(a))return a}function o(h){var a;try{a=new c.XmlDocument(h)}catch(g){throw new Error("SVGMeasure: "+g)}if("svg"!==a.name)throw new Error("SVGMeasure: expected document");return a}function l(){}l.prototype.measureSVG=function(h){var a=o(h),g=i(a.attr.width),E=i(a.attr.height);if((null==g||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==g&&(g=i(u[2])),null==E&&(E=i(u[3]))}return{width:g,height:E}},l.prototype.writeDimensions=function(h,a){var g=o(h);return g.attr.width=""+a.width,g.attr.height=""+a.height,g.toString()},Y.exports=l},9342:function(Y,I,n){"use strict";var c=n(4498),i=n(6225).isFunction,o=n(6225).isNumber;function l(h){this.tableNode=h}l.prototype.beginTable=function(h){var a,g,E=this;this.offsets=(a=this.tableNode)._offsets,this.layout=a._layout,g=h.context().availableWidth-this.offsets.total,c.buildColumnWidths(a.table.widths,g),this.tableWidth=a._offsets.total+function u(){var f=0;return a.table.widths.forEach(function(B){f+=B._calcWidth}),f}(),this.rowSpanData=function C(){var f=[],B=0,w=0;f.push({left:0,rowSpan:0});for(var Q=0,p=E.tableNode.table.body[0].length;Q0&&D(B+d,Q,0,p.border[0]),void 0!==p.border[2]&&D(B+d,Q+m-1,2,p.border[2]);for(var v=0;v0&&D(B,Q+v,1,p.border[1]),void 0!==p.border[3]&&D(B+S-1,Q+v,3,p.border[3])}}function D(U,T,F,z){var b=f[U][T];b.border=b.border||{},b.border[F]=z}}(this.tableNode.table.body),this.drawHorizontalLine(0,h)},l.prototype.onRowBreak=function(h,a){var g=this;return function(){var E=g.rowPaddingTop+(g.headerRows?0:g.topLineWidth);a.context().availableHeight-=g.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,g){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,B=this.tableNode.table.body,S=0,m=this.rowSpanData.length;S0&&(T=(w=B[h-1][S]).border?w.border[3]:this.layout.defaultBorder)&&w.borderColor&&(D=w.borderColor[3]),hz;)f.width+=this.rowSpanData[S+z++].width||0;S+=z-1}else if(w&&w.colSpan&&T){for(;w.colSpan>z;)f.width+=this.rowSpanData[S+z++].width||0;S+=z-1}else if(Q&&Q.colSpan&&U){for(;Q.colSpan>z;)f.width+=this.rowSpanData[S+z++].width||0;S+=z-1}else f.width+=this.rowSpanData[S].width||0}var b=(g||0)+e;v&&f&&f.width&&(a.addVector({type:"line",x1:f.left,x2:f.left+f.width,y1:b,y2:b,lineWidth:E,dash:C,lineColor:D},!1,g),f=null,D=null,w=null,Q=null,p=null)}a.context().moveDown(E)}},l.prototype.drawVerticalLine=function(h,a,g,E,u,C,e){var f=this.layout.vLineWidth(E,this.tableNode);if(0!==f){var w,B=this.layout.vLineStyle(E,this.tableNode);B&&B.dash&&(w=B.dash);var p,S,m,Q=this.tableNode.table.body;if(E>0&&(p=Q[C][e])&&p.borderColor&&(p.border?p.border[2]:this.layout.defaultBorder)&&(m=p.borderColor[2]),null==m&&E0&&$--}return O.push({x:C.rowSpanData[C.rowSpanData.length-1].left,index:C.rowSpanData.length-1}),O}(),w=[],Q=g&&g.length>0,p=this.tableNode.table.body;if(w.push({y0:this.rowTopY,page:Q?g[0].prevPage:e}),Q)for(u=0,E=g.length;u0&&!this.headerRows,T=U?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=B.length;u0&&!b&&(b=(AA=p[h][aA-1]).border?AA.border[2]:this.layout.defaultBorder),aA+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)},Y.exports=l},3497:function(Y,I,n){"use strict";var c=n(6225).isArray,i=n(6225).isPattern,o=n(6225).getPattern;function h(E,u,C,e){var w=E.inlines[0],Q=function f(){for(var BA=0,DA=0,FA=E.inlines.length;DABA?DA:BA;return E.inlines[BA]}(),p=function B(){for(var BA=0,DA=0,FA=E.inlines.length;DA=0&&i.splice(o,1)}},I.prototype.emit=function(n){var c=Array.prototype.slice.call(arguments,1),i=this.events[n];!i||i.forEach(function(o){o.apply(this,c)})},I.prototype.auto=function(n,c,i){this.startTracking(n,c),i(),this.stopTracking(n,c)},Y.exports=I},2480:function(){},5832:function(){},9862:function(){},964:function(){},3083:function(Y,I,n){"use strict";var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;Y.exports=function(){for(var l=[],h=0;h{var xr=function(Nt){"use strict";var Pn,Et=Object.prototype,_t=Et.hasOwnProperty,A="function"==typeof Symbol?Symbol:{},Ct=A.iterator||"@@iterator",Y=A.asyncIterator||"@@asyncIterator",I=A.toStringTag||"@@toStringTag";function n(F,z,b){return Object.defineProperty(F,z,{value:b,enumerable:!0,configurable:!0,writable:!0}),F[z]}try{n({},"")}catch(F){n=function(z,b,Z){return z[b]=Z}}function c(F,z,b,Z){var AA=Object.create((z&&z.prototype instanceof E?z:E).prototype),lA=new D(Z||[]);return AA._invoke=function S(F,z,b){var Z=o;return function(AA,lA){if(Z===h)throw new Error("Generator is already running");if(Z===a){if("throw"===AA)throw lA;return T()}for(b.method=AA,b.arg=lA;;){var MA=b.delegate;if(MA){var cA=m(MA,b);if(cA){if(cA===g)continue;return cA}}if("next"===b.method)b.sent=b._sent=b.arg;else if("throw"===b.method){if(Z===o)throw Z=a,b.arg;b.dispatchException(b.arg)}else"return"===b.method&&b.abrupt("return",b.arg);Z=h;var gA=i(F,z,b);if("normal"===gA.type){if(Z=b.done?a:l,gA.arg===g)continue;return{value:gA.arg,done:b.done}}"throw"===gA.type&&(Z=a,b.method="throw",b.arg=gA.arg)}}}(F,b,lA),AA}function i(F,z,b){try{return{type:"normal",arg:F.call(z,b)}}catch(Z){return{type:"throw",arg:Z}}}Nt.wrap=c;var o="suspendedStart",l="suspendedYield",h="executing",a="completed",g={};function E(){}function u(){}function C(){}var e={};n(e,Ct,function(){return this});var f=Object.getPrototypeOf,B=f&&f(f(U([])));B&&B!==Et&&_t.call(B,Ct)&&(e=B);var w=C.prototype=E.prototype=Object.create(e);function Q(F){["next","throw","return"].forEach(function(z){n(F,z,function(b){return this._invoke(z,b)})})}function p(F,z){function b(AA,lA,MA,cA){var gA=i(F[AA],F,lA);if("throw"!==gA.type){var BA=gA.arg,DA=BA.value;return DA&&"object"==typeof DA&&_t.call(DA,"__await")?z.resolve(DA.__await).then(function(FA){b("next",FA,MA,cA)},function(FA){b("throw",FA,MA,cA)}):z.resolve(DA).then(function(FA){BA.value=FA,MA(BA)},function(FA){return b("throw",FA,MA,cA)})}cA(gA.arg)}var Z;this._invoke=function aA(AA,lA){function MA(){return new z(function(cA,gA){b(AA,lA,cA,gA)})}return Z=Z?Z.then(MA,MA):MA()}}function m(F,z){var b=F.iterator[z.method];if(b===Pn){if(z.delegate=null,"throw"===z.method){if(F.iterator.return&&(z.method="return",z.arg=Pn,m(F,z),"throw"===z.method))return g;z.method="throw",z.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var Z=i(b,F.iterator,z.arg);if("throw"===Z.type)return z.method="throw",z.arg=Z.arg,z.delegate=null,g;var aA=Z.arg;return aA?aA.done?(z[F.resultName]=aA.value,z.next=F.nextLoc,"return"!==z.method&&(z.method="next",z.arg=Pn),z.delegate=null,g):aA:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,g)}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 U(F){if(F){var z=F[Ct];if(z)return z.call(F);if("function"==typeof F.next)return F;if(!isNaN(F.length)){var b=-1,Z=function aA(){for(;++b=0;--Z){var aA=this.tryEntries[Z],AA=aA.completion;if("root"===aA.tryLoc)return b("end");if(aA.tryLoc<=this.prev){var lA=_t.call(aA,"catchLoc"),MA=_t.call(aA,"finallyLoc");if(lA&&MA){if(this.prev=0;--b){var Z=this.tryEntries[b];if(Z.tryLoc<=this.prev&&_t.call(Z,"finallyLoc")&&this.prev=0;--z){var b=this.tryEntries[z];if(b.finallyLoc===F)return this.complete(b.completion,b.afterLoc),v(b),g}},catch:function(F){for(var z=this.tryEntries.length-1;z>=0;--z){var b=this.tryEntries[z];if(b.tryLoc===F){var Z=b.completion;if("throw"===Z.type){var aA=Z.arg;v(b)}return aA}}throw new Error("illegal catch attempt")},delegateYield:function(F,z,b){return this.delegate={iterator:U(F),resultName:z,nextLoc:b},"next"===this.method&&(this.arg=Pn),g}},Nt}(oi.exports);try{regeneratorRuntime=xr}catch(Nt){"object"==typeof globalThis?globalThis.regeneratorRuntime=xr:Function("r","regeneratorRuntime = r")(xr)}},7757:(oi,xr,Nt)=>{oi.exports=Nt(4979)}}]); \ No newline at end of file diff --git a/frontend/564.5eb6603768afa44f.js b/frontend/564.5eb6603768afa44f.js new file mode 100644 index 00000000..743c7931 --- /dev/null +++ b/frontend/564.5eb6603768afa44f.js @@ -0,0 +1 @@ +(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[564],{9564:(oi,Fr,Nt)=>{"use strict";Nt.r(Fr),Nt.d(Fr,{CLNModule:()=>af});var ht=Nt(9808),qt=Nt(1402),Pn=Nt(8878),A=Nt(5e3),wt=Nt(7093),Y=Nt(5899);function I(r,y){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(s=>{switch(!0){case s instanceof qt.OD:this.loading=!0;break;case s instanceof qt.m2:case s instanceof qt.gk:case s instanceof qt.Q3:this.loading=!1}})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(qt.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,s){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",s.loading))},directives:[wt.xw,wt.yH,wt.Wh,ht.O5,Y.pW,qt.lC],styles:[""],data:{animation:[Pn.g]}}),r})();var c=Nt(7579),i=Nt(2722),o=Nt(1365),l=Nt(534),h=Nt(801),a=Nt(7731),g=Nt(9828),E=Nt(5043),u=Nt(5620),C=Nt(6642),e=Nt(62),f=Nt(9444),B=Nt(3954),w=Nt(9224),Q=Nt(7423),p=Nt(2181),S=Nt(5245),m=Nt(3322);const d=function(r){return{backgroundColor:r}};function v(r,y){if(1&r&&A._UZ(0,"span",6),2&r){const t=A.oxw();A.Q6J("ngStyle",A.VKq(1,d,"#"+(null==t.information?null:t.information.color)))}}function D(r,y){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,d,"#"+(null==t.information?null:t.information.color))),A.xp6(1),A.hij(" ",A.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function U(r,y){if(1&r&&(A.TgZ(0,"span",2),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}let T=(()=>{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(e.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,s){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,v,1,3,"span",3),A.qZA()(),A.YNc(7,D,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,U,2,1,"span",5),A.qZA()()),2&t&&(A.xp6(5),A.hij(" ",null==s.information?null:s.information.alias," "),A.xp6(1),A.Q6J("ngIf",!s.showColorFieldSeparately),A.xp6(1),A.Q6J("ngIf",s.showColorFieldSeparately),A.xp6(5),A.Oqu(null!=s.information&&s.information.lnImplementation||null!=s.information&&s.information.version?(null==s.information?null:s.information.lnImplementation)+" "+(null==s.information?null:s.information.version):""),A.xp6(4),A.Q6J("ngForOf",s.chains))},directives:[wt.xw,wt.yH,wt.Wh,ht.O5,ht.PC,m.Zl,ht.sg],pipes:[ht.gd],styles:[""]}),r})();function F(r,y){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 R(r,y){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 L=(()=>{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,s){if(1&t&&(A.YNc(0,F,21,11,"div",0),A.YNc(1,R,3,1,"ng-template",null,1,A.W1O)),2&t){const z=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",z)}},directives:[ht.O5,wt.xw,wt.yH,wt.Wh,Y.pW],pipes:[ht.JJ],styles:[""]}),r})();var Z=Nt(7322),aA=Nt(7238),AA=Nt(4834),lA=Nt(8129);const pA=function(){return["../connections/channels/open"]},cA=function(r){return{filter:r}};function gA(r,y){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=y.$implicit,s=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,pA))("state",A.VKq(24,cA,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",s.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 BA(r,y){if(1&r&&(A.TgZ(0,"div",17),A.YNc(1,gA,20,26,"div",18),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}function yA(r,y){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,BA,2,1,"div",16),A.qZA()()),2&r){const t=A.oxw(),s=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",s)}}function xA(r,y){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 _(r,y){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 MA=(()=>{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(qt.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,s){if(1&t&&(A.YNc(0,yA,24,15,"div",0),A.YNc(1,xA,4,0,"ng-template",null,1,A.W1O),A.YNc(3,_,3,1,"ng-template",null,2,A.W1O)),2&t){const z=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",z)}},directives:[ht.O5,wt.xw,wt.Wh,wt.yH,Z.bx,f.BN,aA.gM,Y.pW,AA.d,lA.$V,ht.sg,qt.yS,Q.lW],pipes:[ht.JJ,ht.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),r})();function uA(r,y){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 QA(r,y){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,uA,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 SA(r,y){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 bA=(()=>{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,s){if(1&t&&(A.YNc(0,QA,10,4,"div",0),A.YNc(1,SA,3,1,"ng-template",null,1,A.W1O)),2&t){const z=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",z)}},directives:[ht.O5,wt.xw,wt.yH,wt.Wh],pipes:[ht.JJ],styles:[""]}),r})();function ZA(r,y){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 q(r,y){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 J=(()=>{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,s){if(1&t&&(A.YNc(0,ZA,42,18,"div",0),A.YNc(1,q,3,1,"ng-template",null,1,A.W1O)),2&t){const z=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",z)}},directives:[ht.O5,wt.xw,wt.yH,wt.Wh],pipes:[ht.JJ],styles:[""]}),r})();function $(r,y){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 W(r,y){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 hA(r,y){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_them/1e3||0)/s.totalLiquidity*100:0)}}function vA(r,y){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_us/1e3||0)/s.totalLiquidity*100:0)}}const nA=function(){return["../connections/channels/open"]},EA=function(r){return{filter:r}};function GA(r,y){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,$,5,4,"mat-hint",17),A.YNc(6,W,5,4,"mat-hint",17),A.qZA(),A.YNc(7,hA,1,1,"mat-progress-bar",18),A.YNc(8,vA,1,1,"mat-progress-bar",18),A.qZA()),2&r){const t=y.$implicit,s=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,nA))("state",A.VKq(15,EA,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"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction),A.xp6(1),A.Q6J("ngIf","In"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction)}}function nt(r,y){if(1&r&&(A.TgZ(0,"div",12),A.YNc(1,GA,9,17,"div",13),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}const lt=function(r,y,t){return{"mb-4":r,"mb-2":y,"mb-1":t}};function TA(r,y){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,nt,2,1,"div",11),A.qZA()()),2&r){const t=A.oxw(),s=A.MAs(2);A.Q6J("ngClass",A.kEZ(7,lt,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",s)}}function it(r,y){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 vt(r,y){if(1&r&&(A.TgZ(0,"div",22),A._uU(1," No channels available. "),A.YNc(2,it,2,0,"button",23),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Q6J("ngIf","Out"===t.direction)}}function It(r,y){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,s){this.router=t,this.commonService=s,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(qt.F0),A.Y36(e.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 center",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,s){if(1&t&&(A.YNc(0,TA,12,11,"div",0),A.YNc(1,vt,3,1,"ng-template",null,1,A.W1O),A.YNc(3,It,3,1,"ng-template",null,2,A.W1O)),2&t){const z=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",z)}},directives:[ht.O5,wt.xw,wt.Wh,wt.yH,ht.mk,m.oO,Z.bx,Y.pW,AA.d,lA.$V,ht.sg,qt.yS,aA.gM,Q.lW],pipes:[ht.JJ,ht.OU],styles:[""]}),r})();var JA=Nt(3251),qA=Nt(9300),at=Nt(6087),et=Nt(4847),FA=Nt(2075),dt=Nt(8966),mt=Nt(429),OA=Nt(3075),H=Nt(7531),k=Nt(3390),b=Nt(6534),CA=Nt(4107),wA=Nt(508),RA=Nt(2368);function rA(r,y){if(1&r&&(A.TgZ(0,"mat-option",27),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(A.lcZ(2,2,t))}}function Bt(r,y){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,y){if(1&r&&(A.TgZ(0,"div",28),A._UZ(1,"fa-icon",29),A.YNc(2,Bt,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,s,z,dA,st,Ae){this.dialogRef=t,this.data=s,this.store=z,this.decimalPipe=dA,this.commonService=st,this.actions=Ae,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,qA.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 s=this.expiry?this.expiry:3600;this.selTimeUnit!==a.Qk.SECS&&(s=this.commonService.convertTime(this.expiry,this.selTimeUnit,a.Qk.SECS)),this.store.dispatch((0,mt.Rd)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount:1e3*this.invoiceValue,description:this.description,expiry:s,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.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},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(ht.JJ),A.Y36(e.v),A.Y36(C.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,s){if(1&t){const z=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(st){return s.description=st}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(st){return s.invoiceValue=st})("keyup",function(){return s.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(st){return s.expiry=st}),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(st){return s.onTimeUnitChange(st)}),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(st){return s.private=st}),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 s.resetData()}),A._uU(36,"Clear Field"),A.qZA(),A.TgZ(37,"button",26),A.NdJ("click",function(){A.CHM(z);const st=A.MAs(10);return s.onAddInvoice(st)}),A._uU(38,"Create Invoice"),A.qZA()()()()()()}2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",s.description),A.xp6(3),A.Q6J("ngModel",s.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.invoiceValueHint),A.xp6(2),A.Q6J("ngModel",s.expiry)("step",s.selTimeUnit===s.timeUnitEnum.SECS?300:s.selTimeUnit===s.timeUnitEnum.MINS?10:s.selTimeUnit===s.timeUnitEnum.HOURS?2:1)("min",1),A.xp6(2),A.hij(" ",A.lcZ(24,14,s.selTimeUnit)," "),A.xp6(3),A.Q6J("value",s.selTimeUnit),A.xp6(1),A.Q6J("ngForOf",s.timeUnits),A.xp6(2),A.Q6J("ngModel",s.private),A.xp6(4),A.Q6J("ngIf",""!==s.invoiceError))},directives:[wt.xw,wt.yH,w.dk,wt.Wh,Q.lW,dt.ZT,w.dn,OA._Y,OA.JL,OA.F,Z.KE,H.Nt,OA.Fj,k.h,OA.JJ,OA.On,OA.wV,OA.qQ,b.q,Z.R9,Z.bx,CA.gD,ht.sg,wA.ey,RA.Rr,S.Hw,aA.gM,ht.O5,f.BN],pipes:[ht.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var XA=Nt(5566),KA=Nt(7861),DA=Nt(3093);function jA(r,y){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(z){return A.CHM(t),A.oxw().description=z}),A.qZA()(),A.TgZ(4,"mat-form-field",8)(5,"input",9),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().invoiceValue=z})("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 z=A.MAs(1);return A.oxw().onAddInvoice(z)}),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 ct(r,y){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 Lt(r,y){1&r&&A._UZ(0,"mat-progress-bar",46)}function xt(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Expiry Date "),A.qZA())}const Rt=function(r){return{"mr-0":r}};function Vt(r,y){if(1&r&&A._UZ(0,"span",52),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Rt,t.screenSize===t.screenSizeEnum.XS))}}function Le(r,y){if(1&r&&A._UZ(0,"span",53),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Rt,t.screenSize===t.screenSizeEnum.XS))}}function ie(r,y){if(1&r&&A._UZ(0,"span",54),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Rt,t.screenSize===t.screenSizeEnum.XS))}}function te(r,y){if(1&r&&(A.TgZ(0,"td",48),A.YNc(1,Vt,1,3,"span",49),A.YNc(2,Le,1,3,"span",50),A.YNc(3,ie,1,3,"span",51),A._uU(4),A.ALo(5,"date"),A.qZA()),2&r){const t=y.$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 ye(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Date Settled "),A.qZA())}function be(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.paid_at),"dd/MMM/y HH:mm")||"-")}}function Re(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Type "),A.qZA())}function vn(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11&&!t.label.includes("keysend-")?"Bolt11":"Keysend")}}function Dn(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Description "),A.qZA())}const re=function(r){return{"max-width":r}};function en(r,y){if(1&r&&(A.TgZ(0,"td",48)(1,"div",55)(2,"span",56),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,re,s.screenSize===s.screenSizeEnum.XS?"10rem":"32rem")),A.xp6(2),A.Oqu(null==t?null:t.description)}}function Te(r,y){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount (Sats) "),A.qZA())}function nn(r,y){if(1&r&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Xe(r,y){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount Settled (Sats) "),A.qZA())}function bn(r,y){if(1&r&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Gn(r,y){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 Jt=function(r){return{"px-3":r}};function bt(r,y){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 dA=A.CHM(t).$implicit;return A.oxw(2).onInvoiceClick(dA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",62),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw(2).onRefreshInvoice(dA)}),A._uU(7,"Refresh"),A.qZA()()()()}if(2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Jt,t.screenSize!==t.screenSizeEnum.XS))}}function Xt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No invoice available."),A.qZA())}function oe(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting invoices..."),A.qZA())}function In(r,y){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 dn(r,y){if(1&r&&(A.TgZ(0,"td",66),A.YNc(1,Xt,2,0,"p",67),A.YNc(2,oe,2,0,"p",67),A.YNc(3,In,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 Fn=function(r){return{"display-none":r}};function Kn(r,y){if(1&r&&A._UZ(0,"tr",68),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Fn,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function gr(r,y){1&r&&A._UZ(0,"tr",69)}function Yn(r,y){1&r&&A._UZ(0,"tr",70)}const WA=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},YA=function(){return["no_invoice"]};function tt(r,y){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(z){return A.CHM(t),A.oxw().selFilter=z}),A.qZA()()(),A.TgZ(8,"div",24),A.YNc(9,Lt,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,te,6,7,"td",30),A.BQk(),A.ynx(15,31),A.YNc(16,ye,2,0,"th",29),A.YNc(17,be,3,4,"td",30),A.BQk(),A.ynx(18,32),A.YNc(19,Re,2,0,"th",29),A.YNc(20,vn,2,1,"td",30),A.BQk(),A.ynx(21,33),A.YNc(22,Dn,2,0,"th",29),A.YNc(23,en,4,4,"td",30),A.BQk(),A.ynx(24,34),A.YNc(25,Te,2,0,"th",35),A.YNc(26,nn,4,4,"td",30),A.BQk(),A.ynx(27,36),A.YNc(28,Xe,2,0,"th",35),A.YNc(29,bn,4,4,"td",30),A.BQk(),A.ynx(30,37),A.YNc(31,Gn,6,0,"th",38),A.YNc(32,bt,8,3,"td",39),A.BQk(),A.ynx(33,40),A.YNc(34,dn,4,3,"td",41),A.BQk(),A.YNc(35,Kn,1,3,"tr",42),A.YNc(36,gr,1,0,"tr",43),A.YNc(37,Yn,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,WA,""!==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,s,z,dA,st,Ae,un){this.logger=t,this.store=s,this.decimalPipe=z,this.commonService=dA,this.rtlEffects=st,this.datePipe=Ae,this.actions=un,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(g.gc).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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,qA.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 s=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,mt.Rd)({payload:{label:this.newlyAddedInvoiceMemo,amount:1e3*this.invoiceValue,description:this.description,expiry:s,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,mt.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:XA.y}}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onRefreshInvoice(t){this.store.dispatch((0,mt.n7)({payload:t.label}))}updateInvoicesData(t){this.invoiceJSONArr=this.invoiceJSONArr.map(s=>s.label===t.label?t:s)}loadInvoicesTable(t){this.invoices=new FA.by(t?[...t]:[]),this.invoices.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(s,z)=>((s.paid_at?this.datePipe.transform(new Date(1e3*s.paid_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.expires_at?this.datePipe.transform(new Date(1e3*s.expires_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(z),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(ht.JJ),A.Y36(e.v),A.Y36(DA.V),A.Y36(ht.uU),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-invoices-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:at.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,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,jA,15,5,"form",1),A.YNc(2,ct,5,0,"div",2),A.YNc(3,tt,39,15,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[wt.xw,wt.yH,wt.Wh,ht.O5,OA._Y,OA.JL,OA.F,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,OA.wV,OA.qQ,b.q,Z.R9,Z.bx,Q.lW,f.BN,lA.$V,Y.pW,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,aA.gM,ht.PC,m.Zl,CA.gD,CA.$L,wA.ey,FA.mD,FA.yh,FA.Ke,FA.Q2,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.uU,ht.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=Nt(5698),zA=Nt(8104),HA=Nt(9814),$A=Nt(7446);const LA=["sendPaymentForm"],ot=["paymentAmt"],VA=["offerAmt"],Qt=["paymentReq"],St=["offerReq"];function Ut(r,y){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,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-radio-group",18),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().paymentType=z})("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,Ut,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 Wt(r,y){1&r&&A.GkF(0)}function ne(r,y){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 Et(r,y){if(1&r&&(A.TgZ(0,"div",23),A._UZ(1,"fa-icon",24),A.YNc(2,ne,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 Pt(r,y){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 jt(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Ht(r,y){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 ce(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment amount is required."),A.qZA())}function Zt(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",29,30),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw(2).paymentAmount=z})("change",function(z){return A.CHM(t),A.oxw(2).onAmountChange(z)}),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,ce,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 ue(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",26,27),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().onPaymentRequestEntry(z)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Pt,2,1,"mat-hint",25),A.YNc(4,jt,2,0,"mat-error",25),A.YNc(5,Ht,2,1,"mat-error",25),A.qZA(),A.YNc(6,Zt,6,2,"mat-form-field",28)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.paymentRequest),A.xp6(2),A.Q6J("ngIf",s.paymentRequest&&""!==s.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.paymentRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtInvoice)}}function ge(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Pubkey is required."),A.qZA())}function ve(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Keysend amount is required."),A.qZA())}function Ge(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",31),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().pubkey=z}),A.qZA(),A.YNc(2,ge,2,0,"mat-error",25),A.qZA(),A.TgZ(3,"mat-form-field",1)(4,"input",32,33),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().keysendAmount=z}),A.qZA(),A.YNc(6,ve,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 Se(r,y){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 xe(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer request is required."),A.qZA())}function Ne(r,y){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 $e(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer amount is required."),A.qZA())}function yn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",40,41),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw(2).offerAmount=z})("change",function(z){return A.CHM(t),A.oxw(2).onAmountChange(z)}),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,$e,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 an(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",42)(1,"input",43),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw(2).offerTitle=z}),A.qZA()()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerTitle)}}function Mn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",34,35),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().onPaymentRequestEntry(z)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Se,2,1,"mat-hint",25),A.YNc(4,xe,2,0,"mat-error",25),A.YNc(5,Ne,2,1,"mat-error",25),A.qZA(),A.YNc(6,yn,6,2,"mat-form-field",28),A.TgZ(7,"div",36)(8,"mat-checkbox",37),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().flgSaveToDB=z}),A._uU(9,"Bookmark Offer"),A.qZA(),A.TgZ(10,"mat-icon",38),A._uU(11,"info_outline"),A.qZA()(),A.YNc(12,an,2,1,"mat-form-field",39)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.offerRequest),A.xp6(2),A.Q6J("ngIf",s.offerRequest&&""!==s.offerDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.offerRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtOffer),A.xp6(2),A.Q6J("ngModel",s.flgSaveToDB),A.xp6(4),A.Q6J("ngIf",s.flgSaveToDB||""!==s.offerTitle)}}let xn=(()=>{class r{constructor(t,s,z,dA,st,Ae,un,Qe){this.dialogRef=t,this.data=s,this.store=z,this.logger=dA,this.commonService=st,this.decimalPipe=Ae,this.actions=un,this.dataService=Qe,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.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(g.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,qA.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.store.dispatch((0,mt.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,mt.oV)(this.zeroAmtInvoice?{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.store.dispatch(this.offerInvoice?(0,mt.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}}):(0,mt.eM)(this.zeroAmtOffer?{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(s=>{this.paymentType===a.IX.INVOICE?"bolt12 offer"===s.type&&s.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=s,this.setPaymentDecodedDetails()):this.paymentType===a.IX.OFFER&&("bolt11 invoice"===s.type&&s.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=s,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_msat.slice(0,-4)),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.fiatConversion?this.commonService.convertCurrency(this.offerAmount,a.NT.SATS,a.NT.OTHER,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.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,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(e.v),A.Y36(ht.JJ),A.Y36(C.eX),A.Y36(zA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-send-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf(LA,5),A.Gf(ot,5),A.Gf(VA,5),A.Gf(Qt,5),A.Gf(St,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.form=z.first),A.iGM(z=A.CRH())&&(s.paymentAmt=z.first),A.iGM(z=A.CRH())&&(s.offerAmt=z.first),A.iGM(z=A.CRH())&&(s.payReq=z.first),A.iGM(z=A.CRH())&&(s.offrReq=z.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,s){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 s.onSendPayment()})("reset",function(){return s.resetData()}),A.YNc(12,Wt,1,0,"ng-container",10),A.YNc(13,Et,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,ue,7,5,"ng-template",null,15,A.W1O),A.YNc(21,Ge,7,4,"ng-template",null,16,A.W1O),A.YNc(23,Mn,13,7,"ng-template",null,17,A.W1O)),2&t){const z=A.MAs(20),dA=A.MAs(22),st=A.MAs(24);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(3),A.Q6J("ngTemplateOutlet",s.paymentType===s.paymentTypes.KEYSEND?dA:s.paymentType===s.paymentTypes.OFFER?st:z),A.xp6(1),A.Q6J("ngIf",""!==s.paymentError)}},directives:[wt.xw,wt.yH,w.dk,wt.Wh,Q.lW,dt.ZT,w.dn,ht.O5,HA.VQ,OA.JJ,OA.On,HA.U0,OA._Y,OA.JL,OA.F,ht.tP,f.BN,Z.KE,H.Nt,OA.Fj,k.h,OA.Q7,Z.bx,Z.TO,$A.oG,S.Hw,aA.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 qe=Nt(4947);const fn=["sendPaymentForm"];function cn(r,y){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 Xn(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Yr(r,y){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(z){return A.CHM(t),A.oxw().onPaymentRequestEntry(z)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(5,cn,2,1,"mat-hint",9),A.YNc(6,Xn,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 Tr(r,y){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 rr(r,y){1&r&&A._UZ(0,"mat-progress-bar",50)}function Tn(r,y){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Created At"),A.qZA())}const Sn=function(r){return{"mr-0":r}};function mA(r,y){if(1&r&&A._UZ(0,"span",55),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Sn,t.screenSize===t.screenSizeEnum.XS))}}function O(r,y){if(1&r&&A._UZ(0,"span",56),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Sn,t.screenSize===t.screenSizeEnum.XS))}}function N(r,y){if(1&r&&(A.TgZ(0,"td",52),A.YNc(1,mA,1,3,"span",53),A.YNc(2,O,1,3,"span",54),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=y.$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 X(r,y){1&r&&(A.TgZ(0,"th",51),A._uU(1," Type "),A.qZA())}function K(r,y){if(1&r&&(A.TgZ(0,"td",52),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function fA(r,y){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Payment Hash"),A.qZA())}const IA=function(r){return{"max-width":r}};function At(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",57)(2,"span",58),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,IA,s.screenSize===s.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash)}}function rt(r,y){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Sent"),A.qZA())}function ft(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Ct(r,y){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Received"),A.qZA())}function Dt(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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,y){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 Tt(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",65)(1,"button",66),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw(2).onPaymentClick(dA)}),A._uU(2,"View Info"),A.qZA()()}}function Ot(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No payment available."),A.qZA())}function Kt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting payments..."),A.qZA())}function fe(r,y){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 Ee(r,y){if(1&r&&(A.TgZ(0,"td",67),A.YNc(1,Ot,2,0,"p",9),A.YNc(2,Kt,2,0,"p",9),A.YNc(3,fe,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 pe(r,y){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Sn,t.screenSize===t.screenSizeEnum.XS))}}function rn(r,y){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Sn,t.screenSize===t.screenSizeEnum.XS))}}function Me(r,y){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,Sn,t.screenSize===t.screenSizeEnum.XS))}}function je(r,y){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,Sn,t.screenSize===t.screenSizeEnum.XS))}}function wn(r,y){if(1&r&&(A.TgZ(0,"span",74),A.YNc(1,Me,1,3,"span",69),A.YNc(2,je,1,3,"span",70),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=y.$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 Ke(r,y){if(1&r&&(A.ynx(0),A.YNc(1,wn,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 Cn(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",68),A.YNc(2,pe,1,3,"span",69),A.YNc(3,rn,1,3,"span",70),A._uU(4),A.qZA(),A.YNc(5,Ke,2,1,"ng-container",9),A.qZA()),2&r){const t=y.$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 Vn(r,y){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 qn(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Vn,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 Nn(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",68),A._uU(2),A.qZA(),A.YNc(3,qn,2,1,"span",9),A.qZA()),2&r){const t=y.$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 zr(r,y){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" Part ID ",t.partid?t.partid:0," ")}}function Jn(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,zr,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 ir(r,y){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=y.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(3,IA,s.screenSize===s.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 dr(r,y){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$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 _n(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,dr,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 Br(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,_n,2,1,"span",9),A.qZA()),2&r){const t=y.$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 Lr(r,y){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function Wn(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Lr,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 br(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,Wn,2,1,"span",9),A.qZA()),2&r){const t=y.$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 Mr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",60)(1,"button",82),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw(4).onPaymentClick(dA)}),A._uU(2),A.qZA()()}if(2&r){const t=y.$implicit;A.xp6(2),A.hij("View ",t.partid?t.partid:0,"")}}function Gr(r,y){if(1&r&&(A.TgZ(0,"div"),A.YNc(1,Mr,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 Hr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",79)(1,"span",60)(2,"button",80),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return dA.is_expanded=!dA.is_expanded}),A._uU(3),A.qZA()(),A.YNc(4,Gr,2,1,"div",9),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(3),A.Oqu(t.is_expanded?"Hide":"Show"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function si(r,y){1&r&&A._UZ(0,"tr",83)}const Jr=function(r){return{"display-none":r}};function ar(r,y){if(1&r&&A._UZ(0,"tr",84),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Jr,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function Or(r,y){1&r&&A._UZ(0,"tr",85)}function Zn(r,y){1&r&&A._UZ(0,"tr",83)}const Li=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},bi=function(){return["no_payment"]};function oo(r,y){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(z){return A.CHM(t),A.oxw().selFilter=z}),A.qZA()()(),A.TgZ(8,"div",21)(9,"div",22),A.YNc(10,rr,1,0,"mat-progress-bar",23),A.TgZ(11,"table",24,25),A.ynx(13,26),A.YNc(14,Tn,2,0,"th",27),A.YNc(15,N,5,6,"td",28),A.BQk(),A.ynx(16,29),A.YNc(17,X,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,ft,4,4,"td",28),A.BQk(),A.ynx(25,33),A.YNc(26,Ct,2,0,"th",32),A.YNc(27,Dt,4,4,"td",28),A.BQk(),A.ynx(28,34),A.YNc(29,Ft,6,0,"th",35),A.YNc(30,Tt,3,0,"td",36),A.BQk(),A.ynx(31,37),A.YNc(32,Ee,4,3,"td",38),A.BQk(),A.ynx(33,39),A.YNc(34,Cn,6,4,"td",28),A.BQk(),A.ynx(35,40),A.YNc(36,Nn,4,2,"td",28),A.BQk(),A.ynx(37,41),A.YNc(38,ir,5,5,"td",28),A.BQk(),A.ynx(39,42),A.YNc(40,Br,5,5,"td",28),A.BQk(),A.ynx(41,43),A.YNc(42,br,5,5,"td",28),A.BQk(),A.ynx(43,44),A.YNc(44,Hr,5,2,"td",45),A.BQk(),A.YNc(45,si,1,0,"tr",46),A.YNc(46,ar,1,3,"tr",47),A.YNc(47,Or,1,0,"tr",48),A.YNc(48,Zn,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,Li,""!==t.errorMessage)),A.xp6(34),A.Q6J("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),A.xp6(1),A.Q6J("matFooterRowDef",A.DdM(17,bi)),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 aa=(()=>{class r{constructor(t,s,z,dA,st,Ae,un,Qe,tn){this.logger=t,this.commonService=s,this.store=z,this.rtlEffects=dA,this.clnEffects=st,this.decimalPipe=Ae,this.titleCasePipe=un,this.datePipe=Qe,this.dataService=tn,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(g.PP).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.paymentJSONArr=t.payments||[],this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}is_group(t,s){return s.is_group}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(){this.newlyAddedPayment=this.paymentDecoded.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(s=>{s&&(this.store.dispatch((0,mt.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.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,PA.q)(1)).subscribe(z=>{z&&(this.paymentDecoded.msatoshi=z[0].inputValue,this.store.dispatch((0,mt.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*z[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(s=>{this.paymentDecoded=s,this.paymentDecoded.msatoshi?this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:z=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+z.symbol+this.decimalPipe.transform(z.OTHER?z.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:z=>{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:xn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(t){const s=[[{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&&s.unshift([{key:"bolt11",value:t.bolt11,title:"Bolt 11",width:100,type:a.Gi.STRING}]),t.bolt12&&""!==t.bolt12&&s.unshift([{key:"bolt12",value:t.bolt12,title:"Bolt 12",width:100,type:a.Gi.STRING}]),t.memo&&""!==t.memo&&s.splice(2,0,[{key:"memo",value:t.memo,title:"Memo",width:100,type:a.Gi.STRING}]),t.hasOwnProperty("partid")?s.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}]):s.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:s}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new FA.by(t?[...t]:[]),this.payments.data=this.paymentJSONArr,this.payments.sort=this.sort,this.payments.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null,this.payments.filterPredicate=(s,z)=>((s.created_at?this.datePipe.transform(new Date(1e3*s.created_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(z),this.payments.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const s=JSON.parse(JSON.stringify(this.payments.data)).reduce((z,dA)=>dA.mpps?z.concat(dA.mpps):(delete dA.is_group,delete dA.is_expanded,delete dA.total_parts,z.concat(dA)),[]);this.commonService.downloadFile(s,"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(e.v),A.Y36(u.yh),A.Y36(DA.V),A.Y36(qe.J),A.Y36(ht.JJ),A.Y36(ht.rS),A.Y36(ht.uU),A.Y36(zA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf(fn,5),A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.form=z.first),A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:at.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,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Yr,12,3,"form",1),A.YNc(2,Tr,3,0,"div",2),A.YNc(3,oo,50,18,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[wt.xw,wt.yH,wt.Wh,ht.O5,OA._Y,OA.JL,OA.F,Z.KE,H.Nt,OA.Fj,OA.Q7,lA.$V,OA.JJ,OA.On,Z.bx,Z.TO,Q.lW,f.BN,Y.pW,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,aA.gM,ht.PC,m.Zl,CA.gD,CA.$L,wA.ey,FA.mD,FA.yh,ht.sg,FA.nj,FA.Gk,FA.Ke,FA.Q2,FA.as,FA.XQ,at.NW],pipes:[ht.uU,ht.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 so(r,y){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 lo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const dA=A.CHM(t).index,st=A.oxw().$implicit;return A.oxw(2).onNavigateTo(st.links[dA])}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function co(r,y){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 go(r,y){1&r&&A._UZ(0,"mat-progress-bar",28)}function Bo(r,y){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 oa(r,y){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 uo(r,y){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 sa(r,y){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 la(r,y){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 fo(r,y){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const ca=function(r){return{"dashboard-card-content":!0,"error-border":r}};function ho(r,y){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,so,3,1,"button",12),A.TgZ(10,"mat-menu",13,14),A.YNc(12,lo,2,1,"button",15),A.YNc(13,co,2,1,"button",16),A.qZA()()()(),A.TgZ(14,"mat-card-content",17),A.YNc(15,go,1,0,"mat-progress-bar",18),A.TgZ(16,"div",19),A.YNc(17,Bo,1,2,"rtl-cln-node-info",20),A.YNc(18,oa,1,2,"rtl-cln-balances-info",21),A.YNc(19,uo,1,4,"rtl-cln-channel-capacity-info",22),A.YNc(20,sa,1,2,"rtl-cln-fee-info",23),A.YNc(21,la,1,2,"rtl-cln-channel-status-info",24),A.YNc(22,fo,2,0,"h3",25),A.qZA()()()()),2&r){const t=y.$implicit,s=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,ca,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR))),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.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 Eo(r,y){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,ho,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 wo(r,y){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 Co(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const dA=A.CHM(t).index,st=A.oxw(2).$implicit;return A.oxw(2).onNavigateTo(st.links[dA])}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function Qo(r,y){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,wo,3,1,"button",12),A.TgZ(8,"mat-menu",13,42),A.YNc(10,Co,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 Mo(r,y){1&r&&A._UZ(0,"mat-progress-bar",28)}function po(r,y){if(1&r&&A._UZ(0,"rtl-cln-node-info",43),2&r){const t=A.oxw(3);A.Q6J("information",t.information)}}function Io(r,y){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 ga(r,y){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 mo(r,y){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 vo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const dA=A.CHM(t).index,st=A.oxw(3).$implicit;return A.oxw(2).onNavigateTo(st.links[dA])}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function Do(r,y){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,vo,2,1,"button",15),A.qZA()),2&r){const t=A.MAs(4),s=A.oxw(2).$implicit;A.Q6J("matMenuTriggerFor",t),A.xp6(5),A.Q6J("ngForOf",s.goToOptions)}}function yo(r,y){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,Do,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 $n(r,y){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const ur=function(r){return{"p-0":r}};function li(r,y){if(1&r&&(A.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),A.YNc(2,Qo,11,4,"mat-card-header",37),A.TgZ(3,"mat-card-content",38),A.YNc(4,Mo,1,0,"mat-progress-bar",18),A.TgZ(5,"div",19),A.YNc(6,po,1,1,"rtl-cln-node-info",39),A.YNc(7,Io,1,2,"rtl-cln-balances-info",21),A.YNc(8,ga,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(9,mo,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(10,yo,8,3,"span",41),A.YNc(11,$n,2,0,"h3",25),A.qZA()()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(1),A.Q6J("ngClass",A.VKq(13,ur,"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,ca,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.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 xo(r,y){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,li,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 Fo=(()=>{class r{constructor(t,s,z,dA,st){this.logger=t,this.store=s,this.actions=z,this.commonService=dA,this.router=st,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="330px",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(g.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(g.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(g.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(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(this.activeChannels.filter(s=>!!s.msatoshi_to_them&&s.msatoshi_to_them>0),"msatoshi_to_them")))||[],this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter(s=>!!s.msatoshi_to_us&&s.msatoshi_to_us>0),"msatoshi_to_us")))||[],this.activeChannels.forEach(s=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil((s.msatoshi_to_them||0)/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor((s.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(g.Rn).pipe((0,i.R)(this.unSubs[3]),(0,o.M)(this.store.select(g.Wj))).subscribe(([t,s])=>{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=s.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=s.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const z=s.localRemoteBalance.localBalance?+s.localRemoteBalance.localBalance:0,dA=s.localRemoteBalance.remoteBalance?+s.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:z,remoteBalance:dA,balancedness:+(1-Math.abs((z-dA)/(z+dA))).toFixed(3)},this.channelsStatus.active.capacity=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0,this.logger.info(t),this.logger.info(s)})}onNavigateTo(t){this.router.navigateByUrl("/cln/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.activeChannelsCapacity=this.activeChannels.sort((t,s)=>{const z=(t.msatoshi_to_us?+t.msatoshi_to_us:0)+(t.msatoshi_to_them?+t.msatoshi_to_them:0),dA=(s.msatoshi_to_them?+s.msatoshi_to_them:0)+(s.msatoshi_to_them?+s.msatoshi_to_them:0);return z>dA?-1:z{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.eX),A.Y36(e.v),A.Y36(qt.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-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["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-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",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,s){if(1&t&&(A.YNc(0,Eo,7,4,"div",0),A.YNc(1,xo,6,4,"ng-template",null,1,A.W1O)),2&t){const z=A.MAs(2);A.Q6J("ngIf",(null==s.selNode?null:s.selNode.userPersona)===s.userPersonaEnum.OPERATOR)("ngIfElse",z)}},directives:[ht.O5,wt.xw,wt.Wh,f.BN,B.Il,ht.sg,B.DX,w.a8,wt.yH,w.dk,w.n5,Q.lW,p.p6,S.Hw,p.VK,p.OP,w.dn,ht.mk,m.oO,Y.pW,ht.RF,ht.n9,T,L,MA,bA,J,ht.ED,Mt,JA.SP,JA.uX,UA,aa,JA.uD],styles:[""]}),r})();var Ba=Nt(9841),Yo=Nt(8012),ua=Nt(8377),Sr=Nt(7261),or=Nt(1125),pr=Nt(5615);const To=["form"],So=["formSweepAll"],No=["stepper"];function Uo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Po(r,y){1&r&&(A.TgZ(0,"mat-hint"),A._uU(1,"Amount replaced by UTXO balance"),A.qZA())}function Ro(r,y){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 zo(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t)}}function Lo(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function bo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function Go(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",39)(1,"input",40,41),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw(2).customFeeRate=z}),A.qZA(),A.YNc(3,bo,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 Ho(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function fa(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function Jo(r,y){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(z){return A.CHM(t),A.oxw(2).onUTXOSelectionChange(z)})("valueChange",function(z){return A.CHM(t),A.oxw(2).selUTXOs=z}),A.TgZ(10,"mat-select-trigger"),A._uU(11),A.ALo(12,"number"),A.qZA(),A.YNc(13,fa,3,4,"mat-option",21),A.qZA()(),A.TgZ(14,"div",46)(15,"mat-slide-toggle",47),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw(2).flgUseAllBalance=z})("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 Oo(r,y){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 ko(r,y){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,Oo,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 ha=function(r,y){return{"mr-6":r,"mr-2":y}};function jo(r,y){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(z){return A.CHM(t),A.oxw().transaction.address=z}),A.qZA(),A.YNc(5,Uo,2,0,"mat-error",14),A.qZA(),A.TgZ(6,"mat-form-field",15)(7,"input",16,17),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().transaction.satoshis=z}),A.qZA(),A.YNc(9,Po,2,0,"mat-hint",14),A.TgZ(10,"span",18),A._uU(11),A.qZA(),A.YNc(12,Ro,2,1,"mat-error",14),A.qZA(),A.TgZ(13,"mat-form-field",19)(14,"mat-select",20),A.NdJ("selectionChange",function(z){return A.CHM(t),A.oxw().onAmountUnitChange(z)}),A.YNc(15,zo,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(z){return A.CHM(t),A.oxw().selFeeRate=z})("selectionChange",function(){return A.CHM(t),A.oxw().customFeeRate=null}),A.YNc(21,Lo,2,2,"mat-option",21),A.qZA()(),A.YNc(22,Go,4,5,"mat-form-field",27),A.qZA(),A.TgZ(23,"div",28)(24,"mat-checkbox",29),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().flgMinConf=z})("change",function(){A.CHM(t);const z=A.oxw();return z.flgMinConf?z.selFeeRate=null:z.minConfValue=null}),A.qZA(),A.TgZ(25,"mat-form-field",30)(26,"input",31,32),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().minConfValue=z}),A.qZA(),A.YNc(28,Ho,2,0,"mat-error",14),A.qZA()()(),A.YNc(29,Jo,19,9,"div",33),A._UZ(30,"div",22),A.YNc(31,ko,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,ha,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 Ko(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw(3);A.Oqu(t.passwordFormLabel)}}function Vo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Password is required."),A.qZA())}function Wo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-step",55)(1,"form",73),A.YNc(2,Ko,1,1,"ng-template",67),A.TgZ(3,"div",0)(4,"mat-form-field",1),A._UZ(5,"input",74),A.YNc(6,Vo,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 Zo(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.sendFundFormLabel)}}function Xo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function qo(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function _o(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function se(r,y){if(1&r&&(A.TgZ(0,"mat-form-field",39),A._UZ(1,"input",77),A.YNc(2,_o,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 $o(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function ci(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.confirmFormLabel)}}function gi(r,y){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 Nr(r,y){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,gi,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 fr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",51)(1,"mat-vertical-stepper",52,53),A.NdJ("selectionChange",function(z){return A.CHM(t),A.oxw().stepSelectionChanged(z)}),A.YNc(3,Wo,10,4,"mat-step",54),A.TgZ(4,"mat-step",55)(5,"form",56),A.YNc(6,Zo,1,1,"ng-template",57),A.TgZ(7,"div",22)(8,"mat-form-field",1),A._UZ(9,"input",58),A.YNc(10,Xo,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,qo,2,2,"mat-option",21),A.qZA()(),A.YNc(16,se,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,$o,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,ci,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,Nr,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,ha,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 Bi=(()=>{class r{constructor(t,s,z,dA,st,Ae,un,Qe,tn,ia){this.dialogRef=t,this.data=s,this.logger=z,this.store=dA,this.commonService=st,this.decimalPipe=Ae,this.actions=un,this.formBuilder=Qe,this.rtlEffects=tn,this.snackBar=ia,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:["",[OA.kI.required]],password:["",[OA.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",OA.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([OA.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:[OA.kI.required])}),(0,Ba.a)([this.store.select(ua.dT),this.store.select(ua.Yj)]).pipe((0,i.R)(this.unSubs[1])).subscribe(([t,s])=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.appConfig=s}),this.store.select(g.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(g.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value"),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[4]),(0,qA.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:Yo(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=>this.transaction.utxos.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,mt.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,mt.Wi)({payload:this.transaction}))},error:t=>{this.transaction.satoshis=null,this.selAmountUnit=a.NT.SATS,this.amountError="Conversion Error: "+t}}):this.store.dispatch((0,mt.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){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: "+this.feeRateTypes.find(s=>s.feeRateId===this.sendFundFormGroup.controls.selFeeRate.value).feeRateType:"")}t.selectedIndex0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((z,dA)=>(s.value=z.value+dA.value,s)).value,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 s=this,z=this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit;let dA=t.value===this.amountUnits[2]?a.NT.OTHER:t.value;this.transaction.satoshis&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(+this.transaction.satoshis,z,dA,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[6])).subscribe({next:st=>{this.selAmountUnit=t.value,s.transaction.satoshis=s.decimalPipe.transform(st[dA],s.currencyUnitFormats[dA]).replace(/,/g,"")},error:st=>{s.transaction.satoshis=null,this.amountError="Conversion Error: "+st,this.selAmountUnit=z,dA=z}})}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(e.v),A.Y36(ht.JJ),A.Y36(C.eX),A.Y36(OA.qu),A.Y36(DA.V),A.Y36(Sr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send-modal"]],viewQuery:function(t,s){if(1&t&&(A.Gf(To,7),A.Gf(So,5),A.Gf(No,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.form=z.first),A.iGM(z=A.CRH())&&(s.formSweepAll=z.first),A.iGM(z=A.CRH())&&(s.stepper=z.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,s){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,jo,37,31,"form",7),A.qZA()()(),A.YNc(10,fr,40,23,"ng-template",null,8,A.W1O)),2&t){const z=A.MAs(11);A.xp6(5),A.Oqu(s.sweepAll?"Sweep All Funds":"Send Funds"),A.xp6(1),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",!s.sweepAll)("ngIfElse",z)}},directives:[wt.xw,wt.yH,w.dk,wt.Wh,Q.lW,dt.ZT,w.dn,ht.O5,OA._Y,OA.JL,OA.F,Z.KE,H.Nt,OA.Fj,k.h,OA.Q7,OA.JJ,OA.On,Z.TO,b.q,Z.bx,Z.R9,CA.gD,ht.sg,wA.ey,OA.wV,OA.qQ,$A.oG,ht.mk,m.oO,or.ib,or.yz,or.yK,CA.$L,RA.Rr,S.Hw,aA.gM,f.BN,pr.Vq,pr.C0,OA.sg,pr.VY,OA.u,pr.Ic],pipes:[ht.JJ],styles:[""]}),r})();var Gi=Nt(1203),ui=Nt(7544);function As(r,y){1&r&&A._UZ(0,"mat-progress-bar",27)}function Ur(r,y){1&r&&(A.TgZ(0,"th",28),A._uU(1," Transaction ID "),A.qZA())}function Pr(r,y){1&r&&(A.TgZ(0,"span",36)(1,"mat-icon",37),A._uU(2,"warning"),A.qZA()())}function Hi(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Pr,3,0,"span",35),A.qZA()),2&r){const t=A.oxw().$implicit;A.oxw();const s=A.MAs(32);A.xp6(1),A.Q6J("ngIf",t.value<1e3)("ngIfElse",s)}}function Ji(r,y){1&r&&A._UZ(0,"span",38)}function Oi(r,y){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 ts=function(r){return{"max-width":r}};function Ea(r,y){if(1&r&&(A.TgZ(0,"td",29)(1,"span",30),A.YNc(2,Hi,2,2,"span",31),A.YNc(3,Ji,1,0,"span",32),A.YNc(4,Oi,2,3,"span",33),A.TgZ(5,"span",34),A._uU(6),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(5,ts,s.screenSize===s.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.Q6J("ngIf",s.numDustUTXOs>0&&!s.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 es(r,y){1&r&&(A.TgZ(0,"th",40),A._uU(1," Output "),A.qZA())}function ns(r,y){if(1&r&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.output)," ")}}function rs(r,y){1&r&&(A.TgZ(0,"th",40),A._uU(1," Value (Sats) "),A.qZA())}function is(r,y){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 as(r,y){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 wa(r,y){if(1&r&&(A.TgZ(0,"td",29),A.YNc(1,is,3,3,"span",42),A.YNc(2,as,3,3,"span",43),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Q6J("ngIf",t.value>0||0===t.value),A.xp6(1),A.Q6J("ngIf",t.value<0)}}function os(r,y){1&r&&(A.TgZ(0,"th",40),A._uU(1," Blockheight "),A.qZA())}function ss(r,y){if(1&r&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.blockheight)," ")}}function Ir(r,y){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,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",49)(1,"button",50),A.NdJ("click",function(z){const st=A.CHM(t).$implicit;return A.oxw().onUTXOClick(st,z)}),A._uU(2,"View Info"),A.qZA()()}}function fi(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No utxos available."),A.qZA())}function hi(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting utxos..."),A.qZA())}function mr(r,y){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 Ca(r,y){if(1&r&&(A.TgZ(0,"td",51),A.YNc(1,fi,2,0,"p",31),A.YNc(2,hi,2,0,"p",31),A.YNc(3,mr,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 Ei=function(r){return{"display-none":r}};function ls(r,y){if(1&r&&A._UZ(0,"tr",52),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Ei,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function Qa(r,y){1&r&&A._UZ(0,"tr",53)}function cs(r,y){1&r&&A._UZ(0,"tr",54)}function kr(r,y){1&r&&A._UZ(0,"mat-icon",37)}const wi=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},gs=function(){return["no_utxo"]};let da=(()=>{class r{constructor(t,s,z){this.logger=t,this.commonService=s,this.store=z,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(g.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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,s){const z=[[{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:z}}}))}loadUTXOsTable(t){this.listUTXOs=new FA.by([...t]),this.listUTXOs.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null,this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(s,z)=>JSON.stringify(s).toLowerCase().includes(z),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(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-utxos"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},inputs:{numDustUTXOs:"numDustUTXOs",isDustUTXO:"isDustUTXO",utxos:"utxos"},features:[A._Bn([{provide:at.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,s){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 s.applyFilter()})("ngModelChange",function(dA){return s.selFilter=dA}),A.qZA()()(),A.TgZ(5,"div",5)(6,"div",6),A.YNc(7,As,1,0,"mat-progress-bar",7),A.TgZ(8,"table",8,9),A.ynx(10,10),A.YNc(11,Ur,2,0,"th",11),A.YNc(12,Ea,7,7,"td",12),A.BQk(),A.ynx(13,13),A.YNc(14,es,2,0,"th",14),A.YNc(15,ns,4,3,"td",12),A.BQk(),A.ynx(16,15),A.YNc(17,rs,2,0,"th",14),A.YNc(18,wa,3,2,"td",12),A.BQk(),A.ynx(19,16),A.YNc(20,os,2,0,"th",14),A.YNc(21,ss,4,3,"td",12),A.BQk(),A.ynx(22,17),A.YNc(23,Ir,6,0,"th",18),A.YNc(24,zt,3,0,"td",19),A.BQk(),A.ynx(25,20),A.YNc(26,Ca,4,3,"td",21),A.BQk(),A.YNc(27,ls,1,3,"tr",22),A.YNc(28,Qa,1,0,"tr",23),A.YNc(29,cs,1,0,"tr",24),A.qZA(),A._UZ(30,"mat-paginator",25),A.qZA()()(),A.YNc(31,kr,1,0,"ng-template",null,26,A.W1O)),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.listUTXOs)("ngClass",A.VKq(11,wi,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(13,gs)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[wt.xw,wt.Wh,wt.yH,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,ht.O5,Y.pW,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,ht.PC,m.Zl,aA.gM,S.Hw,CA.gD,CA.$L,wA.ey,Q.lW,FA.mD,FA.yh,FA.Ke,FA.Q2,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.rS,ht.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 Ma(r,y){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 pa(r,y){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 Bs=(()=>{class r{constructor(t,s){this.logger=t,this.store=s,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(g.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length,this.dustUtxos=t.utxos.filter(s=>+s.value<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"],[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,s){1&t&&(A.TgZ(0,"div",0)(1,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(dA){return s.onSelectedIndexChanged(dA)}),A.TgZ(2,"mat-tab"),A.YNc(3,Ma,2,1,"ng-template",2),A._UZ(4,"rtl-cln-on-chain-utxos",3),A.qZA(),A.TgZ(5,"mat-tab"),A.YNc(6,pa,2,1,"ng-template",2),A._UZ(7,"rtl-cln-on-chain-utxos",4),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("selectedIndex",s.selectedTableIndex),A.xp6(3),A.Q6J("utxos",s.utxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!1),A.xp6(3),A.Q6J("utxos",s.dustUtxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!0))},directives:[wt.xw,wt.yH,wt.Wh,JA.SP,JA.uX,JA.uD,ui.k,da],styles:[""]}),r})();const us=function(r,y){return[r,y]};function jr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",12),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().activeLink=null==dA?null:dA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.Q6J("active",s.activeLink===(null==t?null:t.link))("routerLink",A.WLB(3,us,null==t?null:t.link,null==s.selectedTable?null:s.selectedTable.name)),A.xp6(1),A.Oqu(null==t?null:t.name)}}let fs=(()=>{class r{constructor(t,s,z){this.store=t,this.router=s,this.activatedRoute=z,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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(s=>s.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,qA.h)(s=>s instanceof qt.Av)).subscribe({next:s=>{const z=this.links.find(dA=>s.urlAfterRedirects.includes(dA.link));this.activeLink=z?z.link:this.links[0].link,this.selectedTable=this.tables.find(dA=>dA.name===s.urlAfterRedirects.substring(s.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(g.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{this.selNode=s}),this.store.select(g.Rn).pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{this.balances=[{title:"Total Balance",dataValue:s.balance.totalBalance||0},{title:"Confirmed",dataValue:s.balance.confBalance},{title:"Unconfirmed",dataValue:s.balance.unconfBalance}]})}openSendFundsModal(t){this.store.dispatch((0,KA.qR)({payload:{data:{sweepAll:t,component:Bi}}}))}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(s=>s.id===t),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(qt.F0),A.Y36(qt.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,s){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,jr,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(dA){return s.onSelectedTableIndexChanged(dA)}),A.qZA()()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links),A.xp6(4),A.Q6J("selectedTableIndex",null==s.selectedTable?null:s.selectedTable.id))},directives:[wt.xw,wt.Wh,f.BN,w.a8,w.dn,Gi.D,JA.BU,ht.sg,JA.Nj,qt.rH,wt.yH,qt.lC,Bs],styles:[""]}),r})();function hs(r,y){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 Es(r,y){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 Ia=(()=>{class r{constructor(t,s,z){this.store=t,this.logger=s,this.router=z,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,qA.h)(t=>t instanceof qt.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.activeChannels=t.activeChannels.length||0}),this.store.select(g.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(g.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},{title:"Unconfirmed",dataValue:t.balance.unconfBalance}]})}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(qt.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,s){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(dA){return s.activeLink=dA})("selectedTabChange",function(dA){return s.onSelectedTabChange(dA)}),A.TgZ(16,"mat-tab"),A.YNc(17,hs,2,1,"ng-template",8),A.qZA(),A.TgZ(18,"mat-tab"),A.YNc(19,Es,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",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faUsers),A.xp6(6),A.Q6J("selectedIndex",s.activeLink))},directives:[wt.xw,wt.Wh,f.BN,w.a8,w.dn,Gi.D,JA.SP,JA.uX,JA.uD,ui.k,wt.yH,qt.lC],styles:[""]}),r})();function ws(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().activeLink=dA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Cs=(()=>{class r{constructor(t,s,z){this.logger=t,this.store=s,this.router=z,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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,qA.h)(s=>s instanceof qt.Av)).subscribe({next:s=>{const z=this.links.find(dA=>s.urlAfterRedirects.includes(dA.link));this.activeLink=z?z.link:this.links[0].link,this.routerUrl=s.urlAfterRedirects}}),this.store.select(g.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{if(this.selNode=s,this.selNode.enableOffers){this.store.dispatch((0,mt.yl)()),this.store.dispatch((0,mt.uT)()),this.links.push({link:"offers",name:"Offers"}),this.links.push({link:"offrBookmarks",name:"Paid Offer Bookmarks"});const z=this.links.find(dA=>this.router.url.includes(dA.link));this.activeLink=z?z.link:this.links[0].link}}),this.store.select(g.Wj).pipe((0,i.R)(this.unSubs[2]),(0,o.M)(this.store.select(g.lw))).subscribe(([s,z])=>{this.currencyUnits=z.currencyUnits,this.balances=z.userPersona===a.ol.OPERATOR?[{title:"Local Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(s)})}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(qt.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,s){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,ws,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",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[wt.xw,wt.Wh,f.BN,w.a8,w.dn,Gi.D,JA.BU,ht.sg,JA.Nj,qt.rH,wt.yH,qt.lC],styles:[""]}),r})();function Qs(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().activeLink=dA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let ds=(()=>{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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,qA.h)(s=>s instanceof qt.Av)).subscribe({next:s=>{const z=this.links.find(dA=>s.urlAfterRedirects.includes(dA.link));this.activeLink=z?z.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(qt.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,s){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,Qs,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",s.faMapSigns),A.xp6(8),A.Q6J("ngForOf",s.links))},directives:[wt.xw,wt.Wh,f.BN,wt.yH,w.a8,w.dn,JA.BU,ht.sg,JA.Nj,qt.rH,qt.lC],styles:[""]}),r})();var Kr=Nt(6895);function ma(r,y){if(1&r&&(A.TgZ(0,"span",6),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function Ms(r,y){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Type"),A.qZA())}function ps(r,y){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Is(r,y){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Address"),A.qZA())}function ms(r,y){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function vs(r,y){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Port"),A.qZA())}function Un(r,y){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function Ds(r,y){1&r&&(A.TgZ(0,"th",29)(1,"span",30),A._uU(2,"Actions"),A.qZA()())}function ys(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",31)(1,"span",30)(2,"button",32),A.NdJ("copied",function(z){return A.CHM(t),A.oxw(2).onCopyNodeURI(z)}),A._uU(3,"Copy Node URI"),A.qZA()()()}if(2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(2),A.Q6J("payload",(null==s.lookupResult?null:s.lookupResult.nodeid)+"@"+t.address+":"+t.port)}}function xs(r,y){1&r&&A._UZ(0,"tr",33)}function Fs(r,y){1&r&&A._UZ(0,"tr",34)}const Ys=function(r){return{"background-color":r}};function Ts(r,y){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,ma,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,Ms,2,0,"th",18),A.YNc(36,ps,2,1,"td",19),A.BQk(),A.ynx(37,20),A.YNc(38,Is,2,0,"th",18),A.YNc(39,ms,2,1,"td",19),A.BQk(),A.ynx(40,21),A.YNc(41,vs,2,0,"th",18),A.YNc(42,Un,2,1,"td",19),A.BQk(),A.ynx(43,22),A.YNc(44,Ds,3,0,"th",23),A.YNc(45,ys,4,1,"td",24),A.BQk(),A.YNc(46,xs,1,0,"tr",25),A.YNc(47,Fs,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,Ys,"#"+(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 Ss=(()=>{class r{constructor(t,s){this.logger=t,this.snackBar=s,this.featureDescriptions=[],this.displayedColumns=["type","address","port","actions"]}ngOnInit(){if(this.addresses=new FA.by(this.lookupResult&&this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,s)=>t[s]&&isNaN(t[s])?t[s].toLocaleLowerCase():t[s]?+t[s]:null,this.lookupResult.features&&""!==this.lookupResult.features.trim()){const t=parseInt(this.lookupResult.features,16);a.Df.forEach(s=>{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(g.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,s){1&t&&A.YNc(0,ki,204,91,"div",0),2&t&&A.Q6J("ngIf",s.lookupResult)},directives:[ht.O5,wt.xw,AA.d,wt.Wh,wt.yH],pipes:[ht.JJ,ht.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 Er=["form"];function ji(r,y){if(1&r&&(A.TgZ(0,"mat-radio-button",17),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("value",t.id)("checked",s.selectedFieldId===t.id),A.xp6(1),A.hij(" ",t.name," ")}}function Ps(r,y){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 Ci(r,y){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 Qi(r,y){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,Ci,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",""!==t.nodeLookupValue.nodeid)("ngIfElse",s)}}function di(r,y){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 De(r,y){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,di,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",t.channelLookupValue.length>0)("ngIfElse",s)}}function Rs(r,y){1&r&&(A.TgZ(0,"span",24)(1,"h3"),A._uU(2,"Error! Unable to find details!"),A.qZA()())}function wr(r,y){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,Qi,2,2,"span",22),A.YNc(6,De,2,2,"span",22),A.YNc(7,Rs,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 zs(r,y){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find details!"),A.qZA())}const Ls=function(r){return{"mt-1":!0,"mt-2":r}};let bs=(()=>{class r{constructor(t,s,z,dA){this.logger=t,this.commonService=s,this.store=z,this.actions=dA,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,qA.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,mt.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,mt.$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(e.v),A.Y36(u.yh),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lookups"]],viewQuery:function(t,s){if(1&t&&A.Gf(Er,7),2&t){let z;A.iGM(z=A.CRH())&&(s.form=z.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,s){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(dA){return s.selectedFieldId=dA})("change",function(dA){return s.onSelectChange(dA)}),A.YNc(7,ji,2,3,"mat-radio-button",7),A.qZA()(),A.TgZ(8,"mat-form-field",8)(9,"input",9,10),A.NdJ("change",function(){return s.clearLookupValue()})("ngModelChange",function(dA){return s.lookupKey=dA}),A.qZA(),A.YNc(11,Ps,2,1,"mat-error",11),A.qZA(),A.TgZ(12,"div",12)(13,"button",13),A.NdJ("click",function(){return s.resetData()}),A._uU(14,"Clear"),A.qZA(),A.TgZ(15,"button",14),A.NdJ("click",function(){return s.onLookup()}),A._uU(16,"Lookup"),A.qZA()()(),A.YNc(17,wr,8,4,"div",15),A.qZA()()(),A.YNc(18,zs,2,0,"ng-template",null,16,A.W1O)),2&t&&(A.xp6(6),A.Q6J("ngModel",s.selectedFieldId),A.xp6(1),A.Q6J("ngForOf",s.lookupFields),A.xp6(1),A.Q6J("ngClass",A.VKq(7,Ls,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM)),A.xp6(1),A.Q6J("placeholder",(null==s.lookupFields[s.selectedFieldId]?null:s.lookupFields[s.selectedFieldId].placeholder)||"Lookup Key")("ngModel",s.lookupKey),A.xp6(2),A.Q6J("ngIf",!s.lookupKey),A.xp6(6),A.Q6J("ngIf",s.flgSetLookupValue))},directives:[wt.xw,wt.yH,wt.Wh,w.dn,OA._Y,OA.JL,OA.F,HA.VQ,OA.JJ,OA.On,ht.sg,HA.U0,Z.KE,ht.mk,m.oO,H.Nt,OA.Fj,OA.Q7,ht.O5,Z.TO,Q.lW,ht.RF,ht.n9,Ss,Ve,ht.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 Cr=(()=>{return(r=Cr||(Cr={})).KB="KB",r.KW="KW",Cr;var r})();function sr(r,y){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 Da(r,y){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 Rr=(()=>{class r{constructor(){this.perkbw={}}ngAfterContentChecked(){this.feeRateStyle===Cr.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===Cr.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,s){if(1&t&&(A.YNc(0,sr,67,24,"div",0),A.YNc(1,Da,3,1,"ng-template",null,1,A.W1O)),2&t){const z=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",z)}},directives:[ht.O5,wt.xw,wt.yH,wt.Wh,S.Hw,aA.gM],pipes:[ht.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function ya(r,y){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 Gs(r,y){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 Mi=(()=>{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,s){if(1&t&&(A.YNc(0,ya,52,15,"div",0),A.YNc(1,Gs,3,1,"ng-template",null,1,A.W1O)),2&t){const z=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",z)}},directives:[ht.O5,wt.xw,wt.yH,wt.Wh,S.Hw,aA.gM],pipes:[ht.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function pi(r,y){1&r&&A._UZ(0,"mat-progress-bar",19)}function vr(r,y){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 Hs(r,y){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 Ii(r,y){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 Vr(r,y){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 Js(r,y){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 Os(r,y){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 xa=function(r){return{"dashboard-card-content":!0,"error-border":r}};function Fa(r,y){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,pi,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,vr,1,2,"rtl-cln-node-info",14),A.YNc(13,Hs,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Ii,1,2,"rtl-cln-fee-info",16),A.YNc(15,Vr,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Js,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Os,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&r){const t=y.$implicit,s=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,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.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 ks(r,y){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,Fa,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsOperator)}}function js(r,y){1&r&&A._UZ(0,"mat-progress-bar",19)}function Ks(r,y){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 Vs(r,y){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 Ws(r,y){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 Zs(r,y){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 Xs(r,y){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 qs(r,y){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 _s(r,y){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,js,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,Ks,1,2,"rtl-cln-node-info",14),A.YNc(13,Vs,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Ws,1,2,"rtl-cln-fee-info",16),A.YNc(15,Zs,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Xs,1,3,"rtl-cln-fee-rates",17),A.YNc(17,qs,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&r){const t=y.$implicit,s=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,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.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 $s(r,y){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,_s,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsMerchant)}}let A0=(()=>{class r{constructor(t,s,z){this.logger=t,this.commonService=s,this.store=z,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(g.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.selNode=t.nodeSettings,this.information=t.information,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1]),(0,o.M)(this.store.select(g.Wj))).subscribe(([t,s])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusLRBal=t.apiCallStatus,this.apiCallStatusChannels=s.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(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.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=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0}),this.store.select(g.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.fees=t.fees}),this.store.select(g.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),t.forwardingHistory&&t.forwardingHistory.listForwards.length&&(this.fees.totalTxCount=t.forwardingHistory.listForwards.length)}),this.store.select(g.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.feeRatesPerKB=t.feeRatesPerKB}),this.store.select(g.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.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(e.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,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,ks,2,1,"mat-grid-list",1),A.YNc(2,$s,2,1,"mat-grid-list",1),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.OPERATOR),A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.MERCHANT))},directives:[wt.xw,wt.Wh,ht.O5,B.Il,ht.sg,B.DX,wt.yH,f.BN,w.a8,w.dn,ht.mk,m.oO,Y.pW,ht.RF,ht.n9,T,J,bA,Rr,Mi],styles:[""]}),r})();function mi(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().activeLink=dA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Ki=(()=>{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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,qA.h)(s=>s instanceof qt.Av)).subscribe({next:s=>{const z=this.links.find(dA=>s.urlAfterRedirects.includes(dA.link));this.activeLink=z?z.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(qt.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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){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,mi,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",s.faUserCheck),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[wt.xw,wt.Wh,f.BN,w.a8,w.dn,JA.BU,ht.sg,JA.Nj,qt.rH,wt.yH,qt.lC],styles:[""]}),r})();var vi=Nt(9122);function Ya(r,y){if(1&r&&(A.TgZ(0,"mat-option",7),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.hij(" ",t.addressTp," ")}}let t0=(()=>{class r{constructor(t,s){this.store=t,this.clnEffects=s,this.addressTypes=a._t,this.selectedAddressType=a._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,mt._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:vi.n}}}))},0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(qe.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,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),A.NdJ("ngModelChange",function(dA){return s.selectedAddressType=dA}),A.YNc(4,Ya,2,2,"mat-option",4),A.qZA()(),A.TgZ(5,"div",5)(6,"button",6),A.NdJ("click",function(){return s.onGenerateAddress()}),A._uU(7,"Generate Address"),A.qZA()()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selectedAddressType),A.xp6(1),A.Q6J("ngForOf",s.addressTypes))},directives:[wt.xw,wt.Wh,Z.KE,wt.yH,CA.gD,OA.JJ,OA.On,ht.sg,wA.ey,Q.lW],styles:[""]}),r})(),Wr=(()=>{class r{constructor(t,s){this.store=t,this.activatedRoute=s,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:Bi}}}))}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(qt.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,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return s.openSendFundsModal()}),A._uU(3),A.qZA()()()),2&t&&(A.xp6(3),A.Oqu(s.sweepAll?"Sweep All":"Send Funds"))},directives:[wt.xw,wt.yH,wt.Wh,Q.lW],styles:[""]}),r})();var Rn=Nt(8675),Ar=Nt(4004),Di=Nt(1079),yi=Nt(9843);const Vi=["form"];function e0(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t.alias?t.alias:t.id?t.id:"")}}function Zr(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer alias is required."),A.qZA())}function Ta(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer not found in the list."),A.qZA())}function n0(r,y){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,e0,2,2,"mat-option",26),A.ALo(5,"async"),A.qZA(),A.YNc(6,Zr,2,0,"mat-error",17),A.YNc(7,Ta,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.MAs(3),s=A.oxw();A.xp6(1),A.Q6J("formControl",s.selectedPeer)("matAutocomplete",t),A.xp6(1),A.Q6J("displayWith",s.displayFn),A.xp6(2),A.Q6J("ngForOf",A.lcZ(5,6,s.filteredPeers)),A.xp6(2),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.notfound)}}function r0(r,y){1&r&&A.GkF(0)}function i0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function a0(r,y){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 o0(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function s0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function l0(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",43)(1,"input",44,45),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().customFeeRate=z}),A.qZA(),A.YNc(3,s0,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 c0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function g0(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function B0(r,y){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(z){return A.CHM(t),A.oxw().onUTXOSelectionChange(z)})("valueChange",function(z){return A.CHM(t),A.oxw().selUTXOs=z}),A.TgZ(3,"mat-select-trigger"),A._uU(4),A.ALo(5,"number"),A.qZA(),A.YNc(6,g0,3,4,"mat-option",26),A.qZA()(),A.TgZ(7,"div",28)(8,"mat-slide-toggle",48),A.NdJ("ngModelChange",function(z){return A.CHM(t),A.oxw().flgUseAllBalance=z})("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 u0(r,y){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 f0(r,y){if(1&r&&(A.TgZ(0,"div",50),A._UZ(1,"fa-icon",51),A.YNc(2,u0,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 h0(r,y){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 xi(r,y){if(1&r&&A.YNc(0,h0,26,4,"mat-expansion-panel",52),2&r){const t=A.oxw();A.Q6J("ngIf",t.peer)}}const Ie=function(r,y){return{"mr-6":r,"mr-2":y}};let ee=(()=>{class r{constructor(t,s,z,dA,st,Ae){this.dialogRef=t,this.data=s,this.store=z,this.actions=dA,this.decimalPipe=st,this.commonService=Ae,this.selectedPeer=new OA.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.isCompatibleVersion=this.data.message.isCompatibleVersion,this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.utxos=this.data.message.utxos,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.actions.pipe((0,i.R)(this.unSubs[0]),(0,qA.h)(z=>z.type===a.AB.UPDATE_API_CALL_STATUS_CLN||z.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(z=>{z.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&z.payload.status===a.Bn.ERROR&&"SaveNewChannel"===z.payload.action&&(this.channelConnectionError=z.payload.message),z.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()});let t="",s="";this.sortedPeers=this.peers.sort((z,dA)=>(t=z.alias?z.alias.toLowerCase():z.id?z.id.toLowerCase():"",s=dA.alias?dA.alias.toLowerCase():z.id.toLowerCase(),ts?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,i.R)(this.unSubs[1]),(0,Rn.O)(""),(0,Ar.U)(z=>"string"==typeof z?z:z.alias?z.alias:z.id),(0,Ar.U)(z=>z?this.filterPeers(z):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(s=>0===s.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.id?t.id:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.id?this.selectedPeer.value.id:null,"string"==typeof this.selectedPeer.value){const t=this.peers.filter(s=>s.alias.length===this.selectedPeer.value.length&&0===s.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].id&&(this.selectedPubkey=t[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){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)":this.feeRateTypes.find(s=>s.feeRateId===this.selFeeRate).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){const s={value:0};this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((z,dA)=>(s.value=z.value+dA.value,s)).value,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(s=>t.utxos.push(s.txid+":"+s.output))),this.store.dispatch((0,mt.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(C.eX),A.Y36(ht.JJ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(Vi,7),2&t){let z;A.iGM(z=A.CRH())&&(s.form=z.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",""],[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,s){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 s.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.NdJ("submit",function(){return s.onOpenChannel()})("reset",function(){return s.resetData()}),A.TgZ(11,"div",9),A.YNc(12,n0,8,8,"mat-form-field",10),A.qZA(),A.YNc(13,r0,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(dA){return s.fundingAmount=dA}),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,i0,2,0,"mat-error",17),A.YNc(25,a0,2,1,"mat-error",17),A.qZA(),A.TgZ(26,"div",18)(27,"mat-slide-toggle",19),A.NdJ("ngModelChange",function(dA){return s.isPrivate=dA}),A._uU(28,"Private Channel"),A.qZA()()(),A.TgZ(29,"mat-expansion-panel",20),A.NdJ("closed",function(){return s.onAdvancedPanelToggle(!0)})("opened",function(){return s.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(dA){return s.selFeeRate=dA})("selectionChange",function(){return s.customFeeRate=null}),A.YNc(39,o0,2,2,"mat-option",26),A.qZA()(),A.YNc(40,l0,4,5,"mat-form-field",27),A.qZA(),A.TgZ(41,"div",28)(42,"mat-checkbox",29),A.NdJ("ngModelChange",function(dA){return s.flgMinConf=dA})("change",function(){return s.flgMinConf?s.selFeeRate=null:s.minConfValue=null}),A.qZA(),A.TgZ(43,"mat-form-field",30)(44,"input",31,32),A.NdJ("ngModelChange",function(dA){return s.minConfValue=dA}),A.qZA(),A.YNc(46,c0,2,0,"mat-error",17),A.qZA()()(),A.YNc(47,B0,12,8,"div",33),A.qZA()()(),A.YNc(48,f0,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,xi,1,1,"ng-template",null,38,A.W1O)),2&t){const z=A.MAs(18),dA=A.MAs(55);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(7),A.Q6J("ngIf",!s.peer&&s.peers&&s.peers.length>0),A.xp6(1),A.Q6J("ngTemplateOutlet",dA),A.xp6(4),A.Q6J("ngModel",s.fundingAmount)("step",1e3)("min",1)("max",s.totalBalance)("disabled",s.flgUseAllBalance),A.xp6(3),A.AsE("Remaining Bal: ",A.lcZ(21,29,s.totalBalance-(s.fundingAmount?s.fundingAmount:0)),"",s.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),A.xp6(4),A.Q6J("ngIf",(null==z.errors?null:z.errors.required)||!s.fundingAmount),A.xp6(1),A.Q6J("ngIf",null==z.errors?null:z.errors.max),A.xp6(2),A.Q6J("ngModel",s.isPrivate),A.xp6(6),A.Oqu(s.advancedTitle),A.xp6(4),A.Q6J("fxFlex","customperkb"!==s.selFeeRate||s.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",s.selFeeRate)("disabled",s.flgMinConf),A.xp6(1),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.selFeeRate&&!s.flgMinConf),A.xp6(2),A.Q6J("ngModel",s.flgMinConf)("ngClass",A.WLB(31,Ie,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",s.minConfValue)("step",1)("min",0)("required",s.flgMinConf)("disabled",!s.flgMinConf),A.xp6(2),A.Q6J("ngIf",s.flgMinConf&&!s.minConfValue),A.xp6(1),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[wt.xw,wt.yH,w.dk,wt.Wh,Q.lW,w.dn,OA._Y,OA.JL,OA.F,ht.O5,Z.KE,H.Nt,OA.Fj,Di.ZL,OA.Q7,OA.JJ,OA.oH,Di.XC,ht.sg,wA.ey,Z.TO,ht.tP,OA.wV,OA.qQ,OA.Fd,b.q,yi.F,OA.On,Z.bx,Z.R9,RA.Rr,or.ib,or.yz,or.yK,CA.gD,$A.oG,ht.mk,m.oO,CA.$L,S.Hw,aA.gM,f.BN,k.h,AA.d],pipes:[ht.Ov,ht.JJ],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function E0(r,y){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 Sa(r,y){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 Xr=(()=>{class r{constructor(t,s,z,dA){this.logger=t,this.store=s,this.commonService=z,this.router=dA,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,qA.h)(t=>t instanceof qt.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(g.OL).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t.nodeSettings,this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(g.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(g.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value")}),this.store.select(g.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:ee}}}))}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(e.v),A.Y36(qt.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,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(3,"Open Channel"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-tab-group",4),A.NdJ("selectedIndexChange",function(dA){return s.activeLink=dA})("selectedTabChange",function(dA){return s.onSelectedTabChange(dA)}),A.TgZ(6,"mat-tab"),A.YNc(7,E0,2,1,"ng-template",5),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,Sa,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",s.activeLink))},directives:[wt.xw,wt.yH,wt.Wh,Q.lW,JA.SP,JA.uX,JA.uD,ui.k,qt.lC],styles:[""]}),r})();function Na(r,y){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 w0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Show Advanced"),A.qZA())}function C0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Hide Advanced"),A.qZA())}function Ua(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",23),A.NdJ("copied",function(z){return A.CHM(t),A.oxw().onCopyChanID(z)}),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 Q0(r,y){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 hn=function(r){return{"xs-scroll-y":r}},Wi=function(r,y){return{"mt-2":r,"mt-1":y}};let Zi=(()=>{class r{constructor(t,s,z,dA,st){this.dialogRef=t,this.data=s,this.logger=z,this.commonService=dA,this.snackBar=st,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(e.v),A.Y36(Sr.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,s){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 s.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,Na,8,2,"div",16),A.TgZ(87,"div",17)(88,"button",18),A.NdJ("click",function(){return s.onShowAdvanced()}),A.YNc(89,w0,2,0,"p",19),A.YNc(90,C0,2,0,"ng-template",null,20,A.W1O),A.qZA(),A.YNc(92,Ua,2,1,"button",21),A.YNc(93,Q0,2,0,"button",22),A.qZA()()()()()),2&t){const z=A.MAs(91);A.xp6(4),A.Q6J("icon",s.faReceipt),A.xp6(5),A.Q6J("ngClass",A.VKq(35,hn,s.screenSize===s.screenSizeEnum.XS)),A.xp6(7),A.Oqu(s.channel.short_channel_id),A.xp6(5),A.Oqu(s.channel.alias),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.channel_id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(43,25,s.channel.msatoshi_to_us)),A.xp6(6),A.Oqu(A.lcZ(49,27,s.channel.spendable_msatoshi)),A.xp6(6),A.Oqu(A.lcZ(55,29,s.channel.msatoshi_total)),A.xp6(6),A.Oqu(s.channel.state),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(68,31,s.channel.our_channel_reserve_satoshis)),A.xp6(6),A.Oqu(A.lcZ(74,33,s.channel.their_channel_reserve_satoshis)),A.xp6(6),A.Oqu(s.channel.connected?"Yes":"No"),A.xp6(5),A.Oqu(s.channel.private?"Yes":"No"),A.xp6(1),A.Q6J("inset",!0),A.xp6(1),A.Q6J("ngIf",s.showAdvanced),A.xp6(1),A.Q6J("ngClass",A.WLB(37,Wi,!s.showAdvanced,s.showAdvanced)),A.xp6(2),A.Q6J("ngIf",!s.showAdvanced)("ngIfElse",z),A.xp6(3),A.Q6J("ngIf",s.showCopy),A.xp6(1),A.Q6J("ngIf",!s.showCopy)}},directives:[wt.xw,wt.Wh,wt.yH,w.dk,f.BN,Q.lW,w.dn,ht.mk,m.oO,AA.d,ht.O5,k.h,Kr.y],pipes:[ht.JJ],styles:[""]}),r})();function Fi(r,y){1&r&&A._UZ(0,"mat-progress-bar",33)}function d0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Short Channel ID "),A.qZA())}function Dr(r,y){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 tr(r,y){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 er=function(r){return{"max-width":r}};function lr(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"div",36),A.YNc(2,Dr,2,1,"span",37),A.YNc(3,tr,2,1,"span",38),A.TgZ(4,"span",39),A._uU(5),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,er,s.screenSize===s.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 M0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Alias "),A.qZA())}function p0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"div",36)(2,"span",39),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,er,s.screenSize===s.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(2),A.Oqu(null==t?null:t.alias)}}function I0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Connected "),A.qZA())}function Yi(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function m0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Private "),A.qZA())}function Pa(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function v0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," State "),A.qZA())}function D0(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.state,"")}}function de(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Local Balance (Sats) "),A.qZA())}function Ra(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 y0(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Remote Balance (Sats) "),A.qZA())}function x0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 za(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Total mSatoshis "),A.qZA())}function F0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_total)," ")}}function Y0(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Spendable Satoshi "),A.qZA())}function T0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function La(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1,"Balance Score "),A.qZA())}function Ti(r,y){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=y.$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 ba(r,y){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 S0(r,y){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(z){const st=A.CHM(t).$implicit;return A.oxw().onChannelClick(st,z)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().onViewRemotePolicy(dA)}),A._uU(7,"View Remote Fee"),A.qZA(),A.TgZ(8,"mat-option",53),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().onChannelUpdate(dA)}),A._uU(9,"Update Fee Policy"),A.qZA(),A.TgZ(10,"mat-option",53),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().onChannelClose(dA)}),A._uU(11,"Close Channel"),A.qZA()()()()}}function N0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function U0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No channel available."),A.qZA())}function P0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting channels..."),A.qZA())}function R0(r,y){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 z0(r,y){if(1&r&&(A.TgZ(0,"td",57),A.YNc(1,N0,2,0,"p",58),A.YNc(2,U0,2,0,"p",58),A.YNc(3,P0,2,0,"p",58),A.YNc(4,R0,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 L0=function(r){return{"display-none":r}};function Si(r,y){if(1&r&&A._UZ(0,"tr",59),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,L0,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function b0(r,y){1&r&&A._UZ(0,"tr",60)}function Xi(r,y){1&r&&A._UZ(0,"tr",61)}const Ga=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},G0=function(){return["no_peer"]};let qr=(()=>{class r{constructor(t,s,z,dA,st,Ae){var un,Qe,tn,ia;this.logger=t,this.store=s,this.rtlEffects=z,this.clnEffects=dA,this.commonService=st,this.router=Ae,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===(Qe=null===(un=this.router.getCurrentNavigation().extras)||void 0===un?void 0:un.state)||void 0===Qe?void 0:Qe.filter)?null===(ia=null===(tn=this.router.getCurrentNavigation().extras)||void 0===tn?void 0:tn.state)||void 0===ia?void 0:ia.filter:""}ngOnInit(){this.store.select(g.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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,mt.$A)({payload:{uiMessage:a.m6.GET_REMOTE_POLICY,shortChannelID:t.short_channel_id,showError:!0}})),this.clnEffects.setLookupCL.pipe((0,PA.q)(1)).subscribe(s=>{if(0===s.length)return!1;let z={};z=s[0].source!==this.information.id?s[0]:s[1];const dA=[[{key:"base_fee_millisatoshi",value:z.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:a.Gi.NUMBER},{key:"fee_per_millionth",value:z.fee_per_millionth,title:"Fee/Millionth",width:33,type:a.Gi.NUMBER},{key:"delay",value:z.delay,title:"Delay",width:33,type:a.Gi.NUMBER}]],st="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:st,message:dA}}}))},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(z=>{z&&this.store.dispatch((0,mt.pW)({payload:{baseFeeMsat:z[0].inputValue,feeRate:z[1].inputValue,channelId:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0},this.store.dispatch((0,mt.$A)({payload:{uiMessage:a.m6.GET_CHAN_POLICY,shortChannelID:t.short_channel_id,showError:!1}})),this.clnEffects.setLookupCL.pipe((0,PA.q)(1)).subscribe(s=>{this.myChanPolicy=s.length>0&&s[0].source===this.information.id?{fee_base_msat:s[0].base_fee_millisatoshi,fee_rate_milli_msat:s[0].fee_per_millionth}:s.length>1&&s[1].source===this.information.id?{fee_base_msat:s[1].base_fee_millisatoshi,fee_rate_milli_msat:s[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},this.logger.info(this.myChanPolicy);const z="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),dA=[];setTimeout(()=>{this.store.dispatch((0,KA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:dA,titleMessage:z,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(s=>{s&&this.store.dispatch((0,mt.pW)({payload:{baseFeeMsat:s[0].inputValue,feeRate:s[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(s=>{s&&this.store.dispatch((0,mt.BL)({payload:{id:t.id,channelId:t.channel_id,force:!1}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,s){this.store.dispatch((0,KA.qR)({payload:{data:{channel:t,showCopy:!0,component:Zi}}}))}loadChannelsTable(t){t.sort((s,z)=>s.active===z.active?0:z.active?1:-1),this.channels=new FA.by([...t]),this.channels.filterPredicate=(s,z)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state?s.state.toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(z),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]: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(DA.V),A.Y36(qe.J),A.Y36(e.v),A.Y36(qt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-open-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},features:[A._Bn([{provide:at.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,s){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 s.applyFilter()})("ngModelChange",function(dA){return s.selFilter=dA}),A.qZA()()(),A.YNc(5,Fi,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,d0,2,0,"th",10),A.YNc(11,lr,6,6,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,M0,2,0,"th",10),A.YNc(14,p0,4,4,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,I0,2,0,"th",10),A.YNc(17,Yi,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,m0,2,0,"th",10),A.YNc(20,Pa,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,v0,2,0,"th",10),A.YNc(23,D0,2,1,"td",11),A.BQk(),A.ynx(24,16),A.YNc(25,de,2,0,"th",17),A.YNc(26,Ra,4,4,"td",11),A.BQk(),A.ynx(27,18),A.YNc(28,y0,2,0,"th",17),A.YNc(29,x0,4,4,"td",11),A.BQk(),A.ynx(30,19),A.YNc(31,za,2,0,"th",17),A.YNc(32,F0,4,3,"td",11),A.BQk(),A.ynx(33,20),A.YNc(34,Y0,2,0,"th",17),A.YNc(35,T0,4,3,"td",11),A.BQk(),A.ynx(36,21),A.YNc(37,La,2,0,"th",22),A.YNc(38,Ti,6,4,"td",23),A.BQk(),A.ynx(39,24),A.YNc(40,ba,8,0,"th",25),A.YNc(41,S0,12,0,"td",26),A.BQk(),A.ynx(42,27),A.YNc(43,z0,5,4,"td",28),A.BQk(),A.YNc(44,Si,1,3,"tr",29),A.YNc(45,b0,1,0,"tr",30),A.YNc(46,Xi,1,0,"tr",31),A.qZA()(),A._UZ(47,"mat-paginator",32),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Ga,""!==s.errorMessage)),A.xp6(37),A.Q6J("matFooterRowDef",A.DdM(13,G0)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[wt.xw,wt.Wh,wt.yH,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,ht.O5,Y.pW,lA.$V,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,ht.PC,m.Zl,aA.gM,f.BN,Z.bx,CA.gD,CA.$L,wA.ey,FA.mD,FA.yh,FA.Ke,FA.Q2,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.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 En=["outputIdx"];function Ni(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Output Index required."),A.qZA())}function Ha(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Invalid index value."),A.qZA())}function H0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fees is required."),A.qZA())}function J0(r,y){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 O0=(()=>{class r{constructor(t,s,z,dA,st,Ae){this.actions=t,this.dialogRef=s,this.data=z,this.store=dA,this.logger=st,this.snackBar=Ae,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,mt._E)({payload:a._t[0]})),this.actions.pipe((0,qA.h)(t=>t.type===a.AB.SET_NEW_ADDRESS_CLN),(0,PA.q)(1)).subscribe(t=>{this.store.dispatch((0,mt.Wi)({payload:{address:t.payload,satoshis:"all",feeRate:this.fees,utxos:[this.bumpFeeChannel.funding_txid+":"+this.outputIndex.toString()]}}))}),this.actions.pipe((0,qA.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,qA.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(C.eX),A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(Sr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-bump-fee"]],viewQuery:function(t,s){if(1&t&&A.Gf(En,5),2&t){let z;A.iGM(z=A.CRH())&&(s.payReq=z.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,s){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 s.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(dA){return s.onCopyID(dA)}),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(dA){return s.outputIndex=dA}),A.qZA(),A.YNc(35,Ni,2,0,"mat-error",20),A.YNc(36,Ha,2,0,"mat-error",20),A.qZA(),A.TgZ(37,"mat-form-field",17)(38,"input",21,22),A.NdJ("ngModelChange",function(dA){return s.fees=dA}),A.qZA(),A.YNc(40,H0,2,0,"mat-error",20),A.qZA()(),A.YNc(41,J0,4,2,"div",23),A.qZA()(),A.TgZ(42,"div",24)(43,"button",25),A.NdJ("click",function(){return s.resetData()}),A._uU(44,"Clear"),A.qZA(),A.TgZ(45,"button",26),A.NdJ("click",function(){return s.onBumpFee()}),A._uU(46),A.qZA()()()()()()),2&t){const z=A.MAs(34);A.xp6(12),A.hij("Bump fee for transaction id: ",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid," "),A.xp6(1),A.Q6J("icon",s.faCopy)("payload",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid),A.xp6(3),A.Q6J("icon",s.faInfoCircle),A.xp6(17),A.Q6J("ngModel",s.outputIndex)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",null==z.errors?null:z.errors.required),A.xp6(1),A.Q6J("ngIf",null==z.errors?null:z.errors.pendingChannelOutputIndex),A.xp6(2),A.Q6J("ngModel",s.fees)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",!s.fees),A.xp6(1),A.Q6J("ngIf",""!==s.bumpFeeError),A.xp6(5),A.Oqu(""!==s.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[wt.xw,wt.yH,w.dk,wt.Wh,Q.lW,w.dn,OA._Y,OA.JL,OA.F,f.BN,Z.R9,Kr.y,aA.gM,Z.KE,H.Nt,OA.wV,OA.qQ,OA.Fj,b.q,k.h,OA.Q7,OA.JJ,OA.On,ht.O5,Z.TO],styles:[""]}),r})();function k0(r,y){1&r&&A._UZ(0,"mat-progress-bar",30)}function j0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Short Channel ID "),A.qZA())}function K0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.short_channel_id,"")}}function V0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Alias "),A.qZA())}function W0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function Ja(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Connected "),A.qZA())}function Z0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function X0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Private "),A.qZA())}function q0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function cr(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," State "),A.qZA())}const _0=function(r){return{"max-width":r}};function Ui(r,y){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,_0,s.screenSize===s.screenSizeEnum.XS?"10rem":"")),A.xp6(1),A.hij(" ",s.CLNChannelPendingState[null==t?null:t.state]," ")}}function $0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," mSatoshi To Us "),A.qZA())}function Al(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_to_us)," ")}}function tl(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Total (Sats) "),A.qZA())}function Oa(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi_total)/1e3)," ")}}function el(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Spendable Satoshi "),A.qZA())}function nl(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function rl(r,y){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 il(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const z=A.oxw().$implicit;return A.oxw().onChannelClose(z)}),A._uU(1,"Close Channel"),A.qZA()}}function ka(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const z=A.oxw().$implicit;return A.oxw().onBumpFee(z)}),A._uU(1,"Bump Fee"),A.qZA()}}function al(r,y){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(z){const st=A.CHM(t).$implicit;return A.oxw().onChannelClick(st,z)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,il,2,0,"mat-option",42),A.YNc(7,ka,2,0,"mat-option",42),A.qZA()()()}if(2&r){const t=y.$implicit,s=A.oxw();A.xp6(6),A.Q6J("ngIf",s.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 ja(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function Ka(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No pending/inactive channel available."),A.qZA())}function Va(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting pending/inactive channels..."),A.qZA())}function ol(r,y){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 sl(r,y){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,ja,2,0,"p",44),A.YNc(2,Ka,2,0,"p",44),A.YNc(3,Va,2,0,"p",44),A.YNc(4,ol,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 ll=function(r){return{"display-none":r}};function cl(r,y){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,ll,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function gl(r,y){1&r&&A._UZ(0,"tr",46)}function Wa(r,y){1&r&&A._UZ(0,"tr",47)}const Bl=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},ul=function(){return["no_peer"]};let fl=(()=>{class r{constructor(t,s,z,dA){this.logger=t,this.store=s,this.rtlEffects=z,this.commonService=dA,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(g.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,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=[...t.pendingChannels,...t.inactiveChannels],this.channelsData=this.channelsData.sort((s,z)=>this.CLNChannelPendingState[s.state]>=this.CLNChannelPendingState[z.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:O0}}}))}onChannelClick(t,s){this.store.dispatch((0,KA.qR)({payload:{data:{channel:t,showCopy:!0,component:Zi}}}))}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(s=>{s&&this.store.dispatch((0,mt.BL)({payload:{id:t.id,channelId:t.channel_id,force:!0}}))})}loadChannelsTable(t){t.sort((s,z)=>s.active===z.active?0:z.active?1:-1),this.channels=new FA.by([...t]),this.channels.filterPredicate=(s,z)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state&&this.CLNChannelPendingState[s.state]?this.CLNChannelPendingState[s.state].toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(z),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,z)=>"state"===z?this.CLNChannelPendingState[s.state]:s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]: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(DA.V),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-pending-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},features:[A._Bn([{provide:at.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,s){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 s.applyFilter()})("ngModelChange",function(dA){return s.selFilter=dA}),A.qZA()()(),A.YNc(5,k0,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,j0,2,0,"th",10),A.YNc(11,K0,2,1,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,V0,2,0,"th",10),A.YNc(14,W0,2,1,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,Ja,2,0,"th",10),A.YNc(17,Z0,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,X0,2,0,"th",10),A.YNc(20,q0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,cr,2,0,"th",10),A.YNc(23,Ui,2,4,"td",16),A.BQk(),A.ynx(24,17),A.YNc(25,$0,2,0,"th",18),A.YNc(26,Al,4,3,"td",11),A.BQk(),A.ynx(27,19),A.YNc(28,tl,2,0,"th",18),A.YNc(29,Oa,4,3,"td",11),A.BQk(),A.ynx(30,20),A.YNc(31,el,2,0,"th",18),A.YNc(32,nl,4,3,"td",11),A.BQk(),A.ynx(33,21),A.YNc(34,rl,6,0,"th",22),A.YNc(35,al,8,2,"td",23),A.BQk(),A.ynx(36,24),A.YNc(37,sl,5,4,"td",25),A.BQk(),A.YNc(38,cl,1,3,"tr",26),A.YNc(39,gl,1,0,"tr",27),A.YNc(40,Wa,1,0,"tr",28),A.qZA()(),A._UZ(41,"mat-paginator",29),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Bl,""!==s.errorMessage)),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(13,ul)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[wt.xw,wt.Wh,wt.yH,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,ht.O5,Y.pW,lA.$V,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,ht.PC,m.Zl,CA.gD,CA.$L,wA.ey,FA.mD,FA.yh,FA.Ke,FA.Q2,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.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 hl=["peersForm"],El=["stepper"];function wl(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.peerFormLabel)}}function Za(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Address is required."),A.qZA())}function Xa(r,y){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 Cl(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.channelFormLabel)}}function Ql(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function dl(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be a positive number."),A.qZA())}function on(r,y){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 yr(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Ml(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function qa(r,y){if(1&r&&(A.TgZ(0,"mat-form-field",43),A._UZ(1,"input",44),A.YNc(2,Ml,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 pl(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Il(r,y){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 _a=function(r,y){return{"mr-6":r,"mr-2":y}};let ml=(()=>{class r{constructor(t,s,z,dA,st,Ae,un){this.dialogRef=t,this.data=s,this.store=z,this.formBuilder=dA,this.actions=st,this.logger=Ae,this.commonService=un,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.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.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[OA.kI.required]],peerAddress:[this.peerAddress,[OA.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[OA.kI.required,OA.kI.min(1),OA.kI.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}],hiddenAmount:["",[OA.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([OA.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:[OA.kI.required])}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,qA.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,mt.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){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,mt.YX)({payload:{peerId:this.newlyAddedPeer.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){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: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.id):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.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(OA.qu),A.Y36(C.eX),A.Y36(E.mQ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connect-peer"]],viewQuery:function(t,s){if(1&t&&(A.Gf(hl,5),A.Gf(El,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.form=z.first),A.iGM(z=A.CRH())&&(s.stepper=z.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",""],["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,s){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 s.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(dA){return s.stepSelectionChanged(dA)}),A.TgZ(12,"mat-step",10)(13,"form",11),A.YNc(14,wl,1,1,"ng-template",12),A.TgZ(15,"mat-form-field",1),A._UZ(16,"input",13),A.YNc(17,Za,2,0,"mat-error",14),A.qZA(),A.YNc(18,Xa,4,2,"div",15),A.TgZ(19,"div",16)(20,"button",17),A.NdJ("click",function(){return s.onConnectPeer()}),A._uU(21),A.qZA()()()(),A.TgZ(22,"mat-step",10)(23,"form",18),A.NdJ("ngSubmit",function(){return s.onOpenChannel()}),A.YNc(24,Cl,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,Ql,2,0,"mat-error",14),A.YNc(34,dl,2,0,"mat-error",14),A.YNc(35,on,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,yr,2,2,"mat-option",31),A.qZA()(),A.YNc(44,qa,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,pl,2,0,"mat-error",14),A.qZA()()()(),A.YNc(50,Il,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",s.peerFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.peerFormGroup),A.xp6(4),A.Q6J("ngIf",null==s.peerFormGroup.controls.peerAddress.errors?null:s.peerFormGroup.controls.peerAddress.errors.required),A.xp6(1),A.Q6J("ngIf",""!==s.peerConnectionError),A.xp6(3),A.Oqu(""!==s.peerConnectionError?"Retry":"Add Peer"),A.xp6(1),A.Q6J("stepControl",s.channelFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.channelFormGroup),A.xp6(5),A.Q6J("step",1e3),A.xp6(2),A.hij("Remaining Bal: ",s.totalBalance-(s.channelFormGroup.controls.fundingAmount.value?s.channelFormGroup.controls.fundingAmount.value:0),""),A.xp6(3),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.min),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.max),A.xp6(6),A.Q6J("fxFlex","customperkb"!==s.channelFormGroup.controls.selFeeRate.value||s.channelFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.channelFormGroup.controls.selFeeRate.value&&!s.channelFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(27,_a,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",s.channelFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",s.channelFormGroup.controls.flgMinConf.value&&!s.channelFormGroup.controls.minConfValue.value),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError),A.xp6(3),A.Oqu(""!==s.channelConnectionError?"Retry":"Open Channel"),A.xp6(2),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(null!=s.newlyAddedPeer&&s.newlyAddedPeer.id?"Do It Later":"Close"))},directives:[wt.xw,wt.yH,w.dk,wt.Wh,Q.lW,w.dn,pr.Vq,pr.C0,OA._Y,OA.JL,OA.sg,pr.VY,Z.KE,H.Nt,OA.Fj,k.h,OA.JJ,OA.u,OA.Q7,ht.O5,Z.TO,f.BN,OA.wV,Z.bx,Z.R9,RA.Rr,CA.gD,ht.sg,wA.ey,OA.qQ,b.q,$A.oG,ht.mk,m.oO,dt.ZT],styles:[""]}),r})();function vl(r,y){1&r&&A._UZ(0,"mat-progress-bar",32)}function $a(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1," Alias "),A.qZA())}const Ao=function(r){return{"mr-0":r}};function xr(r,y){if(1&r&&A._UZ(0,"span",37),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Ao,t.screenSize===t.screenSizeEnum.XS))}}function Dl(r,y){if(1&r&&A._UZ(0,"span",38),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Ao,t.screenSize===t.screenSizeEnum.XS))}}const qi=function(r){return{"max-width":r}};function yl(r,y){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,xr,1,3,"span",35),A.YNc(2,Dl,1,3,"span",36),A._uU(3),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(4,qi,s.screenSize===s.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 xl(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function to(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function _i(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1," Network Address "),A.qZA())}function nr(r,y){1&r&&(A.TgZ(0,"span"),A._uU(1,","),A._UZ(2,"br"),A.qZA())}function Fl(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.YNc(2,nr,3,0,"span",42),A.qZA()),2&r){const t=y.$implicit,s=y.last;A.xp6(1),A.Oqu(t),A.xp6(1),A.Q6J("ngIf",!s)}}function Yl(r,y){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,Fl,3,2,"span",41),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"20rem")),A.xp6(1),A.Q6J("ngForOf",null==t?null:t.netaddr)}}function Tl(r,y){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 Sl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const z=A.oxw().$implicit;return A.oxw().onPeerDetach(z)}),A._uU(1,"Disconnect"),A.qZA()}}function Gl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const z=A.oxw().$implicit;return A.oxw().onConnectPeer(z)}),A._uU(1,"Reconnect"),A.qZA()}}function Nl(r,y){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(z){const st=A.CHM(t).$implicit;return A.oxw().onPeerClick(st,z)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",46),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(dA)}),A._uU(7,"Open Channel"),A.qZA(),A.YNc(8,Sl,2,0,"mat-option",49),A.YNc(9,Gl,2,0,"mat-option",49),A.qZA()()()}if(2&r){const t=y.$implicit;A.xp6(8),A.Q6J("ngIf",t.connected),A.xp6(1),A.Q6J("ngIf",!t.connected)}}function Ul(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No connected peer."),A.qZA())}function Pl(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting peers..."),A.qZA())}function Rl(r,y){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 eo(r,y){if(1&r&&(A.TgZ(0,"td",50),A.YNc(1,Ul,2,0,"p",42),A.YNc(2,Pl,2,0,"p",42),A.YNc(3,Rl,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 zl=function(r){return{"display-none":r}};function eA(r,y){if(1&r&&A._UZ(0,"tr",51),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,zl,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function G(r,y){1&r&&A._UZ(0,"tr",52)}function V(r,y){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 P=(()=>{class r{constructor(t,s,z,dA,st){this.logger=t,this.store=s,this.rtlEffects=z,this.actions=dA,this.commonService=st,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(g.Ao).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.availableBalance=t.balance.totalBalance||0}),this.store.select(g.Wi).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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,qA.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,s){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:ml}}}))}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:ee}}}))}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(z=>{z&&this.store.dispatch((0,mt.z)({payload:{id:t.id,force:!1}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new FA.by([...t]),this.peers.sortingDataAccessor=(s,z)=>{if("netaddr"===z){if(s.netaddr&&s.netaddr[0]){const dA=s.netaddr[0].toString().split(".");return dA[0]?+dA[0]:s.netaddr[0]}return""}return s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null},this.peers.sort=this.sort,this.peers.filterPredicate=(s,z)=>JSON.stringify(s).toLowerCase().includes(z),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(DA.V),A.Y36(C.eX),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},features:[A._Bn([{provide:at.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,s){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),A.NdJ("click",function(){return s.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 s.applyFilter()})("ngModelChange",function(dA){return s.selFilter=dA}),A.qZA()()()(),A.TgZ(14,"div",12),A.YNc(15,vl,1,0,"mat-progress-bar",13),A.TgZ(16,"table",14,15),A.ynx(18,16),A.YNc(19,$a,2,0,"th",17),A.YNc(20,yl,4,6,"td",18),A.BQk(),A.ynx(21,19),A.YNc(22,xl,2,0,"th",20),A.YNc(23,to,2,4,"td",21),A.BQk(),A.ynx(24,22),A.YNc(25,_i,2,0,"th",17),A.YNc(26,Yl,2,4,"td",18),A.BQk(),A.ynx(27,23),A.YNc(28,Tl,6,0,"th",24),A.YNc(29,Nl,10,2,"td",25),A.BQk(),A.ynx(30,26),A.YNc(31,eo,4,3,"td",27),A.BQk(),A.YNc(32,eA,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",s.faUsers),A.xp6(5),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.peers)("ngClass",A.VKq(12,M,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,x)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[wt.xw,wt.yH,wt.Wh,OA._Y,OA.JL,OA.F,Q.lW,f.BN,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,ht.O5,Y.pW,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,ht.PC,m.Zl,aA.gM,ht.sg,CA.gD,CA.$L,wA.ey,FA.mD,FA.yh,FA.Ke,FA.Q2,FA.as,FA.XQ,FA.nj,FA.Gk,at.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 tA=["queryRoutesForm"];function oA(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Destination pubkey is required."),A.qZA())}function sA(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function iA(r,y){1&r&&A._UZ(0,"mat-progress-bar",38)}function NA(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function kA(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function gt(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," Alias "),A.qZA())}function _A(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function ut(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," Channel "),A.qZA())}function pt(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.channel," ")}}function yt(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," Direction "),A.qZA())}function Gt(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.direction," ")}}function $t(r,y){1&r&&(A.TgZ(0,"th",41),A._uU(1," Delay "),A.qZA())}function _t(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.delay)," ")}}function ae(r,y){1&r&&(A.TgZ(0,"th",41),A._uU(1," Amount (Sats) "),A.qZA())}function Be(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi)/1e3)," ")}}function we(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Amount mSat "),A.qZA())}function Ce(r,y){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.amount_msat," ")}}function He(r,y){1&r&&(A.TgZ(0,"th",45)(1,"span",42),A._uU(2,"Actions"),A.qZA()())}function sn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",44)(1,"button",46),A.NdJ("click",function(z){const st=A.CHM(t).$implicit;return A.oxw().onHopClick(st,z)}),A._uU(2,"View Info"),A.qZA()()}}function Je(r,y){1&r&&A._UZ(0,"tr",47)}function le(r,y){1&r&&A._UZ(0,"tr",48)}const ln=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}};let We=(()=>{class r{constructor(t,s,z){this.store=t,this.clnEffects=s,this.commonService=z,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 FA.by([]),this.qrHops.data=[],t.routes&&t.routes.length&&t.routes.length>0?(this.flgLoading[0]=!1,this.qrHops=new FA.by([...t.routes]),this.qrHops.data=t.routes):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch((0,mt.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,s){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(qe.J),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-query-routes"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(tA,7)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.form=z.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,s){if(1&t){const z=A.EpF();A.TgZ(0,"div",0)(1,"form",1,2),A.NdJ("ngSubmit",function(){return A.CHM(z),A.MAs(2).form.valid&&s.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(st){return s.destinationPubkey=st}),A.qZA(),A.YNc(10,oA,2,0,"mat-error",8),A.qZA(),A.TgZ(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(st){return s.amount=st}),A.qZA(),A.YNc(13,sA,2,0,"mat-error",8),A.qZA(),A.TgZ(14,"div",11)(15,"button",12),A.NdJ("click",function(){return s.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,kA,2,1,"td",24),A.BQk(),A.ynx(31,25),A.YNc(32,gt,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,Gt,2,1,"td",24),A.BQk(),A.ynx(40,28),A.YNc(41,$t,2,0,"th",29),A.YNc(42,_t,4,3,"td",24),A.BQk(),A.ynx(43,30),A.YNc(44,ae,2,0,"th",29),A.YNc(45,Be,4,3,"td",24),A.BQk(),A.ynx(46,31),A.YNc(47,we,2,0,"th",32),A.YNc(48,Ce,2,1,"td",33),A.BQk(),A.ynx(49,34),A.YNc(50,He,3,0,"th",35),A.YNc(51,sn,3,0,"td",33),A.BQk(),A.YNc(52,Je,1,0,"tr",36),A.YNc(53,le,1,0,"tr",37),A.qZA()()()}2&t&&(A.xp6(4),A.Q6J("icon",s.faExclamationTriangle),A.xp6(4),A.Q6J("ngModel",s.destinationPubkey),A.xp6(2),A.Q6J("ngIf",!s.destinationPubkey),A.xp6(2),A.Q6J("ngModel",s.amount)("step",1e3)("min",0),A.xp6(1),A.Q6J("ngIf",!s.amount),A.xp6(8),A.Q6J("icon",s.faRoute),A.xp6(4),A.Q6J("ngIf",!0===s.flgLoading[0]),A.xp6(1),A.Q6J("dataSource",s.qrHops)("ngClass",A.VKq(14,ln,"error"===s.flgLoading[0])),A.xp6(26),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns))},directives:[wt.xw,wt.yH,OA._Y,OA.JL,OA.F,wt.Wh,f.BN,Z.KE,H.Nt,OA.Fj,OA.Q7,OA.JJ,OA.On,ht.O5,Z.TO,OA.wV,OA.qQ,b.q,Q.lW,lA.$V,Y.pW,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,FA.as,FA.XQ,FA.nj,FA.Gk],pipes:[ht.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 Oe(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}let he=(()=>{class r{constructor(t,s,z){this.dataService=t,this.snackBar=s,this.logger=z,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(zA.D),A.Y36(Sr.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,s){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(dA){return s.message=dA})("keyup",function(){return s.onMessageChange()}),A.qZA(),A.YNc(5,Oe,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"div",6)(7,"button",7),A.NdJ("click",function(){return s.resetData()}),A._uU(8,"Clear Field"),A.qZA(),A.TgZ(9,"button",8),A.NdJ("click",function(){return s.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(dA){return s.onCopyField(dA)}),A._uU(19,"Copy Signature"),A.qZA()()()()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(6),A.Q6J("inset",!0),A.xp6(5),A.Oqu(s.signature),A.xp6(2),A.Q6J("payload",s.signature))},directives:[wt.xw,wt.yH,wt.Wh,OA._Y,OA.JL,OA.F,Z.KE,H.Nt,OA.Fj,k.h,OA.Q7,OA.JJ,OA.On,ht.O5,Z.TO,Q.lW,AA.d,Kr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function _e(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}function Ue(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Signature is required."),A.qZA())}function Fe(r,y){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 An(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Pubkey Used"),A.qZA())}function zn(r,y){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 gn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",21)(1,"button",22),A.NdJ("copied",function(z){return A.CHM(t),A.oxw(2).onCopyField(z)}),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 pn(r,y){if(1&r&&(A.TgZ(0,"div",15),A._UZ(1,"mat-divider",16),A.TgZ(2,"div",17),A.YNc(3,An,2,0,"p",5),A.qZA(),A.YNc(4,zn,3,1,"div",18),A.YNc(5,gn,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 Hn=(()=>{class r{constructor(t,s,z){this.dataService=t,this.snackBar=s,this.logger=z,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(zA.D),A.Y36(Sr.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,s){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(dA){return s.message=dA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(5,_e,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"mat-form-field",3)(7,"input",6,7),A.NdJ("ngModelChange",function(dA){return s.signature=dA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(9,Ue,2,0,"mat-error",5),A.qZA(),A.YNc(10,Fe,4,0,"p",8),A.TgZ(11,"div",9)(12,"button",10),A.NdJ("click",function(){return s.resetData()}),A._uU(13,"Clear Fields"),A.qZA(),A.TgZ(14,"button",11),A.NdJ("click",function(){return s.onVerify()}),A._uU(15,"Verify"),A.qZA()(),A.YNc(16,pn,6,4,"div",12),A.qZA()()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(2),A.Q6J("ngModel",s.signature),A.xp6(2),A.Q6J("ngIf",!s.signature),A.xp6(1),A.Q6J("ngIf",s.showVerifyStatus&&!s.verifyRes.verified),A.xp6(6),A.Q6J("ngIf",s.showVerifyStatus&&s.verifyRes.verified))},directives:[wt.xw,wt.yH,wt.Wh,OA._Y,OA.JL,OA.F,Z.KE,H.Nt,OA.Fj,k.h,OA.Q7,OA.JJ,OA.On,ht.O5,Z.TO,S.Hw,Q.lW,AA.d,Kr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function On(r,y){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 mn(r,y){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(z){return A.CHM(t),A.oxw().filterValue=z})("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 Qn(r,y){1&r&&A._UZ(0,"mat-progress-bar",33)}function kn(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Status"),A.qZA())}function jn(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.status)}}function me(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Received Time"),A.qZA())}function Pe(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Ye(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Resolved Time"),A.qZA())}function Ze(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$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,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"In Channel"),A.qZA())}function Bn(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function $i(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Out Channel"),A.qZA())}function Ln(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function Aa(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount In (Sats)"),A.qZA())}function ta(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Ll(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount Out (Sats)"),A.qZA())}function bl(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Pi(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fee (mSat)"),A.qZA())}function _r(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.fee))}}function ea(r,y){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 Ri(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"button",43),A.NdJ("click",function(z){const st=A.CHM(t).$implicit;return A.oxw(2).onForwardingEventClick(st,z)}),A._uU(2,"View Info"),A.qZA()()}}function zi(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No forwarding history available."),A.qZA())}function $r(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting forwarding history..."),A.qZA())}function Ai(r,y){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 ti(r,y){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,zi,2,0,"p",45),A.YNc(2,$r,2,0,"p",45),A.YNc(3,Ai,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 ei=function(r){return{"display-none":r}};function ni(r,y){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ei,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function ri(r,y){1&r&&A._UZ(0,"tr",47)}function ii(r,y){1&r&&A._UZ(0,"tr",48)}const ai=function(){return["no_event"]};function Qr(r,y){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,Qn,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,kn,2,0,"th",15),A.YNc(6,jn,2,1,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,me,2,0,"th",15),A.YNc(9,Pe,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,Ye,2,0,"th",15),A.YNc(12,Ze,3,4,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,ke,2,0,"th",15),A.YNc(15,Bn,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,$i,2,0,"th",15),A.YNc(18,Ln,2,1,"td",16),A.BQk(),A.ynx(19,21),A.YNc(20,Aa,2,0,"th",22),A.YNc(21,ta,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,Ll,2,0,"th",22),A.YNc(24,bl,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,Pi,2,0,"th",22),A.YNc(27,_r,4,3,"td",16),A.BQk(),A.ynx(28,25),A.YNc(29,ea,6,0,"th",26),A.YNc(30,Ri,3,0,"td",27),A.BQk(),A.ynx(31,28),A.YNc(32,ti,4,3,"td",29),A.BQk(),A.YNc(33,ni,1,3,"tr",30),A.YNc(34,ri,1,0,"tr",31),A.YNc(35,ii,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,ai)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function no(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",49),A.NdJ("page",function(z){return A.CHM(t),A.oxw().onPageChange(z)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalForwardedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let na=(()=>{class r{constructor(t,s,z,dA,st){this.logger=t,this.commonService=s,this.store=z,this.datePipe=dA,this.router=st,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.flgSticky=!1,this.indexOffset=-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 s;t.cln.apisCallStatus.FetchForwardingHistoryS.status===a.Bn.UN_INITIATED&&!(null===(s=t.cln.forwardingHistory.listForwards)||void 0===s?void 0:s.length)&&this.store.dispatch((0,mt.u0)({payload:{status:a.OO.SETTLED}}))}),this.store.select(g.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.slice(0,this.pageSize)),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.successfulEvents.slice(0,this.pageSize))}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,this.indexOffset=0,this.totalForwardedTransactions=this.eventsData.length,this.paginator&&this.paginator.firstPage(),t.eventsData.firstChange||this.loadForwardingEventsTable(this.successfulEvents.slice(0,this.pageSize))),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,s){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 FA.by([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null,this.forwardingHistoryEvents.filterPredicate=(s,z)=>{var dA,st;return((s.received_time?(null===(dA=this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm"))||void 0===dA?void 0:dA.toLowerCase())+" ":"")+(s.resolved_time?(null===(st=this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm"))||void 0===st?void 0:st.toLowerCase())+" ":"")+(s.in_channel?s.in_channel.toLowerCase()+" ":"")+(s.out_channel?s.out_channel.toLowerCase()+" ":"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase()+" ":"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase()+" ":"")+(s.in_msatoshi?s.in_msatoshi/1e3+" ":"")+(s.out_msatoshi?s.out_msatoshi/1e3+" ":"")+(s.fee?s.fee+" ":"")).includes(z)},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())}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.loadForwardingEventsTable(this.successfulEvents.slice(this.indexOffset,this.indexOffset+this.pageSize))}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(e.v),A.Y36(u.yh),A.Y36(ht.uU),A.Y36(qt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-forwarding-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:at.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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,On,2,1,"div",1),A.YNc(2,mn,4,1,"div",2),A.YNc(3,Qr,36,7,"div",3),A.YNc(4,no,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[wt.xw,wt.Wh,ht.O5,wt.yH,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,FA.BZ,et.YE,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,CA.gD,CA.$L,wA.ey,Q.lW,FA.mD,FA.yh,FA.Ke,FA.Q2,ht.mk,m.oO,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.uU,ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function ro(r,y){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 io(r,y){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("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(z){return A.CHM(t),A.oxw().selFilter=z}),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function ra(r,y){1&r&&A._UZ(0,"mat-progress-bar",32)}function Wl(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Received Time"),A.qZA())}function Zl(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Xl(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Resolved Time"),A.qZA())}function ql(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function _l(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"In Channel"),A.qZA())}function $l(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function Ac(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Out Channel"),A.qZA())}function tc(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function ec(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount In (Sats)"),A.qZA())}function nc(r,y){if(1&r&&(A.TgZ(0,"td",34)(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 rc(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount Out (Sats)"),A.qZA())}function ic(r,y){if(1&r&&(A.TgZ(0,"td",34)(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 ac(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Fee (mSats)"),A.qZA())}function oc(r,y){if(1&r&&(A.TgZ(0,"td",34)(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,null==t?null:t.fee,"1.0-0"))}}function sc(r,y){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(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function lc(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",41)(1,"button",42),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw(2).onFailedEventClick(dA)}),A._uU(2,"View Info"),A.qZA()()}}function cc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function gc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function Bc(r,y){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 uc(r,y){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,cc,2,0,"p",44),A.YNc(2,gc,2,0,"p",44),A.YNc(3,Bc,2,1,"p",44),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 fc=function(r){return{"display-none":r}};function hc(r,y){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,fc,(null==t.failedForwardingEvents?null:t.failedForwardingEvents.data)&&(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)>0))}}function Ec(r,y){1&r&&A._UZ(0,"tr",46)}function wc(r,y){1&r&&A._UZ(0,"tr",47)}const Cc=function(){return["no_event"]};function Qc(r,y){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,ra,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,Wl,2,0,"th",15),A.YNc(6,Zl,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,Xl,2,0,"th",15),A.YNc(9,ql,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,_l,2,0,"th",15),A.YNc(12,$l,2,1,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,Ac,2,0,"th",15),A.YNc(15,tc,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,ec,2,0,"th",21),A.YNc(18,nc,4,4,"td",16),A.BQk(),A.ynx(19,22),A.YNc(20,rc,2,0,"th",21),A.YNc(21,ic,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,ac,2,0,"th",21),A.YNc(24,oc,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,sc,6,0,"th",25),A.YNc(27,lc,3,0,"td",26),A.BQk(),A.ynx(28,27),A.YNc(29,uc,4,3,"td",28),A.BQk(),A.YNc(30,hc,1,3,"tr",29),A.YNc(31,Ec,1,0,"tr",30),A.YNc(32,wc,1,0,"tr",31),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,Cc)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function dc(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",48),A.NdJ("page",function(z){return A.CHM(t),A.oxw().onPageChange(z)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalFailedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Mc=(()=>{class r{constructor(t,s,z,dA,st){this.logger=t,this.commonService=s,this.store=z,this.datePipe=dA,this.router=st,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.indexOffset=-1,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,mt.u0)({payload:{status:a.OO.FAILED}})),this.store.select(g.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.slice(0,this.pageSize)),this.logger.info(t)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadFailedEventsTable(this.failedEvents.slice(0,this.pageSize))}onFailedEventClick(t){const s=[[{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&&s.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:s}}}))}loadFailedEventsTable(t){this.failedForwardingEvents=new FA.by([...t]),this.failedForwardingEvents.sort=this.sort,this.failedForwardingEvents.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null,this.failedForwardingEvents.filterPredicate=(s,z)=>{var dA,st;const Ae=s.received_time?null===(dA=this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm"))||void 0===dA?void 0:dA.toLowerCase():""+(s.resolved_time?null===(st=this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm"))||void 0===st?void 0:st.toLowerCase():"")+(s.payment_hash?s.payment_hash.toLowerCase():"")+(s.in_channel?s.in_channel.toLowerCase():"")+(s.out_channel?s.out_channel.toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"")+(s.out_msatoshi?s.out_msatoshi/1e3:"")+(s.fee?s.fee:"");return(null==Ae?void 0:Ae.includes(z))||!1},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()}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.loadFailedEventsTable(this.failedEvents.slice(this.indexOffset,this.indexOffset+this.pageSize))}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(e.v),A.Y36(u.yh),A.Y36(ht.uU),A.Y36(qt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},features:[A._Bn([{provide:at.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","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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",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","","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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,ro,2,1,"div",1),A.YNc(2,io,4,1,"div",2),A.YNc(3,Qc,33,7,"div",3),A.YNc(4,dc,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[wt.xw,wt.Wh,ht.O5,wt.yH,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,FA.BZ,et.YE,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,CA.gD,CA.$L,wA.ey,Q.lW,FA.mD,FA.yh,FA.Ke,FA.Q2,ht.mk,m.oO,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.uU,ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const pc=["tableIn"],Ic=["tableOut"],mc=["paginatorIn"],vc=["paginatorOut"];function Dc(r,y){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 yc(r,y){1&r&&A._UZ(0,"mat-progress-bar",36)}function xc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}const ao=function(r){return{"max-width":r}};function Fc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Yc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Tc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Sc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Nc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function Uc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function Pc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Rc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function zc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Lc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No incoming routing peer available."),A.qZA())}function bc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting incoming routing peers..."),A.qZA())}function Gc(r,y){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 Hc(r,y){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,Lc,2,0,"p",43),A.YNc(2,bc,2,0,"p",43),A.YNc(3,Gc,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 Hl=function(r){return{"display-none":r}};function Jc(r,y){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hl,(null==t.RoutingPeersIncoming?null:t.RoutingPeersIncoming.data)&&(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function Oc(r,y){1&r&&A._UZ(0,"tr",45)}function kc(r,y){1&r&&A._UZ(0,"tr",46)}function jc(r,y){1&r&&A._UZ(0,"mat-progress-bar",36)}function Kc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}function Vc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Wc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Zc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Xc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function qc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function _c(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function $c(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 Ag(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function tg(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 eg(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No outgoing routing peer available."),A.qZA())}function ng(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting outgoing routing peers..."),A.qZA())}function rg(r,y){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 ig(r,y){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,eg,2,0,"p",43),A.YNc(2,ng,2,0,"p",43),A.YNc(3,rg,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 ag(r,y){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hl,(null==t.RoutingPeersOutgoing?null:t.RoutingPeersOutgoing.data)&&(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function og(r,y){1&r&&A._UZ(0,"tr",45)}function sg(r,y){1&r&&A._UZ(0,"tr",46)}const lg=function(r,y){return{"mt-2":r,"mt-1":y}},cg=function(){return["no_incoming_event"]},gg=function(r){return{"mt-2":r}},Bg=function(){return["no_outgoing_event"]};function ug(r,y){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(z){return A.CHM(t),A.oxw().filterIn=z}),A.qZA()()(),A.TgZ(7,"div",10),A.YNc(8,yc,1,0,"mat-progress-bar",11),A.TgZ(9,"table",12,13),A.ynx(11,14),A.YNc(12,xc,2,0,"th",15),A.YNc(13,Fc,2,4,"td",16),A.BQk(),A.ynx(14,17),A.YNc(15,Yc,2,0,"th",15),A.YNc(16,Tc,2,4,"td",16),A.BQk(),A.ynx(17,18),A.YNc(18,Sc,2,0,"th",19),A.YNc(19,Nc,4,3,"td",20),A.BQk(),A.ynx(20,21),A.YNc(21,Uc,2,0,"th",19),A.YNc(22,Pc,4,4,"td",20),A.BQk(),A.ynx(23,22),A.YNc(24,Rc,2,0,"th",19),A.YNc(25,zc,4,4,"td",20),A.BQk(),A.ynx(26,23),A.YNc(27,Hc,4,3,"td",24),A.BQk(),A.YNc(28,Jc,1,3,"tr",25),A.YNc(29,Oc,1,0,"tr",26),A.YNc(30,kc,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(z){return A.CHM(t),A.oxw().filterOut=z}),A.qZA()()(),A.TgZ(39,"div",31),A.YNc(40,jc,1,0,"mat-progress-bar",11),A.TgZ(41,"table",32,33),A.ynx(43,14),A.YNc(44,Kc,2,0,"th",15),A.YNc(45,Vc,2,4,"td",16),A.BQk(),A.ynx(46,17),A.YNc(47,Wc,2,0,"th",15),A.YNc(48,Zc,2,4,"td",16),A.BQk(),A.ynx(49,18),A.YNc(50,Xc,2,0,"th",19),A.YNc(51,qc,4,3,"td",20),A.BQk(),A.ynx(52,21),A.YNc(53,_c,2,0,"th",19),A.YNc(54,$c,4,4,"td",20),A.BQk(),A.ynx(55,22),A.YNc(56,Ag,2,0,"th",19),A.YNc(57,tg,4,4,"td",20),A.BQk(),A.ynx(58,34),A.YNc(59,ig,4,3,"td",24),A.BQk(),A.YNc(60,ag,1,3,"tr",25),A.YNc(61,og,1,0,"tr",26),A.YNc(62,sg,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,lg,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,gg,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,Bg)),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 fg=(()=>{class r{constructor(t,s,z){this.logger=t,this.commonService=s,this.store=z,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(g.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="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 s=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new FA.by(s[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(z,dA)=>JSON.stringify(z).toLowerCase().includes(dA),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new FA.by(s[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(z,dA)=>JSON.stringify(z).toLowerCase().includes(dA),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new FA.by([]),this.RoutingPeersOutgoing=new FA.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter(),this.logger.info(this.RoutingPeersIncoming),this.logger.info(this.RoutingPeersOutgoing)}groupRoutingPeers(t){const s=[],z=[];return t.forEach(dA=>{const st=s.find(un=>un.channel_id===dA.in_channel),Ae=z.find(un=>un.channel_id===dA.out_channel);st?(st.events++,st.total_amount=+st.total_amount+ +dA.in_msatoshi,st.total_fee=dA.in_msatoshi-dA.out_msatoshi+ +st.total_fee):s.push({channel_id:dA.in_channel,alias:dA.in_channel_alias,events:1,total_amount:dA.in_msatoshi,total_fee:dA.in_msatoshi-dA.out_msatoshi}),Ae?(Ae.events++,Ae.total_amount=+Ae.total_amount+ +dA.out_msatoshi,Ae.total_fee=dA.in_msatoshi-dA.out_msatoshi+ +Ae.total_fee):z.push({channel_id:dA.out_channel,alias:dA.out_channel_alias,events:1,total_amount:dA.out_msatoshi,total_fee:dA.in_msatoshi-dA.out_msatoshi})}),[this.commonService.sortDescByKey(s,"total_fee"),this.commonService.sortDescByKey(z,"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(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(pc,5,et.YE),A.Gf(Ic,5,et.YE),A.Gf(mc,5),A.Gf(vc,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sortIn=z.first),A.iGM(z=A.CRH())&&(s.sortOut=z.first),A.iGM(z=A.CRH())&&(s.paginatorIn=z.first),A.iGM(z=A.CRH())&&(s.paginatorOut=z.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:at.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,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Dc,2,1,"div",1),A.YNc(2,ug,65,29,"div",2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[wt.xw,wt.Wh,ht.O5,wt.yH,ht.mk,m.oO,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,FA.BZ,et.YE,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,ht.PC,m.Zl,FA.mD,FA.yh,FA.Ke,FA.Q2,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.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 hg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",7),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().activeLink=dA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Eg=(()=>{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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,qA.h)(s=>s instanceof qt.Av)).subscribe({next:s=>{const z=this.links.find(dA=>s.urlAfterRedirects.includes(dA.link));this.activeLink=z?z.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(qt.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,s){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,hg,2,3,"div",6),A.qZA(),A._UZ(9,"router-outlet"),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartBar),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[wt.xw,wt.Wh,f.BN,w.a8,w.dn,JA.BU,ht.sg,JA.Nj,qt.rH,qt.lC],styles:[""]}),r})();var Jl=Nt(7772),Ol=Nt(7671),kl=Nt(1210);function wg(r,y){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 Cg(r,y){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 Qg(r,y){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 dg(r,y){1&r&&(A.TgZ(0,"div",14),A._uU(1,"No routing report for the selected period"),A.qZA())}function Mg(r,y){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=y.model,s=A.oxw(2);A.xp6(2),A.hij("Events: ",A.lcZ(3,2,(s.selReportBy===s.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),A.xp6(3),A.hij("Fee: ",A.xi3(6,4,(s.selReportBy===s.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function pg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical",18),A.NdJ("select",function(z){return A.CHM(t),A.oxw().onChartBarSelected(z)})("mouseup",function(z){return A.CHM(t),A.oxw().onChartMouseUp(z)}),A.YNc(1,Mg,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 Ig(r,y){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 mg=(()=>{class r{constructor(t,s,z,dA){this.logger=t,this.commonService=s,this.store=z,this.dataService=dA,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 s;t.cln.apisCallStatus.FetchForwardingHistoryS.status===a.Bn.UN_INITIATED&&!(null===(s=t.cln.forwardingHistory.listForwards)||void 0===s?void 0:s.length)&&this.store.dispatch((0,mt.u0)({payload:{status:a.OO.SETTLED}}))}),this.store.select(g.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,s){const z=Math.round(t.getTime()/1e3),dA=Math.round(s.getTime()/1e3);this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeMsat=null,this.events&&this.events.length>0&&(this.events.forEach(st=>{st.received_time&&st.received_time>=z&&st.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){const s=Math.round(t.getTime()/1e3),z=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let dA=0;dA<12;dA++)z.push({name:a.gg[dA].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod.map(dA=>{const st=dA.received_time?new Date(1e3*+dA.received_time).getMonth():12;return z[st].value=dA.fee?z[st].value+ +dA.fee/1e3:z[st].value,z[st].extra.totalEvents=z[st].extra.totalEvents+1,this.totalFeeMsat=dA.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +dA.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}else{for(let dA=0;dA{const st=dA.received_time?Math.floor((+dA.received_time-s)/this.secondsInADay):0;return z[st].value=dA.fee?z[st].value+ +dA.fee/1e3:z[st].value,z[st].extra.totalEvents=z[st].extra.totalEvents+1,this.totalFeeMsat=dA.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +dA.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}return z}prepareEventsReport(t){const s=Math.round(t.getTime()/1e3),z=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let dA=0;dA<12;dA++)z.push({name:a.gg[dA].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod.map(dA=>{const st=dA.received_time?new Date(1e3*+dA.received_time).getMonth():12;return z[st].value=z[st].value+1,z[st].extra.totalFees=dA.fee?z[st].extra.totalFees+ +dA.fee/1e3:z[st].extra.totalFees,this.totalFeeMsat=dA.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +dA.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}else{for(let dA=0;dA{const st=dA.received_time?Math.floor((+dA.received_time-s)/this.secondsInADay):0;return z[st].value=z[st].value+1,z[st].extra.totalFees=dA.fee?z[st].extra.totalFees+ +dA.fee/1e3:z[st].extra.totalFees,this.totalFeeMsat=dA.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +dA.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}return z}onSelectionChange(t){const s=t.selDate.getMonth(),z=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(z,0,1,0,0,0),this.endDate=new Date(z,11,31,23,59,59)):(this.startDate=new Date(z,s,1,0,0,0),this.endDate=new Date(z,s,this.getMonthDays(s,z),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,s){return 1===t&&s%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(e.v),A.Y36(u.yh),A.Y36(zA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(dA){return s.onChartMouseUp(dA)})},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,s){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(dA){return s.onSelectionChange(dA)}),A.qZA(),A.TgZ(2,"div",2)(3,"mat-radio-group",3),A.NdJ("ngModelChange",function(dA){return s.selReportBy=dA})("change",function(){return s.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,wg,4,0,"div",8),A.YNc(12,Cg,2,1,"div",9),A.YNc(13,Qg,4,8,"div",10),A.YNc(14,dg,2,0,"div",8),A.TgZ(15,"div",11),A.YNc(16,pg,3,11,"ngx-charts-bar-vertical",12),A.qZA(),A.TgZ(17,"div",11),A.YNc(18,Ig,1,2,"rtl-cln-forwarding-history",13),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selReportBy),A.xp6(3),A.s9C("value",s.reportBy.FEES),A.xp6(2),A.s9C("value",s.reportBy.EVENTS),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.ERROR),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&(s.routingReportData.length<=0||s.filteredEventsBySelectedPeriod.length<=0)),A.xp6(2),A.Q6J("ngIf",s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(2),A.Q6J("ngIf",s.filteredEventsBySelectedPeriod&&s.filteredEventsBySelectedPeriod.length>0))},directives:[wt.xw,wt.Wh,wt.yH,Ol.D,HA.VQ,OA.JJ,OA.On,HA.U0,ht.O5,Y.pW,kl.K$,na],pipes:[ht.JJ],styles:[""],data:{animation:[Jl.J]}}),r})();var vg=Nt(165);function Dg(r,y){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 yg(r,y){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 xg(r,y){if(1&r&&(A.TgZ(0,"div",8),A.YNc(1,Dg,4,7,"div",9),A.YNc(2,yg,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 Fg(r,y){1&r&&(A.TgZ(0,"div",11),A._uU(1,"No transactions report for the selected period"),A.qZA())}function Yg(r,y){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=y.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 Tg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical-2d",12),A.NdJ("select",function(z){return A.CHM(t),A.oxw().onChartBarSelected(z)})("mouseup",function(z){return A.CHM(t),A.oxw().onChartMouseUp(z)}),A.YNc(1,Yg,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 Sg(r,y){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 Ng=(()=>{class r{constructor(t,s,z){this.logger=t,this.commonService=s,this.store=z,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(g.PP).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.gc))).subscribe(([t,s])=>{this.payments=t.payments,this.invoices=s.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,s){const z=Math.round(t.getTime()/1e3),dA=Math.round(s.getTime()/1e3),st=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const Ae=this.payments.filter(Qe=>"complete"===Qe.status&&Qe.created_at>=z&&Qe.created_at"paid"===Qe.status&&Qe.paid_at>=z&&Qe.paid_at{const tn=new Date(1e3*Qe.created_at).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,st[tn].series[0].value=st[tn].series[0].value+Qe.msatoshi_sent/1e3,st[tn].series[0].extra.total=st[tn].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const tn=new Date(1e3*+Qe.paid_at).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,st[tn].series[1].value=st[tn].series[1].value+Qe.msatoshi_received/1e3,st[tn].series[1].extra.total=st[tn].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let Qe=0;Qe{const tn=Math.floor((+Qe.created_at-z)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,st[tn].series[0].value=st[tn].series[0].value+Qe.msatoshi_sent/1e3,st[tn].series[0].extra.total=st[tn].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const tn=Math.floor((+Qe.paid_at-z)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,st[tn].series[1].value=st[tn].series[1].value+Qe.msatoshi_received/1e3,st[tn].series[1].extra.total=st[tn].series[1].extra.total+1,this.transactionsReportSummary})}return st}prepareTableData(){return this.transactionsReportData.reduce((t,s)=>s.series[0].extra.total>0||s.series[1].extra.total>0?t.concat({date:s.date,amount_paid:s.series[0].value,num_payments:s.series[0].extra.total,amount_received:s.series[1].value,num_invoices:s.series[1].extra.total}):t,[])}onSelectionChange(t){const s=t.selDate.getMonth(),z=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(z,0,1,0,0,0),this.endDate=new Date(z,11,31,23,59,59)):(this.startDate=new Date(z,s,1,0,0,0),this.endDate=new Date(z,s,this.getMonthDays(s,z),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,s){return 1===t&&s%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(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(dA){return s.onChartMouseUp(dA)})},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,s){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(dA){return s.onSelectionChange(dA)}),A.qZA(),A.TgZ(2,"div",2),A.YNc(3,xg,3,3,"div",3),A.YNc(4,Fg,2,0,"div",4),A.TgZ(5,"div",5),A.YNc(6,Tg,3,13,"ngx-charts-bar-vertical-2d",6),A.qZA(),A.TgZ(7,"div",5),A.YNc(8,Sg,1,3,"rtl-transactions-report-table",7),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(1),A.Q6J("ngIf",s.transactionsNonZeroReportData.length<=0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0))},directives:[wt.xw,wt.Wh,wt.yH,Ol.D,ht.O5,kl.H5,vg.g],pipes:[ht.JJ],styles:[""],data:{animation:[Jl.J]}}),r})();var ze=Nt(1643),Ug=Nt(9442);function Pg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().activeLink=dA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Rg=(()=>{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(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,qA.h)(s=>s instanceof qt.Av)).subscribe({next:s=>{const z=this.links.find(dA=>s.urlAfterRedirects.includes(dA.link));this.activeLink=z?z.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(qt.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,s){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,Pg,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",s.faSearch),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[wt.xw,wt.Wh,f.BN,w.a8,w.dn,JA.BU,ht.sg,JA.Nj,qt.rH,wt.yH,qt.lC],styles:[""]}),r})();var zg=Nt(4641),Lg=Nt(8493);function bg(r,y){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 Gg(r,y){if(1&r&&(A.TgZ(0,"div",21),A._UZ(1,"fa-icon",22),A.YNc(2,bg,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 Hg=(()=>{class r{constructor(t,s,z,dA,st,Ae){this.dialogRef=t,this.data=s,this.store=z,this.decimalPipe=dA,this.commonService=st,this.actions=Ae,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.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,qA.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,mt.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.fiatConversion&&this.offerValue>99&&(this.offerValueHint="",this.commonService.convertCurrency(this.offerValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.offerValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},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(ht.JJ),A.Y36(e.v),A.Y36(C.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,s){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(dA){return s.description=dA}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(dA){return s.offerValue=dA})("keyup",function(){return s.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(dA){return s.vendor=dA}),A.qZA()()(),A.YNc(22,Gg,3,2,"div",17),A.TgZ(23,"div",18)(24,"button",19),A.NdJ("click",function(){return s.resetData()}),A._uU(25,"Clear Field"),A.qZA(),A.TgZ(26,"button",20),A.NdJ("click",function(){return s.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",s.description),A.xp6(3),A.Q6J("ngModel",s.offerValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.offerValueHint),A.xp6(2),A.Q6J("ngModel",s.vendor),A.xp6(1),A.Q6J("ngIf",""!==s.offerError))},directives:[wt.xw,wt.yH,w.dk,wt.Wh,Q.lW,dt.ZT,w.dn,OA._Y,OA.JL,OA.F,Z.KE,H.Nt,OA.Fj,k.h,OA.JJ,OA.On,OA.wV,OA.qQ,b.q,Z.R9,Z.bx,ht.O5,f.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var jl=Nt(1462);function Jg(r,y){1&r&&A._UZ(0,"mat-progress-bar",28)}function Og(r,y){1&r&&(A.TgZ(0,"th",29),A._uU(1," Offer ID "),A.qZA())}const Kl=function(r){return{"mr-0":r}};function kg(r,y){if(1&r&&A._UZ(0,"span",35),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Kl,t.screenSize===t.screenSizeEnum.XS))}}function jg(r,y){if(1&r&&A._UZ(0,"span",36),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Kl,t.screenSize===t.screenSizeEnum.XS))}}const Kg=function(r){return{"max-width":r}};function Vg(r,y){if(1&r&&(A.TgZ(0,"td",30)(1,"div",31)(2,"span",32),A.YNc(3,kg,1,3,"span",33),A.YNc(4,jg,1,3,"span",34),A._uU(5),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,Kg,s.screenSize===s.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 Wg(r,y){1&r&&(A.TgZ(0,"th",29),A._uU(1," Single Use "),A.qZA())}function Zg(r,y){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t.single_use?"Yes":"No")}}function Xg(r,y){1&r&&(A.TgZ(0,"th",29),A._uU(1," Used "),A.qZA())}function qg(r,y){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",t.used?"Yes":"No"," ")}}function _g(r,y){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 $g(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const z=A.oxw().$implicit;return A.oxw().onDisableOffer(z)}),A._uU(1,"Disable Offer"),A.qZA()}}function AB(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const z=A.oxw().$implicit;return A.oxw().onPrintOffer(z)}),A._uU(1,"Export QR code"),A.qZA()}}const tB=function(r){return{"px-3":r}};function eB(r,y){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 dA=A.CHM(t).$implicit;return A.oxw().onOfferClick(dA)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,$g,2,0,"mat-option",44),A.YNc(7,AB,2,0,"mat-option",44),A.qZA()()()}if(2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngClass",A.VKq(3,tB,s.screenSize!==s.screenSizeEnum.XS)),A.xp6(6),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",t.active)}}function nB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer available."),A.qZA())}function rB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offers..."),A.qZA())}function iB(r,y){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 aB(r,y){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,nB,2,0,"p",46),A.YNc(2,rB,2,0,"p",46),A.YNc(3,iB,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 oB=function(r){return{"display-none":r}};function sB(r,y){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,oB,(null==t.offers?null:t.offers.data)&&(null==t.offers||null==t.offers.data?null:t.offers.data.length)>0))}}function lB(r,y){1&r&&A._UZ(0,"tr",48)}function cB(r,y){1&r&&A._UZ(0,"tr",49)}const gB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},BB=function(){return["no_offer"]};let uB=(()=>{class r{constructor(t,s,z,dA,st,Ae,un){this.logger=t,this.store=s,this.commonService=z,this.rtlEffects=dA,this.dataService=st,this.decimalPipe=Ae,this.datePipe=un,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(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(g.Y_).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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:Hg}}}))}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:jl.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(s=>{s&&this.store.dispatch((0,mt.i9)({payload:{offer_id:t.offer_id}}))})}onPrintOffer(t){this.dataService.decodePayment(t.bolt12,!1).pipe((0,PA.q)(1)).subscribe(s=>{s.offer_id&&!s.amount_msat?(s.amount_msat="0msat",s.amount=0):s.amount=+(s.amount||s.amount_msat.slice(0,-4));const z={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:s.vendor||s.issuer||"",alignment:"center",fontSize:25,color:"#272727",margin:[0,20,0,0]},content:[{svg:'',width:249,height:40,alignment:"center"},{text:s.description?s.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==s?void 0:s.amount_msat)&&0!==(null==s?void 0:s.amount)?this.decimalPipe.transform(s.amount/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"}};zg.createPdf(z,null,null,Lg.I.vfs).download("Offer-"+(s&&s.description?s.description:t.bolt12))})}applyFilter(){this.offers.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offers=new FA.by(t?[...t]:[]),this.offers.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null,this.offers.sort=this.sort,this.offers.filterPredicate=(s,z)=>(("active"===z||"inactive"===z||"used"===z||"unused"===z||"single"===z||"multiple"===z)&&(z=" "+z),((s.active?" active":" inactive")+(s.used?" used":" unused")+(s.single_use?" single":" multiple")+JSON.stringify(s).toLowerCase()).includes(z)),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(e.v),A.Y36(DA.V),A.Y36(zA.D),A.Y36(ht.JJ),A.Y36(ht.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offers-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},features:[A._Bn([{provide:at.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,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return s.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 s.applyFilter()})("ngModelChange",function(dA){return s.selFilter=dA}),A.qZA()()(),A.TgZ(12,"div",10),A.YNc(13,Jg,1,0,"mat-progress-bar",11),A.TgZ(14,"table",12,13),A.ynx(16,14),A.YNc(17,Og,2,0,"th",15),A.YNc(18,Vg,6,6,"td",16),A.BQk(),A.ynx(19,17),A.YNc(20,Wg,2,0,"th",15),A.YNc(21,Zg,2,1,"td",16),A.BQk(),A.ynx(22,18),A.YNc(23,Xg,2,0,"th",15),A.YNc(24,qg,2,1,"td",16),A.BQk(),A.ynx(25,19),A.YNc(26,_g,6,0,"th",20),A.YNc(27,eB,8,5,"td",21),A.BQk(),A.ynx(28,22),A.YNc(29,aB,4,3,"td",23),A.BQk(),A.YNc(30,sB,1,3,"tr",24),A.YNc(31,lB,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",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offers)("ngClass",A.VKq(12,gB,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,BB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[wt.xw,wt.yH,wt.Wh,Q.lW,f.BN,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,ht.O5,Y.pW,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,ht.PC,m.Zl,aA.gM,CA.gD,CA.$L,wA.ey,FA.mD,FA.yh,FA.Ke,FA.Q2,FA.as,FA.XQ,FA.nj,FA.Gk,at.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 fB(r,y){1&r&&A._UZ(0,"mat-progress-bar",30)}function hB(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Updated At "),A.qZA())}function EB(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,t.lastUpdatedAt,"dd/MMM/y HH:mm"))}}function wB(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Title "),A.qZA())}const Vl=function(r){return{"max-width":r}};function CB(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Vl,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.title)}}function QB(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1," Amount (Sats) "),A.qZA())}function dB(r,y){if(1&r&&(A.TgZ(0,"td",36)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(0===t.amountmSat?"Open":A.lcZ(3,1,t.amountmSat/1e3))}}function MB(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Description "),A.qZA())}function pB(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Vl,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.description)}}function IB(r,y){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 mB=function(r){return{"px-3":r}};function vB(r,y){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 dA=A.CHM(t).$implicit;return A.oxw().onOfferBookmarkClick(dA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",41),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().onRePayOffer(dA)}),A._uU(7,"Pay Again"),A.qZA(),A.TgZ(8,"mat-option",41),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().onDeleteBookmark(dA)}),A._uU(9,"Delete Bookmark"),A.qZA()()()()}if(2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,mB,t.screenSize!==t.screenSizeEnum.XS))}}function DB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer bookmarked."),A.qZA())}function yB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offer bookmarks..."),A.qZA())}function xB(r,y){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 FB(r,y){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,DB,2,0,"p",46),A.YNc(2,yB,2,0,"p",46),A.YNc(3,xB,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 YB=function(r){return{"display-none":r}};function TB(r,y){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,YB,(null==t.offersBookmarks?null:t.offersBookmarks.data)&&(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)>0))}}function SB(r,y){1&r&&A._UZ(0,"tr",48)}function NB(r,y){1&r&&A._UZ(0,"tr",49)}const UB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},PB=function(){return["no_offer"]};let RB=(()=>{class r{constructor(t,s,z,dA){this.logger=t,this.store=s,this.commonService=z,this.rtlEffects=dA,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(g.EQ).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="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:jl.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(s=>{s&&this.store.dispatch((0,mt._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:xn}}}))}applyFilter(){this.offersBookmarks.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offersBookmarks=new FA.by(t?[...t]:[]),this.offersBookmarks.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null,this.offersBookmarks.sort=this.sort,this.offersBookmarks.filterPredicate=(s,z)=>JSON.stringify(s).toLowerCase().includes(z),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(e.v),A.Y36(DA.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offer-bookmarks-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},features:[A._Bn([{provide:at.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,s){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 s.applyFilter()})("ngModelChange",function(dA){return s.selFilter=dA}),A.qZA()()(),A.TgZ(10,"div",9),A.YNc(11,fB,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,hB,2,0,"th",14),A.YNc(16,EB,3,4,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,wB,2,0,"th",14),A.YNc(19,CB,4,4,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,QB,2,0,"th",18),A.YNc(22,dB,4,3,"td",19),A.BQk(),A.ynx(23,20),A.YNc(24,MB,2,0,"th",14),A.YNc(25,pB,4,4,"td",15),A.BQk(),A.ynx(26,21),A.YNc(27,IB,6,0,"th",22),A.YNc(28,vB,10,3,"td",23),A.BQk(),A.ynx(29,24),A.YNc(30,FB,4,3,"td",25),A.BQk(),A.YNc(31,TB,1,3,"tr",26),A.YNc(32,SB,1,0,"tr",27),A.YNc(33,NB,1,0,"tr",28),A.qZA()(),A._UZ(34,"mat-paginator",29),A.qZA()()),2&t&&(A.xp6(5),A.Q6J("icon",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offersBookmarks)("ngClass",A.VKq(12,UB,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(14,PB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[wt.xw,wt.yH,wt.Wh,f.BN,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,ht.O5,Y.pW,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,ht.PC,m.Zl,CA.gD,CA.$L,wA.ey,FA.mD,FA.yh,FA.Ke,FA.Q2,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.uU,ht.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 zB(r,y){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 LB(r,y){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("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(z){return A.CHM(t),A.oxw().selFilter=z}),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function bB(r,y){1&r&&A._UZ(0,"mat-progress-bar",31)}function GB(r,y){1&r&&(A.TgZ(0,"th",32),A._uU(1,"Received Time"),A.qZA())}function HB(r,y){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function JB(r,y){1&r&&(A.TgZ(0,"th",32),A._uU(1,"In Channel"),A.qZA())}function OB(r,y){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function kB(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Amount In (Sats)"),A.qZA())}function jB(r,y){if(1&r&&(A.TgZ(0,"td",33)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$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 KB(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fail Reason"),A.qZA())}function VB(r,y){if(1&r&&(A.TgZ(0,"td",37),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Oqu(s.CLNFailReason[null==t?null:t.failreason])}}function WB(r,y){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 ZB(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"button",43),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw(2).onFailedLocalEventClick(dA)}),A._uU(2,"View Info"),A.qZA()()}}function XB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function qB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function _B(r,y){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 $B(r,y){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,XB,2,0,"p",45),A.YNc(2,qB,2,0,"p",45),A.YNc(3,_B,2,1,"p",45),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 Au=function(r){return{"display-none":r}};function tu(r,y){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Au,(null==t.failedLocalForwardingEvents?null:t.failedLocalForwardingEvents.data)&&(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)>0))}}function eu(r,y){1&r&&A._UZ(0,"tr",47)}function nu(r,y){1&r&&A._UZ(0,"tr",48)}const ru=function(){return["no_event"]};function iu(r,y){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,bB,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,GB,2,0,"th",15),A.YNc(6,HB,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,JB,2,0,"th",15),A.YNc(9,OB,2,1,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,kB,2,0,"th",19),A.YNc(12,jB,4,4,"td",16),A.BQk(),A.ynx(13,20),A.YNc(14,KB,2,0,"th",21),A.YNc(15,VB,2,1,"td",22),A.BQk(),A.ynx(16,23),A.YNc(17,WB,6,0,"th",24),A.YNc(18,ZB,3,0,"td",25),A.BQk(),A.ynx(19,26),A.YNc(20,$B,4,3,"td",27),A.BQk(),A.YNc(21,tu,1,3,"tr",28),A.YNc(22,eu,1,0,"tr",29),A.YNc(23,nu,1,0,"tr",30),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,ru)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function au(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",49),A.NdJ("page",function(z){return A.CHM(t),A.oxw().onPageChange(z)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalLocalFailedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let ou=(()=>{class r{constructor(t,s,z,dA,st){this.logger=t,this.commonService=s,this.store=z,this.datePipe=dA,this.router=st,this.CLNFailReason=a.p7,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.indexOffset=0,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,mt.u0)({payload:{status:a.OO.LOCAL_FAILED}})),this.store.select(g.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.slice(0,this.pageSize)),this.logger.info(t)})}ngAfterViewInit(){this.failedLocalEvents.length>0&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(0,this.pageSize))}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 FA.by([...t]),this.failedLocalForwardingEvents.filterPredicate=(s,z)=>{var dA;const st=(s.received_time?null===(dA=this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm"))||void 0===dA?void 0:dA.toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.failreason&&this.CLNFailReason[s.failreason]?this.CLNFailReason[s.failreason].toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"");return(null==st?void 0:st.includes(z))||!1},this.failedLocalForwardingEvents.sort=this.sort,this.failedLocalForwardingEvents.sortingDataAccessor=(s,z)=>"failreason"===z?s.failreason?this.CLNFailReason[s.failreason]:"":s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]:null,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()}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(this.indexOffset,this.indexOffset+this.pageSize))}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(e.v),A.Y36(u.yh),A.Y36(ht.uU),A.Y36(qt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-local-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},features:[A._Bn([{provide:at.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","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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",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","","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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,zB,2,1,"div",1),A.YNc(2,LB,4,1,"div",2),A.YNc(3,iu,24,7,"div",3),A.YNc(4,au,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[wt.xw,wt.Wh,ht.O5,wt.yH,Z.KE,H.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,FA.BZ,et.YE,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,CA.gD,CA.$L,wA.ey,Q.lW,FA.mD,FA.yh,FA.Ke,FA.Q2,ht.mk,m.oO,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.uU,ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const su=["form"];function lu(r,y){1&r&&A.GkF(0)}function cu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Requested amount is required."),A.qZA())}function gu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee rate is required."),A.qZA())}function Bu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount is required."),A.qZA())}function uu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount must be greater than or equal to 20000. This estimate covers force close fee for the provider."),A.qZA())}function fu(r,y){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 hu(r,y){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 Eu(r,y){if(1&r&&(A.TgZ(0,"div",26),A._UZ(1,"fa-icon",27),A.YNc(2,hu,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 wu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Type"),A.qZA())}function Cu(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Qu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Address"),A.qZA())}function du(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function Mu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Port"),A.qZA())}function pu(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function Iu(r,y){1&r&&A._UZ(0,"tr",49)}function mu(r,y){1&r&&A._UZ(0,"tr",50)}function vu(r,y){if(1&r&&(A.TgZ(0,"mat-expansion-panel",29)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),A._uU(4,"Node: \xa0"),A.qZA(),A.TgZ(5,"strong",30),A._uU(6),A.qZA()()(),A.TgZ(7,"div",7)(8,"div",0)(9,"div",1)(10,"h4",31),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",32),A._uU(13),A.qZA()()(),A._UZ(14,"mat-divider",33),A.TgZ(15,"div",0)(16,"div",1)(17,"h4",31),A._uU(18,"Last Timestamp"),A.qZA(),A.TgZ(19,"span",34),A._uU(20),A.ALo(21,"date"),A.qZA()()(),A._UZ(22,"mat-divider",33),A.TgZ(23,"div",35)(24,"h4",36),A._uU(25,"Addresses"),A.qZA(),A.TgZ(26,"div",37)(27,"table",38,39),A.ynx(29,40),A.YNc(30,wu,2,0,"th",41),A.YNc(31,Cu,2,1,"td",42),A.BQk(),A.ynx(32,43),A.YNc(33,Qu,2,0,"th",41),A.YNc(34,du,2,1,"td",42),A.BQk(),A.ynx(35,44),A.YNc(36,Mu,2,0,"th",41),A.YNc(37,pu,2,1,"td",42),A.BQk(),A.YNc(38,Iu,1,0,"tr",45),A.YNc(39,mu,1,0,"tr",46),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 Du(r,y){if(1&r&&A.YNc(0,vu,40,9,"mat-expansion-panel",28),2&r){const t=A.oxw();A.Q6J("ngIf",t.node)}}let yu=(()=>{class r{constructor(t,s,z,dA){this.dialogRef=t,this.data=s,this.actions=z,this.store=dA,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,s,z,dA,st;this.alertTitle=this.data.alertTitle||"",this.totalBalance=(null===(t=this.data.message)||void 0===t?void 0:t.balance)||0,this.node=(null===(s=this.data.message)||void 0===s?void 0:s.node)||{},this.requestedAmount=(null===(z=this.data.message)||void 0===z?void 0:z.requestedAmount)||0,this.feeRate=(null===(dA=this.data.message)||void 0===dA?void 0:dA.feeRate)||0,this.localAmount=(null===(st=this.data.message)||void 0===st?void 0:st.localAmount)||0,this.actions.pipe((0,i.R)(this.unSubs[0]),(0,qA.h)(Ae=>Ae.type===a.AB.UPDATE_API_CALL_STATUS_CLN||Ae.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(Ae=>{Ae.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&Ae.payload.status===a.Bn.ERROR&&"SaveNewChannel"===Ae.payload.action&&(this.channelConnectionError=Ae.payload.message),Ae.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()})}onClose(){this.dialogRef.close(!1)}resetData(){var t,s,z;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===(s=this.data.message)||void 0===s?void 0:s.feeRate),this.form.controls.lamount.setValue(null===(z=this.data.message)||void 0===z?void 0:z.localAmount),this.calculateFee(),this.channelConnectionError=""}calculateFee(){var t,s,z;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===(s=this.node.option_will_fund)||void 0===s?void 0:s.lease_fee_basis)||0)/1e4+ +((null===(z=this.node.option_will_fund)||void 0===z?void 0:z.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};this.store.dispatch((0,mt.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(C.eX),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-liquidity-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(su,7),2&t){let z;A.iGM(z=A.CRH())&&(s.form=z.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",""],[4,"ngIf"],["matInput","","placeholder","Fee Rate","type","number","tabindex","2","required","","name","feerate",3,"ngModel","step","min","ngModelChange","keyup"],["feeRt","ngModel"],["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,s){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 s.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.YNc(11,lu,1,0,"ng-container",9),A.TgZ(12,"div",10)(13,"mat-form-field",11)(14,"input",12,13),A.NdJ("ngModelChange",function(dA){return s.requestedAmount=dA})("keyup",function(){return s.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(dA){return s.feeRate=dA})("keyup",function(){return s.calculateFee()}),A.qZA(),A.TgZ(22,"span",14),A._uU(23," Sats/vByte "),A.qZA(),A.YNc(24,gu,2,0,"mat-error",15),A.qZA(),A.TgZ(25,"mat-form-field",11)(26,"input",18,19),A.NdJ("ngModelChange",function(dA){return s.localAmount=dA}),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,Bu,2,0,"mat-error",15),A.YNc(34,uu,2,0,"mat-error",15),A.YNc(35,fu,2,1,"mat-error",15),A.qZA()(),A.TgZ(36,"div",20)(37,"span"),A._uU(38),A.ALo(39,"number"),A.qZA()(),A.YNc(40,Eu,3,2,"div",21),A.TgZ(41,"div",22)(42,"button",23),A.NdJ("click",function(){return s.resetData()}),A._uU(43,"Clear"),A.qZA(),A.TgZ(44,"button",24),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(45,"Execute"),A.qZA()()()()()(),A.YNc(46,Du,1,1,"ng-template",null,25,A.W1O)),2&t){const z=A.MAs(15),dA=A.MAs(21),st=A.MAs(27),Ae=A.MAs(47);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(6),A.Q6J("ngTemplateOutlet",Ae),A.xp6(3),A.Q6J("ngModel",s.requestedAmount)("step",1e4)("min",0),A.xp6(4),A.Q6J("ngIf",null==z.errors?null:z.errors.required),A.xp6(2),A.Q6J("ngModel",s.feeRate)("step",10)("min",0),A.xp6(4),A.Q6J("ngIf",null==dA.errors?null:dA.errors.required),A.xp6(2),A.Q6J("ngModel",s.localAmount)("step",1e4)("min",2e4)("max",s.totalBalance),A.xp6(3),A.hij("Remaining Bal: ",A.lcZ(30,20,s.totalBalance-(s.localAmount?s.localAmount:0)),""),A.xp6(4),A.Q6J("ngIf",null==st.errors?null:st.errors.required),A.xp6(1),A.Q6J("ngIf",null==st.errors?null:st.errors.min),A.xp6(1),A.Q6J("ngIf",null==st.errors?null:st.errors.max),A.xp6(3),A.hij("Total cost to lease ",A.lcZ(39,22,s.node.channelOpeningFee)," (Sats)"),A.xp6(2),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[wt.xw,wt.yH,w.dk,wt.Wh,Q.lW,w.dn,OA._Y,OA.JL,OA.F,ht.tP,Z.KE,H.Nt,OA.wV,OA.qQ,OA.Fj,b.q,k.h,OA.Q7,OA.JJ,OA.On,Z.R9,ht.O5,Z.TO,OA.Fd,yi.F,Z.bx,f.BN,or.ib,or.yz,or.yK,AA.d,FA.BZ,et.YE,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,FA.as,FA.XQ,FA.nj,FA.Gk],pipes:[ht.JJ,ht.uU],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function xu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel amount is required."),A.qZA())}function Fu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel opening fee rate is required."),A.qZA())}function Yu(r,y){1&r&&A._UZ(0,"mat-progress-bar",40)}function Tu(r,y){1&r&&(A.TgZ(0,"th",41),A._uU(1," Alias "),A.qZA())}function Su(r,y){1&r&&A._UZ(0,"span",44)}const Nu=function(r){return{"max-width":r}};function Uu(r,y){if(1&r&&(A.TgZ(0,"td",42),A._uU(1),A.YNc(2,Su,1,0,"span",43),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(3,Nu,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.alias,""),A.xp6(1),A.Q6J("ngIf",t.tor_node)}}function Pu(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1," Capacity/Channels "),A.qZA())}function Ru(r,y){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.$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 zu(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1," Lease Fee "),A.qZA())}function Lu(r,y){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.$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 bu(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1," Routing Fee "),A.qZA())}function Gu(r,y){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.$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 Hu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Channel Opening Fee "),A.qZA())}function Ju(r,y){if(1&r&&(A.TgZ(0,"td",46)(1,"span",48),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,t.channelOpeningFee,"1.0-0")," Sats ")}}function Ou(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",49)(1,"div",50)(2,"mat-select",51),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",52),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function ku(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",53)(1,"div",54)(2,"mat-select",51),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",52),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().onViewLeaseInfo(dA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",52),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(dA)}),A._uU(7,"Open Channel"),A.qZA(),A.TgZ(8,"mat-option",52),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(dA,"LN")}),A._uU(9,"View on Lnrouter"),A.qZA(),A.TgZ(10,"mat-option",52),A.NdJ("click",function(){const dA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(dA,"AM")}),A._uU(11,"View on Amboss"),A.qZA()()()()}}function ju(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No node with liquidity."),A.qZA())}function Ku(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting nodes with liquidity..."),A.qZA())}function Vu(r,y){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 Wu(r,y){if(1&r&&(A.TgZ(0,"td",55),A.YNc(1,ju,2,0,"p",15),A.YNc(2,Ku,2,0,"p",15),A.YNc(3,Vu,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 Zu=function(r){return{"display-none":r}};function Xu(r,y){if(1&r&&A._UZ(0,"tr",56),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Zu,(null==t.liquidityNodes?null:t.liquidityNodes.data)&&(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)>0))}}function qu(r,y){1&r&&A._UZ(0,"tr",57)}function _u(r,y){1&r&&A._UZ(0,"tr",58)}const $u=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Af=function(){return["no_lqNode"]},nf=qt.Bz.forChild([{path:"",component:n,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Fo,canActivate:[ze.eQ]},{path:"onchain",component:fs,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:t0,canActivate:[ze.eQ]},{path:"send/:selTab",component:Wr,data:{sweepAll:!1},canActivate:[ze.eQ]},{path:"sweep/:selTab",component:Wr,data:{sweepAll:!0},canActivate:[ze.eQ]}]},{path:"connections",component:Ia,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Xr,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:qr,canActivate:[ze.eQ]},{path:"pending",component:fl,canActivate:[ze.eQ]}]},{path:"peers",component:P,data:{sweepAll:!1},canActivate:[ze.eQ]}]},{path:"liquidityads",component:(()=>{class r{constructor(t,s,z,dA,st){this.logger=t,this.store=s,this.dataService=z,this.commonService=dA,this.rtlEffects=st,this.askTooltipMsg="",this.nodesTooltipMsg="",this.displayedColumns=[],this.faBullhorn=h.Acd,this.faExclamationTriangle=h.eHv,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.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 for 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,Ba.a)([this.store.select(g.OL),this.dataService.listNetworkNodes("?liquidity_ads=yes")]).pipe((0,i.R)(this.unSubs[0])).subscribe({next:([t,s])=>{this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t),s&&!s.length&&(s=[]),this.logger.info("Received Liquidity Ads Enabled Nodes: "+JSON.stringify(s)),this.apiCallStatus.status=a.Bn.COMPLETED,this.liquidityNodesData=s.filter(z=>(z.tor_node=!!z.addresses&&z.addresses.filter(dA=>{var st;return null===(st=null==dA?void 0:dA.type)||void 0===st?void 0:st.includes("tor")}).length>0,z.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/1e3+this.channelAmount*+t.option_will_fund.lease_fee_basis/1e4+ +t.option_will_fund.funding_weight/4*this.channelOpeningFeeRate)}),this.paginator&&this.paginator.firstPage()}onFilter(){}loadLiqNodesTable(t){this.liquidityNodes=new FA.by([...t]),this.liquidityNodes.sortingDataAccessor=(s,z)=>s[z]&&isNaN(s[z])?s[z].toLocaleLowerCase():s[z]?+s[z]: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=(s,z)=>s.channelCount>=this.channelCount&&s.nodeCapacity>=this.nodeCapacity,this.onFilter()}viewLeaseOn(t,s){"LN"===s?window.open("https://lnrouter.app/node/"+t.nodeid,"_blank"):"AM"===s&&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:yu}}}))}onViewLeaseInfo(t){const s=t.addresses.reduce((dA,st)=>(st.address.length>40&&(st.address=st.address.substring(0,39)+"..."),dA.concat(JSON.stringify(st).replace("{","").replace("}","").replace(/:/g,": ").replace(/,/g,"        ").replace(/"/g,""))),[]);this.store.dispatch((0,KA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Lease Information",noBtnText:"Close",yesBtnText:"Open Channel",message:[[{key:"alias",value:t.alias,title:"Node Alias",width:50,type:a.Gi.STRING},{key:"last_timestamp",value:t.last_timestamp,title:"Last Timestamp",width:50,type:a.Gi.DATE_TIME}],[{key:"nodeid",value:t.nodeid,title:"Node ID",width:100,type:a.Gi.STRING}],[{key:"base_fee",value:t.option_will_fund.lease_fee_base_msat/1e3,title:"Lease Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"fee_basis",value:t.option_will_fund.lease_fee_basis,title:"Lease Base Basis (bps)",width:50,type:a.Gi.NUMBER}],[{key:"channel_max_base",value:t.option_will_fund.channel_fee_max_base_msat/1e3,title:"Max Channel Routing Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"channel_max_rate",value:1e3*t.option_will_fund.channel_fee_max_proportional_thousandths,title:"Max Channel Routing Fee Rate (ppm)",width:50,type:a.Gi.NUMBER}],[{key:"funding_rate",value:t.option_will_fund.funding_weight,title:"Funding Weight",width:100,type:a.Gi.NUMBER}],[{key:"address",value:s,title:"Address",width:100,type:a.Gi.ARRAY}]]}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(dA=>{dA&&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(zA.D),A.Y36(e.v),A.Y36(DA.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-liquidity-ads-list"]],viewQuery:function(t,s){if(1&t&&(A.Gf(et.YE,5),A.Gf(at.NW,5)),2&t){let z;A.iGM(z=A.CRH())&&(s.sort=z.first),A.iGM(z=A.CRH())&&(s.paginator=z.first)}},features:[A._Bn([{provide:at.ye,useValue:(0,a.pt)("Liquidity Ads")}])],decls:54,vars:20,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","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container","mt-2",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","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","",3,"ngStyle"],["matBadge","Tor Node","matBadgeOverlap","false","class","tab-badge",4,"ngIf"],["matBadge","Tor Node","matBadgeOverlap","false",1,"tab-badge"],["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,s){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 suplemented 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(dA){return s.channelAmount=dA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(22,xu,2,0,"mat-error",15),A.qZA(),A.TgZ(23,"mat-form-field",13)(24,"input",16),A.NdJ("ngModelChange",function(dA){return s.channelOpeningFeeRate=dA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(25,Fu,2,0,"mat-error",15),A.qZA()()(),A.TgZ(26,"div",17),A.YNc(27,Yu,1,0,"mat-progress-bar",18),A.TgZ(28,"table",19,20),A.ynx(30,21),A.YNc(31,Tu,2,0,"th",22),A.YNc(32,Uu,3,5,"td",23),A.BQk(),A.ynx(33,24),A.YNc(34,Pu,2,0,"th",25),A.YNc(35,Ru,4,8,"td",26),A.BQk(),A.ynx(36,27),A.YNc(37,zu,2,0,"th",25),A.YNc(38,Lu,4,8,"td",26),A.BQk(),A.ynx(39,28),A.YNc(40,bu,2,0,"th",25),A.YNc(41,Gu,4,8,"td",26),A.BQk(),A.ynx(42,29),A.YNc(43,Hu,2,0,"th",30),A.YNc(44,Ju,4,4,"td",26),A.BQk(),A.ynx(45,31),A.YNc(46,Ou,6,0,"th",32),A.YNc(47,ku,12,0,"td",33),A.BQk(),A.ynx(48,34),A.YNc(49,Wu,4,3,"td",35),A.BQk(),A.YNc(50,Xu,1,3,"tr",36),A.YNc(51,qu,1,0,"tr",37),A.YNc(52,_u,1,0,"tr",38),A.qZA()(),A._UZ(53,"mat-paginator",39),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faBullhorn),A.xp6(10),A.Q6J("icon",s.faExclamationTriangle),A.xp6(7),A.Q6J("matTooltip",s.askTooltipMsg),A.xp6(3),A.Q6J("ngModel",s.channelAmount),A.xp6(1),A.Q6J("ngIf",!s.channelAmount),A.xp6(2),A.Q6J("ngModel",s.channelOpeningFeeRate),A.xp6(1),A.Q6J("ngIf",!s.channelOpeningFeeRate),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.liquidityNodes)("ngClass",A.VKq(17,$u,""!==s.errorMessage)),A.xp6(22),A.Q6J("matFooterRowDef",A.DdM(19,Af)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[wt.xw,wt.Wh,f.BN,w.a8,w.dn,wt.yH,OA._Y,OA.JL,OA.F,S.Hw,aA.gM,Z.KE,H.Nt,OA.wV,OA.Fj,k.h,OA.Q7,OA.JJ,OA.On,ht.O5,Z.TO,lA.$V,Y.pW,FA.BZ,et.YE,ht.mk,m.oO,FA.w1,FA.fO,FA.ge,et.nU,FA.Dz,FA.ev,ht.PC,m.Zl,ui.k,CA.gD,CA.$L,wA.ey,FA.mD,FA.yh,FA.Ke,FA.Q2,FA.as,FA.XQ,FA.nj,FA.Gk,at.NW],pipes:[ht.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})(),canActivate:[ze.eQ]},{path:"transactions",component:Cs,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:aa,canActivate:[ze.eQ]},{path:"invoices",component:UA,canActivate:[ze.eQ]},{path:"offers",component:uB,canActivate:[ze.eQ]},{path:"offrBookmarks",component:RB,canActivate:[ze.eQ]}]},{path:"messages",component:Ki,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:he,canActivate:[ze.eQ]},{path:"verify",component:Hn,canActivate:[ze.eQ]}]},{path:"routing",component:ds,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:na,canActivate:[ze.eQ]},{path:"failedtransactions",component:Mc,canActivate:[ze.eQ]},{path:"localfail",component:ou,canActivate:[ze.eQ]},{path:"routingpeers",component:fg,canActivate:[ze.eQ]}]},{path:"reports",component:Eg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:mg,canActivate:[ze.eQ]},{path:"transactions",component:Ng,canActivate:[ze.eQ]}]},{path:"graph",component:Rg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:bs,canActivate:[ze.eQ]},{path:"queryroutes",component:We,canActivate:[ze.eQ]}]},{path:"rates",component:A0,canActivate:[ze.eQ]},{path:"**",component:Ug.w},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]);var rf=Nt(8750);let af=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=A.oAB({type:r,bootstrap:[n]}),r.\u0275inj=A.cJS({providers:[ze.eQ],imports:[[ht.ez,rf.m,nf]]}),r})()},4641:function(oi,Fr,Nt){var ht=Nt(7757);"undefined"!=typeof self&&self,oi.exports=function(){var qt={9282:function(Y,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,g=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),B=n(9539).inspect,w=n(9539).types,Q=w.isPromise,p=w.isRegExp,S=Object.assign?Object.assign:n(8091).assign,m=Object.is?Object.is:n(609);function R(){var $=n(9158);v=$.isDeepEqual,D=$.isDeepStrictEqual}var AA=!1,lA=Y.exports=yA,pA={};function cA($){throw $.message instanceof Error?$.message:new e($)}function BA($,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 yA(){for(var $=arguments.length,W=new Array($),hA=0;hA<$;hA++)W[hA]=arguments[hA];BA.apply(void 0,[yA,W.length].concat(W))}lA.fail=function gA($,W,hA,vA,nA){var GA,EA=arguments.length;if(0===EA?GA="Failed":1===EA?(hA=$,$=void 0):(!1===AA&&(AA=!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 lt={actual:$,expected:W,operator:void 0===vA?"fail":vA,stackStartFn:nA||gA};void 0!==hA&&(lt.message=hA);var TA=new e(lt);throw GA&&(TA.message=GA,TA.generatedMessage=!0),TA},lA.AssertionError=e,lA.ok=yA,lA.equal=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");W!=hA&&cA({actual:W,expected:hA,message:vA,operator:"==",stackStartFn:$})},lA.notEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");W==hA&&cA({actual:W,expected:hA,message:vA,operator:"!=",stackStartFn:$})},lA.deepEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&R(),v(W,hA)||cA({actual:W,expected:hA,message:vA,operator:"deepEqual",stackStartFn:$})},lA.notDeepEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&R(),v(W,hA)&&cA({actual:W,expected:hA,message:vA,operator:"notDeepEqual",stackStartFn:$})},lA.deepStrictEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&R(),D(W,hA)||cA({actual:W,expected:hA,message:vA,operator:"deepStrictEqual",stackStartFn:$})},lA.notDeepStrictEqual=function xA($,W,hA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&R(),D($,W)&&cA({actual:$,expected:W,message:hA,operator:"notDeepStrictEqual",stackStartFn:xA})},lA.strictEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");m(W,hA)||cA({actual:W,expected:hA,message:vA,operator:"strictEqual",stackStartFn:$})},lA.notStrictEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");m(W,hA)&&cA({actual:W,expected:hA,message:vA,operator:"notStrictEqual",stackStartFn:$})};var _=function $(W,hA,vA){var nA=this;(function o($,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),nt=new _(W,nA,$),lt=new e({actual:GA,expected:nt,operator:"deepStrictEqual",stackStartFn:EA});throw lt.actual=$,lt.expected=W,lt.operator=EA.name,lt}cA({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 g("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&&R(),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 QA($){if("function"!=typeof $)throw new g("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 g("promiseFn",["Function","Promise"],$);W=$}return Promise.resolve().then(function(){return W}).then(function(){return pA}).catch(function(hA){return hA})})}function ZA($,W,hA,vA){if("string"==typeof hA){if(4===arguments.length)throw new g("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 g("error",["Object","Error","Function","RegExp"],hA);if(W===pA){var nA="";hA&&hA.name&&(nA+=" (".concat(hA.name,")")),nA+=vA?": ".concat(vA):".",cA({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 q($,W,hA,vA){if(W!==pA){if("string"==typeof hA&&(vA=hA,hA=void 0),!hA||uA(W,hA)){var nA=vA?": ".concat(vA):".";cA({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 J(){for(var $=arguments.length,W=new Array($),hA=0;hA<$;hA++)W[hA]=arguments[hA];BA.apply(void 0,[J,W.length].concat(W))}lA.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;nAgA.length)&&(yA=gA.length),gA.substring(yA-BA.length,yA)===BA}var T="",F="",R="",L="",Z={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 AA(gA){var BA=Object.keys(gA),yA=Object.create(Object.getPrototypeOf(gA));return BA.forEach(function(xA){yA[xA]=gA[xA]}),Object.defineProperty(yA,"message",{value:gA.message}),yA}function lA(gA){return m(gA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function pA(gA,BA,yA){var xA="",_="",MA=0,uA="",QA=!1,SA=lA(gA),bA=SA.split("\n"),ZA=lA(BA).split("\n"),q=0,J="";if("strictEqual"===yA&&"object"===p(gA)&&"object"===p(BA)&&null!==gA&&null!==BA&&(yA="strictEqualObject"),1===bA.length&&1===ZA.length&&bA[0]!==ZA[0]){var $=bA[0].length+ZA[0].length;if($<=10){if(!("object"===p(gA)&&null!==gA||"object"===p(BA)&&null!==BA||0===gA&&0===BA))return"".concat(Z[yA],"\n\n")+"".concat(bA[0]," !== ").concat(ZA[0],"\n")}else if("strictEqualObject"!==yA&&$<(c.stderr&&c.stderr.isTTY?c.stderr.columns:80)){for(;bA[0][q]===ZA[0][q];)q++;q>2&&(J="\n ".concat(function U(gA,BA){if(BA=Math.floor(BA),0==gA.length||0==BA)return"";var yA=gA.length*BA;for(BA=Math.floor(Math.log(BA)/Math.log(2));BA;)gA+=gA,BA--;return gA+gA.substring(0,yA-gA.length)}(" ",q),"^"),q=0)}}for(var hA=bA[bA.length-1],vA=ZA[ZA.length-1];hA===vA&&(q++<2?uA="\n ".concat(hA).concat(uA):xA=hA,bA.pop(),ZA.pop(),0!==bA.length&&0!==ZA.length);)hA=bA[bA.length-1],vA=ZA[ZA.length-1];var nA=Math.max(bA.length,ZA.length);if(0===nA){var EA=SA.split("\n");if(EA.length>30)for(EA[26]="".concat(T,"...").concat(L);EA.length>27;)EA.pop();return"".concat(Z.notIdentical,"\n\n").concat(EA.join("\n"),"\n")}q>3&&(uA="\n".concat(T,"...").concat(L).concat(uA),QA=!0),""!==xA&&(uA="\n ".concat(xA).concat(uA),xA="");var GA=0,nt=Z[yA]+"\n".concat(F,"+ actual").concat(L," ").concat(R,"- expected").concat(L),lt=" ".concat(T,"...").concat(L," Lines skipped");for(q=0;q1&&q>2&&(TA>4?(_+="\n".concat(T,"...").concat(L),QA=!0):TA>3&&(_+="\n ".concat(ZA[q-2]),GA++),_+="\n ".concat(ZA[q-1]),GA++),MA=q,xA+="\n".concat(R,"-").concat(L," ").concat(ZA[q]),GA++;else if(ZA.length1&&q>2&&(TA>4?(_+="\n".concat(T,"...").concat(L),QA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),MA=q,_+="\n".concat(F,"+").concat(L," ").concat(bA[q]),GA++;else{var it=ZA[q],vt=bA[q],It=vt!==it&&(!D(vt,",")||vt.slice(0,-1)!==it);It&&D(it,",")&&it.slice(0,-1)===vt&&(It=!1,vt+=","),It?(TA>1&&q>2&&(TA>4?(_+="\n".concat(T,"...").concat(L),QA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),MA=q,_+="\n".concat(F,"+").concat(L," ").concat(vt),xA+="\n".concat(R,"-").concat(L," ").concat(it),GA+=2):(_+=xA,xA="",(1===TA||0===q)&&(_+="\n ".concat(vt),GA++))}if(GA>20&&q30)for(q[26]="".concat(T,"...").concat(L);q.length>27;)q.pop();xA=g(this,1===q.length?Q(BA).call(this,"".concat(ZA," ").concat(q[0])):Q(BA).call(this,"".concat(ZA,"\n\n").concat(q.join("\n"),"\n")))}else{var J=lA(QA),$="",W=Z[MA];"notDeepEqual"===MA||"notEqual"===MA?(J="".concat(Z[MA],"\n\n").concat(J)).length>1024&&(J="".concat(J.slice(0,1021),"...")):($="".concat(lA(SA)),J.length>512&&(J="".concat(J.slice(0,509),"...")),$.length>512&&($="".concat($.slice(0,509),"...")),"deepEqual"===MA||"equal"===MA?J="".concat(W,"\n\n").concat(J,"\n\nshould equal\n\n"):$=" ".concat(MA," ").concat($)),xA=g(this,Q(BA).call(this,"".concat(J).concat($)))}return Error.stackTraceLimit=bA,xA.generatedMessage=!_,Object.defineProperty(E(xA),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),xA.code="ERR_ASSERTION",xA.actual=QA,xA.expected=SA,xA.operator=MA,Error.captureStackTrace&&Error.captureStackTrace(E(xA),uA),xA.name="AssertionError",g(xA)}return function u(gA,BA){if("function"!=typeof BA&&null!==BA)throw new TypeError("Super expression must either be null or a function");gA.prototype=Object.create(BA&&BA.prototype,{constructor:{value:gA,writable:!0,configurable:!0}}),BA&&w(gA,BA)}(BA,gA),function a(gA,BA,yA){return BA&&h(gA.prototype,BA),yA&&h(gA,yA),gA}(BA,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(xA,_){return m(this,function i(gA){for(var BA=1;BA2?"one of ".concat(S," ").concat(p.slice(0,m-1).join(", "),", or ")+p[m-1]:2===m?"one of ".concat(S," ").concat(p[0]," or ").concat(p[1]):"of ".concat(S," ").concat(p[0])}return"of ".concat(S," ").concat(String(p))}e("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),e("ERR_INVALID_ARG_TYPE",function(p,S,m){var d,v;if(void 0===u&&(u=n(9282)),u("string"==typeof p,"'name' must be a string"),"string"==typeof S&&function B(p,S,m){return p.substr(!m||m<0?0:+m,S.length)===S}(S,"not ")?(d="must not be",S=S.replace(/^not /,"")):d="must be",function w(p,S,m){return(void 0===m||m>p.length)&&(m=p.length),p.substring(m-S.length,m)===S}(p," argument"))v="The ".concat(p," ").concat(d," ").concat(f(S,"type"));else{var D=function Q(p,S,m){return"number"!=typeof m&&(m=0),!(m+S.length>p.length)&&-1!==p.indexOf(S,m)}(p,".")?"property":"argument";v='The "'.concat(p,'" ').concat(D," ").concat(d," ").concat(f(S,"type"))}return v+". Received type ".concat(c(m))},TypeError),e("ERR_INVALID_ARG_VALUE",function(p,S){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===C&&(C=n(9539));var d=C.inspect(S);return d.length>128&&(d="".concat(d.slice(0,128),"...")),"The argument '".concat(p,"' ").concat(m,". Received ").concat(d)},TypeError,RangeError),e("ERR_INVALID_RETURN_VALUE",function(p,S,m){var d;return d=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(c(m)),"Expected ".concat(p,' to be returned from the "').concat(S,'"')+" function but got ".concat(d,".")},TypeError),e("ERR_MISSING_ARGS",function(){for(var p=arguments.length,S=new Array(p),m=0;m0,"At least one arg needs to be specified");var d="The ",v=S.length;switch(S=S.map(function(D){return'"'.concat(D,'"')}),v){case 1:d+="".concat(S[0]," argument");break;case 2:d+="".concat(S[0]," and ").concat(S[1]," arguments");break;default:d+=S.slice(0,v-1).join(", "),d+=", and ".concat(S[v-1]," arguments")}return"".concat(d," must be specified")},TypeError),Y.exports.codes=E},9158:function(Y,I,n){"use strict";function c(JA,qA){return function l(JA){if(Array.isArray(JA))return JA}(JA)||function o(JA,qA){var at=[],et=!0,FA=!1,dt=void 0;try{for(var OA,mt=JA[Symbol.iterator]();!(et=(OA=mt.next()).done)&&(at.push(OA.value),!qA||at.length!==qA);et=!0);}catch(H){FA=!0,dt=H}finally{try{!et&&null!=mt.return&&mt.return()}finally{if(FA)throw dt}}return at}(JA,qA)||function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(JA){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(JA)}var a=void 0!==/a/g.flags,g=function(qA){var at=[];return qA.forEach(function(et){return at.push(et)}),at},E=function(qA){var at=[];return qA.forEach(function(et,FA){return at.push([FA,et])}),at},u=Object.is?Object.is:n(609),C=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},e=Number.isNaN?Number.isNaN:n(360);function f(JA){return JA.call.bind(JA)}var B=f(Object.prototype.hasOwnProperty),w=f(Object.prototype.propertyIsEnumerable),Q=f(Object.prototype.toString),p=n(9539).types,S=p.isAnyArrayBuffer,m=p.isArrayBufferView,d=p.isDate,v=p.isMap,D=p.isRegExp,U=p.isSet,T=p.isNativeError,F=p.isBoxedPrimitive,R=p.isNumberObject,L=p.isStringObject,Z=p.isBooleanObject,aA=p.isBigIntObject,AA=p.isSymbolObject,lA=p.isFloat32Array,pA=p.isFloat64Array;function cA(JA){if(0===JA.length||JA.length>10)return!0;for(var qA=0;qA57)return!0}return 10===JA.length&&JA>=Math.pow(2,32)}function gA(JA){return Object.keys(JA).filter(cA).concat(C(JA).filter(Object.prototype.propertyIsEnumerable.bind(JA)))}function BA(JA,qA){if(JA===qA)return 0;for(var at=JA.length,et=qA.length,FA=0,dt=Math.min(at,et);FA=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 o(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"),S=0,m=p.length-1;S>>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 B(H,k,b)}function B(H,k,b){if("string"==typeof H)return function S(H,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!f.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var b=0|F(H,k),CA=e(b),wA=CA.write(H,k);return wA!==b&&(CA=CA.slice(0,wA)),CA}(H,k);if(ArrayBuffer.isView(H))return function d(H){if(et(H,Uint8Array)){var k=new Uint8Array(H);return v(k.buffer,k.byteOffset,k.byteLength)}return m(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(et(H,ArrayBuffer)||H&&et(H.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(et(H,SharedArrayBuffer)||H&&et(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 CA=H.valueOf&&H.valueOf();if(null!=CA&&CA!==H)return f.from(CA,k,b);var wA=function D(H){if(f.isBuffer(H)){var k=0|U(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||FA(H.length)?e(0):m(H):"Buffer"===H.type&&Array.isArray(H.data)?m(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|U(H))}function m(H){for(var k=H.length<0?0:0|U(H.length),b=e(k),CA=0;CA=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)||et(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,CA=arguments.length>2&&!0===arguments[2];if(!CA&&0===b)return 0;for(var wA=!1;;)switch(k){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return It(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*b;case"hex":return b>>>1;case"base64":return qA(H).length;default:if(wA)return CA?-1:It(H).length;k=(""+k).toLowerCase(),wA=!0}}function R(H,k,b){var CA=!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 QA(this,k,b);case"utf8":case"utf-8":return yA(this,k,b);case"ascii":return MA(this,k,b);case"latin1":case"binary":return uA(this,k,b);case"base64":return BA(this,k,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return SA(this,k,b);default:if(CA)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),CA=!0}}function L(H,k,b){var CA=H[k];H[k]=H[b],H[b]=CA}function Z(H,k,b,CA,wA){if(0===H.length)return-1;if("string"==typeof b?(CA=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),FA(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,CA)),f.isBuffer(k))return 0===k.length?-1:aA(H,k,b,CA,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):aA(H,[k],b,CA,wA);throw new TypeError("val must be string, number or Buffer")}function aA(H,k,b,CA,wA){var j,RA=1,rA=H.length,Bt=k.length;if(void 0!==CA&&("ucs2"===(CA=String(CA).toLowerCase())||"ucs-2"===CA||"utf16le"===CA||"utf-16le"===CA)){if(H.length<2||k.length<2)return-1;RA=2,rA/=2,Bt/=2,b/=2}function Yt(jA,ct){return 1===RA?jA[ct]:jA.readUInt16BE(ct*RA)}if(wA){var XA=-1;for(j=b;jrA&&(b=rA-Bt),j=b;j>=0;j--){for(var KA=!0,DA=0;DAwA&&(CA=wA):CA=wA;var rA,RA=k.length;for(CA>RA/2&&(CA=RA/2),rA=0;rA>8,RA.push(b%256),RA.push(CA);return RA}(k,H.length-b),H,b,CA)}function BA(H,k,b){return a.fromByteArray(0===k&&b===H.length?H:H.slice(k,b))}function yA(H,k,b){b=Math.min(H.length,b);for(var CA=[],wA=k;wA239?4:RA>223?3:RA>191?2:1;if(wA+Bt<=b){var Yt=void 0,j=void 0,XA=void 0,KA=void 0;switch(Bt){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],XA=H[wA+3],128==(192&(Yt=H[wA+1]))&&128==(192&j)&&128==(192&XA)&&(KA=(15&RA)<<18|(63&Yt)<<12|(63&j)<<6|63&XA)>65535&&KA<1114112&&(rA=KA)}}null===rA?(rA=65533,Bt=1):rA>65535&&(CA.push((rA-=65536)>>>10&1023|55296),rA=56320|1023&rA),CA.push(rA),wA+=Bt}return function _(H){var k=H.length;if(k<=4096)return String.fromCharCode.apply(String,H);for(var b="",CA=0;CAwA.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,CA,wA,RA){if(et(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===CA&&(CA=k?k.length:0),void 0===wA&&(wA=0),void 0===RA&&(RA=this.length),b<0||CA>k.length||wA<0||RA>this.length)throw new RangeError("out of range index");if(wA>=RA&&b>=CA)return 0;if(wA>=RA)return-1;if(b>=CA)return 1;if(this===k)return 0;for(var rA=(RA>>>=0)-(wA>>>=0),Bt=(CA>>>=0)-(b>>>=0),Yt=Math.min(rA,Bt),j=this.slice(wA,RA),XA=k.slice(b,CA),KA=0;KA>>=0,isFinite(CA)?(CA>>>=0,void 0===wA&&(wA="utf8")):(wA=CA,CA=void 0)}var RA=this.length-b;if((void 0===CA||CA>RA)&&(CA=RA),k.length>0&&(CA<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 AA(this,k,b,CA);case"utf8":case"utf-8":return lA(this,k,b,CA);case"ascii":case"latin1":case"binary":return pA(this,k,b,CA);case"base64":return cA(this,k,b,CA);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gA(this,k,b,CA);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 CA="";b=Math.min(H.length,b);for(var wA=k;wACA)&&(b=CA);for(var wA="",RA=k;RAb)throw new RangeError("Trying to access beyond buffer length")}function ZA(H,k,b,CA,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 q(H,k,b,CA,wA){nt(k,CA,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 J(H,k,b,CA,wA){nt(k,CA,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,CA,wA,RA){if(b+CA>H.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function W(H,k,b,CA,wA){return k=+k,b>>>=0,wA||$(H,0,b,4),g.write(H,k,b,CA,23,4),b+4}function hA(H,k,b,CA,wA){return k=+k,b>>>=0,wA||$(H,0,b,8),g.write(H,k,b,CA,52,8),b+8}f.prototype.slice=function(k,b){var CA=this.length;(k=~~k)<0?(k+=CA)<0&&(k=0):k>CA&&(k=CA),(b=void 0===b?CA:~~b)<0?(b+=CA)<0&&(b=0):b>CA&&(b=CA),b>>=0,b>>>=0,CA||bA(k,b,this.length);for(var wA=this[k],RA=1,rA=0;++rA>>=0,b>>>=0,CA||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=mt(function(k){lt(k>>>=0,"offset");var b=this[k],CA=this[k+7];(void 0===b||void 0===CA)&&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)+CA*Math.pow(2,24);return BigInt(wA)+(BigInt(RA)<>>=0,"offset");var b=this[k],CA=this[k+7];(void 0===b||void 0===CA)&&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)+CA;return(BigInt(wA)<>>=0,b>>>=0,CA||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,CA){k>>>=0,b>>>=0,CA||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 CA=this[k]|this[k+1]<<8;return 32768&CA?4294901760|CA:CA},f.prototype.readInt16BE=function(k,b){k>>>=0,b||bA(k,2,this.length);var CA=this[k+1]|this[k]<<8;return 32768&CA?4294901760|CA:CA},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=mt(function(k){lt(k>>>=0,"offset");var b=this[k],CA=this[k+7];(void 0===b||void 0===CA)&&TA(k,this.length-8);var wA=this[k+4]+this[k+5]*Math.pow(2,8)+this[k+6]*Math.pow(2,16)+(CA<<24);return(BigInt(wA)<>>=0,"offset");var b=this[k],CA=this[k+7];(void 0===b||void 0===CA)&&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),g.read(this,k,!0,23,4)},f.prototype.readFloatBE=function(k,b){return k>>>=0,b||bA(k,4,this.length),g.read(this,k,!1,23,4)},f.prototype.readDoubleLE=function(k,b){return k>>>=0,b||bA(k,8,this.length),g.read(this,k,!0,52,8)},f.prototype.readDoubleBE=function(k,b){return k>>>=0,b||bA(k,8,this.length),g.read(this,k,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(k,b,CA,wA){k=+k,b>>>=0,CA>>>=0,wA||ZA(this,k,b,CA,Math.pow(2,8*CA)-1,0);var rA=1,Bt=0;for(this[b]=255&k;++Bt>>=0,CA>>>=0,wA||ZA(this,k,b,CA,Math.pow(2,8*CA)-1,0);var rA=CA-1,Bt=1;for(this[b+rA]=255&k;--rA>=0&&(Bt*=256);)this[b+rA]=k/Bt&255;return b+CA},f.prototype.writeUint8=f.prototype.writeUInt8=function(k,b,CA){return k=+k,b>>>=0,CA||ZA(this,k,b,1,255,0),this[b]=255&k,b+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(k,b,CA){return k=+k,b>>>=0,CA||ZA(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,CA){return k=+k,b>>>=0,CA||ZA(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,CA){return k=+k,b>>>=0,CA||ZA(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,CA){return k=+k,b>>>=0,CA||ZA(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=mt(function(k,b){return void 0===b&&(b=0),q(this,k,b,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=mt(function(k,b){return void 0===b&&(b=0),J(this,k,b,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(k,b,CA,wA){if(k=+k,b>>>=0,!wA){var RA=Math.pow(2,8*CA-1);ZA(this,k,b,CA,RA-1,-RA)}var rA=0,Bt=1,Yt=0;for(this[b]=255&k;++rA>0)-Yt&255;return b+CA},f.prototype.writeIntBE=function(k,b,CA,wA){if(k=+k,b>>>=0,!wA){var RA=Math.pow(2,8*CA-1);ZA(this,k,b,CA,RA-1,-RA)}var rA=CA-1,Bt=1,Yt=0;for(this[b+rA]=255&k;--rA>=0&&(Bt*=256);)k<0&&0===Yt&&0!==this[b+rA+1]&&(Yt=1),this[b+rA]=(k/Bt>>0)-Yt&255;return b+CA},f.prototype.writeInt8=function(k,b,CA){return k=+k,b>>>=0,CA||ZA(this,k,b,1,127,-128),k<0&&(k=255+k+1),this[b]=255&k,b+1},f.prototype.writeInt16LE=function(k,b,CA){return k=+k,b>>>=0,CA||ZA(this,k,b,2,32767,-32768),this[b]=255&k,this[b+1]=k>>>8,b+2},f.prototype.writeInt16BE=function(k,b,CA){return k=+k,b>>>=0,CA||ZA(this,k,b,2,32767,-32768),this[b]=k>>>8,this[b+1]=255&k,b+2},f.prototype.writeInt32LE=function(k,b,CA){return k=+k,b>>>=0,CA||ZA(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,CA){return k=+k,b>>>=0,CA||ZA(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=mt(function(k,b){return void 0===b&&(b=0),q(this,k,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=mt(function(k,b){return void 0===b&&(b=0),J(this,k,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(k,b,CA){return W(this,k,b,!0,CA)},f.prototype.writeFloatBE=function(k,b,CA){return W(this,k,b,!1,CA)},f.prototype.writeDoubleLE=function(k,b,CA){return hA(this,k,b,!0,CA)},f.prototype.writeDoubleBE=function(k,b,CA){return hA(this,k,b,!1,CA)},f.prototype.copy=function(k,b,CA,wA){if(!f.isBuffer(k))throw new TypeError("argument should be a Buffer");if(CA||(CA=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,CA=void 0===CA?this.length:CA>>>0,k||(k=0),"number"==typeof k)for(rA=b;rA=CA+4;b-=3)k="_"+H.slice(b-3,b)+k;return""+H.slice(0,b)+k}function nt(H,k,b,CA,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",Bt,H)}!function GA(H,k,b){lt(k,"offset"),(void 0===H[k]||void 0===H[k+b])&&TA(k,H.length-(b+1))}(CA,wA,RA)}function lt(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?(lt(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 CA='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"),CA+" It must be "+k+". Received "+wA},RangeError);var it=/[^+/0-9A-Za-z-_]/g;function It(H,k){k=k||1/0;for(var b,CA=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===CA){(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 qA(H){return a.toByteArray(function vt(H){if((H=(H=H.split("=")[0]).trim().replace(it,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(H))}function at(H,k,b,CA){var wA;for(wA=0;wA=k.length||wA>=H.length);++wA)k[wA+b]=H[wA];return wA}function et(H,k){return H instanceof k||null!=H&&null!=H.constructor&&null!=H.constructor.name&&H.constructor.name===k.name}function FA(H){return H!=H}var dt=function(){for(var H="0123456789abcdef",k=new Array(256),b=0;b<16;++b)for(var CA=16*b,wA=0;wA<16;++wA)k[CA+wA]=H[b]+H[wA];return k}();function mt(H){return"undefined"==typeof BigInt?OA:H}function OA(){throw new Error("BigInt not supported")}},477:function(Y,I,n){"use strict";n(7803),n(1539),Y.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},2094:function(Y,I,n){"use strict";var lA,pA,cA,c=n(477),i=n(9781),o=n(7854),l=n(614),h=n(111),a=n(2597),g=n(648),E=n(6330),u=n(8880),C=n(1320),e=n(3070).f,f=n(7976),B=n(9518),w=n(7674),Q=n(5112),p=n(9711),S=o.Int8Array,m=S&&S.prototype,d=o.Uint8ClampedArray,v=d&&d.prototype,D=S&&B(S),U=m&&B(m),T=Object.prototype,F=o.TypeError,R=Q("toStringTag"),L=p("TYPED_ARRAY_TAG"),Z=p("TYPED_ARRAY_CONSTRUCTOR"),aA=c&&!!w&&"Opera"!==g(o.opera),AA=!1,gA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BA={BigInt64Array:8,BigUint64Array:8},xA=function(bA){if(!h(bA))return!1;var ZA=g(bA);return a(gA,ZA)||a(BA,ZA)};for(lA in gA)(cA=(pA=o[lA])&&pA.prototype)?u(cA,Z,pA):aA=!1;for(lA in BA)(cA=(pA=o[lA])&&pA.prototype)&&u(cA,Z,pA);if((!aA||!l(D)||D===Function.prototype)&&(D=function(){throw F("Incorrect invocation")},aA))for(lA in gA)o[lA]&&w(o[lA],D);if((!aA||!U||U===T)&&(U=D.prototype,aA))for(lA in gA)o[lA]&&w(o[lA].prototype,U);if(aA&&B(v)!==U&&w(v,U),i&&!a(U,R))for(lA in AA=!0,e(U,R,{get:function(){return h(this)?this[L]:void 0}}),gA)o[lA]&&u(o[lA],L,lA);Y.exports={NATIVE_ARRAY_BUFFER_VIEWS:aA,TYPED_ARRAY_CONSTRUCTOR:Z,TYPED_ARRAY_TAG:AA&&L,aTypedArray:function(bA){if(xA(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,ZA,q){if(i){if(q)for(var J in gA){var $=o[J];if($&&a($.prototype,bA))try{delete $.prototype[bA]}catch(W){}}(!U[bA]||q)&&C(U,bA,q?ZA:aA&&m[bA]||ZA)}},exportTypedArrayStaticMethod:function(bA,ZA,q){var J,$;if(i){if(w){if(q)for(J in gA)if(($=o[J])&&a($,bA))try{delete $[bA]}catch(W){}if(D[bA]&&!q)return;try{return C(D,bA,q?ZA:aA&&D[bA]||ZA)}catch(W){}}for(J in gA)($=o[J])&&(!$[bA]||q)&&C($,bA,ZA)}},isView:function(bA){if(!h(bA))return!1;var ZA=g(bA);return"DataView"===ZA||a(gA,ZA)||a(BA,ZA)},isTypedArray:xA,TypedArray:D,TypedArrayPrototype:U}},2091:function(Y,I,n){"use strict";n(8309);var c=n(7854),i=n(1702),o=n(9781),l=n(477),h=n(6530),a=n(8880),g=n(2248),E=n(7293),u=n(5787),C=n(9303),e=n(7466),f=n(7067),B=n(1179),w=n(9518),Q=n(7674),p=n(8006).f,S=n(3070).f,m=n(1285),d=n(206),v=n(8003),D=n(9909),U=h.PROPER,T=h.CONFIGURABLE,F=D.get,R=D.set,L="ArrayBuffer",Z="DataView",aA="prototype",lA="Wrong index",pA=c[L],cA=pA,gA=cA&&cA[aA],BA=c[Z],yA=BA&&BA[aA],xA=Object.prototype,_=c.Array,MA=c.RangeError,uA=i(m),QA=i([].reverse),SA=B.pack,bA=B.unpack,ZA=function(Mt){return[255&Mt]},q=function(Mt){return[255&Mt,Mt>>8&255]},J=function(Mt){return[255&Mt,Mt>>8&255,Mt>>16&255,Mt>>24&255]},$=function(Mt){return Mt[3]<<24|Mt[2]<<16|Mt[1]<<8|Mt[0]},W=function(Mt){return SA(Mt,23,4)},hA=function(Mt){return SA(Mt,52,8)},vA=function(Mt,JA){S(Mt[aA],JA,{get:function(){return F(this)[JA]}})},nA=function(Mt,JA,qA,at){var et=f(qA),FA=F(Mt);if(et+JA>FA.byteLength)throw MA(lA);var dt=F(FA.buffer).bytes,mt=et+FA.byteOffset,OA=d(dt,mt,mt+JA);return at?OA:QA(OA)},EA=function(Mt,JA,qA,at,et,FA){var dt=f(qA),mt=F(Mt);if(dt+JA>mt.byteLength)throw MA(lA);for(var OA=F(mt.buffer).bytes,H=dt+mt.byteOffset,k=at(+et),b=0;blt;)(TA=nt[lt++])in cA||a(cA,TA,pA[TA]);gA.constructor=cA}Q&&w(yA)!==xA&&Q(yA,xA);var it=new BA(new cA(2)),vt=i(yA.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),(it.getInt8(0)||!it.getInt8(1))&&g(yA,{setInt8:function(Mt,JA){vt(this,Mt,JA<<24>>24)},setUint8:function(Mt,JA){vt(this,Mt,JA<<24>>24)}},{unsafe:!0})}else gA=(cA=function(Mt){u(this,gA);var JA=f(Mt);R(this,{bytes:uA(_(JA),0),byteLength:JA}),o||(this.byteLength=JA)})[aA],yA=(BA=function(Mt,JA,qA){u(this,yA),u(Mt,gA);var at=F(Mt).byteLength,et=C(JA);if(et<0||et>at)throw MA("Wrong offset");if(et+(qA=void 0===qA?at-et:e(qA))>at)throw MA("Wrong length");R(this,{buffer:Mt,byteLength:qA,byteOffset:et}),o||(this.buffer=Mt,this.byteLength=qA,this.byteOffset=et)})[aA],o&&(vA(cA,"byteLength"),vA(BA,"buffer"),vA(BA,"byteLength"),vA(BA,"byteOffset")),g(yA,{getInt8:function(Mt){return nA(this,1,Mt)[0]<<24>>24},getUint8:function(Mt){return nA(this,1,Mt)[0]},getInt16:function(Mt){var JA=nA(this,2,Mt,arguments.length>1?arguments[1]:void 0);return(JA[1]<<8|JA[0])<<16>>16},getUint16:function(Mt){var JA=nA(this,2,Mt,arguments.length>1?arguments[1]:void 0);return JA[1]<<8|JA[0]},getInt32:function(Mt){return $(nA(this,4,Mt,arguments.length>1?arguments[1]:void 0))},getUint32:function(Mt){return $(nA(this,4,Mt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Mt){return bA(nA(this,4,Mt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Mt){return bA(nA(this,8,Mt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Mt,JA){EA(this,1,Mt,ZA,JA)},setUint8:function(Mt,JA){EA(this,1,Mt,ZA,JA)},setInt16:function(Mt,JA){EA(this,2,Mt,q,JA,arguments.length>2?arguments[2]:void 0)},setUint16:function(Mt,JA){EA(this,2,Mt,q,JA,arguments.length>2?arguments[2]:void 0)},setInt32:function(Mt,JA){EA(this,4,Mt,J,JA,arguments.length>2?arguments[2]:void 0)},setUint32:function(Mt,JA){EA(this,4,Mt,J,JA,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Mt,JA){EA(this,4,Mt,W,JA,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Mt,JA){EA(this,8,Mt,hA,JA,arguments.length>2?arguments[2]:void 0)}});v(cA,L),v(BA,Z),Y.exports={ArrayBuffer:cA,DataView:BA}},7803:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(2091),l=n(6340),h="ArrayBuffer",a=o[h];c({global:!0,forced:i[h]!==a},{ArrayBuffer:a}),l(h)},194:function(Y,I,n){"use strict";Y.exports=function(c){return function(){var i=c,l=i.lib.BlockCipher,h=i.algo,a=[],g=[],E=[],u=[],C=[],e=[],f=[],B=[],w=[],Q=[];!function(){for(var m=[],d=0;d<256;d++)m[d]=d<128?d<<1:d<<1^283;var v=0,D=0;for(d=0;d<256;d++){var U=D^D<<1^D<<2^D<<3^D<<4;a[v]=U=U>>>8^255&U^99,g[U]=v;var L,T=m[v],F=m[T],R=m[F];E[v]=(L=257*m[U]^16843008*U)<<24|L>>>8,u[v]=L<<16|L>>>16,C[v]=L<<8|L>>>24,e[v]=L,f[U]=(L=16843009*R^65537*F^257*T^16843008*v)<<24|L>>>8,B[U]=L<<16|L>>>16,w[U]=L<<8|L>>>24,Q[U]=L,v?(v=T^m[m[m[R^T]]],D^=m[m[D]]):v=D=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],S=h.AES=l.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var v=this._keyPriorReset=this._key,D=v.words,U=v.sigBytes/4,F=4*((this._nRounds=U+6)+1),R=this._keySchedule=[],L=0;L6&&L%U==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[L/U|0]<<24),R[L]=R[L-U]^d);for(var Z=this._invKeySchedule=[],aA=0;aA>>24]]^B[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,B,w,Q,g),D=d[v+1],d[v+1]=d[v+3],d[v+3]=D},_doCryptBlock:function(d,v,D,U,T,F,R,L){for(var Z=this._nRounds,aA=d[v]^D[0],AA=d[v+1]^D[1],lA=d[v+2]^D[2],pA=d[v+3]^D[3],cA=4,gA=1;gA>>24]^T[AA>>>16&255]^F[lA>>>8&255]^R[255&pA]^D[cA++],yA=U[AA>>>24]^T[lA>>>16&255]^F[pA>>>8&255]^R[255&aA]^D[cA++],xA=U[lA>>>24]^T[pA>>>16&255]^F[aA>>>8&255]^R[255&AA]^D[cA++],_=U[pA>>>24]^T[aA>>>16&255]^F[AA>>>8&255]^R[255&lA]^D[cA++];aA=BA,AA=yA,lA=xA,pA=_}BA=(L[aA>>>24]<<24|L[AA>>>16&255]<<16|L[lA>>>8&255]<<8|L[255&pA])^D[cA++],yA=(L[AA>>>24]<<24|L[lA>>>16&255]<<16|L[pA>>>8&255]<<8|L[255&aA])^D[cA++],xA=(L[lA>>>24]<<24|L[pA>>>16&255]<<16|L[aA>>>8&255]<<8|L[255&AA])^D[cA++],_=(L[pA>>>24]<<24|L[aA>>>16&255]<<16|L[AA>>>8&255]<<8|L[255&lA])^D[cA++],d[v]=BA,d[v+1]=yA,d[v+2]=xA,d[v+3]=_},keySize:8});i.AES=l._createHelper(S)}(),c.AES}(n(757),n(7508),n(3440),n(3839),n(1582))},1582:function(Y,I,n){"use strict";n(7042),n(2222),n(1539),n(9714),n(561),Y.exports=function(c){var o,l,h,a,g,C,f,B,Q,p,S,d,D,T,F,L,Z;c.lib.Cipher||(a=(l=(o=c).lib).WordArray,C=o.enc.Base64,f=o.algo.EvpKDF,B=l.Cipher=(g=l.BufferedBlockAlgorithm).extend({cfg:(h=l.Base).extend(),createEncryptor:function(AA,lA){return this.create(this._ENC_XFORM_MODE,AA,lA)},createDecryptor:function(AA,lA){return this.create(this._DEC_XFORM_MODE,AA,lA)},init:function(AA,lA,pA){this.cfg=this.cfg.extend(pA),this._xformMode=AA,this._key=lA,this.reset()},reset:function(){g.reset.call(this),this._doReset()},process:function(AA){return this._append(AA),this._process()},finalize:function(AA){return AA&&this._append(AA),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function aA(AA){return"string"==typeof AA?Z:F}return function(AA){return{encrypt:function(pA,cA,gA){return aA(cA).encrypt(AA,pA,cA,gA)},decrypt:function(pA,cA,gA){return aA(cA).decrypt(AA,pA,cA,gA)}}}}()}),l.StreamCipher=B.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),Q=o.mode={},p=l.BlockCipherMode=h.extend({createEncryptor:function(AA,lA){return this.Encryptor.create(AA,lA)},createDecryptor:function(AA,lA){return this.Decryptor.create(AA,lA)},init:function(AA,lA){this._cipher=AA,this._iv=lA}}),S=Q.CBC=function(){var aA=p.extend();function AA(lA,pA,cA){var gA,BA=this._iv;BA?(gA=BA,this._iv=undefined):gA=this._prevBlock;for(var yA=0;yA>>2]}},l.BlockCipher=B.extend({cfg:B.cfg.extend({mode:S,padding:d}),reset:function(){var AA;B.reset.call(this);var lA=this.cfg,pA=lA.iv,cA=lA.mode;this._xformMode==this._ENC_XFORM_MODE?AA=cA.createEncryptor:(AA=cA.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==AA?this._mode.init(this,pA&&pA.words):(this._mode=AA.call(cA,this,pA&&pA.words),this._mode.__creator=AA)},_doProcessBlock:function(AA,lA){this._mode.processBlock(AA,lA)},_doFinalize:function(){var AA,lA=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(lA.pad(this._data,this.blockSize),AA=this._process(!0)):(AA=this._process(!0),lA.unpad(AA)),AA},blockSize:4}),D=l.CipherParams=h.extend({init:function(AA){this.mixIn(AA)},toString:function(AA){return(AA||this.formatter).stringify(this)}}),T=(o.format={}).OpenSSL={stringify:function(AA){var pA=AA.ciphertext,cA=AA.salt;return(cA?a.create([1398893684,1701076831]).concat(cA).concat(pA):pA).toString(C)},parse:function(AA){var lA,pA=C.parse(AA),cA=pA.words;return 1398893684==cA[0]&&1701076831==cA[1]&&(lA=a.create(cA.slice(2,4)),cA.splice(0,4),pA.sigBytes-=16),D.create({ciphertext:pA,salt:lA})}},F=l.SerializableCipher=h.extend({cfg:h.extend({format:T}),encrypt:function(AA,lA,pA,cA){cA=this.cfg.extend(cA);var gA=AA.createEncryptor(pA,cA),BA=gA.finalize(lA),yA=gA.cfg;return D.create({ciphertext:BA,key:pA,iv:yA.iv,algorithm:AA,mode:yA.mode,padding:yA.padding,blockSize:AA.blockSize,formatter:cA.format})},decrypt:function(AA,lA,pA,cA){return cA=this.cfg.extend(cA),lA=this._parse(lA,cA.format),AA.createDecryptor(pA,cA).finalize(lA.ciphertext)},_parse:function(AA,lA){return"string"==typeof AA?lA.parse(AA,this):AA}}),L=(o.kdf={}).OpenSSL={execute:function(AA,lA,pA,cA){cA||(cA=a.random(8));var gA=f.create({keySize:lA+pA}).compute(AA,cA),BA=a.create(gA.words.slice(lA),4*pA);return gA.sigBytes=4*lA,D.create({key:gA,iv:BA,salt:cA})}},Z=l.PasswordBasedCipher=F.extend({cfg:F.cfg.extend({kdf:L}),encrypt:function(AA,lA,pA,cA){var gA=(cA=this.cfg.extend(cA)).kdf.execute(pA,AA.keySize,AA.ivSize);cA.iv=gA.iv;var BA=F.encrypt.call(this,AA,lA,gA.key,cA);return BA.mixIn(gA),BA},decrypt:function(AA,lA,pA,cA){cA=this.cfg.extend(cA),lA=this._parse(lA,cA.format);var gA=cA.kdf.execute(pA,AA.keySize,AA.ivSize,lA.salt);return cA.iv=gA.iv,F.decrypt.call(this,AA,lA,gA.key,cA)}}))}(n(757),n(3839))},757:function(Y,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,o){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(m){}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 m(){}return function(d){var v;return m.prototype=d,v=new m,m.prototype=null,v}}(),g={},E=g.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,U=this.sigBytes,T=d.sigBytes;if(this.clamp(),U%4)for(var F=0;F>>2]|=(D[F>>>2]>>>24-F%4*8&255)<<24-(U+F)%4*8;else for(var L=0;L>>2]=D[L>>>2];return this.sigBytes+=T,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-T%4*8&255;U.push((F>>>4).toString(16)),U.push((15&F).toString(16))}return U.join("")},parse:function(d){for(var v=d.length,D=[],U=0;U>>3]|=parseInt(d.substr(U,2),16)<<24-U%8*4;return new C.init(D,v/2)}},B=e.Latin1={stringify:function(d){for(var v=d.words,D=d.sigBytes,U=[],T=0;T>>2]>>>24-T%4*8&255));return U.join("")},parse:function(d){for(var v=d.length,D=[],U=0;U>>2]|=(255&d.charCodeAt(U))<<24-U%4*8;return new C.init(D,v)}},w=e.Utf8={stringify:function(d){try{return decodeURIComponent(escape(B.stringify(d)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(d){return B.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,U=D.words,T=D.sigBytes,F=this.blockSize,L=T/(4*F),Z=(L=d?i.ceil(L):i.max((0|L)-this._minBufferSize,0))*F,aA=i.min(4*Z,T);if(Z){for(var AA=0;AA>>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(;B.length%4;)B.push(v);return B.join("")},parse:function(u){var C=u.length,e=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var B=0;B>>6-B%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(Y,I,n){"use strict";n(9600),Y.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,B=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=B.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,B=this._reverseMap;if(!B){B=this._reverseMap=[];for(var w=0;w>>6-B%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return l.create(e,f)}(u,e,B)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},c.enc.Base64url;var l}(n(757))},4978:function(Y,I,n){"use strict";n(9600),Y.exports=function(c){return function(){var l=c.lib.WordArray,h=c.enc;function g(E){return E<<8&4278255360|E>>>8&16711935}h.Utf16=h.Utf16BE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],B=0;B>>2]>>>16-B%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=[],B=0;B>>2]>>>16-B%4*8&65535);f.push(String.fromCharCode(w))}return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=g(u.charCodeAt(f)<<16-f%2*16);return l.create(e,2*C)}}}(),c.enc.Utf16}(n(757))},3839:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return h=(o=(i=c).lib).WordArray,E=(a=i.algo).EvpKDF=(l=o.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,B=this.cfg,w=B.hasher.create(),Q=h.create(),p=Q.words,S=B.keySize,m=B.iterations;p.lengthB&&(e=C.finalize(e)),e.clamp();for(var w=this._oKey=e.clone(),Q=this._iKey=e.clone(),p=w.words,S=Q.words,m=0;m>>2]|=g[C]<<24-C%4*8;h.call(this,u,E)}else h.apply(this,arguments)};a.prototype=l}}(),c.lib.WordArray},Y.exports=i(n(757))},3440:function(Y,I,n){"use strict";Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,g=o.algo,E=[];!function(){for(var w=0;w<64;w++)E[w]=4294967296*i.abs(i.sin(w+1))|0}();var u=g.MD5=a.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,p){for(var S=0;S<16;S++){var m=p+S,d=Q[m];Q[m]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var v=this._hash.words,D=Q[p+0],U=Q[p+1],T=Q[p+2],F=Q[p+3],R=Q[p+4],L=Q[p+5],Z=Q[p+6],aA=Q[p+7],AA=Q[p+8],lA=Q[p+9],pA=Q[p+10],cA=Q[p+11],gA=Q[p+12],BA=Q[p+13],yA=Q[p+14],xA=Q[p+15],_=v[0],MA=v[1],uA=v[2],QA=v[3];_=C(_,MA,uA,QA,D,7,E[0]),QA=C(QA,_,MA,uA,U,12,E[1]),uA=C(uA,QA,_,MA,T,17,E[2]),MA=C(MA,uA,QA,_,F,22,E[3]),_=C(_,MA,uA,QA,R,7,E[4]),QA=C(QA,_,MA,uA,L,12,E[5]),uA=C(uA,QA,_,MA,Z,17,E[6]),MA=C(MA,uA,QA,_,aA,22,E[7]),_=C(_,MA,uA,QA,AA,7,E[8]),QA=C(QA,_,MA,uA,lA,12,E[9]),uA=C(uA,QA,_,MA,pA,17,E[10]),MA=C(MA,uA,QA,_,cA,22,E[11]),_=C(_,MA,uA,QA,gA,7,E[12]),QA=C(QA,_,MA,uA,BA,12,E[13]),uA=C(uA,QA,_,MA,yA,17,E[14]),_=e(_,MA=C(MA,uA,QA,_,xA,22,E[15]),uA,QA,U,5,E[16]),QA=e(QA,_,MA,uA,Z,9,E[17]),uA=e(uA,QA,_,MA,cA,14,E[18]),MA=e(MA,uA,QA,_,D,20,E[19]),_=e(_,MA,uA,QA,L,5,E[20]),QA=e(QA,_,MA,uA,pA,9,E[21]),uA=e(uA,QA,_,MA,xA,14,E[22]),MA=e(MA,uA,QA,_,R,20,E[23]),_=e(_,MA,uA,QA,lA,5,E[24]),QA=e(QA,_,MA,uA,yA,9,E[25]),uA=e(uA,QA,_,MA,F,14,E[26]),MA=e(MA,uA,QA,_,AA,20,E[27]),_=e(_,MA,uA,QA,BA,5,E[28]),QA=e(QA,_,MA,uA,T,9,E[29]),uA=e(uA,QA,_,MA,aA,14,E[30]),_=f(_,MA=e(MA,uA,QA,_,gA,20,E[31]),uA,QA,L,4,E[32]),QA=f(QA,_,MA,uA,AA,11,E[33]),uA=f(uA,QA,_,MA,cA,16,E[34]),MA=f(MA,uA,QA,_,yA,23,E[35]),_=f(_,MA,uA,QA,U,4,E[36]),QA=f(QA,_,MA,uA,R,11,E[37]),uA=f(uA,QA,_,MA,aA,16,E[38]),MA=f(MA,uA,QA,_,pA,23,E[39]),_=f(_,MA,uA,QA,BA,4,E[40]),QA=f(QA,_,MA,uA,D,11,E[41]),uA=f(uA,QA,_,MA,F,16,E[42]),MA=f(MA,uA,QA,_,Z,23,E[43]),_=f(_,MA,uA,QA,lA,4,E[44]),QA=f(QA,_,MA,uA,gA,11,E[45]),uA=f(uA,QA,_,MA,xA,16,E[46]),_=B(_,MA=f(MA,uA,QA,_,T,23,E[47]),uA,QA,D,6,E[48]),QA=B(QA,_,MA,uA,aA,10,E[49]),uA=B(uA,QA,_,MA,yA,15,E[50]),MA=B(MA,uA,QA,_,L,21,E[51]),_=B(_,MA,uA,QA,gA,6,E[52]),QA=B(QA,_,MA,uA,F,10,E[53]),uA=B(uA,QA,_,MA,pA,15,E[54]),MA=B(MA,uA,QA,_,U,21,E[55]),_=B(_,MA,uA,QA,AA,6,E[56]),QA=B(QA,_,MA,uA,xA,10,E[57]),uA=B(uA,QA,_,MA,Z,15,E[58]),MA=B(MA,uA,QA,_,BA,21,E[59]),_=B(_,MA,uA,QA,R,6,E[60]),QA=B(QA,_,MA,uA,cA,10,E[61]),uA=B(uA,QA,_,MA,T,15,E[62]),MA=B(MA,uA,QA,_,lA,21,E[63]),v[0]=v[0]+_|0,v[1]=v[1]+MA|0,v[2]=v[2]+uA|0,v[3]=v[3]+QA|0},_doFinalize:function(){var Q=this._data,p=Q.words,S=8*this._nDataBytes,m=8*Q.sigBytes;p[m>>>5]|=128<<24-m%32;var d=i.floor(S/4294967296),v=S;p[15+(m+64>>>9<<4)]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p[14+(m+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,U=D.words,T=0;T<4;T++){var F=U[T];U[T]=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,S,m,d,v){var D=w+(Q&p|~Q&S)+m+v;return(D<>>32-d)+Q}function e(w,Q,p,S,m,d,v){var D=w+(Q&S|p&~S)+m+v;return(D<>>32-d)+Q}function f(w,Q,p,S,m,d,v){var D=w+(Q^p^S)+m+v;return(D<>>32-d)+Q}function B(w,Q,p,S,m,d,v){var D=w+(p^(Q|~S))+m+v;return(D<>>32-d)+Q}o.MD5=a._createHelper(u),o.HmacMD5=a._createHmacHelper(u)}(Math),c.MD5}(n(757))},702:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return c.mode.CFB=function(){var i=c.lib.BlockCipherMode.extend();function o(l,h,a,g){var E,u=this._iv;u?(E=u.slice(0),this._iv=void 0):E=this._prevBlock,g.encryptBlock(E,0);for(var C=0;C>24&255)){var g=a>>16&255,E=a>>8&255,u=255&a;255===g?(g=0,255===E?(E=0,255===u?u=0:++u):++E):++g,a=0,a+=g<<16,a+=E<<8,a+=u}else a+=16777216;return a}var h=i.Encryptor=i.extend({processBlock:function(g,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]=o(a[0]))&&(a[1]=o(a[1])),a}(f);var B=f.slice(0);u.encryptBlock(B,0);for(var w=0;w>>2]|=g<<24-E%4*8,o.sigBytes+=g},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},c.pad.Ansix923}(n(757),n(1582))},4431:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return c.pad.Iso10126={pad:function(o,l){var h=4*l,a=h-o.sigBytes%h;o.concat(c.lib.WordArray.random(a-1)).concat(c.lib.WordArray.create([a<<24],1))},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},c.pad.Iso10126}(n(757),n(1582))},8800:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return c.pad.Iso97971={pad:function(o,l){o.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(o,l)},unpad:function(o){c.pad.ZeroPadding.unpad(o),o.sigBytes--}},c.pad.Iso97971}(n(757),n(1582))},649:function(Y,I,n){"use strict";Y.exports=function(c){return c.pad.NoPadding={pad:function(){},unpad:function(){}},c.pad.NoPadding}(n(757),n(1582))},3992:function(Y,I,n){"use strict";Y.exports=function(c){return c.pad.ZeroPadding={pad:function(o,l){var h=4*l;o.clamp(),o.sigBytes+=h-(o.sigBytes%h||h)},unpad:function(o){var l=o.words,h=o.sigBytes-1;for(h=o.sigBytes-1;h>=0;h--)if(l[h>>>2]>>>24-h%4*8&255){o.sigBytes=h+1;break}}},c.pad.ZeroPadding}(n(757),n(1582))},3486:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return h=(o=(i=c).lib).WordArray,E=(a=i.algo).HMAC,u=a.PBKDF2=(l=o.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 B=this.cfg,w=E.create(B.hasher,e),Q=h.create(),p=h.create([1]),S=Q.words,m=p.words,d=B.keySize,v=B.iterations;S.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(B){var S=B.words,m=S[0],d=S[1],v=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),U=v>>>16|4294901760&D,T=D<<16|65535&v;for(Q[0]^=v,Q[1]^=U,Q[2]^=D,Q[3]^=T,Q[4]^=v,Q[5]^=U,Q[6]^=D,Q[7]^=T,p=0;p<4;p++)C.call(this)}},_doProcessBlock:function(f,B){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[B+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,B=0;B<8;B++)g[B]=f[B];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,B=0;B<8;B++){var w=e[B]+f[B],Q=65535&w,p=w>>>16;E[B]=((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(Y,I,n){"use strict";Y.exports=function(c){return function(){var i=c,l=i.lib.StreamCipher,a=[],g=[],E=[],u=i.algo.Rabbit=l.extend({_doReset:function(){for(var f=this._key.words,B=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(B){var S=B.words,m=S[0],d=S[1],v=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),U=v>>>16|4294901760&D,T=D<<16|65535&v;for(p[0]^=v,p[1]^=U,p[2]^=D,p[3]^=T,p[4]^=v,p[5]^=U,p[6]^=D,p[7]^=T,w=0;w<4;w++)C.call(this)}},_doProcessBlock:function(f,B){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[B+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,B=0;B<8;B++)g[B]=f[B];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,B=0;B<8;B++){var w=e[B]+f[B],Q=65535&w,p=w>>>16;E[B]=((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(Y,I,n){"use strict";n(1539),n(8674),Y.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,B=this._S=[],w=0;w<256;w++)B[w]=w;w=0;for(var Q=0;w<256;w++){var p=w%f,m=B[w];B[w]=B[Q=(Q+B[w]+(e[p>>>2]>>>24-p%4*8&255))%256],B[Q]=m}this._i=this._j=0},_doProcessBlock:function(C,e){C[e]^=g.call(this)},keySize:8,ivSize:0});function g(){for(var u=this._S,C=this._i,e=this._j,f=0,B=0;B<4;B++){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*B}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--)g.call(this)}});i.RC4Drop=l._createHelper(E)}(),c.RC4}(n(757),n(7508),n(3440),n(3839),n(1582))},8714:function(Y,I,n){"use strict";Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,g=o.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]),B=h.create([1352829926,1548603684,1836072691,2053994217,0]),w=g.RIPEMD160=a.extend({_doReset:function(){this._hash=h.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(U,T){for(var F=0;F<16;F++){var R=T+F,L=U[R];U[R]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8)}var BA,yA,xA,_,MA,uA,QA,SA,bA,ZA,q,Z=this._hash.words,aA=f.words,AA=B.words,lA=E.words,pA=u.words,cA=C.words,gA=e.words;for(uA=BA=Z[0],QA=yA=Z[1],SA=xA=Z[2],bA=_=Z[3],ZA=MA=Z[4],F=0;F<80;F+=1)q=BA+U[T+lA[F]]|0,q+=F<16?Q(yA,xA,_)+aA[0]:F<32?p(yA,xA,_)+aA[1]:F<48?S(yA,xA,_)+aA[2]:F<64?m(yA,xA,_)+aA[3]:d(yA,xA,_)+aA[4],q=(q=v(q|=0,cA[F]))+MA|0,BA=MA,MA=_,_=v(xA,10),xA=yA,yA=q,q=uA+U[T+pA[F]]|0,q+=F<16?d(QA,SA,bA)+AA[0]:F<32?m(QA,SA,bA)+AA[1]:F<48?S(QA,SA,bA)+AA[2]:F<64?p(QA,SA,bA)+AA[3]:Q(QA,SA,bA)+AA[4],q=(q=v(q|=0,gA[F]))+ZA|0,uA=ZA,ZA=bA,bA=v(SA,10),SA=QA,QA=q;q=Z[1]+xA+bA|0,Z[1]=Z[2]+_+ZA|0,Z[2]=Z[3]+MA+uA|0,Z[3]=Z[4]+BA+QA|0,Z[4]=Z[0]+yA+SA|0,Z[0]=q},_doFinalize:function(){var U=this._data,T=U.words,F=8*this._nDataBytes,R=8*U.sigBytes;T[R>>>5]|=128<<24-R%32,T[14+(R+64>>>9<<4)]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8),U.sigBytes=4*(T.length+1),this._process();for(var L=this._hash,Z=L.words,aA=0;aA<5;aA++){var AA=Z[aA];Z[aA]=16711935&(AA<<8|AA>>>24)|4278255360&(AA<<24|AA>>>8)}return L},clone:function(){var U=a.clone.call(this);return U._hash=this._hash.clone(),U}});function Q(D,U,T){return D^U^T}function p(D,U,T){return D&U|~D&T}function S(D,U,T){return(D|~U)^T}function m(D,U,T){return D&T|U&~T}function d(D,U,T){return D^(U|~T)}function v(D,U){return D<>>32-U}o.RIPEMD160=a._createHelper(w),o.HmacRIPEMD160=a._createHmacHelper(w)}(Math),c.RIPEMD160}(n(757))},9865:function(Y,I,n){"use strict";Y.exports=function(c){return l=(o=(i=c).lib).WordArray,g=[],E=i.algo.SHA1=(h=o.Hasher).extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,e){for(var f=this._hash.words,B=f[0],w=f[1],Q=f[2],p=f[3],S=f[4],m=0;m<80;m++){if(m<16)g[m]=0|C[e+m];else{var d=g[m-3]^g[m-8]^g[m-14]^g[m-16];g[m]=d<<1|d>>>31}var v=(B<<5|B>>>27)+S+g[m];v+=m<20?1518500249+(w&Q|~w&p):m<40?1859775393+(w^Q^p):m<60?(w&Q|w&p|Q&p)-1894007588:(w^Q^p)-899497514,S=p,p=Q,Q=w<<30|w>>>2,w=B,B=v}f[0]=f[0]+B|0,f[1]=f[1]+w|0,f[2]=f[2]+Q|0,f[3]=f[3]+p|0,f[4]=f[4]+S|0},_doFinalize:function(){var C=this._data,e=C.words,f=8*this._nDataBytes,B=8*C.sigBytes;return e[B>>>5]|=128<<24-B%32,e[14+(B+64>>>9<<4)]=Math.floor(f/4294967296),e[15+(B+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,o,l,h,g,E}(n(757))},6876:function(Y,I,n){"use strict";Y.exports=function(c){return l=(i=c).lib.WordArray,g=(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(g),i.HmacSHA224=a._createHmacHelper(g),c.SHA224;var i,l,h,a,g}(n(757),n(8921))},8921:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,g=o.algo,E=[],u=[];!function(){function f(p){for(var S=i.sqrt(p),m=2;m<=S;m++)if(!(p%m))return!1;return!0}function B(p){return 4294967296*(p-(0|p))|0}for(var w=2,Q=0;Q<64;)f(w)&&(Q<8&&(E[Q]=B(i.pow(w,.5))),u[Q]=B(i.pow(w,.3333333333333333)),Q++),w++}();var C=[],e=g.SHA256=a.extend({_doReset:function(){this._hash=new h.init(E.slice(0))},_doProcessBlock:function(B,w){for(var Q=this._hash.words,p=Q[0],S=Q[1],m=Q[2],d=Q[3],v=Q[4],D=Q[5],U=Q[6],T=Q[7],F=0;F<64;F++){if(F<16)C[F]=0|B[w+F];else{var R=C[F-15],Z=C[F-2];C[F]=((R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3)+C[F-7]+((Z<<15|Z>>>17)^(Z<<13|Z>>>19)^Z>>>10)+C[F-16]}var lA=p&S^p&m^S&m,gA=T+((v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25))+(v&D^~v&U)+u[F]+C[F];T=U,U=D,D=v,v=d+gA|0,d=m,m=S,S=p,p=gA+(((p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22))+lA)|0}Q[0]=Q[0]+p|0,Q[1]=Q[1]+S|0,Q[2]=Q[2]+m|0,Q[3]=Q[3]+d|0,Q[4]=Q[4]+v|0,Q[5]=Q[5]+D|0,Q[6]=Q[6]+U|0,Q[7]=Q[7]+T|0},_doFinalize:function(){var B=this._data,w=B.words,Q=8*this._nDataBytes,p=8*B.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,B.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var B=a.clone.call(this);return B._hash=this._hash.clone(),B}});o.SHA256=a._createHelper(e),o.HmacSHA256=a._createHmacHelper(e)}(Math),c.SHA256}(n(757))},8342:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,E=o.x64.Word,u=o.algo,C=[],e=[],f=[];!function(){for(var Q=1,p=0,S=0;S<24;S++){C[Q+5*p]=(S+1)*(S+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 U=0,T=0,F=0;F<7;F++){if(1&v){var R=(1<>>24)|4278255360&(D<<24|D>>>8),(T=m[v]).high^=U=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8),T.low^=D}for(var F=0;F<24;F++){for(var R=0;R<5;R++){for(var L=0,Z=0,aA=0;aA<5;aA++)L^=(T=m[R+5*aA]).high,Z^=T.low;var AA=B[R];AA.high=L,AA.low=Z}for(R=0;R<5;R++){var lA=B[(R+4)%5],pA=B[(R+1)%5],cA=pA.high,gA=pA.low;for(L=lA.high^(cA<<1|gA>>>31),Z=lA.low^(gA<<1|cA>>>31),aA=0;aA<5;aA++)(T=m[R+5*aA]).high^=L,T.low^=Z}for(var BA=1;BA<25;BA++){var yA=(T=m[BA]).high,xA=T.low,_=C[BA];_<32?(L=yA<<_|xA>>>32-_,Z=xA<<_|yA>>>32-_):(L=xA<<_-32|yA>>>64-_,Z=yA<<_-32|xA>>>64-_);var MA=B[e[BA]];MA.high=L,MA.low=Z}var uA=B[0],QA=m[0];for(uA.high=QA.high,uA.low=QA.low,R=0;R<5;R++)for(aA=0;aA<5;aA++){var SA=B[BA=R+5*aA],bA=B[(R+1)%5+5*aA],ZA=B[(R+2)%5+5*aA];(T=m[BA]).high=SA.high^~bA.high&ZA.high,T.low=SA.low^~bA.low&ZA.low}var T,q=f[F];(T=m[0]).high^=q.high,T.low^=q.low}},_doFinalize:function(){var p=this._data,S=p.words,d=8*p.sigBytes,v=32*this.blockSize;S[d>>>5]|=1<<24-d%32,S[(i.ceil((d+1)/v)*v>>>5)-1]|=128,p.sigBytes=4*S.length,this._process();for(var D=this._state,U=this.cfg.outputLength/8,T=U/8,F=[],R=0;R>>24)|4278255360&(Z<<24|Z>>>8),F.push(aA=16711935&(aA<<8|aA>>>24)|4278255360&(aA<<24|aA>>>8)),F.push(Z)}return new h.init(F,U)},clone:function(){for(var p=a.clone.call(this),S=p._state=this._state.slice(0),m=0;m<25;m++)S[m]=S[m].clone();return p}});o.SHA3=a._createHelper(w),o.HmacSHA3=a._createHmacHelper(w)}(Math),c.SHA3}(n(757),n(2601))},8122:function(Y,I,n){"use strict";Y.exports=function(c){return l=(o=(i=c).x64).Word,h=o.WordArray,E=(a=i.algo).SHA384=(g=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=g._doFinalize.call(this);return C.sigBytes-=16,C}}),i.SHA384=g._createHelper(E),i.HmacSHA384=g._createHmacHelper(E),c.SHA384;var i,o,l,h,a,g,E}(n(757),n(2601),n(7991))},7991:function(Y,I,n){"use strict";var i;i=function(c){return function(){var i=c,l=i.lib.Hasher,h=i.x64,a=h.Word,g=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 B=0;B<80;B++)e[B]=u()}();var f=E.SHA512=l.extend({_doReset:function(){this._hash=new g.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,S=p[0],m=p[1],d=p[2],v=p[3],D=p[4],U=p[5],T=p[6],F=p[7],R=S.high,L=S.low,Z=m.high,aA=m.low,AA=d.high,lA=d.low,pA=v.high,cA=v.low,gA=D.high,BA=D.low,yA=U.high,xA=U.low,_=T.high,MA=T.low,uA=F.high,QA=F.low,SA=R,bA=L,ZA=Z,q=aA,J=AA,$=lA,W=pA,hA=cA,vA=gA,nA=BA,EA=yA,GA=xA,nt=_,lt=MA,TA=uA,it=QA,vt=0;vt<80;vt++){var It,Mt,JA=e[vt];if(vt<16)Mt=JA.high=0|w[Q+2*vt],It=JA.low=0|w[Q+2*vt+1];else{var qA=e[vt-15],at=qA.high,et=qA.low,dt=(et>>>1|at<<31)^(et>>>8|at<<24)^(et>>>7|at<<25),mt=e[vt-2],OA=mt.high,H=mt.low,b=(H>>>19|OA<<13)^(H<<3|OA>>>29)^(H>>>6|OA<<26),CA=e[vt-7],rA=e[vt-16],Yt=rA.low;JA.high=Mt=(Mt=(Mt=((at>>>1|et<<31)^(at>>>8|et<<24)^at>>>7)+CA.high+((It=dt+CA.low)>>>0
>>0?1:0))+((OA>>>19|H<<13)^(OA<<3|H>>>29)^OA>>>6)+((It+=b)>>>0>>0?1:0))+rA.high+((It+=Yt)>>>0>>0?1:0),JA.low=It}var ie,j=vA&EA^~vA&nt,XA=nA&GA^~nA<,KA=SA&ZA^SA&J^ZA&J,ct=(bA>>>28|SA<<4)^(bA<<30|SA>>>2)^(bA<<25|SA>>>7),Rt=C[vt],Le=Rt.low,te=TA+((vA>>>14|nA<<18)^(vA>>>18|nA<<14)^(vA<<23|nA>>>9))+((ie=it+((nA>>>14|vA<<18)^(nA>>>18|vA<<14)^(nA<<23|vA>>>9)))>>>0>>0?1:0),ye=ct+(bA&q^bA&$^q&$);TA=nt,it=lt,nt=EA,lt=GA,EA=vA,GA=nA,vA=W+(te=(te=(te=te+j+((ie+=XA)>>>0>>0?1:0))+Rt.high+((ie+=Le)>>>0>>0?1:0))+Mt+((ie+=It)>>>0>>0?1:0))+((nA=hA+ie|0)>>>0>>0?1:0)|0,W=J,hA=$,J=ZA,$=q,ZA=SA,q=bA,SA=te+(((SA>>>28|bA<<4)^(SA<<30|bA>>>2)^(SA<<25|bA>>>7))+KA+(ye>>>0>>0?1:0))+((bA=ie+ye|0)>>>0>>0?1:0)|0}L=S.low=L+bA,S.high=R+SA+(L>>>0>>0?1:0),aA=m.low=aA+q,m.high=Z+ZA+(aA>>>0>>0?1:0),lA=d.low=lA+$,d.high=AA+J+(lA>>>0<$>>>0?1:0),cA=v.low=cA+hA,v.high=pA+W+(cA>>>0>>0?1:0),BA=D.low=BA+nA,D.high=gA+vA+(BA>>>0>>0?1:0),xA=U.low=xA+GA,U.high=yA+EA+(xA>>>0>>0?1:0),MA=T.low=MA+lt,T.high=_+nt+(MA>>>0>>0?1:0),QA=F.low=QA+it,F.high=uA+TA+(QA>>>0>>0?1:0)},_doFinalize:function(){var w=this._data,Q=w.words,p=8*this._nDataBytes,S=8*w.sigBytes;return Q[S>>>5]|=128<<24-S%32,Q[30+(S+128>>>10<<5)]=Math.floor(p/4294967296),Q[31+(S+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},Y.exports=i(n(757),n(2601))},8437:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(){var i=c,o=i.lib,l=o.WordArray,h=o.BlockCipher,a=i.algo,g=[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 m=this._key.words,d=[],v=0;v<56;v++){var D=g[v]-1;d[v]=m[D>>>5]>>>31-D%32&1}for(var U=this._subKeys=[],T=0;T<16;T++){var F=U[T]=[],R=u[T];for(v=0;v<24;v++)F[v/6|0]|=d[(E[v]-1+R)%28]<<31-v%6,F[4+(v/6|0)]|=d[28+(E[v+24]-1+R)%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 L=this._invSubKeys=[];for(v=0;v<16;v++)L[v]=U[15-v]},encryptBlock:function(S,m){this._doCryptBlock(S,m,this._subKeys)},decryptBlock:function(S,m){this._doCryptBlock(S,m,this._invSubKeys)},_doCryptBlock:function(S,m,d){this._lBlock=S[m],this._rBlock=S[m+1],B.call(this,4,252645135),B.call(this,16,65535),w.call(this,2,858993459),w.call(this,8,16711935),B.call(this,1,1431655765);for(var v=0;v<16;v++){for(var D=d[v],U=this._lBlock,T=this._rBlock,F=0,R=0;R<8;R++)F|=C[R][((T^D[R])&e[R])>>>0];this._lBlock=T,this._rBlock=U^F}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,B.call(this,1,1431655765),w.call(this,8,16711935),w.call(this,2,858993459),B.call(this,16,65535),B.call(this,4,252645135),S[m]=this._lBlock,S[m+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function B(p,S){var m=(this._lBlock>>>p^this._rBlock)&S;this._rBlock^=m,this._lBlock^=m<>>p^this._lBlock)&S;this._lBlock^=m,this._rBlock^=m<192.");var d=m.slice(0,2),v=m.length<4?m.slice(0,2):m.slice(2,4),D=m.length<6?m.slice(0,2):m.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(S,m){this._des1.encryptBlock(S,m),this._des2.decryptBlock(S,m),this._des3.encryptBlock(S,m)},decryptBlock:function(S,m){this._des3.decryptBlock(S,m),this._des2.encryptBlock(S,m),this._des1.decryptBlock(S,m)},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(Y,I,n){"use strict";n(7042),Y.exports=function(c){return h=(l=c.lib).Base,a=l.WordArray,(g=c.x64={}).Word=h.extend({init:function(e,f){this.high=e,this.low=f}}),g.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,B=[],w=0;w=g.length?{done:!0}:{done:!1,value:g[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 o(g,E){(null==E||E>g.length)&&(E=g.length);for(var u=0,C=new Array(E);u=Q)){D.next=13;break}return D.next=13,[Q,p,f.tags[S]];case 13:w=f.stateTable[1][d],Q=null;case 15:0!==w&&null==Q&&(Q=m),f.accepting[w]&&(p=m),0===w&&(w=1);case 18:m++,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()}},B)}),e},E.apply=function(C,e){for(var B,f=c(this.match(C));!(B=f()).done;)for(var d,w=B.value,Q=w[0],p=w[1],m=c(w[2]);!(d=m()).done;){var v=d.value;"function"==typeof e[v]&&e[v](Q,p,C.slice(Q,p+1))}},g}()},8478:function(Y,I,n){"use strict";var c=n(8823).Buffer;n(7042),n(6699);var i=n(3857),o=n(2635);Y.exports=function(){function l(a){var g;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){var E=this.readUInt32(),u="";for(g=0;g<4;g++)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(g=0;g0)for(g=0;gthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}l.decode=function(g,E){return i.readFile(g,function(u,C){return new l(C).decode(function(f){return E(f)})})},l.load=function(g){return new l(i.readFileSync(g))};var h=l.prototype;return h.read=function(g){for(var E=new Array(g),u=0;u=2147483648)throw new RangeError('The value "'+g+'" is invalid for option "size"');var C=o(g);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(g){}l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),Y.exports=l},3361:function(Y,I,n){"use strict";function c(B,w){var Q=Object.keys(B);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(B);w&&(p=p.filter(function(S){return Object.getOwnPropertyDescriptor(B,S).enumerable})),Q.push.apply(Q,p)}return Q}function o(B,w,Q){return w in B?Object.defineProperty(B,w,{value:Q,enumerable:!0,configurable:!0,writable:!0}):B[w]=Q,B}function h(B,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,S=""+p.data;p=p.next;)S+=Q+p.data;return S}},{key:"concat",value:function(Q){if(0===this.length)return E.alloc(0);for(var p=E.allocUnsafe(Q>>>0),S=this.head,m=0;S;)f(S.data,p,m),m+=S.data.length,S=S.next;return p}},{key:"consume",value:function(Q,p){var S;return Qd.length?d.length:Q;if(m+=v===d.length?d:d.slice(0,Q),0==(Q-=v)){v===d.length?(++S,this.head=p.next?p.next:this.tail=null):(this.head=p,p.data=d.slice(v));break}++S}return this.length-=S,m}},{key:"_getBuffer",value:function(Q){var p=E.allocUnsafe(Q),S=this.head,m=1;for(S.data.copy(p),Q-=S.data.length;S=S.next;){var d=S.data,v=Q>d.length?d.length:Q;if(d.copy(p,p.length-Q,0,v),0==(Q-=v)){v===d.length?(++m,this.head=S.next?S.next:this.tail=null):(this.head=S,S.data=d.slice(v));break}++m}return this.length-=m,p}},{key:e,value:function(Q,p){return C(this,function i(B){for(var w=1;wmA.length)&&(O=mA.length);for(var N=0,X=new Array(O);N=mA.length?{done:!0}:{done:!1,value:mA[X++]}},e:function(ft){throw ft},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(){N=mA[Symbol.iterator]()},n:function(){var ft=N.next();return fA=ft.done,ft},e:function(ft){IA=!0,At=ft},f:function(){try{!fA&&null!=N.return&&N.return()}finally{if(IA)throw At}}}}var xA=function(){function mA(){f(this,mA)}return w(mA,[{key:"toString",value:function(){throw new Error("Must be implemented by subclasses")}}]),mA}(),_=function(){function mA(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,mA),this._items={},this.limits="boolean"!=typeof O.limits||O.limits}return w(mA,[{key:"add",value:function(N,X){return this._items[N]=X}},{key:"get",value:function(N){return this._items[N]}},{key:"toString",value:function(){var N=this,X=Object.keys(this._items).sort(function(Ct,Dt){return N._compareKeys(Ct,Dt)}),K=["<<"];if(this.limits&&X.length>1){var IA=X[X.length-1];K.push(" /Limits ".concat(bA.convert([this._dataForKey(X[0]),this._dataForKey(IA)])))}K.push(" /".concat(this._keysName()," ["));var rt,At=yA(X);try{for(At.s();!(rt=At.n()).done;){var ft=rt.value;K.push(" ".concat(bA.convert(this._dataForKey(ft))," ").concat(bA.convert(this._items[ft])))}}catch(Ct){At.e(Ct)}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")}}]),mA}(),MA=function(O,N){return(Array(N+1).join("0")+O).slice(-N)},uA=/[\n\r\t\b\f()\\]/g,QA={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},SA=function(O){var N=O.length;if(1&N)throw new Error("Buffer length must be even");for(var X=0,K=N-1;X1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof N)return"/".concat(N);if(N instanceof String){for(var K=N,fA=!1,IA=0,At=K.length;IA127){fA=!0;break}var rt;return rt=fA?SA(i.from("\ufeff".concat(K),"utf16le")):i.from(K.valueOf(),"ascii"),K=(K=X?X(rt).toString("binary"):rt.toString("binary")).replace(uA,function(Ot){return QA[Ot]}),"(".concat(K,")")}if(i.isBuffer(N))return"<".concat(N.toString("hex"),">");if(N instanceof xA||N instanceof _)return N.toString();if(N instanceof Date){var ft="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 X&&(ft=(ft=X(i.from(ft,"ascii")).toString("binary")).replace(uA,function(Ot){return QA[Ot]})),"(".concat(ft,")")}if(Array.isArray(N)){var Ct=N.map(function(Ot){return mA.convert(Ot,X)}).join(" ");return"[".concat(Ct,"]")}if("[object Object]"==={}.toString.call(N)){var Dt=["<<"];for(var Ft in N){var Tt=N[Ft];Dt.push("/".concat(Ft," ").concat(mA.convert(Tt,X)))}return Dt.push(">>"),Dt.join("\n")}return"number"==typeof N?mA.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))}}]),mA}(),ZA=function(mA){m(N,mA);var O=F(N);function N(X,K){var fA,IA=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(this,N),(fA=O.call(this)).document=X,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(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}(xA),q={top:72,left:72,bottom:72,right:72},J={"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 mA(O){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,mA),this.document=O,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||q;var X=Array.isArray(this.size)?this.size:J[this.size.toUpperCase()];this.width=X["portrait"===this.layout?0:1],this.height=X["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(mA,[{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()}}]),mA}(),W=function(mA){m(N,mA);var O=F(N);function N(){return f(this,N),O.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(mA,O){if(mA=O[fA]&&mA<=O[fA+1])return!0;mA>O[fA+1]?N=K+1:X=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(O){return hA(O,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],nt=[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],it=[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],vt=[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],It=function(O){return hA(O,nt)||hA(O,vt)||hA(O,TA)||hA(O,it)},Mt=[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],JA=function(O){return hA(O,Mt)},qA=[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],at=function(O){return hA(O,qA)},et=function(O){return hA(O,nt)},FA=function(O){return hA(O,EA)},dt=function(O){return O.codePointAt(0)},mt=function(O){return O[0]},OA=function(O){return O[O.length-1]};function H(mA){for(var O=[],N=mA.length,X=0;X=55296&&K<=56319&&N>X+1){var fA=mA.charCodeAt(X+1);if(fA>=56320&&fA<=57343){O.push(1024*(K-55296)+fA-56320+65536),X+=1;continue}}O.push(K)}return O}function k(mA){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof mA)throw new TypeError("Expected string.");if(0===mA.length)return"";var N=H(mA).map(function(Dt){return et(Dt)?32:Dt}).filter(function(Dt){return!FA(Dt)}),X=String.fromCodePoint.apply(null,N).normalize("NFKC"),K=H(X);if(K.some(It))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==O.allowUnassigned&&K.some(nA))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");var At=K.some(JA),rt=K.some(at);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 ft=JA(dt(mt(X))),Ct=JA(dt(OA(X)));if(At&&(!ft||!Ct))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 X}var b=function(){function mA(O){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f(this,mA),!N.ownerPassword&&!N.userPassword)throw new Error("None of owner password and user password is defined.");this.document=O,this._setupEncryption(N)}return w(mA,null,[{key:"generateFileID",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},X="".concat(N.CreationDate.getTime(),"\n");for(var K in N)!N.hasOwnProperty(K)||(X+="".concat(K,": ").concat(N[K].valueOf(),"\n"));return Vt(h.default.MD5(X))}},{key:"generateRandomWordArray",value:function(N){return h.default.lib.WordArray.random(N)}},{key:"create",value:function(N){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return X.ownerPassword||X.userPassword?new mA(N,X):null}}]),w(mA,[{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 X={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,X,N);break;case 5:this._setupEncryptionV5(X,N)}this.dictionary=this.document.ref(X)}},{key:"_setupEncryptionV1V2V4",value:function(N,X,K){var fA,IA;switch(N){case 1:fA=2,this.keyBits=40,IA=function CA(){var mA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},O=-64;return mA.printing&&(O|=4),mA.modifying&&(O|=8),mA.copying&&(O|=16),mA.annotating&&(O|=32),O}(K.permissions);break;case 2:fA=3,this.keyBits=128,IA=wA(K.permissions);break;case 4:fA=4,this.keyBits=128,IA=wA(K.permissions)}var Ct,At=Lt(K.userPassword),rt=K.ownerPassword?Lt(K.ownerPassword):At,ft=function Bt(mA,O,N,X){for(var K=X,fA=mA>=3?51:1,IA=0;IA=3?20:1;for(var ft=0;ft=3?51:1,rt=0;rt=2&&(X.Length=this.keyBits),4===N&&(X.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},X.StmF="StdCF",X.StrF="StdCF"),X.R=fA,X.O=Vt(ft),X.U=Vt(Ct),X.P=IA}},{key:"_setupEncryptionV5",value:function(N,X){this.keyBits=256;var K=wA(X.permissions),fA=xt(X.userPassword),IA=X.ownerPassword?xt(X.ownerPassword):fA;this.encryptionKey=function jA(mA){return mA(32)}(mA.generateRandomWordArray);var At=function j(mA,O){var N=O(8),X=O(8);return h.default.SHA256(mA.clone().concat(N)).concat(N).concat(X)}(fA,mA.generateRandomWordArray),ft=function XA(mA,O,N){var X=h.default.SHA256(mA.clone().concat(O)),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,X,K).ciphertext}(fA,h.default.lib.WordArray.create(At.words.slice(10,12),8),this.encryptionKey),Ct=function KA(mA,O,N){var X=N(8),K=N(8);return h.default.SHA256(mA.clone().concat(X).concat(O)).concat(X).concat(K)}(IA,At,mA.generateRandomWordArray),Ft=function DA(mA,O,N,X){var K=h.default.SHA256(mA.clone().concat(O).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(X,K,fA).ciphertext}(IA,h.default.lib.WordArray.create(Ct.words.slice(10,12),8),At,this.encryptionKey),Tt=function ct(mA,O,N){var X=h.default.lib.WordArray.create([Rt(mA),4294967295,1415668834],12).concat(N(4));return h.default.AES.encrypt(X,O,{mode:h.default.mode.ECB,padding:h.default.pad.NoPadding}).ciphertext}(K,this.encryptionKey,mA.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=Vt(Ct),N.OE=Vt(Ft),N.U=Vt(At),N.UE=Vt(ft),N.P=K,N.Perms=Vt(Tt)}},{key:"getEncryptFn",value:function(N,X){var K,IA;if(this.version<5&&(K=this.encryptionKey.clone().concat(h.default.lib.WordArray.create([(255&N)<<24|(65280&N)<<8|N>>8&65280|255&X,(65280&X)<<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(ft){return Vt(h.default.RC4.encrypt(h.default.lib.WordArray.create(ft),fA).ciphertext)}}IA=4===this.version?h.default.MD5(K.concat(h.default.lib.WordArray.create([1933667412],4))):this.encryptionKey;var At=mA.generateRandomWordArray(16),rt={mode:h.default.mode.CBC,padding:h.default.pad.Pkcs7,iv:At};return function(ft){return Vt(At.clone().concat(h.default.AES.encrypt(h.default.lib.WordArray.create(ft),IA,rt).ciphertext))}}},{key:"end",value:function(){this.dictionary.end()}}]),mA}();function wA(){var mA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},O=-3904;return"lowResolution"===mA.printing&&(O|=4),"highResolution"===mA.printing&&(O|=2052),mA.modifying&&(O|=8),mA.copying&&(O|=16),mA.annotating&&(O|=32),mA.fillingForms&&(O|=256),mA.contentAccessibility&&(O|=512),mA.documentAssembly&&(O|=1024),O}function Lt(){for(var mA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",O=i.alloc(32),N=mA.length,X=0;X255)throw new Error("Password contains one or more invalid characters.");O[X]=K,X++}for(;X<32;)O[X]=Le[X-N],X++;return h.default.lib.WordArray.create(O)}function xt(){var mA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";mA=unescape(encodeURIComponent(k(mA)));for(var O=Math.min(127,mA.length),N=i.alloc(O),X=0;X>8&65280|mA>>24&255}function Vt(mA){for(var O=[],N=0;N>8*(3-N%4)&255);return i.from(O)}var Jt,bt,Xt,oe,In,dn,Le=[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],ie=bA.number,te=function(){function mA(O){f(this,mA),this.doc=O,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}return w(mA,[{key:"stop",value:function(N,X,K){if(null==K&&(K=1),X=this.doc._normalizeColor(X),0===this.stops.length)if(3===X.length)this._colorSpace="DeviceRGB";else if(4===X.length)this._colorSpace="DeviceCMYK";else{if(1!==X.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==X.length||"DeviceCMYK"===this._colorSpace&&4!==X.length||"DeviceGray"===this._colorSpace&&1!==X.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,X,K]),this}},{key:"setTransform",value:function(N,X,K,fA,IA,At){return this.transform=[N,X,K,fA,IA,At],this}},{key:"embed",value:function(N){var X,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 IA=[],At=[],rt=[],ft=0;ft>16,N>>8&255,255&N]}else Gn[O]&&(O=Gn[O]);return Array.isArray(O)?(3===O.length?O=O.map(function(X){return X/255}):4===O.length&&(O=O.map(function(X){return X/100})),O):null},_setColor:function(O,N){return O instanceof en?(O.apply(N),!0):Array.isArray(O)&&O[0]instanceof Xe?(O[0].apply(N,O[1]),!0):this._setColorCore(O,N)},_setColorCore:function(O,N){if(!(O=this._normalizeColor(O)))return!1;var X=N?"SCN":"scn",K=this._getColorSpace(O);return this._setColorSpace(K,N),O=O.join(" "),this.addContent("".concat(O," ").concat(X)),!0},_setColorSpace:function(O,N){var X=N?"CS":"cs";return this.addContent("/".concat(O," ").concat(X))},_getColorSpace:function(O){return 4===O.length?"DeviceCMYK":"DeviceRGB"},fillColor:function(O,N){return this._setColor(O,!1)&&this.fillOpacity(N),this._fillColor=[O,N],this},strokeColor:function(O,N){return this._setColor(O,!0)&&this.strokeOpacity(N),this},opacity:function(O){return this._doOpacity(O,O),this},fillOpacity:function(O){return this._doOpacity(O,null),this},strokeOpacity:function(O){return this._doOpacity(null,O),this},_doOpacity:function(O,N){var X,K;if(null!=O||null!=N){null!=O&&(O=Math.max(0,Math.min(1,O))),null!=N&&(N=Math.max(0,Math.min(1,N)));var fA="".concat(O,"_").concat(N);if(this._opacityRegistry[fA]){var IA=R(this._opacityRegistry[fA],2);X=IA[0],K=IA[1]}else{X={Type:"ExtGState"},null!=O&&(X.ca=O),null!=N&&(X.CA=N),(X=this.ref(X)).end();var At=++this._opacityCount;K="Gs".concat(At),this._opacityRegistry[fA]=[X,K]}return this.page.ext_gstates[K]=X,this.addContent("/".concat(K," gs"))}},linearGradient:function(O,N,X,K){return new Te(this,O,N,X,K)},radialGradient:function(O,N,X,K,fA,IA){return new nn(this,O,N,X,K,fA,IA)},pattern:function(O,N,X,K){return new Xe(this,O,N,X,K)}},Gn={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]};Jt=bt=Xt=oe=In=dn=0;var Fn={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},Yn={M:function(O,N){return Xt=oe=null,In=Jt=N[0],dn=bt=N[1],O.moveTo(Jt,bt)},m:function(O,N){return Xt=oe=null,In=Jt+=N[0],dn=bt+=N[1],O.moveTo(Jt,bt)},C:function(O,N){return Jt=N[4],bt=N[5],Xt=N[2],oe=N[3],O.bezierCurveTo.apply(O,L(N))},c:function(O,N){return O.bezierCurveTo(N[0]+Jt,N[1]+bt,N[2]+Jt,N[3]+bt,N[4]+Jt,N[5]+bt),Xt=Jt+N[2],oe=bt+N[3],Jt+=N[4],bt+=N[5]},S:function(O,N){return null===Xt&&(Xt=Jt,oe=bt),O.bezierCurveTo(Jt-(Xt-Jt),bt-(oe-bt),N[0],N[1],N[2],N[3]),Xt=N[0],oe=N[1],Jt=N[2],bt=N[3]},s:function(O,N){return null===Xt&&(Xt=Jt,oe=bt),O.bezierCurveTo(Jt-(Xt-Jt),bt-(oe-bt),Jt+N[0],bt+N[1],Jt+N[2],bt+N[3]),Xt=Jt+N[0],oe=bt+N[1],Jt+=N[2],bt+=N[3]},Q:function(O,N){return Xt=N[0],oe=N[1],O.quadraticCurveTo(N[0],N[1],Jt=N[2],bt=N[3])},q:function(O,N){return O.quadraticCurveTo(N[0]+Jt,N[1]+bt,N[2]+Jt,N[3]+bt),Xt=Jt+N[0],oe=bt+N[1],Jt+=N[2],bt+=N[3]},T:function(O,N){return null===Xt?(Xt=Jt,oe=bt):(Xt=Jt-(Xt-Jt),oe=bt-(oe-bt)),O.quadraticCurveTo(Xt,oe,N[0],N[1]),Xt=Jt-(Xt-Jt),oe=bt-(oe-bt),Jt=N[0],bt=N[1]},t:function(O,N){return null===Xt?(Xt=Jt,oe=bt):(Xt=Jt-(Xt-Jt),oe=bt-(oe-bt)),O.quadraticCurveTo(Xt,oe,Jt+N[0],bt+N[1]),Jt+=N[0],bt+=N[1]},A:function(O,N){return WA(O,Jt,bt,N),Jt=N[5],bt=N[6]},a:function(O,N){return N[5]+=Jt,N[6]+=bt,WA(O,Jt,bt,N),Jt=N[5],bt=N[6]},L:function(O,N){return Xt=oe=null,O.lineTo(Jt=N[0],bt=N[1])},l:function(O,N){return Xt=oe=null,O.lineTo(Jt+=N[0],bt+=N[1])},H:function(O,N){return Xt=oe=null,O.lineTo(Jt=N[0],bt)},h:function(O,N){return Xt=oe=null,O.lineTo(Jt+=N[0],bt)},V:function(O,N){return Xt=oe=null,O.lineTo(Jt,bt=N[0])},v:function(O,N){return Xt=oe=null,O.lineTo(Jt,bt+=N[0])},Z:function(O){return O.closePath(),Jt=In,bt=dn},z:function(O){return O.closePath(),Jt=In,bt=dn}},WA=function(O,N,X,K){var Kt,fA=R(K,7),Ot=yA(YA(fA[5],fA[6],fA[0],fA[1],fA[3],fA[4],fA[2],N,X));try{for(Ot.s();!(Kt=Ot.n()).done;){var Ee=tt.apply(void 0,L(Kt.value));O.bezierCurveTo.apply(O,L(Ee))}}catch(pe){Ot.e(pe)}finally{Ot.f()}},YA=function(O,N,X,K,fA,IA,At,rt,ft){var Ct=At*(Math.PI/180),Dt=Math.sin(Ct),Ft=Math.cos(Ct);X=Math.abs(X),K=Math.abs(K);var Tt=(Xt=Ft*(rt-O)*.5+Dt*(ft-N)*.5)*Xt/(X*X)+(oe=Ft*(ft-N)*.5-Dt*(rt-O)*.5)*oe/(K*K);Tt>1&&(X*=Tt=Math.sqrt(Tt),K*=Tt);var Ot=Ft/X,Kt=Dt/X,fe=-Dt/K,Ee=Ft/K,pe=Ot*rt+Kt*ft,rn=fe*rt+Ee*ft,Me=Ot*O+Kt*N,je=fe*O+Ee*N,Ke=1/((Me-pe)*(Me-pe)+(je-rn)*(je-rn))-.25;Ke<0&&(Ke=0);var Cn=Math.sqrt(Ke);IA===fA&&(Cn=-Cn);var Vn=.5*(pe+Me)-Cn*(je-rn),qn=.5*(rn+je)+Cn*(Me-pe),Nn=Math.atan2(rn-qn,pe-Vn),Jn=Math.atan2(je-qn,Me-Vn)-Nn;Jn<0&&1===IA?Jn+=2*Math.PI:Jn>0&&0===IA&&(Jn-=2*Math.PI);for(var ir=Math.ceil(Math.abs(Jn/(.5*Math.PI+.001))),dr=[],_n=0;_n0&&(K[K.length]=+fA),X[X.length]={cmd:N,args:K},K=[],fA="",IA=!1),N=Ct;else if([" ",","].includes(Ct)||"-"===Ct&&fA.length>0&&"e"!==fA[fA.length-1]||"."===Ct&&IA){if(0===fA.length)continue;K.length===At?(X[X.length]={cmd:N,args:K},K=[+fA],"M"===N&&(N="L"),"m"===N&&(N="l")):K[K.length]=+fA,IA="."===Ct,fA=["-","."].includes(Ct)?Ct:""}else fA+=Ct,"."===Ct&&(IA=!0)}}catch(Dt){rt.e(Dt)}finally{rt.f()}return fA.length>0&&(K.length===At?(X[X.length]={cmd:N,args:K},K=[+fA],"M"===N&&(N="L"),"m"===N&&(N="l")):K[K.length]=+fA),X[X.length]={cmd:N,args:K},X}(X);!function(O,N){Jt=bt=Xt=oe=In=dn=0;for(var X=0;X1&&void 0!==arguments[1]?arguments[1]:{},X=O;if(Array.isArray(O)||(O=[O,N.space||O]),!O.every(function(fA){return Number.isFinite(fA)&&fA>0}))throw new Error("dash(".concat(JSON.stringify(X),", ").concat(JSON.stringify(N),") invalid, lengths must be numeric and greater than zero"));return O=O.map(PA).join(" "),this.addContent("[".concat(O,"] ").concat(PA(N.phase||0)," d"))},undash:function(){return this.addContent("[] 0 d")},moveTo:function(O,N){return this.addContent("".concat(PA(O)," ").concat(PA(N)," m"))},lineTo:function(O,N){return this.addContent("".concat(PA(O)," ").concat(PA(N)," l"))},bezierCurveTo:function(O,N,X,K,fA,IA){return this.addContent("".concat(PA(O)," ").concat(PA(N)," ").concat(PA(X)," ").concat(PA(K)," ").concat(PA(fA)," ").concat(PA(IA)," c"))},quadraticCurveTo:function(O,N,X,K){return this.addContent("".concat(PA(O)," ").concat(PA(N)," ").concat(PA(X)," ").concat(PA(K)," v"))},rect:function(O,N,X,K){return this.addContent("".concat(PA(O)," ").concat(PA(N)," ").concat(PA(X)," ").concat(PA(K)," re"))},roundedRect:function(O,N,X,K,fA){null==fA&&(fA=0);var IA=(fA=Math.min(fA,.5*X,.5*K))*(1-zA);return this.moveTo(O+fA,N),this.lineTo(O+X-fA,N),this.bezierCurveTo(O+X-IA,N,O+X,N+IA,O+X,N+fA),this.lineTo(O+X,N+K-fA),this.bezierCurveTo(O+X,N+K-IA,O+X-IA,N+K,O+X-fA,N+K),this.lineTo(O+fA,N+K),this.bezierCurveTo(O+IA,N+K,O,N+K-IA,O,N+K-fA),this.lineTo(O,N+fA),this.bezierCurveTo(O,N+IA,O+IA,N,O+fA,N),this.closePath()},ellipse:function(O,N,X,K){null==K&&(K=X);var fA=X*zA,IA=K*zA,At=(O-=X)+2*X,rt=(N-=K)+2*K,ft=O+X,Ct=N+K;return this.moveTo(O,Ct),this.bezierCurveTo(O,Ct-IA,ft-fA,N,ft,N),this.bezierCurveTo(ft+fA,N,At,Ct-IA,At,Ct),this.bezierCurveTo(At,Ct+IA,ft+fA,rt,ft,rt),this.bezierCurveTo(ft-fA,rt,O,Ct+IA,O,Ct),this.closePath()},circle:function(O,N,X){return this.ellipse(O,N,X)},arc:function(O,N,X,K,fA,IA){null==IA&&(IA=!1);var At=2*Math.PI,rt=.5*Math.PI,ft=fA-K;Math.abs(ft)>At?ft=At:0!==ft&&IA!==ft<0&&(ft=(IA?-1:1)*At+ft);var Dt=Math.ceil(Math.abs(ft)/rt),Ft=ft/Dt,Tt=Ft/rt*zA*X,Ot=K,Kt=-Math.sin(Ot)*Tt,fe=Math.cos(Ot)*Tt,Ee=O+Math.cos(Ot)*X,pe=N+Math.sin(Ot)*X;this.moveTo(Ee,pe);for(var rn=0;rn1&&void 0!==arguments[1]?arguments[1]:{},K=O*Math.PI/180,fA=Math.cos(K),IA=Math.sin(K),At=X=0;if(null!=N.origin){var rt=R(N.origin,2),Ct=(At=rt[0])*IA+(X=rt[1])*fA;At-=At*fA-X*IA,X-=Ct}return this.transform(fA,IA,-IA,fA,At,X)},scale:function(O,N){var K,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==N&&(N=O),"object"==typeof N&&(X=N,N=O);var fA=K=0;if(null!=X.origin){var IA=R(X.origin,2);fA=IA[0],K=IA[1],fA-=O*fA,K-=N*K}return this.transform(O,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},LA=".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 mA(O){f(this,mA),this.contents=O,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[LA[N]];this.bbox=this.attributes.FontBBox.split(/\s+/).map(function(X){return+X}),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(mA,null,[{key:"open",value:function(N){return new mA(e.readFileSync(N,"utf8"))}}]),w(mA,[{key:"parse",value:function(){var K,N="",X=yA(this.contents.split("\n"));try{for(X.s();!(K=X.n()).done;){var IA,At,fA=K.value;if(IA=fA.match(/^Start(\w+)/))N=IA[1];else if(IA=fA.match(/^End(\w+)/))N="";else switch(N){case"FontMetrics":var rt=(IA=fA.match(/(^\w+)\s+(.*)/))[1],ft=IA[2];(At=this.attributes[rt])?(Array.isArray(At)||(At=this.attributes[rt]=[At]),At.push(ft)):this.attributes[rt]=ft;break;case"CharMetrics":if(!/^CH?\s/.test(fA))continue;var Ct=fA.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[Ct]=+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(Dt){X.e(Dt)}finally{X.f()}}},{key:"encodeText",value:function(N){for(var X=[],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 Ct=[1,2,3,4,5,6].map(function(Kt){return String.fromCharCode((K.id.charCodeAt(Kt)||73)+17)}).join("")+"+"+this.font.postscriptName,Dt=this.font.bbox,Ft=this.document.ref({Type:"FontDescriptor",FontName:Ct,Flags:rt,FontBBox:[Dt.minX*this.scale,Dt.minY*this.scale,Dt.maxX*this.scale,Dt.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 Tt={Type:"Font",Subtype:"CIDFontType0",BaseFont:Ct,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:Ft,W:[0,this.widths]};fA||(Tt.Subtype="CIDFontType2",Tt.CIDToGIDMap="Identity");var Ot=this.document.ref(Tt);return Ot.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:Ct,Encoding:"Identity-H",DescendantFonts:[Ot],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}},{key:"toUnicodeCmap",value:function(){var At,K=this.document.ref(),fA=[],IA=yA(this.unicode);try{for(IA.s();!(At=IA.n()).done;){var Dt,ft=[],Ct=yA(At.value);try{for(Ct.s();!(Dt=Ct.n()).done;){var Ft=Dt.value;Ft>65535&&(ft.push(Ut((Ft-=65536)>>>10&1023|55296)),Ft=56320|1023&Ft),ft.push(Ut(Ft))}}catch(Tt){Ct.e(Tt)}finally{Ct.f()}fA.push("<".concat(ft.join(" "),">"))}}catch(Tt){IA.e(Tt)}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(Ut(fA.length-1),"> [").concat(fA.join(" "),"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend")),K}}]),N}(VA),Wt=function(){function mA(){f(this,mA)}return w(mA,null,[{key:"open",value:function(N,X,K,fA){var IA;if("string"==typeof X){if(St.isStandardFont(X))return new St(N,X,fA);X=e.readFileSync(X)}if(i.isBuffer(X)?IA=a.default.create(X,K):X instanceof Uint8Array?IA=a.default.create(i.from(X),K):X instanceof ArrayBuffer&&(IA=a.default.create(i.from(new Uint8Array(X)),K)),null==IA)throw new Error("Not a supported font format or standard PDF font.");return new kt(N,IA,fA)}}]),mA}(),ne={initFonts:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Helvetica";this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},O&&this.font(O)},font:function(O,N,X){var K,fA;if("number"==typeof N&&(X=N,N=null),"string"==typeof O&&this._registeredFonts[O]){K=O;var IA=this._registeredFonts[O];O=IA.src,N=IA.family}else"string"!=typeof(K=N||O)&&(K=null);if(null!=X&&this.fontSize(X),fA=this._fontFamilies[K])return this._font=fA,this;var At="F".concat(++this._fontCount);return this._font=Wt.open(this,O,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(O){return this._fontSize=O,this},currentLineHeight:function(O){return null==O&&(O=!1),this._font.lineHeight(this._fontSize,O)},registerFont:function(O,N,X){return this._registeredFonts[O]={src:N,family:X},this}},Et=function(mA){m(N,mA);var O=F(N);function N(X,K){var fA;return f(this,N),(fA=O.call(this)).document=X,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(N,[{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,ft=Object.create(null);IA=At.nextBreak();){var Ct,Dt=K.slice((null!=rt?rt.position:void 0)||0,IA.position),Ft=null!=ft[Dt]?ft[Dt]:ft[Dt]=this.wordWidth(Dt);if(Ft>this.lineWidth+this.continuedX)for(var Tt=rt,Ot={};Dt.length;){var Kt,fe;Ft>this.spaceLeft?(Kt=Math.ceil(this.spaceLeft/(Ft/Dt.length)),fe=(Ft=this.wordWidth(Dt.slice(0,Kt)))<=this.spaceLeft&&Ktthis.spaceLeft&&Kt>0;Ee||fe;)Ee?Ee=(Ft=this.wordWidth(Dt.slice(0,--Kt)))>this.spaceLeft&&Kt>0:(Ee=(Ft=this.wordWidth(Dt.slice(0,++Kt)))>this.spaceLeft&&Kt>0,fe=Ft<=this.spaceLeft&&Ktthis.maxY||At>this.maxY)&&this.nextSection();var rt="",ft=0,Ct=0,Dt=0,Ft=this.document.y,Tt=function(){return fA.textWidth=ft+IA.wordSpacing*(Ct-1),fA.wordCount=Ct,fA.lineWidth=IA.lineWidth,Ft=IA.document.y,IA.emit("line",rt,fA,IA),Dt++};return this.emit("sectionStart",fA,this),this.eachWord(K,function(Ot,Kt,fe,Ee){if((null==Ee||Ee.required)&&(IA.emit("firstLine",fA,IA),IA.spaceLeft=IA.lineWidth),Kt<=IA.spaceLeft&&(rt+=Ot,ft+=Kt,Ct++),fe.required||Kt>IA.spaceLeft){var pe=IA.document.currentLineHeight(!0);if(null!=IA.height&&IA.ellipsis&&IA.document.y+2*pe>IA.maxY&&IA.column>=IA.columns){for(!0===IA.ellipsis&&(IA.ellipsis="\u2026"),rt=rt.replace(/\s+$/,""),ft=IA.wordWidth(rt+IA.ellipsis);rt&&ft>IA.lineWidth;)rt=rt.slice(0,-1).replace(/\s+$/,""),ft=IA.wordWidth(rt+IA.ellipsis);ft<=IA.lineWidth&&(rt+=IA.ellipsis),ft=IA.wordWidth(rt)}return fe.required&&(Kt>IA.spaceLeft&&(Tt(),rt=Ot,ft=Kt,Ct=1),IA.emit("lastLine",fA,IA)),Tt(),IA.document.y+pe>IA.maxY&&!IA.nextSection()?(Ct=0,rt="",!1):fe.required?(IA.spaceLeft=IA.lineWidth,rt="",ft=0,Ct=0):(IA.spaceLeft=IA.lineWidth-Kt,rt=Ot,ft=Kt,Ct=1)}return IA.spaceLeft-=Kt}),Ct>0&&(this.emit("lastLine",fA,this),Tt()),this.emit("sectionEnd",fA,this),!0===fA.continued?(Dt>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,L(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}(g.EventEmitter),Pt=bA.number,jt={initText:function(){return this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap:function(O){return this._lineGap=O,this},moveDown:function(O){return null==O&&(O=1),this.y+=this.currentLineHeight(!0)*O+this._lineGap,this},moveUp:function(O){return null==O&&(O=1),this.y-=this.currentLineHeight(!0)*O+this._lineGap,this},_text:function(O,N,X,K,fA){var IA=this;K=this._initOptions(N,X,K),O=null==O?"":"".concat(O),K.wordSpacing&&(O=O.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 Et(this,K)).on("line",fA),rt.on("firstLine",At)),this._wrapper=K.continued?rt:null,this._textOptions=K.continued?K:null,rt.wrap(O,K)}else{var Ct,ft=yA(O.split("\n"));try{for(ft.s();!(Ct=ft.n()).done;){var Dt=Ct.value;At(),fA(Dt,K)}}catch(Ft){ft.e(Ft)}finally{ft.f()}}return this},text:function(O,N,X,K){return this._text(O,N,X,K,this._line)},widthOfString:function(O){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._font.widthOfString(O,this._fontSize,N.features)+(N.characterSpacing||0)*(O.length-1)},heightOfString:function(O,N){var X=this,K=this.x,fA=this.y;(N=this._initOptions(N)).height=1/0;var IA=N.lineGap||this._lineGap||0;this._text(O,this.x,this.y,N,function(){return X.y+=X.currentLineHeight(!0)+IA});var At=this.y-fA;return this.x=K,this.y=fA,At},list:function(O,N,X,K,fA){var IA=this,At=(K=this._initOptions(N,X,K)).listType||"bullet",rt=Math.round(this._font.ascender/1e3*this._fontSize),ft=rt/2,Ct=K.bulletRadius||rt/3,Dt=K.textIndent||("bullet"===At?5*Ct:2*rt),Ft=K.bulletIndent||("bullet"===At?8*Ct:2*rt),Tt=1,Ot=[],Kt=[],fe=[];!function Me(je){for(var wn=1,Ke=0;Ke0&&void 0!==arguments[0]?arguments[0]:{},N=arguments.length>1?arguments[1]:void 0,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof O&&(X=O,O=null);var K=Object.assign({},X);if(this._textOptions)for(var fA in this._textOptions)"continued"!==fA&&void 0===K[fA]&&(K[fA]=this._textOptions[fA]);return null!=O&&(this.x=O),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(O){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=arguments.length>2?arguments[2]:void 0;this._fragment(O,this.x,this.y,N);var K=N.lineGap||this._lineGap||0;return X?this.y+=this.currentLineHeight(!0)+K:this.x+=this.widthOfString(O)},_fragment:function(O,N,X,K){var IA,At,rt,ft,Ct,Dt,fA=this;if(0!==(O="".concat(O).replace(/\n/g,"")).length){var Tt=K.wordSpacing||0,Ot=K.characterSpacing||0;if(K.width)switch(K.align||"left"){case"right":Ct=this.widthOfString(O.replace(/\s+$/,""),K),N+=K.lineWidth-Ct;break;case"center":N+=K.lineWidth/2-K.textWidth/2;break;case"justify":Dt=O.trim().split(/\s+/),Ct=this.widthOfString(O.replace(/\s+/g,""),K);var Kt=this.widthOfString(" ")+Ot;Tt=Math.max(0,(K.lineWidth-Ct)/Math.max(1,Dt.length-1)-Kt)}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 je,fe=K.textWidth+Tt*(K.wordCount-1)+Ot*(O.length-1);if(null!=K.link&&this.link(N,X,fe,this.currentLineHeight(),K.link),null!=K.goTo&&this.goTo(N,X,fe,this.currentLineHeight(),K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",N,X,null),K.underline){this.save(),K.stroke||this.strokeColor.apply(this,L(this._fillColor||[]));var Ee=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(Ee);var pe=X+this.currentLineHeight()-Ee;this.moveTo(N,pe),this.lineTo(N+fe,pe),this.stroke(),this.restore()}if(K.strike){this.save(),K.stroke||this.strokeColor.apply(this,L(this._fillColor||[]));var rn=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(rn);var Me=X+this.currentLineHeight()/2;this.moveTo(N,Me),this.lineTo(N+fe,Me),this.stroke(),this.restore()}this.save(),K.oblique&&(je="number"==typeof K.oblique?-Math.tan(K.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,N,X),this.transform(1,0,je,1,-je*IA,0),this.transform(1,0,0,1,-N,-X)),this.transform(1,0,0,-1,0,this.page.height),X=this.page.height-X-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(Pt(N)," ").concat(Pt(X)," Tm")),this.addContent("/".concat(this._font.id," ").concat(Pt(this._fontSize)," Tf"));var wn=K.fill&&K.stroke?2:K.stroke?1:0;if(wn&&this.addContent("".concat(wn," Tr")),Ot&&this.addContent("".concat(Pt(Ot)," Tc")),Tt){Dt=O.trim().split(/\s+/),Tt+=this.widthOfString(" ")+Ot,Tt*=1e3/this._fontSize,At=[],ft=[];var Cn,Ke=yA(Dt);try{for(Ke.s();!(Cn=Ke.n()).done;){var Nn=R(this._font.encode(Cn.value,K.features),2),Jn=Nn[1];At=At.concat(Nn[0]),ft=ft.concat(Jn);var ir={},dr=ft[ft.length-1];for(var _n in dr)ir[_n]=dr[_n];ir.xAdvance+=Tt,ft[ft.length-1]=ir}}catch(Or){Ke.e(Or)}finally{Ke.f()}}else{var Wn=R(this._font.encode(O,K.features),2);At=Wn[0],ft=Wn[1]}var br=this._fontSize/1e3,Mr=[],Gr=0,Hr=!1,si=function(Zn){if(Gr ").concat(Pt(-bi)))}return Gr=Zn},Jr=function(Zn){if(si(Zn),Mr.length>0)return fA.addContent("[".concat(Mr.join(" "),"] TJ")),Mr.length=0};for(rt=0;rt3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof N&&(K=N,N=null),N=null!=(Ct=null!=N?N:K.x)?Ct:this.x,X=null!=(Dt=null!=X?X:K.y)?Dt:this.y,"string"==typeof O&&(rt=this._imageRegistry[O]),rt||(rt=O.width&&O.height?O:this.openImage(O)),rt.obj||rt.embed(this),null==this.page.xobjects[rt.label]&&(this.page.xobjects[rt.label]=rt.obj);var Ft=K.width||rt.width,Tt=K.height||rt.height;if(K.width&&!K.height){var Ot=Ft/rt.width;Ft=rt.width*Ot,Tt=rt.height*Ot}else if(K.height&&!K.width){var Kt=Tt/rt.height;Ft=rt.width*Kt,Tt=rt.height*Kt}else if(K.scale)Ft=rt.width*K.scale,Tt=rt.height*K.scale;else if(K.fit){var fe=R(K.fit,2);(ft=rt.width/rt.height)>(At=fe[0])/(fA=fe[1])?(Ft=At,Tt=At/ft):(Tt=fA,Ft=fA*ft)}else if(K.cover){var Ee=R(K.cover,2);(ft=rt.width/rt.height)>(At=Ee[0])/(fA=Ee[1])?(Tt=fA,Ft=fA*ft):(Ft=At,Tt=At/ft)}return(K.fit||K.cover)&&("center"===K.align?N=N+At/2-Ft/2:"right"===K.align&&(N=N+At-Ft),"center"===K.valign?X=X+fA/2-Tt/2:"bottom"===K.valign&&(X=X+fA-Tt)),null!=K.link&&this.link(N,X,Ft,Tt,K.link),null!=K.goTo&&this.goTo(N,X,Ft,Tt,K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",N,X,null),this.y===X&&(this.y+=Tt),this.save(),this.transform(Ft,0,0,-Tt,N,X+Tt),this.addContent("/".concat(rt.label," Do")),this.restore(),this},openImage:function(O){var N;return"string"==typeof O&&(N=this._imageRegistry[O]),N||(N=ge.open(O,"I".concat(++this._imageCount)),"string"==typeof O&&(this._imageRegistry[O]=N)),N}},Ge={annotate:function(O,N,X,K,fA){for(var IA in fA.Type="Annot",fA.Rect=this._convertRect(O,N,X,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(O,N,X,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(O,N,X,K,IA)},goTo:function(O,N,X,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(O,N,X,K,IA)},link:function(O,N,X,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=R(this._convertRect(O,N,X,K),4),rt=At[0],ft=At[1],Ct=At[2],Dt=At[3];return fA.QuadPoints=[rt,Dt,Ct,Dt,rt,ft,Ct,ft],fA.Contents=new String,this.annotate(O,N,X,K,fA)},highlight:function(O,N,X,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(O,N,X,K,fA)},underline:function(O,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Underline",this._markup(O,N,X,K,fA)},strike:function(O,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="StrikeOut",this._markup(O,N,X,K,fA)},lineAnnotation:function(O,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Line",fA.Contents=new String,fA.L=[O,this.page.height-N,X,this.page.height-K],this.annotate(O,N,X,K,fA)},rectAnnotation:function(O,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Square",fA.Contents=new String,this.annotate(O,N,X,K,fA)},ellipseAnnotation:function(O,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Circle",fA.Contents=new String,this.annotate(O,N,X,K,fA)},textAnnotation:function(O,N,X,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(O,N,X,K,IA)},fileAnnotation:function(O,N,X,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(O,N,X,K,IA)},_convertRect:function(O,N,X,K){var fA=N;N+=K;var IA=O+X,At=R(this._ctm,6),rt=At[0],ft=At[1],Ct=At[2],Dt=At[3],Ft=At[4],Tt=At[5];return[O=rt*O+Ct*N+Ft,N=ft*O+Dt*N+Tt,IA=rt*IA+Ct*fA+Ft,fA=ft*IA+Dt*fA+Tt]}},Se=function(){function mA(O,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{expanded:!1};f(this,mA),this.document=O,this.options=fA,this.outlineData={},null!==K&&(this.outlineData.Dest=[K.dictionary,"Fit"]),null!==N&&(this.outlineData.Parent=N),null!==X&&(this.outlineData.Title=new String(X)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}return w(mA,[{key:"addItem",value:function(N){var K=new mA(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 X=this.children[this.children.length-1];this.outlineData.First=this.children[0].dictionary,this.outlineData.Last=X.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"}},Ne=function(){function mA(O,N){f(this,mA),this.refs=[{pageRef:O,mcid:N}]}return w(mA,[{key:"push",value:function(N){var X=this;N.refs.forEach(function(K){return X.refs.push(K)})}}]),mA}(),$e=function(){function mA(O,N){var X=this,K=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},fA=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f(this,mA),this.document=O,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=O.ref({S:N});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 X.add(At)}),this.end())}return w(mA,[{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 mA&&(N.setParent(this.dictionary),this._attached&&N.setAttached()),N instanceof Ne&&this._addContentToParentTree(N),"function"==typeof N&&this._attached&&(N=this._contentForClosure(N)),this._children.push(N),this}},{key:"_addContentToParentTree",value:function(N){var X=this;N.refs.forEach(function(K){var fA=K.pageRef,IA=K.mcid;X.document.getStructParentTree().get(fA.data.StructParents)[IA]=X.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(X,K){X instanceof mA&&X.setAttached(),"function"==typeof X&&(N._children[K]=N._contentForClosure(X))}),this._attached=!0,this._flush())}},{key:"end",value:function(){this._ended||(this._children.filter(function(N){return N instanceof mA}).forEach(function(N){return N.end()}),this._ended=!0,this._flush())}},{key:"_isValidChild",value:function(N){return N instanceof mA||N instanceof Ne||"function"==typeof N}},{key:"_contentForClosure",value:function(N){var X=this.document.markStructureContent(this.dictionary.data.S);return N(),this.document.endMarkedContent(),this._addContentToParentTree(X),X}},{key:"_isFlushable",value:function(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(function(N){return"function"!=typeof N&&(!(N instanceof mA)||N._isFlushable())})}},{key:"_flush",value:function(){var N=this;this._flushed||!this._isFlushable()||(this.dictionary.data.K=[],this._children.forEach(function(X){return N._flushChild(X)}),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}},{key:"_flushChild",value:function(N){var X=this;N instanceof mA&&this.dictionary.data.K.push(N.dictionary),N instanceof Ne&&N.refs.forEach(function(K){var fA=K.pageRef,IA=K.mcid;X.dictionary.data.Pg||(X.dictionary.data.Pg=fA),X.dictionary.data.K.push(X.dictionary.data.Pg===fA?IA:{Type:"MCR",Pg:fA,MCID:IA})})}}]),mA}(),yn=function(mA){m(N,mA);var O=F(N);function N(){return f(this,N),O.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}(_),an={initMarkings:function(O){this.structChildren=[],O.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent:function(O){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("Artifact"===O||N&&N.mcid){var X=0;for(this.page.markings.forEach(function(fA){(X||fA.structContent||"Artifact"===fA.tag)&&X++});X--;)this.endMarkedContent()}if(!N)return this.page.markings.push({tag:O}),this.addContent("/".concat(O," BMC")),this;this.page.markings.push({tag:O,options:N});var K={};return void 0!==N.mcid&&(K.MCID=N.mcid),"Artifact"===O&&("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"===O&&(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(O," ").concat(bA.convert(K)," BDC")),this},markStructureContent:function(O){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=this.getStructParentTree().get(this.page.structParentTreeKey),K=X.length;X.push(null),this.markContent(O,S(S({},N),{},{mcid:K}));var fA=new Ne(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(O){return new $e(this,O,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)},addStructure:function(O){var N=this.getStructTreeRoot();return O.setParent(N),O.setAttached(),this.structChildren.push(O),N.data.K||(N.data.K=[]),N.data.K.push(O.dictionary),this},initPageMarkings:function(O){var N=this;O.forEach(function(X){if(X.structContent){var K=X.structContent,fA=N.markStructureContent(X.tag,X.options);K.push(fA),N.page.markings.slice(-1)[0].structContent=K}else N.markContent(X.tag,X.options)})},endPageMarkings:function(O){var N=O.markings;return N.forEach(function(){return O.write("EMC")}),O.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 yn,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree:function(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function(){this.getMarkInfoDictionary();var O=this.getStructTreeRoot(),N=O.data.ParentTreeNextKey++;return O.data.ParentTree.add(N,[]),N},endMarkings:function(){var O=this._root.data.StructTreeRoot;O&&(O.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},xn={left:0,center:1,right:2},qe={value:"V",defaultValue:"DV"},fn={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},cn_number={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},cn_percent={nDec:0,sepComma:!1},Xn={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 O={Fields:[],NeedAppearances:!0,DA:new String("/".concat(this._font.id," 0 Tf 0 g")),DR:{Font:{}}};O.DR.Font[this._font.id]=this._font.ref();var N=this.ref(O);return this._root.data.AcroForm=N,this},endAcroForm:function(){var O=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(X){N[X]=O._acroform.fonts[X]}),this._root.data.AcroForm.data.Fields.forEach(function(X){O._endChild(X)}),this._root.data.AcroForm.end()}return this},_endChild:function(O){var N=this;return Array.isArray(O.data.Kids)&&(O.data.Kids.forEach(function(X){N._endChild(X)}),O.end()),this},formField:function(O){var X=this._fieldDict(O,null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),K=this.ref(X);return this._addToParent(K),K},formAnnotation:function(O,N,X,K,fA,IA){var rt=this._fieldDict(O,N,arguments.length>6&&void 0!==arguments[6]?arguments[6]:{});return rt.Subtype="Widget",void 0===rt.F&&(rt.F=4),this.annotate(X,K,fA,IA,rt),this._addToParent(this.page.annotations[this.page.annotations.length-1])},formText:function(O,N,X,K,fA){return this.formAnnotation(O,"text",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formPushButton:function(O,N,X,K,fA){return this.formAnnotation(O,"pushButton",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCombo:function(O,N,X,K,fA){return this.formAnnotation(O,"combo",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formList:function(O,N,X,K,fA){return this.formAnnotation(O,"list",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formRadioButton:function(O,N,X,K,fA){return this.formAnnotation(O,"radioButton",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCheckbox:function(O,N,X,K,fA){return this.formAnnotation(O,"checkbox",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},_addToParent:function(O){var N=O.data.Parent;return N?(N.data.Kids||(N.data.Kids=[]),N.data.Kids.push(O)):this._root.data.AcroForm.data.Fields.push(O),this},_fieldDict:function(O,N){var X=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({},X);return null!==N&&(K=this._resolveType(N,X)),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(O),K.parent&&(K.Parent=K.parent,delete K.parent),K},_resolveType:function(O,N){if("text"===O)N.FT="Tx";else if("pushButton"===O)N.FT="Btn",N.pushButton=!0;else if("radioButton"===O)N.FT="Btn",N.radioButton=!0;else if("checkbox"===O)N.FT="Btn";else if("combo"===O)N.FT="Ch",N.combo=!0;else{if("list"!==O)throw new Error("Invalid form annotation type '".concat(O,"'"));N.FT="Ch"}return N},_resolveFormat:function(O){var N=O.format;if(N&&N.type){var X,K,fA="";if(void 0!==fn[N.type])X="AFSpecial_Keystroke",K="AFSpecial_Format",fA=fn[N.type];else{var IA=N.type.charAt(0).toUpperCase()+N.type.slice(1);if(X="AF".concat(IA,"_Keystroke"),K="AF".concat(IA,"_Format"),"date"===N.type)X+="Ex",fA=String(N.param);else if("time"===N.type)fA=String(N.param);else if("number"===N.type){var At=Object.assign({},cn_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({},cn_percent,N);fA=String([String(rt.nDec),rt.sepComma?"0":"1"].join(","))}}O.AA=O.AA?O.AA:{},O.AA.K={S:"JavaScript",JS:new String("".concat(X,"(").concat(fA,");"))},O.AA.F={S:"JavaScript",JS:new String("".concat(K,"(").concat(fA,");"))}}return delete O.format,O},_resolveColors:function(O){var N=this._normalizeColor(O.backgroundColor);return N&&(O.MK||(O.MK={}),O.MK.BG=N),(N=this._normalizeColor(O.borderColor))&&(O.MK||(O.MK={}),O.MK.BC=N),delete O.backgroundColor,delete O.borderColor,O},_resolveFlags:function(O){var N=0;return Object.keys(O).forEach(function(X){Mn[X]&&(N|=Mn[X],delete O[X])}),0!==N&&(O.Ff=O.Ff?O.Ff:0,O.Ff|=N),O},_resolveJustify:function(O){var N=0;return void 0!==O.align&&("number"==typeof xn[O.align]&&(N=xn[O.align]),delete O.align),0!==N&&(O.Q=N),O},_resolveFont:function(O){if(null===this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){O.DR={Font:{}};var N=O.fontSize||0;O.DR.Font[this._font.id]=this._font.ref(),O.DA=new String("/".concat(this._font.id," ").concat(N," Tf 0 g"))}return O},_resolveStrings:function(O){var N=[];function X(K){if(Array.isArray(K))for(var fA=0;fA1&&void 0!==arguments[1]?arguments[1]:{};N.name=N.name||O;var K,X={Type:"EmbeddedFile",Params:{}};if(!O)throw new Error("No src specified");if(i.isBuffer(O))K=O;else if(O instanceof ArrayBuffer)K=i.from(new Uint8Array(O));else{var fA;if(fA=/^data:(.*);base64,(.*)$/.exec(O))fA[1]&&(X.Subtype=fA[1].replace("/","#2F")),K=i.from(fA[2],"base64");else{if(!(K=e.readFileSync(O)))throw new Error("Could not read contents of file at filepath ".concat(O));var IA=e.statSync(O),rt=IA.ctime;X.Params.CreationDate=IA.birthtime,X.Params.ModDate=rt}}N.creationDate instanceof Date&&(X.Params.CreationDate=N.creationDate),N.modifiedDate instanceof Date&&(X.Params.ModDate=N.modifiedDate),N.type&&(X.Subtype=N.type.replace("/","#2F"));var Ct,ft=h.default.MD5(h.default.lib.WordArray.create(new Uint8Array(K)));X.Params.CheckSum=new String(ft),X.Params.Size=K.byteLength,this._fileRegistry||(this._fileRegistry={});var Dt=this._fileRegistry[N.name];Dt&&Tr(X,Dt)?Ct=Dt.ref:((Ct=this.ref(X)).end(K),this._fileRegistry[N.name]=S(S({},X),{},{ref:Ct}));var Ft={Type:"Filespec",F:new String(N.name),EF:{F:Ct},UF:new String(N.name)};N.description&&(Ft.Desc=new String(N.description));var Tt=this.ref(Ft);return Tt.end(),N.hidden||this.addNamedEmbeddedFile(N.name,Tt),Tt}};function Tr(mA,O){return mA.Subtype===O.Subtype&&mA.Params.CheckSum.toString()===O.Params.CheckSum.toString()&&mA.Params.Size===O.Params.Size&&mA.Params.CreationDate===O.Params.CreationDate&&mA.Params.ModDate===O.Params.ModDate}var rr=function(mA){m(N,mA);var O=F(N);function N(){var X,K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(f(this,N),(X=O.call(this,K)).options=K,K.pdfVersion){case"1.4":X.version=1.4;break;case"1.5":X.version=1.5;break;case"1.6":X.version=1.6;break;case"1.7":case"1.7ext3":X.version=1.7;break;default:X.version=1.3}X.compress=null==X.options.compress||X.options.compress,X._pageBuffer=[],X._pageBufferStart=0,X._offsets=[],X._waiting=0,X._ended=!1,X._offset=0;var fA=X.ref({Type:"Pages",Count:0,Kids:[]}),IA=X.ref({Dests:new W});if(X._root=X.ref({Type:"Catalog",Pages:fA,Names:IA}),X.options.lang&&(X._root.data.Lang=new String(X.options.lang)),X.page=null,X.initColor(),X.initVector(),X.initFonts(K.font),X.initText(),X.initImages(),X.initOutline(),X.initMarkings(K),X.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},X.options.info)for(var At in X.options.info)X.info[At]=X.options.info[At];return X.options.displayTitle&&(X._root.data.ViewerPreferences=X.ref({DisplayDocTitle:!0})),X._id=b.generateFileID(X.info),X._security=b.create(U(X),K),X._write("%PDF-".concat(X.version)),X._write("%\xff\xff\xff\xff"),!1!==X.options.autoFirstPage&&X.addPage(),X}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 IA,fA=yA(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>R&AA]},getCombiningClass:function(vA){var nA=d.get(vA);return m.combiningClasses[nA>>L&lA]},getScript:function(vA){var nA=d.get(vA);return m.scripts[nA>>Z&pA]},getEastAsianWidth:function(vA){var nA=d.get(vA);return m.eaw[nA>>10&cA]},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 lt=2+(31&EA);lt>0;)nA*=10,lt--;return nA}nA=(EA>>2)-191;for(var TA=1+(3&EA);TA>0;)nA*=60,TA--;return nA},isAlphabetic:uA,isDigit:QA,isPunctuation:SA,isLowerCase:bA,isUpperCase:ZA,isTitleCase:q,isWhiteSpace:J,isBaseForm:$,isMark:W});I.default=Q},4781:function(Y,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),o=n(1753).swap32LE;Y.exports=function(){function D(T){var F="function"==typeof T.readUInt32BE&&"function"==typeof T.slice;if(F||T instanceof Uint8Array){var R;if(F)this.highStart=T.readUInt32LE(0),this.errorValue=T.readUInt32LE(4),R=T.readUInt32LE(8),T=T.slice(12);else{var L=new DataView(T.buffer);this.highStart=L.getUint32(0,!0),this.errorValue=L.getUint32(4,!0),R=L.getUint32(8,!0),T=T.subarray(12)}T=c(T,new Uint8Array(R)),T=c(T,new Uint8Array(R)),o(T),this.data=new Uint32Array(T.buffer)}else{var Z=T;this.data=Z.data,this.highStart=Z.highStart,this.errorValue=Z.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(Y,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,g,E){var u=a[g];a[g]=a[E],a[E]=u};Y.exports={swap32LE:function(a){c&&function(a){for(var g=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(LA=tt.match(/^<\/([\w:.-]+)\s*>/,!0))?(LA[1]===VA.nodeName||(re('parseXml: tag not matching, opening "'+VA.nodeName+'" & closing "'+LA[1]+'"'),zA=!0),VA):(re('parseXml: tag not matching, opening "'+VA.nodeName+'" & not closing'),zA=!0,VA)}if(tt.match(/^\/>/))return VA;re('parseXml: tag could not be parsed "'+VA.nodeName+'"'),zA=!0}else{if(LA=tt.match(/^/))return new YA(null,8,LA,zA);if(LA=tt.match(/^<\?[\s\S]*?\?>/))return new YA(null,7,LA,zA);if(LA=tt.match(/^/))return new YA(null,10,LA,zA);if(LA=tt.match(/^/,!0))return new YA("#cdata-section",4,LA[1],zA);if(LA=tt.match(/^([^<]+)/,!0))return new YA("#text",3,AA(LA[1]),zA)}};PA=HA();)1!==PA.nodeType||UA?(1===PA.nodeType||3===PA.nodeType&&""!==PA.nodeValue.trim())&&re("parseXml: data after document end has been discarded"):UA=PA;return tt.matchAll()&&re("parseXml: parsing error"),UA}function AA(WA){return WA.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 lA(WA){var YA,tt;return WA=(WA||"").trim(),(YA=E[WA])?tt=[YA.slice(),1]:(YA=WA.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=WA.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=WA.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=WA.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=WA.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]),nn?nn(tt,WA):tt}function pA(WA,YA,tt){var UA=WA[0].slice(),PA=WA[1]*YA;if(tt){for(var zA=0;zA=0;YA--)WA=cA(Gn[YA].savedMatrix,WA);return WA}function yA(){return(new qA).M(0,0).L(o.page.width,0).L(o.page.width,o.page.height).L(0,o.page.height).transform(xA(BA())).getBoundingBox()}function xA(WA){var YA=WA[0]*WA[3]-WA[1]*WA[2];return[WA[3]/YA,-WA[1]/YA,-WA[2]/YA,WA[0]/YA,(WA[2]*WA[5]-WA[3]*WA[4])/YA,(WA[1]*WA[4]-WA[0]*WA[5])/YA]}function _(WA){var YA=bA(WA[0]),tt=bA(WA[1]),UA=bA(WA[2]),PA=bA(WA[3]),zA=bA(WA[4]),HA=bA(WA[5]);if(SA(YA*PA-tt*UA,0))return[YA,tt,UA,PA,zA,HA]}function MA(WA){var YA=WA[2]||0,tt=WA[1]||0,UA=WA[0]||0;if(QA(YA,0)&&QA(tt,0))return[];if(QA(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)]:QA(PA,0)?[-tt/(2*YA)]:[]}function uA(WA,YA){return(YA[0]||0)+(YA[1]||0)*WA+(YA[2]||0)*WA*WA+(YA[3]||0)*WA*WA*WA}function QA(WA,YA){return Math.abs(WA-YA)<1e-10}function SA(WA,YA){return Math.abs(WA-YA)>=1e-10}function bA(WA){return WA>-1e21&&WA<1e21?Math.round(1e6*WA)/1e6:0}function q(WA){for(var UA,YA=new It((WA||"").trim()),tt=[1,0,0,1,0,0];UA=YA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){for(var PA=UA[1],zA=[],HA=new It(UA[2].trim()),$A=void 0;$A=HA.matchNumber();)zA.push(Number($A)),HA.matchSeparator();if("matrix"===PA&&6===zA.length)tt=cA(tt,[zA[0],zA[1],zA[2],zA[3],zA[4],zA[5]]);else if("translate"===PA&&2===zA.length)tt=cA(tt,[1,0,0,1,zA[0],zA[1]]);else if("translate"===PA&&1===zA.length)tt=cA(tt,[1,0,0,1,zA[0],0]);else if("scale"===PA&&2===zA.length)tt=cA(tt,[zA[0],0,0,zA[1],0,0]);else if("scale"===PA&&1===zA.length)tt=cA(tt,[zA[0],0,0,zA[0],0,0]);else if("rotate"===PA&&3===zA.length){var LA=zA[0]*Math.PI/180;tt=cA(tt,[1,0,0,1,zA[1],zA[2]],[Math.cos(LA),Math.sin(LA),-Math.sin(LA),Math.cos(LA),0,0],[1,0,0,1,-zA[1],-zA[2]])}else if("rotate"===PA&&1===zA.length){var ot=zA[0]*Math.PI/180;tt=cA(tt,[Math.cos(ot),Math.sin(ot),-Math.sin(ot),Math.cos(ot),0,0])}else if("skewX"===PA&&1===zA.length){var VA=zA[0]*Math.PI/180;tt=cA(tt,[1,0,Math.tan(VA),1,0,0])}else{if("skewY"!==PA||1!==zA.length)return;var Qt=zA[0]*Math.PI/180;tt=cA(tt,[1,Math.tan(Qt),0,1,0,0])}YA.matchSeparator()}if(!YA.matchAll())return tt}function J(WA,YA,tt,UA,PA,zA){var HA=(WA||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],$A=HA[1]||HA[4]||"meet",VA=YA/UA,Qt=tt/PA,St={Min:0,Mid:.5,Max:1}[HA[2]||"Mid"]-(zA||0),Ut={Min:0,Mid:.5,Max:1}[HA[3]||"Mid"]-(zA||0);return"slice"===$A?Qt=VA=Math.max(VA,Qt):"meet"===$A&&(Qt=VA=Math.min(VA,Qt)),[VA,0,0,Qt,St*(YA-UA*VA),Ut*(tt-PA*Qt)]}function $(WA){var YA=Object.create(null);WA=(WA||"").trim().split(/;/);for(var tt=0;ttue&&(Ht=ue,ue=ce,ce=Ht),Zt>ge&&(Ht=ge,ge=Zt,Zt=Ht);for(var ve=MA(St),Ge=0;Ge=0&&ve[Ge]<=1){var Se=uA(ve[Ge],VA);Seue&&(ue=Se)}for(var xe=MA(Ut),Ne=0;Ne=0&&xe[Ne]<=1){var $e=uA(xe[Ne],Qt);$ege&&(ge=$e)}return[ce,Zt,ue,ge]},this.getPointAtLength=function(Ht){if(QA(Ht,0))return this.startPoint;if(QA(Ht,this.totalLength))return this.endPoint;if(!(Ht<0||Ht>this.totalLength))for(var ce=1;ce<=ot;ce++){var Zt=kt[ce-1],ue=kt[ce];if(Zt<=Ht&&Ht<=ue){var ge=(ce-(ue-Ht)/(ue-Zt))/ot,ve=uA(ge,VA),Ge=uA(ge,Qt),Se=uA(ge,St),xe=uA(ge,Ut);return[ve,Ge,Math.atan2(xe,Se)]}}}},JA=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(zA){if(zA>=0&&zA<=this.totalLength){var HA=zA/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]]}}},qA=function WA(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;var zA,HA,$A,YA=0,tt=0,UA=0,PA=0;this.move=function(LA,ot){return YA=UA=LA,tt=PA=ot,null},this.line=function(LA,ot){var VA=new JA(UA,PA,LA,ot);return UA=LA,PA=ot,VA},this.curve=function(LA,ot,VA,Qt,St,Ut){var kt=new Mt(UA,PA,LA,ot,VA,Qt,St,Ut);return UA=St,PA=Ut,kt},this.close=function(){var LA=new JA(UA,PA,YA,tt);return UA=YA,PA=tt,LA},this.addCommand=function(LA){this.pathCommands.push(LA);var ot=this[LA[0]].apply(this,LA.slice(3));ot&&(ot.hasStart=LA[1],ot.hasEnd=LA[2],this.startPoint=this.startPoint||ot.startPoint,this.endPoint=ot.endPoint,this.pathSegments.push(ot),this.totalLength+=ot.totalLength)},this.M=function(LA,ot){return this.addCommand(["move",!0,!0,LA,ot]),zA="M",this},this.m=function(LA,ot){return this.M(UA+LA,PA+ot)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),zA="Z",this},this.L=function(LA,ot){return this.addCommand(["line",!0,!0,LA,ot]),zA="L",this},this.l=function(LA,ot){return this.L(UA+LA,PA+ot)},this.H=function(LA){return this.L(LA,PA)},this.h=function(LA){return this.L(UA+LA,PA)},this.V=function(LA){return this.L(UA,LA)},this.v=function(LA){return this.L(UA,PA+LA)},this.C=function(LA,ot,VA,Qt,St,Ut){return this.addCommand(["curve",!0,!0,LA,ot,VA,Qt,St,Ut]),zA="C",HA=VA,$A=Qt,this},this.c=function(LA,ot,VA,Qt,St,Ut){return this.C(UA+LA,PA+ot,UA+VA,PA+Qt,UA+St,PA+Ut)},this.S=function(LA,ot,VA,Qt){return this.C(UA+("C"===zA?UA-HA:0),PA+("C"===zA?PA-$A:0),LA,ot,VA,Qt)},this.s=function(LA,ot,VA,Qt){return this.C(UA+("C"===zA?UA-HA:0),PA+("C"===zA?PA-$A:0),UA+LA,PA+ot,UA+VA,PA+Qt)},this.Q=function(LA,ot,VA,Qt){return this.addCommand(["curve",!0,!0,UA+.6666666666666666*(LA-UA),PA+2/3*(ot-PA),VA+2/3*(LA-VA),Qt+2/3*(ot-Qt),VA,Qt]),zA="Q",HA=LA,$A=ot,this},this.q=function(LA,ot,VA,Qt){return this.Q(UA+LA,PA+ot,UA+VA,PA+Qt)},this.T=function(LA,ot){return this.Q(UA+("Q"===zA?UA-HA:0),PA+("Q"===zA?PA-$A:0),LA,ot)},this.t=function(LA,ot){return this.Q(UA+("Q"===zA?UA-HA:0),PA+("Q"===zA?PA-$A:0),UA+LA,PA+ot)},this.A=function(LA,ot,VA,Qt,St,Ut,kt){if(QA(LA,0)||QA(ot,0))this.addCommand(["line",!0,!0,Ut,kt]);else{VA*=Math.PI/180,LA=Math.abs(LA),ot=Math.abs(ot),Qt=1*!!Qt,St=1*!!St;var Wt=Math.cos(VA)*(UA-Ut)/2+Math.sin(VA)*(PA-kt)/2,ne=Math.cos(VA)*(PA-kt)/2-Math.sin(VA)*(UA-Ut)/2,Et=Wt*Wt/(LA*LA)+ne*ne/(ot*ot);Et>1&&(LA*=Math.sqrt(Et),ot*=Math.sqrt(Et));var Pt=Math.sqrt(Math.max(0,LA*LA*ot*ot-LA*LA*ne*ne-ot*ot*Wt*Wt)/(LA*LA*ne*ne+ot*ot*Wt*Wt)),jt=(Qt===St?-1:1)*Pt*LA*ne/ot,Ht=(Qt===St?1:-1)*Pt*ot*Wt/LA,ce=Math.cos(VA)*jt-Math.sin(VA)*Ht+(UA+Ut)/2,Zt=Math.sin(VA)*jt+Math.cos(VA)*Ht+(PA+kt)/2,ue=Math.atan2((ne-Ht)/ot,(Wt-jt)/LA),ge=Math.atan2((-ne-Ht)/ot,(-Wt-jt)/LA);0===St&&ge-ue>0?ge-=2*Math.PI:1===St&&ge-ue<0&&(ge+=2*Math.PI);for(var ve=Math.ceil(Math.abs(ge-ue)/(Math.PI/bn)),Ge=0;GeLA[2]&&(LA[2]=Qt[2]),Qt[1]LA[3]&&(LA[3]=Qt[3]);return LA[0]===1/0&&(LA[0]=0),LA[1]===1/0&&(LA[1]=0),LA[2]===-1/0&&(LA[2]=0),LA[3]===-1/0&&(LA[3]=0),LA},this.getPointAtLength=function(LA){if(LA>=0&&LA<=this.totalLength){for(var ot,VA=0;VAPA.selector.specificity||(YA[zA]=PA.css[zA],tt[zA]=PA.selector.specificity)}return YA}(YA),this.allowedChildren=[],this.attr=function(zA){if("function"==typeof YA.getAttribute)return YA.getAttribute(zA)},this.resolveUrl=function(zA){var HA=(zA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],$A=HA[1]||HA[3]||HA[5]||HA[7],LA=HA[2]||HA[4]||HA[6]||HA[8];if(LA){if(!$A){var ot=l.getElementById(LA);if(ot)return-1===this.stack.indexOf(ot)?ot:void re('SVGtoPDF: loop of circular references for id "'+LA+'"')}if(Xe){var VA=Jt[$A];if(!VA){(function ZA(WA){return"object"==typeof WA&&null!==WA&&"number"==typeof WA.length})(VA=Xe($A))||(VA=[VA]);for(var Qt=0;Qt=0&&$A[3]>=0?$A:HA},this.getPercent=function(zA,HA){var $A=this.attr(zA),LA=new It(($A||"").trim()),Qt=LA.matchNumber();return!Qt||(LA.match("%")&&(Qt*=.01),LA.matchAll())?HA:Math.max(0,Math.min(1,Qt))},this.chooseValue=function(zA){for(var HA=0;HA=0&&(LA=VA);break;case"stroke-miterlimit":null!=(VA=parseFloat($A))&&VA>=1&&(LA=VA);break;case"word-spacing":case"letter-spacing":LA=this.computeLength($A,this.getViewport());break;case"stroke-dashoffset":if(null!=(LA=this.computeLength($A,this.getViewport()))&&LA<0)for(var ne=this.get("stroke-dasharray"),Et=0;Et0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,ot){var VA="userSpaceOnUse"!==this.attr("patternUnits"),Qt="objectBoundingBox"===this.attr("patternContentUnits"),St=this.getLength("x",VA?1:this.getParentVWidth(),0),Ut=this.getLength("y",VA?1:this.getParentVHeight(),0),kt=this.getLength("width",VA?1:this.getParentVWidth(),0),Wt=this.getLength("height",VA?1:this.getParentVHeight(),0);Qt&&!VA?(St=(St-HA[0])/(HA[2]-HA[0])||0,Ut=(Ut-HA[1])/(HA[3]-HA[1])||0,kt=kt/(HA[2]-HA[0])||0,Wt=Wt/(HA[3]-HA[1])||0):!Qt&&VA&&(St=HA[0]+St*(HA[2]-HA[0]),Ut=HA[1]+Ut*(HA[3]-HA[1]),kt*=HA[2]-HA[0],Wt*=HA[3]-HA[1]);var ne=this.getViewbox("viewBox",[0,0,kt,Wt]),Pt=cA(J((this.attr("preserveAspectRatio")||"").trim(),kt,Wt,ne[2],ne[3],0),[1,0,0,1,-ne[0],-ne[1]]),jt=q(this.attr("patternTransform"));if(Qt&&(jt=cA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],jt)),(jt=_(jt=cA(jt,[1,0,0,1,St,Ut])))&&(Pt=_(Pt))&&(kt=bA(kt))&&(Wt=bA(Wt))){var Ht=w([0,0,kt,Wt]);return o.transform.apply(o,Pt),this.drawChildren(LA,ot),Q(Ht),[m(Ht,kt,Wt,jt),$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 WA(YA,tt,UA){at.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 WA(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 zA=this.getChildren;this.getChildren=function(){var HA=zA.call(this);return HA.length>0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,ot){var VA=this.getChildren();if(0!==VA.length){if(1===VA.length){var Qt=VA[0],St=Qt.get("stop-color");return"none"===St?void 0:pA(St,Qt.get("stop-opacity")*$A,ot)}var ne,Et,Pt,jt,Ht,ce,Ut="userSpaceOnUse"!==this.attr("gradientUnits"),kt=q(this.attr("gradientTransform")),Wt=this.attr("spreadMethod"),Zt=0,ue=0,ge=1;if(Ut&&(kt=cA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],kt)),kt=_(kt)){if("linearGradient"===this.name)Et=this.getLength("x1",Ut?1:this.getVWidth(),0),Pt=this.getLength("x2",Ut?1:this.getVWidth(),Ut?1:this.getVWidth()),jt=this.getLength("y1",Ut?1:this.getVHeight(),0),Ht=this.getLength("y2",Ut?1:this.getVHeight(),0);else{Pt=this.getLength("cx",Ut?1:this.getVWidth(),Ut?.5:.5*this.getVWidth()),Ht=this.getLength("cy",Ut?1:this.getVHeight(),Ut?.5:.5*this.getVHeight()),ce=this.getLength("r",Ut?1:this.getViewport(),Ut?.5:.5*this.getViewport()),Et=this.getLength("fx",Ut?1:this.getVWidth(),Pt),jt=this.getLength("fy",Ut?1:this.getVHeight(),Ht),ce<0&&re("SvgElemGradient: negative r value");var ve=Math.sqrt(Math.pow(Pt-Et,2)+Math.pow(Ht-jt,2)),Ge=1;ve>ce&&(Et=Pt+(Et-Pt)*(Ge=ce/ve),jt=Ht+(jt-Ht)*Ge),ce=Math.max(ce,ve*Ge*1.000001)}if("reflect"===Wt||"repeat"===Wt){var Se=xA(kt),xe=gA([HA[0],HA[1]],Se),Ne=gA([HA[2],HA[1]],Se),$e=gA([HA[2],HA[3]],Se),yn=gA([HA[0],HA[3]],Se);"linearGradient"===this.name?(Zt=Math.max((xe[0]-Pt)*(Pt-Et)+(xe[1]-Ht)*(Ht-jt),(Ne[0]-Pt)*(Pt-Et)+(Ne[1]-Ht)*(Ht-jt),($e[0]-Pt)*(Pt-Et)+($e[1]-Ht)*(Ht-jt),(yn[0]-Pt)*(Pt-Et)+(yn[1]-Ht)*(Ht-jt))/(Math.pow(Pt-Et,2)+Math.pow(Ht-jt,2)),ue=Math.max((xe[0]-Et)*(Et-Pt)+(xe[1]-jt)*(jt-Ht),(Ne[0]-Et)*(Et-Pt)+(Ne[1]-jt)*(jt-Ht),($e[0]-Et)*(Et-Pt)+($e[1]-jt)*(jt-Ht),(yn[0]-Et)*(Et-Pt)+(yn[1]-jt)*(jt-Ht))/(Math.pow(Pt-Et,2)+Math.pow(Ht-jt,2))):Zt=Math.sqrt(Math.max(Math.pow(xe[0]-Pt,2)+Math.pow(xe[1]-Ht,2),Math.pow(Ne[0]-Pt,2)+Math.pow(Ne[1]-Ht,2),Math.pow($e[0]-Pt,2)+Math.pow($e[1]-Ht,2),Math.pow(yn[0]-Pt,2)+Math.pow(yn[1]-Ht,2)))/ce-1,Zt=Math.ceil(Zt+.5),ge=(ue=Math.ceil(ue+.5))+1+Zt}ne="linearGradient"===this.name?o.linearGradient(Et-ue*(Pt-Et),jt-ue*(Ht-jt),Pt+Zt*(Pt-Et),Ht+Zt*(Ht-jt)):o.radialGradient(Et,jt,0,Pt,Ht,ce+Zt*ce);for(var an=0;an0&&ne.stop((an+0)/ge,cn[0],cn[1]),ne.stop((an+Mn)/(Zt+ue+1),cn[0],cn[1]),qe===VA.length-1&&Mn<1&&ne.stop((an+1)/ge,cn[0],cn[1])}return ne.setTransform.apply(ne,kt),[ne,1]}return UA?[UA[0],UA[1]*$A]:void 0}}},rA=function(YA,tt){et.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(o.save(),this.transform(),this.clip(),UA)this.shape.insertInDocument(),R(u.white),o.fill(this.get("clip-rule"));else{var HA;this.mask()&&(HA=w(yA()));var $A=this.shape.getSubPaths(),LA=this.getFill(UA,PA),ot=this.getStroke(UA,PA),VA=this.get("stroke-width"),Qt=this.get("stroke-linecap");if(LA||ot){if(LA&&R(LA),ot){for(var St=0;St<$A.length;St++)if(QA($A[St].totalLength,0)&&("square"===Qt||"round"===Qt)&&VA>0&&$A[St].startPoint&&$A[St].startPoint.length>1){var Ut=$A[St].startPoint[0],kt=$A[St].startPoint[1];R(ot),"square"===Qt?o.rect(Ut-.5*VA,kt-.5*VA,VA,VA):"round"===Qt&&o.circle(Ut,kt,.5*VA),o.fill()}var Wt=this.get("stroke-dasharray"),ne=this.get("stroke-dashoffset");if(SA(this.dashScale,1)){for(var Et=0;Et0&&$A[Pt].insertInDocument();LA&&ot?o.fillAndStroke(this.get("fill-rule")):LA?o.fill(this.get("fill-rule")):ot&&o.stroke()}var jt=this.get("marker-start"),Ht=this.get("marker-mid"),ce=this.get("marker-end");if("none"!==jt||"none"!==Ht||"none"!==ce){var Zt=this.shape.getMarkers();if("none"!==jt&&new ct(jt,null).drawMarker(!1,PA,Zt[0],VA),"none"!==Ht)for(var ge=1;ge0&&HA>0?$A&&LA?($A=Math.min($A,.5*zA),LA=Math.min(LA,.5*HA),this.shape=(new qA).M(UA+$A,PA).L(UA+zA-$A,PA).A($A,LA,0,0,1,UA+zA,PA+LA).L(UA+zA,PA+HA-LA).A($A,LA,0,0,1,UA+zA-$A,PA+HA).L(UA+$A,PA+HA).A($A,LA,0,0,1,UA,PA+HA-LA).L(UA,PA+LA).A($A,LA,0,0,1,UA+$A,PA).Z()):this.shape=(new qA).M(UA,PA).L(UA+zA,PA).L(UA+zA,PA+HA).L(UA,PA+HA).Z():this.shape=new qA},Yt=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),PA=this.getLength("cy",this.getVHeight(),0),zA=this.getLength("r",this.getViewport(),0);this.shape=zA>0?(new qA).M(UA+zA,PA).A(zA,zA,0,0,1,UA-zA,PA).A(zA,zA,0,0,1,UA+zA,PA).Z():new qA},j=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),PA=this.getLength("cy",this.getVHeight(),0),zA=this.getLength("rx",this.getVWidth(),0),HA=this.getLength("ry",this.getVHeight(),0);this.shape=zA>0&&HA>0?(new qA).M(UA+zA,PA).A(zA,HA,0,0,1,UA-zA,PA).A(zA,HA,0,0,1,UA+zA,PA).Z():new qA},XA=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("x1",this.getVWidth(),0),PA=this.getLength("y1",this.getVHeight(),0),zA=this.getLength("x2",this.getVWidth(),0),HA=this.getLength("y2",this.getVHeight(),0);this.shape=(new qA).M(UA,PA).L(zA,HA)},KA=function(YA,tt){rA.call(this,YA,tt);var UA=this.getNumberList("points");this.shape=new qA;for(var PA=0;PA0?UA:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},ct=function(YA,tt){FA.call(this,YA,tt);var UA=this.getLength("markerWidth",this.getParentVWidth(),3),PA=this.getLength("markerHeight",this.getParentVHeight(),3),zA=this.getViewbox("viewBox",[0,0,UA,PA]);this.getVWidth=function(){return zA[2]},this.getVHeight=function(){return zA[3]},this.drawMarker=function(HA,$A,LA,ot){o.save();var VA=this.attr("orient"),Qt=this.attr("markerUnits"),St="auto"===VA?LA[2]:(parseFloat(VA)||0)*Math.PI/180,Ut="userSpaceOnUse"===Qt?1:ot;o.transform(Math.cos(St)*Ut,Math.sin(St)*Ut,-Math.sin(St)*Ut,Math.cos(St)*Ut,LA[0],LA[1]);var Et,kt=this.getLength("refX",this.getVWidth(),0),Wt=this.getLength("refY",this.getVHeight(),0),ne=J(this.attr("preserveAspectRatio"),UA,PA,zA[2],zA[3],.5);"hidden"===this.get("overflow")&&o.rect(ne[0]*(zA[0]+zA[2]/2-kt)-UA/2,ne[3]*(zA[1]+zA[3]/2-Wt)-PA/2,UA,PA).clip(),o.transform.apply(o,ne),o.translate(-kt,-Wt),this.get("opacity")<1&&!HA&&(Et=w(yA())),this.drawChildren(HA,$A),Et&&(Q(Et),o.fillOpacity(this.get("opacity")),p(Et)),o.restore()}},Lt=function(YA,tt){FA.call(this,YA,tt),this.useMask=function(UA){var PA=w(yA());o.save(),"objectBoundingBox"===this.attr("clipPathUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!0,!1),o.restore(),Q(PA),S(PA,!0)}},xt=function(YA,tt){FA.call(this,YA,tt),this.useMask=function(UA){var zA,HA,$A,LA,PA=w(yA());o.save(),"userSpaceOnUse"===this.attr("maskUnits")?(zA=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])),LA=this.getLength("height",this.getVHeight(),1.2*(UA[3]-UA[1]))):(zA=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]),LA=this.getLength("height",this.getVHeight(),1.2)*(UA[3]-UA[1])),o.rect(zA,HA,$A,LA).clip(),"objectBoundingBox"===this.attr("maskContentUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!1,!0),o.restore(),Q(PA),S(PA,!0)}},Rt=function(YA,tt){et.call(this,YA,tt),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){for(var UA=new qA,PA=0;PA Tj")}o.addContent("ET")}}}"line-through"===this.get("text-decoration")&&this.decorate(.05*this._font.size,.5*(GA(this._font.font,this._font.size)+nt(this._font.font,this._font.size)),UA,PA)},this.decorate=function(UA,PA,zA,HA){var $A=this.getFill(zA,HA),LA=this.getStroke(zA,HA);$A&&R($A),LA&&(L(LA),o.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((zA=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===zA.nodeName){var $A=new jA(zA,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}},te=function(YA,tt){Rt.call(this,YA,tt),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(UA){var LA,ot,PA="",zA=YA.textContent,HA=[],$A=[],VA=0,Qt=0;function St(){if($A.length)for(var Et=$A[$A.length-1],Ht={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[LA+ot]*(Et.x+Et.width-$A[0].x)||0,ce=0;ce<$A.length;ce++)$A[ce].x-=Ht;$A=[]}function Wt(Et){var Pt=Et.pathObject,jt=Et.pathLength,Ht=Et.pathScale;if(Pt)for(var ce=Et.getLength("startOffset",jt,0),Zt=0;Ztjt||ue<0)Et._pos[Zt].hidden=!0;else{var ge=Pt.getPointAtLength(ue*Ht);SA(Ht,1)&&(Et._pos[Zt].scale*=Ht,Et._pos[Zt].width*=Ht),Et._pos[Zt].x=ge[0]-.5*Et._pos[Zt].width*Math.cos(ge[2])-Et._pos[Zt].y*Math.sin(ge[2]),Et._pos[Zt].y=ge[1]-.5*Et._pos[Zt].width*Math.sin(ge[2])+Et._pos[Zt].y*Math.cos(ge[2]),Et._pos[Zt].rotate=ge[2]+Et._pos[Zt].rotate,Et._pos[Zt].continuous=!1}}else for(var ve=0;ve0&&ge<1/0)for(var ve=0;ve=2)for(var Ge=(Pt-(ue-Zt))/(Et.length-1),Se=0;Se0?p-4:p;for(D=0;D>16&255,m[d++]=w>>8&255,m[d++]=255&w;return 2===S&&(w=c[B.charCodeAt(D)]<<2|c[B.charCodeAt(D+1)]>>4,m[d++]=255&w),1===S&&(w=c[B.charCodeAt(D)]<<10|c[B.charCodeAt(D+1)]<<4|c[B.charCodeAt(D+2)]>>2,m[d++]=w>>8&255,m[d++]=255&w),m},I.fromByteArray=function f(B){for(var w,Q=B.length,p=Q%3,S=[],m=16383,d=0,v=Q-p;dv?v:d+m));return 1===p?S.push(n[(w=B[Q-1])>>2]+n[w<<4&63]+"=="):2===p&&S.push(n[(w=(B[Q-2]<<8)+B[Q-1])>>10]+n[w>>4&63]+n[w<<2&63]+"="),S.join("")};for(var n=[],c=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,h=o.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=B.indexOf("=");return-1===Q&&(Q=w),[Q,Q===w?0:4-Q%4]}function C(B){return n[B>>18&63]+n[B>>12&63]+n[B>>6&63]+n[63&B]}function e(B,w,Q){for(var S=[],m=w;m0},o.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},o.prototype.readBits=function(l){32-this.bit_pos_>>this.bit_pos_&i[l];return this.bit_pos_+=l,h},Y.exports=o},7080:function(Y,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(Y,I,n){var i=n(6154).g,o=n(6154).j,l=n(4181),h=n(5139),a=n(966).h,g=n(966).g,E=n(7080),u=n(8435),C=n(2973),v=1080,U=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]),R=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),L=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 Z($){var W;return 0===$.readBits(1)?16:(W=$.readBits(3))>0?17+W:(W=$.readBits(3))>0?8+W:17}function aA($){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(nt=0;nt0;++nt){var FA,at=U[nt],et=0;vA.fillBitWindow(),vA.bit_pos_+=qA[et+=vA.val_>>>vA.bit_pos_&15].bits,It[at]=FA=qA[et].value,0!==FA&&(Mt-=32>>FA,++JA)}if(1!==JA&&0!==Mt)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function cA($,W,hA,vA){for(var nA=0,EA=8,GA=0,nt=0,lt=32768,TA=[],it=0;it<32;it++)TA.push(new a(0,0));for(g(TA,0,5,$,18);nA0;){var It,vt=0;if(vA.readMoreInput(),vA.fillBitWindow(),vA.bit_pos_+=TA[vt+=vA.val_>>>vA.bit_pos_&31].bits,(It=255&TA[vt].value)<16)GA=0,hA[nA++]=It,0!==It&&(EA=It,lt-=32768>>It);else{var JA,qA,Mt=It-14,at=0;if(16===It&&(at=EA),nt!==at&&(GA=0,nt=at),JA=GA,GA>0&&(GA-=2,GA<<=Mt),nA+(qA=(GA+=vA.readBits(Mt)+3)-JA)>W)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var et=0;et>>5]),this.htrees=new Uint32Array(W)}function uA($,W){var EA,GA,hA={num_htrees:null,context_map:null},nA=0;W.readMoreInput();var nt=hA.num_htrees=aA(W)+1,lt=hA.context_map=new Uint8Array($);if(nt<=1)return hA;for(W.readBits(1)&&(nA=W.readBits(4)+1),EA=[],GA=0;GA=$)throw new Error("[DecodeContextMap] i >= context_map_size");lt[GA]=0,++GA}else lt[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=$&&(it-=$),vA[hA]=it,nA[nt+(1&EA[lt])]=it,++EA[lt]}function SA($,W,hA,vA,nA,EA){var TA,GA=nA+1,nt=hA&nA,lt=EA.pos_&l.IBUF_MASK;if(W<8||EA.bit_pos_+(W<<3)0;)EA.readMoreInput(),vA[nt++]=EA.readBits(8),nt===GA&&($.write(vA,GA),nt=0);else{if(EA.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;EA.bit_pos_<32;)vA[nt]=EA.val_>>>EA.bit_pos_,EA.bit_pos_+=8,++nt,--W;if(lt+(TA=EA.bit_end_pos_-EA.bit_pos_>>3)>l.IBUF_MASK){for(var it=l.IBUF_MASK+1-lt,vt=0;vt=GA)for($.write(vA,GA),nt-=GA,vt=0;vt=GA;){if(EA.input_.read(vA,nt,TA=GA-nt)W.buffer.length){var re=new Uint8Array(vA+H);re.set(W.buffer),W.buffer=re}if(nA=Dn.input_end,k=Dn.is_uncompressed,Dn.is_metadata)for(bA(dt);H>0;--H)dt.readMoreInput(),dt.readBits(8);else if(0!==H){if(k){dt.bit_pos_=dt.bit_pos_+7&-8,SA(W,H,vA,it,TA,dt),vA+=H;continue}for(hA=0;hA<3;++hA)wA[hA]=aA(dt)+1,wA[hA]>=2&&(gA(wA[hA]+2,et,hA*v,dt),gA(26,FA,hA*v,dt),b[hA]=BA(FA,hA*v,dt),rA[hA]=1);for(dt.readMoreInput(),j=(1<<(Bt=dt.readBits(2)))-1,XA=(Yt=16+(dt.readBits(4)<0;){var nn,Xe,bn,Gn,Jt,bt,Xt,oe,dn,Fn,Kn,gr;for(dt.readMoreInput(),0===b[1]&&(QA(wA[1],et,1,CA,RA,rA,dt),b[1]=BA(FA,v,dt),vn=at[1].htrees[CA[1]]),--b[1],(Xe=(nn=pA(at[1].codes,vn,dt))>>6)>=2?(Xe-=2,Xt=-1):Xt=0,Gn=u.kCopyRangeLut[Xe]+(7&nn),Jt=u.kInsertLengthPrefixCode[bn=u.kInsertRangeLut[Xe]+(nn>>3&7)].offset+dt.readBits(u.kInsertLengthPrefixCode[bn].nbits),bt=u.kCopyLengthPrefixCode[Gn].offset+dt.readBits(u.kCopyLengthPrefixCode[Gn].nbits),JA=it[vA-1&TA],qA=it[vA-2&TA],dn=0;dn4?3:bt-2))]],dt))>=Yt&&(gr=(Xt-=Yt)&j,Xt=Yt+((Yn=(2+(1&(Xt>>=Bt))<<(Kn=1+(Xt>>1)))-4)+dt.readBits(Kn)<(nt=vA=h.minDictionaryWordLength&&bt<=h.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+vA+" distance: "+oe+" len: "+bt+" bytes left: "+H);var Yn=h.offsetsByLength[bt],WA=oe-nt-1,YA=h.sizeBitsByLength[bt],PA=WA>>YA;if(Yn+=(WA&(1<=vt){W.write(it,lt);for(var HA=0;HA0&&(It[3&Mt]=oe,++Mt),bt>H)throw new Error("Invalid backward reference. pos: "+vA+" distance: "+oe+" len: "+bt+" bytes left: "+H);for(dn=0;dn>=1;return(h&g-1)+g}function o(h,a,g,E,u){do{h[a+(E-=g)]=new n(u.bits,u.value)}while(E>0)}function l(h,a,g){for(var E=1<0;--U[f])o(h,a+w,Q,d,new n(255&f,65535&D[B++])),w=i(w,f);for(S=v-1,p=-1,f=g+1,Q=2;f<=c;++f,Q<<=1)for(;U[f]>0;--U[f])(w&S)!==p&&(a+=d,v+=d=1<<(m=l(U,f,g)),h[C+(p=w&S)]=new n(m+g&255,a-C-p&65535)),o(h,a+(w>>g),Q,d,new n(f-g&255,65535&D[B++])),w=i(w,f);return v}},8435:function(Y,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(Y,I){function n(i){this.buffer=i,this.pos=0}function c(i){this.buffer=i,this.pos=0}n.prototype.read=function(i,o,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,o),this.pos),this.pos+=o,o},I.j=c},2973:function(Y,I,n){var c=n(5139),f=10,B=11;function T(L,Z,aA){this.prefix=new Uint8Array(L.length),this.transform=Z,this.suffix=new Uint8Array(aA.length);for(var AA=0;AA'),new T("",0,"\n"),new T("",3,""),new T("",0,"]"),new T("",0," for "),new T("",14,""),new T("",2,""),new T("",0," a "),new T("",0," that "),new T(" ",f,""),new T("",0,". "),new T(".",0,""),new T(" ",0,", "),new T("",15,""),new T("",0," with "),new T("",0,"'"),new T("",0," from "),new T("",0," by "),new T("",16,""),new T("",17,""),new T(" the ",0,""),new T("",4,""),new T("",0,". The "),new T("",B,""),new T("",0," on "),new T("",0," as "),new T("",0," is "),new T("",7,""),new T("",1,"ing "),new T("",0,"\n\t"),new T("",0,":"),new T(" ",0,". "),new T("",0,"ed "),new T("",20,""),new T("",18,""),new T("",6,""),new T("",0,"("),new T("",f,", "),new T("",8,""),new T("",0," at "),new T("",0,"ly "),new T(" the ",0," of "),new T("",5,""),new T("",9,""),new T(" ",f,", "),new T("",f,'"'),new T(".",0,"("),new T("",B," "),new T("",f,'">'),new T("",0,'="'),new T(" ",0,"."),new T(".com/",0,""),new T(" the ",0," of the "),new T("",f,"'"),new T("",0,". This "),new T("",0,","),new T(".",0," "),new T("",f,"("),new T("",f,"."),new T("",0," not "),new T(" ",0,'="'),new T("",0,"er "),new T(" ",B," "),new T("",0,"al "),new T(" ",B,""),new T("",0,"='"),new T("",B,'"'),new T("",f,". "),new T(" ",0,"("),new T("",0,"ful "),new T(" ",f,". "),new T("",0,"ive "),new T("",0,"less "),new T("",B,"'"),new T("",0,"est "),new T(" ",f,"."),new T("",B,'">'),new T(" ",0,"='"),new T("",f,","),new T("",0,"ize "),new T("",B,"."),new T("\xc2\xa0",0,""),new T(" ",0,","),new T("",f,'="'),new T("",B,'="'),new T("",0,"ous "),new T("",B,", "),new T("",f,"='"),new T(" ",f,","),new T(" ",B,'="'),new T(" ",B,", "),new T("",B,","),new T("",B,"("),new T("",B,". "),new T(" ",B,"."),new T("",B,"='"),new T(" ",B,". "),new T(" ",f,'="'),new T(" ",B,"='"),new T(" ",f,"='")];function R(L,Z){return L[Z]<192?(L[Z]>=97&&L[Z]<=122&&(L[Z]^=32),1):L[Z]<224?(L[Z+1]^=32,2):(L[Z+2]^=5,3)}I.kTransforms=F,I.kNumTransforms=F.length,I.transformDictionaryWord=function(L,Z,aA,AA,lA){var _,pA=F[lA].prefix,cA=F[lA].suffix,gA=F[lA].transform,BA=gA<12?0:gA-11,yA=0,xA=Z;BA>AA&&(BA=AA);for(var MA=0;MA0;){var uA=R(L,_);_+=uA,AA-=uA}for(var QA=0;QAI.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,o(this.init_done,"close before init"),o(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,B,w,Q,p,S,m){return this._write(!0,f,B,w,Q,p,S,m)},e.prototype.writeSync=function(f,B,w,Q,p,S,m){return this._write(!1,f,B,w,Q,p,S,m)},e.prototype._write=function(f,B,w,Q,p,S,m,d){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==I.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===B,"must provide flush value"),this.write_in_progress=!0,B!==I.Z_NO_FLUSH&&B!==I.Z_PARTIAL_FLUSH&&B!==I.Z_SYNC_FLUSH&&B!==I.Z_FULL_FLUSH&&B!==I.Z_FINISH&&B!==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=S,this.strm.next_out=m,this.flush=B,!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,B=this.strm.avail_in;return this.write_in_progress=!1,[B,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,B=this.strm.avail_in;this.write_in_progress=!1,this.callback(B,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,B,w,Q,p){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(f>=8&&f<=15,"invalid windowBits"),o(B>=-1&&B<=9,"invalid compression level"),o(w>=1&&w<=9,"invalid memlevel"),o(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(B,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,B,w,Q,p){switch(this.level=f,this.windowBits=B,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(Y,I,n){"use strict";var c=n(4155),i=n(8823).Buffer,o=n(2830).Transform,l=n(4505),h=n(9539),a=n(9282).ok,g=n(8823).kMaxLength,E="Cannot create final Buffer. It would be larger than 0x"+g.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=g?MA=new RangeError(E):_=i.concat(cA,gA),cA=[],AA.close(),pA(MA,_)}AA.on("error",function yA(_){AA.removeListener("end",xA),AA.removeListener("readable",BA),pA(_)}),AA.on("end",xA),AA.end(lA),BA()}function S(AA,lA){if("string"==typeof lA&&(lA=i.from(lA)),!i.isBuffer(lA))throw new TypeError("Not a string or buffer");return AA._processChunk(lA,AA._finishFlushFlag)}function m(AA){if(!(this instanceof m))return new m(AA);L.call(this,AA,l.DEFLATE)}function d(AA){if(!(this instanceof d))return new d(AA);L.call(this,AA,l.INFLATE)}function v(AA){if(!(this instanceof v))return new v(AA);L.call(this,AA,l.GZIP)}function D(AA){if(!(this instanceof D))return new D(AA);L.call(this,AA,l.GUNZIP)}function U(AA){if(!(this instanceof U))return new U(AA);L.call(this,AA,l.DEFLATERAW)}function T(AA){if(!(this instanceof T))return new T(AA);L.call(this,AA,l.INFLATERAW)}function F(AA){if(!(this instanceof F))return new F(AA);L.call(this,AA,l.UNZIP)}function R(AA){return AA===l.Z_NO_FLUSH||AA===l.Z_PARTIAL_FLUSH||AA===l.Z_SYNC_FLUSH||AA===l.Z_FULL_FLUSH||AA===l.Z_FINISH||AA===l.Z_BLOCK}function L(AA,lA){var pA=this;if(this._opts=AA=AA||{},this._chunkSize=AA.chunkSize||I.Z_DEFAULT_CHUNK,o.call(this,AA),AA.flush&&!R(AA.flush))throw new Error("Invalid flush flag: "+AA.flush);if(AA.finishFlush&&!R(AA.finishFlush))throw new Error("Invalid flush flag: "+AA.finishFlush);if(this._flushFlag=AA.flush||l.Z_NO_FLUSH,this._finishFlushFlag=void 0!==AA.finishFlush?AA.finishFlush:l.Z_FINISH,AA.chunkSize&&(AA.chunkSizeI.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+AA.chunkSize);if(AA.windowBits&&(AA.windowBitsI.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+AA.windowBits);if(AA.level&&(AA.levelI.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+AA.level);if(AA.memLevel&&(AA.memLevelI.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+AA.memLevel);if(AA.strategy&&AA.strategy!=I.Z_FILTERED&&AA.strategy!=I.Z_HUFFMAN_ONLY&&AA.strategy!=I.Z_RLE&&AA.strategy!=I.Z_FIXED&&AA.strategy!=I.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+AA.strategy);if(AA.dictionary&&!i.isBuffer(AA.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new l.Zlib(lA);var cA=this;this._hadError=!1,this._handle.onerror=function(yA,xA){Z(cA),cA._hadError=!0;var _=new Error(yA);_.errno=xA,_.code=I.codes[xA],cA.emit("error",_)};var gA=I.Z_DEFAULT_COMPRESSION;"number"==typeof AA.level&&(gA=AA.level);var BA=I.Z_DEFAULT_STRATEGY;"number"==typeof AA.strategy&&(BA=AA.strategy),this._handle.init(AA.windowBits||I.Z_DEFAULT_WINDOWBITS,gA,AA.memLevel||I.Z_DEFAULT_MEMLEVEL,BA,AA.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=gA,this._strategy=BA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!pA._handle},configurable:!0,enumerable:!0})}function Z(AA,lA){lA&&c.nextTick(lA),AA._handle&&(AA._handle.close(),AA._handle=null)}function aA(AA){AA.emit("close")}Object.defineProperty(I,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),I.Deflate=m,I.Inflate=d,I.Gzip=v,I.Gunzip=D,I.DeflateRaw=U,I.InflateRaw=T,I.Unzip=F,I.createDeflate=function(AA){return new m(AA)},I.createInflate=function(AA){return new d(AA)},I.createDeflateRaw=function(AA){return new U(AA)},I.createInflateRaw=function(AA){return new T(AA)},I.createGzip=function(AA){return new v(AA)},I.createGunzip=function(AA){return new D(AA)},I.createUnzip=function(AA){return new F(AA)},I.deflate=function(AA,lA,pA){return"function"==typeof lA&&(pA=lA,lA={}),p(new m(lA),AA,pA)},I.deflateSync=function(AA,lA){return S(new m(lA),AA)},I.gzip=function(AA,lA,pA){return"function"==typeof lA&&(pA=lA,lA={}),p(new v(lA),AA,pA)},I.gzipSync=function(AA,lA){return S(new v(lA),AA)},I.deflateRaw=function(AA,lA,pA){return"function"==typeof lA&&(pA=lA,lA={}),p(new U(lA),AA,pA)},I.deflateRawSync=function(AA,lA){return S(new U(lA),AA)},I.unzip=function(AA,lA,pA){return"function"==typeof lA&&(pA=lA,lA={}),p(new F(lA),AA,pA)},I.unzipSync=function(AA,lA){return S(new F(lA),AA)},I.inflate=function(AA,lA,pA){return"function"==typeof lA&&(pA=lA,lA={}),p(new d(lA),AA,pA)},I.inflateSync=function(AA,lA){return S(new d(lA),AA)},I.gunzip=function(AA,lA,pA){return"function"==typeof lA&&(pA=lA,lA={}),p(new D(lA),AA,pA)},I.gunzipSync=function(AA,lA){return S(new D(lA),AA)},I.inflateRaw=function(AA,lA,pA){return"function"==typeof lA&&(pA=lA,lA={}),p(new T(lA),AA,pA)},I.inflateRawSync=function(AA,lA){return S(new T(lA),AA)},h.inherits(L,o),L.prototype.params=function(AA,lA,pA){if(AAI.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+AA);if(lA!=I.Z_FILTERED&&lA!=I.Z_HUFFMAN_ONLY&&lA!=I.Z_RLE&&lA!=I.Z_FIXED&&lA!=I.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+lA);if(this._level!==AA||this._strategy!==lA){var cA=this;this.flush(l.Z_SYNC_FLUSH,function(){a(cA._handle,"zlib binding closed"),cA._handle.params(AA,lA),cA._hadError||(cA._level=AA,cA._strategy=lA,pA&&pA())})}else c.nextTick(pA)},L.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},L.prototype._flush=function(AA){this._transform(i.alloc(0),"",AA)},L.prototype.flush=function(AA,lA){var pA=this,cA=this._writableState;("function"==typeof AA||void 0===AA&&!lA)&&(lA=AA,AA=l.Z_FULL_FLUSH),cA.ended?lA&&c.nextTick(lA):cA.ending?lA&&this.once("end",lA):cA.needDrain?lA&&this.once("drain",function(){return pA.flush(AA,lA)}):(this._flushFlag=AA,this.write(i.alloc(0),"",lA))},L.prototype.close=function(AA){Z(this,AA),c.nextTick(aA,this)},L.prototype._transform=function(AA,lA,pA){var cA,gA=this._writableState,yA=(gA.ending||gA.ended)&&(!AA||gA.length===AA.length);return null===AA||i.isBuffer(AA)?this._handle?(yA?cA=this._finishFlushFlag:(cA=this._flushFlag,AA.length>=gA.length&&(this._flushFlag=this._opts.flush||l.Z_NO_FLUSH)),void this._processChunk(AA,cA,pA)):pA(new Error("zlib binding closed")):pA(new Error("invalid input"))},L.prototype._processChunk=function(AA,lA,pA){var cA=AA&&AA.length,gA=this._chunkSize-this._offset,BA=0,yA=this,xA="function"==typeof pA;if(!xA){var uA,_=[],MA=0;this.on("error",function(q){uA=q}),a(this._handle,"zlib binding closed");do{var QA=this._handle.writeSync(lA,AA,BA,cA,this._buffer,this._offset,gA)}while(!this._hadError&&ZA(QA[0],QA[1]));if(this._hadError)throw uA;if(MA>=g)throw Z(this),new RangeError(E);var SA=i.concat(_,MA);return Z(this),SA}a(this._handle,"zlib binding closed");var bA=this._handle.write(lA,AA,BA,cA,this._buffer,this._offset,gA);function ZA(q,J){if(this&&(this.buffer=null,this.callback=null),!yA._hadError){var $=gA-J;if(a($>=0,"have should not go down"),$>0){var W=yA._buffer.slice(yA._offset,yA._offset+$);yA._offset+=$,xA?yA.push(W):(_.push(W),MA+=W.length)}if((0===J||yA._offset>=yA._chunkSize)&&(gA=yA._chunkSize,yA._offset=0,yA._buffer=i.allocUnsafe(yA._chunkSize)),0===J){if(BA+=cA-q,cA=q,!xA)return!0;var hA=yA._handle.write(lA,AA,BA,cA,yA._buffer,yA._offset,yA._chunkSize);return hA.callback=ZA,void(hA.buffer=AA)}if(!xA)return!1;pA()}}bA.buffer=AA,bA.callback=ZA},h.inherits(m,L),h.inherits(d,L),h.inherits(v,L),h.inherits(D,L),h.inherits(U,L),h.inherits(T,L),h.inherits(F,L)},1924:function(Y,I,n){"use strict";var c=n(210),i=n(5559),o=i(c("String.prototype.indexOf"));Y.exports=function(h,a){var g=c(h,!!a);return"function"==typeof g&&o(h,".prototype.")>-1?i(g):g}},5559:function(Y,I,n){"use strict";var c=n(8612),i=n(210),o=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),h=i("%Reflect.apply%",!0)||c.call(l,o),a=i("%Object.getOwnPropertyDescriptor%",!0),g=i("%Object.defineProperty%",!0),E=i("%Math.max%");if(g)try{g({},"a",{value:1})}catch(C){g=null}Y.exports=function(e){var f=h(c,l,arguments);return a&&g&&a(f,"length").configurable&&g(f,"length",{value:1+E(0,e.length-(arguments.length-1))}),f};var u=function(){return h(c,o,arguments)};g?g(Y.exports,"apply",{value:u}):Y.exports.apply=u},6313:function(Y,I,n){var c=n(8823).Buffer,i=function(){"use strict";function o(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 S(m,d){if(null===m)return null;if(0==d)return m;var v,D;if("object"!=typeof m)return m;if(o.__isArray(m))v=[];else if(o.__isRegExp(m))v=new RegExp(m.source,E(m)),m.lastIndex&&(v.lastIndex=m.lastIndex);else if(o.__isDate(m))v=new Date(m.getTime());else{if(p&&c.isBuffer(m))return v=c.allocUnsafe?c.allocUnsafe(m.length):new c(m.length),m.copy(v),v;void 0===f?(D=Object.getPrototypeOf(m),v=Object.create(D)):(v=Object.create(f),D=f)}if(C){var U=w.indexOf(m);if(-1!=U)return Q[U];w.push(m),Q.push(v)}for(var T in m){var F;D&&(F=Object.getOwnPropertyDescriptor(D,T)),(!F||null!=F.set)&&(v[T]=S(m[T],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 o.clonePrototype=function(C){if(null===C)return null;var e=function(){};return e.prototype=C,new e},o.__objToStr=l,o.__isDate=function h(u){return"object"==typeof u&&"[object Date]"===l(u)},o.__isArray=function a(u){return"object"==typeof u&&"[object Array]"===l(u)},o.__isRegExp=function g(u){return"object"==typeof u&&"[object RegExp]"===l(u)},o.__getRegExpFlags=E,o}();Y.exports&&(Y.exports=i)},4667:function(Y,I,n){n(2479);var c=n(857);Y.exports=c.Object.values},7633:function(Y,I,n){n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var c=n(857);Y.exports=c.Promise},3867:function(Y,I,n){var c=n(1150);n(8628),n(7314),n(7479),n(6290),Y.exports=c},9662:function(Y,I,n){var c=n(7854),i=n(614),o=n(6330),l=c.TypeError;Y.exports=function(h){if(i(h))return h;throw l(o(h)+" is not a function")}},9483:function(Y,I,n){var c=n(7854),i=n(4411),o=n(6330),l=c.TypeError;Y.exports=function(h){if(i(h))return h;throw l(o(h)+" is not a constructor")}},6077:function(Y,I,n){var c=n(7854),i=n(614),o=c.String,l=c.TypeError;Y.exports=function(h){if("object"==typeof h||i(h))return h;throw l("Can't set "+o(h)+" as a prototype")}},1223:function(Y,I,n){var c=n(5112),i=n(30),o=n(3070),l=c("unscopables"),h=Array.prototype;null==h[l]&&o.f(h,l,{configurable:!0,value:i(null)}),Y.exports=function(a){h[l][a]=!0}},1530:function(Y,I,n){"use strict";var c=n(8710).charAt;Y.exports=function(i,o,l){return o+(l?c(i,o).length:1)}},5787:function(Y,I,n){var c=n(7854),i=n(7976),o=c.TypeError;Y.exports=function(l,h){if(i(h,l))return l;throw o("Incorrect invocation")}},9670:function(Y,I,n){var c=n(7854),i=n(111),o=c.String,l=c.TypeError;Y.exports=function(h){if(i(h))return h;throw l(o(h)+" is not an object")}},1048:function(Y,I,n){"use strict";var c=n(7908),i=n(1400),o=n(6244),l=Math.min;Y.exports=[].copyWithin||function(a,g){var E=c(this),u=o(E),C=i(a,u),e=i(g,u),f=arguments.length>2?arguments[2]:void 0,B=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(Y,I,n){"use strict";var c=n(7908),i=n(1400),o=n(6244);Y.exports=function(h){for(var a=c(this),g=o(a),E=arguments.length,u=i(E>1?arguments[1]:void 0,g),C=E>2?arguments[2]:void 0,e=void 0===C?g:i(C,g);e>u;)a[u++]=h;return a}},8533:function(Y,I,n){"use strict";var c=n(2092).forEach,o=n(9341)("forEach");Y.exports=o?[].forEach:function(h){return c(this,h,arguments.length>1?arguments[1]:void 0)}},7745:function(Y){Y.exports=function(I,n){for(var c=0,i=n.length,o=new I(i);i>c;)o[c]=n[c++];return o}},8457:function(Y,I,n){"use strict";var c=n(7854),i=n(9974),o=n(6916),l=n(7908),h=n(3411),a=n(7659),g=n(4411),E=n(6244),u=n(6135),C=n(8554),e=n(1246),f=c.Array;Y.exports=function(w){var Q=l(w),p=g(this),S=arguments.length,m=S>1?arguments[1]:void 0,d=void 0!==m;d&&(m=i(m,S>2?arguments[2]:void 0));var U,T,F,R,L,Z,v=e(Q),D=0;if(!v||this==f&&a(v))for(U=E(Q),T=p?new this(U):f(U);U>D;D++)Z=d?m(Q[D],D):Q[D],u(T,D,Z);else for(L=(R=C(Q,v)).next,T=p?new this:[];!(F=o(L,R)).done;D++)Z=d?h(R,m,[F.value,D],!0):F.value,u(T,D,Z);return T.length=D,T}},1318:function(Y,I,n){var c=n(5656),i=n(1400),o=n(6244),l=function(h){return function(a,g,E){var f,u=c(a),C=o(u),e=i(E,C);if(h&&g!=g){for(;C>e;)if((f=u[e++])!=f)return!0}else for(;C>e;e++)if((h||e in u)&&u[e]===g)return h||e||0;return!h&&-1}};Y.exports={includes:l(!0),indexOf:l(!1)}},2092:function(Y,I,n){var c=n(9974),i=n(1702),o=n(8361),l=n(7908),h=n(6244),a=n(5417),g=i([].push),E=function(u){var C=1==u,e=2==u,f=3==u,B=4==u,w=6==u,Q=7==u,p=5==u||w;return function(S,m,d,v){for(var aA,AA,D=l(S),U=o(D),T=c(m,d),F=h(U),R=0,L=v||a,Z=C?L(S,F):e||Q?L(S,0):void 0;F>R;R++)if((p||R in U)&&(AA=T(aA=U[R],R,D),u))if(C)Z[R]=AA;else if(AA)switch(u){case 3:return!0;case 5:return aA;case 6:return R;case 2:g(Z,aA)}else switch(u){case 4:return!1;case 7:g(Z,aA)}return w?-1:f||B?B:Z}};Y.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(Y,I,n){"use strict";var c=n(2104),i=n(5656),o=n(9303),l=n(6244),h=n(9341),a=Math.min,g=[].lastIndexOf,E=!!g&&1/[1].lastIndexOf(1,-0)<0,u=h("lastIndexOf");Y.exports=E||!u?function(f){if(E)return c(g,this,arguments)||0;var B=i(this),w=l(B),Q=w-1;for(arguments.length>1&&(Q=a(Q,o(arguments[1]))),Q<0&&(Q=w+Q);Q>=0;Q--)if(Q in B&&B[Q]===f)return Q||0;return-1}:g},1194:function(Y,I,n){var c=n(7293),i=n(5112),o=n(7392),l=i("species");Y.exports=function(h){return o>=51||!c(function(){var a=[];return(a.constructor={})[l]=function(){return{foo:1}},1!==a[h](Boolean).foo})}},9341:function(Y,I,n){"use strict";var c=n(7293);Y.exports=function(i,o){var l=[][i];return!!l&&c(function(){l.call(null,o||function(){throw 1},1)})}},3671:function(Y,I,n){var c=n(7854),i=n(9662),o=n(7908),l=n(8361),h=n(6244),a=c.TypeError,g=function(E){return function(u,C,e,f){i(C);var B=o(u),w=l(B),Q=h(B),p=E?Q-1:0,S=E?-1:1;if(e<2)for(;;){if(p in w){f=w[p],p+=S;break}if(p+=S,E?p<0:Q<=p)throw a("Reduce of empty array with no initial value")}for(;E?p>=0:Q>p;p+=S)p in w&&(f=C(f,w[p],p,B));return f}};Y.exports={left:g(!1),right:g(!0)}},206:function(Y,I,n){var c=n(1702);Y.exports=c([].slice)},4362:function(Y,I,n){var c=n(206),i=Math.floor,o=function(a,g){var E=a.length,u=i(E/2);return E<8?l(a,g):h(a,o(c(a,0,u),g),o(c(a,u),g),g)},l=function(a,g){for(var C,e,E=a.length,u=1;u0;)a[e]=a[--e];e!==u++&&(a[e]=C)}return a},h=function(a,g,E,u){for(var C=g.length,e=E.length,f=0,B=0;f1?arguments[1]:void 0);Z=Z?Z.next:R.first;)for(L(Z.value,Z.key,this);Z&&Z.removed;)Z=Z.previous},has:function(F){return!!U(this,F)}}),o(d,p?{get:function(F){var R=U(this,F);return R&&R.value},set:function(F,R){return D(this,0===F?0:F,R)}}:{add:function(F){return D(this,F=0===F?0:F,F)}}),u&&c(d,"size",{get:function(){return v(this).size}}),m},setStrong:function(w,Q,p){var S=Q+" Iterator",m=B(Q),d=B(S);g(w,Q,function(v,D){f(this,{type:S,target:v,state:m(v),kind:D,last:void 0})},function(){for(var v=d(this),D=v.kind,U=v.last;U&&U.removed;)U=U.previous;return v.target&&(v.last=U=U?U.next:v.state.first)?"keys"==D?{value:U.key,done:!1}:"values"==D?{value:U.value,done:!1}:{value:[U.key,U.value],done:!1}:(v.target=void 0,{value:void 0,done:!0})},p?"entries":"values",!p,!0),E(Q)}}},7710:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(1702),l=n(4705),h=n(1320),a=n(2423),g=n(408),E=n(5787),u=n(614),C=n(111),e=n(7293),f=n(7072),B=n(8003),w=n(9587);Y.exports=function(Q,p,S){var m=-1!==Q.indexOf("Map"),d=-1!==Q.indexOf("Weak"),v=m?"set":"add",D=i[Q],U=D&&D.prototype,T=D,F={},R=function(cA){var gA=o(U[cA]);h(U,cA,"add"==cA?function(yA){return gA(this,0===yA?0:yA),this}:"delete"==cA?function(BA){return!(d&&!C(BA))&&gA(this,0===BA?0:BA)}:"get"==cA?function(yA){return d&&!C(yA)?void 0:gA(this,0===yA?0:yA)}:"has"==cA?function(yA){return!(d&&!C(yA))&&gA(this,0===yA?0:yA)}:function(yA,xA){return gA(this,0===yA?0:yA,xA),this})};if(l(Q,!u(D)||!(d||U.forEach&&!e(function(){(new D).entries().next()}))))T=S.getConstructor(p,Q,m,v),a.enable();else if(l(Q,!0)){var Z=new T,aA=Z[v](d?{}:-0,1)!=Z,AA=e(function(){Z.has(1)}),lA=f(function(cA){new D(cA)}),pA=!d&&e(function(){for(var cA=new D,gA=5;gA--;)cA[v](gA,gA);return!cA.has(-0)});lA||((T=p(function(cA,gA){E(cA,U);var BA=w(new D,cA,T);return null!=gA&&g(gA,BA[v],{that:BA,AS_ENTRIES:m}),BA})).prototype=U,U.constructor=T),(AA||pA)&&(R("delete"),R("has"),m&&R("get")),(pA||aA)&&R(v),d&&U.clear&&delete U.clear}return F[Q]=T,c({global:!0,forced:T!=D},F),B(T,Q),d||S.setStrong(T,Q,m),T}},9920:function(Y,I,n){var c=n(2597),i=n(3887),o=n(1236),l=n(3070);Y.exports=function(h,a){for(var g=i(a),E=l.f,u=o.f,C=0;C"+C+""}},4994:function(Y,I,n){"use strict";var c=n(3383).IteratorPrototype,i=n(30),o=n(9114),l=n(8003),h=n(7497),a=function(){return this};Y.exports=function(g,E,u){var C=E+" Iterator";return g.prototype=i(c,{next:o(1,u)}),l(g,C,!1,!0),h[C]=a,g}},8880:function(Y,I,n){var c=n(9781),i=n(3070),o=n(9114);Y.exports=c?function(l,h,a){return i.f(l,h,o(1,a))}:function(l,h,a){return l[h]=a,l}},9114:function(Y){Y.exports=function(I,n){return{enumerable:!(1&I),configurable:!(2&I),writable:!(4&I),value:n}}},6135:function(Y,I,n){"use strict";var c=n(4948),i=n(3070),o=n(9114);Y.exports=function(l,h,a){var g=c(h);g in l?i.f(l,g,o(0,a)):l[g]=a}},8709:function(Y,I,n){"use strict";var c=n(7854),i=n(9670),o=n(2140),l=c.TypeError;Y.exports=function(h){if(i(this),"string"===h||"default"===h)h="string";else if("number"!==h)throw l("Incorrect hint");return o(this,h)}},654:function(Y,I,n){"use strict";var c=n(2109),i=n(6916),o=n(1913),l=n(6530),h=n(614),a=n(4994),g=n(9518),E=n(7674),u=n(8003),C=n(8880),e=n(1320),f=n(5112),B=n(7497),w=n(3383),Q=l.PROPER,p=l.CONFIGURABLE,S=w.IteratorPrototype,m=w.BUGGY_SAFARI_ITERATORS,d=f("iterator"),v="keys",D="values",U="entries",T=function(){return this};Y.exports=function(F,R,L,Z,aA,AA,lA){a(L,R,Z);var MA,uA,QA,pA=function(SA){if(SA===aA&&xA)return xA;if(!m&&SA in BA)return BA[SA];switch(SA){case v:case D:case U:return function(){return new L(this,SA)}}return function(){return new L(this)}},cA=R+" Iterator",gA=!1,BA=F.prototype,yA=BA[d]||BA["@@iterator"]||aA&&BA[aA],xA=!m&&yA||pA(aA),_="Array"==R&&BA.entries||yA;if(_&&(MA=g(_.call(new F)))!==Object.prototype&&MA.next&&(!o&&g(MA)!==S&&(E?E(MA,S):h(MA[d])||e(MA,d,T)),u(MA,cA,!0,!0),o&&(B[cA]=T)),Q&&aA==D&&yA&&yA.name!==D&&(!o&&p?C(BA,"name",D):(gA=!0,xA=function(){return i(yA,this)})),aA)if(uA={values:pA(D),keys:AA?xA:pA(v),entries:pA(U)},lA)for(QA in uA)(m||gA||!(QA in BA))&&e(BA,QA,uA[QA]);else c({target:R,proto:!0,forced:m||gA},uA);return(!o||lA)&&BA[d]!==xA&&e(BA,d,xA,{name:aA}),B[R]=xA,uA}},7235:function(Y,I,n){var c=n(857),i=n(2597),o=n(6061),l=n(3070).f;Y.exports=function(h){var a=c.Symbol||(c.Symbol={});i(a,h)||l(a,h,{value:o.f(h)})}},9781:function(Y,I,n){var c=n(7293);Y.exports=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:function(Y,I,n){var c=n(7854),i=n(111),o=c.document,l=i(o)&&i(o.createElement);Y.exports=function(h){return l?o.createElement(h):{}}},8324:function(Y){Y.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(Y,I,n){var i=n(317)("span").classList,o=i&&i.constructor&&i.constructor.prototype;Y.exports=o===Object.prototype?void 0:o},8886:function(Y,I,n){var i=n(8113).match(/firefox\/(\d+)/i);Y.exports=!!i&&+i[1]},7871:function(Y){Y.exports="object"==typeof window},256:function(Y,I,n){var c=n(8113);Y.exports=/MSIE|Trident/.test(c)},1528:function(Y,I,n){var c=n(8113),i=n(7854);Y.exports=/ipad|iphone|ipod/i.test(c)&&void 0!==i.Pebble},6833:function(Y,I,n){var c=n(8113);Y.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},5268:function(Y,I,n){var c=n(4326),i=n(7854);Y.exports="process"==c(i.process)},1036:function(Y,I,n){var c=n(8113);Y.exports=/web0s(?!.*chrome)/i.test(c)},8113:function(Y,I,n){var c=n(5005);Y.exports=c("navigator","userAgent")||""},7392:function(Y,I,n){var g,E,c=n(7854),i=n(8113),o=c.process,l=c.Deno,h=o&&o.versions||l&&l.version,a=h&&h.v8;a&&(E=(g=a.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!E&&i&&(!(g=i.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=i.match(/Chrome\/(\d+)/))&&(E=+g[1]),Y.exports=E},8008:function(Y,I,n){var i=n(8113).match(/AppleWebKit\/(\d+)\./);Y.exports=!!i&&+i[1]},748:function(Y){Y.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(Y,I,n){var c=n(7293),i=n(9114);Y.exports=!c(function(){var o=Error("a");return!("stack"in o)||(Object.defineProperty(o,"stack",i(1,7)),7!==o.stack)})},2109:function(Y,I,n){var c=n(7854),i=n(1236).f,o=n(8880),l=n(1320),h=n(3505),a=n(9920),g=n(4705);Y.exports=function(E,u){var w,Q,p,S,m,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(S=u[Q],p=E.noTargetGet?(m=i(w,Q))&&m.value:w[Q],!g(e?Q:C+(f?".":"#")+Q,E.forced)&&void 0!==p){if(typeof S==typeof p)continue;a(S,p)}(E.sham||p&&p.sham)&&o(S,"sham",!0),l(w,Q,S,E)}}},7293:function(Y){Y.exports=function(I){try{return!!I()}catch(n){return!0}}},7007:function(Y,I,n){"use strict";n(4916);var c=n(1702),i=n(1320),o=n(2261),l=n(7293),h=n(5112),a=n(8880),g=h("species"),E=RegExp.prototype;Y.exports=function(u,C,e,f){var B=h(u),w=!l(function(){var m={};return m[B]=function(){return 7},7!=""[u](m)}),Q=w&&!l(function(){var m=!1,d=/a/;return"split"===u&&((d={}).constructor={},d.constructor[g]=function(){return d},d.flags="",d[B]=/./[B]),d.exec=function(){return m=!0,null},d[B](""),!m});if(!w||!Q||e){var p=c(/./[B]),S=C(B,""[u],function(m,d,v,D,U){var T=c(m),F=d.exec;return F===o||F===E.exec?w&&!U?{done:!0,value:p(d,v,D)}:{done:!0,value:T(v,d,D)}:{done:!1}});i(String.prototype,u,S[0]),i(E,B,S[1])}f&&a(E[B],"sham",!0)}},6677:function(Y,I,n){var c=n(7293);Y.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(Y){var I=Function.prototype,n=I.apply,i=I.call;Y.exports="object"==typeof Reflect&&Reflect.apply||(I.bind?i.bind(n):function(){return i.apply(n,arguments)})},9974:function(Y,I,n){var c=n(1702),i=n(9662),o=c(c.bind);Y.exports=function(l,h){return i(l),void 0===h?l:o?o(l,h):function(){return l.apply(h,arguments)}}},7065:function(Y,I,n){"use strict";var c=n(7854),i=n(1702),o=n(9662),l=n(111),h=n(2597),a=n(206),g=c.Function,E=i([].concat),u=i([].join),C={},e=function(f,B,w){if(!h(C,B)){for(var Q=[],p=0;p]*>)/g,E=/\$([$&'`]|\d{1,2})/g;Y.exports=function(u,C,e,f,B,w){var Q=e+u.length,p=f.length,S=E;return void 0!==B&&(B=i(B),S=g),h(w,S,function(m,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=B[a(d,1,-1)];break;default:var D=+d;if(0===D)return m;if(D>p){var U=o(D/10);return 0===U?m:U<=p?void 0===f[U-1]?l(d,1):f[U-1]+l(d,1):m}v=f[D-1]}return void 0===v?"":v})}},7854:function(Y,I,n){var c=function(i){return i&&i.Math==Math&&i};Y.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(Y,I,n){var c=n(1702),i=n(7908),o=c({}.hasOwnProperty);Y.exports=Object.hasOwn||function(h,a){return o(i(h),a)}},3501:function(Y){Y.exports={}},842:function(Y,I,n){var c=n(7854);Y.exports=function(i,o){var l=c.console;l&&l.error&&(1==arguments.length?l.error(i):l.error(i,o))}},490:function(Y,I,n){var c=n(5005);Y.exports=c("document","documentElement")},4664:function(Y,I,n){var c=n(9781),i=n(7293),o=n(317);Y.exports=!c&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},1179:function(Y,I,n){var i=n(7854).Array,o=Math.abs,l=Math.pow,h=Math.floor,a=Math.log,g=Math.LN2;Y.exports={pack:function(C,e,f){var v,D,U,B=i(f),w=8*f-e-1,Q=(1<>1,S=23===e?l(2,-24)-l(2,-77):0,m=C<0||0===C&&1/C<0?1:0,d=0;for((C=o(C))!=C||C===1/0?(D=C!=C?1:0,v=Q):(v=h(a(C)/g),C*(U=l(2,-v))<1&&(v--,U*=2),(C+=v+p>=1?S/U:S*l(2,1-p))*U>=2&&(v++,U/=2),v+p>=Q?(D=0,v=Q):v+p>=1?(D=(C*U-1)*l(2,e),v+=p):(D=C*l(2,p-1)*l(2,e),v=0));e>=8;B[d++]=255&D,D/=256,e-=8);for(v=v<0;B[d++]=255&v,v/=256,w-=8);return B[--d]|=128*m,B},unpack:function(C,e){var v,f=C.length,B=8*f-e-1,w=(1<>1,p=B-7,S=f-1,m=C[S--],d=127&m;for(m>>=7;p>0;d=256*d+C[S],S--,p-=8);for(v=d&(1<<-p)-1,d>>=-p,p+=e;p>0;v=256*v+C[S],S--,p-=8);if(0===d)d=1-Q;else{if(d===w)return v?NaN:m?-1/0:1/0;v+=l(2,e),d-=Q}return(m?-1:1)*v*l(2,d-e)}}},8361:function(Y,I,n){var c=n(7854),i=n(1702),o=n(7293),l=n(4326),h=c.Object,a=i("".split);Y.exports=o(function(){return!h("z").propertyIsEnumerable(0)})?function(g){return"String"==l(g)?a(g,""):h(g)}:h},9587:function(Y,I,n){var c=n(614),i=n(111),o=n(7674);Y.exports=function(l,h,a){var g,E;return o&&c(g=h.constructor)&&g!==a&&i(E=g.prototype)&&E!==a.prototype&&o(l,E),l}},2788:function(Y,I,n){var c=n(1702),i=n(614),o=n(5465),l=c(Function.toString);i(o.inspectSource)||(o.inspectSource=function(h){return l(h)}),Y.exports=o.inspectSource},8340:function(Y,I,n){var c=n(111),i=n(8880);Y.exports=function(o,l){c(l)&&"cause"in l&&i(o,"cause",l.cause)}},2423:function(Y,I,n){var c=n(2109),i=n(1702),o=n(3501),l=n(111),h=n(2597),a=n(3070).f,g=n(8006),E=n(1156),u=n(9711),C=n(6677),e=!1,f=u("meta"),B=0,w=Object.isExtensible||function(){return!0},Q=function(D){a(D,f,{value:{objectID:"O"+B++,weakData:{}}})},v=Y.exports={enable:function(){v.enable=function(){},e=!0;var D=g.f,U=i([].splice),T={};T[f]=1,D(T).length&&(g.f=function(F){for(var R=D(F),L=0,Z=R.length;LR;R++)if((Z=pA(Q[R]))&&E(w,Z))return Z;return new B(!1)}T=u(Q,F)}for(aA=T.next;!(AA=o(aA,T)).done;){try{Z=pA(AA.value)}catch(cA){e(T,"throw",cA)}if("object"==typeof Z&&Z&&E(w,Z))return Z}return new B(!1)}},9212:function(Y,I,n){var c=n(6916),i=n(9670),o=n(8173);Y.exports=function(l,h,a){var g,E;i(l);try{if(!(g=o(l,"return"))){if("throw"===h)throw a;return a}g=c(g,l)}catch(u){E=!0,g=u}if("throw"===h)throw a;if(E)throw g;return i(g),a}},3383:function(Y,I,n){"use strict";var C,e,f,c=n(7293),i=n(614),o=n(30),l=n(9518),h=n(1320),a=n(5112),g=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={}:g&&(C=o(C)),i(C[E])||h(C,E,function(){return this}),Y.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:u}},7497:function(Y){Y.exports={}},6244:function(Y,I,n){var c=n(7466);Y.exports=function(i){return c(i.length)}},5948:function(Y,I,n){var Q,p,S,m,d,v,D,U,c=n(7854),i=n(9974),o=n(1236).f,l=n(261).set,h=n(6833),a=n(1528),g=n(1036),E=n(5268),u=c.MutationObserver||c.WebKitMutationObserver,C=c.document,e=c.process,f=c.Promise,B=o(c,"queueMicrotask"),w=B&&B.value;w||(Q=function(){var T,F;for(E&&(T=e.domain)&&T.exit();p;){F=p.fn,p=p.next;try{F()}catch(R){throw p?m():S=void 0,R}}S=void 0,T&&T.enter()},h||E||g||!u||!C?!a&&f&&f.resolve?((D=f.resolve(void 0)).constructor=f,U=i(D.then,D),m=function(){U(Q)}):E?m=function(){e.nextTick(Q)}:(l=i(l,c),m=function(){l(Q)}):(d=!0,v=C.createTextNode(""),new u(Q).observe(v,{characterData:!0}),m=function(){v.data=d=!d})),Y.exports=w||function(T){var F={fn:T,next:void 0};S&&(S.next=F),p||(p=F,m()),S=F}},3366:function(Y,I,n){var c=n(7854);Y.exports=c.Promise},133:function(Y,I,n){var c=n(7392),i=n(7293);Y.exports=!!Object.getOwnPropertySymbols&&!i(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&c&&c<41})},8536:function(Y,I,n){var c=n(7854),i=n(614),o=n(2788),l=c.WeakMap;Y.exports=i(l)&&/native code/.test(o(l))},8523:function(Y,I,n){"use strict";var c=n(9662),i=function(o){var l,h;this.promise=new o(function(a,g){if(void 0!==l||void 0!==h)throw TypeError("Bad Promise constructor");l=a,h=g}),this.resolve=c(l),this.reject=c(h)};Y.exports.f=function(o){return new i(o)}},6277:function(Y,I,n){var c=n(1340);Y.exports=function(i,o){return void 0===i?arguments.length<2?"":o:c(i)}},3929:function(Y,I,n){var c=n(7854),i=n(7850),o=c.TypeError;Y.exports=function(l){if(i(l))throw o("The method doesn't accept regular expressions");return l}},7023:function(Y,I,n){var i=n(7854).isFinite;Y.exports=Number.isFinite||function(l){return"number"==typeof l&&i(l)}},1574:function(Y,I,n){"use strict";var c=n(9781),i=n(1702),o=n(6916),l=n(7293),h=n(1956),a=n(5181),g=n(5296),E=n(7908),u=n(8361),C=Object.assign,e=Object.defineProperty,f=i([].concat);Y.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 B={},w={},Q=Symbol(),p="abcdefghijklmnopqrst";return B[Q]=7,p.split("").forEach(function(S){w[S]=S}),7!=C({},B)[Q]||h(C({},w)).join("")!=p})?function(w,Q){for(var p=E(w),S=arguments.length,m=1,d=a.f,v=g.f;S>m;)for(var R,D=u(arguments[m++]),U=d?f(h(D),d(D)):h(D),T=U.length,F=0;T>F;)R=U[F++],(!c||o(v,D,R))&&(p[R]=D[R]);return p}:C},30:function(Y,I,n){var S,c=n(9670),i=n(6048),o=n(748),l=n(3501),h=n(490),a=n(317),g=n(6200),C="prototype",e="script",f=g("IE_PROTO"),B=function(){},w=function(d){return"<"+e+">"+d+""},Q=function(d){d.write(w("")),d.close();var v=d.parentWindow.Object;return d=null,v},m=function(){try{S=new ActiveXObject("htmlfile")}catch(v){}m="undefined"!=typeof document?document.domain&&S?Q(S):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(S);for(var d=o.length;d--;)delete m[C][o[d]];return m()};l[f]=!0,Y.exports=Object.create||function(v,D){var U;return null!==v?(B[C]=c(v),U=new B,B[C]=null,U[f]=v):U=m(),void 0===D?U:i(U,D)}},6048:function(Y,I,n){var c=n(9781),i=n(3070),o=n(9670),l=n(5656),h=n(1956);Y.exports=c?Object.defineProperties:function(g,E){o(g);for(var B,u=l(E),C=h(E),e=C.length,f=0;e>f;)i.f(g,B=C[f++],u[B]);return g}},3070:function(Y,I,n){var c=n(7854),i=n(9781),o=n(4664),l=n(9670),h=n(4948),a=c.TypeError,g=Object.defineProperty;I.f=i?g:function(u,C,e){if(l(u),C=h(C),l(e),o)try{return g(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(Y,I,n){var c=n(9781),i=n(6916),o=n(5296),l=n(9114),h=n(5656),a=n(4948),g=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(B){}if(g(e,f))return l(!i(o.f,e,f),e[f])}},1156:function(Y,I,n){var c=n(4326),i=n(5656),o=n(8006).f,l=n(206),h="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Y.exports.f=function(E){return h&&"Window"==c(E)?function(g){try{return o(g)}catch(E){return l(h)}}(E):o(i(E))}},8006:function(Y,I,n){var c=n(6324),o=n(748).concat("length","prototype");I.f=Object.getOwnPropertyNames||function(h){return c(h,o)}},5181:function(Y,I){I.f=Object.getOwnPropertySymbols},9518:function(Y,I,n){var c=n(7854),i=n(2597),o=n(614),l=n(7908),h=n(6200),a=n(8544),g=h("IE_PROTO"),E=c.Object,u=E.prototype;Y.exports=a?E.getPrototypeOf:function(C){var e=l(C);if(i(e,g))return e[g];var f=e.constructor;return o(f)&&e instanceof f?f.prototype:e instanceof E?u:null}},7976:function(Y,I,n){var c=n(1702);Y.exports=c({}.isPrototypeOf)},6324:function(Y,I,n){var c=n(1702),i=n(2597),o=n(5656),l=n(1318).indexOf,h=n(3501),a=c([].push);Y.exports=function(g,E){var f,u=o(g),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(Y,I,n){var c=n(6324),i=n(748);Y.exports=Object.keys||function(l){return c(l,i)}},5296:function(Y,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(Y,I,n){var c=n(1702),i=n(9670),o=n(6077);Y.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(g){}return function(E,u){return i(E),o(u),l?a(E,u):E.__proto__=u,E}}():void 0)},4699:function(Y,I,n){var c=n(9781),i=n(1702),o=n(1956),l=n(5656),a=i(n(5296).f),g=i([].push),E=function(u){return function(C){for(var p,e=l(C),f=o(e),B=f.length,w=0,Q=[];B>w;)p=f[w++],(!c||a(e,p))&&g(Q,u?[p,e[p]]:e[p]);return Q}};Y.exports={entries:E(!0),values:E(!1)}},288:function(Y,I,n){"use strict";var c=n(1694),i=n(648);Y.exports=c?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(Y,I,n){var c=n(7854),i=n(6916),o=n(614),l=n(111),h=c.TypeError;Y.exports=function(a,g){var E,u;if("string"===g&&o(E=a.toString)&&!l(u=i(E,a))||o(E=a.valueOf)&&!l(u=i(E,a))||"string"!==g&&o(E=a.toString)&&!l(u=i(E,a)))return u;throw h("Can't convert object to primitive value")}},3887:function(Y,I,n){var c=n(5005),i=n(1702),o=n(8006),l=n(5181),h=n(9670),a=i([].concat);Y.exports=c("Reflect","ownKeys")||function(E){var u=o.f(h(E)),C=l.f;return C?a(u,C(E)):u}},857:function(Y,I,n){var c=n(7854);Y.exports=c},2534:function(Y){Y.exports=function(I){try{return{error:!1,value:I()}}catch(n){return{error:!0,value:n}}}},9478:function(Y,I,n){var c=n(9670),i=n(111),o=n(8523);Y.exports=function(l,h){if(c(l),i(h)&&h.constructor===l)return h;var a=o.f(l);return(0,a.resolve)(h),a.promise}},2248:function(Y,I,n){var c=n(1320);Y.exports=function(i,o,l){for(var h in o)c(i,h,o[h],l);return i}},1320:function(Y,I,n){var c=n(7854),i=n(614),o=n(2597),l=n(8880),h=n(3505),a=n(2788),g=n(9909),E=n(6530).CONFIGURABLE,u=g.get,C=g.enforce,e=String(String).split("String");(Y.exports=function(f,B,w,Q){var v,p=!!Q&&!!Q.unsafe,S=!!Q&&!!Q.enumerable,m=!!Q&&!!Q.noTargetGet,d=Q&&void 0!==Q.name?Q.name:B;i(w)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(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?!m&&f[B]&&(S=!0):delete f[B],S?f[B]=w:l(f,B,w)):S?f[B]=w:h(B,w)})(Function.prototype,"toString",function(){return i(this)&&u(this).source||a(this)})},7651:function(Y,I,n){var c=n(7854),i=n(6916),o=n(9670),l=n(614),h=n(4326),a=n(2261),g=c.TypeError;Y.exports=function(E,u){var C=E.exec;if(l(C)){var e=i(C,E,u);return null!==e&&o(e),e}if("RegExp"===h(E))return i(a,E,u);throw g("RegExp#exec called on incompatible receiver")}},2261:function(Y,I,n){"use strict";var U,T,c=n(6916),i=n(1702),o=n(1340),l=n(7066),h=n(2999),a=n(2309),g=n(30),E=n(9909).get,u=n(9441),C=n(7168),e=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,B=f,w=i("".charAt),Q=i("".indexOf),p=i("".replace),S=i("".slice),m=(T=/b*/g,c(f,U=/a/,"a"),c(f,T,"a"),0!==U.lastIndex||0!==T.lastIndex),d=h.UNSUPPORTED_Y||h.BROKEN_CARET,v=void 0!==/()??/.exec("")[1];(m||v||d||u||C)&&(B=function(T){var aA,AA,lA,pA,cA,gA,BA,F=this,R=E(F),L=o(T),Z=R.raw;if(Z)return Z.lastIndex=F.lastIndex,aA=c(B,Z,L),F.lastIndex=Z.lastIndex,aA;var yA=R.groups,xA=d&&F.sticky,_=c(l,F),MA=F.source,uA=0,QA=L;if(xA&&(_=p(_,"y",""),-1===Q(_,"g")&&(_+="g"),QA=S(L,F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&"\n"!==w(L,F.lastIndex-1))&&(MA="(?: "+MA+")",QA=" "+QA,uA++),AA=new RegExp("^(?:"+MA+")",_)),v&&(AA=new RegExp("^"+MA+"$(?!\\s)",_)),m&&(lA=F.lastIndex),pA=c(f,xA?AA:F,QA),xA?pA?(pA.input=S(pA.input,uA),pA[0]=S(pA[0],uA),pA.index=F.lastIndex,F.lastIndex+=pA[0].length):F.lastIndex=0:m&&pA&&(F.lastIndex=F.global?pA.index+pA[0].length:lA),v&&pA&&pA.length>1&&c(e,pA[0],AA,function(){for(cA=1;cAb)","g");return"b"!==l.exec("b").groups.a||"bc"!=="b".replace(l,"$c")})},4488:function(Y,I,n){var i=n(7854).TypeError;Y.exports=function(o){if(null==o)throw i("Can't call method on "+o);return o}},3505:function(Y,I,n){var c=n(7854),i=Object.defineProperty;Y.exports=function(o,l){try{i(c,o,{value:l,configurable:!0,writable:!0})}catch(h){c[o]=l}return l}},6340:function(Y,I,n){"use strict";var c=n(5005),i=n(3070),o=n(5112),l=n(9781),h=o("species");Y.exports=function(a){var g=c(a);l&&g&&!g[h]&&(0,i.f)(g,h,{configurable:!0,get:function(){return this}})}},8003:function(Y,I,n){var c=n(3070).f,i=n(2597),l=n(5112)("toStringTag");Y.exports=function(h,a,g){h&&!i(h=g?h:h.prototype,l)&&c(h,l,{configurable:!0,value:a})}},6200:function(Y,I,n){var c=n(2309),i=n(9711),o=c("keys");Y.exports=function(l){return o[l]||(o[l]=i(l))}},5465:function(Y,I,n){var c=n(7854),i=n(3505),o="__core-js_shared__",l=c[o]||i(o,{});Y.exports=l},2309:function(Y,I,n){var c=n(1913),i=n(5465);(Y.exports=function(o,l){return i[o]||(i[o]=void 0!==l?l:{})})("versions",[]).push({version:"3.19.0",mode:c?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(Y,I,n){var c=n(9670),i=n(9483),l=n(5112)("species");Y.exports=function(h,a){var E,g=c(h).constructor;return void 0===g||null==(E=c(g)[l])?a:i(E)}},3429:function(Y,I,n){var c=n(7293);Y.exports=function(i){return c(function(){var o=""[i]('"');return o!==o.toLowerCase()||o.split('"').length>3})}},8710:function(Y,I,n){var c=n(1702),i=n(9303),o=n(1340),l=n(4488),h=c("".charAt),a=c("".charCodeAt),g=c("".slice),E=function(u){return function(C,e){var Q,p,f=o(l(C)),B=i(e),w=f.length;return B<0||B>=w?u?"":void 0:(Q=a(f,B))<55296||Q>56319||B+1===w||(p=a(f,B+1))<56320||p>57343?u?h(f,B):Q:u?g(f,B,B+2):p-56320+(Q-55296<<10)+65536}};Y.exports={codeAt:E(!1),charAt:E(!0)}},8415:function(Y,I,n){"use strict";var c=n(7854),i=n(9303),o=n(1340),l=n(4488),h=c.RangeError;Y.exports=function(g){var E=o(l(this)),u="",C=i(g);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(Y,I,n){var c=n(6530).PROPER,i=n(7293),o=n(1361);Y.exports=function(h){return i(function(){return!!o[h]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[h]()||c&&o[h].name!==h})}},3111:function(Y,I,n){var c=n(1702),i=n(4488),o=n(1340),l=n(1361),h=c("".replace),a="["+l+"]",g=RegExp("^"+a+a+"*"),E=RegExp(a+a+"*$"),u=function(C){return function(e){var f=o(i(e));return 1&C&&(f=h(f,g,"")),2&C&&(f=h(f,E,"")),f}};Y.exports={start:u(1),end:u(2),trim:u(3)}},261:function(Y,I,n){var U,T,F,R,c=n(7854),i=n(2104),o=n(9974),l=n(614),h=n(2597),a=n(7293),g=n(490),E=n(206),u=n(317),C=n(6833),e=n(5268),f=c.setImmediate,B=c.clearImmediate,w=c.process,Q=c.Dispatch,p=c.Function,S=c.MessageChannel,m=c.String,d=0,v={},D="onreadystatechange";try{U=c.location}catch(lA){}var L=function(lA){if(h(v,lA)){var pA=v[lA];delete v[lA],pA()}},Z=function(lA){return function(){L(lA)}},aA=function(lA){L(lA.data)},AA=function(lA){c.postMessage(m(lA),U.protocol+"//"+U.host)};(!f||!B)&&(f=function(pA){var cA=E(arguments,1);return v[++d]=function(){i(l(pA)?pA:p(pA),void 0,cA)},T(d),d},B=function(pA){delete v[pA]},e?T=function(lA){w.nextTick(Z(lA))}:Q&&Q.now?T=function(lA){Q.now(Z(lA))}:S&&!C?(R=(F=new S).port2,F.port1.onmessage=aA,T=o(R.postMessage,R)):c.addEventListener&&l(c.postMessage)&&!c.importScripts&&U&&"file:"!==U.protocol&&!a(AA)?(T=AA,c.addEventListener("message",aA,!1)):T=D in u("script")?function(lA){g.appendChild(u("script"))[D]=function(){g.removeChild(this),L(lA)}}:function(lA){setTimeout(Z(lA),0)}),Y.exports={set:f,clear:B}},863:function(Y,I,n){var c=n(1702);Y.exports=c(1..valueOf)},1400:function(Y,I,n){var c=n(9303),i=Math.max,o=Math.min;Y.exports=function(l,h){var a=c(l);return a<0?i(a+h,0):o(a,h)}},7067:function(Y,I,n){var c=n(7854),i=n(9303),o=n(7466),l=c.RangeError;Y.exports=function(h){if(void 0===h)return 0;var a=i(h),g=o(a);if(a!==g)throw l("Wrong length or index");return g}},5656:function(Y,I,n){var c=n(8361),i=n(4488);Y.exports=function(o){return c(i(o))}},9303:function(Y){var I=Math.ceil,n=Math.floor;Y.exports=function(c){var i=+c;return i!=i||0===i?0:(i>0?n:I)(i)}},7466:function(Y,I,n){var c=n(9303),i=Math.min;Y.exports=function(o){return o>0?i(c(o),9007199254740991):0}},7908:function(Y,I,n){var c=n(7854),i=n(4488),o=c.Object;Y.exports=function(l){return o(i(l))}},4590:function(Y,I,n){var c=n(7854),i=n(3002),o=c.RangeError;Y.exports=function(l,h){var a=i(l);if(a%h)throw o("Wrong offset");return a}},3002:function(Y,I,n){var c=n(7854),i=n(9303),o=c.RangeError;Y.exports=function(l){var h=i(l);if(h<0)throw o("The argument can't be less than 0");return h}},7593:function(Y,I,n){var c=n(7854),i=n(6916),o=n(111),l=n(2190),h=n(8173),a=n(2140),g=n(5112),E=c.TypeError,u=g("toPrimitive");Y.exports=function(C,e){if(!o(C)||l(C))return C;var B,f=h(C,u);if(f){if(void 0===e&&(e="default"),B=i(f,C,e),!o(B)||l(B))return B;throw E("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(C,e)}},4948:function(Y,I,n){var c=n(7593),i=n(2190);Y.exports=function(o){var l=c(o,"string");return i(l)?l:l+""}},1694:function(Y,I,n){var o={};o[n(5112)("toStringTag")]="z",Y.exports="[object z]"===String(o)},1340:function(Y,I,n){var c=n(7854),i=n(648),o=c.String;Y.exports=function(l){if("Symbol"===i(l))throw TypeError("Cannot convert a Symbol value to a string");return o(l)}},6330:function(Y,I,n){var i=n(7854).String;Y.exports=function(o){try{return i(o)}catch(l){return"Object"}}},9843:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(6916),l=n(9781),h=n(3832),a=n(2094),g=n(2091),E=n(5787),u=n(9114),C=n(8880),e=n(5988),f=n(7466),B=n(7067),w=n(4590),Q=n(4948),p=n(2597),S=n(648),m=n(111),d=n(2190),v=n(30),D=n(7976),U=n(7674),T=n(8006).f,F=n(7321),R=n(2092).forEach,L=n(6340),Z=n(3070),aA=n(1236),AA=n(9909),lA=n(9587),pA=AA.get,cA=AA.set,gA=Z.f,BA=aA.f,yA=Math.round,xA=i.RangeError,_=g.ArrayBuffer,MA=_.prototype,uA=g.DataView,QA=a.NATIVE_ARRAY_BUFFER_VIEWS,SA=a.TYPED_ARRAY_CONSTRUCTOR,bA=a.TYPED_ARRAY_TAG,ZA=a.TypedArray,q=a.TypedArrayPrototype,J=a.aTypedArrayConstructor,$=a.isTypedArray,W="BYTES_PER_ELEMENT",hA="Wrong length",vA=function(TA,it){J(TA);for(var vt=0,It=it.length,Mt=new TA(It);It>vt;)Mt[vt]=it[vt++];return Mt},nA=function(TA,it){gA(TA,it,{get:function(){return pA(this)[it]}})},EA=function(TA){var it;return D(MA,TA)||"ArrayBuffer"==(it=S(TA))||"SharedArrayBuffer"==it},GA=function(TA,it){return $(TA)&&!d(it)&&it in TA&&e(+it)&&it>=0},nt=function(it,vt){return vt=Q(vt),GA(it,vt)?u(2,it[vt]):BA(it,vt)},lt=function(it,vt,It){return vt=Q(vt),!(GA(it,vt)&&m(It)&&p(It,"value"))||p(It,"get")||p(It,"set")||It.configurable||p(It,"writable")&&!It.writable||p(It,"enumerable")&&!It.enumerable?gA(it,vt,It):(it[vt]=It.value,it)};l?(QA||(aA.f=nt,Z.f=lt,nA(q,"buffer"),nA(q,"byteOffset"),nA(q,"byteLength"),nA(q,"length")),c({target:"Object",stat:!0,forced:!QA},{getOwnPropertyDescriptor:nt,defineProperty:lt}),Y.exports=function(TA,it,vt){var It=TA.match(/\d+$/)[0]/8,Mt=TA+(vt?"Clamped":"")+"Array",JA="get"+TA,qA="set"+TA,at=i[Mt],et=at,FA=et&&et.prototype,dt={},H=function(k,b){gA(k,b,{get:function(){return function(k,b){var CA=pA(k);return CA.view[JA](b*It+CA.byteOffset,!0)}(this,b)},set:function(CA){return function(k,b,CA){var wA=pA(k);vt&&(CA=(CA=yA(CA))<0?0:CA>255?255:255&CA),wA.view[qA](b*It+wA.byteOffset,CA,!0)}(this,b,CA)},enumerable:!0})};QA?h&&(et=it(function(k,b,CA,wA){return E(k,FA),lA(m(b)?EA(b)?void 0!==wA?new at(b,w(CA,It),wA):void 0!==CA?new at(b,w(CA,It)):new at(b):$(b)?vA(et,b):o(F,et,b):new at(B(b)),k,et)}),U&&U(et,ZA),R(T(at),function(k){k in et||C(et,k,at[k])}),et.prototype=FA):(et=it(function(k,b,CA,wA){E(k,FA);var Bt,Yt,j,RA=0,rA=0;if(m(b)){if(!EA(b))return $(b)?vA(et,b):o(F,et,b);Bt=b,rA=w(CA,It);var XA=b.byteLength;if(void 0===wA){if(XA%It||(Yt=XA-rA)<0)throw xA(hA)}else if((Yt=f(wA)*It)+rA>XA)throw xA(hA);j=Yt/It}else j=B(b),Bt=new _(Yt=j*It);for(cA(k,{buffer:Bt,byteOffset:rA,byteLength:Yt,length:j,view:new uA(Bt)});RA1?arguments[1]:void 0,p=void 0!==Q,S=g(B);if(S&&!E(S))for(T=(U=a(B,S)).next,B=[];!(D=i(T,U)).done;)B.push(D.value);for(p&&w>2&&(Q=c(Q,arguments[2])),d=h(B),v=new(u(f))(d),m=0;d>m;m++)v[m]=p?Q(B[m],m):B[m];return v}},6304:function(Y,I,n){var c=n(2094),i=n(6707),o=c.TYPED_ARRAY_CONSTRUCTOR,l=c.aTypedArrayConstructor;Y.exports=function(h){return l(i(h,h[o]))}},9711:function(Y,I,n){var c=n(1702),i=0,o=Math.random(),l=c(1..toString);Y.exports=function(h){return"Symbol("+(void 0===h?"":h)+")_"+l(++i+o,36)}},3307:function(Y,I,n){var c=n(133);Y.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(Y,I,n){var c=n(5112);I.f=c},5112:function(Y,I,n){var c=n(7854),i=n(2309),o=n(2597),l=n(9711),h=n(133),a=n(3307),g=i("wks"),E=c.Symbol,u=E&&E.for,C=a?E:E&&E.withoutSetter||l;Y.exports=function(e){if(!o(g,e)||!h&&"string"!=typeof g[e]){var f="Symbol."+e;g[e]=h&&o(E,e)?E[e]:a&&u?u(f):C(f)}return g[e]}},1361:function(Y){Y.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(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(7976),l=n(9518),h=n(7674),a=n(9920),g=n(30),E=n(8880),u=n(9114),C=n(7741),e=n(8340),f=n(408),B=n(6277),w=n(2914),Q=i.Error,p=[].push,S=function(v,D){var U=o(m,this)?this:g(m),T=arguments.length>2?arguments[2]:void 0;h&&(U=h(new Q(void 0),l(U))),E(U,"message",B(D,"")),w&&E(U,"stack",C(U.stack,1)),e(U,T);var F=[];return f(v,p,{that:F}),E(U,"errors",F),U};h?h(S,Q):a(S,Q);var m=S.prototype=g(Q.prototype,{constructor:u(1,S),message:u(1,""),name:u(1,"AggregateError")});c({global:!0},{AggregateError:S})},2222:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(7293),l=n(3157),h=n(111),a=n(7908),g=n(6244),E=n(6135),u=n(5417),C=n(1194),e=n(5112),f=n(7392),B=e("isConcatSpreadable"),w=9007199254740991,Q="Maximum allowed index exceeded",p=i.TypeError,S=f>=51||!o(function(){var D=[];return D[B]=!1,D.concat()[0]!==D}),m=C("concat"),d=function(D){if(!h(D))return!1;var U=D[B];return void 0!==U?!!U:l(D)};c({target:"Array",proto:!0,forced:!S||!m},{concat:function(U){var L,Z,aA,AA,lA,T=a(this),F=u(T,0),R=0;for(L=-1,aA=arguments.length;Lw)throw p(Q);for(Z=0;Z=w)throw p(Q);E(F,R++,lA)}return F.length=R,F}})},545:function(Y,I,n){var c=n(2109),i=n(1048),o=n(1223);c({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},3290:function(Y,I,n){var c=n(2109),i=n(1285),o=n(1223);c({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(Y,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(Y,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(Y,I,n){"use strict";var c=n(2109),i=n(1318).includes,o=n(1223);c({target:"Array",proto:!0},{includes:function(h){return i(this,h,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(Y,I,n){"use strict";var c=n(5656),i=n(1223),o=n(7497),l=n(9909),h=n(654),a="Array Iterator",g=l.set,E=l.getterFor(a);Y.exports=h(Array,"Array",function(u,C){g(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"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9600:function(Y,I,n){"use strict";var c=n(2109),i=n(1702),o=n(8361),l=n(5656),h=n(9341),a=i([].join),g=o!=Object,E=h("join",",");c({target:"Array",proto:!0,forced:g||!E},{join:function(C){return a(l(this),void 0===C?",":C)}})},1249:function(Y,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(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(3157),l=n(4411),h=n(111),a=n(1400),g=n(6244),E=n(5656),u=n(6135),C=n(5112),e=n(1194),f=n(206),B=e("slice"),w=C("species"),Q=i.Array,p=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(m,d){var F,R,L,v=E(this),D=g(v),U=a(m,D),T=a(void 0===d?D:d,D);if(o(v)&&((l(F=v.constructor)&&(F===Q||o(F.prototype))||h(F)&&null===(F=F[w]))&&(F=void 0),F===Q||void 0===F))return f(v,U,T);for(R=new(void 0===F?Q:F)(p(T-U,0)),L=0;U3)){if(e)return!0;if(B)return B<603;var F,R,L,Z,T="";for(F=65;F<76;F++){switch(R=String.fromCharCode(F),F){case 66:case 69:case 70:case 72:L=3;break;case 68:case 71:L=4;break;default:L=2}for(Z=0;Z<47;Z++)w.push({k:R+Z,v:L})}for(w.sort(function(aA,AA){return AA.v-aA.v}),Z=0;Za(R)?1:-1}}(F)),aA=L.length,AA=0;AAw)throw e(Q);for(R=g(d,F),L=0;Lv-F+T;L--)delete d[L-1]}else if(T>F)for(L=v-F;L>D;L--)aA=L+T-1,(Z=L+F-1)in d?d[aA]=d[Z]:delete d[aA];for(L=0;L2)if(lA=p(lA),43===(pA=U(lA,0))||45===pA){if(88===(cA=U(lA,2))||120===cA)return NaN}else if(48===pA){switch(U(lA,1)){case 66:case 98:gA=2,BA=49;break;case 79:case 111:gA=8,BA=55;break;default:return+lA}for(xA=(yA=D(lA,2)).length,_=0;_BA)return NaN;return parseInt(yA,gA)}return+lA};if(l(S,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var aA,R=function(lA){var pA=arguments.length<1?0:m(T(lA)),cA=this;return E(d,cA)&&e(function(){Q(cA)})?g(Object(pA),cA,R):pA},L=c?f(m):"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(","),Z=0;L.length>Z;Z++)a(m,aA=L[Z])&&!a(R,aA)&&w(R,aA,B(m,aA));R.prototype=d,d.constructor=R,h(i,S,R)}},3299:function(Y,I,n){n(2109)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},5192:function(Y,I,n){n(2109)({target:"Number",stat:!0},{isFinite:n(7023)})},3161:function(Y,I,n){n(2109)({target:"Number",stat:!0},{isInteger:n(5988)})},6977:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(1702),l=n(9303),h=n(863),a=n(8415),g=n(7293),E=i.RangeError,u=i.String,C=Math.floor,e=o(a),f=o("".slice),B=o(1..toFixed),w=function(v,D,U){return 0===D?U:D%2==1?w(v,D-1,U*v):w(v*v,D/2,U)},p=function(v,D,U){for(var T=-1,F=U;++T<6;)v[T]=(F+=D*v[T])%1e7,F=C(F/1e7)},S=function(v,D){for(var U=6,T=0;--U>=0;)v[U]=C((T+=v[U])/D),T=T%D*1e7},m=function(v){for(var D=6,U="";--D>=0;)if(""!==U||0===D||0!==v[D]){var T=u(v[D]);U=""===U?T:U+e("0",7-T.length)+T}return U};c({target:"Number",proto:!0,forced:g(function(){return"0.000"!==B(8e-5,3)||"1"!==B(.9,0)||"1.25"!==B(1.255,2)||"1000000000000000128"!==B(0xde0b6b3a7640080,0)})||!g(function(){B({})})},{toFixed:function(D){var Z,aA,AA,lA,U=h(this),T=l(D),F=[0,0,0,0,0,0],R="",L="0";if(T<0||T>20)throw E("Incorrect fraction digits");if(U!=U)return"NaN";if(U<=-1e21||U>=1e21)return u(U);if(U<0&&(R="-",U=-U),U>1e-21)if(aA=(Z=function(v){for(var D=0,U=v;U>=4096;)D+=12,U/=4096;for(;U>=2;)D+=1,U/=2;return D}(U*w(2,69,1))-69)<0?U*w(2,-Z,1):U/w(2,Z,1),aA*=4503599627370496,(Z=52-Z)>0){for(p(F,0,aA),AA=T;AA>=7;)p(F,1e7,0),AA-=7;for(p(F,w(10,AA,1),0),AA=Z-1;AA>=23;)S(F,8388608),AA-=23;S(F,1<0?R+((lA=L.length)<=T?"0."+e("0",T-lA)+L:f(L,0,lA-T)+"."+f(L,lA-T)):R+L}})},9601:function(Y,I,n){var c=n(2109),i=n(1574);c({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(Y,I,n){var c=n(2109),i=n(6677),o=n(7293),l=n(111),h=n(2423).onFreeze,a=Object.freeze;c({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!i},{freeze:function(u){return a&&l(u)?a(h(u)):u}})},5003:function(Y,I,n){var c=n(2109),i=n(7293),o=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(o(u),C)}})},9337:function(Y,I,n){var c=n(2109),i=n(9781),o=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=o(u),f={},B=0;e.length>B;)void 0!==(Q=C(u,w=e[B++]))&&a(f,w,Q);return f}})},489:function(Y,I,n){var c=n(2109),i=n(7293),o=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(o(E))}})},7941:function(Y,I,n){var c=n(2109),i=n(7908),o=n(1956);c({target:"Object",stat:!0,forced:n(7293)(function(){o(1)})},{keys:function(g){return o(i(g))}})},1539:function(Y,I,n){var c=n(1694),i=n(1320),o=n(288);c||i(Object.prototype,"toString",o,{unsafe:!0})},2479:function(Y,I,n){var c=n(2109),i=n(4699).values;c({target:"Object",stat:!0},{values:function(l){return i(l)}})},7922:function(Y,I,n){"use strict";var c=n(2109),i=n(6916),o=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,B=h(function(){var w=o(u.resolve),Q=[],p=0,S=1;a(E,function(m){var d=p++,v=!1;S++,i(w,u,m).then(function(D){v||(v=!0,Q[d]={status:"fulfilled",value:D},--S||e(Q))},function(D){v||(v=!0,Q[d]={status:"rejected",reason:D},--S||e(Q))})}),--S||e(Q)});return B.error&&f(B.value),C.promise}})},4668:function(Y,I,n){"use strict";var c=n(2109),i=n(9662),o=n(5005),l=n(6916),h=n(8523),a=n(2534),g=n(408),E="No one promise resolved";c({target:"Promise",stat:!0},{any:function(C){var e=this,f=o("AggregateError"),B=h.f(e),w=B.resolve,Q=B.reject,p=a(function(){var S=i(e.resolve),m=[],d=0,v=1,D=!1;g(C,function(U){var T=d++,F=!1;v++,l(S,e,U).then(function(R){F||D||(D=!0,w(R))},function(R){F||D||(F=!0,m[T]=R,--v||Q(new f(m,E)))})}),--v||Q(new f(m,E))});return p.error&&Q(p.value),B.promise}})},7727:function(Y,I,n){"use strict";var c=n(2109),i=n(1913),o=n(3366),l=n(7293),h=n(5005),a=n(614),g=n(6707),E=n(9478),u=n(1320);if(c({target:"Promise",proto:!0,real:!0,forced:!!o&&l(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(f){var B=g(this,h("Promise")),w=a(f);return this.then(w?function(Q){return E(B,f()).then(function(){return Q})}:f,w?function(Q){return E(B,f()).then(function(){throw Q})}:f)}}),!i&&a(o)){var e=h("Promise").prototype.finally;o.prototype.finally!==e&&u(o.prototype,"finally",e,{unsafe:!0})}},8674:function(Y,I,n){"use strict";var TA,it,vt,It,c=n(2109),i=n(1913),o=n(7854),l=n(5005),h=n(6916),a=n(3366),g=n(1320),E=n(2248),u=n(7674),C=n(8003),e=n(6340),f=n(9662),B=n(614),w=n(111),Q=n(5787),p=n(2788),S=n(408),m=n(7072),d=n(6707),v=n(261).set,D=n(5948),U=n(9478),T=n(842),F=n(8523),R=n(2534),L=n(9909),Z=n(4705),aA=n(5112),AA=n(7871),lA=n(5268),pA=n(7392),cA=aA("species"),gA="Promise",BA=L.get,yA=L.set,xA=L.getterFor(gA),_=a&&a.prototype,MA=a,uA=_,QA=o.TypeError,SA=o.document,bA=o.process,ZA=F.f,q=ZA,J=!!(SA&&SA.createEvent&&o.dispatchEvent),$=B(o.PromiseRejectionEvent),W="unhandledrejection",lt=!1,Mt=Z(gA,function(){var b=p(MA),CA=b!==String(MA);if(!CA&&66===pA||i&&!uA.finally)return!0;if(pA>=51&&/native code/.test(b))return!1;var wA=new MA(function(Bt){Bt(1)}),RA=function(Bt){Bt(function(){},function(){})};return(wA.constructor={})[cA]=RA,!(lt=wA.then(function(){})instanceof RA)||!CA&&AA&&!$}),JA=Mt||!m(function(b){MA.all(b).catch(function(){})}),qA=function(b){var CA;return!(!w(b)||!B(CA=b.then))&&CA},at=function(b,CA){if(!b.notified){b.notified=!0;var wA=b.reactions;D(function(){for(var RA=b.value,rA=1==b.state,Bt=0;wA.length>Bt;){var jA,ct,Lt,Yt=wA[Bt++],j=rA?Yt.ok:Yt.fail,XA=Yt.resolve,KA=Yt.reject,DA=Yt.domain;try{j?(rA||(2===b.rejection&&mt(b),b.rejection=1),!0===j?jA=RA:(DA&&DA.enter(),jA=j(RA),DA&&(DA.exit(),Lt=!0)),jA===Yt.promise?KA(QA("Promise-chain cycle")):(ct=qA(jA))?h(ct,jA,XA,KA):XA(jA)):KA(RA)}catch(xt){DA&&!Lt&&DA.exit(),KA(xt)}}b.reactions=[],b.notified=!1,CA&&!b.rejection&&FA(b)})}},et=function(b,CA,wA){var RA,rA;J?((RA=SA.createEvent("Event")).promise=CA,RA.reason=wA,RA.initEvent(b,!1,!0),o.dispatchEvent(RA)):RA={promise:CA,reason:wA},!$&&(rA=o["on"+b])?rA(RA):b===W&&T("Unhandled promise rejection",wA)},FA=function(b){h(v,o,function(){var rA,CA=b.facade,wA=b.value;if(dt(b)&&(rA=R(function(){lA?bA.emit("unhandledRejection",wA,CA):et(W,CA,wA)}),b.rejection=lA||dt(b)?2:1,rA.error))throw rA.value})},dt=function(b){return 1!==b.rejection&&!b.parent},mt=function(b){h(v,o,function(){var CA=b.facade;lA?bA.emit("rejectionHandled",CA):et("rejectionhandled",CA,b.value)})},OA=function(b,CA,wA){return function(RA){b(CA,RA,wA)}},H=function(b,CA,wA){b.done||(b.done=!0,wA&&(b=wA),b.value=CA,b.state=2,at(b,!0))},k=function(b,CA,wA){if(!b.done){b.done=!0,wA&&(b=wA);try{if(b.facade===CA)throw QA("Promise can't be resolved itself");var RA=qA(CA);RA?D(function(){var rA={done:!1};try{h(RA,CA,OA(k,rA,b),OA(H,rA,b))}catch(Bt){H(rA,Bt,b)}}):(b.value=CA,b.state=1,at(b,!1))}catch(rA){H({done:!1},rA,b)}}};if(Mt&&(MA=function(CA){Q(this,uA),f(CA),h(TA,this);var wA=BA(this);try{CA(OA(k,wA),OA(H,wA))}catch(RA){H(wA,RA)}},(TA=function(CA){yA(this,{type:gA,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=E(uA=MA.prototype,{then:function(CA,wA){var RA=xA(this),rA=RA.reactions,Bt=ZA(d(this,MA));return Bt.ok=!B(CA)||CA,Bt.fail=B(wA)&&wA,Bt.domain=lA?bA.domain:void 0,RA.parent=!0,rA[rA.length]=Bt,0!=RA.state&&at(RA,!1),Bt.promise},catch:function(b){return this.then(void 0,b)}}),it=function(){var b=new TA,CA=BA(b);this.promise=b,this.resolve=OA(k,CA),this.reject=OA(H,CA)},F.f=ZA=function(b){return b===MA||b===vt?new it(b):q(b)},!i&&B(a)&&_!==Object.prototype)){It=_.then,lt||(g(_,"then",function(CA,wA){var RA=this;return new MA(function(rA,Bt){h(It,RA,rA,Bt)}).then(CA,wA)},{unsafe:!0}),g(_,"catch",uA.catch,{unsafe:!0}));try{delete _.constructor}catch(b){}u&&u(_,uA)}c({global:!0,wrap:!0,forced:Mt},{Promise:MA}),C(MA,gA,!1,!0),e(gA),vt=l(gA),c({target:gA,stat:!0,forced:Mt},{reject:function(CA){var wA=ZA(this);return h(wA.reject,void 0,CA),wA.promise}}),c({target:gA,stat:!0,forced:i||Mt},{resolve:function(CA){return U(i&&this===vt?MA:this,CA)}}),c({target:gA,stat:!0,forced:JA},{all:function(CA){var wA=this,RA=ZA(wA),rA=RA.resolve,Bt=RA.reject,Yt=R(function(){var j=f(wA.resolve),XA=[],KA=0,DA=1;S(CA,function(jA){var ct=KA++,Lt=!1;DA++,h(j,wA,jA).then(function(xt){Lt||(Lt=!0,XA[ct]=xt,--DA||rA(XA))},Bt)}),--DA||rA(XA)});return Yt.error&&Bt(Yt.value),RA.promise},race:function(CA){var wA=this,RA=ZA(wA),rA=RA.reject,Bt=R(function(){var Yt=f(wA.resolve);S(CA,function(j){h(Yt,wA,j).then(RA.resolve,rA)})});return Bt.error&&rA(Bt.value),RA.promise}})},2419:function(Y,I,n){var c=n(2109),i=n(5005),o=n(2104),l=n(7065),h=n(9483),a=n(9670),g=n(111),E=n(30),u=n(7293),C=i("Reflect","construct"),e=Object.prototype,f=[].push,B=u(function(){function p(){}return!(C(function(){},[],p)instanceof p)}),w=!u(function(){C(function(){})}),Q=B||w;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(S,m){h(S),a(m);var d=arguments.length<3?S:h(arguments[2]);if(w&&!B)return C(S,m,d);if(S==d){switch(m.length){case 0:return new S;case 1:return new S(m[0]);case 2:return new S(m[0],m[1]);case 3:return new S(m[0],m[1],m[2]);case 4:return new S(m[0],m[1],m[2],m[3])}var v=[null];return o(f,v,m),new(o(l,S,v))}var D=d.prototype,U=E(g(D)?D:e),T=o(S,U,m);return g(T)?T:U}})},4916:function(Y,I,n){"use strict";var c=n(2109),i=n(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2087:function(Y,I,n){var c=n(9781),i=n(3070),o=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:o})},9714:function(Y,I,n){"use strict";var c=n(1702),i=n(6530).PROPER,o=n(1320),l=n(9670),h=n(7976),a=n(1340),g=n(7293),E=n(7066),u="toString",C=RegExp.prototype,e=C[u],f=c(E);(g(function(){return"/a/b"!=e.call({source:"a",flags:"b"})})||i&&e.name!=u)&&o(RegExp.prototype,u,function(){var p=l(this),S=a(p.source),m=p.flags;return"/"+S+"/"+a(void 0===m&&h(C,p)&&!("flags"in C)?f(p):m)},{unsafe:!0})},189:function(Y,I,n){"use strict";n(7710)("Set",function(o){return function(){return o(this,arguments.length?arguments[0]:void 0)}},n(5631))},9841:function(Y,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(Y,I,n){var c=n(2109),i=n(7854),o=n(1702),l=n(1400),h=i.RangeError,a=String.fromCharCode,g=String.fromCodePoint,E=o([].join);c({target:"String",stat:!0,forced:!!g&&1!=g.length},{fromCodePoint:function(e){for(var Q,f=[],B=arguments.length,w=0;B>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(Y,I,n){"use strict";var c=n(2109),i=n(1702),o=n(3929),l=n(4488),h=n(1340),a=n(4964),g=i("".indexOf);c({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~g(h(l(this)),h(o(u)),arguments.length>1?arguments[1]:void 0)}})},8734:function(Y,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(Y,I,n){"use strict";var c=n(8710).charAt,i=n(1340),o=n(9909),l=n(654),h="String Iterator",a=o.set,g=o.getterFor(h);l(String,"String",function(E){a(this,{type:h,string:i(E),index:0})},function(){var f,u=g(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(Y,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(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(6916),l=n(1702),h=n(4994),a=n(4488),g=n(7466),E=n(1340),u=n(9670),C=n(4326),e=n(7976),f=n(7850),B=n(7066),w=n(8173),Q=n(1320),p=n(7293),S=n(5112),m=n(6707),d=n(1530),v=n(7651),D=n(9909),U=n(1913),T=S("matchAll"),F="RegExp String",R=F+" Iterator",L=D.set,Z=D.getterFor(R),aA=RegExp.prototype,AA=i.TypeError,lA=l(B),pA=l("".indexOf),cA=l("".matchAll),gA=!!cA&&!p(function(){cA("a",/./)}),BA=h(function(_,MA,uA,QA){L(this,{type:R,regexp:_,string:MA,global:uA,unicode:QA,done:!1})},F,function(){var _=Z(this);if(_.done)return{value:void 0,done:!0};var MA=_.regexp,uA=_.string,QA=v(MA,uA);return null===QA?{value:void 0,done:_.done=!0}:_.global?(""===E(QA[0])&&(MA.lastIndex=d(uA,g(MA.lastIndex),_.unicode)),{value:QA,done:!1}):(_.done=!0,{value:QA,done:!1})}),yA=function(xA){var uA,QA,SA,bA,ZA,q,_=u(this),MA=E(xA);return uA=m(_,RegExp),void 0===(QA=_.flags)&&e(aA,_)&&!("flags"in aA)&&(QA=lA(_)),SA=void 0===QA?"":E(QA),bA=new uA(uA===RegExp?_.source:_,SA),ZA=!!~pA(SA,"g"),q=!!~pA(SA,"u"),bA.lastIndex=g(_.lastIndex),new BA(bA,MA,ZA,q)};c({target:"String",proto:!0,forced:gA},{matchAll:function(_){var uA,QA,SA,bA,MA=a(this);if(null!=_){if(f(_)&&(uA=E(a("flags"in aA?_.flags:lA(_))),!~pA(uA,"g")))throw AA("`.matchAll` does not allow non-global regexes");if(gA)return cA(MA,_);if(void 0===(SA=w(_,T))&&U&&"RegExp"==C(_)&&(SA=yA),SA)return o(SA,_,MA)}else if(gA)return cA(MA,_);return QA=E(MA),bA=new RegExp(_,"g"),U?o(yA,bA,QA):bA[T](QA)}}),U||T in aA||Q(aA,T,yA)},4723:function(Y,I,n){"use strict";var c=n(6916),i=n(7007),o=n(9670),l=n(7466),h=n(1340),a=n(4488),g=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:g(w,C);return p?c(p,w,Q):new RegExp(w)[C](h(Q))},function(B){var w=o(this),Q=h(B),p=f(e,w,Q);if(p.done)return p.value;if(!w.global)return u(w,Q);var S=w.unicode;w.lastIndex=0;for(var v,m=[],d=0;null!==(v=u(w,Q));){var D=h(v[0]);m[d]=D,""===D&&(w.lastIndex=E(Q,l(w.lastIndex),S)),d++}return 0===d?null:m}]})},2481:function(Y,I,n){n(2109)({target:"String",proto:!0},{repeat:n(8415)})},5306:function(Y,I,n){"use strict";var c=n(2104),i=n(6916),o=n(1702),l=n(7007),h=n(7293),a=n(9670),g=n(614),E=n(9303),u=n(7466),C=n(1340),e=n(4488),f=n(1530),B=n(8173),w=n(647),Q=n(7651),S=n(5112)("replace"),m=Math.max,d=Math.min,v=o([].concat),D=o([].push),U=o("".indexOf),T=o("".slice),F=function(aA){return void 0===aA?aA:String(aA)},R="$0"==="a".replace(/./,"$0"),L=!!/./[S]&&""===/./[S]("a","$0");l("replace",function(aA,AA,lA){var pA=L?"$":"$0";return[function(gA,BA){var yA=e(this),xA=null==gA?void 0:B(gA,S);return xA?i(xA,gA,yA,BA):i(AA,C(yA),gA,BA)},function(cA,gA){var BA=a(this),yA=C(cA);if("string"==typeof gA&&-1===U(gA,pA)&&-1===U(gA,"$<")){var xA=lA(AA,BA,yA,gA);if(xA.done)return xA.value}var _=g(gA);_||(gA=C(gA));var MA=BA.global;if(MA){var uA=BA.unicode;BA.lastIndex=0}for(var QA=[];;){var SA=Q(BA,yA);if(null===SA||(D(QA,SA),!MA))break;""===C(SA[0])&&(BA.lastIndex=f(yA,u(BA.lastIndex),uA))}for(var ZA="",q=0,J=0;J=q&&(ZA+=T(yA,q,W)+GA,q=W+$.length)}return ZA+T(yA,q)}]},!!h(function(){var aA=/./;return aA.exec=function(){var AA=[];return AA.groups={a:"7"},AA},"7"!=="".replace(aA,"$")})||!R||L)},3123:function(Y,I,n){"use strict";var c=n(2104),i=n(6916),o=n(1702),l=n(7007),h=n(7850),a=n(9670),g=n(4488),E=n(6707),u=n(1530),C=n(7466),e=n(1340),f=n(8173),B=n(206),w=n(7651),Q=n(2261),p=n(2999),S=n(7293),m=p.UNSUPPORTED_Y,d=4294967295,v=Math.min,D=[].push,U=o(/./.exec),T=o(D),F=o("".slice),R=!S(function(){var L=/(?:)/,Z=L.exec;L.exec=function(){return Z.apply(this,arguments)};var aA="ab".split(L);return 2!==aA.length||"a"!==aA[0]||"b"!==aA[1]});l("split",function(L,Z,aA){var AA;return AA="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(lA,pA){var cA=e(g(this)),gA=void 0===pA?d:pA>>>0;if(0===gA)return[];if(void 0===lA)return[cA];if(!h(lA))return i(Z,cA,lA,gA);for(var MA,uA,QA,BA=[],xA=0,_=new RegExp(lA.source,(lA.ignoreCase?"i":"")+(lA.multiline?"m":"")+(lA.unicode?"u":"")+(lA.sticky?"y":"")+"g");(MA=i(Q,_,cA))&&!((uA=_.lastIndex)>xA&&(T(BA,F(cA,xA,MA.index)),MA.length>1&&MA.index=gA));)_.lastIndex===MA.index&&_.lastIndex++;return xA===cA.length?(QA||!U(_,""))&&T(BA,""):T(BA,F(cA,xA)),BA.length>gA?B(BA,0,gA):BA}:"0".split(void 0,0).length?function(lA,pA){return void 0===lA&&0===pA?[]:i(Z,this,lA,pA)}:Z,[function(pA,cA){var gA=g(this),BA=null==pA?void 0:f(pA,L);return BA?i(BA,pA,gA,cA):i(AA,e(gA),pA,cA)},function(lA,pA){var cA=a(this),gA=e(lA),BA=aA(AA,cA,gA,pA,AA!==Z);if(BA.done)return BA.value;var yA=E(cA,RegExp),xA=cA.unicode,MA=new yA(m?"^(?:"+cA.source+")":cA,(cA.ignoreCase?"i":"")+(cA.multiline?"m":"")+(cA.unicode?"u":"")+(m?"g":"y")),uA=void 0===pA?d:pA>>>0;if(0===uA)return[];if(0===gA.length)return null===w(MA,gA)?[gA]:[];for(var QA=0,SA=0,bA=[];SA2?arguments[2]:void 0)})},8927:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).every,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("every",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3105:function(Y,I,n){"use strict";var c=n(2094),i=n(6916),o=n(1285),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("fill",function(g){var E=arguments.length;return i(o,l(this),g,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)})},5035:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).filter,o=n(3074),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("filter",function(g){var E=i(l(this),g,arguments.length>1?arguments[1]:void 0);return o(this,E)})},7174:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).findIndex,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("findIndex",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4345:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).find,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("find",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4197:function(Y,I,n){n(9843)("Float32",function(i){return function(l,h,a){return i(this,l,h,a)}})},6495:function(Y,I,n){n(9843)("Float64",function(i){return function(l,h,a){return i(this,l,h,a)}})},2846:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).forEach,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("forEach",function(a){i(o(this),a,arguments.length>1?arguments[1]:void 0)})},8145:function(Y,I,n){"use strict";var c=n(3832);(0,n(2094).exportTypedArrayStaticMethod)("from",n(7321),c)},4731:function(Y,I,n){"use strict";var c=n(2094),i=n(1318).includes,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("includes",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},7209:function(Y,I,n){"use strict";var c=n(2094),i=n(1318).indexOf,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("indexOf",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},5109:function(Y,I,n){n(9843)("Int16",function(i){return function(l,h,a){return i(this,l,h,a)}})},5125:function(Y,I,n){n(9843)("Int32",function(i){return function(l,h,a){return i(this,l,h,a)}})},7145:function(Y,I,n){n(9843)("Int8",function(i){return function(l,h,a){return i(this,l,h,a)}})},6319:function(Y,I,n){"use strict";var c=n(7854),i=n(1702),o=n(6530).PROPER,l=n(2094),h=n(6992),g=n(5112)("iterator"),E=c.Uint8Array,u=i(h.values),C=i(h.keys),e=i(h.entries),f=l.aTypedArray,B=l.exportTypedArrayMethod,w=E&&E.prototype[g],Q=!!w&&"values"===w.name,p=function(){return u(f(this))};B("entries",function(){return e(f(this))}),B("keys",function(){return C(f(this))}),B("values",p,o&&!Q),B(g,p,o&&!Q)},8867:function(Y,I,n){"use strict";var c=n(2094),i=n(1702),o=c.aTypedArray,l=c.exportTypedArrayMethod,h=i([].join);l("join",function(g){return h(o(this),g)})},7789:function(Y,I,n){"use strict";var c=n(2094),i=n(2104),o=n(6583),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("lastIndexOf",function(g){var E=arguments.length;return i(o,l(this),E>1?[g,arguments[1]]:[g])})},3739:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).map,o=n(6304),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("map",function(g){return i(l(this),g,arguments.length>1?arguments[1]:void 0,function(E,u){return new(o(E))(u)})})},4483:function(Y,I,n){"use strict";var c=n(2094),i=n(3671).right,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduceRight",function(a){var g=arguments.length;return i(o(this),a,g,g>1?arguments[1]:void 0)})},9368:function(Y,I,n){"use strict";var c=n(2094),i=n(3671).left,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduce",function(a){var g=arguments.length;return i(o(this),a,g,g>1?arguments[1]:void 0)})},2056:function(Y,I,n){"use strict";var c=n(2094),i=c.aTypedArray,l=Math.floor;(0,c.exportTypedArrayMethod)("reverse",function(){for(var C,a=this,g=i(a).length,E=l(g/2),u=0;u1?arguments[1]:void 0,1),w=this.length,Q=h(f),p=o(Q),S=0;if(p+B>w)throw g("Wrong length");for(;SB;)Q[B]=e[B++];return Q},o(function(){new Int8Array(1).slice()}))},7462:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).some,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("some",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3824:function(Y,I,n){"use strict";var c=n(7854),i=n(1702),o=n(7293),l=n(9662),h=n(4362),a=n(2094),g=n(8886),E=n(256),u=n(7392),C=n(8008),e=c.Array,f=a.aTypedArray,B=a.exportTypedArrayMethod,w=c.Uint16Array,Q=w&&i(w.prototype.sort),p=!(!Q||o(function(){Q(new w(2),null)})&&o(function(){Q(new w(2),{})})),S=!!Q&&!o(function(){if(u)return u<74;if(g)return g<67;if(E)return!0;if(C)return C<602;var D,U,d=new w(516),v=e(516);for(D=0;D<516;D++)U=D%4,d[D]=515-D,v[D]=D-2*U+3;for(Q(d,function(T,F){return(T/4|0)-(F/4|0)}),D=0;D<516;D++)if(d[D]!==v[D])return!0});B("sort",function(v){return void 0!==v&&l(v),S?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},!S||p)},5021:function(Y,I,n){"use strict";var c=n(2094),i=n(7466),o=n(1400),l=n(6304),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("subarray",function(E,u){var C=h(this),e=C.length,f=o(E,e);return new(l(C))(C.buffer,C.byteOffset+f*C.BYTES_PER_ELEMENT,i((void 0===u?e:o(u,e))-f))})},2974:function(Y,I,n){"use strict";var c=n(7854),i=n(2104),o=n(2094),l=n(7293),h=n(206),a=c.Int8Array,g=o.aTypedArray,E=o.exportTypedArrayMethod,u=[].toLocaleString,C=!!a&&l(function(){u.call(new a(1))});E("toLocaleString",function(){return i(u,C?h(g(this)):g(this),h(arguments))},l(function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()})||!l(function(){a.prototype.toLocaleString.call([1,2])}))},5016:function(Y,I,n){"use strict";var c=n(2094).exportTypedArrayMethod,i=n(7293),o=n(7854),l=n(1702),h=o.Uint8Array,a=h&&h.prototype||{},g=[].toString,E=l([].join);i(function(){g.call({})})&&(g=function(){return E(this)}),c("toString",g,a.toString!=g)},8255:function(Y,I,n){n(9843)("Uint16",function(i){return function(l,h,a){return i(this,l,h,a)}})},9135:function(Y,I,n){n(9843)("Uint32",function(i){return function(l,h,a){return i(this,l,h,a)}})},2472:function(Y,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}})},9743:function(Y,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}},!0)},8628:function(Y,I,n){n(9170)},5743:function(Y,I,n){n(5837)},7314:function(Y,I,n){n(7922)},6290:function(Y,I,n){n(4668)},7479:function(Y,I,n){"use strict";var c=n(2109),i=n(8523),o=n(2534);c({target:"Promise",stat:!0},{try:function(l){var h=i.f(this),a=o(l);return(a.error?h.reject:h.resolve)(a.value),h.promise}})},3728:function(Y,I,n){n(6373)},4747:function(Y,I,n){var c=n(7854),i=n(8324),o=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 g in i)i[g]&&a(c[g]&&c[g].prototype);a(o)},3948:function(Y,I,n){var c=n(7854),i=n(8324),o=n(8509),l=n(6992),h=n(8880),a=n(5112),g=a("iterator"),E=a("toStringTag"),u=l.values,C=function(f,B){if(f){if(f[g]!==u)try{h(f,g,u)}catch(Q){f[g]=u}if(f[E]||h(f,E,B),i[B])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(o,"DOMTokenList")},3753:function(Y,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(Y,I,n){var c=n(7633);n(3948),Y.exports=c},251:function(Y,I,n){var c=n(2215),i=n(2584),o=n(609),l=n(8420),h=n(2847),a=n(8923),g=Date.prototype.getTime;function E(f,B,w){var Q=w||{};return!!(Q.strict?o(f,B):f===B)||(!f||!B||"object"!=typeof f&&"object"!=typeof B?Q.strict?o(f,B):f==B:function e(f,B,w){var Q,p;if(typeof f!=typeof B||u(f)||u(B)||f.prototype!==B.prototype||i(f)!==i(B))return!1;var S=l(f),m=l(B);if(S!==m)return!1;if(S||m)return f.source===B.source&&h(f)===h(B);if(a(f)&&a(B))return g.call(f)===g.call(B);var d=C(f),v=C(B);if(d!==v)return!1;if(d||v){if(f.length!==B.length)return!1;for(Q=0;Q=0;Q--)if(D[Q]!=U[Q])return!1;for(Q=D.length-1;Q>=0;Q--)if(!E(f[p=D[Q]],B[p],w))return!1;return!0}(f,B,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])}Y.exports=E},4289:function(Y,I,n){"use strict";var c=n(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=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(B){return!1}}(),u=function(e,f,B,w){f in e&&(!function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}(w)||!w())||(E?h(e,f,{configurable:!0,enumerable:!1,value:B,writable:!0}):e[f]=B)},C=function(e,f){var B=arguments.length>2?arguments[2]:{},w=c(f);i&&(w=l.call(w,Object.getOwnPropertySymbols(f)));for(var Q=0;Q0&&R.length>T&&!R.warned){R.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=d,L.type=v,L.count=R.length,function i(d){console&&console.warn&&console.warn(d)}(L)}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 U={fired:!1,wrapFn:void 0,target:d,type:v,listener:D},T=u.bind(U);return T.listener=D,U.wrapFn=T,T}function e(d,v,D){var U=d._events;if(void 0===U)return[];var T=U[v];return void 0===T?[]:"function"==typeof T?D?[T.listener||T]:[T]:D?function Q(d){for(var v=new Array(d.length),D=0;D0&&(R=D[0]),R instanceof Error)throw R;var L=new Error("Unhandled error."+(R?" ("+R.message+")":""));throw L.context=R,L}var Z=F[v];if(void 0===Z)return!1;if("function"==typeof Z)n(Z,this,D);else{var aA=Z.length,AA=B(Z,aA);for(U=0;U=0;R--)if(U[R]===D||U[R].listener===D){L=U[R].listener,F=R;break}if(F<0)return this;0===F?U.shift():function w(d,v){for(;v+1=0;T--)this.removeListener(v,D[T]);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(Y,I,n){var c=n(4275),i=n(7672);void 0===i.pdfMake&&(i.pdfMake=c),Y.exports=c},7672:function(Y,I,n){"use strict";Y.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(Y){var I=Object.prototype.hasOwnProperty,n=Object.prototype.toString;Y.exports=function(i,o,l){if("[object Function]"!==n.call(o))throw new TypeError("iterator must be a function");var h=i.length;if(h===+h)for(var a=0;a1&&"boolean"!=typeof aA)throw new l('"allowMissing" argument must be a boolean');var AA=F(Z),lA=AA.length>0?AA[0]:"",pA=R("%"+lA+"%",aA),cA=pA.name,gA=pA.value,BA=!1,yA=pA.alias;yA&&(lA=yA[0],d(AA,m([0,1],yA)));for(var xA=1,_=!0;xA=AA.length){var SA=a(gA,MA);gA=(_=!!SA)&&"get"in SA&&!("originalValue"in SA.get)?SA.get:gA[MA]}else _=S(gA,MA),gA=gA[MA];_&&!BA&&(B[cA]=gA)}}return gA}},1405:function(Y,I,n){"use strict";var c="undefined"!=typeof Symbol&&Symbol,i=n(5419);Y.exports=function(){return"function"==typeof c&&"function"==typeof Symbol&&"symbol"==typeof c("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:function(Y){"use strict";Y.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(Y,I,n){"use strict";var c=n(5419);Y.exports=function(){return c()&&!!Symbol.toStringTag}},7642:function(Y,I,n){"use strict";var c=n(8612);Y.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},688:function(Y,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(B,w){if(this.encodingName=B.encodingName,!B)throw new Error("DBCS codec is called without the data.");if(!B.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var Q=B.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 U=this.decodeTables[h-v[D]],T=129;T<=254;T++){if(U[T]===i)U[T]=h-m;else{if(U[T]===h-m)continue;if(U[T]>h)throw new Error("gb18030 decode tables conflict at byte 3")}for(var F=this.decodeTables[h-U[T]],R=48;R<=57;R++)F[R]===i&&(F[R]=-2)}}}this.defaultCharUnicode=w.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var L={};if(B.encodeSkipVals)for(p=0;pw)return-1;for(var Q=0,p=B.length;Q>1);B[S]<=w?Q=S:p=S}return Q}u.prototype.encoder=C,u.prototype.decoder=e,u.prototype._getDecodeTrieNode=function(B){for(var w=[];B>0;B>>>=8)w.push(255&B);0==w.length&&w.push(0);for(var Q=this.decodeTables[0],p=w.length-1;p>0;p--){var S=Q[w[p]];if(S==i)Q[w[p]]=h-this.decodeTables.length,this.decodeTables.push(Q=a.slice(0));else{if(!(S<=h))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+B.toString(16));Q=this.decodeTables[h-S]}}return Q},u.prototype._addDecodeChunk=function(B){var w=parseInt(B[0],16),Q=this._getDecodeTrieNode(w);w&=255;for(var p=1;p255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+B[0]+": too long"+w)},u.prototype._getEncodeBucket=function(B){var w=B>>8;return void 0===this.encodeTable[w]&&(this.encodeTable[w]=a.slice(0)),this.encodeTable[w]},u.prototype._setEncodeChar=function(B,w){var Q=this._getEncodeBucket(B),p=255&B;Q[p]<=l?this.encodeTableSeq[l-Q[p]][-1]=w:Q[p]==i&&(Q[p]=w)},u.prototype._setEncodeSequence=function(B,w){var m,Q=B[0],p=this._getEncodeBucket(Q),S=255&Q;p[S]<=l?m=this.encodeTableSeq[l-p[S]]:(m={},p[S]!==i&&(m[-1]=p[S]),p[S]=l-this.encodeTableSeq.length,this.encodeTableSeq.push(m));for(var d=1;d=0)this._setEncodeChar(v,D),S=!0;else if(v<=h){var U=h-v;m[U]||(this._fillEncodeTable(U,D<<8>>>0,Q)?S=!0:m[U]=!0)}else v<=l&&(this._setEncodeSequence(this.decodeTableSeq[l-v],D),S=!0)}return S},C.prototype.write=function(B){for(var w=c.alloc(B.length*(this.gb18030?4:3)),Q=this.leadSurrogate,p=this.seqObj,S=-1,m=0,d=0;;){if(-1===S){if(m==B.length)break;var v=B.charCodeAt(m++)}else v=S,S=-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&&(S=v,v=i,Q=-1);var D=i;if(void 0!==p&&v!=i){var U=p[v];if("object"==typeof U){p=U;continue}"number"==typeof U?D=U:null==U&&void 0!==(U=p[-1])&&(D=U,S=v),p=void 0}else if(v>=0){var T=this.encodeTable[v>>8];if(void 0!==T&&(D=T[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 B=c.alloc(10),w=0;if(this.seqObj){var Q=this.seqObj[-1];void 0!==Q&&(Q<256?B[w++]=Q:(B[w++]=Q>>8,B[w++]=255&Q)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(B[w++]=this.defaultCharSingleByte,this.leadSurrogate=-1),B.slice(0,w)}},C.prototype.findIdx=f,e.prototype.write=function(B){for(var w=c.alloc(2*B.length),Q=this.nodeIdx,p=this.prevBytes,S=this.prevBytes.length,m=-this.prevBytes.length,v=0,D=0;v=0?B[v]:p[v+S];if(!((d=this.decodeTables[Q][U])>=0))if(d===i)d=this.defaultCharUnicode.charCodeAt(0),v=m;else if(-2===d){if(v>=3)var T=12600*(B[v-3]-129)+1260*(B[v-2]-48)+10*(B[v-1]-129)+(U-48);else T=12600*(p[v-3+S]-129)+1260*((v-2>=0?B[v-2]:p[v-2+S])-48)+10*((v-1>=0?B[v-1]:p[v-1+S])-129)+(U-48);var F=f(this.gb18030.gbChars,T);d=this.gb18030.uChars[F]+T-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+"/"+U);for(var R=this.decodeTableSeq[l-d],L=0;L>8;d=R[R.length-1]}if(d>=65536){var Z=55296|(d-=65536)>>10;w[D++]=255&Z,w[D++]=Z>>8,d=56320|1023&d}w[D++]=255&d,w[D++]=d>>8,Q=0,m=v+1}return this.nodeIdx=Q,this.prevBytes=m>=0?Array.prototype.slice.call(B,m):p.slice(m+S).concat(Array.prototype.slice.call(B)),w.slice(0,D).toString("ucs2")},e.prototype.end=function(){for(var B="";this.prevBytes.length>0;){B+=this.defaultCharUnicode;var w=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,w.length>0&&(B+=this.write(w))}return this.prevBytes=[],this.nodeIdx=0,B}},5990:function(Y,I,n){"use strict";Y.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(Y,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&B)):(C[e++]=224+(B>>>12),C[e++]=128+(B>>>6&63),C[e++]=128+(63&B))}return C.slice(0,e)},g.prototype.end=function(){},E.prototype.write=function(u){for(var C=this.acc,e=this.contBytes,f=this.accBytes,B="",w=0;w0&&(B+=this.defaultCharUnicode,e=0),Q<128?B+=String.fromCharCode(Q):Q<224?(C=31&Q,e=1,f=1):Q<240?(C=15&Q,e=2,f=1):B+=this.defaultCharUnicode):e>0?(C=C<<6|63&Q,f++,0==--e&&(B+=2===f&&C<128&&C>0||3===f&&C<2048?this.defaultCharUnicode:String.fromCharCode(C))):B+=this.defaultCharUnicode}return this.acc=C,this.contBytes=e,this.accBytes=f,B},E.prototype.end=function(){var u=0;return this.contBytes>0&&(u+=this.defaultCharUnicode),u}},9068:function(Y,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 g="",E=0;E<128;E++)g+=String.fromCharCode(E);h.chars=g+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(Y){"use strict";Y.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(Y,I,n){"use strict";var c=n(7103).Buffer;function i(){}function o(){}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 g(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,B=0,w=0;A:for(var Q=0;Q=100)break A}return w>B?"utf-16be":w1114111)&&(f=B),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 g(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=[],B=0,w=0,Q=0,p=0,S=0;A:for(var m=0;m16)&&Q++,(0!==f[3]||f[2]>16)&&w++,0===f[0]&&0===f[1]&&(0!==f[2]||0!==f[3])&&S++,(0!==f[0]||0!==f[1])&&0===f[2]&&0===f[3]&&p++,f.length=0,++B>=100)break A}return S-Q>p-w?"utf-32be":S-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=B,f.prototype.decoder=w,f.prototype.bomAware=!0,B.prototype.write=function(p){for(var S=this.inBase64,m=this.base64Accum,d=this.base64AccumIdx,v=c.alloc(5*p.length+10),D=0,U=0;U0&&(D+=v.write(m.slice(0,d).toString("base64").replace(/\//g,",").replace(/=+$/,""),D),d=0),v[D++]=C,S=!1),S||(v[D++]=T,T===e&&(v[D++]=C))):(S||(v[D++]=e,S=!0),S&&(m[d++]=T>>8,m[d++]=255&T,d==m.length&&(D+=v.write(m.toString("base64").replace(/\//g,","),D),d=0)))}return this.inBase64=S,this.base64AccumIdx=d,v.slice(0,D)},B.prototype.end=function(){var p=c.alloc(10),S=0;return this.inBase64&&(this.base64AccumIdx>0&&(S+=p.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),S),this.base64AccumIdx=0),p[S++]=C,this.inBase64=!1),p.slice(0,S)};var Q=g.slice();Q[",".charCodeAt(0)]=!0,w.prototype.write=function(p){for(var S="",m=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(Y,I){"use strict";function c(o,l){this.encoder=o,this.addBOM=!0}function i(o,l){this.decoder=o,this.pass=!1,this.options=l||{}}I.PrependBOM=c,c.prototype.write=function(o){return this.addBOM&&(o="\ufeff"+o,this.addBOM=!1),this.encoder.write(o)},c.prototype.end=function(){return this.encoder.end()},I.StripBOM=i,i.prototype.write=function(o){var l=this.decoder.write(o);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(Y,I,n){"use strict";var l,c=n(7103).Buffer,i=n(5395),o=Y.exports;o.encodings=null,o.defaultCharUnicode="\ufffd",o.defaultCharSingleByte="?",o.encode=function(a,g,E){a=""+(a||"");var u=o.getEncoder(g,E),C=u.write(a),e=u.end();return e&&e.length>0?c.concat([C,e]):C},o.decode=function(a,g,E){"string"==typeof a&&(o.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),o.skipDecodeWarning=!0),a=c.from(""+(a||""),"binary"));var u=o.getDecoder(g,E),C=u.write(a),e=u.end();return e?C+e:C},o.encodingExists=function(a){try{return o.getCodec(a),!0}catch(g){return!1}},o.toEncoding=o.encode,o.fromEncoding=o.decode,o._codecDataCache={},o.getCodec=function(a){o.encodings||(o.encodings=n(6934));for(var g=o._canonicalizeEncoding(a),E={};;){var u=o._codecDataCache[g];if(u)return u;var C=o.encodings[g];switch(typeof C){case"string":g=C;break;case"object":for(var e in C)E[e]=C[e];E.encodingName||(E.encodingName=g),g=C.type;break;case"function":return E.encodingName||(E.encodingName=g),u=new C(E,o),o._codecDataCache[E.encodingName]=u,u;default:throw new Error("Encoding not recognized: '"+a+"' (searched as: '"+g+"')")}}},o._canonicalizeEncoding=function(h){return(""+h).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},o.getEncoder=function(a,g){var E=o.getCodec(a),u=new E.encoder(g,E);return E.bomAware&&g&&g.addBOM&&(u=new i.PrependBOM(u,g)),u},o.getDecoder=function(a,g){var E=o.getCodec(a),u=new E.decoder(g,E);return E.bomAware&&!(g&&!1===g.stripBOM)&&(u=new i.StripBOM(u,g)),u},o.enableStreamingAPI=function(a){if(!o.supportsStreams){var g=n(8044)(a);o.IconvLiteEncoderStream=g.IconvLiteEncoderStream,o.IconvLiteDecoderStream=g.IconvLiteDecoderStream,o.encodeStream=function(u,C){return new o.IconvLiteEncoderStream(o.getEncoder(u,C),C)},o.decodeStream=function(u,C){return new o.IconvLiteDecoderStream(o.getDecoder(u,C),C)},o.supportsStreams=!0}};try{l=n(5832)}catch(h){}l&&l.Transform?o.enableStreamingAPI(l):o.encodeStream=o.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},8044:function(Y,I,n){"use strict";var c=n(7103).Buffer;Y.exports=function(i){var o=i.Transform;function l(a,g){this.conv=a,(g=g||{}).decodeStrings=!1,o.call(this,g)}function h(a,g){this.conv=a,(g=g||{}).encoding=this.encoding="utf8",o.call(this,g)}return(l.prototype=Object.create(o.prototype,{constructor:{value:l}}))._transform=function(a,g,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 g=this.conv.end();g&&g.length&&this.push(g),a()}catch(E){a(E)}},l.prototype.collect=function(a){var g=[];return this.on("error",a),this.on("data",function(E){g.push(E)}),this.on("end",function(){a(null,c.concat(g))}),this},(h.prototype=Object.create(o.prototype,{constructor:{value:h}}))._transform=function(a,g,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 g=this.conv.end();g&&g.length&&this.push(g,this.encoding),a()}catch(E){a(E)}},h.prototype.collect=function(a){var g="";return this.on("error",a),this.on("data",function(E){g+=E}),this.on("end",function(){a(null,g)}),this},{IconvLiteEncoderStream:l,IconvLiteDecoderStream:h}}},645:function(Y,I){I.read=function(n,c,i,o,l){var h,a,g=8*l-o-1,E=(1<>1,C=-7,e=i?l-1:0,f=i?-1:1,B=n[c+e];for(e+=f,h=B&(1<<-C)-1,B>>=-C,C+=g;C>0;h=256*h+n[c+e],e+=f,C-=8);for(a=h&(1<<-C)-1,h>>=-C,C+=o;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*(B?-1:1);a+=Math.pow(2,o),h-=u}return(B?-1:1)*a*Math.pow(2,h-o)},I.write=function(n,c,i,o,l,h){var a,g,E,u=8*h-l-1,C=(1<>1,f=23===l?Math.pow(2,-24)-Math.pow(2,-77):0,B=o?0:h-1,w=o?1:-1,Q=c<0||0===c&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=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?(g=0,a=C):a+e>=1?(g=(c*E-1)*Math.pow(2,l),a+=e):(g=c*Math.pow(2,e-1)*Math.pow(2,l),a=0));l>=8;n[i+B]=255&g,B+=w,g/=256,l-=8);for(a=a<0;n[i+B]=255&a,B+=w,a/=256,u-=8);n[i+B-w]|=128*Q}},5717:function(Y){Y.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(Y,I,n){"use strict";var c=n(6410)(),o=n(1924)("Object.prototype.toString"),l=function(E){return!(c&&E&&"object"==typeof E&&Symbol.toStringTag in E)&&"[object Arguments]"===o(E)},h=function(E){return!!l(E)||null!==E&&"object"==typeof E&&"number"==typeof E.length&&E.length>=0&&"[object Array]"!==o(E)&&"[object Function]"===o(E.callee)},a=function(){return l(arguments)}();l.isLegacyArguments=h,Y.exports=a?l:h},8923:function(Y,I,n){"use strict";var c=Date.prototype.getDay,o=Object.prototype.toString,h=n(6410)();Y.exports=function(g){return"object"==typeof g&&null!==g&&(h?function(g){try{return c.call(g),!0}catch(E){return!1}}(g):"[object Date]"===o.call(g))}},8662:function(Y,I,n){"use strict";var g,c=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,l=n(6410)(),h=Object.getPrototypeOf;Y.exports=function(u){if("function"!=typeof u)return!1;if(o.test(i.call(u)))return!0;if(!l)return"[object GeneratorFunction]"===c.call(u);if(!h)return!1;if(void 0===g){var e=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch(E){}}();g=!!e&&h(e)}return h(u)===g}},8611:function(Y){"use strict";Y.exports=function(n){return n!=n}},360:function(Y,I,n){"use strict";var c=n(5559),i=n(4289),o=n(8611),l=n(9415),h=n(6743),a=c(l(),Number);i(a,{getPolyfill:l,implementation:o,shim:h}),Y.exports=a},9415:function(Y,I,n){"use strict";var c=n(8611);Y.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:c}},6743:function(Y,I,n){"use strict";var c=n(4289),i=n(9415);Y.exports=function(){var l=i();return c(Number,{isNaN:l},{isNaN:function(){return Number.isNaN!==l}}),l}},8420:function(Y,I,n){"use strict";var o,l,h,a,c=n(1924),i=n(6410)();if(i){o=c("Object.prototype.hasOwnProperty"),l=c("RegExp.prototype.exec"),h={};var g=function(){throw h};a={toString:g,valueOf:g},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=g)}var E=c("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;Y.exports=i?function(f){if(!f||"object"!=typeof f)return!1;var B=u(f,"lastIndex");if(!B||!o(B,"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(Y,I,n){"use strict";var c=n(9804),i=n(3083),o=n(1924),l=o("Object.prototype.toString"),h=n(6410)(),a="undefined"==typeof globalThis?n.g:globalThis,g=i(),E=o("Array.prototype.indexOf",!0)||function(Q,p){for(var S=0;S-1}return!!e&&function(Q){var p=!1;return c(C,function(S,m){if(!p)try{p=S.call(Q)===m}catch(d){}}),p}(Q)}},4244:function(Y){"use strict";var I=function(n){return n!=n};Y.exports=function(c,i){return 0===c&&0===i?1/c==1/i:!!(c===i||I(c)&&I(i))}},609:function(Y,I,n){"use strict";var c=n(4289),i=n(5559),o=n(4244),l=n(5624),h=n(2281),a=i(l(),Object);c(a,{getPolyfill:l,implementation:o,shim:h}),Y.exports=a},5624:function(Y,I,n){"use strict";var c=n(4244);Y.exports=function(){return"function"==typeof Object.is?Object.is:c}},2281:function(Y,I,n){"use strict";var c=n(5624),i=n(4289);Y.exports=function(){var l=c();return i(Object,{is:l},{is:function(){return Object.is!==l}}),l}},8987:function(Y,I,n){"use strict";var c;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=n(1414),h=Object.prototype.propertyIsEnumerable,a=!h.call({toString:null},"toString"),g=h.call(function(){},"prototype"),E=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(B){var w=B.constructor;return w&&w.prototype===B},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 B in window)try{if(!C["$"+B]&&i.call(window,B)&&null!==window[B]&&"object"==typeof window[B])try{u(window[B])}catch(w){return!0}}catch(w){return!0}return!1}();c=function(w){var Q=null!==w&&"object"==typeof w,p="[object Function]"===o.call(w),S=l(w),m=Q&&"[object String]"===o.call(w),d=[];if(!Q&&!p&&!S)throw new TypeError("Object.keys called on a non-object");var v=g&&p;if(m&&w.length>0&&!i.call(w,0))for(var D=0;D0)for(var U=0;U=0&&"[object Function]"===I.call(c.callee)),o}},4236:function(Y,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 g in a)c(a,g)&&(l[g]=a[g])}}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,g,E){if(h.subarray&&l.subarray)l.set(h.subarray(a,a+g),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[o++]|0)|0}while(--a);l%=65521,h%=65521}return l|h<<16|0}},1619:function(Y){"use strict";Y.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(Y){"use strict";var n=function I(){for(var i,o=[],l=0;l<256;l++){i=l;for(var h=0;h<8;h++)i=1&i?3988292384^i>>>1:i>>>1;o[l]=i}return o}();Y.exports=function c(i,o,l,h){var a=n,g=h+l;i^=-1;for(var E=h;E>>8^a[255&(i^o[E])];return-1^i}},405:function(Y,I,n){"use strict";var mt,c=n(4236),i=n(342),o=n(6069),l=n(2869),h=n(8898),B=-2,yA=258,xA=262,q=666;function nA(j,XA){return j.msg=h[XA],XA}function EA(j){return(j<<1)-(j>4?9:0)}function GA(j){for(var XA=j.length;--XA>=0;)j[XA]=0}function nt(j){var XA=j.state,KA=XA.pending;KA>j.avail_out&&(KA=j.avail_out),0!==KA&&(c.arraySet(j.output,XA.pending_buf,XA.pending_out,KA,j.next_out),j.next_out+=KA,XA.pending_out+=KA,j.total_out+=KA,j.avail_out-=KA,XA.pending-=KA,0===XA.pending&&(XA.pending_out=0))}function lt(j,XA){i._tr_flush_block(j,j.block_start>=0?j.block_start:-1,j.strstart-j.block_start,XA),j.block_start=j.strstart,nt(j.strm)}function TA(j,XA){j.pending_buf[j.pending++]=XA}function it(j,XA){j.pending_buf[j.pending++]=XA>>>8&255,j.pending_buf[j.pending++]=255&XA}function vt(j,XA,KA,DA){var jA=j.avail_in;return jA>DA&&(jA=DA),0===jA?0:(j.avail_in-=jA,c.arraySet(XA,j.input,j.next_in,jA,KA),1===j.state.wrap?j.adler=o(j.adler,XA,jA,KA):2===j.state.wrap&&(j.adler=l(j.adler,XA,jA,KA)),j.next_in+=jA,j.total_in+=jA,jA)}function It(j,XA){var jA,ct,KA=j.max_chain_length,DA=j.strstart,Lt=j.prev_length,xt=j.nice_match,Rt=j.strstart>j.w_size-xA?j.strstart-(j.w_size-xA):0,Vt=j.window,Le=j.w_mask,ie=j.prev,te=j.strstart+yA,ye=Vt[DA+Lt-1],be=Vt[DA+Lt];j.prev_length>=j.good_match&&(KA>>=2),xt>j.lookahead&&(xt=j.lookahead);do{if(Vt[(jA=XA)+Lt]===be&&Vt[jA+Lt-1]===ye&&Vt[jA]===Vt[DA]&&Vt[++jA]===Vt[DA+1]){DA+=2,jA++;do{}while(Vt[++DA]===Vt[++jA]&&Vt[++DA]===Vt[++jA]&&Vt[++DA]===Vt[++jA]&&Vt[++DA]===Vt[++jA]&&Vt[++DA]===Vt[++jA]&&Vt[++DA]===Vt[++jA]&&Vt[++DA]===Vt[++jA]&&Vt[++DA]===Vt[++jA]&&DALt){if(j.match_start=XA,Lt=ct,ct>=xt)break;ye=Vt[DA+Lt-1],be=Vt[DA+Lt]}}}while((XA=ie[XA&Le])>Rt&&0!=--KA);return Lt<=j.lookahead?Lt:j.lookahead}function Mt(j){var KA,DA,jA,ct,Lt,XA=j.w_size;do{if(ct=j.window_size-j.lookahead-j.strstart,j.strstart>=XA+(XA-xA)){c.arraySet(j.window,j.window,XA,XA,0),j.match_start-=XA,j.strstart-=XA,j.block_start-=XA,KA=DA=j.hash_size;do{jA=j.head[--KA],j.head[KA]=jA>=XA?jA-XA:0}while(--DA);KA=DA=XA;do{jA=j.prev[--KA],j.prev[KA]=jA>=XA?jA-XA:0}while(--DA);ct+=XA}if(0===j.strm.avail_in)break;if(DA=vt(j.strm,j.window,j.strstart+j.lookahead,ct),j.lookahead+=DA,j.lookahead+j.insert>=3)for(j.ins_h=j.window[Lt=j.strstart-j.insert],j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<=3)if(DA=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){jA=j.strstart+j.lookahead-3,DA=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<=jA&&(j.ins_h=(j.ins_h<15&&(Lt=2,DA-=16),jA<1||jA>9||8!==KA||DA<8||DA>15||XA<0||XA>9||ct<0||ct>4)return nA(j,B);8===DA&&(DA=9);var xt=new H;return j.state=xt,xt.strm=j,xt.wrap=Lt,xt.gzhead=null,xt.w_bits=DA,xt.w_size=1<j.pending_buf_size-5&&(KA=j.pending_buf_size-5);;){if(j.lookahead<=1){if(Mt(j),0===j.lookahead&&0===XA)return 1;if(0===j.lookahead)break}j.strstart+=j.lookahead,j.lookahead=0;var DA=j.block_start+KA;if((0===j.strstart||j.strstart>=DA)&&(j.lookahead=j.strstart-DA,j.strstart=DA,lt(j,!1),0===j.strm.avail_out)||j.strstart-j.block_start>=j.w_size-xA&&(lt(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===XA?(lt(j,!0),0===j.strm.avail_out?3:4):(j.strstart>j.block_start&<(j,!1),1)}),new dt(4,4,8,4,qA),new dt(4,5,16,8,qA),new dt(4,6,32,32,qA),new dt(4,4,16,16,at),new dt(8,16,32,32,at),new dt(8,16,128,128,at),new dt(8,32,128,256,at),new dt(32,128,258,1024,at),new dt(32,258,258,4096,at)],I.deflateInit=function RA(j,XA){return wA(j,XA,8,15,8,0)},I.deflateInit2=wA,I.deflateReset=b,I.deflateResetKeep=k,I.deflateSetHeader=function CA(j,XA){return j&&j.state&&2===j.state.wrap?(j.state.gzhead=XA,0):B},I.deflate=function rA(j,XA){var KA,DA,jA,ct;if(!j||!j.state||XA>5||XA<0)return j?nA(j,B):B;if(DA=j.state,!j.output||!j.input&&0!==j.avail_in||DA.status===q&&4!==XA)return nA(j,0===j.avail_out?-5:B);if(DA.strm=j,KA=DA.last_flush,DA.last_flush=XA,42===DA.status)if(2===DA.wrap)j.adler=0,TA(DA,31),TA(DA,139),TA(DA,8),DA.gzhead?(TA(DA,(DA.gzhead.text?1:0)+(DA.gzhead.hcrc?2:0)+(DA.gzhead.extra?4:0)+(DA.gzhead.name?8:0)+(DA.gzhead.comment?16:0)),TA(DA,255&DA.gzhead.time),TA(DA,DA.gzhead.time>>8&255),TA(DA,DA.gzhead.time>>16&255),TA(DA,DA.gzhead.time>>24&255),TA(DA,9===DA.level?2:DA.strategy>=2||DA.level<2?4:0),TA(DA,255&DA.gzhead.os),DA.gzhead.extra&&DA.gzhead.extra.length&&(TA(DA,255&DA.gzhead.extra.length),TA(DA,DA.gzhead.extra.length>>8&255)),DA.gzhead.hcrc&&(j.adler=l(j.adler,DA.pending_buf,DA.pending,0)),DA.gzindex=0,DA.status=69):(TA(DA,0),TA(DA,0),TA(DA,0),TA(DA,0),TA(DA,0),TA(DA,9===DA.level?2:DA.strategy>=2||DA.level<2?4:0),TA(DA,3),DA.status=113);else{var Lt=8+(DA.w_bits-8<<4)<<8;Lt|=(DA.strategy>=2||DA.level<2?0:DA.level<6?1:6===DA.level?2:3)<<6,0!==DA.strstart&&(Lt|=32),Lt+=31-Lt%31,DA.status=113,it(DA,Lt),0!==DA.strstart&&(it(DA,j.adler>>>16),it(DA,65535&j.adler)),j.adler=1}if(69===DA.status)if(DA.gzhead.extra){for(jA=DA.pending;DA.gzindex<(65535&DA.gzhead.extra.length)&&(DA.pending!==DA.pending_buf_size||(DA.gzhead.hcrc&&DA.pending>jA&&(j.adler=l(j.adler,DA.pending_buf,DA.pending-jA,jA)),nt(j),jA=DA.pending,DA.pending!==DA.pending_buf_size));)TA(DA,255&DA.gzhead.extra[DA.gzindex]),DA.gzindex++;DA.gzhead.hcrc&&DA.pending>jA&&(j.adler=l(j.adler,DA.pending_buf,DA.pending-jA,jA)),DA.gzindex===DA.gzhead.extra.length&&(DA.gzindex=0,DA.status=73)}else DA.status=73;if(73===DA.status)if(DA.gzhead.name){jA=DA.pending;do{if(DA.pending===DA.pending_buf_size&&(DA.gzhead.hcrc&&DA.pending>jA&&(j.adler=l(j.adler,DA.pending_buf,DA.pending-jA,jA)),nt(j),jA=DA.pending,DA.pending===DA.pending_buf_size)){ct=1;break}ct=DA.gzindexjA&&(j.adler=l(j.adler,DA.pending_buf,DA.pending-jA,jA)),0===ct&&(DA.gzindex=0,DA.status=91)}else DA.status=91;if(91===DA.status)if(DA.gzhead.comment){jA=DA.pending;do{if(DA.pending===DA.pending_buf_size&&(DA.gzhead.hcrc&&DA.pending>jA&&(j.adler=l(j.adler,DA.pending_buf,DA.pending-jA,jA)),nt(j),jA=DA.pending,DA.pending===DA.pending_buf_size)){ct=1;break}ct=DA.gzindexjA&&(j.adler=l(j.adler,DA.pending_buf,DA.pending-jA,jA)),0===ct&&(DA.status=103)}else DA.status=103;if(103===DA.status&&(DA.gzhead.hcrc?(DA.pending+2>DA.pending_buf_size&&nt(j),DA.pending+2<=DA.pending_buf_size&&(TA(DA,255&j.adler),TA(DA,j.adler>>8&255),j.adler=0,DA.status=113)):DA.status=113),0!==DA.pending){if(nt(j),0===j.avail_out)return DA.last_flush=-1,0}else if(0===j.avail_in&&EA(XA)<=EA(KA)&&4!==XA)return nA(j,-5);if(DA.status===q&&0!==j.avail_in)return nA(j,-5);if(0!==j.avail_in||0!==DA.lookahead||0!==XA&&DA.status!==q){var Rt=2===DA.strategy?function FA(j,XA){for(var KA;;){if(0===j.lookahead&&(Mt(j),0===j.lookahead)){if(0===XA)return 1;break}if(j.match_length=0,KA=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,KA&&(lt(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===XA?(lt(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(lt(j,!1),0===j.strm.avail_out)?1:2}(DA,XA):3===DA.strategy?function et(j,XA){for(var KA,DA,jA,ct,Lt=j.window;;){if(j.lookahead<=yA){if(Mt(j),j.lookahead<=yA&&0===XA)return 1;if(0===j.lookahead)break}if(j.match_length=0,j.lookahead>=3&&j.strstart>0&&(DA=Lt[jA=j.strstart-1])===Lt[++jA]&&DA===Lt[++jA]&&DA===Lt[++jA]){ct=j.strstart+yA;do{}while(DA===Lt[++jA]&&DA===Lt[++jA]&&DA===Lt[++jA]&&DA===Lt[++jA]&&DA===Lt[++jA]&&DA===Lt[++jA]&&DA===Lt[++jA]&&DA===Lt[++jA]&&jAj.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&&(lt(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===XA?(lt(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(lt(j,!1),0===j.strm.avail_out)?1:2}(DA,XA):mt[DA.level].func(DA,XA);if((3===Rt||4===Rt)&&(DA.status=q),1===Rt||3===Rt)return 0===j.avail_out&&(DA.last_flush=-1),0;if(2===Rt&&(1===XA?i._tr_align(DA):5!==XA&&(i._tr_stored_block(DA,0,0,!1),3===XA&&(GA(DA.head),0===DA.lookahead&&(DA.strstart=0,DA.block_start=0,DA.insert=0))),nt(j),0===j.avail_out))return DA.last_flush=-1,0}return 4!==XA?0:DA.wrap<=0?1:(2===DA.wrap?(TA(DA,255&j.adler),TA(DA,j.adler>>8&255),TA(DA,j.adler>>16&255),TA(DA,j.adler>>24&255),TA(DA,255&j.total_in),TA(DA,j.total_in>>8&255),TA(DA,j.total_in>>16&255),TA(DA,j.total_in>>24&255)):(it(DA,j.adler>>>16),it(DA,65535&j.adler)),nt(j),DA.wrap>0&&(DA.wrap=-DA.wrap),0!==DA.pending?0:1)},I.deflateEnd=function Bt(j){var XA;return j&&j.state?42!==(XA=j.state.status)&&69!==XA&&73!==XA&&91!==XA&&103!==XA&&113!==XA&&XA!==q?nA(j,B):(j.state=null,113===XA?nA(j,-3):0):B},I.deflateSetDictionary=function Yt(j,XA){var DA,jA,ct,Lt,xt,Rt,Vt,Le,KA=XA.length;if(!j||!j.state||2===(Lt=(DA=j.state).wrap)||1===Lt&&42!==DA.status||DA.lookahead)return B;for(1===Lt&&(j.adler=o(j.adler,XA,KA,0)),DA.wrap=0,KA>=DA.w_size&&(0===Lt&&(GA(DA.head),DA.strstart=0,DA.block_start=0,DA.insert=0),Le=new c.Buf8(DA.w_size),c.arraySet(Le,XA,KA-DA.w_size,DA.w_size,0),XA=Le,KA=DA.w_size),xt=j.avail_in,Rt=j.next_in,Vt=j.input,j.avail_in=KA,j.next_in=0,j.input=XA,Mt(DA);DA.lookahead>=3;){jA=DA.strstart,ct=DA.lookahead-2;do{DA.ins_h=(DA.ins_h<>>=U=D>>>24,p-=U,0==(U=D>>>16&255))aA[g++]=65535&D;else{if(!(16&U)){if(0==(64&U)){D=S[(65535&D)+(Q&(1<>>=U,p-=U),p<15&&(Q+=Z[h++]<>>=U=D>>>24,p-=U,!(16&(U=D>>>16&255))){if(0==(64&U)){D=m[(65535&D)+(Q&(1<C){i.msg="invalid distance too far back",l.mode=30;break A}if(Q>>>=U,p-=U,F>(U=g-E)){if((U=F-U)>f&&l.sane){i.msg="invalid distance too far back",l.mode=30;break A}if(R=0,L=w,0===B){if(R+=e-U,U2;)aA[g++]=L[R++],aA[g++]=L[R++],aA[g++]=L[R++],T-=3;T&&(aA[g++]=L[R++],T>1&&(aA[g++]=L[R++]))}else{R=g-F;do{aA[g++]=aA[R++],aA[g++]=aA[R++],aA[g++]=aA[R++],T-=3}while(T>2);T&&(aA[g++]=aA[R++],T>1&&(aA[g++]=aA[R++]))}break}}break}}while(h>3)<<3))-1,i.next_in=h-=T,i.next_out=g,i.avail_in=h>>24&255)+(wA>>>8&65280)+((65280&wA)<<8)+((255&wA)<<24)}function vt(){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 It(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 Mt(wA){var RA;return wA&&wA.state?((RA=wA.state).wsize=0,RA.whave=0,RA.wnext=0,It(wA)):Q}function JA(wA,RA){var rA,Bt;return!wA||!wA.state||(Bt=wA.state,RA<0?(rA=0,RA=-RA):(rA=1+(RA>>4),RA<48&&(RA&=15)),RA&&(RA<8||RA>15))?Q:(null!==Bt.window&&Bt.wbits!==RA&&(Bt.window=null),Bt.wrap=rA,Bt.wbits=RA,Mt(wA))}function qA(wA,RA){var rA,Bt;return wA?(Bt=new vt,wA.state=Bt,Bt.window=null,0!==(rA=JA(wA,RA))&&(wA.state=null),rA):Q}var FA,dt,et=!0;function mt(wA){if(et){var RA;for(FA=new c.Buf32(512),dt=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,FA,0,wA.work,{bits:9}),RA=0;RA<32;)wA.lens[RA++]=5;h(2,wA.lens,0,32,dt,0,wA.work,{bits:5}),et=!1}wA.lencode=FA,wA.lenbits=9,wA.distcode=dt,wA.distbits=5}function OA(wA,RA,rA,Bt){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)>Bt&&(Yt=Bt),c.arraySet(j.window,RA,rA-Bt,Yt,j.wnext),(Bt-=Yt)?(c.arraySet(j.window,RA,rA-Bt,Bt,0),j.wnext=Bt,j.whave=j.wsize):(j.wnext+=Yt,j.wnext===j.wsize&&(j.wnext=0),j.whave>>8&255,rA.check=o(rA.check,Te,2,0),jA=0,ct=0,rA.mode=2;break}if(rA.flags=0,rA.head&&(rA.head.done=!1),!(1&rA.wrap)||(((255&jA)<<8)+(jA>>8))%31){wA.msg="incorrect header check",rA.mode=30;break}if(8!=(15&jA)){wA.msg="unknown compression method",rA.mode=30;break}if(ct-=4,re=8+(15&(jA>>>=4)),0===rA.wbits)rA.wbits=re;else if(re>rA.wbits){wA.msg="invalid window size",rA.mode=30;break}rA.dmax=1<>8&1),512&rA.flags&&(Te[0]=255&jA,Te[1]=jA>>>8&255,rA.check=o(rA.check,Te,2,0)),jA=0,ct=0,rA.mode=3;case 3:for(;ct<32;){if(0===KA)break A;KA--,jA+=Bt[j++]<>>8&255,Te[2]=jA>>>16&255,Te[3]=jA>>>24&255,rA.check=o(rA.check,Te,4,0)),jA=0,ct=0,rA.mode=4;case 4:for(;ct<16;){if(0===KA)break A;KA--,jA+=Bt[j++]<>8),512&rA.flags&&(Te[0]=255&jA,Te[1]=jA>>>8&255,rA.check=o(rA.check,Te,2,0)),jA=0,ct=0,rA.mode=5;case 5:if(1024&rA.flags){for(;ct<16;){if(0===KA)break A;KA--,jA+=Bt[j++]<>>8&255,rA.check=o(rA.check,Te,2,0)),jA=0,ct=0}else rA.head&&(rA.head.extra=null);rA.mode=6;case 6:if(1024&rA.flags&&((Rt=rA.length)>KA&&(Rt=KA),Rt&&(rA.head&&(re=rA.head.extra_len-rA.length,rA.head.extra||(rA.head.extra=new Array(rA.head.extra_len)),c.arraySet(rA.head.extra,Bt,j,Rt,re)),512&rA.flags&&(rA.check=o(rA.check,Bt,Rt,j)),KA-=Rt,j+=Rt,rA.length-=Rt),rA.length))break A;rA.length=0,rA.mode=7;case 7:if(2048&rA.flags){if(0===KA)break A;Rt=0;do{re=Bt[j+Rt++],rA.head&&re&&rA.length<65536&&(rA.head.name+=String.fromCharCode(re))}while(re&&Rt>9&1,rA.head.done=!0),wA.adler=rA.check=0,rA.mode=12;break;case 10:for(;ct<32;){if(0===KA)break A;KA--,jA+=Bt[j++]<>>=7&ct,ct-=7&ct,rA.mode=27;break}for(;ct<3;){if(0===KA)break A;KA--,jA+=Bt[j++]<>>=1)){case 0:rA.mode=14;break;case 1:if(mt(rA),rA.mode=20,6===RA){jA>>>=2,ct-=2;break A}break;case 2:rA.mode=17;break;case 3:wA.msg="invalid block type",rA.mode=30}jA>>>=2,ct-=2;break;case 14:for(jA>>>=7&ct,ct-=7&ct;ct<32;){if(0===KA)break A;KA--,jA+=Bt[j++]<>>16^65535)){wA.msg="invalid stored block lengths",rA.mode=30;break}if(rA.length=65535&jA,jA=0,ct=0,rA.mode=15,6===RA)break A;case 15:rA.mode=16;case 16:if(Rt=rA.length){if(Rt>KA&&(Rt=KA),Rt>DA&&(Rt=DA),0===Rt)break A;c.arraySet(Yt,Bt,j,Rt,XA),KA-=Rt,j+=Rt,DA-=Rt,XA+=Rt,rA.length-=Rt;break}rA.mode=12;break;case 17:for(;ct<14;){if(0===KA)break A;KA--,jA+=Bt[j++]<>>=5)),ct-=5,rA.ncode=4+(15&(jA>>>=5)),jA>>>=4,ct-=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,ct-=3}for(;rA.have<19;)rA.lens[bn[rA.have++]]=0;if(rA.lencode=rA.lendyn,rA.lenbits=7,en=h(0,rA.lens,0,19,rA.lencode,0,rA.work,nn={bits:rA.lenbits}),rA.lenbits=nn.bits,en){wA.msg="invalid code lengths set",rA.mode=30;break}rA.have=0,rA.mode=19;case 19:for(;rA.have>>16&255,be=65535&ie,!((te=ie>>>24)<=ct);){if(0===KA)break A;KA--,jA+=Bt[j++]<>>=te,ct-=te,rA.lens[rA.have++]=be;else{if(16===be){for(Xe=te+2;ct>>=te,ct-=te,0===rA.have){wA.msg="invalid bit length repeat",rA.mode=30;break}re=rA.lens[rA.have-1],Rt=3+(3&jA),jA>>>=2,ct-=2}else if(17===be){for(Xe=te+3;ct>>=te)),jA>>>=3,ct-=3}else{for(Xe=te+7;ct>>=te)),jA>>>=7,ct-=7}if(rA.have+Rt>rA.nlen+rA.ndist){wA.msg="invalid bit length repeat",rA.mode=30;break}for(;Rt--;)rA.lens[rA.have++]=re}}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,en=h(1,rA.lens,0,rA.nlen,rA.lencode,0,rA.work,nn={bits:rA.lenbits}),rA.lenbits=nn.bits,en){wA.msg="invalid literal/lengths set",rA.mode=30;break}if(rA.distbits=6,rA.distcode=rA.distdyn,en=h(2,rA.lens,rA.nlen,rA.ndist,rA.distcode,0,rA.work,nn={bits:rA.distbits}),rA.distbits=nn.bits,en){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&&DA>=258){wA.next_out=XA,wA.avail_out=DA,wA.next_in=j,wA.avail_in=KA,rA.hold=jA,rA.bits=ct,l(wA,xt),XA=wA.next_out,Yt=wA.output,DA=wA.avail_out,j=wA.next_in,Bt=wA.input,KA=wA.avail_in,jA=rA.hold,ct=rA.bits,12===rA.mode&&(rA.back=-1);break}for(rA.back=0;ye=(ie=rA.lencode[jA&(1<>>16&255,be=65535&ie,!((te=ie>>>24)<=ct);){if(0===KA)break A;KA--,jA+=Bt[j++]<>Re)])>>>16&255,be=65535&ie,!(Re+(te=ie>>>24)<=ct);){if(0===KA)break A;KA--,jA+=Bt[j++]<>>=Re,ct-=Re,rA.back+=Re}if(jA>>>=te,ct-=te,rA.back+=te,rA.length=be,0===ye){rA.mode=26;break}if(32&ye){rA.back=-1,rA.mode=12;break}if(64&ye){wA.msg="invalid literal/length code",rA.mode=30;break}rA.extra=15&ye,rA.mode=22;case 22:if(rA.extra){for(Xe=rA.extra;ct>>=rA.extra,ct-=rA.extra,rA.back+=rA.extra}rA.was=rA.length,rA.mode=23;case 23:for(;ye=(ie=rA.distcode[jA&(1<>>16&255,be=65535&ie,!((te=ie>>>24)<=ct);){if(0===KA)break A;KA--,jA+=Bt[j++]<>Re)])>>>16&255,be=65535&ie,!(Re+(te=ie>>>24)<=ct);){if(0===KA)break A;KA--,jA+=Bt[j++]<>>=Re,ct-=Re,rA.back+=Re}if(jA>>>=te,ct-=te,rA.back+=te,64&ye){wA.msg="invalid distance code",rA.mode=30;break}rA.offset=be,rA.extra=15&ye,rA.mode=24;case 24:if(rA.extra){for(Xe=rA.extra;ct>>=rA.extra,ct-=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===DA)break A;if(rA.offset>(Rt=xt-DA)){if((Rt=rA.offset-Rt)>rA.whave&&rA.sane){wA.msg="invalid distance too far back",rA.mode=30;break}Vt=Rt>rA.wnext?rA.wsize-(Rt-=rA.wnext):rA.wnext-Rt,Rt>rA.length&&(Rt=rA.length),Le=rA.window}else Le=Yt,Vt=XA-rA.offset,Rt=rA.length;Rt>DA&&(Rt=DA),DA-=Rt,rA.length-=Rt;do{Yt[XA++]=Le[Vt++]}while(--Rt);0===rA.length&&(rA.mode=21);break;case 26:if(0===DA)break A;Yt[XA++]=rA.length,DA--,rA.mode=21;break;case 27:if(rA.wrap){for(;ct<32;){if(0===KA)break A;KA--,jA|=Bt[j++]<=1&&0===QA[R];R--);if(L>R&&(L=R),0===R)return S[m++]=20971520,S[m++]=20971520,v.bits=1,0;for(F=1;F0&&(0===B||1!==R))return-1;for(SA[1]=0,U=1;U852||2===B&&lA>592)return 1;for(;;){q=U-aA,d[T]uA?(J=bA[ZA+d[T]],$=_[MA+d[T]]):(J=96,$=0),cA=1<>aA)+(gA-=cA)]=q<<24|J<<16|$|0}while(0!==gA);for(cA=1<>=1;if(0!==cA?(pA&=cA-1,pA+=cA):pA=0,T++,0==--QA[U]){if(U===R)break;U=w[Q+d[T]]}if(U>L&&(pA&yA)!==BA){for(0===aA&&(aA=L),xA+=F,AA=1<<(Z=U-aA);Z+aA852||2===B&&lA>592)return 1;S[BA=pA&yA]=L<<24|Z<<16|xA-m|0}}return 0!==pA&&(S[xA+pA]=4194304|U-aA<<24),v.bits=L,0}},8898:function(Y){"use strict";Y.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(Y,I,n){"use strict";var c=n(4236);function a(H){for(var k=H.length;--k>=0;)H[k]=0}var B=256,w=286,Q=30,m=15,R=[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],L=[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],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],aA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lA=new Array(576);a(lA);var pA=new Array(60);a(pA);var cA=new Array(512);a(cA);var gA=new Array(256);a(gA);var BA=new Array(29);a(BA);var _,MA,uA,yA=new Array(Q);function xA(H,k,b,CA,wA){this.static_tree=H,this.extra_bits=k,this.extra_base=b,this.elems=CA,this.max_length=wA,this.has_stree=H&&H.length}function QA(H,k){this.dyn_tree=H,this.max_code=0,this.stat_desc=k}function SA(H){return H<256?cA[H]:cA[256+(H>>>7)]}function bA(H,k){H.pending_buf[H.pending++]=255&k,H.pending_buf[H.pending++]=k>>>8&255}function ZA(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,CA=new Array(16),wA=0;for(RA=1;RA<=m;RA++)CA[RA]=wA=wA+b[RA-1]<<1;for(rA=0;rA<=k;rA++){var Bt=H[2*rA+1];0!==Bt&&(H[2*rA]=J(CA[Bt]++,Bt))}}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 nt(H,k,b,CA){var wA=2*k,RA=2*b;return H[wA]>1;rA>=1;rA--)lt(H,b,rA);j=RA;do{rA=H.heap[1],H.heap[1]=H.heap[H.heap_len--],lt(H,b,1),Bt=H.heap[1],H.heap[--H.heap_max]=rA,H.heap[--H.heap_max]=Bt,b[2*j]=b[2*rA]+b[2*Bt],H.depth[j]=(H.depth[rA]>=H.depth[Bt]?H.depth[rA]:H.depth[Bt])+1,b[2*rA+1]=b[2*Bt+1]=j,H.heap[1]=j++,lt(H,b,1)}while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1],function W(H,k){var j,XA,KA,DA,jA,ct,b=k.dyn_tree,CA=k.max_code,wA=k.stat_desc.static_tree,RA=k.stat_desc.has_stree,rA=k.stat_desc.extra_bits,Bt=k.stat_desc.extra_base,Yt=k.stat_desc.max_length,Lt=0;for(DA=0;DA<=m;DA++)H.bl_count[DA]=0;for(b[2*H.heap[H.heap_max]+1]=0,j=H.heap_max+1;j<573;j++)(DA=b[2*b[2*(XA=H.heap[j])+1]+1]+1)>Yt&&(DA=Yt,Lt++),b[2*XA+1]=DA,!(XA>CA)&&(H.bl_count[DA]++,jA=0,XA>=Bt&&(jA=rA[XA-Bt]),H.opt_len+=(ct=b[2*XA])*(DA+jA),RA&&(H.static_len+=ct*(wA[2*XA+1]+jA)));if(0!==Lt){do{for(DA=Yt-1;0===H.bl_count[DA];)DA--;H.bl_count[DA]--,H.bl_count[DA+1]+=2,H.bl_count[Yt]--,Lt-=2}while(Lt>0);for(DA=Yt;0!==DA;DA--)for(XA=H.bl_count[DA];0!==XA;)!((KA=H.heap[--j])>CA)&&(b[2*KA+1]!==DA&&(H.opt_len+=(DA-b[2*KA+1])*b[2*KA],b[2*KA+1]=DA),XA--)}}(H,k),hA(b,Yt,H.bl_count)}function vt(H,k,b){var CA,RA,wA=-1,rA=k[1],Bt=0,Yt=7,j=4;for(0===rA&&(Yt=138,j=3),k[2*(b+1)+1]=65535,CA=0;CA<=b;CA++)RA=rA,rA=k[2*(CA+1)+1],!(++Bt>=7;CA0?(2===H.strm.data_type&&(H.strm.data_type=function qA(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*aA[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?FA(H,k,b,CA):4===H.strategy||RA===wA?(ZA(H,2+(CA?1:0),3),TA(H,lA,pA)):(ZA(H,4+(CA?1:0),3),function JA(H,k,b,CA){var wA;for(ZA(H,k-257,5),ZA(H,b-1,5),ZA(H,CA-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*(gA[b]+B+1)]++,H.dyn_dtree[2*SA(k)]++),H.last_lit===H.lit_bufsize-1},I._tr_align=function dt(H){ZA(H,2,3),q(H,256,lA),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(Y){"use strict";Y.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(Y){var n,c,I=Y.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){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:o}catch(w){c=o}}();var E,a=[],g=!1,u=-1;function C(){!g||!E||(g=!1,E.length?a=E.concat(a):u=-1,a.length&&e())}function e(){if(!g){var w=l(C);g=!0;for(var Q=a.length;Q;){for(E=a,a=[];++u1)for(var p=1;p=0;--yA){var xA=this.tryEntries[yA],_=xA.completion;if("root"===xA.tryLoc)return BA("end");if(xA.tryLoc<=this.prev){var MA=i.call(xA,"catchLoc"),uA=i.call(xA,"finallyLoc");if(MA&&uA){if(this.prev=0;--BA){var yA=this.tryEntries[BA];if(yA.tryLoc<=this.prev&&i.call(yA,"finallyLoc")&&this.prev=0;--gA){var BA=this.tryEntries[gA];if(BA.finallyLoc===cA)return this.complete(BA.completion,BA.afterLoc),aA(BA),Q}},catch:function(cA){for(var gA=this.tryEntries.length-1;gA>=0;--gA){var BA=this.tryEntries[gA];if(BA.tryLoc===cA){var yA=BA.completion;if("throw"===yA.type){var xA=yA.arg;aA(BA)}return xA}}throw new Error("illegal catch attempt")},delegateYield:function(cA,gA,BA){return this.delegate={iterator:lA(cA),resultName:gA,nextLoc:BA},"next"===this.method&&(this.arg=o),Q}},n}(Y.exports);try{regeneratorRuntime=I}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=I:Function("r","regeneratorRuntime = r")(I)}},3697:function(Y){"use strict";var I=Object,n=TypeError;Y.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(Y,I,n){"use strict";var c=n(4289),i=n(5559),o=n(3697),l=n(1721),h=n(2753),a=i(l());c(a,{getPolyfill:l,implementation:o,shim:h}),Y.exports=a},1721:function(Y,I,n){"use strict";var c=n(3697),i=n(4289).supportsDescriptors,o=Object.getOwnPropertyDescriptor;Y.exports=function(){if(i&&"gim"===/a/gim.flags){var h=o(RegExp.prototype,"flags");if(h&&"function"==typeof h.get&&"boolean"==typeof/a/.dotAll)return h.get}return c}},2753:function(Y,I,n){"use strict";var c=n(4289).supportsDescriptors,i=n(1721),o=Object.getOwnPropertyDescriptor,l=Object.defineProperty,h=TypeError,a=Object.getPrototypeOf,g=/a/;Y.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(g),e=o(C,"flags");return(!e||e.get!==u)&&l(C,"flags",{configurable:!0,enumerable:!1,get:u}),u}},6099:function(Y,I,n){var c=n(8823).Buffer;!function(i){i.parser=function(q,J){return new l(q,J)},i.SAXParser=l,i.SAXStream=e,i.createStream=function C(q,J){return new e(q,J)},i.MAX_BUFFER_LENGTH=65536;var E,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function l(q,J){if(!(this instanceof l))return new l(q,J);var $=this;(function a(q){for(var J=0,$=o.length;J<$;J++)q[o[J]]=""})($),$.q=$.c="",$.bufferCheckPosition=i.MAX_BUFFER_LENGTH,$.opt=J||{},$.opt.lowercase=$.opt.lowercase||$.opt.lowercasetags,$.looseCase=$.opt.lowercase?"toLowerCase":"toUpperCase",$.tags=[],$.closed=$.closedRoot=$.sawRoot=!1,$.tag=$.error=null,$.strict=!!q,$.noscript=!(!q&&!$.opt.noscript),$.state=L.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),aA($,"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(q){function J(){}return J.prototype=q,new J}),Object.keys||(Object.keys=function(q){var J=[];for(var $ in q)q.hasOwnProperty($)&&J.push($);return J}),l.prototype={end:function(){gA(this)},write:function ZA(q){var J=this;if(this.error)throw this.error;if(J.closed)return cA(J,"Cannot write after close. Assign an onready handler.");if(null===q)return gA(J);"object"==typeof q&&(q=q.toString());for(var $=0,W="";W=bA(q,$++),J.c=W,W;)switch(J.trackPosition&&(J.position++,"\n"===W?(J.line++,J.column=0):J.column++),J.state){case L.BEGIN:if(J.state=L.BEGIN_WHITESPACE,"\ufeff"===W)continue;SA(J,W);continue;case L.BEGIN_WHITESPACE:SA(J,W);continue;case L.TEXT:if(J.sawRoot&&!J.closedRoot){for(var hA=$-1;W&&"<"!==W&&"&"!==W;)(W=bA(q,$++))&&J.trackPosition&&(J.position++,"\n"===W?(J.line++,J.column=0):J.column++);J.textNode+=q.substring(hA,$-1)}"<"!==W||J.sawRoot&&J.closedRoot&&!J.strict?(!D(W)&&(!J.sawRoot||J.closedRoot)&&BA(J,"Text data outside of root node."),"&"===W?J.state=L.TEXT_ENTITY:J.textNode+=W):(J.state=L.OPEN_WAKA,J.startTagPosition=J.position);continue;case L.SCRIPT:"<"===W?J.state=L.SCRIPT_ENDING:J.script+=W;continue;case L.SCRIPT_ENDING:"/"===W?J.state=L.CLOSE_TAG:(J.script+="<"+W,J.state=L.SCRIPT);continue;case L.OPEN_WAKA:"!"===W?(J.state=L.SGML_DECL,J.sgmlDecl=""):D(W)||(F(S,W)?(J.state=L.OPEN_TAG,J.tagName=W):"/"===W?(J.state=L.CLOSE_TAG,J.tagName=""):"?"===W?(J.state=L.PROC_INST,J.procInstName=J.procInstBody=""):(BA(J,"Unencoded <"),J.startTagPosition+1"===W?(AA(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=L.TEXT):(U(W)&&(J.state=L.SGML_DECL_QUOTED),J.sgmlDecl+=W);continue;case L.SGML_DECL_QUOTED:W===J.q&&(J.state=L.SGML_DECL,J.q=""),J.sgmlDecl+=W;continue;case L.DOCTYPE:">"===W?(J.state=L.TEXT,AA(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=W,"["===W?J.state=L.DOCTYPE_DTD:U(W)&&(J.state=L.DOCTYPE_QUOTED,J.q=W));continue;case L.DOCTYPE_QUOTED:J.doctype+=W,W===J.q&&(J.q="",J.state=L.DOCTYPE);continue;case L.DOCTYPE_DTD:J.doctype+=W,"]"===W?J.state=L.DOCTYPE:U(W)&&(J.state=L.DOCTYPE_DTD_QUOTED,J.q=W);continue;case L.DOCTYPE_DTD_QUOTED:J.doctype+=W,W===J.q&&(J.state=L.DOCTYPE_DTD,J.q="");continue;case L.COMMENT:"-"===W?J.state=L.COMMENT_ENDING:J.comment+=W;continue;case L.COMMENT_ENDING:"-"===W?(J.state=L.COMMENT_ENDED,J.comment=pA(J.opt,J.comment),J.comment&&AA(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+W,J.state=L.COMMENT);continue;case L.COMMENT_ENDED:">"!==W?(BA(J,"Malformed comment"),J.comment+="--"+W,J.state=L.COMMENT):J.state=L.TEXT;continue;case L.CDATA:"]"===W?J.state=L.CDATA_ENDING:J.cdata+=W;continue;case L.CDATA_ENDING:"]"===W?J.state=L.CDATA_ENDING_2:(J.cdata+="]"+W,J.state=L.CDATA);continue;case L.CDATA_ENDING_2:">"===W?(J.cdata&&AA(J,"oncdata",J.cdata),AA(J,"onclosecdata"),J.cdata="",J.state=L.TEXT):"]"===W?J.cdata+="]":(J.cdata+="]]"+W,J.state=L.CDATA);continue;case L.PROC_INST:"?"===W?J.state=L.PROC_INST_ENDING:D(W)?J.state=L.PROC_INST_BODY:J.procInstName+=W;continue;case L.PROC_INST_BODY:if(!J.procInstBody&&D(W))continue;"?"===W?J.state=L.PROC_INST_ENDING:J.procInstBody+=W;continue;case L.PROC_INST_ENDING:">"===W?(AA(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=L.TEXT):(J.procInstBody+="?"+W,J.state=L.PROC_INST_BODY);continue;case L.OPEN_TAG:F(m,W)?J.tagName+=W:(yA(J),">"===W?MA(J):"/"===W?J.state=L.OPEN_TAG_SLASH:(D(W)||BA(J,"Invalid character in tag name"),J.state=L.ATTRIB));continue;case L.OPEN_TAG_SLASH:">"===W?(MA(J,!0),uA(J)):(BA(J,"Forward-slash in opening tag not followed by >"),J.state=L.ATTRIB);continue;case L.ATTRIB:if(D(W))continue;">"===W?MA(J):"/"===W?J.state=L.OPEN_TAG_SLASH:F(S,W)?(J.attribName=W,J.attribValue="",J.state=L.ATTRIB_NAME):BA(J,"Invalid attribute name");continue;case L.ATTRIB_NAME:"="===W?J.state=L.ATTRIB_VALUE:">"===W?(BA(J,"Attribute without value"),J.attribValue=J.attribName,_(J),MA(J)):D(W)?J.state=L.ATTRIB_NAME_SAW_WHITE:F(m,W)?J.attribName+=W:BA(J,"Invalid attribute name");continue;case L.ATTRIB_NAME_SAW_WHITE:if("="===W)J.state=L.ATTRIB_VALUE;else{if(D(W))continue;BA(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",AA(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",">"===W?MA(J):F(S,W)?(J.attribName=W,J.state=L.ATTRIB_NAME):(BA(J,"Invalid attribute name"),J.state=L.ATTRIB)}continue;case L.ATTRIB_VALUE:if(D(W))continue;U(W)?(J.q=W,J.state=L.ATTRIB_VALUE_QUOTED):(BA(J,"Unquoted attribute value"),J.state=L.ATTRIB_VALUE_UNQUOTED,J.attribValue=W);continue;case L.ATTRIB_VALUE_QUOTED:if(W!==J.q){"&"===W?J.state=L.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=W;continue}_(J),J.q="",J.state=L.ATTRIB_VALUE_CLOSED;continue;case L.ATTRIB_VALUE_CLOSED:D(W)?J.state=L.ATTRIB:">"===W?MA(J):"/"===W?J.state=L.OPEN_TAG_SLASH:F(S,W)?(BA(J,"No whitespace between attributes"),J.attribName=W,J.attribValue="",J.state=L.ATTRIB_NAME):BA(J,"Invalid attribute name");continue;case L.ATTRIB_VALUE_UNQUOTED:if(!T(W)){"&"===W?J.state=L.ATTRIB_VALUE_ENTITY_U:J.attribValue+=W;continue}_(J),">"===W?MA(J):J.state=L.ATTRIB;continue;case L.CLOSE_TAG:if(J.tagName)">"===W?uA(J):F(m,W)?J.tagName+=W:J.script?(J.script+=""===W?uA(J):BA(J,"Invalid characters in closing tag");continue;case L.TEXT_ENTITY:case L.ATTRIB_VALUE_ENTITY_Q:case L.ATTRIB_VALUE_ENTITY_U:var nA,EA;switch(J.state){case L.TEXT_ENTITY:nA=L.TEXT,EA="textNode";break;case L.ATTRIB_VALUE_ENTITY_Q:nA=L.ATTRIB_VALUE_QUOTED,EA="attribValue";break;case L.ATTRIB_VALUE_ENTITY_U:nA=L.ATTRIB_VALUE_UNQUOTED,EA="attribValue"}";"===W?(J[EA]+=QA(J),J.entity="",J.state=nA):F(J.entity.length?v:d,W)?J.entity+=W:(BA(J,"Invalid character in entity name"),J[EA]+="&"+J.entity+W,J.entity="",J.state=nA);continue;default:throw new Error(J,"Unknown state: "+J.state)}return J.position>=J.bufferCheckPosition&&function h(q){for(var J=Math.max(i.MAX_BUFFER_LENGTH,10),$=0,W=0,hA=o.length;WJ)switch(o[W]){case"textNode":lA(q);break;case"cdata":AA(q,"oncdata",q.cdata),q.cdata="";break;case"script":AA(q,"onscript",q.script),q.script="";break;default:cA(q,"Max buffer length exceeded: "+o[W])}$=Math.max($,vA)}q.bufferCheckPosition=i.MAX_BUFFER_LENGTH-$+q.position}(J),J},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function g(q){lA(q),""!==q.cdata&&(AA(q,"oncdata",q.cdata),q.cdata=""),""!==q.script&&(AA(q,"onscript",q.script),q.script="")}(this)}};try{E=n(2830).Stream}catch(q){E=function(){}}var u=i.EVENTS.filter(function(q){return"error"!==q&&"end"!==q});function e(q,J){if(!(this instanceof e))return new e(q,J);E.apply(this),this._parser=new l(q,J),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(q){if("function"==typeof c&&"function"==typeof c.isBuffer&&c.isBuffer(q)){if(!this._decoder){var J=n(2553).s;this._decoder=new J("utf8")}q=this._decoder.write(q)}return this._parser.write(q.toString()),this.emit("data",q),!0},e.prototype.end=function(q){return q&&q.length&&this.write(q),this._parser.end(),!0},e.prototype.on=function(q,J){var $=this;return!$._parser["on"+q]&&-1!==u.indexOf(q)&&($._parser["on"+q]=function(){var W=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,q),$.emit.apply($,W)}),E.prototype.on.call($,q,J)};var w="http://www.w3.org/XML/1998/namespace",Q="http://www.w3.org/2000/xmlns/",p={xml:w,xmlns:Q},S=/[:_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]/,m=/[:_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(q){return" "===q||"\n"===q||"\r"===q||"\t"===q}function U(q){return'"'===q||"'"===q}function T(q){return">"===q||D(q)}function F(q,J){return q.test(J)}function R(q,J){return!F(q,J)}var q,J,$,L=0;for(var Z in i.STATE={BEGIN:L++,BEGIN_WHITESPACE:L++,TEXT:L++,TEXT_ENTITY:L++,OPEN_WAKA:L++,SGML_DECL:L++,SGML_DECL_QUOTED:L++,DOCTYPE:L++,DOCTYPE_QUOTED:L++,DOCTYPE_DTD:L++,DOCTYPE_DTD_QUOTED:L++,COMMENT_STARTING:L++,COMMENT:L++,COMMENT_ENDING:L++,COMMENT_ENDED:L++,CDATA:L++,CDATA_ENDING:L++,CDATA_ENDING_2:L++,PROC_INST:L++,PROC_INST_BODY:L++,PROC_INST_ENDING:L++,OPEN_TAG:L++,OPEN_TAG_SLASH:L++,ATTRIB:L++,ATTRIB_NAME:L++,ATTRIB_NAME_SAW_WHITE:L++,ATTRIB_VALUE:L++,ATTRIB_VALUE_QUOTED:L++,ATTRIB_VALUE_CLOSED:L++,ATTRIB_VALUE_UNQUOTED:L++,ATTRIB_VALUE_ENTITY_Q:L++,ATTRIB_VALUE_ENTITY_U:L++,CLOSE_TAG:L++,CLOSE_TAG_SAW_WHITE:L++,SCRIPT:L++,SCRIPT_ENDING:L++},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(q){var J=i.ENTITIES[q],$="number"==typeof J?String.fromCharCode(J):J;i.ENTITIES[q]=$}),i.STATE)i.STATE[i.STATE[Z]]=Z;function aA(q,J,$){q[J]&&q[J]($)}function AA(q,J,$){q.textNode&&lA(q),aA(q,J,$)}function lA(q){q.textNode=pA(q.opt,q.textNode),q.textNode&&aA(q,"ontext",q.textNode),q.textNode=""}function pA(q,J){return q.trim&&(J=J.trim()),q.normalize&&(J=J.replace(/\s+/g," ")),J}function cA(q,J){return lA(q),q.trackPosition&&(J+="\nLine: "+q.line+"\nColumn: "+q.column+"\nChar: "+q.c),J=new Error(J),q.error=J,aA(q,"onerror",J),q}function gA(q){return q.sawRoot&&!q.closedRoot&&BA(q,"Unclosed root tag"),q.state!==L.BEGIN&&q.state!==L.BEGIN_WHITESPACE&&q.state!==L.TEXT&&cA(q,"Unexpected end"),lA(q),q.c="",q.closed=!0,aA(q,"onend"),l.call(q,q.strict,q.opt),q}function BA(q,J){if("object"!=typeof q||!(q instanceof l))throw new Error("bad call to strictFail");q.strict&&cA(q,J)}function yA(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var J=q.tags[q.tags.length-1]||q,$=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&($.ns=J.ns),q.attribList.length=0,AA(q,"onopentagstart",$)}function xA(q,J){var W=q.indexOf(":")<0?["",q]:q.split(":"),hA=W[0],vA=W[1];return J&&"xmlns"===q&&(hA="xmlns",vA=""),{prefix:hA,local:vA}}function _(q){if(q.strict||(q.attribName=q.attribName[q.looseCase]()),-1!==q.attribList.indexOf(q.attribName)||q.tag.attributes.hasOwnProperty(q.attribName))q.attribName=q.attribValue="";else{if(q.opt.xmlns){var J=xA(q.attribName,!0),W=J.local;if("xmlns"===J.prefix)if("xml"===W&&q.attribValue!==w)BA(q,"xml: prefix must be bound to "+w+"\nActual: "+q.attribValue);else if("xmlns"===W&&q.attribValue!==Q)BA(q,"xmlns: prefix must be bound to "+Q+"\nActual: "+q.attribValue);else{var hA=q.tag,vA=q.tags[q.tags.length-1]||q;hA.ns===vA.ns&&(hA.ns=Object.create(vA.ns)),hA.ns[W]=q.attribValue}q.attribList.push([q.attribName,q.attribValue])}else q.tag.attributes[q.attribName]=q.attribValue,AA(q,"onattribute",{name:q.attribName,value:q.attribValue});q.attribName=q.attribValue=""}}function MA(q,J){if(q.opt.xmlns){var $=q.tag,W=xA(q.tagName);$.prefix=W.prefix,$.local=W.local,$.uri=$.ns[W.prefix]||"",$.prefix&&!$.uri&&(BA(q,"Unbound namespace prefix: "+JSON.stringify(q.tagName)),$.uri=W.prefix),$.ns&&(q.tags[q.tags.length-1]||q).ns!==$.ns&&Object.keys($.ns).forEach(function(Mt){AA(q,"onopennamespace",{prefix:Mt,uri:$.ns[Mt]})});for(var vA=0,nA=q.attribList.length;vA",q.tagName="",void(q.state=L.SCRIPT);AA(q,"onscript",q.script),q.script=""}var J=q.tags.length,$=q.tagName;q.strict||($=$[q.looseCase]());for(var W=$;J--&&q.tags[J].name!==W;)BA(q,"Unexpected close tag");if(J<0)return BA(q,"Unmatched closing tag: "+q.tagName),q.textNode+="",void(q.state=L.TEXT);q.tagName=$;for(var vA=q.tags.length;vA-- >J;){var nA=q.tag=q.tags.pop();q.tagName=q.tag.name,AA(q,"onclosetag",q.tagName);var EA={};for(var GA in nA.ns)EA[GA]=nA.ns[GA];q.opt.xmlns&&nA.ns!==(q.tags[q.tags.length-1]||q).ns&&Object.keys(nA.ns).forEach(function(lt){AA(q,"onclosenamespace",{prefix:lt,uri:nA.ns[lt]})})}0===J&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=L.TEXT}function QA(q){var W,J=q.entity,$=J.toLowerCase(),hA="";return q.ENTITIES[J]?q.ENTITIES[J]:q.ENTITIES[$]?q.ENTITIES[$]:("#"===(J=$).charAt(0)&&("x"===J.charAt(1)?(J=J.slice(2),hA=(W=parseInt(J,16)).toString(16)):(J=J.slice(1),hA=(W=parseInt(J,10)).toString(10))),J=J.replace(/^0+/,""),isNaN(W)||hA.toLowerCase()!==J?(BA(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint(W))}function SA(q,J){"<"===J?(q.state=L.OPEN_WAKA,q.startTagPosition=q.position):D(J)||(BA(q,"Non-whitespace before first tag."),q.textNode=J,q.state=L.TEXT)}function bA(q,J){var $="";return J1114111||J(lt)!==lt)throw RangeError("Invalid code point: "+lt);lt<=65535?hA.push(lt):hA.push(55296+((lt-=65536)>>10),lt%1024+56320),(EA+1===GA||hA.length>W)&&(nt+=q.apply(null,hA),hA.length=0)}return nt},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$)}(I)},2830:function(Y,I,n){Y.exports=o;var c=n(7187).EventEmitter;function o(){c.call(this)}n(5717)(o,c),o.Readable=n(6577),o.Writable=n(323),o.Duplex=n(8656),o.Transform=n(4473),o.PassThrough=n(2366),o.finished=n(1086),o.pipeline=n(6472),o.Stream=o,o.prototype.pipe=function(l,h){var a=this;function g(w){l.writable&&!1===l.write(w)&&a.pause&&a.pause()}function E(){a.readable&&a.resume&&a.resume()}a.on("data",g),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(B(),0===c.listenerCount(this,"error"))throw w}function B(){a.removeListener("data",g),l.removeListener("drain",E),a.removeListener("end",C),a.removeListener("close",e),a.removeListener("error",f),l.removeListener("error",f),a.removeListener("end",B),a.removeListener("close",B),l.removeListener("close",B)}return a.on("error",f),l.on("error",f),a.on("end",B),a.on("close",B),l.on("close",B),l.emit("pipe",a),l}},8106:function(Y){"use strict";var n={};function c(a,g,E){E||(E=Error);var C=function(e){function f(B,w,Q){return e.call(this,function u(e,f,B){return"string"==typeof g?g:g(e,f,B)}(B,w,Q))||this}return function I(a,g){a.prototype=Object.create(g.prototype),a.prototype.constructor=a,a.__proto__=g}(f,e),f}(E);C.prototype.name=E.name,C.prototype.code=a,n[a]=C}function i(a,g){if(Array.isArray(a)){var E=a.length;return a=a.map(function(u){return String(u)}),E>2?"one of ".concat(g," ").concat(a.slice(0,E-1).join(", "),", or ")+a[E-1]:2===E?"one of ".concat(g," ").concat(a[0]," or ").concat(a[1]):"of ".concat(g," ").concat(a[0])}return"of ".concat(g," ").concat(String(a))}c("ERR_INVALID_OPT_VALUE",function(a,g){return'The value "'+g+'" is invalid for option "'+a+'"'},TypeError),c("ERR_INVALID_ARG_TYPE",function(a,g,E){var u,C;if("string"==typeof g&&function o(a,g,E){return a.substr(!E||E<0?0:+E,g.length)===g}(g,"not ")?(u="must not be",g=g.replace(/^not /,"")):u="must be",function l(a,g,E){return(void 0===E||E>a.length)&&(E=a.length),a.substring(E-g.length,E)===g}(a," argument"))C="The ".concat(a," ").concat(u," ").concat(i(g,"type"));else{var e=function h(a,g,E){return"number"!=typeof E&&(E=0),!(E+g.length>a.length)&&-1!==a.indexOf(g,E)}(a,".")?"property":"argument";C='The "'.concat(a,'" ').concat(e," ").concat(u," ").concat(i(g,"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"),Y.exports.q=n},8656:function(Y,I,n){"use strict";var c=n(4155),i=Object.keys||function(e){var f=[];for(var B in e)f.push(B);return f};Y.exports=E;var o=n(6577),l=n(323);n(5717)(E,o);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)),nt)TA.endEmitted?F(nA,new v):lA(nA,TA,EA,!0);else if(TA.ended)F(nA,new m);else{if(TA.destroyed)return!1;TA.reading=!1,TA.decoder&&!GA?(EA=TA.decoder.write(EA),TA.objectMode||0!==EA.length?lA(nA,TA,EA,!1):MA(nA,TA)):lA(nA,TA,EA,!1)}else nt||(TA.reading=!1,MA(nA,TA));return!TA.ended&&(TA.lengthEA.highWaterMark&&(EA.highWaterMark=function gA(nA){return nA>=cA?nA=cA:(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 xA(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,J(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 q(nA,EA){e("resume",EA.reading),EA.reading||nA.read(0),EA.resumeScheduled=!1,nA.emit("resume"),J(nA),EA.flowing&&!EA.reading&&nA.read(0)}function J(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,nt=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):xA(this),null;if(0===(nA=BA(nA,EA))&&EA.ended)return 0===EA.length&&W(this),null;var lt,nt=EA.needReadable;return e("need readable",nt),(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!==lt&&this.emit("data",lt),lt},aA.prototype._read=function(nA){F(this,new d("_read()"))},aA.prototype.pipe=function(nA,EA){var GA=this,nt=this._readableState;switch(nt.pipesCount){case 0:nt.pipes=nA;break;case 1:nt.pipes=[nt.pipes,nA];break;default:nt.pipes.push(nA)}nt.pipesCount+=1,e("pipe count=%d opts=%j",nt.pipesCount,EA);var TA=EA&&!1===EA.end||nA===c.stdout||nA===c.stderr?dt:vt;function it(mt,OA){e("onunpipe"),mt===GA&&OA&&!1===OA.hasUnpiped&&(OA.hasUnpiped=!0,function JA(){e("cleanup"),nA.removeListener("close",et),nA.removeListener("finish",FA),nA.removeListener("drain",It),nA.removeListener("error",at),nA.removeListener("unpipe",it),GA.removeListener("end",vt),GA.removeListener("end",dt),GA.removeListener("data",qA),Mt=!0,nt.awaitDrain&&(!nA._writableState||nA._writableState.needDrain)&&It()}())}function vt(){e("onend"),nA.end()}nt.endEmitted?c.nextTick(TA):GA.once("end",TA),nA.on("unpipe",it);var It=function QA(nA){return function(){var GA=nA._readableState;e("pipeOnDrain",GA.awaitDrain),GA.awaitDrain&&GA.awaitDrain--,0===GA.awaitDrain&&l(nA,"data")&&(GA.flowing=!0,J(nA))}}(GA);nA.on("drain",It);var Mt=!1;function qA(mt){e("ondata");var OA=nA.write(mt);e("dest.write",OA),!1===OA&&((1===nt.pipesCount&&nt.pipes===nA||nt.pipesCount>1&&-1!==vA(nt.pipes,nA))&&!Mt&&(e("false write response, pause",nt.awaitDrain),nt.awaitDrain++),GA.pause())}function at(mt){e("onerror",mt),dt(),nA.removeListener("error",at),0===l(nA,"error")&&F(nA,mt)}function et(){nA.removeListener("finish",FA),dt()}function FA(){e("onfinish"),nA.removeListener("close",et),dt()}function dt(){e("unpipe"),GA.unpipe(nA)}return GA.on("data",qA),function L(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",at),nA.once("close",et),nA.once("finish",FA),nA.emit("pipe",GA),nt.flowing||(e("pipe resume"),GA.resume()),nA},aA.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 nt=EA.pipes,lt=EA.pipesCount;EA.pipes=null,EA.pipesCount=0,EA.flowing=!1;for(var TA=0;TA0,!1!==nt.flowing&&this.resume()):"readable"===nA&&!nt.endEmitted&&!nt.readableListening&&(nt.readableListening=nt.needReadable=!0,nt.flowing=!1,nt.emittedReadable=!1,e("on readable",nt.length,nt.reading),nt.length?xA(this):nt.reading||c.nextTick(bA,this)),GA},aA.prototype.removeListener=function(nA,EA){var GA=h.prototype.removeListener.call(this,nA,EA);return"readable"===nA&&c.nextTick(SA,this),GA},aA.prototype.removeAllListeners=function(nA){var EA=h.prototype.removeAllListeners.apply(this,arguments);return("readable"===nA||void 0===nA)&&c.nextTick(SA,this),EA},aA.prototype.resume=function(){var nA=this._readableState;return nA.flowing||(e("resume"),nA.flowing=!nA.readableListening,function ZA(nA,EA){EA.resumeScheduled||(EA.resumeScheduled=!0,c.nextTick(q,nA,EA))}(this,nA)),nA.paused=!1,this},aA.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},aA.prototype.wrap=function(nA){var EA=this,GA=this._readableState,nt=!1;for(var lt in nA.on("end",function(){if(e("wrapped end"),GA.decoder&&!GA.ended){var it=GA.decoder.end();it&&it.length&&EA.push(it)}EA.push(null)}),nA.on("data",function(it){e("wrapped data"),GA.decoder&&(it=GA.decoder.write(it)),GA.objectMode&&null==it||!(GA.objectMode||it&&it.length)||EA.push(it)||(nt=!0,nA.pause())}),nA)void 0===this[lt]&&"function"==typeof nA[lt]&&(this[lt]=function(vt){return function(){return nA[vt].apply(nA,arguments)}}(lt));for(var TA=0;TA-1))throw new U($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(Z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Z.prototype._write=function(J,$,W){W(new p("_write()"))},Z.prototype._writev=null,Z.prototype.end=function(J,$,W){var hA=this._writableState;return"function"==typeof J?(W=J,J=null,$=null):"function"==typeof $&&(W=$,$=null),null!=J&&this.write(J,$),hA.corked&&(hA.corked=1,this.uncork()),hA.ending||function ZA(J,$,W){$.ending=!0,bA(J,$),W&&($.finished?c.nextTick(W):J.once("finish",W)),$.ended=!0,J.writable=!1}(this,hA,W),this},Object.defineProperty(Z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Z.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function($){!this._writableState||(this._writableState.destroyed=$)}}),Z.prototype.destroy=e.destroy,Z.prototype._undestroy=e.undestroy,Z.prototype._destroy=function(J,$){$(J)}},828:function(Y,I,n){"use strict";var i,c=n(4155);function o(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"),g=Symbol("error"),E=Symbol("ended"),u=Symbol("lastPromise"),C=Symbol("handlePromise"),e=Symbol("stream");function f(d,v){return{value:d,done:v}}function B(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(B,d)}var p=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((o(i={get stream(){return this[e]},next:function(){var v=this,D=this[g];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(R,L){c.nextTick(function(){v[g]?L(v[g]):R(f(void 0,!0))})});var T,U=this[u];if(U)T=new Promise(function Q(d,v){return function(D,U){d.then(function(){v[E]?D(f(void 0,!0)):v[C](D,U)},U)}}(U,this));else{var F=this[e].read();if(null!==F)return Promise.resolve(f(F,!1));T=new Promise(this[C])}return this[u]=T,T}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var v=this;return new Promise(function(D,U){v[e].destroy(null,function(T){T?U(T):D(f(void 0,!0))})})}),i),p);Y.exports=function(v){var D,U=Object.create(S,(o(D={},e,{value:v,writable:!0}),o(D,h,{value:null,writable:!0}),o(D,a,{value:null,writable:!0}),o(D,g,{value:null,writable:!0}),o(D,E,{value:v._readableState.endEmitted,writable:!0}),o(D,C,{value:function(F,R){var L=U[e].read();L?(U[u]=null,U[h]=null,U[a]=null,F(f(L,!1))):(U[h]=F,U[a]=R)},writable:!0}),D));return U[u]=null,l(v,function(T){if(T&&"ERR_STREAM_PREMATURE_CLOSE"!==T.code){var F=U[a];return null!==F&&(U[u]=null,U[h]=null,U[a]=null,F(T)),void(U[g]=T)}var R=U[h];null!==R&&(U[u]=null,U[h]=null,U[a]=null,R(f(void 0,!0))),U[E]=!0}),v.on("readable",w.bind(null,U)),U}},1029:function(Y,I,n){"use strict";var c=n(4155);function o(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)}Y.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(B){!u&&B?C._writableState?C._writableState.errorEmitted?c.nextTick(l,C):(C._writableState.errorEmitted=!0,c.nextTick(o,C,B)):c.nextTick(o,C,B):u?(c.nextTick(l,C),u(B)):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 g(E,u){var C=E._readableState,e=E._writableState;C&&C.autoDestroy||e&&e.autoDestroy?E.destroy(u):E.emit("error",u)}}},1086:function(Y,I,n){"use strict";var c=n(8106).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}Y.exports=function h(a,g,E){if("function"==typeof g)return h(a,null,g);g||(g={}),E=function i(a){var g=!1;return function(){if(!g){g=!0;for(var E=arguments.length,u=new Array(E),C=0;C0,function(T){S||(S=T),T&&m.forEach(u),!D&&(m.forEach(u),p(S))})});return w.reduce(C)}},94:function(Y,I,n){"use strict";var c=n(8106).q.ERR_INVALID_OPT_VALUE;Y.exports={getHighWaterMark:function o(l,h,a,g){var E=function i(l,h,a){return null!=l.highWaterMark?l.highWaterMark:h?l[a]:null}(h,g,a);if(null!=E){if(!isFinite(E)||Math.floor(E)!==E||E<0)throw new c(g?a:"highWaterMark",E);return Math.floor(E)}return l.objectMode?16:16384}}},3194:function(Y,I,n){Y.exports=n(7187).EventEmitter},1818:function(Y,I,n){var c,o;void 0!==(o="function"==typeof(c=function(){"use strict";function h(e,f,B){var w=new XMLHttpRequest;w.open("GET",e),w.responseType="blob",w.onload=function(){C(w.response,f,B)},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(B){}return 200<=f.status&&299>=f.status}function g(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(B){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,B){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?g(Q):a(Q.href)?h(e,f,B):g(Q,Q.target="_blank")):(Q.href=w.createObjectURL(e),setTimeout(function(){w.revokeObjectURL(Q.href)},4e4),setTimeout(function(){g(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(e,f,B){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,B),f);else if(a(e))h(e,f,B);else{var w=document.createElement("a");w.href=e,w.target="_blank",setTimeout(function(){g(w)})}}:function(e,f,B,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof e)return h(e,f,B);var Q="application/octet-stream"===e.type,p=/constructor/i.test(E.HTMLElement)||E.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||Q&&p||u)&&"undefined"!=typeof FileReader){var m=new FileReader;m.onloadend=function(){var D=m.result;D=S?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=D:location=D,w=null},m.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,Y.exports=C})?c.apply(I,[]):c)&&(Y.exports=o)},2553:function(Y,I,n){"use strict";var c=n(1750).Buffer,i=c.isEncoding||function(m){switch((m=""+m)&&m.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(m){var d;switch(this.encoding=function l(m){var d=function o(m){if(!m)return"utf8";for(var d;;)switch(m){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 m;default:if(d)return;m=(""+m).toLowerCase(),d=!0}}(m);if("string"!=typeof d&&(c.isEncoding===i||!i(m)))throw new Error("Unknown encoding: "+m);return d||m}(m),this.encoding){case"utf16le":this.text=f,this.end=B,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=S)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(d)}function a(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function u(m){var d=this.lastTotal-this.lastNeed,v=function E(m,d,v){if(128!=(192&d[0]))return m.lastNeed=0,"\ufffd";if(m.lastNeed>1&&d.length>1){if(128!=(192&d[1]))return m.lastNeed=1,"\ufffd";if(m.lastNeed>2&&d.length>2&&128!=(192&d[2]))return m.lastNeed=2,"\ufffd"}}(this,m);return void 0!==v?v:this.lastNeed<=m.length?(m.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,d,0,m.length),void(this.lastNeed-=m.length))}function f(m,d){if((m.length-d)%2==0){var v=m.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]=m[m.length-2],this.lastChar[1]=m[m.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",d,m.length-1)}function B(m){var d=m&&m.length?this.write(m):"";return this.lastNeed?d+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):d}function w(m,d){var v=(m.length-d)%3;return 0===v?m.toString("base64",d):(this.lastNeed=3-v,this.lastTotal=3,1===v?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",d,m.length-v))}function Q(m){var d=m&&m.length?this.write(m):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function p(m){return m.toString(this.encoding)}function S(m){return m&&m.length?this.write(m):""}I.s=h,h.prototype.write=function(m){if(0===m.length)return"";var d,v;if(this.lastNeed){if(void 0===(d=this.fillLast(m)))return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v=0?(U>0&&(m.lastNeed=U-1),U):--D=0?(U>0&&(m.lastNeed=U-2),U):--D=0?(U>0&&(2===U?U=0:m.lastNeed=U-3),U):0}(this,m,d);if(!this.lastNeed)return m.toString("utf8",d);this.lastTotal=v;var D=m.length-(v-this.lastNeed);return m.copy(this.lastChar,0,D),m.toString("utf8",d,D)},h.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},311:function(Y){function c(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(T,F){this.source=T,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=F,this.destLen=0,this.ltree=new c,this.dtree=new c}var o=new c,l=new c,h=new Uint8Array(30),a=new Uint16Array(30),g=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(T,F,R,L){var Z,aA;for(Z=0;Z>>=1,F}function S(T,F,R){if(!F)return R;for(;T.bitcount<24;)T.tag|=T.source[T.sourceIndex++]<>>16-F;return T.tag>>>=F,T.bitcount-=F,L+R}function m(T,F){for(;T.bitcount<24;)T.tag|=T.source[T.sourceIndex++]<>>=1,++Z,R+=F.table[Z],L-=F.table[Z]}while(L>=0);return T.tag=aA,T.bitcount-=Z,F.trans[R+L]}function d(T,F,R){var L,Z,aA,AA,lA,pA;for(L=S(T,5,257),Z=S(T,5,1),aA=S(T,4,4),AA=0;AA<19;++AA)e[AA]=0;for(AA=0;AA8;)T.sourceIndex--,T.bitcount-=8;if((F=256*(F=T.source[T.sourceIndex+1])+T.source[T.sourceIndex])!==(65535&~(256*T.source[T.sourceIndex+3]+T.source[T.sourceIndex+2])))return-3;for(T.sourceIndex+=4,L=F;L;--L)T.dest[T.destLen++]=T.source[T.sourceIndex++];return T.bitcount=0,0}(function B(T,F){var R;for(R=0;R<7;++R)T.table[R]=0;for(T.table[7]=24,T.table[8]=152,T.table[9]=112,R=0;R<24;++R)T.trans[R]=256+R;for(R=0;R<144;++R)T.trans[24+R]=R;for(R=0;R<8;++R)T.trans[168+R]=280+R;for(R=0;R<112;++R)T.trans[176+R]=144+R;for(R=0;R<5;++R)F.table[R]=0;for(F.table[5]=32,R=0;R<32;++R)F.trans[R]=R})(o,l),f(h,a,4,3),f(g,E,2,1),h[28]=0,a[28]=258,Y.exports=function U(T,F){var L,aA,R=new i(T,F);do{switch(L=p(R),S(R,2,0)){case 0:aA=D(R);break;case 1:aA=v(R,o,l);break;case 2:d(R,R.ltree,R.dtree),aA=v(R,R.ltree,R.dtree);break;default:aA=-3}if(0!==aA)throw new Error("Data error")}while(!L);return R.destLen=eA.length?{done:!0}:{done:!1,value:eA[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(eA,G){(null==G||G>eA.length)&&(G=eA.length);for(var V=0,M=new Array(G);V0?iA[0]:"value";if(tA.has(kA))return tA.get(kA);var gt=x.apply(this,iA);return tA.set(kA,gt),gt}return Object.defineProperty(this,G,{value:oA}),oA}}}}D.registerFormat=function(eA){U.push(eA)},D.openSync=function(eA,G){var V=v.readFileSync(eA);return D.create(V,G)},D.open=function(eA,G,V){"function"==typeof G&&(V=G,G=null),v.readFile(eA,function(M,x){if(M)return V(M);try{var P=D.create(x,G)}catch(tA){return V(tA)}return V(null,P)})},D.create=function(eA,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(eA){return(eA.length-eA._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(Z,"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(Z,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(Z,"nGroups")},14:{length:e.uint32,numRecords:e.uint32,varSelectors:new e.LazyArray(cA,"numRecords")}}),BA=new e.Struct({platformID:e.uint16,encodingID:e.uint16,table:new e.Pointer(e.uint32,gA,{type:"parent",lazy:!0})}),yA=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(BA,"numSubtables")}),xA=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(eA){return eA.parent.hhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.hhea.numberOfMetrics})}),QA=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(eA,G,V){return void 0===V&&(V=0),1===eA&&ZA[V]?ZA[V]:bA[eA][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"]],ZA={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"},q=[[],{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"}],J=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(eA){return SA(eA.platformID,eA.encodingID,eA.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(J,"count")},1:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(J,"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(eA){for(var M,G={},V=g(this.records);!(M=V()).done;){var x=M.value,P=q[x.platformID][x.languageID];null==P&&null!=this.langTags&&x.languageID>=32768&&(P=this.langTags[x.languageID-32768].tag),null==P&&(P=x.platformID+"-"+x.languageID);var tA=x.nameID>=256?"fontFeatures":hA[x.nameID]||x.nameID;null==G[tA]&&(G[tA]={});var oA=G[tA];x.nameID>=256&&(oA=oA[x.nameID]||(oA[x.nameID]={})),("string"==typeof x.string||"string"!=typeof oA[P])&&(oA[P]=x.string)}this.records=G},W.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var eA=[];for(var G in this.records){var V=this.records[G];"fontFeatures"!==G&&(eA.push({platformID:3,encodingID:1,languageID:1033,nameID:hA.indexOf(G),length:c.byteLength(V.en,"utf16le"),string:V.en}),"postscriptName"===G&&eA.push({platformID:1,encodingID:0,languageID:0,nameID:hA.indexOf(G),length:V.en.length,string:V.en}))}this.records=eA,this.count=eA.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(eA){return eA.parent.maxp.numGlyphs})}}),GA=new e.Struct({controlValues:new e.Array(e.int16)}),nt=new e.Struct({instructions:new e.Array(e.uint8)}),lt=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}});lt.process=function(){if(0===this.version)for(var eA=0;eA>>=1};var TA=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),it=new e.Array(new e.Buffer),vt=function(){function eA(V){this.type=V}var G=eA.prototype;return G.getCFFVersion=function(M){for(;M&&!M.hdrSize;)M=M.parent;return M?M.version:-1},G.decode=function(M,x){var tA=this.getCFFVersion(x)>=2?M.readUInt32BE():M.readUInt16BE();if(0===tA)return[];var sA,oA=M.readUInt8();if(1===oA)sA=e.uint8;else if(2===oA)sA=e.uint16;else if(3===oA)sA=e.uint24;else{if(4!==oA)throw new Error("Bad offset size in CFFIndex: ".concat(oA," ").concat(M.pos));sA=e.uint32}for(var iA=[],NA=M.pos+(tA+1)*oA-1,kA=sA.decode(M),gt=0;gt>4;if(15===tA)break;x+=Mt[tA];var oA=15&P;if(15===oA)break;x+=Mt[oA]}return parseFloat(x)}return null},eA.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},eA.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 P=""+x,tA=0;tAP;)x.pop()},eA}(),null],[19,"Subrs",new et(new vt,{type:"local"}),null]]),OA=[".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"})}),Bt=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,Bt,{type:"parent"})}),j=new e.Array(Yt,e.uint16),XA=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,XA,{type:"parent"})}),DA=new e.Array(KA,e.uint16),jA=new e.Struct({markAttachmentType:e.uint8,flags:new e.Bitfield(e.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function ct(eA){var G=new e.Struct({lookupType:e.uint16,flags:jA,subTableCount:e.uint16,subTables:new e.Array(new e.Pointer(e.uint16,eA),"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 Lt=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(Lt,"rangeCount")}}),Rt=new e.Struct({start:e.uint16,end:e.uint16,class:e.uint16}),Vt=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(Rt,"classRangeCount")}}),Le=new e.Struct({a:e.uint16,b:e.uint16,deltaFormat:e.uint16}),ie=new e.Struct({sequenceIndex:e.uint16,lookupListIndex:e.uint16}),te=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,input:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(ie,"lookupCount")}),ye=new e.Array(new e.Pointer(e.uint16,te),e.uint16),be=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,classes:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(ie,"lookupCount")}),Re=new e.Array(new e.Pointer(e.uint16,be),e.uint16),vn=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,ye),"ruleSetCount")},2:{coverage:new e.Pointer(e.uint16,xt),classDef:new e.Pointer(e.uint16,Vt),classSetCnt:e.uint16,classSet:new e.Array(new e.Pointer(e.uint16,Re),"classSetCnt")},3:{glyphCount:e.uint16,lookupCount:e.uint16,coverages:new e.Array(new e.Pointer(e.uint16,xt),"glyphCount"),lookupRecords:new e.Array(ie,"lookupCount")}}),Dn=new e.Struct({backtrackGlyphCount:e.uint16,backtrack:new e.Array(e.uint16,"backtrackGlyphCount"),inputGlyphCount:e.uint16,input:new e.Array(e.uint16,function(eA){return eA.inputGlyphCount-1}),lookaheadGlyphCount:e.uint16,lookahead:new e.Array(e.uint16,"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(ie,"lookupCount")}),re=new e.Array(new e.Pointer(e.uint16,Dn),e.uint16),en=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,re),"chainCount")},2:{coverage:new e.Pointer(e.uint16,xt),backtrackClassDef:new e.Pointer(e.uint16,Vt),inputClassDef:new e.Pointer(e.uint16,Vt),lookaheadClassDef:new e.Pointer(e.uint16,Vt),chainCount:e.uint16,chainClassSet:new e.Array(new e.Pointer(e.uint16,re),"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(ie,"lookupCount")}}),Te=new e.Fixed(16,"BE",14),nn=new e.Struct({startCoord:Te,peakCoord:Te,endCoord:Te}),Xe=new e.Struct({axisCount:e.uint16,regionCount:e.uint16,variationRegions:new e.Array(new e.Array(nn,"axisCount"),"regionCount")}),bn=new e.Struct({shortDeltas:new e.Array(e.int16,function(eA){return eA.parent.shortDeltaCount}),regionDeltas:new e.Array(e.int8,function(eA){return eA.parent.regionIndexCount-eA.parent.shortDeltaCount}),deltas:function(G){return G.shortDeltas.concat(G.regionDeltas)}}),Gn=new e.Struct({itemCount:e.uint16,shortDeltaCount:e.uint16,regionIndexCount:e.uint16,regionIndexes:new e.Array(e.uint16,"regionIndexCount"),deltaSets:new e.Array(bn,"itemCount")}),Jt=new e.Struct({format:e.uint16,variationRegionList:new e.Pointer(e.uint32,Xe),variationDataCount:e.uint16,itemVariationData:new e.Array(new e.Pointer(e.uint32,Gn),"variationDataCount")}),bt=new e.VersionedStruct(e.uint16,{1:(i={axisIndex:e.uint16},i.axisIndex=e.uint16,i.filterRangeMinValue=Te,i.filterRangeMaxValue=Te,i)}),Xt=new e.Struct({conditionCount:e.uint16,conditionTable:new e.Array(new e.Pointer(e.uint32,bt),"conditionCount")}),oe=new e.Struct({featureIndex:e.uint16,alternateFeatureTable:new e.Pointer(e.uint32,XA,{type:"parent"})}),In=new e.Struct({version:e.fixed32,substitutionCount:e.uint16,substitutions:new e.Array(oe,"substitutionCount")}),dn=new e.Struct({conditionSet:new e.Pointer(e.uint32,Xt,{type:"parent"}),featureTableSubstitution:new e.Pointer(e.uint32,In,{type:"parent"})}),Fn=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,featureVariationRecordCount:e.uint32,featureVariationRecords:new e.Array(dn,"featureVariationRecordCount")}),Kn=function(){function eA(V,M){this.predefinedOps=V,this.type=M}var G=eA.prototype;return G.decode=function(M,x,P){return this.predefinedOps[P[0]]?this.predefinedOps[P[0]]:this.type.decode(M,x,P)},G.size=function(M,x){return this.type.size(M,x)},G.encode=function(M,x,P){var tA=this.predefinedOps.indexOf(x);return-1!==tA?tA:this.type.encode(M,x,P)},eA}(),gr=function(eA){function G(){return eA.call(this,"UInt8")||this}return h(G,eA),G.prototype.decode=function(x){return 127&e.uint8.decode(x)},G}(e.Number),Yn=new e.Struct({first:e.uint16,nLeft:e.uint8}),WA=new e.Struct({first:e.uint16,nLeft:e.uint16}),tt=new Kn([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 et(new e.VersionedStruct(new gr,{0:{nCodes:e.uint8,codes:new e.Array(e.uint8,"nCodes")},1:{nRanges:e.uint8,ranges:new e.Array(Yn,"nRanges")}}),{lazy:!0})),UA=function(eA){function G(){return eA.apply(this,arguments)||this}return h(G,eA),G.prototype.decode=function(x,P){for(var tA=f.resolveLength(this.length,x,P),oA=0,sA=[];oA=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 P=0;P>1;if(M=x[oA+1].first))return x[oA].fd;P=oA+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(eA,[{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)}}]),eA}(),Et=new e.Struct({glyphIndex:e.uint16,vertOriginY:e.int16}),Pt=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,defaultVertOriginY:e.int16,numVertOriginYMetrics:e.uint16,metrics:new e.Array(Et,"numVertOriginYMetrics")}),jt=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}),Ht=new e.Struct({height:e.uint8,width:e.uint8,bearingX:e.int8,bearingY:e.int8,advance:e.uint8}),ce=new e.Struct({glyph:e.uint16,xOffset:e.int8,yOffset:e.int8}),Zt=function(){},ue=function(){},ve=(new e.VersionedStruct("version",{1:{metrics:Ht,data:Zt},2:{metrics:Ht,data:ue},5:{data:ue},6:{metrics:jt,data:Zt},7:{metrics:jt,data:ue},8:{metrics:Ht,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},9:{metrics:jt,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},17:{metrics:Ht,dataLen:e.uint32,data:new e.Buffer("dataLen")},18:{metrics:jt,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)})),Ge=new e.Struct({glyphCode:e.uint16,offset:e.uint16}),Se=new e.VersionedStruct(e.uint16,{header:{imageFormat:e.uint16,imageDataOffset:e.uint32},1:{offsetArray:new e.Array(e.uint32,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},2:{imageSize:e.uint32,bigMetrics:jt},3:{offsetArray:new e.Array(e.uint16,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},4:{numGlyphs:e.uint32,glyphArray:new e.Array(Ge,function(eA){return eA.numGlyphs+1})},5:{imageSize:e.uint32,bigMetrics:jt,numGlyphs:e.uint32,glyphCodeArray:new e.Array(e.uint16,"numGlyphs")}}),xe=new e.Struct({firstGlyphIndex:e.uint16,lastGlyphIndex:e.uint16,subtable:new e.Pointer(e.uint32,Se)}),Ne=new e.Struct({indexSubTableArray:new e.Pointer(e.uint32,new e.Array(xe,1),{type:"parent"}),indexTablesSize:e.uint32,numberOfIndexSubTables:e.uint32,colorRef:e.uint32,hori:ve,vert:ve,startGlyphIndex:e.uint16,endGlyphIndex:e.uint16,ppemX:e.uint8,ppemY:e.uint8,bitDepth:e.uint8,flags:new e.Bitfield(e.uint8,["horizontal","vertical"])}),$e=new e.Struct({version:e.uint32,numSizes:e.uint32,sizes:new e.Array(Ne,"numSizes")}),yn=new e.Struct({ppem:e.uint16,resolution:e.uint16,imageOffsets:new e.Array(new e.Pointer(e.uint32,"void"),function(eA){return eA.parent.parent.maxp.numGlyphs+1})}),an=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,yn),"numImgTables")}),Mn=new e.Struct({gid:e.uint16,paletteIndex:e.uint16}),xn=new e.Struct({gid:e.uint16,firstLayerIndex:e.uint16,numLayers:e.uint16}),qe=new e.Struct({version:e.uint16,numBaseGlyphRecords:e.uint16,baseGlyphRecord:new e.Pointer(e.uint32,new e.Array(xn,"numBaseGlyphRecords")),layerRecords:new e.Pointer(e.uint32,new e.Array(Mn,"numLayerRecords"),{lazy:!0}),numLayerRecords:e.uint16}),fn=new e.Struct({blue:e.uint8,green:e.uint8,red:e.uint8,alpha:e.uint8}),cn=new e.VersionedStruct(e.uint16,{header:{numPaletteEntries:e.uint16,numPalettes:e.uint16,numColorRecords:e.uint16,colorRecords:new e.Pointer(e.uint32,new e.Array(fn,"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"))}}),Xn=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,Le)}}),Yr=new e.Struct({defaultIndex:e.uint16,baseCoordCount:e.uint16,baseCoords:new e.Array(new e.Pointer(e.uint16,Xn),"baseCoordCount")}),Tr=new e.Struct({tag:new e.String(4),minCoord:new e.Pointer(e.uint16,Xn,{type:"parent"}),maxCoord:new e.Pointer(e.uint16,Xn,{type:"parent"})}),rr=new e.Struct({minCoord:new e.Pointer(e.uint16,Xn),maxCoord:new e.Pointer(e.uint16,Xn),featMinMaxCount:e.uint16,featMinMaxRecords:new e.Array(Tr,"featMinMaxCount")}),Tn=new e.Struct({tag:new e.String(4),minMax:new e.Pointer(e.uint16,rr,{type:"parent"})}),Sn=new e.Struct({baseValues:new e.Pointer(e.uint16,Yr),defaultMinMax:new e.Pointer(e.uint16,rr),baseLangSysCount:e.uint16,baseLangSysRecords:new e.Array(Tn,"baseLangSysCount")}),mA=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Sn,{type:"parent"})}),O=new e.Array(mA,e.uint16),N=new e.Array(new e.String(4),e.uint16),X=new e.Struct({baseTagList:new e.Pointer(e.uint16,N),baseScriptList:new e.Pointer(e.uint16,O)}),K=new e.VersionedStruct(e.uint32,{header:{horizAxis:new e.Pointer(e.uint16,X),vertAxis:new e.Pointer(e.uint16,X)},65536:{},65537:{itemVariationStore:new e.Pointer(e.uint32,Jt)}}),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,Le)}}),rt=new e.Array(new e.Pointer(e.uint16,At),e.uint16),ft=new e.Struct({coverage:new e.Pointer(e.uint16,xt),ligGlyphCount:e.uint16,ligGlyphs:new e.Array(new e.Pointer(e.uint16,rt),"ligGlyphCount")}),Ct=new e.Struct({markSetTableFormat:e.uint16,markSetCount:e.uint16,coverage:new e.Array(new e.Pointer(e.uint32,xt),"markSetCount")}),Dt=new e.VersionedStruct(e.uint32,{header:{glyphClassDef:new e.Pointer(e.uint16,Vt),attachList:new e.Pointer(e.uint16,IA),ligCaretList:new e.Pointer(e.uint16,ft),markAttachClassDef:new e.Pointer(e.uint16,Vt)},65536:{},65538:{markGlyphSetsDef:new e.Pointer(e.uint16,Ct)},65539:{markGlyphSetsDef:new e.Pointer(e.uint16,Ct),itemVariationStore:new e.Pointer(e.uint32,Jt)}}),Ft=new e.Bitfield(e.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),Tt={xPlacement:e.int16,yPlacement:e.int16,xAdvance:e.int16,yAdvance:e.int16,xPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}}),yPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}}),xAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}}),yAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}})},Ot=function(){function eA(V){void 0===V&&(V="valueFormat"),this.key=V}var G=eA.prototype;return G.buildStruct=function(M){for(var x=M;!x[this.key]&&x.parent;)x=x.parent;if(x[this.key]){var P={rel:function(){return x._startOffset}},tA=x[this.key];for(var oA in tA)tA[oA]&&(P[oA]=Tt[oA]);return new e.Struct(P)}},G.size=function(M,x){return this.buildStruct(x).size(M,x)},G.decode=function(M,x){var P=this.buildStruct(x).decode(M,x);return delete P.rel,P},eA}(),Kt=new e.Struct({secondGlyph:e.uint16,value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),fe=new e.Array(Kt,e.uint16),Ee=new e.Struct({value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),pe=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,Le),yDeviceTable:new e.Pointer(e.uint16,Le)}}),rn=new e.Struct({entryAnchor:new e.Pointer(e.uint16,pe,{type:"parent"}),exitAnchor:new e.Pointer(e.uint16,pe,{type:"parent"})}),Me=new e.Struct({class:e.uint16,markAnchor:new e.Pointer(e.uint16,pe,{type:"parent"})}),je=new e.Array(Me,e.uint16),wn=new e.Array(new e.Pointer(e.uint16,pe),function(eA){return eA.parent.classCount}),Ke=new e.Array(wn,e.uint16),Cn=new e.Array(new e.Pointer(e.uint16,pe),function(eA){return eA.parent.parent.classCount}),Vn=new e.Array(Cn,e.uint16),qn=new e.Array(new e.Pointer(e.uint16,Vn),e.uint16),Nn=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),valueFormat:Ft,value:new Ot},2:{coverage:new e.Pointer(e.uint16,xt),valueFormat:Ft,valueCount:e.uint16,values:new e.LazyArray(new Ot,"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,fe),"pairSetCount")},2:{coverage:new e.Pointer(e.uint16,xt),valueFormat1:Ft,valueFormat2:Ft,classDef1:new e.Pointer(e.uint16,Vt),classDef2:new e.Pointer(e.uint16,Vt),class1Count:e.uint16,class2Count:e.uint16,classRecords:new e.LazyArray(new e.LazyArray(Ee,"class2Count"),"class1Count")}}),3:{format:e.uint16,coverage:new e.Pointer(e.uint16,xt),entryExitCount:e.uint16,entryExitRecords:new e.Array(rn,"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,je),baseArray:new e.Pointer(e.uint16,Ke)},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,je),ligatureArray:new e.Pointer(e.uint16,qn)},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,je),mark2Array:new e.Pointer(e.uint16,Ke)},7:vn,8:en,9:{posFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,Nn)}});Nn.versions[9].extension.type=Nn;var zr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,DA),lookupList:new e.Pointer(e.uint16,new ct(Nn))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Fn)}}),Jn=new e.Array(e.uint16,e.uint16),ir=Jn,dr=new e.Struct({glyph:e.uint16,compCount:e.uint16,components:new e.Array(e.uint16,function(eA){return eA.compCount-1})}),_n=new e.Array(new e.Pointer(e.uint16,dr),e.uint16),Br=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,ir),"count")},4:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,xt),count:e.uint16,ligatureSets:new e.LazyArray(new e.Pointer(e.uint16,_n),"count")},5:vn,6:en,7:{substFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,Br)},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")}});Br.versions[7].extension.type=Br;var Lr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,DA),lookupList:new e.Pointer(e.uint16,new ct(Br))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Fn)}}),Wn=new e.Array(e.uint16,e.uint16),br=new e.Struct({shrinkageEnableGSUB:new e.Pointer(e.uint16,Wn),shrinkageDisableGSUB:new e.Pointer(e.uint16,Wn),shrinkageEnableGPOS:new e.Pointer(e.uint16,Wn),shrinkageDisableGPOS:new e.Pointer(e.uint16,Wn),shrinkageJstfMax:new e.Pointer(e.uint16,new ct(Nn)),extensionEnableGSUB:new e.Pointer(e.uint16,Wn),extensionDisableGSUB:new e.Pointer(e.uint16,Wn),extensionEnableGPOS:new e.Pointer(e.uint16,Wn),extensionDisableGPOS:new e.Pointer(e.uint16,Wn),extensionJstfMax:new e.Pointer(e.uint16,new ct(Nn))}),Mr=new e.Array(new e.Pointer(e.uint16,br),e.uint16),Gr=new e.Struct({tag:new e.String(4),jstfLangSys:new e.Pointer(e.uint16,Mr)}),Hr=new e.Struct({extenderGlyphs:new e.Pointer(e.uint16,new e.Array(e.uint16,e.uint16)),defaultLangSys:new e.Pointer(e.uint16,Mr),langSysCount:e.uint16,langSysRecords:new e.Array(Gr,"langSysCount")}),si=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Hr,{type:"parent"})}),Jr=new e.Struct({version:e.uint32,scriptCount:e.uint16,scriptList:new e.Array(si,"scriptCount")}),Or=new e.Struct({entry:new(function(){function eA(V){this._size=V}var G=eA.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)},eA}())(function(eA){return 1+((48&eA.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}}),Zn=new e.Struct({entryFormat:e.uint16,mapCount:e.uint16,mapData:new e.Array(Or,"mapCount")}),Li=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,itemVariationStore:new e.Pointer(e.uint32,Jt),advanceWidthMapping:new e.Pointer(e.uint32,Zn),LSBMapping:new e.Pointer(e.uint32,Zn),RSBMapping:new e.Pointer(e.uint32,Zn)}),bi=new e.Struct({format:e.uint32,length:e.uint32,offset:e.uint32}),oo=new e.Struct({reserved:new e.Reserved(e.uint16,2),cbSignature:e.uint32,signature:new e.Buffer("cbSignature")}),aa=new e.Struct({ulVersion:e.uint32,usNumSigs:e.uint16,usFlag:e.uint16,signatures:new e.Array(bi,"usNumSigs"),signatureBlocks:new e.Array(oo,"usNumSigs")}),so=new e.Struct({rangeMaxPPEM:e.uint16,rangeGaspBehavior:new e.Bitfield(e.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),lo=new e.Struct({version:e.uint16,numRanges:e.uint16,gaspRanges:new e.Array(so,"numRanges")}),co=new e.Struct({pixelSize:e.uint8,maximumWidth:e.uint8,widths:new e.Array(e.uint8,function(eA){return eA.parent.parent.maxp.numGlyphs})}),go=new e.Struct({version:e.uint16,numRecords:e.int16,sizeDeviceRecord:e.int32,records:new e.Array(co,"numRecords")}),Bo=new e.Struct({left:e.uint16,right:e.uint16,value:e.int16}),oa=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)}}),uo=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")}),sa=new e.VersionedStruct("format",{0:{nPairs:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,pairs:new e.Array(Bo,"nPairs")},2:{rowWidth:e.uint16,leftTable:new e.Pointer(e.uint16,oa,{type:"parent"}),rightTable:new e.Pointer(e.uint16,oa,{type:"parent"}),array:new e.Pointer(e.uint16,uo,{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(eA){return eA.leftClassCount*eA.rightClassCount})}}),la=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:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._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:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}}),fo=new e.VersionedStruct(e.uint16,{0:{nTables:e.uint16,tables:new e.Array(la,"nTables")},1:{reserved:new e.Reserved(e.uint16),nTables:e.uint32,tables:new e.Array(la,"nTables")}}),ca=new e.Struct({version:e.uint16,numGlyphs:e.uint16,yPels:new e.Array(e.uint8,"numGlyphs")}),ho=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)}),Eo=new e.Struct({bCharSet:e.uint8,xRatio:e.uint8,yStartRatio:e.uint8,yEndRatio:e.uint8}),wo=new e.Struct({yPelHeight:e.uint16,yMax:e.int16,yMin:e.int16}),Co=new e.Struct({recs:e.uint16,startsz:e.uint8,endsz:e.uint8,entries:new e.Array(wo,"recs")}),Qo=new e.Struct({version:e.uint16,numRecs:e.uint16,numRatios:e.uint16,ratioRanges:new e.Array(Eo,"numRatios"),offsets:new e.Array(e.uint16,"numRatios"),groups:new e.Array(Co,"numRecs")}),Mo=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}),po=new e.Struct({advance:e.uint16,bearing:e.int16}),Io=new e.Struct({metrics:new e.LazyArray(po,function(eA){return eA.parent.vhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.vhea.numberOfMetrics})}),ga=new e.Fixed(16,"BE",14),mo=new e.Struct({fromCoord:ga,toCoord:ga}),vo=new e.Struct({pairCount:e.uint16,correspondence:new e.Array(mo,"pairCount")}),Do=new e.Struct({version:e.fixed32,axisCount:e.uint32,segment:new e.Array(vo,"axisCount")}),yo=function(){function eA(V,M,x){this.type=V,this.stream=M,this.parent=x,this.base=this.stream.pos,this._items=[]}var G=eA.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,"]")},eA}(),$n=function(eA){function G(M){return eA.call(this,M,0)||this}return h(G,eA),G.prototype.decode=function(x,P){return new yo(this.type,x,P)},G}(e.Array),ur=function(G){void 0===G&&(G=e.uint16),G=new(function(){function oA(iA){this.type=iA}var sA=oA.prototype;return sA.decode=function(NA,kA){return this.type.decode(NA,kA=kA.parent.parent)},sA.size=function(NA,kA){return this.type.size(NA,kA=kA.parent.parent)},sA.encode=function(NA,kA,gt){return this.type.encode(NA,kA,gt=gt.parent.parent)},oA}())(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}),P=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,values:new e.Pointer(e.uint16,new e.Array(G,function(oA){return oA.lastGlyph-oA.firstGlyph+1}),{type:"parent"})}),tA=new e.Struct({glyph:e.uint16,value:G});return new e.VersionedStruct(e.uint16,{0:{values:new $n(G)},2:{binarySearchHeader:M,segments:new e.Array(x,function(oA){return oA.binarySearchHeader.nUnits})},4:{binarySearchHeader:M,segments:new e.Array(P,function(oA){return oA.binarySearchHeader.nUnits})},6:{binarySearchHeader:M,segments:new e.Array(tA,function(oA){return oA.binarySearchHeader.nUnits})},8:{firstGlyph:e.uint16,count:e.uint16,values:new e.Array(G,"count")}})};function li(eA,G){void 0===eA&&(eA={}),void 0===G&&(G=e.uint16);var V=Object.assign({newState:e.uint16,flags:e.uint16},eA),M=new e.Struct(V),x=new $n(new e.Array(e.uint16,function(tA){return tA.nClasses}));return new e.Struct({nClasses:e.uint32,classTable:new e.Pointer(e.uint32,new ur(G)),stateArray:new e.Pointer(e.uint32,x),entryTable:new e.Pointer(e.uint32,new $n(M))})}var Fo=new e.VersionedStruct("format",{0:{deltas:new e.Array(e.int16,32)},1:{deltas:new e.Array(e.int16,32),mappingData:new ur(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 ur(e.uint16)}}),Ba=new e.Struct({version:e.fixed32,format:e.uint16,defaultBaseline:e.uint16,subtable:Fo}),Yo=new e.Struct({setting:e.uint16,nameIndex:e.int16,name:function(G){return G.parent.parent.parent.name.records.fontFeatures[G.nameIndex]}}),ua=new e.Struct({feature:e.uint16,nSettings:e.uint16,settingTable:new e.Pointer(e.uint32,new e.Array(Yo,"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]}}),Sr=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(ua,"featureNameCount")}),or=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]}}),pr=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(eA){return eA.parent.axisCount}),postscriptNameID:new e.Optional(e.uint16,function(eA){return eA.parent.instanceSize-eA._currentOffset>0})}),To=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(or,"axisCount"),instance:new e.Array(pr,"instanceCount")}),So=new e.Fixed(16,"BE",14),No=function(){function eA(){}return eA.decode=function(V,M){return M.flags?V.readUInt32BE():2*V.readUInt16BE()},eA}(),Uo=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(So,"axisCount"),"globalCoordCount")),glyphCount:e.uint16,flags:e.uint16,offsetToData:e.uint32,offsets:new e.Array(new e.Pointer(No,"void",{relativeTo:function(G){return G.offsetToData},allowNull:!1}),function(eA){return eA.glyphCount+1})}),Po=new e.Struct({length:e.uint16,coverage:e.uint16,subFeatureFlags:e.uint32,stateTable:new function xo(eA,G){void 0===eA&&(eA={}),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(sA){return(sA.newStateOffset-(sA.parent.stateArray.base-sA.parent._startOffset))/sA.parent.nClasses},flags:e.uint16},eA),x=new e.Struct(M),P=new $n(new e.Array(e.uint8,function(oA){return oA.nClasses}));return new e.Struct({nClasses:e.uint16,classTable:new e.Pointer(e.uint16,V),stateArray:new e.Pointer(e.uint16,P),entryTable:new e.Pointer(e.uint16,new $n(x))})}}),Ro=new e.Struct({justClass:e.uint32,beforeGrowLimit:e.fixed32,beforeShrinkLimit:e.fixed32,afterGrowLimit:e.fixed32,afterShrinkLimit:e.fixed32,growFlags:e.uint16,shrinkFlags:e.uint16}),zo=new e.Array(Ro,e.uint32),Lo=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}}),bo=new e.Struct({actionClass:e.uint16,actionType:e.uint16,actionLength:e.uint32,actionData:Lo,padding:new e.Reserved(e.uint8,function(eA){return eA.actionLength-eA._currentOffset})}),Go=new e.Array(bo,e.uint32),Ho=new e.Struct({lookupTable:new ur(new e.Pointer(e.uint16,Go))}),fa=new e.Struct({classTable:new e.Pointer(e.uint16,Po,{type:"parent"}),wdcOffset:e.uint16,postCompensationTable:new e.Pointer(e.uint16,Ho,{type:"parent"}),widthDeltaClusters:new ur(new e.Pointer(e.uint16,zo,{type:"parent",relativeTo:function(G){return G.wdcOffset}}))}),Jo=new e.Struct({version:e.uint32,format:e.uint16,horizontal:new e.Pointer(e.uint16,fa),vertical:new e.Pointer(e.uint16,fa)}),Oo={action:e.uint16},ko={markIndex:e.uint16,currentIndex:e.uint16},ha={currentInsertIndex:e.uint16,markedInsertIndex:e.uint16},jo=new e.Struct({items:new $n(new e.Pointer(e.uint32,new ur))}),Ko=new e.VersionedStruct("type",{0:{stateTable:new li},1:{stateTable:new li(ko),substitutionTable:new e.Pointer(e.uint32,jo)},2:{stateTable:new li(Oo),ligatureActions:new e.Pointer(e.uint32,new $n(e.uint32)),components:new e.Pointer(e.uint32,new $n(e.uint16)),ligatureList:new e.Pointer(e.uint32,new $n(e.uint16))},4:{lookupTable:new ur},5:{stateTable:new li(ha),insertionActions:new e.Pointer(e.uint32,new $n(e.uint16))}}),Vo=new e.Struct({length:e.uint32,coverage:e.uint24,type:e.uint8,subFeatureFlags:e.uint32,table:Ko,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}),Wo=new e.Struct({featureType:e.uint16,featureSetting:e.uint16,enableFlags:e.uint32,disableFlags:e.uint32}),Zo=new e.Struct({defaultFlags:e.uint32,chainLength:e.uint32,nFeatureEntries:e.uint32,nSubtables:e.uint32,features:new e.Array(Wo,"nFeatureEntries"),subtables:new e.Array(Vo,"nSubtables")}),Xo=new e.Struct({version:e.uint16,unused:new e.Reserved(e.uint16),nChains:e.uint32,chains:new e.Array(Zo,"nChains")}),qo=new e.Struct({left:e.int16,top:e.int16,right:e.int16,bottom:e.int16}),_o=new e.Struct({version:e.fixed32,format:e.uint16,lookupTable:new ur(qo)}),se={};se.cmap=yA,se.head=xA,se.hhea=_,se.hmtx=uA,se.maxp=QA,se.name=W,se["OS/2"]=vA,se.post=EA,se.fpgm=nt,se.loca=lt,se.prep=TA,se["cvt "]=GA,se.glyf=it,se["CFF "]=ne,se.CFF2=ne,se.VORG=Pt,se.EBLC=$e,se.CBLC=se.EBLC,se.sbix=an,se.COLR=qe,se.CPAL=cn,se.BASE=K,se.GDEF=Dt,se.GPOS=zr,se.GSUB=Lr,se.JSTF=Jr,se.HVAR=Li,se.DSIG=aa,se.gasp=lo,se.hdmx=go,se.kern=fo,se.LTSH=ca,se.PCLT=ho,se.VDMX=Qo,se.vhea=Mo,se.vmtx=Io,se.avar=Do,se.bsln=Ba,se.feat=Sr,se.fvar=To,se.gvar=Uo,se.just=Jo,se.morx=Xo,se.opbd=_o;var fr,$o=new e.Struct({tag:new e.String(4),checkSum:e.uint32,offset:new e.Pointer(e.uint32,"void",{type:"global"}),length:e.uint32}),ci=new e.Struct({tag:new e.String(4),numTables:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,tables:new e.Array($o,"numTables")});function gi(eA,G){for(var V=0,M=eA.length-1;V<=M;){var x=V+M>>1,P=G(eA[x]);if(P<0)M=x-1;else{if(!(P>0))return x;V=x+1}}return-1}function Nr(eA,G){for(var V=[];eA>1;if(MsA.endCode.get(kA))){var gt=sA.idRangeOffset.get(kA),_A=void 0;if(0===gt)_A=M+sA.idDelta.get(kA);else{var ut=gt/2+(M-sA.startCode.get(kA))-(sA.segCount-kA);0!==(_A=sA.glyphIndexArray.get(ut)||0)&&(_A+=sA.idDelta.get(kA))}return 65535&_A}iA=kA+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return sA.glyphIndices.get(M-sA.firstCode)||0;case 12:case 13:for(var pt=0,yt=sA.nGroups-1;pt<=yt;){var Gt=pt+yt>>1,$t=sA.groups.get(Gt);if(M<$t.startCharCode)yt=Gt-1;else{if(!(M>$t.endCharCode))return 12===sA.version?$t.glyphID+(M-$t.startCharCode):$t.glyphID;pt=Gt+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format ".concat(sA.version))}},G.getVariationSelector=function(M,x){if(!this.uvs)return 0;var P=this.uvs.varSelectors.toArray(),tA=gi(P,function(sA){return x-sA.varSelector}),oA=P[tA];return-1!==tA&&oA.defaultUVS&&(tA=gi(oA.defaultUVS,function(sA){return MsA.startUnicodeValue+sA.additionalCount?1:0})),-1!==tA&&oA.nonDefaultUVS&&-1!==(tA=gi(oA.nonDefaultUVS,function(sA){return M-sA.unicodeValue}))?oA.nonDefaultUVS[tA].glyphID:0},G.getCharacterSet=function(){var M=this.cmap;switch(M.version){case 0:return Nr(0,M.codeMap.length);case 4:for(var x=[],P=M.endCode.toArray(),tA=0;tA=_t.glyphID&&M<=_t.glyphID+(_t.endCharCode-_t.startCharCode)&&yt.push(_t.startCharCode+(M-_t.glyphID))}return yt;case 13:for(var we,ae=[],Be=g(x.groups.toArray());!(we=Be()).done;){var Ce=we.value;M===Ce.glyphID&&ae.push.apply(ae,Nr(Ce.startCharCode,Ce.endCharCode+1))}return ae;default:throw new Error("Unknown cmap format ".concat(x.version))}},eA}()).prototype,"getCharacterSet",[R],Object.getOwnPropertyDescriptor(fr.prototype,"getCharacterSet"),fr.prototype),F(fr.prototype,"codePointsForGlyph",[R],Object.getOwnPropertyDescriptor(fr.prototype,"codePointsForGlyph"),fr.prototype),fr),ui=function(){function eA(V){this.kern=V.kern}var G=eA.prototype;return G.process=function(M,x){for(var P=0;P=0&&(iA=NA.pairs[kA].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(sA.format))}sA.coverage.override?P=iA:P+=iA}}return P},eA}(),As=function(){function eA(V){this.font=V}var G=eA.prototype;return G.positionGlyphs=function(M,x){for(var P=0,tA=0,oA=0;oA1&&(sA.minX+=(oA.codePoints.length-1)*sA.width/oA.codePoints.length);for(var iA=-x[P].xAdvance,NA=0,kA=this.font.unitsPerEm/16,gt=P+1;gt<=tA;gt++){var _A=M[gt],ut=_A.cbox,pt=x[gt],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+=sA.minX-ut.width/2-ut.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":pt.xOffset+=sA.minX-ut.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":pt.xOffset+=sA.maxX-ut.width-ut.minX;break;default:pt.xOffset+=sA.minX+(sA.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)&&(sA.minY+=kA),pt.yOffset=-sA.minY-ut.maxY,sA.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)&&(sA.maxY+=kA),pt.yOffset=sA.maxY-ut.minY,sA.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},eA}(),Ur=function(){function eA(V,M,x,P){void 0===V&&(V=1/0),void 0===M&&(M=1/0),void 0===x&&(x=-1/0),void 0===P&&(P=-1/0),this.minX=V,this.minY=M,this.maxX=x,this.maxY=P}var G=eA.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 eA(this.minX,this.minY,this.maxX,this.maxY)},l(eA,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),eA}(),Pr={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"},Hi={};for(var Ji in Pr){var Oi=Pr[Ji];if(Array.isArray(Oi))for(var Ea,ts=g(Oi);!(Ea=ts()).done;)Hi[Ea.value]=Ji;else Hi[Oi]=Ji}var as={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 wa(eA){return as[eA]?"rtl":"ltr"}for(var os=function(){function eA(G,V,M,x,P){if(this.glyphs=G,this.positions=null,this.script=M,this.language=x||null,this.direction=P||wa(M),this.features={},Array.isArray(V))for(var oA,tA=g(V);!(oA=tA()).done;)this.features[oA.value]=!0;else"object"==typeof V&&(this.features=V)}return l(eA,[{key:"advanceWidth",get:function(){for(var x,V=0,M=g(this.positions);!(x=M()).done;)V+=x.value.xAdvance;return V}},{key:"advanceHeight",get:function(){for(var x,V=0,M=g(this.positions);!(x=M()).done;)V+=x.value.yAdvance;return V}},{key:"bbox",get:function(){for(var V=new Ur,M=0,x=0,P=0;P>1]).firstGlyph)return null;if(MoA.lastGlyph))return 2===this.table.version?oA.value:oA.values[M-oA.firstGlyph];x=tA+1}}return null;case 6:for(var sA=0,iA=this.table.binarySearchHeader.nUnits-1;sA<=iA;){var tA,oA;if(65535===(oA=this.table.segments[tA=sA+iA>>1]).glyph)return null;if(MoA.glyph))return oA.value;sA=tA+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 tA,P=g(this.table.segments);!(tA=P()).done;){var oA=tA.value;if(2===this.table.version&&oA.value===M)x.push.apply(x,Nr(oA.firstGlyph,oA.lastGlyph+1));else for(var sA=0;sA=-1;){var iA=null,NA=1,kA=!0;oA===M.length||-1===oA?NA=0:65535===(iA=M[oA]).id?NA=2:null==(NA=this.lookupTable.lookup(iA.id))&&(NA=1);var gt=this.stateTable.stateArray.getItem(tA),ut=this.stateTable.entryTable.getItem(gt[NA]);0!==NA&&2!==NA&&(P(iA,ut,oA),kA=!(16384&ut.flags)),tA=ut.newState,kA&&(oA+=sA)}return M},G.traverse=function(M,x,P){if(void 0===x&&(x=0),void 0===P&&(P=new Set),!P.has(x)){P.add(x);for(var tA=this.stateTable,oA=tA.nClasses,iA=tA.entryTable,NA=tA.stateArray.getItem(x),kA=4;kA=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 P=this.getStateMachine(M),tA=this.getProcessor();return P.process(this.glyphs,!!(4194304&this.subtable.coverage),tA)}this.processNoncontextualSubstitutions(this.subtable,this.glyphs)},G.getStateMachine=function(M){return new us(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,P){32768&x.flags&&(this.firstGlyph=P),8192&x.flags&&(this.lastGlyph=P),function Ds(eA,G,V,M){switch(G){case 0:return eA;case 1:return Un(eA,[V,1],[M,0]);case 2:return Un(eA,[V,0],[M,1]);case 3:return Un(eA,[V,1],[M,1]);case 4:return Un(eA,[V,2],[M,0]);case 5:return Un(eA,[V,2],[M,0],!0,!1);case 6:return Un(eA,[V,0],[M,2]);case 7:return Un(eA,[V,0],[M,2],!1,!0);case 8:return Un(eA,[V,1],[M,2]);case 9:return Un(eA,[V,1],[M,2],!1,!0);case 10:return Un(eA,[V,2],[M,1]);case 11:return Un(eA,[V,2],[M,1],!0,!1);case 12:return Un(eA,[V,2],[M,2]);case 13:return Un(eA,[V,2],[M,2],!0,!1);case 14:return Un(eA,[V,2],[M,2],!1,!0);case 15:return Un(eA,[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,P){var tA=this.subtable.table.substitutionTable.items;if(65535!==x.markIndex){var oA=tA.getItem(x.markIndex);(iA=new wi(oA).lookup((M=this.glyphs[this.markedGlyph]).id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(iA,M.codePoints))}if(65535!==x.currentIndex){var iA,NA=tA.getItem(x.currentIndex);(iA=new wi(NA).lookup((M=this.glyphs[P]).id))&&(this.glyphs[P]=this.font.getGlyph(iA,M.codePoints))}32768&x.flags&&(this.markedGlyph=P)},G.processLigature=function(M,x,P){if(32768&x.flags&&this.ligatureStack.push(P),8192&x.flags){for(var tA,oA=this.subtable.table.ligatureActions,sA=this.subtable.table.components,iA=this.subtable.table.ligatureList,NA=x.action,kA=!1,gt=0,_A=[],ut=[];!kA;){var pt,yt=this.ligatureStack.pop();(pt=_A).unshift.apply(pt,this.glyphs[yt].codePoints);var Gt=oA.getItem(NA++);kA=!!(2147483648&Gt);var $t=!!(1073741824&Gt),_t=(1073741823&Gt)<<2>>2;if(gt+=sA.getItem(_t+=this.glyphs[yt].id),kA||$t){var Be=iA.getItem(gt);this.glyphs[yt]=this.font.getGlyph(Be,_A),ut.push(yt),gt=0,_A=[]}else this.glyphs[yt]=this.font.getGlyph(65535)}(tA=this.ligatureStack).push.apply(tA,ut)}},G.processNoncontextualSubstitutions=function(M,x,P){var tA=new wi(M.table.lookupTable);for(P=0;P>>5,!!(1024&x.flags)),65535!==x.currentInsertIndex&&this._insertGlyphs(P,x.currentInsertIndex,(992&x.flags)>>>5,!!(2048&x.flags))},G.getSupportedFeatures=function(){for(var P,M=[],x=g(this.morx.chains);!(P=x()).done;)for(var sA,oA=g(P.value.features);!(sA=oA()).done;){var iA=sA.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=g(this.morx.chains);!(x=M()).done;)for(var sA,P=x.value,tA=P.defaultFlags,oA=g(P.subtables);!(sA=oA()).done;){var iA=sA.value;iA.subFeatureFlags&tA&&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 tA=this.getStateMachine(M),oA=this.getProcessor(),sA=[],iA=[];this.glyphs=[],tA.traverse({enter:function(kA,gt){var _A=x.glyphs;iA.push({glyphs:_A.slice(),ligatureStack:x.ligatureStack.slice()});var ut=x.font.getGlyph(kA);sA.push(ut),_A.push(sA[sA.length-1]),oA(_A[_A.length-1],gt,_A.length-1);for(var pt=0,yt=0,Gt=0;Gt<_A.length&&pt<=1;Gt++)65535!==_A[Gt].id&&(pt++,yt=_A[Gt].id);if(1===pt){var $t=sA.map(function(ae){return ae.id}),_t=x.inputCache[yt];_t?_t.push($t):x.inputCache[yt]=[$t]}},exit:function(){var kA=iA.pop();x.glyphs=kA.glyphs,x.ligatureStack=kA.ligatureStack,sA.pop()}})}},eA}()).prototype,"getStateMachine",[R],Object.getOwnPropertyDescriptor(jr.prototype,"getStateMachine"),jr.prototype),jr);function Un(eA,G,V,M,x){void 0===M&&(M=!1),void 0===x&&(x=!1);var P=eA.splice(V[0]-(V[1]-1),V[1]);x&&P.reverse();var tA=eA.splice.apply(eA,[G[0],G[1]].concat(P));return M&&tA.reverse(),eA.splice.apply(eA,[V[0]-(G[1]-1),0].concat(tA)),eA}var ys=function(){function eA(V){this.font=V,this.morxProcessor=new vs(V),this.fallbackPosition=!1}var G=eA.prototype;return G.substitute=function(M){"rtl"===M.direction&&M.glyphs.reverse(),this.morxProcessor.process(M.glyphs,function ls(eA){var G={};for(var V in eA){var M;(M=fi[V])&&(null==G[M[0]]&&(G[M[0]]={}),G[M[0]][M[1]]=eA[V])}return G}(M.features))},G.getAvailableFeatures=function(M,x){return function cs(eA){var G={};if(Array.isArray(eA))for(var V=0;V0&&M.applyFeatures(sA,x,P)}},eA}(),Fs=["rvrn"],Ys=["ccmp","locl","rlig","mark","mkmk"],Ts=["frac","numr","dnom"],Ss=["calt","clig","liga","rclt","curs","kern"],Ns={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},hr=function(){function eA(){}return eA.plan=function(V,M,x){this.planPreprocessing(V),this.planFeatures(V),this.planPostprocessing(V,x),V.assignGlobalFeatures(M),this.assignFeatures(V,M)},eA.planPreprocessing=function(V){V.add({global:[].concat(Fs,Ns[V.direction]),local:Ts})},eA.planFeatures=function(V){},eA.planPostprocessing=function(V,M){V.add([].concat(Ys,Ss)),V.setFeatureOverrides(M)},eA.assignFeatures=function(V,M){for(var x=0;x0&&w.isDigit(M[tA-1].codePoints[0]);)M[tA-1].features.numr=!0,M[tA-1].features.frac=!0,tA--;for(;oAthis.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,P=this.increment(M);return this.index=x,P},G.peekIndex=function(M){void 0===M&&(M=1);var x=this.index;this.increment(M);var P=this.index;return this.index=x,P},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(eA,[{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),eA}(),bs=["DFLT","dflt","latn"],Cr=function(){function eA(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=eA.prototype;return G.findScript=function(M){if(null==this.table.scriptList)return null;Array.isArray(M)||(M=[M]);for(var P,x=g(M);!(P=x()).done;)for(var sA,tA=P.value,oA=g(this.table.scriptList);!(sA=oA()).done;){var iA=sA.value;if(iA.tag===tA)return iA}return null},G.selectScript=function(M,x,P){var oA,tA=!1;if(!this.script||M!==this.scriptTag){if((oA=this.findScript(M))||(oA=this.findScript(bs)),!oA)return this.scriptTag;this.scriptTag=oA.tag,this.script=oA.script,this.language=null,this.languageTag=null,tA=!0}if((!P||P!==this.direction)&&(this.direction=P||wa(M)),x&&x.length<4&&(x+=" ".repeat(4-x.length)),!x||x!==this.languageTag){this.language=null;for(var iA,sA=g(this.script.langSysRecords);!(iA=sA()).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),tA=!0}if(tA&&(this.features={},this.language))for(var gt,kA=g(this.language.featureIndexes);!(gt=kA()).done;){var _A=gt.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 oA,P=[],tA=g(M);!(oA=tA()).done;){var sA=oA.value,iA=this.features[sA];if(iA)for(var kA,NA=g(iA.lookupListIndexes);!(kA=NA()).done;){var gt=kA.value;x&&-1!==x.indexOf(gt)||P.push({feature:sA,index:gt,lookup:this.table.lookupList.get(gt)})}}return P.sort(function(_A,ut){return _A.index-ut.index}),P},G.substituteFeatureForVariations=function(M){if(-1===this.variationsIndex)return null;for(var oA,tA=g(this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions);!(oA=tA()).done;){var sA=oA.value;if(sA.featureIndex===M)return sA.alternateFeatureTable}return null},G.findVariationsIndex=function(M){var x=this.table.featureVariations;if(!x)return-1;for(var P=x.featureVariationRecords,tA=0;tA=0})},G.getClassID=function(M,x){switch(x.version){case 1:var P=M-x.startGlyph;if(P>=0&&P0&&this.codePoints.every(w.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}}]),eA}(),Da=function(eA){function G(){return eA.apply(this,arguments)||this}return h(G,eA),G.planFeatures=function(M){M.add(["ljmo","vjmo","tjmo"],!1)},G.assignFeatures=function(M,x){for(var P=0,tA=0;tAvr){var gt=Zr(V,tA,M.features);gt.features.tjmo=!0,kA.push(gt)}return eA.splice.apply(eA,[G,1].concat(kA)),G+kA.length-1}function n0(eA,G,V){var sA,iA,NA,kA,M=eA[G],P=Wr(eA[G].codePoints[0]),tA=eA[G-1].codePoints[0],oA=Wr(tA);if(4===oA&&3===P)sA=tA,kA=M;else{2===P?(iA=eA[G-1],NA=M):(iA=eA[G-2],NA=eA[G-1],kA=M);var gt=iA.codePoints[0],_A=NA.codePoints[0];(function(G){return 4352<=G&&G<=4370})(gt)&&function(G){return 4449<=G&&G<=4469}(_A)&&(sA=Rr+28*(21*(gt-4352)+(_A-4449)))}var ut=kA&&kA.codePoints[0]||vr;if(null!=sA&&(ut===vr||function(G){return 1<=G&&G<=4546}(ut))){var pt=sA+(ut-vr);if(V.hasGlyphForCodePoint(pt)){var yt=2===oA?3:2;return eA.splice(G-yt+1,yt,Zr(V,pt,M.features)),G-yt+1}}return iA&&(iA.features.ljmo=!0),NA&&(NA.features.vjmo=!0),kA&&(kA.features.tjmo=!0),4===oA?(Ta(eA,G-1,V),G+1):G}function i0(eA,G,V){var M=eA[G];if(0!==V.glyphForCodePoint(eA[G].codePoints[0]).advanceWidth){var tA=function r0(eA){switch(Wr(eA)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(eA[G-1].codePoints[0]);return eA.splice(G,1),eA.splice(G-tA,0,M)}}function a0(eA,G,V){var M=eA[G],x=eA[G].codePoints[0];if(V.hasGlyphForCodePoint(9676)){var P=Zr(V,9676,M.features),tA=0===V.glyphForCodePoint(x).advanceWidth?G:G+1;eA.splice(tA,0,P),G++}return G}var xi={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,ee={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},E0=2|Ie_Ra|Ie_CM|4|2048|4096,Sa=Ie_ZWJ|Ie_ZWNJ,Xr=Ie_H|16384,Na={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:ee.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:ee.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:ee.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:ee.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:ee.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:ee.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},w0={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},C0=xi.decompositions,Ua=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")),Q0=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"]]}),hn=function(eA){function G(){return eA.apply(this,arguments)||this}return h(G,eA),G.planFeatures=function(M){M.addStage(d0),M.addStage(["locl","ccmp"]),M.addStage(p0),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(I0),M.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),M.unicodeScript=function ns(eA){return Hi[eA]}(M.script),M.indicConfig=Na[M.unicodeScript]||Na.Default,M.isOldSpec=M.indicConfig.hasOldSpec&&"2"!==M.script[M.script.length-1]},G.assignFeatures=function(M,x){for(var P=function(sA){var iA=x[sA].codePoints[0],NA=w0[iA]||C0[iA];if(NA){var kA=NA.map(function(gt){var _A=M.font.glyphForCodePoint(gt);return new sr(M.font,_A.id,[gt],x[sA].features)});x.splice.apply(x,[sA,1].concat(kA))}},tA=x.length-1;tA>=0;tA--)P(tA)},G}(hr);function Wi(eA){return Ua.get(eA.codePoints[0])>>8}function Zi(eA){return 1<<(255&Ua.get(eA.codePoints[0]))}T(hn,"zeroMarkWidths","NONE");var Fi=function(G,V,M,x){this.category=G,this.position=V,this.syllableType=M,this.syllable=x};function d0(eA,G){for(var P,V=0,M=0,x=g(Q0.match(G.map(Wi)));!(P=x()).done;){var tA=P.value,oA=tA[0],sA=tA[1],iA=tA[2];if(oA>M){++V;for(var NA=M;NAGt);break;case"First":for(var Ce=(yt=iA)+1;CeWe&&!(Dr(G[Oe])||ln&&G[Oe].shaperInfo.category===Ie_H);Oe--);if(G[Oe].shaperInfo.category!==Ie_H&&Oe>We){var he=G[We];G.splice.apply(G,[We,0].concat(G.splice(We+1,Oe-We))),G[Oe]=he}break}for(var _e=ee.Start,Ue=iA;UeiA;An--)if(G[An-1].shaperInfo.position!==ee.Pre_M){Fe.position=G[An-1].shaperInfo.position;break}}else Fe.position!==ee.SMVD&&(_e=Fe.position)}for(var zn=yt,gn=yt+1;gniA&&!Dr(G[Ln]))}}}}function I0(eA,G,V){for(var M=V.indicConfig,x=eA._layoutEngine.engine.GSUBProcessor.features,P=0,tA=Yi(G,0);P=ee.Base_C){if(oA&&sA+1ee.Base_C&&sA--;break}if(sA===tA&&PP&&!(G[kA].shaperInfo.category&(Ie_M|Xr));)kA--;er(G[kA])&&G[kA].shaperInfo.position!==ee.Pre_M?kA+1P;gt--)if(G[gt-1].shaperInfo.position===ee.Pre_M){var _A=gt-1;_AP&&G[pt].shaperInfo.position===ee.SMVD;)pt--;if(er(G[pt]))for(var $t=sA+1;$tP&&!(G[Be-1].shaperInfo.category&(Ie_M|Xr));)Be--;if(Be>P&&G[Be-1].shaperInfo.category===Ie_M)for(var we=ae,Ce=sA+1;CeP&&er(G[Be-1])&&Be=eA.length)return G;for(var V=eA[G].shaperInfo.syllable;++G=0;tA--)P(tA)},G}(hr);function Ra(eA){return v0.get(eA.codePoints[0])}T(de,"zeroMarkWidths","BEFORE_GPOS");var y0=function(G,V,M){this.category=G,this.syllableType=V,this.syllable=M};function x0(eA,G){for(var x,V=0,M=g(D0.match(G.map(Ra)));!(x=M()).done;){var P=x.value,tA=P[0],oA=P[1],sA=P[2];++V;for(var iA=tA;iA<=oA;iA++)G[iA].shaperInfo=new y0(m0[Ra(G[iA])],sA[0],V);for(var NA="R"===G[tA].shaperInfo.category?1:Math.min(3,oA-tA),kA=tA;kA1)for(P=M+1;P=eA.length)return G;for(var V=eA[G].shaperInfo.syllable;++G=0;Hn--)this.glyphs.splice(Be[Hn],1);return this.glyphs[this.glyphIterator.index]=le,!0}}return!1;case 5:return this.applyContext(P);case 6:return this.applyChainingContext(P);case 7:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("GSUB lookupType ".concat(x," is not supported"))}},G}(Cr),P0=function(eA){function G(){return eA.apply(this,arguments)||this}h(G,eA);var V=G.prototype;return V.applyPositionValue=function(x,P){var tA=this.positions[this.glyphIterator.peekIndex(x)];null!=P.xAdvance&&(tA.xAdvance+=P.xAdvance),null!=P.yAdvance&&(tA.yAdvance+=P.yAdvance),null!=P.xPlacement&&(tA.xOffset+=P.xPlacement),null!=P.yPlacement&&(tA.yOffset+=P.yPlacement);var oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;oA&&sA&&(P.xPlaDevice&&(tA.xOffset+=oA.getDelta(sA,P.xPlaDevice.a,P.xPlaDevice.b)),P.yPlaDevice&&(tA.yOffset+=oA.getDelta(sA,P.yPlaDevice.a,P.yPlaDevice.b)),P.xAdvDevice&&(tA.xAdvance+=oA.getDelta(sA,P.xAdvDevice.a,P.xAdvDevice.b)),P.yAdvDevice&&(tA.yAdvance+=oA.getDelta(sA,P.yAdvDevice.a,P.yAdvDevice.b)))},V.applyLookup=function(x,P){switch(x){case 1:var tA=this.coverageIndex(P.coverage);if(-1===tA)return!1;switch(P.version){case 1:this.applyPositionValue(0,P.value);break;case 2:this.applyPositionValue(0,P.values.get(tA))}return!0;case 2:var oA=this.glyphIterator.peek();if(!oA)return!1;var sA=this.coverageIndex(P.coverage);if(-1===sA)return!1;switch(P.version){case 1:for(var kA,NA=g(P.pairSets.get(sA));!(kA=NA()).done;){var gt=kA.value;if(gt.secondGlyph===oA.id)return this.applyPositionValue(0,gt.value1),this.applyPositionValue(1,gt.value2),!0}return!1;case 2:var _A=this.getClassID(this.glyphIterator.cur.id,P.classDef1),ut=this.getClassID(oA.id,P.classDef2);if(-1===_A||-1===ut)return!1;var pt=P.classRecords.get(_A).get(ut);return this.applyPositionValue(0,pt.value1),this.applyPositionValue(1,pt.value2),!0}case 3:var yt=this.glyphIterator.peekIndex(),Gt=this.glyphs[yt];if(!Gt)return!1;var $t=P.entryExitRecords[this.coverageIndex(P.coverage)];if(!$t||!$t.exitAnchor)return!1;var _t=P.entryExitRecords[this.coverageIndex(P.coverage,Gt.id)];if(!_t||!_t.entryAnchor)return!1;var ae=this.getAnchor(_t.entryAnchor),Be=this.getAnchor($t.exitAnchor),we=this.positions[this.glyphIterator.index],Ce=this.positions[yt];switch(this.direction){case"ltr":we.xAdvance=Be.x+we.xOffset;var He=ae.x+Ce.xOffset;Ce.xAdvance-=He,Ce.xOffset-=He;break;case"rtl":we.xAdvance-=He=Be.x+we.xOffset,we.xOffset-=He,Ce.xAdvance=ae.x+Ce.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=yt,we.yOffset=ae.y-Be.y):(Gt.cursiveAttachment=this.glyphIterator.index,we.yOffset=Be.y-ae.y),!0;case 4:var sn=this.coverageIndex(P.markCoverage);if(-1===sn)return!1;for(var Je=this.glyphIterator.index;--Je>=0&&(this.glyphs[Je].isMark||this.glyphs[Je].ligatureComponent>0););if(Je<0)return!1;var le=this.coverageIndex(P.baseCoverage,this.glyphs[Je].id);if(-1===le)return!1;var ln=P.markArray[sn];return this.applyAnchor(ln,P.baseArray[le][ln.class],Je),!0;case 5:var Oe=this.coverageIndex(P.markCoverage);if(-1===Oe)return!1;for(var he=this.glyphIterator.index;--he>=0&&this.glyphs[he].isMark;);if(he<0)return!1;var _e=this.coverageIndex(P.ligatureCoverage,this.glyphs[he].id);if(-1===_e)return!1;var Ue=P.ligatureArray[_e],Fe=this.glyphIterator.cur,An=this.glyphs[he],zn=An.ligatureID&&An.ligatureID===Fe.ligatureID&&Fe.ligatureComponent>0?Math.min(Fe.ligatureComponent,An.codePoints.length)-1:An.codePoints.length-1,gn=P.markArray[Oe];return this.applyAnchor(gn,Ue[zn][gn.class],he),!0;case 6:var Hn=this.coverageIndex(P.mark1Coverage);if(-1===Hn)return!1;var On=this.glyphIterator.peekIndex(-1),mn=this.glyphs[On];if(!mn||!mn.isMark)return!1;var Qn=this.glyphIterator.cur,kn=!1;if(Qn.ligatureID===mn.ligatureID?Qn.ligatureID?Qn.ligatureComponent===mn.ligatureComponent&&(kn=!0):kn=!0:(Qn.ligatureID&&!Qn.ligatureComponent||mn.ligatureID&&!mn.ligatureComponent)&&(kn=!0),!kn)return!1;var jn=this.coverageIndex(P.mark2Coverage,mn.id);if(-1===jn)return!1;var me=P.mark1Array[Hn];return this.applyAnchor(me,P.mark2Array[jn][me.class],On),!0;case 7:return this.applyContext(P);case 8:return this.applyChainingContext(P);case 9:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("Unsupported GPOS table: ".concat(x))}},V.applyAnchor=function(x,P,tA){var oA=this.getAnchor(P),sA=this.getAnchor(x.markAnchor),NA=this.positions[this.glyphIterator.index];NA.xOffset=oA.x-sA.x,NA.yOffset=oA.y-sA.y,this.glyphIterator.cur.markAttachment=tA},V.getAnchor=function(x){var P=x.xCoordinate,tA=x.yCoordinate,oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;return oA&&sA&&(x.xDeviceTable&&(P+=oA.getDelta(sA,x.xDeviceTable.a,x.xDeviceTable.b)),x.yDeviceTable&&(tA+=oA.getDelta(sA,x.yDeviceTable.a,x.yDeviceTable.b))),{x:P,y:tA}},V.applyFeatures=function(x,P,tA){eA.prototype.applyFeatures.call(this,x,P,tA);for(var oA=0;oA>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 P=[];return this.engine&&P.push.apply(P,this.engine.getAvailableFeatures(M,x)),this.font.kern&&-1===P.indexOf("kern")&&P.push("kern"),P},G.stringsForGlyph=function(M){for(var oA,x=new Set,tA=g(this.font._cmapProcessor.codePointsForGlyph(M));!(oA=tA()).done;)x.add(String.fromCodePoint(oA.value));if(this.engine&&this.engine.stringsForGlyph)for(var NA,iA=g(this.engine.stringsForGlyph(M));!(NA=iA()).done;)x.add(NA.value);return Array.from(x)},eA}(),L0={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Si=function(){function eA(){this.commands=[],this._bbox=null,this._cbox=null}var G=eA.prototype;return G.toFunction=function(){var M=this;return function(x){M.commands.forEach(function(P){return x[P.command].apply(x,P.args)})}},G.toSVG=function(){return this.commands.map(function(x){var P=x.args.map(function(tA){return Math.round(100*tA)/100});return"".concat(L0[x.command]).concat(P.join(" "))}).join("")},G.mapPoints=function(M){for(var tA,x=new eA,P=g(this.commands);!(tA=P()).done;){for(var oA=tA.value,sA=[],iA=0;iA0&&this.codePoints.every(w.isMark),this.isLigature=this.codePoints.length>1}var G=eA.prototype;return G._getPath=function(){return new Si},G._getCBox=function(){return this.path.cbox},G._getBBox=function(){return this.path.bbox},G._getTableMetrics=function(M){if(this.id0)sA=Math.abs(NA.typoAscender-NA.typoDescender),iA=NA.typoAscender-M.maxY;else{var kA=this._font.hhea;sA=Math.abs(kA.ascent-kA.descent),iA=kA.ascent-M.maxY}return this._font._variationProcessor&&this._font.HVAR&&(P+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:P,advanceHeight:sA,leftBearing:tA,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 qr[this.id];case 2:var x=M.glyphNameIndex[this.id];return x0?this._decodeSimple(sA,tA):sA.numberOfContours<0&&this._decodeComposite(sA,tA,oA),sA},V._decodeSimple=function(x,P){x.points=[];var tA=new e.Array(e.uint16,x.numberOfContours).decode(P);x.instructions=new e.Array(e.uint8,e.uint16).decode(P);for(var oA=[],sA=tA[tA.length-1]+1;oA.length=0,0,0);x.points.push(_A)}var ut=0;for(gt=0;gt>1,iA.length=0}function ln(Oe,he){Gt&&sA.closePath(),sA.moveTo(Oe,he),Gt=!0}return function Oe(){for(;P.pos1&&Je(),ut+=iA.shift(),ln(_A,ut);break;case 5:for(;iA.length>=2;)_A+=iA.shift(),ut+=iA.shift(),sA.lineTo(_A,ut);break;case 6:case 7:for(var _e=6===he;iA.length>=1;)_e?_A+=iA.shift():ut+=iA.shift(),sA.lineTo(_A,ut),_e=!_e;break;case 8:for(;iA.length>0;){var me=_A+iA.shift(),Pe=ut+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift();_A=Ye+iA.shift(),ut=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,_A,ut)}break;case 10:var Ue=iA.pop()+we,Fe=Be[Ue];if(Fe){yt[Ue]=!0;var An=P.pos,zn=oA;P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=An,oA=zn}break;case 11:if(x.version>=2)break;return;case 14:if(x.version>=2)break;iA.length>0&&Je(),Gt&&(sA.closePath(),Gt=!1);break;case 15:if(x.version<2)throw new Error("vsindex operator not supported in CFF v1");He=iA.pop();break;case 16:if(x.version<2)throw new Error("blend operator not supported in CFF v1");if(!sn)throw new Error("blend operator in non-variation font");for(var gn=sn.getBlendVector(Ce,He),pn=iA.pop(),Hn=pn*gn.length,On=iA.length-Hn,mn=On-pn,Qn=0;Qn>3;break;case 21:iA.length>2&&Je(),_A+=iA.shift(),ut+=iA.shift(),ln(_A,ut);break;case 22:iA.length>1&&Je(),ln(_A+=iA.shift(),ut);break;case 24:for(;iA.length>=8;)me=_A+iA.shift(),Pe=ut+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),_A=Ye+iA.shift(),ut=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,_A,ut);_A+=iA.shift(),ut+=iA.shift(),sA.lineTo(_A,ut);break;case 25:for(;iA.length>=8;)_A+=iA.shift(),ut+=iA.shift(),sA.lineTo(_A,ut);me=_A+iA.shift(),Pe=ut+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),_A=Ye+iA.shift(),ut=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,_A,ut);break;case 26:for(iA.length%2&&(_A+=iA.shift());iA.length>=4;)me=_A,Pe=ut+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),_A=Ye,ut=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,_A,ut);break;case 27:for(iA.length%2&&(ut+=iA.shift());iA.length>=4;)me=_A+iA.shift(),Pe=ut,Ye=me+iA.shift(),Ze=Pe+iA.shift(),_A=Ye+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,_A,ut=Ze);break;case 28:iA.push(P.readInt16BE());break;case 29:Ue=iA.pop()+_t,(Fe=$t[Ue])&&(pt[Ue]=!0,An=P.pos,zn=oA,P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=An,oA=zn);break;case 30:case 31:for(_e=31===he;iA.length>=4;)_e?(me=_A+iA.shift(),Pe=ut,Ye=me+iA.shift(),Ze=Pe+iA.shift(),ut=Ze+iA.shift(),_A=Ye+(1===iA.length?iA.shift():0)):(me=_A,Pe=ut+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),_A=Ye+iA.shift(),ut=Ze+(1===iA.length?iA.shift():0)),sA.bezierCurveTo(me,Pe,Ye,Ze,_A,ut),_e=!_e;break;case 12:switch(he=P.readUInt8()){case 3:var ke=iA.pop(),Bn=iA.pop();iA.push(ke&&Bn?1:0);break;case 4:ke=iA.pop(),Bn=iA.pop(),iA.push(ke||Bn?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(),Bn=iA.pop(),iA.push(ke+Bn);break;case 11:ke=iA.pop(),Bn=iA.pop(),iA.push(ke-Bn);break;case 12:ke=iA.pop(),Bn=iA.pop(),iA.push(ke/Bn);break;case 14:ke=iA.pop(),iA.push(-ke);break;case 15:ke=iA.pop(),Bn=iA.pop(),iA.push(ke===Bn?1:0);break;case 18:iA.pop();break;case 20:var $i=iA.pop(),Ln=iA.pop();NA[Ln]=$i;break;case 21:Ln=iA.pop(),iA.push(NA[Ln]||0);break;case 22:var Aa=iA.pop(),ta=iA.pop(),Ll=iA.pop(),bl=iA.pop();iA.push(Ll<=bl?Aa:ta);break;case 23:iA.push(Math.random());break;case 24:ke=iA.pop(),Bn=iA.pop(),iA.push(ke*Bn);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(),Bn=iA.pop(),iA.push(Bn,ke);break;case 29:(Ln=iA.pop())<0?Ln=0:Ln>iA.length-1&&(Ln=iA.length-1),iA.push(iA[Ln]);break;case 30:var Pi=iA.pop(),_r=iA.pop();if(_r>=0)for(;_r>0;){for(var ea=iA[Pi-1],Ri=Pi-2;Ri>=0;Ri--)iA[Ri+1]=iA[Ri];iA[0]=ea,_r--}else for(;_r<0;){ea=iA[0];for(var zi=0;zi<=Pi;zi++)iA[zi]=iA[zi+1];iA[Pi-1]=ea,_r++}break;case 34:me=_A+iA.shift(),Pe=ut,Ye=me+iA.shift(),Ze=Pe+iA.shift();var $r=Ye+iA.shift(),Ai=Ze,ti=$r+iA.shift(),ei=Ai,ni=ti+iA.shift(),ri=ei,ii=ni+iA.shift(),ai=ri;_A=ii,ut=ai,sA.bezierCurveTo(me,Pe,Ye,Ze,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 35:for(var Qr=[],no=0;no<=5;no++)_A+=iA.shift(),ut+=iA.shift(),Qr.push(_A,ut);sA.bezierCurveTo.apply(sA,Qr.slice(0,6)),sA.bezierCurveTo.apply(sA,Qr.slice(6)),iA.shift();break;case 36:me=_A+iA.shift(),Pe=ut+iA.shift(),Ye=me+iA.shift(),ei=Ai=Ze=Pe+iA.shift(),ni=(ti=($r=Ye+iA.shift())+iA.shift())+iA.shift(),ri=ei+iA.shift(),ii=ni+iA.shift(),_A=ii,ut=ai=ri,sA.bezierCurveTo(me,Pe,Ye,Ze,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 37:var na=_A,ro=ut;Qr=[];for(var io=0;io<=4;io++)_A+=iA.shift(),ut+=iA.shift(),Qr.push(_A,ut);Math.abs(_A-na)>Math.abs(ut-ro)?(_A+=iA.shift(),ut=ro):(_A=na,ut+=iA.shift()),Qr.push(_A,ut),sA.bezierCurveTo.apply(sA,Qr.slice(0,6)),sA.bezierCurveTo.apply(sA,Qr.slice(6));break;default:throw new Error("Unknown op: 12 ".concat(he))}break;default:throw new Error("Unknown op: ".concat(he))}else if(he<247)iA.push(he-139);else if(he<251){var ra=P.readUInt8();iA.push(256*(he-247)+ra+108)}else he<255?(ra=P.readUInt8(),iA.push(256*-(he-251)-ra-108)):iA.push(P.readInt32BE()/65536)}}(),Gt&&sA.closePath(),sA},G}(Ni),Al=new e.Struct({originX:e.uint16,originY:e.uint16,type:new e.String(4),data:new e.Buffer(function(eA){return eA.parent.buflen-eA._currentOffset})}),tl=function(eA){function G(){return eA.apply(this,arguments)||this}h(G,eA);var V=G.prototype;return V.getImageForSize=function(x){for(var P=0;P=x)break}var oA=tA.imageOffsets,sA=oA[this.id],iA=oA[this.id+1];return sA===iA?null:(this._font.stream.pos=sA,Al.decode(this._font.stream,{buflen:iA-sA}))},V.render=function(x,P){var tA=this.getImageForSize(P);null!=tA&&x.image(tA.data,{height:P,x:tA.originX,y:P/this._font.unitsPerEm*(this.bbox.minY-tA.originY)}),this._font.sbix.flags.renderOutlines&&eA.prototype.render.call(this,x,P)},G}(Ui),Oa=function(G,V){this.glyph=G,this.color=V},el=function(eA){function G(){return eA.apply(this,arguments)||this}h(G,eA);var V=G.prototype;return V._getBBox=function(){for(var x=new Ur,P=0;P>1;if(this.id<(iA=P.baseGlyphRecord[sA]).gid)oA=sA-1;else{if(!(this.id>iA.gid)){var NA=iA;break}tA=sA+1}}if(null==NA){var kA=this._font._getBaseGlyph(this.id);return[new Oa(kA,gt={red:0,green:0,blue:0,alpha:255})]}for(var _A=[],ut=NA.firstLayerIndex;ut=1&&x[P]=P.glyphCount)){var tA=P.offsets[M];if(tA!==P.offsets[M+1]){var oA=this.font.stream;if(oA.pos=tA,!(oA.pos>=oA.length)){var sA=oA.readUInt16BE(),iA=tA+oA.readUInt16BE();if(32768&sA){var NA=oA.pos;oA.pos=iA;var kA=this.decodePoints();iA=oA.pos,oA.pos=NA}var gt=x.map(function(gn){return gn.copy()});sA&=4095;for(var _A=0;_A=P.globalCoordCount)throw new Error("Invalid gvar table");yt=P.globalCoords[4095&pt]}if(16384&pt){for(var $t=[],_t=0;_tMath.max(0,x[NA]))return 0;iA=(iA*oA[NA]+Number.EPSILON)/(x[NA]+Number.EPSILON)}else{if(oA[NA]tA[NA])return 0;iA=oA[NA]sA)){var NA=tA,kA=tA;for(tA++;tA<=sA;)P[tA]&&(this.deltaInterpolate(kA+1,tA-1,kA,tA,x,M),kA=tA),tA++;kA===NA?this.deltaShift(oA,sA,kA,x,M):(this.deltaInterpolate(kA+1,sA,kA,NA,x,M),NA>0&&this.deltaInterpolate(oA,NA-1,kA,NA,x,M)),tA=sA+1}}},G.deltaInterpolate=function(M,x,P,tA,oA,sA){if(!(M>x))for(var iA=["x","y"],NA=0;NAoA[tA][kA]){var gt=P;P=tA,tA=gt}var _A=oA[P][kA],ut=oA[tA][kA],pt=sA[P][kA],yt=sA[tA][kA];if(_A!==ut||pt===yt)for(var Gt=_A===ut?0:(yt-pt)/(ut-_A),$t=M;$t<=x;$t++){var _t=oA[$t][kA];_t<=_A?_t+=pt-_A:_t>=ut?_t+=yt-ut:_t=pt+(_t-_A)*Gt,sA[$t][kA]=_t}}},G.deltaShift=function(M,x,P,tA,oA){var sA=oA[P].x-tA[P].x,iA=oA[P].y-tA[P].y;if(0!==sA||0!==iA)for(var NA=M;NA<=x;NA++)NA!==P&&(oA[NA].x+=sA,oA[NA].y+=iA)},G.getAdvanceAdjustment=function(M,x){var P,tA;if(x.advanceWidthMapping){var oA=M;oA>=x.advanceWidthMapping.mapCount&&(oA=x.advanceWidthMapping.mapCount-1);var iA=x.advanceWidthMapping.mapData[oA];P=iA.outerIndex,tA=iA.innerIndex}else P=0,tA=M;return this.getDelta(x.itemVariationStore,P,tA)},G.getDelta=function(M,x,P){if(x>=M.itemVariationData.length)return 0;var tA=M.itemVariationData[x];if(P>=tA.deltaSets.length)return 0;for(var oA=tA.deltaSets[P],sA=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:tA[gt]<_A.startCoord||tA[gt]>_A.endCoord?0:tA[gt]===_A.peakCoord?1:tA[gt]<_A.peakCoord?(tA[gt]-_A.startCoord+Number.EPSILON)/(_A.peakCoord-_A.startCoord+Number.EPSILON):(_A.endCoord-tA[gt]+Number.EPSILON)/(_A.endCoord-_A.peakCoord+Number.EPSILON)}oA[sA]=iA}return this.blendVectors.set(P,oA),oA},eA}(),gl=Promise.resolve(),Wa=function(){function eA(V){this.font=V,this.glyphs=[],this.mapping={},this.includeGlyph(0)}var G=eA.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 gl.then(function(){return M.encode(x),x.end()}),x},eA}(),Za=function(){function eA(){}return eA.size=function(V){return V>=0&&V<=255?1:2},eA.encode=function(V,M){M>=0&&M<=255?V.writeUInt8(M):V.writeInt16BE(M)},eA}(),Xa=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(Za,0),yPoints:new e.Array(Za,0)}),Cl=function(){function eA(){}var G=eA.prototype;return G.encodeSimple=function(M,x){void 0===x&&(x=[]);for(var P=[],tA=[],oA=[],sA=[],iA=0,NA=0,kA=0,gt=0,_A=0,ut=0;ut0&&(sA.push(iA),iA=0),sA.push(_t),gt=_t),NA=Gt,kA=$t,_A++}"closePath"===pt.command&&P.push(_A-1)}M.commands.length>1&&"closePath"!==M.commands[M.commands.length-1].command&&P.push(_A-1);var Ce=M.bbox,He={numberOfContours:P.length,xMin:Ce.minX,yMin:Ce.minY,xMax:Ce.maxX,yMax:Ce.maxY,endPtsOfContours:P,instructions:x,flags:sA,xPoints:tA,yPoints:oA},sn=Xa.size(He),Je=4-sn%4,le=new e.EncodeStream(sn+Je);return Xa.encode(le,He),0!==Je&&le.fill(0,Je),le.buffer},G._encodePoint=function(M,x,P,tA,oA,sA){var iA=M-x;return M===x?tA|=sA:(-255<=iA&&iA<=255&&(tA|=oA,iA<0?iA=-iA:tA|=sA),P.push(iA)),tA},eA}(),Ql=function(eA){function G(M){var x;return(x=eA.call(this,M)||this).glyphEncoder=new Cl,x}h(G,eA);var V=G.prototype;return V._addGlyph=function(x){var P=this.font.getGlyph(x),tA=P._decode(),oA=this.font.loca.offsets[x],sA=this.font.loca.offsets[x+1],iA=this.font._getTableStream("glyf");iA.pos+=oA;var NA=iA.readBuffer(sA-oA);if(tA&&tA.numberOfContours<0){NA=c.from(NA);for(var gt,kA=g(tA.components);!(gt=kA()).done;){var _A=gt.value;x=this.includeGlyph(_A.glyphID),NA.writeUInt16BE(x,_A.pos)}}else tA&&this.font._variationProcessor&&(NA=this.glyphEncoder.encodeSimple(P.path,tA.instructions));return this.glyf.push(NA),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:P.advanceWidth,bearing:P._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 P=0;P255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},tA=Object.assign({},this.cff.topDict);tA.Private=null,tA.charset=P,tA.Encoding=null,tA.CharStrings=this.charstrings;for(var oA=0,sA=["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"];oA0&&Object.defineProperty(this,x,{get:this._getTable.bind(this,P)})}}eA.probe=function(M){var x=M.toString("ascii",0,4);return"true"===x||"OTTO"===x||x===String.fromCharCode(0,1,0,0)};var G=eA.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=ci.decode(this.stream,{_startOffset:0})},G._decodeTable=function(M){var x=this.stream.pos,P=this._getTableStream(M.tag),tA=se[M.tag].decode(P,this,M.length);return this.stream.pos=x,tA},G.getName=function(M,x){void 0===x&&(x=this.defaultLanguage||D.defaultLanguage);var P=this.name&&this.name.records[M];return P&&(P[x]||P[this.defaultLanguage]||P[D.defaultLanguage]||P.en||P[Object.keys(P)[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=[],P=M.length,tA=0,oA=-1,sA=-1;tA<=P;){var iA=0,NA=0;if(tA>>6&3},transformed:function(G){return"glyf"===G.tag||"loca"===G.tag?0===G.transformVersion:0!==G.transformVersion},transformLength:new e.Optional(_a,function(eA){return eA.transformed})}),$a=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(vl,"numTables")});$a.process=function(){for(var eA={},G=0;G0){for(var iA=[],NA=0,kA=0;kA>7);if((iA&=127)<10)oA=0,sA=nr(iA,((14&iA)<<7)+G.readUInt8());else if(iA<20)oA=nr(iA,((iA-10&14)<<7)+G.readUInt8()),sA=0;else if(iA<84)oA=nr(iA,1+(48&(kA=iA-20))+((gt=G.readUInt8())>>4)),sA=nr(iA>>1,1+((12&kA)<<2)+(15>));else if(iA<120){var kA;oA=nr(iA,1+((kA=iA-84)/12<<8)+G.readUInt8()),sA=nr(iA>>1,1+(kA%12>>2<<8)+G.readUInt8())}else if(iA<124){var gt=G.readUInt8(),_A=G.readUInt8();oA=nr(iA,(gt<<4)+(_A>>4)),sA=nr(iA>>1,((15&_A)<<8)+G.readUInt8())}else oA=nr(iA,G.readUInt16BE()),sA=nr(iA>>1,G.readUInt16BE());P.push(new cr(NA,!1,x+=oA,M+=sA))}return P}var Yl=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}}),Tl=function(){function eA(V){if(this.stream=V,"ttcf"!==V.readString(4))throw new Error("Not a TrueType collection");this.header=Yl.decode(V)}return eA.probe=function(M){return"ttcf"===M.toString("ascii",0,4)},eA.prototype.getFont=function(M){for(var P,x=g(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA;var sA=new yr(oA);if(sA.postscriptName===M)return sA}return null},l(eA,[{key:"fonts",get:function(){for(var P,M=[],x=g(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA,M.push(new yr(oA))}return M}}]),eA}(),Sl=new e.String(e.uint8),Nl=(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})),Ul=new e.Struct({name:new e.String(4),maxTypeIndex:e.uint16,refList:new e.Pointer(e.uint16,new e.Array(Nl,function(eA){return eA.maxTypeIndex+1}),{type:"parent"})}),Pl=new e.Struct({length:e.uint16,types:new e.Array(Ul,function(eA){return eA.length+1})}),Rl=new e.Struct({reserved:new e.Reserved(e.uint8,24),typeList:new e.Pointer(e.uint16,Pl),nameListOffset:new e.Pointer(e.uint16,"void")}),eo=new e.Struct({dataOffset:e.uint32,map:new e.Pointer(e.uint32,Rl),dataLength:e.uint32,mapLength:e.uint32}),zl=function(){function eA(V){this.stream=V,this.header=eo.decode(this.stream);for(var x,M=g(this.header.map.typeList.types);!(x=M()).done;){for(var oA,P=x.value,tA=g(P.refList);!(oA=tA()).done;){var sA=oA.value;sA.nameOffset>=0?(this.stream.pos=sA.nameOffset+this.header.map.nameListOffset,sA.name=Sl.decode(this.stream)):sA.name=null}"sfnt"===P.name&&(this.sfnt=P)}}return eA.probe=function(M){var x=new e.DecodeStream(M);try{var P=eo.decode(x)}catch(iA){return!1}for(var oA,tA=g(P.map.typeList.types);!(oA=tA()).done;)if("sfnt"===oA.value.name)return!0;return!1},eA.prototype.getFont=function(M){if(!this.sfnt)return null;for(var P,x=g(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4)),iA=new yr(sA);if(iA.postscriptName===M)return iA}return null},l(eA,[{key:"fonts",get:function(){for(var P,M=[],x=g(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4));M.push(new yr(sA))}return M}}]),eA}();D.registerFormat(yr),D.registerFormat(pl),D.registerFormat(Ao),D.registerFormat(Tl),D.registerFormat(zl),Y.exports=D},7337:function(Y,I,n){"use strict";var c=n(4781),i=n(9742),o=n(2055),l=o.BK,h=o.CR,a=o.LF,g=o.NL,E=o.SG,u=o.WJ,C=o.SP,e=o.ZWJ,f=o.BA,B=o.HY,w=o.NS,Q=o.AI,p=o.AL,S=o.CJ,m=o.HL,d=o.RI,v=o.SA,D=o.XX,U=n(8383),T=U.DI_BRK,F=U.IN_BRK,R=U.CI_BRK,L=U.CP_BRK,aA=U.pairTable,lA=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(xA){switch(xA){case Q:case v:case E:case D:return p;case S:return w;default:return xA}},cA=function(xA){switch(xA){case a:case g:return l;case C:return u;default:return xA}},gA=function(xA,_){void 0===_&&(_=!1),this.position=xA,this.required=_};Y.exports=function(){function yA(_){this.string=_,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}var xA=yA.prototype;return xA.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},xA.nextCharClass=function(){return pA(lA.get(this.nextCodePoint()))},xA.getSimpleBreak=function(){switch(this.nextClass){case C:return!1;case l:case a:case g:return this.curClass=l,!1;case h:return this.curClass=h,!1}return null},xA.getPairTableBreak=function(MA){var uA=!1;switch(aA[this.curClass][this.nextClass]){case T:uA=!0;break;case F:uA=MA===C;break;case R:if(!(uA=MA===C))return!1;break;case L:if(MA!==C)return uA}return this.LB8a&&(uA=!1),!this.LB21a||this.curClass!==B&&this.curClass!==f?this.LB21a=this.curClass===m:(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},xA.nextBreak=function(){if(null==this.curClass){var MA=this.nextCharClass();this.curClass=cA(MA),this.nextClass=MA,this.LB8a=MA===e,this.LB30a=0}for(;this.pos=ZA)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 $}}),J=bA[SA];SA=3&&(SA.depth=arguments[2]),arguments.length>=4&&(SA.colors=arguments[3]),m(QA)?SA.showHidden=QA:QA&&I._extend(SA,QA),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,QA){var SA=g.styles[QA];return SA?"\x1b["+g.colors[SA][0]+"m"+uA+"\x1b["+g.colors[SA][1]+"m":uA}function u(uA,QA){return uA}function e(uA,QA,SA){if(uA.customInspect&&QA&&AA(QA.inspect)&&QA.inspect!==I.inspect&&(!QA.constructor||QA.constructor.prototype!==QA)){var bA=QA.inspect(SA,uA);return U(bA)||(bA=e(uA,bA,SA)),bA}var ZA=function f(uA,QA){if(F(QA))return uA.stylize("undefined","undefined");if(U(QA)){var SA="'"+JSON.stringify(QA).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return uA.stylize(SA,"string")}return D(QA)?uA.stylize(""+QA,"number"):m(QA)?uA.stylize(""+QA,"boolean"):d(QA)?uA.stylize("null","null"):void 0}(uA,QA);if(ZA)return ZA;var q=Object.keys(QA),J=function C(uA){var QA={};return uA.forEach(function(SA,bA){QA[SA]=!0}),QA}(q);if(uA.showHidden&&(q=Object.getOwnPropertyNames(QA)),aA(QA)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return B(QA);if(0===q.length){if(AA(QA))return uA.stylize("[Function"+(QA.name?": "+QA.name:"")+"]","special");if(R(QA))return uA.stylize(RegExp.prototype.toString.call(QA),"regexp");if(Z(QA))return uA.stylize(Date.prototype.toString.call(QA),"date");if(aA(QA))return B(QA)}var EA,W="",hA=!1,vA=["{","}"];return S(QA)&&(hA=!0,vA=["[","]"]),AA(QA)&&(W=" [Function"+(QA.name?": "+QA.name:"")+"]"),R(QA)&&(W=" "+RegExp.prototype.toString.call(QA)),Z(QA)&&(W=" "+Date.prototype.toUTCString.call(QA)),aA(QA)&&(W=" "+B(QA)),0!==q.length||hA&&0!=QA.length?SA<0?R(QA)?uA.stylize(RegExp.prototype.toString.call(QA),"regexp"):uA.stylize("[Object]","special"):(uA.seen.push(QA),EA=hA?function w(uA,QA,SA,bA,ZA){for(var q=[],J=0,$=QA.length;J<$;++J)yA(QA,String(J))?q.push(Q(uA,QA,SA,bA,String(J),!0)):q.push("");return ZA.forEach(function(W){W.match(/^\d+$/)||q.push(Q(uA,QA,SA,bA,W,!0))}),q}(uA,QA,SA,J,q):q.map(function(GA){return Q(uA,QA,SA,J,GA,hA)}),uA.seen.pop(),function p(uA,QA,SA){return uA.reduce(function(q,J){return J.indexOf("\n"),q+J.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?SA[0]+(""===QA?"":QA+"\n ")+" "+uA.join(",\n ")+" "+SA[1]:SA[0]+QA+" "+uA.join(", ")+" "+SA[1]}(EA,W,vA)):vA[0]+W+vA[1]}function B(uA){return"["+Error.prototype.toString.call(uA)+"]"}function Q(uA,QA,SA,bA,ZA,q){var J,$,W;if((W=Object.getOwnPropertyDescriptor(QA,ZA)||{value:QA[ZA]}).get?$=uA.stylize(W.set?"[Getter/Setter]":"[Getter]","special"):W.set&&($=uA.stylize("[Setter]","special")),yA(bA,ZA)||(J="["+ZA+"]"),$||(uA.seen.indexOf(W.value)<0?($=d(SA)?e(uA,W.value,null):e(uA,W.value,SA-1)).indexOf("\n")>-1&&($=q?$.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(J)){if(q&&ZA.match(/^\d+$/))return $;(J=JSON.stringify(""+ZA)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(J=J.substr(1,J.length-2),J=uA.stylize(J,"name")):(J=J.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),J=uA.stylize(J,"string"))}return J+": "+$}function S(uA){return Array.isArray(uA)}function m(uA){return"boolean"==typeof uA}function d(uA){return null===uA}function D(uA){return"number"==typeof uA}function U(uA){return"string"==typeof uA}function F(uA){return void 0===uA}function R(uA){return L(uA)&&"[object RegExp]"===pA(uA)}function L(uA){return"object"==typeof uA&&null!==uA}function Z(uA){return L(uA)&&"[object Date]"===pA(uA)}function aA(uA){return L(uA)&&("[object Error]"===pA(uA)||uA instanceof Error)}function AA(uA){return"function"==typeof uA}function pA(uA){return Object.prototype.toString.call(uA)}function cA(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 QA=c.pid;l[uA]=function(){var SA=I.format.apply(I,arguments);console.error("%s %d: %s",uA,QA,SA)}}else l[uA]=function(){};return l[uA]},I.inspect=g,g.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]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=n(5955),I.isArray=S,I.isBoolean=m,I.isNull=d,I.isNullOrUndefined=function v(uA){return null==uA},I.isNumber=D,I.isString=U,I.isSymbol=function T(uA){return"symbol"==typeof uA},I.isUndefined=F,I.isRegExp=R,I.types.isRegExp=R,I.isObject=L,I.isDate=Z,I.types.isDate=Z,I.isError=aA,I.types.isNativeError=aA,I.isFunction=AA,I.isPrimitive=function lA(uA){return null===uA||"boolean"==typeof uA||"number"==typeof uA||"string"==typeof uA||"symbol"==typeof uA||void 0===uA},I.isBuffer=n(384);var gA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function BA(){var uA=new Date,QA=[cA(uA.getHours()),cA(uA.getMinutes()),cA(uA.getSeconds())].join(":");return[uA.getDate(),gA[uA.getMonth()],QA].join(" ")}function yA(uA,QA){return Object.prototype.hasOwnProperty.call(uA,QA)}I.log=function(){console.log("%s - %s",BA(),I.format.apply(I,arguments))},I.inherits=n(5717),I._extend=function(uA,QA){if(!QA||!L(QA))return uA;for(var SA=Object.keys(QA),bA=SA.length;bA--;)uA[SA[bA]]=QA[SA[bA]];return uA};var xA="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(uA,QA){if(!uA){var SA=new Error("Promise was rejected with a falsy value");SA.reason=uA,uA=SA}return QA(uA)}I.promisify=function(QA){if("function"!=typeof QA)throw new TypeError('The "original" argument must be of type Function');if(xA&&QA[xA]){var SA;if("function"!=typeof(SA=QA[xA]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(SA,xA,{value:SA,enumerable:!1,writable:!1,configurable:!0}),SA}function SA(){for(var bA,ZA,q=new Promise(function(W,hA){bA=W,ZA=hA}),J=[],$=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,U=v&&v.compressed?"":"\n";for(var F in this.attr)Object.prototype.hasOwnProperty.call(this.attr,F)&&(D+=" "+F+'="'+S(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+=">"+U;for(var R=d+(v&&v.compressed?"":" "),L=0,Z=this.children.length;L"}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},o.prototype.toString=function(d){return m(S(this.text),d)},o.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!--"+m(S(this.comment),d)+"--\x3e"},h.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},i.prototype.type="element",o.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 g=null;function u(){g[0]&&g[0]._opentag.apply(g[0],arguments)}function C(){g[0]&&g[0]._closetag.apply(g[0],arguments)}function e(){g[0]&&g[0]._text.apply(g[0],arguments)}function f(){g[0]&&g[0]._cdata.apply(g[0],arguments)}function B(){g[0]&&g[0]._comment.apply(g[0],arguments)}function w(){g[0]&&g[0]._doctype.apply(g[0],arguments)}function Q(){g[0]&&g[0]._error.apply(g[0],arguments)}function S(d){return d.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function m(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}Y.exports&&!n.g.xmldocAssumeBrowser?Y.exports.XmlDocument=a:this.XmlDocument=a}()},6255:function(Y,I,n){"use strict";"undefined"!=typeof window&&!window.Promise&&n(3867),n(4667);function i(o){this.fs=o,this.resolving={}}i.prototype.resolve=function(o,l){if(!this.resolving[o]){var h=this;this.resolving[o]=new Promise(function(a,g){0===o.toLowerCase().indexOf("https://")||0===o.toLowerCase().indexOf("http://")?function(o,l){return new Promise(function(h,a){var g=new XMLHttpRequest;for(var E in g.open("GET",o,!0),l)g.setRequestHeader(E,l[E]);g.responseType="arraybuffer",g.onreadystatechange=function(){4===g.readyState&&(g.status>=200&&g.status<300||setTimeout(function(){a(new TypeError('Failed to fetch (url: "'+o+'")'))},0))},g.onload=function(){g.status>=200&&g.status<300&&h(g.response)},g.onerror=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+o+'")'))},0)},g.ontimeout=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+o+'")'))},0)},g.send()})}(o,l).then(function(E){h.fs.writeFileSync(o,E),a()},function(E){g(E)}):a()})}return this.resolving[o]},i.prototype.resolved=function(){var o=this;return new Promise(function(l,h){Promise.all(Object.values(o.resolving)).then(function(){l()},function(a){h(a)})})},Y.exports=i},4275:function(Y,I,n){"use strict";var c=n(8823).Buffer,i=n(6225).isFunction,o=n(6225).isUndefined,a=(n(6225),n(1818).saveAs),g={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};function E(C,e,f,B){this.docDefinition=C,this.tableLayouts=e||null,this.fonts=f||g,this.vfs=B}E.prototype._createDoc=function(C,e){var f=function(U){return"object"==typeof U?{url:U.url,headers:U.headers}:{url:U,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 S=new(n(6255))(n(3857));for(var m in this.fonts)if(this.fonts.hasOwnProperty(m)){if(this.fonts[m].normal){var d=f(this.fonts[m].normal);S.resolve(d.url,d.headers),this.fonts[m].normal=d.url}this.fonts[m].bold&&(d=f(this.fonts[m].bold),S.resolve(d.url,d.headers),this.fonts[m].bold=d.url),this.fonts[m].italics&&(d=f(this.fonts[m].italics),S.resolve(d.url,d.headers),this.fonts[m].italics=d.url),this.fonts[m].bolditalics&&(d=f(this.fonts[m].bolditalics),S.resolve(d.url,d.headers),this.fonts[m].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]),S.resolve(d.url,d.headers),this.docDefinition.images[v]=d.url);var D=this;S.resolved().then(function(){var U=w.createPdfKitDocument(D.docDefinition,C);e(U)},function(U){throw U})},E.prototype._flushDoc=function(C,e){var B,f=[];C.on("readable",function(){for(var w;null!==(w=C.read(9007199254740991));)f.push(w)}),C.on("end",function(){B=c.concat(f),e(B,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(B){f._flushDoc(B,function(w,Q){e(Q)})})},E.prototype._bufferToBlob=function(C){var e;try{e=new Blob([C],{type:"application/pdf"})}catch(B){if("InvalidStateError"===B.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)&&(o(e)||(f=e),e=C,C=null),C=C||"file.pdf",this.getBlob(function(B){a(B,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(B){var w=f._bufferToBlob(B);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(B){f._flushDoc(B,function(w){C(w)})})},E.prototype.getStream=function(C,e){if(!i(e))return this._createDoc(C);this._createDoc(C,function(B){e(B)})},Y.exports={createPdf:function(C,e,f,B){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,B||n.g.pdfMake.vfs)}}},3857:function(Y,I,n){"use strict";var i=n(8823).Buffer;function o(){this.fileSystem={},this.dataSystem={}}function l(h){return 0===h.indexOf("/")&&(h=h.substring("/".length)),0===h.indexOf("/")&&(h=h.substring(1)),h}o.prototype.existsSync=function(h){return h=l(h),void 0!==this.fileSystem[h]||void 0!==this.dataSystem[h]},o.prototype.readFileSync=function(h,a){h=l(h);var g=this.dataSystem[h];if("string"==typeof g&&"utf8"===a)return g;if(g)return new i(g,"string"==typeof g?"base64":void 0);var E=this.fileSystem[h];if(E)return E;throw"File '"+h+"' not found in virtual file system"},o.prototype.writeFileSync=function(h,a){this.fileSystem[l(h)]=a},o.prototype.bindFS=function(h){this.dataSystem=h||{}},Y.exports=new o},4498:function(Y,I,n){"use strict";var c=n(6225).isString;function o(a){return"auto"===a.width}function l(a){return null==a.width||"*"===a.width||"star"===a.width}Y.exports={buildColumnWidths:function i(a,g){var E=[],u=0,C=0,e=[],f=0,B=0,w=[],Q=g;a.forEach(function(D){o(D)?(E.push(D),u+=D._minWidth,C+=D._maxWidth):l(D)?(e.push(D),f=Math.max(f,D._minWidth),B=Math.max(B,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=g)E.forEach(function(D){D._calcWidth=D._minWidth}),e.forEach(function(D){D._calcWidth=f});else{if(S0){var v=g/e.length;e.forEach(function(D){D._calcWidth=v})}}},measureMinMax:function h(a){for(var g={min:0,max:0},E={min:0,max:0},u=0,C=0,e=a.length;C=0;R--){var Z=w.styleStack.styleDictionary[T[R]];for(var aA in Z)Z.hasOwnProperty(aA)&&(F[aA]=Z[aA])}return F}function d(T){return h(T)?T=[T,T,T,T]:g(T)&&2===T.length&&(T=[T[0],T[1],T[0],T[1]]),T}var v=[void 0,void 0,void 0,void 0];if(B.style){var U=m(g(B.style)?B.style:[B.style]);U&&(v=S(U,v)),U.margin&&(v=d(U.margin))}return v=S(B,v),B.margin&&(v=d(B.margin)),void 0===v[0]&&void 0===v[1]&&void 0===v[2]&&void 0===v[3]?null:v}(),B.columns)return Q(w.measureColumns(B));if(B.stack)return Q(w.measureVerticalContainer(B));if(B.ul)return Q(w.measureUnorderedList(B));if(B.ol)return Q(w.measureOrderedList(B));if(B.table)return Q(w.measureTable(B));if(void 0!==B.text)return Q(w.measureLeaf(B));if(B.toc)return Q(w.measureToc(B));if(B.image)return Q(w.measureImage(B));if(B.svg)return Q(w.measureSVG(B));if(B.canvas)return Q(w.measureCanvas(B));if(B.qr)return Q(w.measureQr(B));throw"Unrecognized document structure: "+JSON.stringify(B,E)});function Q(S){var m=S._margin;return m&&(S._minWidth+=m[0]+m[2],S._maxWidth+=m[0]+m[2]),S}},f.prototype.convertIfBase64Image=function(B){if(/^data:image\/(jpeg|jpg|png);base64,/.test(B.image)){var w="$$pdfmake$$"+this.autoImageIndex++;this.images[w]=B.image,B.image=w}},f.prototype.measureImageWithDimensions=function(B,w){if(B.fit){var Q=w.width/w.height>B.fit[0]/B.fit[1]?B.fit[0]/w.width:B.fit[1]/w.height;B._width=B._minWidth=B._maxWidth=w.width*Q,B._height=w.height*Q}else B._width=B._minWidth=B._maxWidth=B.width||w.width,B._height=B.height||w.height*B._width/w.width,h(B.maxWidth)&&B.maxWidthB._width&&(B._width=B._minWidth=B._maxWidth=B.minWidth,B._height=B._width*w.height/w.width),h(B.minHeight)&&B.minHeight>B._height&&(B._height=B.minHeight,B._width=B._minWidth=B._maxWidth=B._height*w.width/w.height);B._alignment=this.styleStack.getProperty("alignment")},f.prototype.measureImage=function(B){this.images&&this.convertIfBase64Image(B);var w=this.imageMeasure.measureImage(B.image);return this.measureImageWithDimensions(B,w),B},f.prototype.measureSVG=function(B){var w=this.svgMeasure.measureSVG(B.svg);return this.measureImageWithDimensions(B,w),B.font=this.styleStack.getProperty("font"),B.svg=this.svgMeasure.writeDimensions(B.svg,{width:B._width,height:B._height}),B},f.prototype.measureLeaf=function(B){B._textRef&&B._textRef._textNodeRef.text&&(B.text=B._textRef._textNodeRef.text);var w=this.styleStack.clone();w.push(B);var Q=this.textTools.buildInlines(B.text,w);return B._inlines=Q.items,B._minWidth=Q.minWidth,B._maxWidth=Q.maxWidth,B},f.prototype.measureToc=function(B){if(B.toc.title&&(B.toc.title=this.measureNode(B.toc.title)),B.toc._items.length>0){for(var w=[],Q=B.toc.textStyle||{},p=B.toc.numberStyle||Q,S=B.toc.textMargin||[0,0,0,0],m=0,d=B.toc._items.length;m=26?F((R/26>>0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[R%26>>0]}(T-1)}function m(T){if(T<1||T>4999)return T.toString();var Z,F=T,R={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},L="";for(Z in R)for(;F>=R[Z];)L+=Z,F-=R[Z];return L}var v;switch(Q){case"none":v=null;break;case"upper-alpha":v=S(B).toUpperCase();break;case"lower-alpha":v=S(B);break;case"upper-roman":v=m(B);break;case"lower-roman":v=m(B).toLowerCase();break;default:v=function d(T){return T.toString()}(B)}if(null===v)return{};p&&(g(p)?(p[0]&&(v=p[0]+v),p[1]&&(v+=p[1]),v+=" "):v+=p+" ");var D={text:v},U=w.getProperty("markerColor");return U&&(D.color=U),{_inlines:this.textTools.buildInlines(D,w).items}},f.prototype.measureUnorderedList=function(B){var w=this.styleStack.clone(),Q=B.ul;B.type=B.type||"disc",B._gapSize=this.gapSizeForList(),B._minWidth=0,B._maxWidth=0;for(var p=0,S=Q.length;p0?w.length-1:0;return B._minWidth=S.min+B._gap*m,B._maxWidth=S.max+B._gap*m,B},f.prototype.measureTable=function(B){(function lA(pA){if(pA.table.widths||(pA.table.widths="auto"),l(pA.table.widths))for(pA.table.widths=[pA.table.widths];pA.table.widths.length1?(aA(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&&AA(B.table,p,Q,D.rowSpan)}}!function L(){for(var pA,cA,gA=0,BA=w.length;gA0)for(pA=_/yA.span,cA=0;cA0)for(pA=MA/yA.span,cA=0;cAE.page?g:E.page>g.page?E:g.y>E.y?g:E).page,x:u.x,y:u.y,availableHeight:u.availableHeight,availableWidth:u.availableWidth}}(this,g.bottomMost)},o.prototype.markEnding=function(g){this.page=g._columnEndingContext.page,this.x=g._columnEndingContext.x,this.y=g._columnEndingContext.y,this.availableWidth=g._columnEndingContext.availableWidth,this.availableHeight=g._columnEndingContext.availableHeight,this.lastColumnWidth=g._columnEndingContext.lastColumnWidth},o.prototype.saveContextInEndingCell=function(g){g._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}},o.prototype.completeColumnGroup=function(g){var E=this.snapshots.pop();this.calculateBottomMost(E),this.endingCell=null,this.x=E.x;var u=E.bottomMost.y;g&&(E.page===E.bottomMost.page?E.y+g>u&&(u=E.y+g):u+=g),this.y=u,this.page=E.bottomMost.page,this.availableWidth=E.availableWidth,this.availableHeight=E.bottomMost.availableHeight,g&&(this.availableHeight-=u-E.bottomMost.y),this.lastColumnWidth=E.lastColumnWidth},o.prototype.addMargin=function(g,E){this.x+=g,this.availableWidth-=g+(E||0)},o.prototype.moveDown=function(g){return this.y+=g,this.availableHeight-=g,this.availableHeight>0},o.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},o.prototype.pageSnapshot=function(){return this.snapshots[0]?this.snapshots[0]:this},o.prototype.moveTo=function(g,E){null!=g&&(this.x=g,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)},o.prototype.moveToRelative=function(g,E){null!=g&&(this.x=this.x+g),null!=E&&(this.y=this.y+E)},o.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})},o.prototype.endDetachedBlock=function(){var g=this.snapshots.pop();this.x=g.x,this.y=g.y,this.availableWidth=g.availableWidth,this.availableHeight=g.availableHeight,this.page=g.page,this.endingCell=g.endingCell,this.lastColumnWidth=g.lastColumnWidth};var h=function(g,E){return(E=function l(g,E){return void 0===g?E:i(g)&&"landscape"===g.toLowerCase()?"landscape":"portrait"}(E,g.pageSize.orientation))!==g.pageSize.orientation?{orientation:E,width:g.pageSize.height,height:g.pageSize.width}:{orientation:g.pageSize.orientation,width:g.pageSize.width,height:g.pageSize.height}};o.prototype.moveToNextPage=function(g){var E=this.page+1,u=this.page,C=this.y,e=E>=this.pages.length;if(e){var f=this.availableWidth,B=this.getCurrentPage().pageSize.orientation,w=h(this.getCurrentPage(),g);this.addPage(w),B===w.orientation&&(this.availableWidth=f)}else this.page=E,this.initializePage();return{newPageCreated:e,prevPage:u,prevY:C,y:this.y}},o.prototype.addPage=function(g){var E={items:[],pageSize:g};return this.pages.push(E),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.tracker.emit("pageAdded"),E},o.prototype.getCurrentPage=function(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]},o.prototype.getCurrentPosition=function(){var g=this.getCurrentPage().pageSize,E=g.height-this.pageMargins.top-this.pageMargins.bottom,u=g.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:g.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}},Y.exports=o},1196:function(Y,I,n){"use strict";var c=n(4775),i=n(6225).isNumber,o=n(6225).pack,l=n(6225).offsetVector,h=n(3858);function a(u,C){this.context=u,this.contextStack=[],this.tracker=C}function g(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(),B=this.context,w=B.getCurrentPage(),Q=this.getCurrentPositionOnPage();return!(B.availableHeight0&&u.inlines[0].alignment,B=0;switch(f){case"right":B=C-e;break;case"center":B=(C-e)/2}if(B&&(u.x=(u.x||0)+B),"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),g(B,{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(),B=this.getCurrentPositionOnPage();if(!f||void 0===u.absolutePosition&&e.availableHeightB.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=B.page+1),p.x=(p.x||0)+(C?u.xOffset||0:B.x),p.y=(p.y||0)+(e?u.yOffset||0:B.y),w.items.push({type:"line",item:p});break;case"vector":var S=o(Q.item);l(S,C?u.xOffset||0:B.x,e?u.yOffset||0:B.y),w.items.push({type:"vector",item:S});break;case"image":case"svg":var m=o(Q.item);m.x=(m.x||0)+(C?u.xOffset||0:B.x),m.y=(m.y||0)+(e?u.yOffset||0:B.y),w.items.push({type:Q.type,item:m})}}),f||B.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()},Y.exports=a},2249:function(Y,I,n){"use strict";var c=n(6225).isArray;function o(l,h){for(var a in this.fonts={},this.pdfKitDoc=h,this.fontCache={},l)if(l.hasOwnProperty(a)){var g=l[a];this.fonts[a]={normal:g.normal,bold:g.bold,italics:g.italics,bolditalics:g.bolditalics}}}o.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)},o.prototype.getFontFile=function(l,h,a){var g=this.getFontType(h,a);return this.fonts[l]&&this.fonts[l][g]?this.fonts[l][g]:null},o.prototype.provideFont=function(l,h,a){var g=this.getFontType(h,a);if(null===this.getFontFile(l,h,a))throw new Error("Font '"+l+"' in style '"+g+"' is not defined in the font section of the document definition.");if(this.fontCache[l]=this.fontCache[l]||{},!this.fontCache[l][g]){var E=this.fonts[l][g];c(E)||(E=[E]),this.fontCache[l][g]=this.pdfKitDoc.font.apply(this.pdfKitDoc,E)._font}return this.fontCache[l][g]},Y.exports=o},6225:function(Y){"use strict";function i(B){return Array.isArray(B)}Y.exports={isString:function I(B){return"string"==typeof B||B instanceof String},isNumber:function n(B){return"number"==typeof B||B instanceof Number},isBoolean:function c(B){return"boolean"==typeof B},isArray:i,isFunction:function o(B){return"function"==typeof B},isObject:function l(B){return null!==B&&"object"==typeof B},isNull:function h(B){return null===B},isUndefined:function a(B){return void 0===B},pack:function g(){for(var B={},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 QA=_[uA];if("before"!==QA.pageBreak&&!QA.pageBreakCalculated){QA.pageBreakCalculated=!0;var SA=QA.nodeInfo.pageNumbers[0],bA=[],ZA=[],q=[];if(gA.length>1)for(var J=uA+1,$=_.length;J<$;J++)_[J].nodeInfo.pageNumbers.indexOf(SA)>-1&&bA.push(_[J].nodeInfo),gA.length>2&&_[J].nodeInfo.pageNumbers.indexOf(SA+1)>-1&&ZA.push(_[J].nodeInfo);if(gA.length>3)for(J=0;J-1&&q.push(_[J].nodeInfo);if(gA(QA.nodeInfo,bA,ZA,q))return QA.pageBreak="before",!0}}return!1}this.docPreprocessor=new i,this.docMeasure=new o(R,L,Z,this.imageMeasure,this.svgMeasure,this.tableLayouts,pA);for(var xA=this.tryLayoutDocument(F,R,L,Z,aA,AA,lA,pA,cA);BA(xA.linearNodeList,xA.pages);)xA.linearNodeList.forEach(function(MA){MA.resetXY()}),xA=this.tryLayoutDocument(F,R,L,Z,aA,AA,lA,pA,cA);return xA.pages},U.prototype.tryLayoutDocument=function(F,R,L,Z,aA,AA,lA,pA,cA,gA){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 BA=this;return this.writer.context().tracker.startTracking("pageAdded",function(){BA.addBackground(aA)}),this.addBackground(aA),this.processNode(F),this.addHeadersAndFooters(AA,lA),null!=cA&&this.addWatermark(cA,R,Z),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}},U.prototype.addBackground=function(F){var R=S(F)?F:function(){return F},L=this.writer.context(),Z=L.getCurrentPage().pageSize,aA=R(L.page+1,Z);aA&&(this.writer.beginUnbreakableBlock(Z.width,Z.height),aA=this.docPreprocessor.preprocessDocument(aA),this.processNode(this.docMeasure.measureDocument(aA)),this.writer.commitUnbreakableBlock(0,0),L.backgroundLength[L.page]+=aA.positions.length)},U.prototype.addStaticRepeatable=function(F,R){this.addDynamicRepeatable(function(){return JSON.parse(JSON.stringify(F))},R)},U.prototype.addDynamicRepeatable=function(F,R){for(var Z=0,aA=this.writer.context().pages.length;Z1;)_.push({fontSize:SA}),(MA=xA.sizeOfRotatedText(BA.text,BA.angle,_)).width>gA.width?SA=(uA+(QA=SA))/2:MA.widthgA.height?(uA+(QA=SA))/2:((uA=SA)+QA)/2),_.pop();return SA}(this.pageSize,F,R));var Z={text:F.text,font:R.provideFont(F.font,F.bold,F.italics),fontSize:F.fontSize,color:F.color,opacity:F.opacity,angle:F.angle};Z._size=function pA(gA,BA){var yA=new m(BA),xA=new d(null,{font:gA.font,bold:gA.bold,italics:gA.italics});return xA.push({fontSize:gA.fontSize}),{size:yA.sizeOfString(gA.text,xA),rotatedSize:yA.sizeOfRotatedText(gA.text,gA.angle,xA)}}(F,R);for(var aA=this.writer.context().pages,AA=0,lA=aA.length;AA0;cA--)pA.push(lA);return pA}(F._gap);Z&&(L-=(Z.length-1)*F._gap),a.buildColumnWidths(R,L);var aA=this.processRow(R,R,Z);D(F.positions,aA.positions)},U.prototype.processRow=function(F,R,L,Z,aA,AA){var lA=this,pA=[],cA=[];return this.tracker.auto("pageChanged",function gA(xA){for(var _,MA=0,uA=pA.length;MA1)for(var SA=1;SAxA?L[xA]:0}function yA(xA,_){if(xA.rowSpan&&xA.rowSpan>1){var MA=aA+xA.rowSpan-1;if(MA>=Z.length)throw"Row span for column "+_+" (with indexes starting from 0) exceeded row count";return Z[MA][_]}return null}},U.prototype.processList=function(F,R){var AA,L=this,Z=F?R.ol:R.ul,aA=R._gapSize;this.writer.context().addMargin(aA.width),this.tracker.auto("lineAdded",function lA(pA){if(AA){var cA=AA;if(AA=null,cA.canvas){var gA=cA.canvas[0];w(gA,-cA._minWidth,0),L.writer.addVector(gA)}else if(cA._inlines){var BA=new E(L.pageSize.width);BA.addInline(cA._inlines[0]),BA.x=-cA._minWidth,BA.y=pA.getAscenderHeight()-BA.getAscenderHeight(),L.writer.addLine(BA,!0)}}},function(){Z.forEach(function(pA){AA=pA.listMarker,L.processNode(pA),D(R.positions,pA.positions)})}),this.writer.context().addMargin(-aA.width)},U.prototype.processTable=function(F){var R=new g(F);R.beginTable(this.writer);for(var L=F.table.heights,Z=0,aA=F.table.body.length;Z0&&(L.hasEnoughSpaceForInline(F._inlines[0],F._inlines.slice(1))||aA);){var AA=!1,lA=F._inlines.shift();if(aA=!1,!lA.noWrap&&lA.text.length>1&&lA.width>L.getAvailableWidth()){var pA=lA.width/lA.text.length,cA=Math.floor(L.getAvailableWidth()/pA);if(cA<1&&(cA=1),cA0){var u=g.pages[0];if(u.xOffset=h,u.yOffset=a,E>1)if(void 0!==h||void 0!==a)u.height=g.getCurrentPage().pageSize.height-g.pageMargins.top-g.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;CZA.item.y2?ZA.item.y1:ZA.item.y2:0}(ZA)}var SA=T(MA||40),bA=SA.top;return _.forEach(function(ZA){ZA.items.forEach(function(q){var J=QA(q);J>bA&&(bA=J)})}),bA+=SA.bottom}function U(_,MA){_&&"auto"===_.height&&(_.height=1/0);var QA=function R(_){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())&&QA.width>QA.height||"landscape"===SA&&QA.widthQA.height?"landscape":"portrait",QA}function T(_){if(e(_))_={left:_,right:_,top:_,bottom:_};else if(B(_))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 L(_,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 aA(_,MA){var uA=_;return MA.sup&&(uA-=.75*MA.fontSize),MA.sub&&(uA+=.35*MA.fontSize),uA}function AA(_,MA,uA,QA,SA){function bA(lt,TA){var it,vt,It=new E(null);if(w(lt.positions))throw"Page reference id not found";var Mt=lt.positions[0].pageNumber.toString();switch(TA.text=Mt,it=It.widthOfString(TA.text,TA.font,TA.fontSize,TA.characterSpacing,TA.fontFeatures),vt=TA.width-it,TA.width=it,TA.alignment){case"right":TA.x+=vt;break;case"center":TA.x+=vt/2}}_._pageNodeRef&&bA(_._pageNodeRef,_.inlines[0]),MA=MA||0,uA=uA||0;var ZA=_.getHeight(),J=ZA-_.getAscenderHeight();g.drawBackground(_,MA,uA,QA,SA);for(var $=0,W=_.inlines.length;$1){var ZA=_.points[0],q=_.points[_.points.length-1];(_.closePath||ZA.x===q.x&&ZA.y===q.y)&&uA.closePath()}break;case"path":uA.path(_.d)}if(_.linearGradient&&QA){var J=1/(_.linearGradient.length-1);for(SA=0;SA<_.linearGradient.length;SA++)QA.stop(SA*J,_.linearGradient[SA]);_.color=QA}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 cA(_,MA,uA,QA){var SA=e(_.opacity)?_.opacity:1;if(QA.opacity(SA),_.cover){var bA=_.cover.align||"center",ZA=_.cover.valign||"center",q=_.cover.width?_.cover.width:_.width,J=_.cover.height?_.cover.height:_.height;QA.save(),QA.rect(_.x,_.y,q,J).clip(),QA.image(_.image,_.x,_.y,{cover:[q,J],align:bA,valign:ZA}),QA.restore()}else QA.image(_.image,_.x,_.y,{width:_._width,height:_._height});_.link&&QA.link(_.x,_.y,_._width,_._height,_.link),_.linkToPage&&(QA.ref({Type:"Action",S:"GoTo",D:[_.linkToPage,0,0]}).end(),QA.annotate(_.x,_.y,_._width,_._height,{Subtype:"Link",Dest:[_.linkToPage-1,"XYZ",null,null,null]})),_.linkToDestination&&QA.goTo(_.x,_.y,_._width,_._height,_.linkToDestination)}function gA(_,MA,uA,QA,SA){var bA=Object.assign({width:_._width,height:_._height,assumePt:!0},_.options);bA.fontCallback=function(ZA,q,J){var $=ZA.split(",").map(function(nA){return nA.trim().replace(/('|")/g,"")}),W=function(_,MA,uA){for(var QA=0;QA-1&&(bA=bA.slice(0,ZA)),uA.height===1/0){var q=D(bA,_.pageMargins);this.pdfKitDoc.options.size=[uA.width,q]}var J=function xA(_,MA){var uA={};return Object.keys(_).forEach(function(QA){var SA=_[QA];uA[QA]=MA.pattern(SA.boundingBox,SA.xStep,SA.yStep,SA.pattern,SA.colored)}),uA}(_.patterns||{},this.pdfKitDoc);if(function Z(_,MA,uA,QA,SA){uA._pdfMakePages=_,uA.addPage();var bA=0;SA&&_.forEach(function(vA){bA+=vA.items.length});var ZA=0;SA=SA||function(){};for(var q=0;q<_.length;q++){q>0&&(L(_[q],uA),uA.addPage(uA.options));for(var J=_[q],$=0,W=J.items.length;$=128?285:0);var p=[[]];for(w=0;w<30;++w){for(var S=p[w],m=[],d=0;d<=w;++d)m.push(B[(d6},Z=function(q,J){var $=-8&function(q){var J=I[q],$=16*q*q+128*q+64;return F(q)&&($-=36),J[2].length&&($-=25*J[2].length*J[2].length-10*J[2].length-55),$}(q),W=I[q];return $-8*W[0][J]*W[1][J]},aA=function(q,J){switch(J){case 1:return q<10?10:q<27?12:14;case 2:return q<10?9:q<27?11:13;case 4:return q<10?8:16;case 8:return q<10?8:q<27?10:12}},AA=function(q,J,$){var W=Z(q,$)-4-aA(q,J);switch(J){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}},cA=function(q,J){for(var $=q.slice(0),W=q.length,hA=J.length,vA=0;vA=0)for(var EA=0;EA=0;--vA)hA>>W+vA&1&&(hA^=$<>nA&1;return q},uA=function(q){for(var vA=function(JA){for(var qA=0,at=0;at=5&&(qA+=JA[at]-5+3);for(at=5;at=4*et||JA[at+1]>=4*et)&&(qA+=40)}return qA},nA=q.length,EA=0,GA=0,nt=0;nt=nA){for(hA.push(vA|TA>>(it-=nA));it>=8;)hA.push(TA>>(it-=8)&255);vA=0,nA=8}it>0&&(vA|=(TA&(1<>3);nA=function(q,J,$){for(var W=[],hA=q.length/J|0,vA=0,nA=J-q.length%J,EA=0;EA>FA&1,hA[It+et][Mt+FA]=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=J[2],GA=EA.length;for(vA=0;vA>vt++&1,hA[vA][$-11+TA]=hA[$-11+TA][vA]=1}return{matrix:W,reserved:hA}}(J),GA=EA.matrix,nt=EA.reserved;if(function(q,J,$){for(var W=q.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;--nt)J[EA][nt]||(q[EA][nt]=$[hA>>3]>>(7&~hA)&1,++hA);EA+=vA}vA=-vA}}(GA,nt,nA),hA<0){_(GA,nt,0),MA(GA,0,W,0);var lt=0,TA=uA(GA);for(_(GA,nt,0),hA=1;hA<8;++hA){_(GA,nt,hA),MA(GA,0,W,hA);var it=uA(GA);TA>it&&(TA=it,lt=hA),_(GA,nt,hA)}hA=lt}return _(GA,nt,hA),MA(GA,0,W,hA),GA};function SA(q,J){var $={numeric:1,alphanumeric:2,octet:4},hA=(J=J||{}).version||-1,vA={L:1,M:0,Q:3,H:2}[(J.eccLevel||"L").toUpperCase()],nA=J.mode?$[J.mode.toLowerCase()]:-1,EA="mask"in J?J.mask:-1;if(nA<0)nA="string"==typeof q?q.match(h)?1:q.match(g)?2:4:4;else if(1!=nA&&2!=nA&&4!=nA)throw"invalid or unsupported mode";if(null===(q=function(q,J){switch(q){case 1:return J.match(h)?J:null;case 2:return J.match(a)?J.toUpperCase():null;case 4:if("string"==typeof J){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 J}}(nA,q)))throw"invalid data format";if(vA<0||vA>3)throw"invalid ECC level";if(hA<0){for(hA=1;hA<=40&&!(q.length<=AA(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 QA(q,hA,nA,vA,EA)}Y.exports={measure:function ZA(q){var J=function bA(q,J){var $=[],W=J.background||"#fff",hA=J.foreground||"#000",vA=SA(q,J),nA=vA.length,EA=Math.floor(J.fit?J.fit/nA:5),GA=nA*EA;$.push({type:"rect",x:0,y:0,w:GA,h:GA,lineWidth:0,color:W});for(var nt=0;nt0;)this.styleOverrides.pop()},h.prototype.autopush=function(a){if(c(a))return 0;var g=[];a.style&&(g=i(a.style)?a.style:[a.style]);for(var E=0,u=g.length;E0&&this.pop(E),u},h.prototype.getProperty=function(a){if(this.styleOverrides)for(var g=this.styleOverrides.length-1;g>=0;g--){var E=this.styleOverrides[g];if(c(E)){var u=this.styleDictionary[E];if(u&&!o(u[a])&&!l(u[a]))return u[a]}else if(!o(E[a])&&!l(E[a]))return E[a]}return this.defaultStyle&&this.defaultStyle[a]},Y.exports=h},7601:function(Y,I,n){"use strict";var c=n(6513);function i(h){var a=parseFloat(h);if("number"==typeof a&&!isNaN(a))return a}function o(h){var a;try{a=new c.XmlDocument(h)}catch(g){throw new Error("SVGMeasure: "+g)}if("svg"!==a.name)throw new Error("SVGMeasure: expected document");return a}function l(){}l.prototype.measureSVG=function(h){var a=o(h),g=i(a.attr.width),E=i(a.attr.height);if((null==g||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==g&&(g=i(u[2])),null==E&&(E=i(u[3]))}return{width:g,height:E}},l.prototype.writeDimensions=function(h,a){var g=o(h);return g.attr.width=""+a.width,g.attr.height=""+a.height,g.toString()},Y.exports=l},9342:function(Y,I,n){"use strict";var c=n(4498),i=n(6225).isFunction,o=n(6225).isNumber;function l(h){this.tableNode=h}l.prototype.beginTable=function(h){var a,g,E=this;this.offsets=(a=this.tableNode)._offsets,this.layout=a._layout,g=h.context().availableWidth-this.offsets.total,c.buildColumnWidths(a.table.widths,g),this.tableWidth=a._offsets.total+function u(){var f=0;return a.table.widths.forEach(function(B){f+=B._calcWidth}),f}(),this.rowSpanData=function C(){var f=[],B=0,w=0;f.push({left:0,rowSpan:0});for(var Q=0,p=E.tableNode.table.body[0].length;Q0&&D(B+d,Q,0,p.border[0]),void 0!==p.border[2]&&D(B+d,Q+m-1,2,p.border[2]);for(var v=0;v0&&D(B,Q+v,1,p.border[1]),void 0!==p.border[3]&&D(B+S-1,Q+v,3,p.border[3])}}function D(U,T,F,R){var L=f[U][T];L.border=L.border||{},L.border[F]=R}}(this.tableNode.table.body),this.drawHorizontalLine(0,h)},l.prototype.onRowBreak=function(h,a){var g=this;return function(){var E=g.rowPaddingTop+(g.headerRows?0:g.topLineWidth);a.context().availableHeight-=g.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,g){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,B=this.tableNode.table.body,S=0,m=this.rowSpanData.length;S0&&(T=(w=B[h-1][S]).border?w.border[3]:this.layout.defaultBorder)&&w.borderColor&&(D=w.borderColor[3]),hR;)f.width+=this.rowSpanData[S+R++].width||0;S+=R-1}else if(w&&w.colSpan&&T){for(;w.colSpan>R;)f.width+=this.rowSpanData[S+R++].width||0;S+=R-1}else if(Q&&Q.colSpan&&U){for(;Q.colSpan>R;)f.width+=this.rowSpanData[S+R++].width||0;S+=R-1}else f.width+=this.rowSpanData[S].width||0}var L=(g||0)+e;v&&f&&f.width&&(a.addVector({type:"line",x1:f.left,x2:f.left+f.width,y1:L,y2:L,lineWidth:E,dash:C,lineColor:D},!1,g),f=null,D=null,w=null,Q=null,p=null)}a.context().moveDown(E)}},l.prototype.drawVerticalLine=function(h,a,g,E,u,C,e){var f=this.layout.vLineWidth(E,this.tableNode);if(0!==f){var w,B=this.layout.vLineStyle(E,this.tableNode);B&&B.dash&&(w=B.dash);var p,S,m,Q=this.tableNode.table.body;if(E>0&&(p=Q[C][e])&&p.borderColor&&(p.border?p.border[2]:this.layout.defaultBorder)&&(m=p.borderColor[2]),null==m&&E0&&$--}return J.push({x:C.rowSpanData[C.rowSpanData.length-1].left,index:C.rowSpanData.length-1}),J}(),w=[],Q=g&&g.length>0,p=this.tableNode.table.body;if(w.push({y0:this.rowTopY,page:Q?g[0].prevPage:e}),Q)for(u=0,E=g.length;u0&&!this.headerRows,T=U?0:this.topLineWidth,F=w[d].y0,R=w[d].y1;for(D&&(R+=this.rowPaddingBottom),a.context().page!=w[d].page&&(a.context().page=w[d].page,this.reservedAtBottom=0),u=0,E=B.length;u0&&!L&&(L=(AA=p[h][aA-1]).border?AA.border[2]:this.layout.defaultBorder),aA+11)for(var ZA=1;ZA1)for(ZA=1;ZA0&&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)},Y.exports=l},3497:function(Y,I,n){"use strict";var c=n(6225).isArray,i=n(6225).isPattern,o=n(6225).getPattern;function h(E,u,C,e){var w=E.inlines[0],Q=function f(){for(var BA=0,yA=0,xA=E.inlines.length;yABA?yA:BA;return E.inlines[BA]}(),p=function B(){for(var BA=0,yA=0,xA=E.inlines.length;yA=0&&i.splice(o,1)}},I.prototype.emit=function(n){var c=Array.prototype.slice.call(arguments,1),i=this.events[n];!i||i.forEach(function(o){o.apply(this,c)})},I.prototype.auto=function(n,c,i){this.startTracking(n,c),i(),this.stopTracking(n,c)},Y.exports=I},2480:function(){},5832:function(){},9862:function(){},964:function(){},3083:function(Y,I,n){"use strict";var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;Y.exports=function(){for(var l=[],h=0;h{var Fr=function(Nt){"use strict";var Pn,ht=Object.prototype,qt=ht.hasOwnProperty,A="function"==typeof Symbol?Symbol:{},wt=A.iterator||"@@iterator",Y=A.asyncIterator||"@@asyncIterator",I=A.toStringTag||"@@toStringTag";function n(F,R,L){return Object.defineProperty(F,R,{value:L,enumerable:!0,configurable:!0,writable:!0}),F[R]}try{n({},"")}catch(F){n=function(R,L,Z){return R[L]=Z}}function c(F,R,L,Z){var AA=Object.create((R&&R.prototype instanceof E?R:E).prototype),lA=new D(Z||[]);return AA._invoke=function S(F,R,L){var Z=o;return function(AA,lA){if(Z===h)throw new Error("Generator is already running");if(Z===a){if("throw"===AA)throw lA;return T()}for(L.method=AA,L.arg=lA;;){var pA=L.delegate;if(pA){var cA=m(pA,L);if(cA){if(cA===g)continue;return cA}}if("next"===L.method)L.sent=L._sent=L.arg;else if("throw"===L.method){if(Z===o)throw Z=a,L.arg;L.dispatchException(L.arg)}else"return"===L.method&&L.abrupt("return",L.arg);Z=h;var gA=i(F,R,L);if("normal"===gA.type){if(Z=L.done?a:l,gA.arg===g)continue;return{value:gA.arg,done:L.done}}"throw"===gA.type&&(Z=a,L.method="throw",L.arg=gA.arg)}}}(F,L,lA),AA}function i(F,R,L){try{return{type:"normal",arg:F.call(R,L)}}catch(Z){return{type:"throw",arg:Z}}}Nt.wrap=c;var o="suspendedStart",l="suspendedYield",h="executing",a="completed",g={};function E(){}function u(){}function C(){}var e={};n(e,wt,function(){return this});var f=Object.getPrototypeOf,B=f&&f(f(U([])));B&&B!==ht&&qt.call(B,wt)&&(e=B);var w=C.prototype=E.prototype=Object.create(e);function Q(F){["next","throw","return"].forEach(function(R){n(F,R,function(L){return this._invoke(R,L)})})}function p(F,R){function L(AA,lA,pA,cA){var gA=i(F[AA],F,lA);if("throw"!==gA.type){var BA=gA.arg,yA=BA.value;return yA&&"object"==typeof yA&&qt.call(yA,"__await")?R.resolve(yA.__await).then(function(xA){L("next",xA,pA,cA)},function(xA){L("throw",xA,pA,cA)}):R.resolve(yA).then(function(xA){BA.value=xA,pA(BA)},function(xA){return L("throw",xA,pA,cA)})}cA(gA.arg)}var Z;this._invoke=function aA(AA,lA){function pA(){return new R(function(cA,gA){L(AA,lA,cA,gA)})}return Z=Z?Z.then(pA,pA):pA()}}function m(F,R){var L=F.iterator[R.method];if(L===Pn){if(R.delegate=null,"throw"===R.method){if(F.iterator.return&&(R.method="return",R.arg=Pn,m(F,R),"throw"===R.method))return g;R.method="throw",R.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var Z=i(L,F.iterator,R.arg);if("throw"===Z.type)return R.method="throw",R.arg=Z.arg,R.delegate=null,g;var aA=Z.arg;return aA?aA.done?(R[F.resultName]=aA.value,R.next=F.nextLoc,"return"!==R.method&&(R.method="next",R.arg=Pn),R.delegate=null,g):aA:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,g)}function d(F){var R={tryLoc:F[0]};1 in F&&(R.catchLoc=F[1]),2 in F&&(R.finallyLoc=F[2],R.afterLoc=F[3]),this.tryEntries.push(R)}function v(F){var R=F.completion||{};R.type="normal",delete R.arg,F.completion=R}function D(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(d,this),this.reset(!0)}function U(F){if(F){var R=F[wt];if(R)return R.call(F);if("function"==typeof F.next)return F;if(!isNaN(F.length)){var L=-1,Z=function aA(){for(;++L=0;--Z){var aA=this.tryEntries[Z],AA=aA.completion;if("root"===aA.tryLoc)return L("end");if(aA.tryLoc<=this.prev){var lA=qt.call(aA,"catchLoc"),pA=qt.call(aA,"finallyLoc");if(lA&&pA){if(this.prev=0;--L){var Z=this.tryEntries[L];if(Z.tryLoc<=this.prev&&qt.call(Z,"finallyLoc")&&this.prev=0;--R){var L=this.tryEntries[R];if(L.finallyLoc===F)return this.complete(L.completion,L.afterLoc),v(L),g}},catch:function(F){for(var R=this.tryEntries.length-1;R>=0;--R){var L=this.tryEntries[R];if(L.tryLoc===F){var Z=L.completion;if("throw"===Z.type){var aA=Z.arg;v(L)}return aA}}throw new Error("illegal catch attempt")},delegateYield:function(F,R,L){return this.delegate={iterator:U(F),resultName:R,nextLoc:L},"next"===this.method&&(this.arg=Pn),g}},Nt}(oi.exports);try{regeneratorRuntime=Fr}catch(Nt){"object"==typeof globalThis?globalThis.regeneratorRuntime=Fr:Function("r","regeneratorRuntime = r")(Fr)}},7757:(oi,Fr,Nt)=>{oi.exports=Nt(4979)}}]); \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 46b04777..a6825064 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/frontend/main.a45f905361ad3a22.js b/frontend/main.a45f905361ad3a22.js new file mode 100644 index 00000000..5cafc369 --- /dev/null +++ b/frontend/main.a45f905361ad3a22.js @@ -0,0 +1 @@ +var wL=Object.defineProperty,LL=Object.defineProperties,SL=Object.getOwnPropertyDescriptors,JC=Object.getOwnPropertySymbols,EL=Object.prototype.hasOwnProperty,TL=Object.prototype.propertyIsEnumerable,XC=(Fe,Y,p)=>Y in Fe?wL(Fe,Y,{enumerable:!0,configurable:!0,writable:!0,value:p}):Fe[Y]=p,Us=(Fe,Y)=>{for(var p in Y||(Y={}))EL.call(Y,p)&&XC(Fe,p,Y[p]);if(JC)for(var p of JC(Y))TL.call(Y,p)&&XC(Fe,p,Y[p]);return Fe},$C=(Fe,Y)=>LL(Fe,SL(Y));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(Fe,Y,p)=>{"use strict";p.d(Y,{Acd:()=>D2,Aq:()=>W3,B$L:()=>gC,BDt:()=>Ms,CgH:()=>Xm,DL8:()=>jm,FJU:()=>DC,FVb:()=>kC,FlN:()=>cl,FpQ:()=>Gm,HLz:()=>u4,KOR:()=>p5,Krp:()=>Ch,Mdf:()=>Fs,N2j:()=>pi,NBC:()=>qC,OS1:()=>U1,Psp:()=>xi,Sbq:()=>_,Ssp:()=>Vm,SuH:()=>fg,TmZ:()=>rl,USL:()=>Tf,Vfw:()=>B,X5K:()=>BC,XsY:()=>Du,aj4:()=>lf,b7W:()=>Dl,byT:()=>kh,co4:()=>bu,dLy:()=>L1,dT$:()=>_0,eHv:()=>lC,gNZ:()=>SC,hkK:()=>bC,hnx:()=>MC,kXW:()=>Eu,kZ_:()=>b3,koM:()=>Es,mh3:()=>v0,nNP:()=>r6,q7m:()=>Js,qO$:()=>h0,r8p:()=>Jf,sqG:()=>M6,uli:()=>xh,vqe:()=>qd,wn1:()=>Hh,wyP:()=>KC,xf3:()=>tg});var _={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"]},Ms={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"]},pi={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"]},D2={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"]},Es={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"]},U1={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"]},M6={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"]},h0={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"]},_0={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"]},v0={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"]},b3={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"]},rl={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"]},Js={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"]},cl={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"]},p5={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"]},Fs={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"]},W3={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"]},u4={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"]},Dl={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"]},qd={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"]},Ch={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"]},xh={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"]},r6={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"]},kh={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"]},Hh={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"]},bu={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"]},lf={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"]},Eu={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"]},Du={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"]},Tf={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"]},Jf={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"]},xi={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"]},L1={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"]},Vm={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"]},Gm={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"]},jm={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"]},Xm={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"]},bC={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:(Fe,Y,p)=>{"use strict";p.d(Y,{$A:()=>B,$W:()=>j,BL:()=>v,CN:()=>b,CX:()=>d,EG:()=>D,EK:()=>ce,El:()=>X,HI:()=>me,HJ:()=>A,I8:()=>w,JK:()=>Ce,Lu:()=>L,Ly:()=>lt,Ni:()=>f,Nr:()=>Re,OG:()=>n,QJ:()=>ge,RX:()=>h,Rd:()=>we,SN:()=>P,Sf:()=>C,TM:()=>i,UH:()=>Ie,UR:()=>c,VD:()=>se,WM:()=>be,WO:()=>r,Wi:()=>F,X3:()=>ee,YP:()=>Q,YX:()=>I,Z8:()=>ne,ZH:()=>$,Zu:()=>ye,_9:()=>Dt,_E:()=>U,aL:()=>Ge,as:()=>_,cQ:()=>J,d7:()=>ct,dh:()=>W,e9:()=>ut,eM:()=>Ae,en:()=>di,g3:()=>k,g6:()=>ve,i9:()=>ue,kL:()=>u,n7:()=>N,oV:()=>x,oo:()=>a,pW:()=>E,u0:()=>oe,uT:()=>Le,v_:()=>z,xH:()=>M,xS:()=>S,yl:()=>Te,z:()=>te});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),M=(0,t.PH)(e.AB.RESET_CLN_STORE,(0,t.Ky)()),a=(0,t.PH)(e.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,t.Ky)()),b=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),d=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),P=(0,t.PH)(e.AB.FETCH_FEES_CLN),h=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),A=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),D=(0,t.PH)(e.AB.FETCH_BALANCE_CLN),L=(0,t.PH)(e.AB.SET_BALANCE_CLN,(0,t.Ky)()),k=(0,t.PH)(e.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),S=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),U=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),j=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),ne=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),X=(0,t.PH)(e.AB.SAVE_NEW_PEER_CLN,(0,t.Ky)()),ee=((0,t.PH)(e.AB.NEWLY_ADDED_PEER_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.ADD_PEER_CLN,(0,t.Ky)())),te=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),ce=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),J=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),me=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),x=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),r=(0,t.PH)(e.AB.GET_QUERY_ROUTES_CLN,(0,t.Ky)()),u=(0,t.PH)(e.AB.SET_QUERY_ROUTES_CLN,(0,t.Ky)()),c=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),_=(0,t.PH)(e.AB.SET_CHANNELS_CLN,(0,t.Ky)()),E=(0,t.PH)(e.AB.UPDATE_CHANNEL_CLN,(0,t.Ky)()),I=(0,t.PH)(e.AB.SAVE_NEW_CHANNEL_CLN,(0,t.Ky)()),v=(0,t.PH)(e.AB.CLOSE_CHANNEL_CLN,(0,t.Ky)()),n=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),C=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),B=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),N=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),z=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),oe=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),ge=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),be=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),Re=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),we=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),Q=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),Ge=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),ve=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),F=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),lt=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),Ie=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),Ae=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),se=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),Te=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),ye=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),W=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),$=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),ue=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),Ce=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),Le=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),ct=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),ut=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),Dt=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),di=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)())},4947:(Fe,Y,p)=>{"use strict";p.d(Y,{J:()=>J});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),b=p(4004),d=p(262),P=p(2340),h=p(1786),A=p(5566),w=p(7731),D=p(7861),L=p(429),k=p(9828),S=p(1462),U=p(5e3),Z=p(8138),j=p(5620),ne=p(5986),X=p(62),de=p(5043),ee=p(1402),te=p(7998),ce=p(9808);let J=(()=>{class me{constructor(i,r,u,c,_,E,I,v,n){this.actions=i,this.httpClient=r,this.store=u,this.sessionService=c,this.commonService=_,this.logger=E,this.router=I,this.wsService=v,this.location=n,this.CHILD_API_URL=P.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INFO_CLN),(0,M.z)(C=>(this.flgInitialized=!1,this.store.dispatch((0,D.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,L.Ni)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.store.dispatch((0,D.ac)({payload:w.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+P.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,b.U)(B=>(this.logger.info(B),B.chains&&B.chains.length&&B.chains[0]&&"object"==typeof B.chains[0]&&B.chains[0].hasOwnProperty("chain")&&(null==B?void 0:B.chains[0].chain)&&(null==B?void 0:B.chains[0].chain.toLowerCase().indexOf("bitcoin"))<0?(this.store.dispatch((0,L.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,D.ts)()),setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.pg.LOGOUT}):(this.initializeRemainingData(B,C.payload.loadPage),this.store.dispatch((0,L.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.GET_NODE_INFO})),{type:w.AB.SET_INFO_CLN,payload:B||{}}))),(0,d.K)(B=>{const N=this.commonService.extractErrorCode(B),z="ETIMEDOUT"===N?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(B);return this.router.navigate(["/error"],{state:{errorCode:N,errorMessage:z}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:N,error:z}),(0,f.of)({type:w.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEES_CLN),(0,M.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API))),(0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.Ni)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEES_CLN,payload:C||{}})),(0,d.K)(C=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",C),(0,f.of)({type:w.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEE_RATES_CLN),(0,M.z)(C=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchFeeRates"+C.payload,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/feeRates/"+C.payload).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"FetchFeeRates"+C.payload,status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEE_RATES_CLN,payload:B||{}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchFeeRates"+C.payload,w.m6.NO_SPINNER,"Fetching Fee Rates Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.BALANCE_API))),(0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.Ni)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_BALANCE_CLN,payload:C||{}})),(0,d.K)(C=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",C),(0,f.of)({type:w.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:C||{}})),(0,d.K)(C=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",C),(0,f.of)({type:w.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_NEW_ADDRESS_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"?type="+C.payload.addressCode).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.AB.SET_NEW_ADDRESS_CLN,payload:B&&B.address?B.address:{}})),(0,d.K)(B=>(this.handleErrorWithAlert("GenerateNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"?type="+C.payload.addressId,B),(0,f.of)({type:w.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_NEW_ADDRESS_CLN),(0,b.U)(C=>(this.logger.info(C.payload),C.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PEERS_CLN),(0,M.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERS_API).pipe((0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.Ni)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PEERS_CLN,payload:C||[]})),(0,d.K)(C=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",C),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_PEER_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERS_API,{id:C.payload.id}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,L.Z8)({payload:B||[]})),{type:w.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:B.find(N=>0===C.payload.id.indexOf(N.id?N.id:""))}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DETACH_PEER_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.PEERS_API+"/"+C.payload.id+"?force="+C.payload.force).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,D.jW)({payload:"Peer Disconnected Successfully!"})),{type:w.AB.REMOVE_PEER_CLN,payload:{id:C.payload.id}})),(0,d.K)(B=>(this.handleErrorWithAlert("PeerDisconnect",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+P.NZ.PEERS_API+"/"+C.payload.id,B),(0,f.of)({type:w.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_CHANNELS_CLN),(0,M.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listChannels"))),(0,b.U)(C=>{this.logger.info(C),this.store.dispatch((0,L.Ni)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}}));const B={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return C.forEach(N=>{"CHANNELD_NORMAL"===N.state?N.connected?B.activeChannels.push(N):B.inactiveChannels.push(N):B.pendingChannels.push(N)}),{type:w.AB.SET_CHANNELS_CLN,payload:B}}),(0,d.K)(C=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",C),(0,f.of)({type:w.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_CHANNEL_CLN),(0,M.z)(C=>{this.store.dispatch((0,D.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}}));const B={id:C.payload.peerId,satoshis:C.payload.satoshis,feeRate:C.payload.feeRate,announce:C.payload.announce};return C.payload.minconf&&(B.minconf=C.payload.minconf),C.payload.utxos&&(B.utxos=C.payload.utxos),C.payload.requestAmount&&(B.request_amt=C.payload.requestAmount),C.payload.compactLease&&(B.compact_lease=C.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API,B).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.Ly)()),{type:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(N=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",N),(0,f.of)({type:w.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.UPDATE_CHANNEL_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/setChannelFee",{id:C.payload.channelId,base:C.payload.baseFeeMsat,ppm:C.payload.feeRate}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,D.jW)("all"===C.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:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(B=>(this.handleErrorWithAlert("UpdateChannel",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API,B),(0,f.of)({type:w.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CLOSE_CHANNEL_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:C.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/"+C.payload.channelId+(C.payload.force?"?force="+C.payload.force:"")).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,D.uO)({payload:C.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.g3)()),this.store.dispatch((0,D.jW)({payload:"Channel Closed Successfully!"})),{type:w.AB.REMOVE_CHANNEL_CLN,payload:C.payload})),(0,d.K)(N=>(this.handleErrorWithAlert("CloseChannel",C.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+P.NZ.CHANNELS_API,N),(0,f.of)({type:w.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAYMENTS_CLN),(0,M.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PAYMENTS_API))),(0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.Ni)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAYMENTS_CLN,payload:C||[]})),(0,d.K)(C=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",C),(0,f.of)({type:w.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_INVOICE_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,L.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.OFFERS_API+"/fetchOfferInvoice",C.payload).pipe((0,b.U)(B=>{this.logger.info(B),setTimeout(()=>{this.store.dispatch((0,L.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,L.VD)({payload:B||{}}))},500)}),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",B),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_OFFER_INVOICE_CLN),(0,b.U)(C=>(this.logger.info(C.payload),C.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SEND_PAYMENT_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:C.payload.uiMessage})),this.store.dispatch((0,L.Ni)({payload:{action:"SendPayment",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PAYMENTS_API,C.payload).pipe((0,b.U)(B=>{this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}}));let N="Payment Sent Successfully!";B.saveToDBError&&(N="Payment Sent Successfully but Offer Saving to Database Failed."),B.saveToDBResponse&&"NA"!==B.saveToDBResponse&&(this.store.dispatch((0,L.e9)({payload:B.saveToDBResponse})),N="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.cQ)()),this.store.dispatch((0,D.uO)({payload:C.payload.uiMessage})),this.store.dispatch((0,D.jW)({payload:N})),this.store.dispatch((0,L.TM)({payload:B.paymentResponse}))},1e3)}),(0,d.K)(B=>(this.logger.error("Error: "+JSON.stringify(B)),C.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",C.payload.uiMessage,"Send Payment Failed.",B):this.handleErrorWithAlert("SendPayment",C.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API,B),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_QUERY_ROUTES_CLN),(0,M.z)(C=>(this.store.dispatch((0,L.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/getRoute/"+C.payload.destPubkey+"/"+C.payload.amount).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.COMPLETED}})),{type:w.AB.SET_QUERY_ROUTES_CLN,payload:B})),(0,d.K)(B=>(this.store.dispatch((0,L.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/getRoute/"+C.payload.destPubkey+"/"+C.payload.amount,B),(0,f.of)({type:w.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_QUERY_ROUTES_CLN),(0,b.U)(C=>C.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.PEER_LOOKUP_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/listNode/"+C.payload).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEARCHING_NODE})),{type:w.AB.SET_LOOKUP_CLN,payload:B})),(0,d.K)(B=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/listNode/"+C.payload,B),(0,f.of)({type:w.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CHANNEL_LOOKUP_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:C.payload.uiMessage})),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/listChannel/"+C.payload.shortChannelID).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:C.payload.uiMessage})),{type:w.AB.SET_LOOKUP_CLN,payload:B})),(0,d.K)(B=>(C.payload.showError?this.handleErrorWithAlert("Lookup",C.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/listChannel/"+C.payload.shortChannelID,B):this.store.dispatch((0,D.uO)({payload:C.payload.uiMessage})),this.store.dispatch((0,L.v_)({payload:[]})),(0,f.of)({type:w.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.INVOICE_LOOKUP_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"?label="+C.payload).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEARCHING_INVOICE})),B.invoices&&B.invoices.length&&B.invoices.length>0&&this.store.dispatch((0,L.aL)({payload:B.invoices[0]})),{type:w.AB.SET_LOOKUP_CLN,payload:B.invoices&&B.invoices.length&&B.invoices.length>0?B.invoices[0]:B})),(0,d.K)(B=>(this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",B),this.store.dispatch((0,D.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:w.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_LOOKUP_CLN),(0,b.U)(C=>(this.logger.info(C.payload),C.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_FORWARDING_HISTORY_CLN),(0,M.z)(C=>{const B=C.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,L.Ni)({payload:{action:"FetchForwardingHistory"+B,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listForwards?status="+C.payload.status).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,L.Ni)({payload:{action:"FetchForwardingHistory"+B,status:w.Bn.COMPLETED}})),C.payload.status===w.OO.FAILED?this.store.dispatch((0,L.QJ)({payload:{status:w.OO.FAILED,totalForwards:N.length,listForwards:N}})):C.payload.status===w.OO.LOCAL_FAILED?this.store.dispatch((0,L.QJ)({payload:{status:w.OO.LOCAL_FAILED,totalForwards:N.length,listForwards:N}})):C.payload.status===w.OO.SETTLED&&this.store.dispatch((0,L.QJ)({payload:{status:w.OO.SETTLED,totalForwards:N.length,listForwards:N}})),{type:w.pg.VOID})),(0,d.K)(N=>(this.handleErrorWithAlert("FetchForwardingHistory"+B,w.m6.NO_SPINNER,"Get "+C.payload.status+" Forwarding History Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listForwards?status="+C.payload.status,N),(0,f.of)({type:w.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_EXPIRED_INVOICE_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.INVOICES_API+(C.payload?"?maxexpiry="+C.payload:"")).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,D.uO)({payload:w.m6.DELETE_INVOICE})),this.store.dispatch((0,D.jW)({payload:"Invoices Deleted Successfully!"})),{type:w.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(N=>(this.handleErrorWithAlert("DeleteInvoices",w.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+P.NZ.INVOICES_API,N),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_INVOICE_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.ADD_INVOICE})),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.INVOICES_API,{label:C.payload.label,amount:C.payload.amount,description:C.payload.description,expiry:C.payload.expiry,private:C.payload.private}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.ADD_INVOICE})),B.msatoshi=C.payload.amount,B.label=C.payload.label,B.expires_at=Math.round((new Date).getTime()/1e3+C.payload.expiry),B.description=C.payload.description,B.status="unpaid",setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{invoice:B,newlyAdded:!0,component:A.y}}}))},100),{type:w.AB.ADD_INVOICE_CLN,payload:B})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.m6.ADD_INVOICE,"Add Invoice Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_OFFER_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.CREATE_OFFER})),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.OFFERS_API,{amount:C.payload.amount,description:C.payload.description,vendor:C.payload.vendor}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{offer:B,newlyAdded:!0,component:S.k}}}))},100),{type:w.AB.ADD_OFFER_CLN,payload:B})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SaveNewOffer",w.m6.CREATE_OFFER,"Create Offer Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INVOICES_CLN),(0,M.z)(C=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"?num_max_invoices="+(C.payload.num_max_invoices?C.payload.num_max_invoices:1e6)+"&index_offset="+(C.payload.index_offset?C.payload.index_offset:0)+"&reversed="+(!C.payload.reversed||C.payload.reversed)).pipe((0,b.U)(oe=>(this.logger.info(oe),this.store.dispatch((0,L.Ni)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),{type:w.AB.SET_INVOICES_CLN,payload:oe})),(0,d.K)(oe=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",oe),(0,f.of)({type:w.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFERS_CLN),(0,M.z)(C=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchOffers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.OFFERS_API).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"FetchOffers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFERS_CLN,payload:B.offers?B.offers:[]})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchOffers",w.m6.NO_SPINNER,"Fetching Offers Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DISABLE_OFFER_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,L.Ni)({payload:{action:"DisableOffer",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.OFFERS_API+"/"+C.payload.offer_id).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"DisableOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,D.jW)({payload:"Offer Disabled Successfully!"})),{type:w.AB.UPDATE_OFFER_CLN,payload:{offer:B}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("DisableOffer",w.m6.DISABLE_OFFER,"Disabling Offer Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,M.z)(C=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmarks").pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFER_BOOKMARKS_CLN,payload:B||[]})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_OFFER_BOOKMARK_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,L.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmark/"+C.payload.bolt12).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,D.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:C.payload.bolt12}})),(0,d.K)(B=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmark/"+C.payload.bolt12,B),(0,f.of)({type:w.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_CHANNEL_TRANSACTION_CLN),(0,M.z)(C=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,L.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.ON_CHAIN_API,C.payload).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.Ly)()),{type:w.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:B})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_UTXOS_CLN),(0,M.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/utxos"))),(0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),{type:w.AB.SET_UTXOS_CLN,payload:C.outputs||[]})),(0,d.K)(C=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",C),(0,f.of)({type:w.pg.VOID}))))),this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(C=>{C.FetchInfo.status!==w.Bn.COMPLETED&&C.FetchInfo.status!==w.Bn.ERROR||C.FetchFees.status!==w.Bn.COMPLETED&&C.FetchFees.status!==w.Bn.ERROR||C.FetchChannels.status!==w.Bn.COMPLETED&&C.FetchChannels.status!==w.Bn.ERROR||C.FetchBalance.status!==w.Bn.COMPLETED&&C.FetchBalance.status!==w.Bn.ERROR||C.FetchLocalRemoteBalance.status!==w.Bn.COMPLETED&&C.FetchLocalRemoteBalance.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,D.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(C=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(C)),C)switch(C.event){case w.nM.INVOICE:this.logger.info(C),C&&C.data&&C.data.label&&this.store.dispatch((0,L.aL)({payload:C.data}));break;case w.nM.SEND_PAYMENT:case w.nM.BLOCK_HEIGHT:this.logger.info(C);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(C))}})}initializeRemainingData(i,r){this.sessionService.setItem("clUnlocked","true");const u={identity_pubkey:i.id,alias:i.alias,testnet:"testnet"===i.network.toLowerCase(),chains:i.chains,uris:i.uris,version:i.version,api_version:i.api_version,numberOfPendingChannels:i.num_pending_channels};this.store.dispatch((0,D.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,D._V)({payload:u}));let c=this.location.path();c.includes("/lnd/")?c=c.replace("/lnd/","/cln/"):c.includes("/ecl/")&&(c=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,L.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,L.SN)()),this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.g3)()),this.store.dispatch((0,L.HJ)({payload:"perkw"})),this.store.dispatch((0,L.HJ)({payload:"perkb"})),this.store.dispatch((0,L.$W)()),this.store.dispatch((0,L.Ly)()),this.store.dispatch((0,L.cQ)())}handleErrorWithoutAlert(i,r,u,c){if(this.logger.error("ERROR IN: "+i+"\n"+JSON.stringify(c)),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,D.uO)({payload:r}));const _=this.commonService.extractErrorMessage(c,u);this.store.dispatch((0,L.Ni)({payload:{action:i,status:w.Bn.ERROR,statusCode:c.status.toString(),message:_}}))}}handleErrorWithAlert(i,r,u,c,_){if(this.logger.error(_),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,D.uO)({payload:r}));const E=this.commonService.extractErrorMessage(_);this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:_.status,message:E,URL:c},component:h.H}}})),this.store.dispatch((0,L.Ni)({payload:{action:i,status:w.Bn.ERROR,statusCode:_.status.toString(),message:E,URL:c}}))}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}}return me.\u0275fac=function(i){return new(i||me)(U.LFG(t.eX),U.LFG(Z.eN),U.LFG(j.yh),U.LFG(ne.m),U.LFG(X.v),U.LFG(de.mQ),U.LFG(ee.F0),U.LFG(te.d),U.LFG(ce.Ye))},me.\u0275prov=U.Yz7({token:me,factory:me.\u0275fac}),me})()},9828:(Fe,Y,p)=>{"use strict";p.d(Y,{Ao:()=>ee,Bo:()=>Z,EQ:()=>J,Hz:()=>te,JG:()=>h,OL:()=>X,PP:()=>d,Rn:()=>S,T4:()=>L,Wi:()=>P,Wj:()=>U,Y_:()=>ce,ZW:()=>k,ey:()=>M,gc:()=>D,hx:()=>w,jK:()=>de,lK:()=>ne,lw:()=>f,xQ:()=>j,yA:()=>b,zm:()=>A});var t=p(5620);const e=(0,t.ZF)("cln"),f=(0,t.P1)(e,x=>x.nodeSettings),M=(0,t.P1)(e,x=>x.information),b=((0,t.P1)(e,x=>x.apisCallStatus.FetchInfo),(0,t.P1)(e,x=>x.apisCallStatus)),d=(0,t.P1)(e,x=>({payments:x.payments,apiCallStatus:x.apisCallStatus.FetchPayments})),P=(0,t.P1)(e,x=>({peers:x.peers,apiCallStatus:x.apisCallStatus.FetchPeers})),h=(0,t.P1)(e,x=>({fees:x.fees,apiCallStatus:x.apisCallStatus.FetchFees})),A=(0,t.P1)(e,x=>({feeRatesPerKB:x.feeRatesPerKB,apiCallStatus:x.apisCallStatus.FetchFeeRatesperkb})),w=(0,t.P1)(e,x=>({feeRatesPerKW:x.feeRatesPerKW,apiCallStatus:x.apisCallStatus.FetchFeeRatesperkw})),D=(0,t.P1)(e,x=>({listInvoices:x.invoices,apiCallStatus:x.apisCallStatus.FetchInvoices})),L=(0,t.P1)(e,x=>({utxos:x.utxos,apiCallStatus:x.apisCallStatus.FetchUTXOs})),k=(0,t.P1)(e,x=>({activeChannels:x.activeChannels,pendingChannels:x.pendingChannels,inactiveChannels:x.inactiveChannels,apiCallStatus:x.apisCallStatus.FetchChannels})),S=(0,t.P1)(e,x=>({balance:x.balance,apiCallStatus:x.apisCallStatus.FetchBalance})),U=(0,t.P1)(e,x=>({localRemoteBalance:x.localRemoteBalance,apiCallStatus:x.apisCallStatus.FetchLocalRemoteBalance})),Z=(0,t.P1)(e,x=>({forwardingHistory:x.forwardingHistory,apiCallStatus:x.apisCallStatus.FetchForwardingHistoryS})),j=(0,t.P1)(e,x=>({failedForwardingHistory:x.failedForwardingHistory,apiCallStatus:x.apisCallStatus.FetchForwardingHistoryF})),ne=(0,t.P1)(e,x=>({localFailedForwardingHistory:x.localFailedForwardingHistory,apiCallStatus:x.apisCallStatus.FetchForwardingHistoryL})),X=(0,t.P1)(e,x=>({information:x.information,nodeSettings:x.nodeSettings,balance:x.balance})),de=(0,t.P1)(e,x=>({information:x.information,balance:x.balance,numPeers:x.peers.length})),ee=(0,t.P1)(e,x=>({information:x.information,balance:x.balance})),te=(0,t.P1)(e,x=>({information:x.information,nodeSettings:x.nodeSettings,apisCallStatus:[x.apisCallStatus.FetchInfo,x.apisCallStatus.FetchForwardingHistoryS]})),ce=(0,t.P1)(e,x=>({offers:x.offers,apiCallStatus:x.apisCallStatus.FetchOffers})),J=(0,t.P1)(e,x=>({offersBookmarks:x.offersBookmarks,apiCallStatus:x.apisCallStatus.FetchOfferBookmarks}))},5566:(Fe,Y,p)=>{"use strict";p.d(Y,{y:()=>lt});var t=p(8966),e=p(801),f=p(7579),M=p(2722),a=p(7731),b=p(9828),d=p(5e3),P=p(5043),h=p(62),A=p(7261),w=p(5620),D=p(7093),L=p(9808),k=p(3322),S=p(159),U=p(9224),Z=p(9444),j=p(7238),ne=p(7423),X=p(4834),de=p(773),ee=p(3390),te=p(6895);function ce(Ie,Ae){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const se=d.oxw();d.Q6J("value",(null==se.invoice?null:se.invoice.bolt11)||(null==se.invoice?null:se.invoice.bolt12))("size",se.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 se=d.oxw();d.Q6J("ngClass",d.VKq(1,me,se.screenSize===se.screenSizeEnum.XS))}}function i(Ie,Ae){if(1&Ie&&d._UZ(0,"span",36),2&Ie){const se=d.oxw();d.Q6J("ngClass",d.VKq(1,me,se.screenSize===se.screenSizeEnum.XS))}}function r(Ie,Ae){if(1&Ie&&d._UZ(0,"span",37),2&Ie){const se=d.oxw();d.Q6J("ngClass",d.VKq(1,me,se.screenSize===se.screenSizeEnum.XS))}}function u(Ie,Ae){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const se=d.oxw();d.Q6J("value",(null==se.invoice?null:se.invoice.bolt11)||(null==se.invoice?null:se.invoice.bolt12))("size",se.qrWidth)("errorCorrectionLevel","L")}}function c(Ie,Ae){1&Ie&&(d.TgZ(0,"span",38),d._uU(1,"QR Code Not Applicable"),d.qZA())}function _(Ie,Ae){1&Ie&&d._UZ(0,"mat-divider",39),2&Ie&&d.Q6J("inset",!0)}function E(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 se=d.oxw();d.xp6(2),d.Q6J("icon",se.faExclamationTriangle),d.xp6(2),d.Oqu(null==se.invoice?null:se.invoice.warning_capacity)}}function I(Ie,Ae){1&Ie&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function v(Ie,Ae){1&Ie&&d._UZ(0,"span",47)}const n=function(){return[]};function C(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,v,1,0,"span",46),d.qZA()()),2&Ie){const se=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,(null==se.invoice?null:se.invoice.msatoshi_received)/1e3)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,n).constructor(35))}}function B(Ie,Ae){if(1&Ie&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Ie){const se=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,(null==se.invoice?null:se.invoice.msatoshi_received)/1e3)," Sats")}}function N(Ie,Ae){if(1&Ie&&(d.ynx(0),d.YNc(1,C,6,5,"div",42),d.YNc(2,B,3,3,"div",23),d.BQk()),2&Ie){const se=d.oxw();d.xp6(1),d.Q6J("ngIf",se.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!se.flgInvoicePaid)}}function z(Ie,Ae){1&Ie&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function oe(Ie,Ae){1&Ie&&d._UZ(0,"mat-spinner",49),2&Ie&&d.Q6J("diameter",20)}function ge(Ie,Ae){if(1&Ie&&(d.ynx(0),d.YNc(1,z,2,0,"span",23),d.YNc(2,oe,1,1,"mat-spinner",48),d.BQk()),2&Ie){const se=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==se.invoice?null:se.invoice.status)||!se.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==se.invoice?null:se.invoice.status)&&se.flgVersionCompatible)}}function be(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 se=d.oxw();d.xp6(7),d.Oqu(null==se.invoice?null:se.invoice.payment_hash),d.xp6(7),d.Oqu(null==se.invoice?null:se.invoice.label)}}function Re(Ie,Ae){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function we(Ie,Ae){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function Q(Ie,Ae){if(1&Ie){const se=d.EpF();d.TgZ(0,"button",50),d.NdJ("copied",function(ye){return d.CHM(se),d.oxw().onCopyPayment(ye)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Ie){const se=d.oxw();d.Q6J("payload",(null==se.invoice?null:se.invoice.bolt11)||(null==se.invoice?null:se.invoice.bolt12))}}function Ge(Ie,Ae){if(1&Ie){const se=d.EpF();d.TgZ(0,"button",51),d.NdJ("click",function(){return d.CHM(se),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const ve=function(Ie){return{"display-none":Ie}},F=function(Ie){return{"xs-scroll-y":Ie}},De=function(Ie,Ae){return{"mt-2":Ie,"mt-1":Ae}};let lt=(()=>{class Ie{constructor(se,Te,ye,W,$,ue){this.dialogRef=se,this.data=Te,this.logger=ye,this.commonService=W,this.snackBar=$,this.store=ue,this.faReceipt=e.dLy,this.faExclamationTriangle=e.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 f.x,new f.x,new f.x,new f.x,new f.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(b.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(se=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(se.api_version,"0.6.0")}),this.store.select(b.gc).pipe((0,M.R)(this.unSubs[1])).subscribe(se=>{const Te=this.invoice.status;this.invoice=(se.listInvoices.invoices||[]).find(W=>W.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(se)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(se){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+se)}ngOnDestroy(){this.unSubs.forEach(se=>{se.next(null),se.complete()})}}return Ie.\u0275fac=function(se){return new(se||Ie)(d.Y36(t.so),d.Y36(t.WI),d.Y36(P.mQ),d.Y36(h.v),d.Y36(A.ux),d.Y36(w.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(se,Te){if(1&se&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ce,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,i,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,u,1,3,"qr-code",2),d.YNc(19,c,2,0,"span",16),d.qZA(),d.YNc(20,_,1,1,"mat-divider",17),d.YNc(21,E,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,N,3,2,"ng-container",23),d.YNc(35,ge,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,be,16,2,"div",23),d.TgZ(65,"div",27)(66,"button",28),d.NdJ("click",function(){return Te.onShowAdvanced()}),d.YNc(67,Re,2,0,"p",29),d.YNc(68,we,2,0,"ng-template",null,30,d.W1O),d.qZA(),d.YNc(70,Q,2,1,"button",31),d.YNc(71,Ge,2,0,"button",32),d.qZA()()()()()),2&se){const ye=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,ve,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,F,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,ve,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,De,!Te.showAdvanced,Te.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Te.showAdvanced)("ngIfElse",ye),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:[D.xw,D.Wh,D.yH,L.mk,k.oO,L.O5,S.uU,U.dk,Z.BN,j.gM,ne.lW,U.dn,X.d,L.sg,de.Ou,ee.h,te.y],pipes:[L.JJ,L.uU],styles:[""]}),Ie})()},1462:(Fe,Y,p)=>{"use strict";p.d(Y,{k:()=>z});var t=p(8966),e=p(801),f=p(7579),M=p(2722),a=p(7731),b=p(9828),d=p(5e3),P=p(5043),h=p(62),A=p(7261),w=p(5620),D=p(8104),L=p(7093),k=p(9808),S=p(3322),U=p(159),Z=p(9224),j=p(9444),ne=p(7423),X=p(4834),de=p(3390),ee=p(6895);function te(oe,ge){if(1&oe&&d._UZ(0,"qr-code",28),2&oe){const be=d.oxw();d.Q6J("value",null==be.offer?null:be.offer.bolt12)("size",be.qrWidth)("errorCorrectionLevel","L")}}function ce(oe,ge){1&oe&&(d.TgZ(0,"span",29),d._uU(1,"N/A"),d.qZA())}function J(oe,ge){if(1&oe&&d._UZ(0,"qr-code",28),2&oe){const be=d.oxw();d.Q6J("value",null==be.offer?null:be.offer.bolt12)("size",be.qrWidth)("errorCorrectionLevel","L")}}function me(oe,ge){1&oe&&(d.TgZ(0,"span",30),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x(oe,ge){1&oe&&d._UZ(0,"mat-divider",31),2&oe&&d.Q6J("inset",!0)}function i(oe,ge){1&oe&&d._UZ(0,"mat-divider",19)}function r(oe,ge){if(1&oe&&(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&oe){const be=d.oxw(2);d.xp6(5),d.hij(" ",null!=be.offer&&be.offer.used?null!=be.offer&&be.offer.used?"Yes":"No":"N/K"," "),d.xp6(5),d.hij(" ",null!=be.offer&&be.offer.single_use?null!=be.offer&&be.offer.single_use?"Yes":"No":"N/K"," ")}}function u(oe,ge){1&oe&&d._UZ(0,"mat-divider",19)}function c(oe,ge){if(1&oe&&(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&oe){const be=d.oxw(2);d.xp6(5),d.Oqu((null==be.offerDecoded?null:be.offerDecoded.vendor)||(null==be.offerDecoded?null:be.offerDecoded.issuer))}}function _(oe,ge){if(1&oe&&(d.TgZ(0,"div"),d.YNc(1,i,1,0,"mat-divider",32),d.YNc(2,r,11,2,"div",33),d.YNc(3,u,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&oe){const be=d.oxw();d.xp6(1),d.Q6J("ngIf",(null==be.offer?null:be.offer.used)||(null==be.offer?null:be.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==be.offer?null:be.offer.used)||(null==be.offer?null:be.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==be.offerDecoded?null:be.offerDecoded.vendor)||(null==be.offerDecoded?null:be.offerDecoded.issuer)),d.xp6(1),d.Q6J("ngIf",(null==be.offerDecoded?null:be.offerDecoded.vendor)||(null==be.offerDecoded?null:be.offerDecoded.issuer)),d.xp6(7),d.Oqu(be.offerDecoded.offer_id)}}function E(oe,ge){1&oe&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function I(oe,ge){1&oe&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function v(oe,ge){if(1&oe){const be=d.EpF();d.TgZ(0,"button",35),d.NdJ("copied",function(we){return d.CHM(be),d.oxw().onCopyOffer(we)}),d._uU(1,"Copy Offer"),d.qZA()}if(2&oe){const be=d.oxw();d.Q6J("payload",null==be.offer?null:be.offer.bolt12)}}function n(oe,ge){if(1&oe){const be=d.EpF();d.TgZ(0,"button",36),d.NdJ("click",function(){return d.CHM(be),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const C=function(oe){return{"display-none":oe}},B=function(oe){return{"xs-scroll-y":oe}},N=function(oe,ge){return{"mt-2":oe,"mt-1":ge}};let z=(()=>{class oe{constructor(be,Re,we,Q,Ge,ve,F){this.dialogRef=be,this.data=Re,this.logger=we,this.commonService=Q,this.snackBar=Ge,this.store=ve,this.dataService=F,this.faReceipt=e.dLy,this.faExclamationTriangle=e.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 f.x,new f.x,new f.x,new f.x,new f.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(b.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(be=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(be.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,M.R)(this.unSubs[1])).subscribe(be=>{this.offerDecoded=be,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_msat.slice(0,-4))})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(be){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+be)}ngOnDestroy(){this.unSubs.forEach(be=>{be.next(null),be.complete()})}}return oe.\u0275fac=function(be){return new(be||oe)(d.Y36(t.so),d.Y36(t.WI),d.Y36(P.mQ),d.Y36(h.v),d.Y36(A.ux),d.Y36(w.yh),d.Y36(D.D))},oe.\u0275cmp=d.Xpm({type:oe,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(be,Re){if(1&be&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,te,1,3,"qr-code",2),d.YNc(3,ce,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 Re.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,_,13,5,"div",21),d.TgZ(45,"div",22)(46,"button",23),d.NdJ("click",function(){return Re.onShowAdvanced()}),d.YNc(47,E,2,0,"p",24),d.YNc(48,I,2,0,"ng-template",null,25,d.W1O),d.qZA(),d.YNc(50,v,2,1,"button",26),d.YNc(51,n,2,0,"button",27),d.qZA()()()()()),2&be){const we=d.MAs(49);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(24,C,Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),d.xp6(4),d.Q6J("icon",Re.faReceipt),d.xp6(2),d.Oqu(Re.screenSize===Re.screenSizeEnum.XS?Re.newlyAdded?"Created":"Offer":Re.newlyAdded?"Offer Created":"Offer Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(26,B,Re.screenSize===Re.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(28,C,Re.screenSize!==Re.screenSizeEnum.XS&&Re.screenSize!==Re.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM),d.xp6(6),d.hij(" ",null!=Re.offerDecoded&&Re.offerDecoded.amount_msat&&0!==(null==Re.offerDecoded?null:Re.offerDecoded.amount)?d.lcZ(24,22,(null==Re.offerDecoded?null:Re.offerDecoded.amount)/1e3):"Open Offer"," "),d.xp6(6),d.hij(" ",null!=Re.offer&&Re.offer.active?null!=Re.offer&&Re.offer.active?"Active":"Inactive":"N/K"," "),d.xp6(7),d.hij(" ",null==Re.offerDecoded?null:Re.offerDecoded.description," "),d.xp6(7),d.Oqu(null==Re.offer?null:Re.offer.bolt12),d.xp6(1),d.Q6J("ngIf",Re.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(30,N,!Re.showAdvanced,Re.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Re.showAdvanced)("ngIfElse",we),d.xp6(3),d.Q6J("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12))}},directives:[L.xw,L.Wh,L.yH,k.mk,S.oO,k.O5,U.uU,Z.dk,j.BN,ne.lW,Z.dn,X.d,de.h,ee.y],pipes:[k.JJ],styles:[""]}),oe})()},2994:(Fe,Y,p)=>{"use strict";p.d(Y,{$W:()=>j,BL:()=>r,Bw:()=>S,CX:()=>d,DJ:()=>F,EK:()=>ce,El:()=>X,Fd:()=>M,GD:()=>te,HG:()=>Z,HI:()=>_,Iy:()=>N,Lf:()=>B,Nr:()=>ge,OG:()=>u,On:()=>U,QZ:()=>f,RX:()=>h,SN:()=>P,Sf:()=>Q,TM:()=>n,TW:()=>D,UR:()=>A,WM:()=>oe,WO:()=>E,YP:()=>Re,YX:()=>x,Z$:()=>be,Z8:()=>ne,Zr:()=>a,_E:()=>J,aL:()=>we,cQ:()=>c,eN:()=>w,i:()=>L,iL:()=>k,iz:()=>b,kL:()=>I,mC:()=>C,n7:()=>Ge,oV:()=>v,pW:()=>i,ti:()=>De});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),M=(0,t.PH)(e.lr.RESET_ECL_STORE,(0,t.Ky)()),a=(0,t.PH)(e.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,t.Ky)()),b=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),d=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),P=(0,t.PH)(e.lr.FETCH_FEES_ECL),h=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),A=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),D=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),L=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),k=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),S=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),U=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),Z=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),j=(0,t.PH)(e.lr.FETCH_PEERS_ECL),ne=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),X=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),te=((0,t.PH)(e.lr.NEWLY_ADDED_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.ADD_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.DETACH_PEER_ECL,(0,t.Ky)())),ce=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),J=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),x=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),i=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),r=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),u=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),c=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),_=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),E=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),I=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),v=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),C=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),B=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),N=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),oe=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),ge=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),be=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),Re=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),we=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),Q=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),Ge=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),F=((0,t.PH)(e.lr.SET_LOOKUP_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.UPDATE_CHANNEL_STATE_ECL,(0,t.Ky)())),De=(0,t.PH)(e.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,t.Ky)())},3289:(Fe,Y,p)=>{"use strict";p.d(Y,{o:()=>ce});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),b=p(4004),d=p(262),P=p(2340),h=p(1786),A=p(7731),w=p(7861),D=p(7766),L=p(2994),k=p(2501),S=p(5e3),U=p(8138),Z=p(5620),j=p(5986),ne=p(62),X=p(5043),de=p(1402),ee=p(7998),te=p(9808);let ce=(()=>{class J{constructor(x,i,r,u,c,_,E,I,v){this.actions=x,this.httpClient=i,this.store=r,this.sessionService=u,this.commonService=c,this.logger=_,this.router=E,this.wsService=I,this.location=v,this.CHILD_API_URL=P.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchECL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_INFO_ECL),(0,M.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,w.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,w.ac)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(A.pg.SET_SELECTED_NODE))),(0,b.U)(C=>(this.logger.info(C),this.initializeRemainingData(C,n.payload.loadPage),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:A.m6.GET_NODE_INFO})),{type:A.lr.SET_INFO_ECL,payload:C||{}})),(0,d.K)(C=>{const B=this.commonService.extractErrorCode(C),N=503===B?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(C);return this.router.navigate(["/error"],{state:{errorCode:B,errorMessage:N}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:B,error:N}),(0,f.of)({type:A.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_FEES_ECL),(0,M.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API+"/fees").pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),{type:A.lr.SET_FEES_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,f.of)({type:A.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_PAYMENTS_ECL),(0,M.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API+"/payments").pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,f.of)({type:A.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_CHANNELS_ECL),(0,M.z)(n=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API).pipe((0,b.U)(C=>(this.logger.info(C),this.rawChannelsList=C,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,L.QZ)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,L.cQ)()),{type:A.pg.VOID})),(0,d.K)(C=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",C),(0,f.of)({type:A.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,M.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchOnchainBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/balance"))),(0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchOnchainBalance",status:A.Bn.COMPLETED}})),{type:A.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",A.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,f.of)({type:A.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_PEERS_ECL),(0,M.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERS_API).pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.lr.SET_PEERS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,f.of)({type:A.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.GET_NEW_ADDRESS_ECL),(0,M.z)(()=>(this.store.dispatch((0,w.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API).pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,w.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithAlert("GetNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+P.NZ.ON_CHAIN_API,n),(0,f.of)({type:A.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SET_NEW_ADDRESS_ECL),(0,b.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SAVE_NEW_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),C=C||[],this.store.dispatch((0,w.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,L.Z8)({payload:C})),{type:A.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:C.find(B=>B.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,d.K)(C=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",C),(0,f.of)({type:A.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.DETACH_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.PEERS_API+"/"+n.payload.nodeId).pipe((0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,w.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,w.jW)({payload:"Disconnecting Peer!"})),{type:A.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,d.K)(C=>(this.handleErrorWithAlert("DisconnectPeer",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+P.NZ.PEERS_API+"/"+n.payload.nodeId,C),(0,f.of)({type:A.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SAVE_NEW_CHANNEL_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewChannel",status:A.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,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,L.$W)()),this.store.dispatch((0,L.iL)()),this.store.dispatch((0,w.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,w.jW)({payload:"Channel Added Successfully!"})),{type:A.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",B),(0,f.of)({type:A.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.UPDATE_CHANNEL_ECL),(0,M.z)(n=>{this.store.dispatch((0,w.ac)({payload:A.m6.UPDATE_CHAN_POLICY}));let C="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return C=n.payload.nodeIds?C+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?C+"&nodeId="+n.payload.nodeId:n.payload.channelIds?C+"&channelIds="+n.payload.channelIds:C+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/updateRelayFee"+C,{}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,w.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:A.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(B=>(this.handleErrorWithAlert("UpdateChannels",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API,B),(0,f.of)({type:A.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.CLOSE_CHANNEL_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:n.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,b.U)(C=>(this.logger.info(C),setTimeout(()=>{this.store.dispatch((0,w.uO)({payload:n.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,w.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:A.pg.VOID})),(0,d.K)(C=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+P.NZ.CHANNELS_API,C),(0,f.of)({type:A.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.GET_QUERY_ROUTES_ECL),(0,M.z)(n=>this.httpClient.get(this.CHILD_API_URL+P.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,b.U)(C=>(this.logger.info(C),{type:A.lr.SET_QUERY_ROUTES_ECL,payload:C})),(0,d.K)(C=>(this.store.dispatch((0,L.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,C),(0,f.of)({type:A.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SET_QUERY_ROUTES_ECL),(0,b.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SEND_PAYMENT_ECL),(0,M.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,w.ac)({payload:A.m6.SEND_PAYMENT})),this.store.dispatch((0,L.QZ)({payload:{action:"SendPayment",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PAYMENTS_API,n.payload).pipe((0,b.U)(C=>(this.logger.info(C),this.latestPaymentRes=C,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:A.pg.VOID})),(0,d.K)(C=>(this.logger.error("Error: "+JSON.stringify(C)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",A.m6.SEND_PAYMENT,"Send Payment Failed.",C):this.handleErrorWithAlert("SendPayment",A.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API,C),(0,f.of)({type:A.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_TRANSACTIONS_ECL),(0,M.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchTransactions",status:A.Bn.COMPLETED}})),{type:A.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",A.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,f.of)({type:A.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SEND_ONCHAIN_FUNDS_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,L.QZ)({payload:{action:"SendOnchainFunds",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.ON_CHAIN_API,n.payload).pipe((0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.QZ)({payload:{action:"SendOnchainFunds",status:A.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,L.iL)()),{type:A.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:C})),(0,d.K)(C=>(this.handleErrorWithoutAlert("SendOnchainFunds",A.m6.SEND_FUNDS,"Sending Fund Failed.",C),(0,f.of)({type:A.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.CREATE_INVOICE_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:A.m6.CREATE_INVOICE})),this.store.dispatch((0,L.QZ)({payload:{action:"CreateInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.INVOICES_API,n.payload).pipe((0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.QZ)({payload:{action:"CreateInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:A.m6.CREATE_INVOICE})),C.timestamp=Math.round((new Date).getTime()/1e3),C.expiresAt=Math.round(C.timestamp+n.payload.expireIn),C.description=n.payload.description,C.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{invoice:C,newlyAdded:!0,component:D.R}}}))},100),{type:A.lr.ADD_INVOICE_ECL,payload:C})),(0,d.K)(C=>(this.handleErrorWithoutAlert("CreateInvoice",A.m6.CREATE_INVOICE,"Create Invoice Failed.",C),(0,f.of)({type:A.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_INVOICES_ECL),(0,M.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API).pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),{type:A.lr.SET_INVOICES_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,f.of)({type:A.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.PEER_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/nodes/"+n.payload).pipe((0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:A.m6.SEARCHING_NODE})),{type:A.lr.SET_LOOKUP_ECL,payload:C})),(0,d.K)(C=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/nodes/"+n.payload,C),(0,f.of)({type:A.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.INVOICE_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"/"+n.payload).pipe((0,b.U)(C=>(this.logger.info(C),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.aL)({payload:C})),{type:A.lr.SET_LOOKUP_ECL,payload:C})),(0,d.K)(C=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",C),this.store.dispatch((0,w.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:A.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SET_LOOKUP_ECL),(0,b.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,L.QZ)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:A.m6.SEND_PAYMENT})),this.store.dispatch((0,L.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,w.jW)({payload:n}))},this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==A.Bn.COMPLETED&&n.FetchInfo.status!==A.Bn.ERROR||n.FetchFees.status!==A.Bn.COMPLETED&&n.FetchFees.status!==A.Bn.ERROR||n.FetchOnchainBalance.status!==A.Bn.COMPLETED&&n.FetchOnchainBalance.status!==A.Bn.ERROR||n.FetchChannels.status!==A.Bn.COMPLETED&&n.FetchChannels.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(n=>{this.logger.info("Received new message from the service: "+JSON.stringify(n));let C="";if(n)switch(n.type){case A.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,C="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(C));break;case A.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,C="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(C));break;case A.$v.PAYMENT_RECEIVED:this.store.dispatch((0,L.aL)({payload:n}));break;case A.$v.PAYMENT_RELAYED:delete n.source,this.store.dispatch((0,L.ti)({payload:n}));break;case A.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=this.rawChannelsList.map(B=>(B.channelId===n.channelId&&B.nodeId===n.remoteNodeId&&(B.state=n.currentState),B)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,L.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let x=0,i=0,r=0,u={localBalance:0,remoteBalance:0},c=[];const _=[],E=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((v,n)=>{v&&("NORMAL"===v.state?(x=v.toLocal+v.toRemote,i+=v.toLocal,r+=v.toRemote,v.balancedness=0===x?1:+(1-Math.abs((v.toLocal-v.toRemote)/x)).toFixed(3),c.push(v),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+v.toLocal):v.state.includes("WAIT")||v.state.includes("CLOSING")||v.state.includes("SYNCING")?(v.state=v.state.replace(/_/g," "),_.push(v),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+v.toLocal):(v.state=v.state.replace(/_/g," "),E.push(v),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+v.toLocal))}),u={localBalance:i,remoteBalance:r},c=this.commonService.sortDescByKey(c,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(c)),this.logger.info("Pending Channels: "+JSON.stringify(_)),this.logger.info("Inactive Channels: "+JSON.stringify(E)),this.logger.info("Lightning Balances: "+JSON.stringify(u)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:c,pending:_,inactive:E,balances:u,status:I})),this.store.dispatch((0,L.eN)({payload:c})),this.store.dispatch((0,L.TW)({payload:_})),this.store.dispatch((0,L.i)({payload:E})),this.store.dispatch((0,L.On)({payload:u})),this.store.dispatch((0,L.HG)({payload:I}))}initializeRemainingData(x,i){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,w.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,w._V)({payload:r}));let u=this.location.path();u.includes("/lnd/")?u=u.replace("/lnd/","/ecl/"):u.includes("/cln/")&&(u=u.replace("/cln/","/ecl/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===i||u.includes("?access-key="))&&(u="/ecl/home"),this.router.navigate([u]),this.store.dispatch((0,L.WM)()),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,L.SN)()),this.store.dispatch((0,L.iL)()),this.store.dispatch((0,L.$W)())}handleErrorWithoutAlert(x,i,r,u){this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(u)),401===u.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:i})),this.store.dispatch((0,L.QZ)({payload:{action:x,status:A.Bn.ERROR,statusCode:u.status.toString(),message:this.commonService.extractErrorMessage(u,r)}})))}handleErrorWithAlert(x,i,r,u,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:i}));const _=this.commonService.extractErrorMessage(c);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status,message:_,URL:u},component:h.H}}})),this.store.dispatch((0,L.QZ)({payload:{action:x,status:A.Bn.ERROR,statusCode:c.status.toString(),message:_,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return J.\u0275fac=function(x){return new(x||J)(S.LFG(t.eX),S.LFG(U.eN),S.LFG(Z.yh),S.LFG(j.m),S.LFG(ne.v),S.LFG(X.mQ),S.LFG(de.F0),S.LFG(ee.d),S.LFG(te.Ye))},J.\u0275prov=S.Yz7({token:J,factory:J.\u0275fac}),J})()},2501:(Fe,Y,p)=>{"use strict";p.d(Y,{Bo:()=>L,Ef:()=>D,JG:()=>h,PP:()=>P,T$:()=>a,Xz:()=>A,dx:()=>w,kY:()=>k,pg:()=>f,yA:()=>d,yD:()=>M});var t=p(5620);const e=(0,t.ZF)("ecl"),f=(0,t.P1)(e,S=>S.nodeSettings),M=(0,t.P1)(e,S=>S.information),a=(0,t.P1)(e,S=>({information:S.information,apiCallStatus:S.apisCallStatus.FetchInfo})),d=((0,t.P1)(e,S=>S.apisCallStatus.FetchInfo),(0,t.P1)(e,S=>S.apisCallStatus)),P=(0,t.P1)(e,S=>({payments:S.payments,apiCallStatus:S.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,S=>({fees:S.fees,apiCallStatus:S.apisCallStatus.FetchFees})),A=(0,t.P1)(e,S=>({activeChannels:S.activeChannels,pendingChannels:S.pendingChannels,inactiveChannels:S.inactiveChannels,lightningBalance:S.lightningBalance,channelsStatus:S.channelsStatus,apiCallStatus:S.apisCallStatus.FetchChannels})),w=(0,t.P1)(e,S=>({transactions:S.transactions,apiCallStatus:S.apisCallStatus.FetchTransactions})),D=(0,t.P1)(e,S=>({invoices:S.invoices,apiCallStatus:S.apisCallStatus.FetchInvoices})),L=(0,t.P1)(e,S=>({peers:S.peers,apiCallStatus:S.apisCallStatus.FetchPeers})),k=(0,t.P1)(e,S=>({onchainBalance:S.onchainBalance,apiCallStatus:S.apisCallStatus.FetchOnchainBalance}))},7766:(Fe,Y,p)=>{"use strict";p.d(Y,{R:()=>we});var t=p(8966),e=p(801),f=p(7579),M=p(2722),a=p(7731),b=p(2501),d=p(5e3),P=p(5043),h=p(62),A=p(7261),w=p(5620),D=p(7093),L=p(9808),k=p(3322),S=p(159),U=p(9224),Z=p(9444),j=p(7423),ne=p(4834),X=p(773),de=p(3390),ee=p(6895);function te(Q,Ge){if(1&Q&&d._UZ(0,"qr-code",29),2&Q){const ve=d.oxw();d.Q6J("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)("errorCorrectionLevel","L")}}function ce(Q,Ge){1&Q&&(d.TgZ(0,"span",30),d._uU(1,"N/A"),d.qZA())}function J(Q,Ge){if(1&Q&&d._UZ(0,"qr-code",29),2&Q){const ve=d.oxw();d.Q6J("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)("errorCorrectionLevel","L")}}function me(Q,Ge){1&Q&&(d.TgZ(0,"span",31),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x(Q,Ge){1&Q&&d._UZ(0,"mat-divider",32),2&Q&&d.Q6J("inset",!0)}function i(Q,Ge){1&Q&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function r(Q,Ge){1&Q&&d._UZ(0,"span",38)}const u=function(){return[]};function c(Q,Ge){if(1&Q&&(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&Q){const ve=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==ve.invoice?null:ve.invoice.amountSettled)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,u).constructor(35))}}function _(Q,Ge){if(1&Q&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Q){const ve=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==ve.invoice?null:ve.invoice.amountSettled)," Sats")}}function E(Q,Ge){if(1&Q&&(d.ynx(0),d.YNc(1,c,6,5,"div",33),d.YNc(2,_,3,3,"div",19),d.BQk()),2&Q){const ve=d.oxw();d.xp6(1),d.Q6J("ngIf",ve.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!ve.flgInvoicePaid)}}function I(Q,Ge){1&Q&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function v(Q,Ge){1&Q&&d._UZ(0,"mat-spinner",40),2&Q&&d.Q6J("diameter",20)}function n(Q,Ge){if(1&Q&&(d.ynx(0),d.YNc(1,I,2,0,"span",19),d.YNc(2,v,1,1,"mat-spinner",39),d.BQk()),2&Q){const ve=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==ve.invoice?null:ve.invoice.status)||!ve.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==ve.invoice?null:ve.invoice.status)&&ve.flgVersionCompatible)}}function C(Q,Ge){if(1&Q&&(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&Q){const ve=d.oxw();d.xp6(7),d.Oqu(d.xi3(8,4,1e3*(null==ve.invoice?null:ve.invoice.expiresAt),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(14,7,1e3*(null==ve.invoice?null:ve.invoice.receivedAt),"dd/MMM/y HH:mm")),d.xp6(8),d.Oqu(null==ve.invoice?null:ve.invoice.paymentHash),d.xp6(7),d.Oqu(null==ve.invoice?null:ve.invoice.nodeId)}}function B(Q,Ge){1&Q&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function N(Q,Ge){1&Q&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function z(Q,Ge){if(1&Q){const ve=d.EpF();d.TgZ(0,"button",43),d.NdJ("copied",function(De){return d.CHM(ve),d.oxw().onCopyPayment(De)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Q){const ve=d.oxw();d.Q6J("payload",null==ve.invoice?null:ve.invoice.serialized)}}function oe(Q,Ge){if(1&Q){const ve=d.EpF();d.TgZ(0,"button",44),d.NdJ("click",function(){return d.CHM(ve),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const ge=function(Q){return{"display-none":Q}},be=function(Q){return{"xs-scroll-y":Q}},Re=function(Q,Ge){return{"mt-2":Q,"mt-1":Ge}};let we=(()=>{class Q{constructor(ve,F,De,lt,Ie,Ae){this.dialogRef=ve,this.data=F,this.logger=De,this.commonService=lt,this.snackBar=Ie,this.store=Ae,this.faReceipt=e.dLy,this.faExclamationTriangle=e.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 f.x,new f.x,new f.x,new f.x,new f.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(b.yD).pipe((0,M.R)(this.unSubs[0])).subscribe(ve=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ve.version,"0.5.0")}),this.store.select(b.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(ve=>{const F=this.invoice.status;this.invoice=(ve.invoices&&ve.invoices.length>0?ve.invoices:[]).find(lt=>lt.paymentHash===this.invoice.paymentHash),F!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ve)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ve){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ve)}ngOnDestroy(){this.unSubs.forEach(ve=>{ve.next(null),ve.complete()})}}return Q.\u0275fac=function(ve){return new(ve||Q)(d.Y36(t.so),d.Y36(t.WI),d.Y36(P.mQ),d.Y36(h.v),d.Y36(A.ux),d.Y36(w.yh))},Q.\u0275cmp=d.Xpm({type:Q,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(ve,F){if(1&ve&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,te,1,3,"qr-code",2),d.YNc(3,ce,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 F.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,i,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,E,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,C,30,10,"div",19),d.TgZ(61,"div",23)(62,"button",24),d.NdJ("click",function(){return F.onShowAdvanced()}),d.YNc(63,B,2,0,"p",25),d.YNc(64,N,2,0,"ng-template",null,26,d.W1O),d.qZA(),d.YNc(66,z,2,1,"button",27),d.YNc(67,oe,2,0,"button",28),d.qZA()()()()()),2&ve){const De=d.MAs(65);d.xp6(1),d.Q6J("fxLayoutAlign",null!=F.invoice&&F.invoice.serialized&&""!==(null==F.invoice?null:F.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(33,ge,F.screenSize===F.screenSizeEnum.XS||F.screenSize===F.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==F.invoice?null:F.invoice.serialized)&&""!==(null==F.invoice?null:F.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.serialized)||""===(null==F.invoice?null:F.invoice.serialized)),d.xp6(4),d.Q6J("icon",F.faReceipt),d.xp6(2),d.Oqu(F.screenSize===F.screenSizeEnum.XS?F.newlyAdded?"Created":"Invoice":F.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(35,be,F.screenSize===F.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=F.invoice&&F.invoice.serialized&&""!==(null==F.invoice?null:F.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(37,ge,F.screenSize!==F.screenSizeEnum.XS&&F.screenSize!==F.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==F.invoice?null:F.invoice.serialized)&&""!==(null==F.invoice?null:F.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.serialized)||""===(null==F.invoice?null:F.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",F.screenSize===F.screenSizeEnum.XS||F.screenSize===F.screenSizeEnum.SM),d.xp6(6),d.hij("",d.lcZ(24,26,(null==F.invoice?null:F.invoice.amount)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.amount)||"0"===(null==F.invoice?null:F.invoice.amount)),d.xp6(5),d.Q6J("ngIf",null==F.invoice?null:F.invoice.amountSettled),d.xp6(1),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.amountSettled)),d.xp6(7),d.Oqu(d.xi3(39,28,1e3*(null==F.invoice?null:F.invoice.timestamp),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.lcZ(45,31,null==F.invoice?null:F.invoice.status)),d.xp6(8),d.Oqu((null==F.invoice?null:F.invoice.description)||"-"),d.xp6(7),d.Oqu((null==F.invoice?null:F.invoice.serialized)||"N/A"),d.xp6(1),d.Q6J("ngIf",F.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(39,Re,!F.showAdvanced,F.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!F.showAdvanced)("ngIfElse",De),d.xp6(3),d.Q6J("ngIf",(null==F.invoice?null:F.invoice.serialized)&&""!==(null==F.invoice?null:F.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.serialized)||""===(null==F.invoice?null:F.invoice.serialized))}},directives:[D.xw,D.Wh,D.yH,L.mk,k.oO,L.O5,S.uU,U.dk,Z.BN,j.lW,U.dn,ne.d,L.sg,X.Ou,de.h,ee.y],pipes:[L.JJ,L.uU,L.rS],styles:[""]}),Q})()},6523:(Fe,Y,p)=>{"use strict";p.d(Y,{$A:()=>di,$W:()=>P,BL:()=>c,B_:()=>B,Bl:()=>ne,CX:()=>d,Cp:()=>I,EK:()=>L,El:()=>A,Fr:()=>$t,HI:()=>De,JT:()=>a,Jl:()=>X,Jo:()=>vt,Lf:()=>Q,Ll:()=>M,Ly:()=>Ge,Nr:()=>ge,OG:()=>_,PC:()=>f,QJ:()=>Nt,RX:()=>j,Rd:()=>k,Rv:()=>de,SN:()=>Z,Sf:()=>Dt,TW:()=>me,UH:()=>ve,UR:()=>te,Vv:()=>E,WM:()=>oe,WO:()=>gt,Wi:()=>W,YP:()=>U,YX:()=>u,Z7:()=>J,Z8:()=>h,Zh:()=>x,_E:()=>Te,_L:()=>i,aL:()=>be,as:()=>ce,cQ:()=>F,dV:()=>Ae,fu:()=>ue,kL:()=>et,ks:()=>ee,mC:()=>we,n7:()=>Yt,oV:()=>lt,pW:()=>r,qY:()=>Re,sQ:()=>b,tb:()=>C,u0:()=>xt,vV:()=>N,xG:()=>ut,y2:()=>Le,yZ:()=>Gt,z:()=>D});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),M=(0,t.PH)(e.uR.RESET_LND_STORE,(0,t.Ky)()),a=(0,t.PH)(e.uR.SET_CHILD_NODE_SETTINGS_LND,(0,t.Ky)()),b=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),d=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),P=(0,t.PH)(e.uR.FETCH_PEERS_LND),h=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),A=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),D=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),L=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),k=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),U=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),Z=(0,t.PH)(e.uR.FETCH_FEES_LND),j=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),ne=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),X=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),de=(0,t.PH)(e.uR.FETCH_NETWORK_LND),ee=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),te=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),ce=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),J=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),me=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),x=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),i=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),r=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),u=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),c=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),_=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),E=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),I=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),C=((0,t.PH)(e.uR.BACKUP_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.VERIFY_CHANNEL_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.RESTORE_CHANNELS_LIST_LND)),B=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),N=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),oe=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),ge=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),be=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),Re=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),we=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),Q=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),Ge=(0,t.PH)(e.uR.FETCH_UTXOS_LND),ve=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),F=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),De=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),lt=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),Ae=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),Te=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),W=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),ue=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),Le=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),ut=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),Dt=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),di=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),Yt=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),Gt=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),xt=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),Nt=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),gt=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),et=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),vt=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),$t=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(Fe,Y,p)=>{"use strict";p.d(Y,{l:()=>me});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),b=p(4004),d=p(262),P=p(1365),h=p(2340),A=p(8627),w=p(1786),D=p(7731),L=p(7861),k=p(6523),S=p(6529),U=p(5e3),Z=p(8138),j=p(5620),ne=p(5043),X=p(62),de=p(5986),ee=p(8966),te=p(1402),ce=p(7998),J=p(9808);let me=(()=>{class x{constructor(r,u,c,_,E,I,v,n,C,B){this.actions=r,this.httpClient=u,this.store=c,this.logger=_,this.commonService=E,this.sessionService=I,this.dialog=v,this.router=n,this.wsService=C,this.location=B,this.CHILD_API_URL=h.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_INFO_LND),(0,M.z)(N=>(this.flgInitialized=!1,this.store.dispatch((0,L.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.ac)({payload:D.m6.GET_NODE_INFO})),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(D.pg.SET_SELECTED_NODE))),(0,b.U)(z=>(this.logger.info(z),z.chains&&z.chains.length&&z.chains[0]&&("string"==typeof z.chains[0]&&z.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof z.chains[0]&&z.chains[0].hasOwnProperty("chain")&&z.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.qR)({payload:{data:{type:D.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:D.pg.LOGOUT}):z.identity_pubkey?(z.lnImplementation="LND",this.initializeRemainingData(z,N.payload.loadPage),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),{type:D.uR.SET_INFO_LND,payload:z||{}}):(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:D.uR.SET_INFO_LND,payload:{}}))),(0,d.K)(z=>{if("string"==typeof z.error.error&&z.error.error.includes("Not Found")||"string"==typeof z.error.error&&z.error.error.includes("wallet locked")||502===z.status&&!z.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",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",z);else if("string"==typeof z.error.error&&z.error.error.includes("starting up")&&500===z.status)setTimeout(()=>{this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const oe=this.commonService.extractErrorCode(z),ge=503===oe?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(z);this.router.navigate(["/error"],{state:{errorCode:oe,errorMessage:ge}}),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:oe,error:ge})}return(0,f.of)({type:D.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PEERS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PEERS_API).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:D.Bn.COMPLETED}})),{type:D.uR.SET_PEERS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPeers",D.m6.NO_SPINNER,"Fetching Peers Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_PEER_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.PEERS_API,{pubkey:N.payload.pubkey,host:N.payload.host,perm:N.payload.perm}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:D.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:z||[]})),{type:D.uR.NEWLY_ADDED_PEER_LND,payload:{peer:z[0]}})),(0,d.K)(z=>(this.handleErrorWithoutAlert("SaveNewPeer",D.m6.CONNECT_PEER,"Peer Connection Failed.",z),(0,f.of)({type:D.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.DETACH_PEER_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.PEERS_API+"/"+N.payload.pubkey).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,L.uO)({payload:D.m6.DISCONNECT_PEER})),this.store.dispatch((0,L.jW)({payload:"Peer Disconnected Successfully."})),{type:D.uR.REMOVE_PEER_LND,payload:{pubkey:N.payload.pubkey}})),(0,d.K)(z=>(this.handleErrorWithAlert("DetachPeer",D.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+h.NZ.PEERS_API+"/"+N.payload.pubkey,z),(0,f.of)({type:D.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_INVOICE_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.INVOICES_API,{memo:N.payload.memo,amount:N.payload.invoiceValue,private:N.payload.private,expiry:N.payload.expiry}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:N.payload.pageSize,reversed:!0}})),N.payload.openModal?(z.memo=N.payload.memo,z.value=N.payload.invoiceValue,z.expiry=N.payload.expiry,z.cltv_expiry="144",z.private=N.payload.private,z.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,L.qR)({payload:{data:{invoice:z,newlyAdded:!0,component:A.v}}}))},100),{type:D.pg.CLOSE_SPINNER,payload:N.payload.uiMessage}):{type:D.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:z.payment_request}})),(0,d.K)(z=>(this.handleErrorWithoutAlert("SaveNewInvoice",N.payload.uiMessage,"Add Invoice Failed.",z),(0,f.of)({type:D.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API,{node_pubkey:N.payload.selectedPeerPubkey,local_funding_amount:N.payload.fundingAmount,private:N.payload.private,trans_type:N.payload.transType,trans_type_value:N.payload.transTypeValue,spend_unconfirmed:N.payload.spendUnconfirmed}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:D.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:D.uR.FETCH_PENDING_CHANNELS_LND})),(0,d.K)(z=>(this.handleErrorWithoutAlert("SaveNewChannel",D.m6.OPEN_CHANNEL,"Opening Channel Failed.",z),(0,f.of)({type:D.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.UPDATE_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:N.payload.baseFeeMsat,feeRate:N.payload.feeRate,timeLockDelta:N.payload.timeLockDelta,chanPoint:N.payload.chanPoint}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,L.uO)({payload:D.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,L.jW)("all"===N.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:D.uR.FETCH_CHANNELS_LND})),(0,d.K)(z=>(this.handleErrorWithAlert("UpdateChannels",D.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",z),(0,f.of)({type:D.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.CLOSE_CHANNEL_LND),(0,M.z)(N=>{this.store.dispatch((0,L.ac)({payload:N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL}));let z=this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly;return N.payload.targetConf&&(z=z+"&target_conf="+N.payload.targetConf),N.payload.satPerByte&&(z=z+"&sat_per_byte="+N.payload.satPerByte),this.httpClient.delete(z).pipe((0,b.U)(oe=>(this.logger.info(oe),this.store.dispatch((0,L.uO)({payload:N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:D.m6.NO_SPINNER,channelPoint:"ALL",showMessage:oe.message}})),{type:D.pg.VOID})),(0,d.K)(oe=>(this.handleErrorWithAlert("CloseChannel",N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly,oe),(0,f.of)({type:D.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.BACKUP_CHANNELS_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:D.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,L.jW)({payload:N.payload.showMessage+" "+z.message})),{type:D.uR.BACKUP_CHANNELS_RES_LND,payload:z.message})),(0,d.K)(z=>(this.handleErrorWithAlert("BackupChannels",N.payload.uiMessage,N.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint,z),(0,f.of)({type:D.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.VERIFY_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.VERIFY_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,{}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:D.m6.VERIFY_CHANNEL})),this.store.dispatch((0,L.jW)({payload:z.message})),{type:D.uR.VERIFY_CHANNEL_RES_LND,payload:z.message})),(0,d.K)(z=>(this.handleErrorWithAlert("VerifyChannel",D.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,z),(0,f.of)({type:D.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.RESTORE_CHANNELS_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.RESTORE_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,{}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:D.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:D.m6.RESTORE_CHANNEL})),this.store.dispatch((0,L.jW)({payload:z.message})),this.store.dispatch((0,k.B_)({payload:z.list})),{type:D.uR.RESTORE_CHANNELS_RES_LND,payload:z.message})),(0,d.K)(z=>(this.handleErrorWithAlert("RestoreChannels",D.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,z),(0,f.of)({type:D.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_FEES_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.FEES_API))),(0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:D.Bn.COMPLETED}})),N.forwarding_events_history&&(this.store.dispatch((0,k.QJ)({payload:N.forwarding_events_history})),delete N.forwarding_events_history),{type:D.uR.SET_FEES_LND,payload:N||{}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchFees",D.m6.NO_SPINNER,"Fetching Fees Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.BALANCE_API))),(0,b.U)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:D.Bn.COMPLETED}})),this.logger.info(N),{type:D.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:N||{total_balance:""}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchBalance",D.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_NETWORK_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/info"))),(0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:D.Bn.COMPLETED}})),{type:D.uR.SET_NETWORK_LND,payload:N||{}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchNetwork",D.m6.NO_SPINNER,"Fetching Network Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:D.Bn.COMPLETED}})),{type:D.uR.SET_CHANNELS_LND,payload:N.channels||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchChannels",D.m6.NO_SPINNER,"Fetching Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PENDING_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/pending").pipe((0,b.U)(N=>{this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:D.Bn.COMPLETED}}));const z={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 N&&(z.total_limbo_balance=N.total_limbo_balance,N.pending_closing_channels&&(z.closing.num_channels=N.pending_closing_channels.length,z.total_channels=z.total_channels+N.pending_closing_channels.length,N.pending_closing_channels.forEach(oe=>{z.closing.limbo_balance=+z.closing.limbo_balance+(oe.channel.local_balance?+oe.channel.local_balance:0)})),N.pending_force_closing_channels&&(z.force_closing.num_channels=N.pending_force_closing_channels.length,z.total_channels=z.total_channels+N.pending_force_closing_channels.length,N.pending_force_closing_channels.forEach(oe=>{z.force_closing.limbo_balance=+z.force_closing.limbo_balance+(oe.channel.local_balance?+oe.channel.local_balance:0)})),N.pending_open_channels&&(z.open.num_channels=N.pending_open_channels.length,z.total_channels=z.total_channels+N.pending_open_channels.length,N.pending_open_channels.forEach(oe=>{z.open.limbo_balance=+z.open.limbo_balance+(oe.channel.local_balance?+oe.channel.local_balance:0)})),N.waiting_close_channels&&(z.waiting_close.num_channels=N.waiting_close_channels.length,z.total_channels=z.total_channels+N.waiting_close_channels.length,N.waiting_close_channels.forEach(oe=>{z.waiting_close.limbo_balance=+z.waiting_close.limbo_balance+(oe.channel.local_balance?+oe.channel.local_balance:0)}))),{type:D.uR.SET_PENDING_CHANNELS_LND,payload:N?{pendingChannels:N,pendingChannelsSummary:z}:{pendingChannels:{},pendingChannelsSummary:z}}}),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPendingChannels",D.m6.NO_SPINNER,"Fetching Pending Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_CLOSED_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/closed").pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:D.Bn.COMPLETED}})),{type:D.uR.SET_CLOSED_CHANNELS_LND,payload:N.channels||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchClosedChannels",D.m6.NO_SPINNER,"Fetching Closed Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_INVOICES_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.INVOICES_API+"?num_max_invoices="+(N.payload.num_max_invoices?N.payload.num_max_invoices:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,b.U)(be=>(this.logger.info(be),this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:D.Bn.COMPLETED}})),N.payload.reversed&&!N.payload.index_offset&&(be.total_invoices=+be.last_index_offset),{type:D.uR.SET_INVOICES_LND,payload:be})),(0,d.K)(be=>(this.handleErrorWithoutAlert("FetchInvoices",D.m6.NO_SPINNER,"Fetching Invoices Failed.",be),(0,f.of)({type:D.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_TRANSACTIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API))),(0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:D.Bn.COMPLETED}})),{type:D.uR.SET_TRANSACTIONS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchTransactions",D.m6.NO_SPINNER,"Fetching Transactions Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_UTXOS_LND),(0,P.M)(this.store.select(S.Q5)),(0,M.z)(([N,z])=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/getUTXOs?max_confs="+(z&&z.block_height?z.block_height:1e9)))),(0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:D.Bn.COMPLETED}})),{type:D.uR.SET_UTXOS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchUTXOs",D.m6.NO_SPINNER,"Fetching UTXOs Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PAYMENTS_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"?max_payments="+(N.payload.max_payments?N.payload.max_payments:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,b.U)(be=>(this.logger.info(be),this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:D.Bn.COMPLETED}})),{type:D.uR.SET_PAYMENTS_LND,payload:be})),(0,d.K)(be=>(this.handleErrorWithoutAlert("FetchPayments",D.m6.NO_SPINNER,"Fetching Payments Failed.",be),(0,f.of)({type:D.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SEND_PAYMENT_LND),(0,M.z)(N=>{this.store.dispatch((0,L.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.INITIATED}}));const z={};return z.paymentReq=N.payload.paymentReq,N.payload.paymentAmount&&(z.paymentAmount=N.payload.paymentAmount),N.payload.outgoingChannel&&(z.outgoingChannel=N.payload.outgoingChannel.chan_id),N.payload.allowSelfPayment&&(z.allowSelfPayment=N.payload.allowSelfPayment),N.payload.lastHopPubkey&&(z.lastHopPubkey=N.payload.lastHopPubkey),N.payload.feeLimitType&&N.payload.feeLimitType!==D.Vc[0].id&&(z.feeLimit={},z.feeLimit[N.payload.feeLimitType]=N.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",z).pipe((0,b.U)(oe=>{if(this.logger.info(oe),this.store.dispatch((0,L.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),oe.payment_error)return N.payload.allowSelfPayment?(this.store.dispatch((0,k.WM)({payload:{num_max_invoices:D.IV,reversed:!0}})),{type:D.uR.SEND_PAYMENT_STATUS_LND,payload:oe}):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",oe.payment_error):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",oe.payment_error),{type:D.pg.VOID});if(this.store.dispatch((0,L.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:D.IV,reversed:!0}})),N.payload.allowSelfPayment)this.store.dispatch((0,k.WM)({payload:{num_max_invoices:D.IV,reversed:!0}}));else{let ge="Payment Sent Successfully.";oe.payment_route&&oe.payment_route.total_fees_msat&&(ge="Payment sent successfully with the total fee "+oe.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,L.jW)({payload:ge}))}return{type:D.uR.SEND_PAYMENT_STATUS_LND,payload:oe}}),(0,d.K)(oe=>(this.logger.error("Error: "+JSON.stringify(oe)),N.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",oe),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:D.IV,reversed:!0}})),(0,f.of)({type:D.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(oe)}})):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",oe):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",oe),(0,f.of)({type:D.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_GRAPH_NODE_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload.pubkey).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,L.uO)({payload:D.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:D.Bn.COMPLETED}})),{type:D.uR.SET_GRAPH_NODE_LND,payload:z&&z.node?{node:z.node}:{node:null}})),(0,d.K)(z=>(this.handleErrorWithoutAlert("FetchGraphNode",D.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",z),(0,f.of)({type:D.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_GRAPH_NODE_LND),(0,b.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_NEW_ADDRESS_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,L.uO)({payload:D.m6.GENERATE_NEW_ADDRESS})),{type:D.uR.SET_NEW_ADDRESS_LND,payload:z&&z.address?z.address:{}})),(0,d.K)(z=>(this.handleErrorWithAlert("GetNewAddress",D.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId,z),(0,f.of)({type:D.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_NEW_ADDRESS_LND),(0,b.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_CHANNEL_TRANSACTION_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API,{amount:N.payload.amount,address:N.payload.address,sendAll:N.payload.sendAll,fees:N.payload.fees,blocks:N.payload.blocks}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:D.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),{type:D.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:z})),(0,d.K)(z=>(this.handleErrorWithoutAlert("SetChannelTransaction",D.m6.SEND_FUNDS,"Sending Fund Failed.",z),(0,f.of)({type:D.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_FORWARDING_HISTORY_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.SWITCH_API,{num_max_events:N.payload.num_max_events,index_offset:N.payload.index_offset,end_time:N.payload.end_time,start_time:N.payload.start_time}).pipe((0,b.U)(oe=>(this.logger.info(oe),this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:D.Bn.COMPLETED}})),{type:D.uR.SET_FORWARDING_HISTORY_LND,payload:oe})),(0,d.K)(oe=>(this.handleErrorWithAlert("FetchForwardingHistory",D.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+h.NZ.SWITCH_API,oe),(0,f.of)({type:D.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_QUERY_ROUTES_LND),(0,M.z)(N=>{let z=this.CHILD_API_URL+h.NZ.NETWORK_API+"/routes/"+N.payload.destPubkey+"/"+N.payload.amount;return N.payload.outgoingChanId&&(z=z+"?outgoing_chan_id="+N.payload.outgoingChanId),this.httpClient.get(z).pipe((0,b.U)(oe=>(this.logger.info(oe),{type:D.uR.SET_QUERY_ROUTES_LND,payload:oe})),(0,d.K)(oe=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",D.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+h.NZ.NETWORK_API,oe),(0,f.of)({type:D.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_QUERY_ROUTES_LND),(0,b.U)(N=>N.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GEN_SEED_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+N.payload).pipe((0,b.U)(z=>(this.logger.info("Generated GenSeed!"),this.logger.info(z),this.store.dispatch((0,L.uO)({payload:D.m6.GEN_SEED})),{type:D.uR.GEN_SEED_RESPONSE_LND,payload:z.cipher_seed_mnemonic})),(0,d.K)(z=>(this.handleErrorWithAlert("GenSeed",D.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+N.payload,z),(0,f.of)({type:D.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,M.z)(()=>this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,b.U)(N=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(N),{type:D.pg.VOID})),(0,d.K)(N=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",D.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",N),(0,f.of)({type:D.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GEN_SEED_RESPONSE_LND),(0,b.U)(N=>N.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INIT_WALLET_RESPONSE_LND),(0,b.U)(N=>N.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INIT_WALLET_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:N.payload.pwd,cipher_seed_mnemonic:N.payload.cipher?N.payload.cipher:"",aezeed_passphrase:N.payload.passphrase?N.payload.passphrase:""}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,L.uO)({payload:D.m6.INITIALIZE_WALLET})),{type:D.uR.INIT_WALLET_RESPONSE_LND,payload:z})),(0,d.K)(z=>(this.handleErrorWithAlert("InitWallet",D.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/initwallet",z),(0,f.of)({type:D.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.UNLOCK_WALLET_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:N.payload.pwd}).pipe((0,b.U)(z=>(this.logger.info(z),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,L.uO)({payload:D.m6.UNLOCK_WALLET})),this.store.dispatch((0,L.ac)({payload:D.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,L.uO)({payload:D.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:D.pg.VOID})),(0,d.K)(z=>(this.handleErrorWithAlert("UnlockWallet",D.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/unlockwallet",z),(0,f.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.PEER_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,L.uO)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),{type:D.uR.SET_LOOKUP_LND,payload:z})),(0,d.K)(z=>(this.handleErrorWithAlert("Lookup",D.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload,z),(0,f.of)({type:D.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.CHANNEL_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+N.payload.channelID).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,L.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),{type:D.uR.SET_LOOKUP_LND,payload:z})),(0,d.K)(z=>(this.handleErrorWithAlert("Lookup",N.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+N.payload.channelID,z),(0,f.of)({type:D.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INVOICE_LOOKUP_LND),(0,M.z)(N=>{this.store.dispatch((0,L.ac)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}}));let z=this.CHILD_API_URL+h.NZ.INVOICES_API+"/lookup";return z=N.payload.paymentAddress&&""!==N.payload.paymentAddress?z+"?payment_addr="+N.payload.paymentAddress:z+"?payment_hash="+N.payload.paymentHash,this.httpClient.get(z).pipe((0,b.U)(oe=>(this.logger.info(oe),this.store.dispatch((0,L.uO)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.aL)({payload:oe})),{type:D.uR.SET_LOOKUP_LND,payload:oe})),(0,d.K)(oe=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",oe),N.payload.openSnackBar&&this.store.dispatch((0,L.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:D.uR.SET_LOOKUP_LND,payload:{error:oe}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.PAYMENT_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,L.ac)({payload:D.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/lookup/"+N.payload).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,L.uO)({payload:D.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.qY)({payload:z})),{type:D.uR.SET_LOOKUP_LND,payload:z})),(0,d.K)(z=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",z),(0,f.of)({type:D.uR.SET_LOOKUP_LND,payload:{error:z}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_LOOKUP_LND),(0,b.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.RESTORE_CHANNELS_LIST_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:D.Bn.COMPLETED}})),{type:D.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:N||{all_restore_exists:!1,files:[]}})),(0,d.K)(N=>(this.handleErrorWithAlert("RestoreChannelsList",D.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API,N),(0,f.of)({type:D.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,b.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/alltransactions").pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:D.Bn.COMPLETED}})),{type:D.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:N})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchLightningTransactions",D.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.store.select(S.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(N=>{N.FetchInfo.status!==D.Bn.COMPLETED&&N.FetchInfo.status!==D.Bn.ERROR||N.FetchFees.status!==D.Bn.COMPLETED&&N.FetchFees.status!==D.Bn.ERROR||N.FetchBalanceBlockchain.status!==D.Bn.COMPLETED&&N.FetchBalanceBlockchain.status!==D.Bn.ERROR||N.FetchAllChannels.status!==D.Bn.COMPLETED&&N.FetchAllChannels.status!==D.Bn.ERROR||N.FetchPendingChannels.status!==D.Bn.COMPLETED&&N.FetchPendingChannels.status!==D.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,L.uO)({payload:D.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(N=>{this.logger.info("Received new message from the service: "+JSON.stringify(N)),N&&(N.type===D.g8.INVOICE?(this.logger.info(N),N&&N.result&&N.result.payment_request&&this.store.dispatch((0,k.aL)({payload:N.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(N)))})}initializeRemainingData(r,u){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,L.ac)({payload:D.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,L._V)({payload:c}));let _=this.location.path();_.includes("/cln/")?_=_.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===u||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),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,u,c,_){this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,L.uO)({payload:u})),this.store.dispatch((0,k.PC)({payload:{action:r,status:D.Bn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,c)}})))}handleErrorWithAlert(r,u,c,_,E){if(this.logger.error(E),401===E.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,L.uO)({payload:u}));const I=this.commonService.extractErrorMessage(E);this.store.dispatch((0,L.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:E.status,message:I,URL:_},component:w.H}}})),this.store.dispatch((0,k.PC)({payload:{action:r,status:D.Bn.ERROR,statusCode:E.status.toString(),message:I,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return x.\u0275fac=function(r){return new(r||x)(U.LFG(t.eX),U.LFG(Z.eN),U.LFG(j.yh),U.LFG(ne.mQ),U.LFG(X.v),U.LFG(de.m),U.LFG(ee.uw),U.LFG(te.F0),U.LFG(ce.d),U.LFG(J.Ye))},x.\u0275prov=U.Yz7({token:x,factory:x.\u0275fac}),x})()},6529:(Fe,Y,p)=>{"use strict";p.d(Y,{$k:()=>f,Bo:()=>d,Ef:()=>D,JG:()=>h,N7:()=>X,P2:()=>U,PP:()=>P,Q5:()=>M,T4:()=>ne,Wi:()=>A,ZW:()=>L,_f:()=>ee,bx:()=>te,dx:()=>w,l5:()=>de,ni:()=>S,qU:()=>Z,yA:()=>b});var t=p(5620);const e=(0,t.ZF)("lnd"),f=(0,t.P1)(e,ce=>ce.nodeSettings),M=(0,t.P1)(e,ce=>ce.information),b=((0,t.P1)(e,ce=>({information:ce.information,apiCallStatus:ce.apisCallStatus.FetchInfo})),(0,t.P1)(e,ce=>ce.apisCallStatus)),d=(0,t.P1)(e,ce=>({forwardingHistory:ce.forwardingHistory,apiCallStatus:ce.apisCallStatus.FetchForwardingHistory})),P=(0,t.P1)(e,ce=>({listPayments:ce.listPayments,apiCallStatus:ce.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,ce=>({fees:ce.fees,apiCallStatus:ce.apisCallStatus.FetchFees})),A=(0,t.P1)(e,ce=>({peers:ce.peers,apiCallStatus:ce.apisCallStatus.FetchPeers})),w=(0,t.P1)(e,ce=>({transactions:ce.transactions,apiCallStatus:ce.apisCallStatus.FetchTransactions})),D=(0,t.P1)(e,ce=>({listInvoices:ce.listInvoices,apiCallStatus:ce.apisCallStatus.FetchInvoices})),L=(0,t.P1)(e,ce=>({channels:ce.channels,channelsSummary:ce.channelsSummary,lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),S=((0,t.P1)(e,ce=>({channelsSummary:ce.channelsSummary,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({pendingChannels:ce.pendingChannels,pendingChannelsSummary:ce.pendingChannelsSummary,apiCallStatus:ce.apisCallStatus.FetchPendingChannels}))),U=(0,t.P1)(e,ce=>({closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchClosedChannels})),Z=(0,t.P1)(e,ce=>({blockchainBalance:ce.blockchainBalance,apiCallStatus:ce.apisCallStatus.FetchBalanceBlockchain})),ne=((0,t.P1)(e,ce=>({lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({utxos:ce.utxos,apiCallStatus:ce.apisCallStatus.FetchUTXOs}))),X=(0,t.P1)(e,ce=>({networkInfo:ce.networkInfo,apiCallStatus:ce.apisCallStatus.FetchNetwork})),de=(0,t.P1)(e,ce=>({allLightningTransactions:ce.allLightningTransactions,apiCallStatus:ce.apisCallStatus.FetchLightningTransactions})),ee=(0,t.P1)(e,ce=>({channels:ce.channels,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels})),te=(0,t.P1)(e,ce=>({information:ce.information,nodeSettings:ce.nodeSettings,apiCallStatus:ce.apisCallStatus.FetchInfo}))},8627:(Fe,Y,p)=>{"use strict";p.d(Y,{v:()=>$});var t=p(8966),e=p(801),f=p(7579),M=p(2722),a=p(7731),b=p(6529),d=p(5e3),P=p(5043),h=p(62),A=p(7261),w=p(5620),D=p(7093),L=p(9808),k=p(3322),S=p(159),U=p(9224),Z=p(9444),j=p(7423),ne=p(4834),X=p(8129),de=p(773),ee=p(1125),te=p(7238),ce=p(5245),J=p(3390),me=p(6895);const x=["scrollContainer"];function i(ue,Ce){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,Ce){1&ue&&(d.TgZ(0,"span",33),d._uU(1,"N/A"),d.qZA())}function u(ue,Ce){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,Ce){1&ue&&(d.TgZ(0,"span",34),d._uU(1,"QR Code Not Applicable"),d.qZA())}function _(ue,Ce){1&ue&&d._UZ(0,"mat-divider",22),2&ue&&d.Q6J("inset",!0)}function E(ue,Ce){1&ue&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function I(ue,Ce){1&ue&&d._UZ(0,"span",40)}const v=function(){return[]};function n(ue,Ce){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,v).constructor(35))}}function C(ue,Ce){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 B(ue,Ce){if(1&ue&&(d.ynx(0),d.YNc(1,n,6,5,"div",35),d.YNc(2,C,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 N(ue,Ce){1&ue&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function z(ue,Ce){1&ue&&d._UZ(0,"mat-spinner",42),2&ue&&d.Q6J("diameter",20)}function oe(ue,Ce){if(1&ue&&(d.ynx(0),d.YNc(1,N,2,0,"span",21),d.YNc(2,z,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 ge=function(ue){return{"mr-0":ue}};function be(ue,Ce){if(1&ue&&d._UZ(0,"span",59),2&ue){const Le=d.oxw(4);d.Q6J("ngClass",d.VKq(1,ge,Le.screenSize===Le.screenSizeEnum.XS))}}function Re(ue,Ce){if(1&ue&&d._UZ(0,"span",60),2&ue){const Le=d.oxw(4);d.Q6J("ngClass",d.VKq(1,ge,Le.screenSize===Le.screenSizeEnum.XS))}}function we(ue,Ce){if(1&ue&&d._UZ(0,"span",61),2&ue){const Le=d.oxw(4);d.Q6J("ngClass",d.VKq(1,ge,Le.screenSize===Le.screenSizeEnum.XS))}}function Q(ue,Ce){if(1&ue&&(d.TgZ(0,"div",48)(1,"div",53)(2,"span",54),d.YNc(3,be,1,3,"span",55),d.YNc(4,Re,1,3,"span",56),d.YNc(5,we,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=Ce.$implicit,ct=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,ct.getDecimalFormat(Le))),d.xp6(2),d.Q6J("inset",!0)}}function Ge(ue,Ce){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,Q,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 ve(ue,Ce){1&ue&&d._UZ(0,"mat-divider",22),2&ue&&d.Q6J("inset",!0)}function F(ue,Ce){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,Ge,14,2,"div",45),d.YNc(27,ve,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 De(ue,Ce){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 lt(ue,Ce){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ie(ue,Ce){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function Ae(ue,Ce){if(1&ue){const Le=d.EpF();d.TgZ(0,"button",65),d.NdJ("copied",function(ut){return d.CHM(Le),d.oxw().onCopyPayment(ut)}),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 se(ue,Ce){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}},ye=function(ue){return{"xs-scroll-y":ue}},W=function(ue){return{"h-50":ue}};let $=(()=>{class ue{constructor(Le,ct,ut,Dt,di,Yt){this.dialogRef=Le,this.data=ct,this.logger=ut,this.commonService=Dt,this.snackBar=di,this.store=Yt,this.faReceipt=e.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.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(b.Q5).pipe((0,M.R)(this.unSubs[0])).subscribe(ct=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ct.version,"0.11.0")});const Le=JSON.parse(JSON.stringify(this.invoice));this.store.select(b.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(ct=>{const ut=this.invoice.state,di=(ct.listInvoices.invoices||[]).find(Yt=>Yt.r_hash===Le.r_hash);this.invoice=di,ut!==this.invoice.state&&"SETTLED"===this.invoice.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ct)})}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(t.so),d.Y36(t.WI),d.Y36(P.mQ),d.Y36(h.v),d.Y36(A.ux),d.Y36(w.yh))},ue.\u0275cmp=d.Xpm({type:ue,selectors:[["rtl-invoice-information"]],viewQuery:function(Le,ct){if(1&Le&&d.Gf(x,5),2&Le){let ut;d.iGM(ut=d.CRH())&&(ct.container=ut.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,ct){if(1&Le&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,i,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 ct.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,u,1,3,"qr-code",2),d.YNc(16,c,2,0,"span",13),d.qZA(),d.YNc(17,_,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,E,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,B,3,2,"ng-container",21),d.YNc(33,oe,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,F,28,9,"div",21),d.qZA()()(),d.YNc(70,De,4,0,"div",25),d.TgZ(71,"div",26)(72,"button",27),d.NdJ("click",function(){return ct.onShowAdvanced()}),d.YNc(73,lt,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,se,2,0,"button",31),d.qZA()()()),2&Le){const ut=d.MAs(75);d.xp6(1),d.Q6J("fxLayoutAlign",null!=ct.invoice&&ct.invoice.payment_request&&""!==(null==ct.invoice?null:ct.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(41,Te,ct.screenSize===ct.screenSizeEnum.XS||ct.screenSize===ct.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.payment_request)&&""!==(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.payment_request)||""===(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(4),d.Q6J("icon",ct.faReceipt),d.xp6(2),d.Oqu(ct.screenSize===ct.screenSizeEnum.XS?ct.newlyAdded?"Created":"Invoice":ct.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(43,ye,ct.screenSize===ct.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=ct.invoice&&ct.invoice.payment_request&&""!==(null==ct.invoice?null:ct.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(45,Te,ct.screenSize!==ct.screenSizeEnum.XS&&ct.screenSize!==ct.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.payment_request)&&""!==(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.payment_request)||""===(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",ct.screenSize===ct.screenSizeEnum.XS||ct.screenSize===ct.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngClass",d.VKq(47,W,(null==ct.invoice?null:ct.invoice.htlcs)&&(null==ct.invoice?null:ct.invoice.htlcs.length)>0&&ct.showAdvanced)),d.xp6(5),d.Oqu(ct.screenSize===ct.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij("",d.lcZ(26,33,(null==ct.invoice?null:ct.invoice.value)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.value)||"0"===(null==ct.invoice?null:ct.invoice.value)),d.xp6(5),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.amt_paid_sat)&&"OPEN"!==(null==ct.invoice?null:ct.invoice.state)),d.xp6(1),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.amt_paid_sat)||"0"===(null==ct.invoice?null:ct.invoice.amt_paid_sat)),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(d.xi3(41,35,1e3*(null==ct.invoice?null:ct.invoice.creation_date),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(0!=+(null==ct.invoice?null:ct.invoice.settle_date)?d.xi3(47,38,1e3*+(null==ct.invoice?null:ct.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),d.xp6(2),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==ct.invoice?null:ct.invoice.memo),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==ct.invoice?null:ct.invoice.payment_request)||"N/A"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==ct.invoice?null:ct.invoice.r_hash)||""),d.xp6(1),d.Q6J("ngIf",ct.showAdvanced),d.xp6(1),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.htlcs)&&(null==ct.invoice?null:ct.invoice.htlcs.length)>0&&ct.showAdvanced&&ct.flgOpened),d.xp6(3),d.Q6J("ngIf",!ct.showAdvanced)("ngIfElse",ut),d.xp6(3),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.payment_request)&&""!==(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.payment_request)||""===(null==ct.invoice?null:ct.invoice.payment_request))}},directives:[D.xw,D.Wh,D.yH,L.mk,k.oO,L.O5,S.uU,U.dk,Z.BN,j.lW,U.dn,ne.d,X.$V,L.sg,de.Ou,ee.ib,ee.yz,ee.yK,te.gM,ce.Hw,J.h,me.y],pipes:[L.JJ,L.uU],styles:[""]}),ue})()},7772:(Fe,Y,p)=>{"use strict";p.d(Y,{J:()=>f,_:()=>e});var t=p(1777);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],f=[(0,t.X$)("fadeIn",[(0,t.eR)("void => *",[]),(0,t.eR)("* => void",[]),(0,t.eR)("* => *",[(0,t.jt)(800,(0,t.F4)([(0,t.oB)({opacity:0,transform:"translateY(100%)"}),(0,t.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Fe,Y,p)=>{"use strict";p.d(Y,{g:()=>e});var t=p(1777);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Fe,Y,p)=>{"use strict";p.d(Y,{l:()=>e});var t=p(1777);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(Fe,Y,p)=>{"use strict";p.d(Y,{H:()=>w});var t=p(8966),e=p(5e3),f=p(5043),M=p(7093),a=p(9224),b=p(7423),d=p(9808),P=p(4834),h=p(3390);function A(D,L){if(1&D&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&D){const k=e.oxw();e.xp6(1),e.Oqu(k.data.titleMessage)}}let w=(()=>{class D{constructor(k,S,U){this.dialogRef=k,this.data=S,this.logger=U,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(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 D.\u0275fac=function(k){return new(k||D)(e.Y36(t.so),e.Y36(t.WI),e.Y36(f.mQ))},D.\u0275cmp=e.Xpm({type:D,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,S){1&k&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return S.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,A,2,1,"p",8),e.TgZ(11,"h4",9),e._uU(12,"Error Code"),e.qZA(),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"h4",9),e._uU(17,"Error Message"),e.qZA(),e.TgZ(18,"span",11),e._uU(19),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"h4",9),e._uU(22,"API URL"),e.qZA(),e.TgZ(23,"span",11),e._uU(24),e.qZA(),e._UZ(25,"mat-divider",10),e.TgZ(26,"div",12)(27,"button",13),e._uU(28,"OK"),e.qZA()()()()()()),2&k&&(e.xp6(5),e.Oqu(S.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",S.data.titleMessage),e.xp6(4),e.Oqu(S.data.message.code),e.xp6(5),e.Oqu(S.errorMessage),e.xp6(5),e.Oqu(S.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},directives:[M.xw,M.yH,a.dk,M.Wh,b.lW,a.dn,d.O5,P.d,h.h,t.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),D})()},9442:(Fe,Y,p)=>{"use strict";p.d(Y,{w:()=>P});var t=p(801),e=p(5e3),f=p(1402),M=p(7093),a=p(9444),b=p(9224),d=p(7423);let P=(()=>{class h{constructor(w){this.router=w,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}return h.\u0275fac=function(w){return new(w||h)(e.Y36(f.F0))},h.\u0275cmp=e.Xpm({type:h,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(w,D){1&w&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return D.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&w&&(e.xp6(1),e.Q6J("icon",D.faTimes))},directives:[M.xw,M.Wh,a.BN,b.a8,b.dn,M.yH,d.lW],encapsulation:2}),h})()},8213:(Fe,Y,p)=>{"use strict";p.d(Y,{a:()=>Yi});var t=p(3075),e=p(7579),f=p(2722),M=p(8966),a=p(801),b=p(7772),d=p(7731),P=p(6529),h=p(5e3),A=p(5620),w=p(9107),D=p(9808),L=p(5043),k=p(1402),S=p(62),U=p(7093),Z=p(9224),j=p(7423),ne=p(5615),X=p(1125),de=p(3322),ee=p(5245),te=p(7238),ce=p(4834);function J(ze,Lt){1&ze&&h.GkF(0)}function me(ze,Lt){1&ze&&h.GkF(0)}const x=function(ze){return{"h-5":ze}};function i(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),h._uU(4),h.ALo(5,"number"),h.qZA()()(),h.YNc(6,me,1,0,"ng-container",0),h.qZA()),2&ze){const fe=h.oxw(),je=h.MAs(4);h.Q6J("expanded",fe.panelExpanded)("ngClass",h.VKq(7,x,!fe.flgShowPanel)),h.xp6(4),h.AsE("Quote for ",fe.termCaption," amount (",h.lcZ(5,5,fe.quote.amount)," Sats)"),h.xp6(2),h.Q6J("ngTemplateOutlet",je)}}function r(ze,Lt){if(1&ze&&(h.TgZ(0,"div",19)(1,"h4",8),h._uU(2," Prepay Amount (Sats) "),h.TgZ(3,"mat-icon",20),h._uU(4,"info_outline"),h.qZA()(),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"number"),h.qZA()()),2&ze){const fe=h.oxw(2);h.xp6(6),h.Oqu(h.lcZ(7,1,null==fe.quote?null:fe.quote.prepay_amt_sat))}}function u(ze,Lt){1&ze&&h._UZ(0,"mat-divider",13)}function c(ze,Lt){if(1&ze&&(h.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),h._uU(3," Swap Server Node Pubkey "),h.TgZ(4,"mat-icon",22),h._uU(5,"info_outline"),h.qZA()(),h.TgZ(6,"span",10),h._uU(7),h.qZA()()()),2&ze){const fe=h.oxw(2);h.xp6(7),h.Oqu(null==fe.quote?null:fe.quote.swap_payment_dest)}}function _(ze,Lt){if(1&ze&&(h.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),h._uU(4," Swap Fee (Sats) "),h.TgZ(5,"mat-icon",9),h._uU(6,"info_outline"),h.qZA()(),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"number"),h.qZA()(),h.TgZ(10,"div",7)(11,"h4",8),h._uU(12),h.TgZ(13,"mat-icon",11),h._uU(14,"info_outline"),h.qZA()(),h.TgZ(15,"span",10),h._uU(16),h.ALo(17,"number"),h.qZA()(),h.YNc(18,r,8,3,"div",12),h.qZA(),h._UZ(19,"mat-divider",13),h.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),h._uU(23," Max Off-chain Swap Routing Fee (Sats) "),h.TgZ(24,"mat-icon",15),h._uU(25,"info_outline"),h.qZA()(),h.TgZ(26,"span",10),h._uU(27),h.ALo(28,"number"),h.qZA()(),h.TgZ(29,"div",14)(30,"h4",8),h._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),h.TgZ(32,"mat-icon",16),h._uU(33,"info_outline"),h.qZA()(),h.TgZ(34,"span",10),h._uU(35,"36"),h.qZA()()(),h.YNc(36,u,1,0,"mat-divider",17),h.YNc(37,c,8,1,"div",18),h.qZA()),2&ze){const fe=h.oxw();h.xp6(2),h.Q6J("fxFlex",null!=fe.quote&&fe.quote.prepay_amt_sat?"30":"50"),h.xp6(6),h.Oqu(h.lcZ(9,9,null==fe.quote?null:fe.quote.swap_fee_sat)),h.xp6(2),h.Q6J("fxFlex",null!=fe.quote&&fe.quote.prepay_amt_sat?"35":"50"),h.xp6(2),h.hij(" ",null!=fe.quote&&fe.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=fe.quote&&fe.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),h.xp6(4),h.Oqu(h.lcZ(17,11,null!=fe.quote&&fe.quote.htlc_sweep_fee_sat?fe.quote.htlc_sweep_fee_sat:null!=fe.quote&&fe.quote.htlc_publish_fee_sat?fe.quote.htlc_publish_fee_sat:0)),h.xp6(2),h.Q6J("ngIf",null==fe.quote?null:fe.quote.prepay_amt_sat),h.xp6(9),h.Oqu(h.lcZ(28,13,(null==fe.quote?null:fe.quote.amount)*((null!=fe.quote&&fe.quote.off_chain_swap_routing_fee_percentage?null==fe.quote?null:fe.quote.off_chain_swap_routing_fee_percentage:2)/100))),h.xp6(9),h.Q6J("ngIf",""!==(null==fe.quote?null:fe.quote.swap_payment_dest)),h.xp6(1),h.Q6J("ngIf",""!==(null==fe.quote?null:fe.quote.swap_payment_dest))}}let E=(()=>{class ze{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return ze.\u0275fac=function(fe){return new(fe||ze)},ze.\u0275cmp=h.Xpm({type:ze,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(fe,je){if(1&fe&&(h.YNc(0,J,1,0,"ng-container",0),h.YNc(1,i,7,9,"ng-template",null,1,h.W1O),h.YNc(3,_,38,15,"ng-template",null,2,h.W1O)),2&fe){const Ct=h.MAs(2),ie=h.MAs(4);h.Q6J("ngTemplateOutlet",je.showPanel?Ct:ie)}},directives:[D.tP,X.ib,U.yH,D.mk,de.oO,X.yz,X.yK,U.Wh,U.xw,ee.Hw,te.gM,D.O5,ce.d],pipes:[D.JJ],styles:[""]}),ze})();var I=p(7322),v=p(7531),n=p(3390),C=p(2368),B=p(9814),N=p(5899);function z(ze,Lt){1&ze&&h.GkF(0)}function oe(ze,Lt){if(1&ze&&(h.TgZ(0,"div",3)(1,"span",4),h._uU(2),h.qZA()()),2&ze){const fe=h.oxw();h.xp6(2),h.Oqu(null!=fe.loopStatus&&fe.loopStatus.error?null==fe.loopStatus?null:fe.loopStatus.error:"Unknown Error.")}}function ge(ze,Lt){if(1&ze&&(h.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),h._uU(4,"ID"),h.qZA(),h.TgZ(5,"span",4),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",8),h.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),h._uU(11,"HTLC Address"),h.qZA(),h.TgZ(12,"span",4),h._uU(13),h.qZA()()()()),2&ze){const fe=h.oxw();h.xp6(6),h.Oqu(null==fe.loopStatus?null:fe.loopStatus.id_bytes),h.xp6(7),h.Oqu(null==fe.loopStatus?null:fe.loopStatus.htlc_address)}}let be=(()=>{class ze{constructor(){}}return ze.\u0275fac=function(fe){return new(fe||ze)},ze.\u0275cmp=h.Xpm({type:ze,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(fe,je){if(1&fe&&(h.YNc(0,z,1,0,"ng-container",0),h.YNc(1,oe,3,1,"ng-template",null,1,h.W1O),h.YNc(3,ge,14,2,"ng-template",null,2,h.W1O)),2&fe){const Ct=h.MAs(2),ie=h.MAs(4);h.Q6J("ngTemplateOutlet",null!=je.loopStatus&&je.loopStatus.error?Ct:ie)}},directives:[D.tP,U.xw,U.yH,U.Wh,ce.d],styles:[""]}),ze})();var Re=p(113);function we(ze,Lt){1&ze&&h.GkF(0)}const Q=function(ze,Lt){return{"small-svg":ze,"large-svg":Lt}};function Ge(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._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),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop Out explained."),h.qZA()(),h.TgZ(29,"div",31)(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}function ve(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),h._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),h.qZA(),h.TgZ(28,"g",56),h._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),h.qZA(),h._UZ(43,"path",71),h.qZA()(),h._UZ(44,"circle",72),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Step 1: Deciding to Loop Out"),h.qZA()(),h.TgZ(48,"div",31)(49,"mat-card-subtitle",32),h._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}function F(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",73)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",74),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",75)(11,"g",76),h._UZ(12,"circle",77)(13,"path",78),h.TgZ(14,"g",79),h._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),h.qZA(),h.TgZ(18,"g",83),h._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),h.TgZ(29,"g",94)(30,"g",95),h._UZ(31,"g",96),h.qZA(),h._UZ(32,"g",97),h.qZA(),h._UZ(33,"path",98),h.qZA(),h.TgZ(34,"g",99)(35,"g",41)(36,"g",42),h._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),h.qZA(),h.TgZ(52,"g",56),h._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),h.qZA(),h._UZ(67,"path",111),h.qZA()()()()()(),h.kcU(),h.TgZ(68,"div",30)(69,"mat-card-title"),h._uU(70,"Step 2: Send lightning payment"),h.qZA()(),h.TgZ(71,"div",31)(72,"mat-card-subtitle",32),h._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. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}function De(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",112)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),h._UZ(9,"circle",12)(10,"path",117),h.qZA(),h.TgZ(11,"g",14),h._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),h.qZA()(),h.TgZ(27,"g",119),h._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),h.qZA(),h.TgZ(31,"g",121),h._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),h.TgZ(42,"g",94)(43,"g",95),h._UZ(44,"g",96),h.qZA(),h._UZ(45,"g",97),h.qZA(),h._UZ(46,"path",123),h.qZA()()()()(),h.kcU(),h.TgZ(47,"div",30)(48,"mat-card-title"),h._uU(49,"Step 3: Receive funds back"),h.qZA()(),h.TgZ(50,"div",31)(51,"mat-card-subtitle",32),h._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}function lt(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",124)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),h._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),h.qZA(),h.TgZ(28,"g",142)(29,"g",143)(30,"g",144),h._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),h.TgZ(34,"g",148),h._UZ(35,"path",149),h.qZA(),h._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),h.qZA(),h.TgZ(45,"g",159),h._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),h.qZA(),h._UZ(59,"path",173),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Done!"),h.qZA()(),h.TgZ(63,"div",31)(64,"mat-card-subtitle",32),h._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. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}let Ie=(()=>{class ze{constructor(fe){this.commonService=fe,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(fe){2===fe.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===fe.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return ze.\u0275fac=function(fe){return new(fe||ze)(h.Y36(S.v))},ze.\u0275cmp=h.Xpm({type:ze,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(fe,je){if(1&fe&&(h.YNc(0,we,1,0,"ng-container",0),h.YNc(1,Ge,32,5,"ng-template",null,1,h.W1O),h.YNc(3,ve,51,5,"ng-template",null,2,h.W1O),h.YNc(5,F,74,5,"ng-template",null,3,h.W1O),h.YNc(7,De,53,5,"ng-template",null,4,h.W1O),h.YNc(9,lt,66,5,"ng-template",null,5,h.W1O)),2&fe){const Ct=h.MAs(2),ie=h.MAs(4),qe=h.MAs(6),Mt=h.MAs(8),Vt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===je.stepNumber?Ct:2===je.stepNumber?ie:3===je.stepNumber?qe:4===je.stepNumber?Mt:Vt)}},directives:[D.tP,U.xw,U.yH,U.Wh,D.mk,de.oO,Z.n5,Z.$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:[Re.l]}}),ze})();function Ae(ze,Lt){1&ze&&h.GkF(0)}const se=function(ze,Lt){return{"small-svg":ze,"large-svg":Lt}};function Te(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._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),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop In explained."),h.qZA()(),h.TgZ(29,"div",31)(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,se,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}function ye(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),h._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),h.qZA(),h.TgZ(28,"g",56)(29,"g",57)(30,"g",58),h._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),h.TgZ(34,"g",62),h._UZ(35,"path",63),h.qZA(),h._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),h.qZA(),h.TgZ(45,"g",73),h._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),h.qZA(),h._UZ(59,"path",87),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Step 1: Deciding to Loop In"),h.qZA()(),h.TgZ(63,"div",31)(64,"mat-card-subtitle",32),h._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,se,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}function W(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",88)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",89),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),h._UZ(14,"circle",95)(15,"path",96),h.TgZ(16,"g",97),h._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),h.qZA(),h.TgZ(20,"g",101),h._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),h.TgZ(31,"g",112)(32,"g",113),h._UZ(33,"g",114),h.qZA(),h._UZ(34,"g",115),h.qZA()()(),h.TgZ(35,"g",116)(36,"g",40),h._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),h.qZA(),h.TgZ(53,"g",56)(54,"g",57)(55,"g",58),h._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),h.TgZ(59,"g",122),h._UZ(60,"path",63),h.qZA(),h._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),h.qZA(),h.TgZ(70,"g",73),h._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),h.qZA(),h._UZ(84,"path",139),h.qZA()()()(),h._UZ(85,"path",140)(86,"path",141),h.qZA()()()(),h.kcU(),h.TgZ(87,"div",30)(88,"mat-card-title"),h._uU(89,"Step 2: Send payment out"),h.qZA()(),h.TgZ(90,"div",31)(91,"mat-card-subtitle",32),h._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,se,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}function $(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",142)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),h._UZ(10,"circle",12)(11,"path",147),h.qZA(),h.TgZ(12,"g",14),h._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),h.qZA()(),h.TgZ(28,"g",149),h._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),h.qZA(),h.TgZ(32,"g",152),h._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),h.TgZ(43,"g",112)(44,"g",113),h._UZ(45,"g",114),h.qZA(),h._UZ(46,"g",115),h.qZA()()(),h._UZ(47,"path",153),h.qZA()()()(),h.kcU(),h.TgZ(48,"div",30)(49,"mat-card-title"),h._uU(50,"Step 3: Recieve Funds Off-chain"),h.qZA()(),h.TgZ(51,"div",31)(52,"mat-card-subtitle",32),h._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,se,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}function ue(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(fe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",154)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),h._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),h.qZA(),h.TgZ(28,"g",172),h._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),h.qZA(),h._UZ(43,"path",187),h.qZA()(),h._UZ(44,"circle",188),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Done!"),h.qZA()(),h.TgZ(48,"div",31)(49,"mat-card-subtitle",32),h._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. "),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@sliderAnimation",fe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,se,fe.screenSize===fe.screenSizeEnum.XS,fe.screenSize!==fe.screenSizeEnum.XS))}}let Ce=(()=>{class ze{constructor(fe){this.commonService=fe,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(fe){2===fe.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===fe.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return ze.\u0275fac=function(fe){return new(fe||ze)(h.Y36(S.v))},ze.\u0275cmp=h.Xpm({type:ze,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(fe,je){if(1&fe&&(h.YNc(0,Ae,1,0,"ng-container",0),h.YNc(1,Te,32,5,"ng-template",null,1,h.W1O),h.YNc(3,ye,66,5,"ng-template",null,2,h.W1O),h.YNc(5,W,93,5,"ng-template",null,3,h.W1O),h.YNc(7,$,54,5,"ng-template",null,4,h.W1O),h.YNc(9,ue,51,5,"ng-template",null,5,h.W1O)),2&fe){const Ct=h.MAs(2),ie=h.MAs(4),qe=h.MAs(6),Mt=h.MAs(8),Vt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===je.stepNumber?Ct:2===je.stepNumber?ie:3===je.stepNumber?qe:4===je.stepNumber?Mt:Vt)}},directives:[D.tP,U.xw,U.yH,U.Wh,D.mk,de.oO,Z.n5,Z.$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:[Re.l]}}),ze})();const Le=["stepper"];function ct(ze,Lt){if(1&ze&&(h.TgZ(0,"div",48)(1,"p",49)(2,"strong"),h._uU(3,"Channel Peer:\xa0"),h.qZA(),h._uU(4),h.ALo(5,"titlecase"),h.qZA(),h.TgZ(6,"p",50)(7,"strong"),h._uU(8,"Channel ID:\xa0"),h.qZA(),h._uU(9),h.qZA(),h._UZ(10,"p",50),h.qZA()),2&ze){const fe=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,2,fe.channel.remote_alias)),h.xp6(5),h.Oqu(fe.channel.chan_id)}}function ut(ze,Lt){if(1&ze&&h._uU(0),2&ze){const fe=h.oxw(2);h.Oqu(fe.inputFormLabel)}}function Dt(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Amount is required."),h.qZA())}function di(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&ze){const fe=h.oxw(2);h.xp6(1),h.hij("Amount must be greater than or equal to ",h.lcZ(2,1,fe.minQuote.amount),".")}}function Yt(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&ze){const fe=h.oxw(2);h.xp6(1),h.hij("Amount must be less than or equal to ",h.lcZ(2,1,fe.maxQuote.amount),".")}}function Gt(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target is required."),h.qZA())}function ui(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target must be a positive number."),h.qZA())}function xt(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage is required."),h.qZA())}function Nt(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage must be a positive number."),h.qZA())}function gt(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-form-field",50),h._UZ(1,"input",51),h.YNc(2,xt,2,0,"mat-error",25),h.YNc(3,Nt,2,0,"mat-error",25),h.qZA()),2&ze){const fe=h.oxw(2);h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==fe.inputFormGroup.controls.routingFeePercent.errors?null:fe.inputFormGroup.controls.routingFeePercent.errors.required),h.xp6(1),h.Q6J("ngIf",null==fe.inputFormGroup.controls.routingFeePercent.errors?null:fe.inputFormGroup.controls.routingFeePercent.errors.min)}}function et(ze,Lt){1&ze&&(h.TgZ(0,"div",52)(1,"mat-slide-toggle",53),h._uU(2,"Fast"),h.qZA(),h.TgZ(3,"mat-icon",54),h._uU(4,"info_outline"),h.qZA()())}function vt(ze,Lt){if(1&ze&&h._uU(0),2&ze){const fe=h.oxw(2);h.Oqu(fe.quoteFormLabel)}}function $t(ze,Lt){1&ze&&(h.TgZ(0,"p",55)(1,"mat-icon",56),h._uU(2,"close"),h.qZA(),h._uU(3,"Local balance amount is insufficient for swap."),h.qZA())}function jt(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",57),h.NdJ("click",function(){return h.CHM(fe),h.oxw(2).onValidateAmount()}),h._uU(1,"Next"),h.qZA()}}function Pe(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",58),h.NdJ("click",function(){return h.CHM(fe),h.oxw(2).onLoop()}),h._uU(1),h.qZA()}if(2&ze){const fe=h.oxw(2);h.xp6(1),h.hij("Initiate ",fe.loopDirectionCaption,"")}}function Oe(ze,Lt){if(1&ze&&h._uU(0),2&ze){const fe=h.oxw(3);h.Oqu(fe.addressFormLabel)}}function le(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Address is required."),h.qZA())}function xe(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"mat-step",16)(1,"form",17),h.YNc(2,Oe,1,1,"ng-template",18),h.TgZ(3,"div",59)(4,"mat-radio-group",60),h.NdJ("change",function(Ct){return h.CHM(fe),h.oxw(2).onAddressTypeChange(Ct)}),h.TgZ(5,"mat-radio-button",61),h._uU(6,"Node Local Address"),h.qZA(),h.TgZ(7,"mat-radio-button",62),h._uU(8,"External Address"),h.qZA()(),h.TgZ(9,"mat-form-field",63),h._UZ(10,"input",64),h.YNc(11,le,2,0,"mat-error",25),h.qZA()(),h.TgZ(12,"div",29)(13,"button",65),h.NdJ("click",function(){return h.CHM(fe),h.oxw(2).onLoop()}),h._uU(14),h.qZA()()()()}if(2&ze){const fe=h.oxw(2);h.Q6J("stepControl",fe.addressFormGroup)("editable",fe.flgEditable),h.xp6(1),h.Q6J("formGroup",fe.addressFormGroup),h.xp6(9),h.Q6J("required","external"===fe.addressFormGroup.controls.addressType.value),h.xp6(1),h.Q6J("ngIf",null==fe.addressFormGroup.controls.address.errors?null:fe.addressFormGroup.controls.address.errors.required),h.xp6(3),h.hij("Initiate ",fe.loopDirectionCaption,"")}}function ht(ze,Lt){if(1&ze&&h._uU(0),2&ze){const fe=h.oxw(2);h.hij("",fe.loopDirectionCaption," Status")}}function ft(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-icon",66),h._uU(1),h.qZA()),2&ze){const fe=h.oxw(2);h.xp6(1),h.Oqu(fe.loopStatus&&null!=fe.loopStatus&&fe.loopStatus.id_bytes?"check":"close")}}function Ht(ze,Lt){1&ze&&h._UZ(0,"div")}function it(ze,Lt){1&ze&&h._UZ(0,"mat-progress-bar",67)}function Ne(ze,Lt){if(1&ze&&(h.TgZ(0,"h4",68),h._uU(1),h.qZA()),2&ze){const fe=h.oxw(2);h.xp6(1),h.Oqu(fe.loopStatus&&fe.loopStatus.error?fe.loopDirectionCaption+" failed.":fe.loopStatus&&fe.loopStatus.id_bytes&&fe.channel?fe.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":fe.loopDirectionCaption+" request placed successfully.")}}function tt(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",69),h.NdJ("click",function(){return h.CHM(fe),h.oxw(2).goToLoop()}),h._uU(1,"Check Status"),h.qZA()}}function Je(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",70),h.NdJ("click",function(){return h.CHM(fe),h.oxw(2).onRestart()}),h._uU(1,"Start Again"),h.qZA()}}function Se(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),h._uU(5),h.qZA()(),h.TgZ(6,"div",8)(7,"button",9),h.NdJ("click",function(){return h.CHM(fe),h.oxw().showInfo()}),h._uU(8,"?"),h.qZA(),h.TgZ(9,"button",10),h.NdJ("click",function(){return h.CHM(fe),h.oxw().onClose()}),h._uU(10,"X"),h.qZA()()(),h.TgZ(11,"mat-card-content",11)(12,"div",12),h.YNc(13,ct,11,4,"div",13),h.TgZ(14,"mat-vertical-stepper",14,15),h.NdJ("selectionChange",function(Ct){return h.CHM(fe),h.oxw().stepSelectionChanged(Ct)}),h.TgZ(16,"mat-step",16)(17,"form",17),h.YNc(18,ut,1,1,"ng-template",18),h.TgZ(19,"div",19),h._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),h.qZA(),h.TgZ(22,"div",21)(23,"mat-form-field",22),h._UZ(24,"input",23),h.TgZ(25,"mat-hint"),h._uU(26),h.ALo(27,"number"),h.ALo(28,"number"),h.qZA(),h.TgZ(29,"span",24),h._uU(30,"Sats"),h.qZA(),h.YNc(31,Dt,2,0,"mat-error",25),h.YNc(32,di,3,3,"mat-error",25),h.YNc(33,Yt,3,3,"mat-error",25),h.qZA(),h.TgZ(34,"mat-form-field",22),h._UZ(35,"input",26),h.YNc(36,Gt,2,0,"mat-error",25),h.YNc(37,ui,2,0,"mat-error",25),h.qZA(),h.YNc(38,gt,4,3,"mat-form-field",27),h.qZA(),h.YNc(39,et,5,0,"div",28),h.TgZ(40,"div",29)(41,"button",30),h.NdJ("click",function(){return h.CHM(fe),h.oxw().onEstimateQuote()}),h._uU(42,"Estimate Quote"),h.qZA()()()(),h.TgZ(43,"mat-step",16)(44,"form",17),h.YNc(45,vt,1,1,"ng-template",18),h._UZ(46,"rtl-loop-quote",31),h.YNc(47,$t,4,0,"p",32),h.TgZ(48,"div",29),h.YNc(49,jt,2,0,"button",33),h.YNc(50,Pe,2,1,"button",34),h.qZA()()(),h.YNc(51,xe,15,6,"mat-step",35),h.TgZ(52,"mat-step",36)(53,"form",17),h.YNc(54,ht,1,1,"ng-template",18),h.TgZ(55,"div",37)(56,"mat-expansion-panel",38)(57,"mat-expansion-panel-header")(58,"mat-panel-title")(59,"span",39),h._uU(60),h.YNc(61,ft,2,1,"mat-icon",40),h.qZA()()(),h.YNc(62,Ht,1,0,"div",41),h.qZA(),h.YNc(63,it,1,0,"mat-progress-bar",42),h.qZA(),h.YNc(64,Ne,2,1,"h4",43),h.TgZ(65,"div",29),h.YNc(66,tt,2,0,"button",44),h.YNc(67,Je,2,0,"button",45),h.qZA()()()(),h.TgZ(68,"div",46)(69,"button",47),h._uU(70,"Close"),h.qZA()()()()()()}if(2&ze){const fe=h.oxw(),je=h.MAs(2);h.Q6J("@opacityAnimation",void 0),h.xp6(3),h.Q6J("fxFlex",fe.screenSize===fe.screenSizeEnum.XS||fe.screenSize===fe.screenSizeEnum.SM?"83":"91"),h.xp6(2),h.Oqu(fe.channel?"Channel "+fe.loopDirectionCaption:fe.loopDirectionCaption),h.xp6(1),h.Q6J("fxFlex",fe.screenSize===fe.screenSizeEnum.XS||fe.screenSize===fe.screenSizeEnum.SM?"17":"9"),h.xp6(7),h.Q6J("ngIf",fe.channel),h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",fe.inputFormGroup)("editable",fe.flgEditable),h.xp6(1),h.Q6J("formGroup",fe.inputFormGroup),h.xp6(3),h.Q6J("quote",fe.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),h.xp6(1),h.Q6J("quote",fe.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),h.xp6(2),h.Q6J("fxFlex",fe.direction===fe.LoopTypeEnum.LOOP_OUT?"35":"48"),h.xp6(1),h.Q6J("step",1e3),h.xp6(2),h.AsE("Range: ",h.lcZ(27,51,fe.minQuote.amount),"-",h.lcZ(28,53,fe.maxQuote.amount),""),h.xp6(5),h.Q6J("ngIf",null==fe.inputFormGroup.controls.amount.errors?null:fe.inputFormGroup.controls.amount.errors.required),h.xp6(1),h.Q6J("ngIf",null==fe.inputFormGroup.controls.amount.errors?null:fe.inputFormGroup.controls.amount.errors.min),h.xp6(1),h.Q6J("ngIf",null==fe.inputFormGroup.controls.amount.errors?null:fe.inputFormGroup.controls.amount.errors.max),h.xp6(1),h.Q6J("fxFlex",fe.direction===fe.LoopTypeEnum.LOOP_OUT?"30":"48"),h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==fe.inputFormGroup.controls.sweepConfTarget.errors?null:fe.inputFormGroup.controls.sweepConfTarget.errors.required),h.xp6(1),h.Q6J("ngIf",null==fe.inputFormGroup.controls.sweepConfTarget.errors?null:fe.inputFormGroup.controls.sweepConfTarget.errors.min),h.xp6(1),h.Q6J("ngIf",fe.direction===fe.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",fe.direction===fe.LoopTypeEnum.LOOP_OUT),h.xp6(4),h.Q6J("stepControl",fe.quoteFormGroup)("editable",fe.flgEditable),h.xp6(1),h.Q6J("formGroup",fe.quoteFormGroup),h.xp6(2),h.Q6J("quote",fe.quote)("showPanel",!1),h.xp6(1),h.Q6J("ngIf",fe.inputFormGroup.controls.amount.value>fe.localBalanceToCompare),h.xp6(2),h.Q6J("ngIf",fe.direction===fe.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",fe.direction===fe.LoopTypeEnum.LOOP_IN),h.xp6(1),h.Q6J("ngIf",fe.direction===fe.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("stepControl",fe.statusFormGroup),h.xp6(1),h.Q6J("formGroup",fe.statusFormGroup),h.xp6(3),h.Q6J("expanded",!!fe.loopStatus),h.xp6(4),h.Oqu(fe.loopStatus?fe.loopStatus.id_bytes?fe.loopDirectionCaption+" request details":fe.loopDirectionCaption+" error details":"Waiting for "+fe.loopDirectionCaption+" request..."),h.xp6(1),h.Q6J("ngIf",fe.loopStatus),h.xp6(1),h.Q6J("ngIf",!fe.loopStatus)("ngIfElse",je),h.xp6(1),h.Q6J("ngIf",!fe.loopStatus),h.xp6(1),h.Q6J("ngIf",fe.loopStatus),h.xp6(2),h.Q6J("ngIf",fe.loopStatus&&fe.loopStatus.id_bytes&&fe.channel),h.xp6(1),h.Q6J("ngIf",fe.loopStatus&&(fe.loopStatus.error||!fe.loopStatus.id_bytes)),h.xp6(2),h.Q6J("mat-dialog-close",!1)}}function Ue(ze,Lt){if(1&ze&&h._UZ(0,"rtl-loop-status",71),2&ze){const fe=h.oxw();h.Q6J("loopStatus",fe.loopStatus)}}function rt(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"rtl-loop-out-info-graphics",88),h.NdJ("stepNumberChange",function(Ct){return h.CHM(fe),h.oxw(2).stepNumber=Ct}),h.qZA()}if(2&ze){const fe=h.oxw(2);h.Q6J("stepNumber",fe.stepNumber)("animationDirection",fe.animationDirection)}}function at(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"rtl-loop-in-info-graphics",88),h.NdJ("stepNumberChange",function(Ct){return h.CHM(fe),h.oxw(2).stepNumber=Ct}),h.qZA()}if(2&ze){const fe=h.oxw(2);h.Q6J("stepNumber",fe.stepNumber)("animationDirection",fe.animationDirection)}}const yt=function(ze,Lt){return{"dot-primary":ze,"dot-primary-lighter":Lt}};function gi(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"span",89),h.NdJ("click",function(){const ie=h.CHM(fe).$implicit;return h.oxw(2).onStepChanged(ie)}),h._UZ(1,"p",90),h.qZA()}if(2&ze){const fe=Lt.$implicit,je=h.oxw(2);h.xp6(1),h.Q6J("ngClass",h.WLB(1,yt,je.stepNumber===fe,je.stepNumber!==fe))}}function Qt(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",91),h.NdJ("click",function(){return h.CHM(fe),h.oxw(2).onReadMore()}),h._uU(1,"Read More"),h.qZA()}}function Jt(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",92),h.NdJ("click",function(){return h.CHM(fe),h.oxw(2).onStepChanged(4)}),h._uU(1,"Back"),h.qZA()}}function Xi(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",93),h.NdJ("click",function(){h.CHM(fe);const Ct=h.oxw(2);return Ct.flgShowInfo=!1,Ct.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function fi(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",94),h.NdJ("click",function(){h.CHM(fe);const Ct=h.oxw(2);return Ct.flgShowInfo=!1,Ct.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function ai(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",95),h.NdJ("click",function(){h.CHM(fe);const Ct=h.oxw(2);return Ct.onStepChanged(Ct.stepNumber-1)}),h._uU(1,"Back"),h.qZA()}}function tn(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"button",96),h.NdJ("click",function(){h.CHM(fe);const Ct=h.oxw(2);return Ct.onStepChanged(Ct.stepNumber+1)}),h._uU(1,"Next"),h.qZA()}}const Wi=function(){return[1,2,3,4,5]};function Gi(ze,Lt){if(1&ze){const fe=h.EpF();h.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),h._UZ(4,"span",7),h.qZA(),h.TgZ(5,"div",75)(6,"button",76),h.NdJ("click",function(){h.CHM(fe);const Ct=h.oxw();return Ct.flgShowInfo=!1,Ct.stepNumber=1}),h._uU(7,"X"),h.qZA()()(),h.TgZ(8,"mat-card-content",77),h.YNc(9,rt,1,2,"rtl-loop-out-info-graphics",78),h.YNc(10,at,1,2,"rtl-loop-in-info-graphics",78),h.qZA(),h.TgZ(11,"div",79),h.YNc(12,gi,2,4,"span",80),h.qZA(),h.TgZ(13,"div",81),h.YNc(14,Qt,2,0,"button",82),h.YNc(15,Jt,2,0,"button",83),h.YNc(16,Xi,2,0,"button",84),h.YNc(17,fi,2,0,"button",85),h.YNc(18,ai,2,0,"button",86),h.YNc(19,tn,2,0,"button",87),h.qZA()()()}if(2&ze){const fe=h.oxw();h.Q6J("@opacityAnimation",void 0),h.xp6(9),h.Q6J("ngIf",fe.direction===fe.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",fe.direction===fe.LoopTypeEnum.LOOP_IN),h.xp6(2),h.Q6J("ngForOf",h.DdM(10,Wi)),h.xp6(2),h.Q6J("ngIf",5===fe.stepNumber),h.xp6(1),h.Q6J("ngIf",5===fe.stepNumber),h.xp6(1),h.Q6J("ngIf",5===fe.stepNumber),h.xp6(1),h.Q6J("ngIf",fe.stepNumber<5),h.xp6(1),h.Q6J("ngIf",fe.stepNumber>1&&fe.stepNumber<5),h.xp6(1),h.Q6J("ngIf",fe.stepNumber<5)}}let Yi=(()=>{class ze{constructor(fe,je,Ct,ie,qe,Mt,Vt,Mi,Ei){this.dialogRef=fe,this.data=je,this.store=Ct,this.loopService=ie,this.formBuilder=qe,this.decimalPipe=Mt,this.logger=Vt,this.router=Mi,this.commonService=Ei,this.faInfoCircle=a.sqG,this.LoopTypeEnum=d.$I,this.direction=d.$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=d.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.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,this.loopDirectionCaption=this.direction===d.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount),t.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[t.kI.required,t.kI.min(1)]],routingFeePercent:[2,[t.kI.required,t.kI.min(0)]],fast:[!1,[t.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(P.ZW).pipe((0,f.R)(this.unSubs[6])).subscribe(fe=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+fe.lightningBalance.local})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[4])).subscribe(fe=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[5])).subscribe(fe=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(fe){"external"===fe.value?(this.addressFormGroup.controls.address.setValidators([t.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.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===d.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===d.$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,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===d.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe((0,f.R)(this.unSubs[0])).subscribe({next:fe=>{this.loopStatus=fe,this.loopService.listSwaps(),this.flgEditable=!0},error:fe=>{this.loopStatus={error:fe},this.flgEditable=!0,this.logger.error(fe)}});else{const fe=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),je="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",Ct=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,fe,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,Ct,je).pipe((0,f.R)(this.unSubs[1])).subscribe({next:ie=>{this.loopStatus=ie,this.loopService.listSwaps(),this.flgEditable=!0},error:ie=>{this.loopStatus={error:ie},this.flgEditable=!0,this.logger.error(ie)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const fe=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===d.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,fe).pipe((0,f.R)(this.unSubs[2])).subscribe(je=>{this.quote=je,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,fe).pipe((0,f.R)(this.unSubs[3])).subscribe(je=>{this.quote=je,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(fe){switch(fe.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===d.$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===d.$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===d.$I.LOOP_OUT&&1!==fe.selectedIndex&&fe.selectedIndex{fe.next(null),fe.complete()})}}return ze.\u0275fac=function(fe){return new(fe||ze)(h.Y36(M.so),h.Y36(M.WI),h.Y36(A.yh),h.Y36(w.W),h.Y36(t.qu),h.Y36(D.JJ),h.Y36(L.mQ),h.Y36(k.F0),h.Y36(S.v))},ze.\u0275cmp=h.Xpm({type:ze,selectors:[["rtl-loop-modal"]],viewQuery:function(fe,je){if(1&fe&&h.Gf(Le,5),2&fe){let Ct;h.iGM(Ct=h.CRH())&&(je.stepper=Ct.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(fe,je){1&fe&&(h.YNc(0,Se,71,55,"div",0),h.YNc(1,Ue,1,1,"ng-template",null,1,h.W1O),h.YNc(3,Gi,20,11,"div",2)),2&fe&&(h.Q6J("ngIf",!je.flgShowInfo),h.xp6(3),h.Q6J("ngIf",je.flgShowInfo))},directives:[D.O5,U.xw,U.yH,U.Wh,Z.dk,j.lW,Z.dn,ne.Vq,ne.C0,t._Y,t.JL,t.sg,ne.VY,E,I.KE,v.Nt,t.wV,t.Fj,n.h,t.JJ,t.u,t.Q7,I.bx,I.R9,I.TO,C.Rr,ee.Hw,te.gM,B.VQ,B.U0,X.ib,X.yz,X.yK,N.pW,M.ZT,be,Ie,Ce,D.sg,D.mk,de.oO],pipes:[D.rS,D.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[b._]}}),ze})()},3390:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(a){this.el=a}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return f.\u0275fac=function(a){return new(a||f)(t.Y36(t.SBq))},f.\u0275dir=t.lG2({type:f,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),f})()},6895:(Fe,Y,p)=>{"use strict";p.d(Y,{y:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(){this.copied=new t.vpe}onClick(a){a.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},b=>{this.copied.emit("Error could not copy text: "+JSON.stringify(b))})}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275dir=t.lG2({type:f,selectors:[["","rtlClipboard",""]],hostBindings:function(a,b){1&a&&t.NdJ("click",function(P){return b.onClick(P)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),f})()},9843:(Fe,Y,p)=>{"use strict";p.d(Y,{F:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(b){return this.max?t.kI.max(+this.max)(b):null}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},6534:(Fe,Y,p)=>{"use strict";p.d(Y,{q:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(b){return this.min?t.kI.min(+this.min)(b):null}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},1643:(Fe,Y,p)=>{"use strict";p.d(Y,{QM:()=>b,a1:()=>a,eQ:()=>d,fY:()=>P});var t=p(4004),e=p(5e3),f=p(1402),M=p(5986);let a=(()=>{class h{constructor(w,D){this.router=w,this.sessionService=D}canActivate(w){return!(!this.sessionService.getItem("token")||"settings"!==w.url[0].path&&"auth"!==w.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(f.F0),e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),b=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.lndUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),d=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.clUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),P=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.eclUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})()},62:(Fe,Y,p)=>{"use strict";p.d(Y,{v:()=>w});var t=p(1135),e=p(9646),f=p(2843),M=p(5698),a=p(4004),b=p(262),d=p(7731),P=p(5e3),h=p(8104),A=p(5043);let w=(()=>{class D{constructor(k,S){this.dataService=k,this.logger=S,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 t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(k){this.screenSize=k}getContainerSize(){return this.containerSize}setContainerSize(k,S){this.containerSize={width:k,height:S},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(k,S,U,Z="asc"){return k.sort("number"===U?"desc"===Z?(j,ne)=>+j[S]>+ne[S]?-1:1:(j,ne)=>+j[S]>+ne[S]?1:-1:"desc"===Z?(j,ne)=>j[S]>ne[S]?-1:1:(j,ne)=>j[S]>ne[S]?1:-1)}sortDescByKey(k,S){return k.sort((U,Z)=>{const j=+U[S],ne=+Z[S];return j>ne?-1:j{const j=+U[S],ne=+Z[S];return jne?1:0})}camelCase(k){return k.replace(/(?:^\w|[A-Z]|\b\w)/g,(S,U)=>S.toUpperCase()).replace(/\s+/g,"").replace(/-/g," ")}titleCase(k,S,U){return S&&U&&""!==S&&""!==U&&(k=k.replace(new RegExp(S,"g"),U)),k.indexOf("!\n")>0||k.indexOf(".\n")>0?k.split("\n").reduce((Z,j)=>Z+j.charAt(0).toUpperCase()+j.substring(1).toLowerCase()+"\n",""):k.indexOf(" ")>0?k.split(" ").reduce((Z,j)=>Z+j.charAt(0).toUpperCase()+j.substring(1).toLowerCase()+" ",""):k.charAt(0).toUpperCase()+k.substring(1).toLowerCase()}convertCurrency(k,S,U,Z,j){const ne=(new Date).valueOf();return j&&Z&&this.ratesAPIStatus!==d.Bn.INITIATED&&(S===d.NT.OTHER||U===d.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ne(this.ratesAPIStatus=d.Bn.COMPLETED,this.conversionData.data=X&&"object"==typeof X?X:X&&"string"==typeof X?JSON.parse(X):{},this.conversionData.last_fetched=ne,this.convertWithFiat(k,S,Z))),(0,b.K)(X=>(this.ratesAPIStatus=d.Bn.ERROR,(0,f._)(()=>this.extractErrorMessage(X,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(k,S))}convertWithoutFiat(k,S){const U={};switch(U[d.NT.SATS]=0,U[d.NT.BTC]=0,S){case d.NT.SATS:U[d.NT.SATS]=k,U[d.NT.BTC]=1e-8*k;break;case d.NT.BTC:U[d.NT.SATS]=1e8*k,U[d.NT.BTC]=k}return U}convertWithFiat(k,S,U){const Z={unit:U,symbol:this.conversionData.data[U].symbol};switch(Z[d.NT.SATS]=0,Z[d.NT.BTC]=0,Z[d.NT.OTHER]=0,S){case d.NT.SATS:Z[d.NT.SATS]=k,Z[d.NT.BTC]=1e-8*k,Z[d.NT.OTHER]=1e-8*k*this.conversionData.data[U].last;break;case d.NT.BTC:Z[d.NT.SATS]=1e8*k,Z[d.NT.BTC]=k,Z[d.NT.OTHER]=k*this.conversionData.data[U].last;break;case d.NT.OTHER:Z[d.NT.SATS]=k/this.conversionData.data[U].last*1e8,Z[d.NT.BTC]=k/this.conversionData.data[U].last,Z[d.NT.OTHER]=k}return Z}convertTime(k,S,U){switch(S){case d.Qk.SECS:switch(U){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(U){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(U){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(U){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,S,U=".json",Z=".csv"){let j=new Blob;j=".json"===U?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"),X=URL.createObjectURL(j);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ne.setAttribute("target","_blank"),ne.setAttribute("href",X),ne.setAttribute("download",S+Z),ne.style.visibility="hidden",document.body.appendChild(ne),ne.click(),document.body.removeChild(ne)}convertToCSV(k){const S=[];let U="",Z="",j="";return"object"!=typeof k&&(k=JSON.parse(k)),k.forEach((X,de)=>{for(const ee in X)S.findIndex(te=>te===ee)<0&&S.push(ee)}),j=S.join(",")+"\r\n",k.forEach(X=>{U="",S.forEach(de=>{X.hasOwnProperty(de)?Array.isArray(X[de])?(Z="",X[de].forEach((ee,te)=>{Z+="object"==typeof ee?"("+JSON.stringify(ee).replace(/\,/g,";")+")":"("+ee+")"}),U+=Z+","):U+="object"==typeof X[de]?JSON.stringify(X[de]).replace(/\,/g,";")+",":X[de]+",":U+=","}),j+=U.slice(0,-1)+"\r\n"}),j}isVersionCompatible(k,S){if(k){const U=k.trim().replace("v","").split("-")[0].split(".")||[],Z=S.split(".");return+U[0]>+Z[0]||+U[0]==+Z[0]&&+U[1]>+Z[1]||+U[0]==+Z[0]&&+U[1]==+Z[1]&&+U[2]>=+Z[2]}return!1}extractErrorMessage(k,S="Unknown Error."){const U=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:S);return this.logger.info("Error Message: "+U),U}extractErrorCode(k,S=500){const U=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:S;return this.logger.info("Error Code: "+U),U}extractErrorNumber(k,S=500){const U=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:S;return this.logger.info("Error Number: "+U),U}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return D.\u0275fac=function(k){return new(k||D)(P.LFG(h.D),P.LFG(A.mQ))},D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac}),D})()},7731:(Fe,Y,p)=>{"use strict";p.d(Y,{$I:()=>r,$v:()=>k,AB:()=>ge,Bn:()=>n,Df:()=>Re,Dr:()=>A,Er:()=>a,Fq:()=>i,Gi:()=>ee,HW:()=>ce,H_:()=>we,IV:()=>d,IX:()=>B,JX:()=>I,LO:()=>b,NT:()=>de,OJ:()=>ne,OO:()=>ve,Qk:()=>X,Qw:()=>c,TJ:()=>P,Vc:()=>w,Xr:()=>N,Xz:()=>M,Zs:()=>x,_t:()=>h,cu:()=>te,g8:()=>U,gB:()=>Ge,gg:()=>_,hZ:()=>Q,hc:()=>u,kO:()=>v,lr:()=>be,m6:()=>C,nM:()=>S,n_:()=>j,ol:()=>Z,op:()=>E,p7:()=>me,pg:()=>z,pt:()=>e,uA:()=>f,uR:()=>oe,vn:()=>D,wZ:()=>L,x$:()=>J});var t=p(6087);function e(F){const De=new t.ye;return De.itemsPerPageLabel=F+" per page:",De}const f=["Sats","BTC"],M={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"}],b=["SECS","MINS","HOURS","DAYS"],d=10,P=[5,10,25,100],h=[{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)"}],A=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],w=[{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"}],D=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],L={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(F=k||(k={})).PAYMENT_RECEIVED="payment-received",F.PAYMENT_RELAYED="payment-relayed",F.PAYMENT_SENT="payment-sent",F.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",F.PAYMENT_FAILED="payment-failed",F.CHANNEL_OPENED="channel-opened",F.CHANNEL_STATE_CHANGED="channel-state-changed",F.CHANNEL_CLOSED="channel-closed",k;var F})(),S=(()=>{return(F=S||(S={})).INVOICE="invoice",F.BLOCK_HEIGHT="block-height",F.SEND_PAYMENT="send-payment",S;var F})(),U=(()=>((U||(U={})).INVOICE="invoice",U))(),Z=(()=>{return(F=Z||(Z={})).OPERATOR="OPERATOR",F.MERCHANT="MERCHANT",F.ALL="ALL",Z;var F})(),j=(()=>{return(F=j||(j={})).INFORMATION="Information",F.WARNING="Warning",F.ERROR="Error",F.SUCCESS="Success",F.CONFIRM="Confirm",j;var F})(),ne=(()=>{return(F=ne||(ne={})).JWT="JWT",F.PASSWORD="PASSWORD",ne;var F})(),X=(()=>{return(F=X||(X={})).SECS="SECS",F.MINS="MINS",F.HOURS="HOURS",F.DAYS="DAYS",X;var F})(),de=(()=>{return(F=de||(de={})).SATS="Sats",F.BTC="BTC",F.OTHER="OTHER",de;var F})(),ee=(()=>{return(F=ee||(ee={})).ARRAY="ARRAY",F.NUMBER="NUMBER",F.STRING="STRING",F.BOOLEAN="BOOLEAN",F.PASSWORD="PASSWORD",F.DATE="DATE",F.DATE_TIME="DATE_TIME",ee;var F})(),te=(()=>{return(F=te||(te={})).XS="XS",F.SM="SM",F.MD="MD",F.LG="LG",F.XL="XL",te;var F})();const ce={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(F=me||(me={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",F.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",F.WIRE_INVALID_ONION_KEY="Invalid Onion Key",F.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",F.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",F.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",F.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",F.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",F.WIRE_FEE_INSUFFICIENT="Insufficient Fee",F.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",F.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",F.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",F.WIRE_CHANNEL_DISABLED="Channel Disabled",F.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",F.WIRE_INVALID_REALM="Invalid Realm",F.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",F.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",F.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",F.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",F.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",F.WIRE_MPP_TIMEOUT="MPP Timeout",F.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",F.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",me;var F})(),x=(()=>{return(F=x||(x={})).CHANNELD_NORMAL="Active",F.OPENINGD="Opening",F.CHANNELD_AWAITING_LOCKIN="Pending Open",F.CHANNELD_SHUTTING_DOWN="Shutting Down",F.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",F.CLOSINGD_COMPLETE="Closed",F.AWAITING_UNILATERAL="Awaiting Unilateral Close",F.FUNDING_SPEND_SEEN="Funding Spend Seen",F.ONCHAIN="Onchain",F.DUALOPEND_OPEN_INIT="Dual Open Initialized",F.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",x;var F})(),i=(()=>{return(F=i||(i={})).INITIATED="Initiated",F.PREIMAGE_REVEALED="Preimage Revealed",F.HTLC_PUBLISHED="HTLC Published",F.SUCCESS="Successful",F.FAILED="Failed",F.INVOICE_SETTLED="Invoice Settled",i;var F})(),r=(()=>{return(F=r||(r={})).LOOP_OUT="LOOP_OUT",F.LOOP_IN="LOOP_IN",r;var F})(),u=(()=>{return(F=u||(u={})).SWAP_OUT="SWAP_OUT",F.SWAP_IN="SWAP_IN",u;var F})(),c=(()=>{return(F=c||(c={}))["swap.created"]="Swap Created",F["swap.expired"]="Swap Expired",F["invoice.set"]="Invoice Set",F["invoice.paid"]="Invoice Paid",F["invoice.pending"]="Invoice Pending",F["invoice.settled"]="Invoice Settled",F["invoice.failedToPay"]="Invoice Failed To Pay",F["channel.created"]="Channel Created",F["transaction.failed"]="Transaction Failed",F["transaction.mempool"]="Transaction Mempool",F["transaction.claimed"]="Transaction Claimed",F["transaction.refunded"]="Transaction Refunded",F["transaction.confirmed"]="Transaction Confirmed",F["swap.refunded"]="Swap Refunded",F["swap.abandoned"]="Swap Abandoned",c;var F})();const _=[{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}],E=["MONTHLY","YEARLY"];var I=(()=>{return(F=I||(I={})).LOOP="LOOP",F.BOLTZ="BOLTZ",F.OFFERS="OFFERS",I;var F})();const v=["password","changeme","moneyprintergobrrr"];var n=(()=>{return(F=n||(n={})).UN_INITIATED="UN_INITIATED",F.INITIATED="INITIATED",F.COMPLETED="COMPLETED",F.ERROR="ERROR",n;var F})();const C={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_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...",LOG_OUT:"Logging Out..."};var B=(()=>{return(F=B||(B={})).INVOICE="INVOICE",F.OFFER="OFFER",F.KEYSEND="KEYSEND",B;var F})(),N=(()=>{return(F=N||(N={})).FEES="FEES",F.EVENTS="EVENTS",N;var F})(),z=(()=>{return(F=z||(z={})).VOID="VOID",F.SET_API_URL_ECL="SET_API_URL_ECL",F.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",F.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",F.RESET_ROOT_STORE="RESET_ROOT_STORE",F.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",F.OPEN_SNACK_BAR="OPEN_SNACKBAR",F.OPEN_SPINNER="OPEN_SPINNER",F.CLOSE_SPINNER="CLOSE_SPINNER",F.OPEN_ALERT="OPEN_ALERT",F.CLOSE_ALERT="CLOSE_ALERT",F.OPEN_CONFIRMATION="OPEN_CONFIRMATION",F.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",F.SHOW_PUBKEY="SHOW_PUBKEY",F.FETCH_CONFIG="FETCH_CONFIG",F.SHOW_CONFIG="SHOW_CONFIG",F.FETCH_STORE="FETCH_STORE",F.SET_STORE="SET_STORE",F.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",F.SET_RTL_CONFIG="SET_RTL_CONFIG",F.SAVE_SSO="SAVE_SSO",F.SAVE_SETTINGS="SAVE_SETTINGS",F.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",F.SET_SELECTED_NODE="SET_SELECTED_NODE",F.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",F.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",F.SET_NODE_DATA="SET_NODE_DATA",F.IS_AUTHORIZED="IS_AUTHORIZED",F.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",F.LOGIN="LOGIN",F.VERIFY_TWO_FA="VERIFY_TWO_FA",F.LOGOUT="LOGOUT",F.RESET_PASSWORD="RESET_PASSWORD",F.RESET_PASSWORD_RES="RESET_PASSWORD_RES",F.FETCH_FILE="FETCH_FILE",F.SHOW_FILE="SHOW_FILE",z;var F})(),oe=(()=>{return(F=oe||(oe={})).RESET_LND_STORE="RESET_LND_STORE",F.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",F.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",F.FETCH_INFO_LND="FETCH_INFO_LND",F.SET_INFO_LND="SET_INFO_LND",F.FETCH_PEERS_LND="FETCH_PEERS_LND",F.SET_PEERS_LND="SET_PEERS_LND",F.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",F.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",F.DETACH_PEER_LND="DETACH_PEER_LND",F.REMOVE_PEER_LND="REMOVE_PEER_LND",F.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",F.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",F.ADD_INVOICE_LND="ADD_INVOICE_LND",F.FETCH_FEES_LND="FETCH_FEES_LND",F.SET_FEES_LND="SET_FEES_LND",F.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",F.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",F.FETCH_NETWORK_LND="FETCH_NETWORK_LND",F.SET_NETWORK_LND="SET_NETWORK_LND",F.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",F.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",F.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",F.SET_CHANNELS_LND="SET_CHANNELS_LND",F.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",F.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",F.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",F.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",F.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",F.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",F.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",F.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",F.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",F.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",F.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",F.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",F.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",F.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",F.FETCH_INVOICES_LND="FETCH_INVOICES_LND",F.SET_INVOICES_LND="SET_INVOICES_LND",F.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",F.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",F.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",F.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",F.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",F.FETCH_UTXOS_LND="FETCH_UTXOS_LND",F.SET_UTXOS_LND="SET_UTXOS_LND",F.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",F.SET_PAYMENTS_LND="SET_PAYMENTS_LND",F.SEND_PAYMENT_LND="SEND_PAYMENT_LND",F.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",F.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",F.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",F.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",F.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",F.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",F.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",F.GEN_SEED_LND="GEN_SEED_LND",F.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",F.INIT_WALLET_LND="INIT_WALLET_LND",F.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",F.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",F.PEER_LOOKUP_LND="PEER_LOOKUP_LND",F.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",F.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",F.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",F.SET_LOOKUP_LND="SET_LOOKUP_LND",F.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",F.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",F.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",F.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",F.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",F.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",oe;var F})(),ge=(()=>{return(F=ge||(ge={})).RESET_CLN_STORE="RESET_CLN_STORE",F.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",F.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",F.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",F.SET_INFO_CLN="SET_INFO_CLN",F.FETCH_FEES_CLN="FETCH_FEES_CLN",F.SET_FEES_CLN="SET_FEES_CLN",F.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",F.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",F.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",F.SET_BALANCE_CLN="SET_BALANCE_CLN",F.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",F.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",F.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",F.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",F.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",F.SET_UTXOS_CLN="SET_UTXOS_CLN",F.FETCH_PEERS_CLN="FETCH_PEERS_CLN",F.SET_PEERS_CLN="SET_PEERS_CLN",F.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",F.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",F.ADD_PEER_CLN="ADD_PEER_CLN",F.DETACH_PEER_CLN="DETACH_PEER_CLN",F.REMOVE_PEER_CLN="REMOVE_PEER_CLN",F.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",F.SET_CHANNELS_CLN="SET_CHANNELS_CLN",F.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",F.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",F.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",F.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",F.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",F.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",F.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",F.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",F.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",F.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",F.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",F.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",F.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",F.SET_LOOKUP_CLN="SET_LOOKUP_CLN",F.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",F.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",F.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",F.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",F.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",F.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",F.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",F.SET_INVOICES_CLN="SET_INVOICES_CLN",F.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",F.ADD_INVOICE_CLN="ADD_INVOICE_CLN",F.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",F.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",F.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",F.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",F.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",F.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",F.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",F.SET_OFFERS_CLN="SET_OFFERS_CLN",F.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",F.ADD_OFFER_CLN="ADD_OFFER_CLN",F.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",F.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",F.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",F.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",F.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",F.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",F.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",ge;var F})(),be=(()=>{return(F=be||(be={})).RESET_ECL_STORE="RESET_ECL_STORE",F.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",F.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",F.FETCH_INFO_ECL="FETCH_INFO_ECL",F.SET_INFO_ECL="SET_INFO_ECL",F.FETCH_FEES_ECL="FETCH_FEES_ECL",F.SET_FEES_ECL="SET_FEES_ECL",F.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",F.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",F.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",F.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",F.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",F.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",F.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",F.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",F.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",F.FETCH_PEERS_ECL="FETCH_PEERS_ECL",F.SET_PEERS_ECL="SET_PEERS_ECL",F.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",F.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",F.ADD_PEER_ECL="ADD_PEER_ECL",F.DETACH_PEER_ECL="DETACH_PEER_ECL",F.REMOVE_PEER_ECL="REMOVE_PEER_ECL",F.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",F.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",F.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",F.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",F.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",F.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",F.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",F.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",F.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",F.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",F.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",F.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",F.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",F.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",F.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",F.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",F.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",F.SET_INVOICES_ECL="SET_INVOICES_ECL",F.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",F.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",F.ADD_INVOICE_ECL="ADD_INVOICE_ECL",F.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",F.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",F.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",F.SET_LOOKUP_ECL="SET_LOOKUP_ECL",F.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",F.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",be;var F})();const Re=[{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 we=(()=>{return(F=we||(we={})).gossip_queries_ex="Gossip queries including additional information",F.option_anchor_outputs="Anchor outputs",F.option_data_loss_protect="Extra channel re-establish fields",F.var_onion_optin="Variable-length routing onion payloads",F.option_static_remotekey="Static key for remote output",F.option_support_large_channel="Create large channels",F.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",F.payment_secret="Payment secret field",F.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",F.basic_mpp="Basic multi-part payments",F.gossip_queries="More sophisticated gossip control",F.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",F.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",F.amp="AMP",we;var F})(),Q=(()=>{return(F=Q||(Q={}))["data-loss-protect"]="Extra channel re-establish fields",F["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",F["gossip-queries"]="More sophisticated gossip control",F["tlv-onion"]="Variable-length routing onion payloads",F["ext-gossip-queries"]="Gossip queries can include additional information",F["static-remote-key"]="Static key for remote output",F["payment-addr"]="Payment secret field",F["multi-path-payments"]="Basic multi-part payments",F["wumbo-channels"]="Wumbo Channels",F.anchors="Anchor outputs",F["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",F.amp="AMP",Q;var F})();const Ge=[{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 ve=(()=>{return(F=ve||(ve={})).OFFERED="offered",F.SETTLED="settled",F.FAILED="failed",F.LOCAL_FAILED="local_failed",ve;var F})()},8104:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>ce});var t=p(8138),e=p(1135),f=p(7579),M=p(2843),a=p(9646),b=p(590),d=p(5577),P=p(2722),h=p(4004),A=p(262),w=p(1365),D=p(2340),L=p(7731),k=p(1786),S=p(7861),U=p(6523),Z=p(6529),j=p(9828),ne=p(5e3),X=p(5620),de=p(5043),ee=p(7261),te=p(9808);let ce=(()=>{class J{constructor(x,i,r,u,c){this.httpClient=x,this.store=i,this.logger=r,this.snackBar=u,this.titleCasePipe=c,this.APIUrl=D.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x],this.mapAliases=(_,E)=>(_&&_.length>0?_.forEach((I,v)=>{if(E&&E.length>0)for(let n=0;nnull!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+D.NZ.PAYMENTS_API+"/decode/"+x;return"cln"===r&&(u=this.APIUrl+"/"+r+D.NZ.UTILITY_API+"/decode/"+x),this.store.dispatch((0,S.ac)({payload:L.m6.DECODE_PAYMENT})),this.httpClient.get(u).pipe((0,P.R)(this.unSubs[0]),(0,h.U)(c=>(this.store.dispatch((0,S.uO)({payload:L.m6.DECODE_PAYMENT})),c)),(0,A.K)(c=>(i?this.handleErrorWithoutAlert("Decode Payment",L.m6.DECODE_PAYMENT,c):this.handleErrorWithAlert("decodePaymentData",L.m6.DECODE_PAYMENT,"Decode Payment Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}decodePayments(x){return this.lnImplementationUpdated.pipe((0,b.P)(i=>null!==i),(0,d.z)(i=>{let r="",u="";return"ecl"===i?(r=this.APIUrl+"/"+i+D.NZ.PAYMENTS_API+"/getsentinfos",u=L.m6.GET_SENT_PAYMENTS):"cln"===i?(r=this.APIUrl+"/"+i+D.NZ.UTILITY_API,u=L.m6.DECODE_PAYMENTS):(r=this.APIUrl+"/"+i+D.NZ.PAYMENTS_API,u=L.m6.DECODE_PAYMENTS),this.store.dispatch((0,S.ac)({payload:u})),this.httpClient.post(r,{payments:x}).pipe((0,P.R)(this.unSubs[1]),(0,h.U)(c=>(this.store.dispatch((0,S.uO)({payload:u})),c)),(0,A.K)(c=>(this.handleErrorWithAlert("decodePaymentsData",u,u+" Failed",r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getAliasesFromPubkeys(x,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{if(i){const u=(new t.LE).set("pubkeys",x);return this.httpClient.get(this.APIUrl+"/"+r+D.NZ.NETWORK_API+"/nodes",{params:u})}return this.httpClient.get(this.APIUrl+"/"+r+D.NZ.NETWORK_API+"/node/"+x)}))}signMessage(x){return this.lnImplementationUpdated.pipe((0,b.P)(i=>null!==i),(0,d.z)(i=>{let r=this.APIUrl+"/"+i+D.NZ.MESSAGE_API+"/sign";return"cln"===i&&(r=this.APIUrl+"/"+i+D.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,S.ac)({payload:L.m6.SIGN_MESSAGE})),this.httpClient.post(r,{message:x}).pipe((0,P.R)(this.unSubs[2]),(0,h.U)(u=>(this.store.dispatch((0,S.uO)({payload:L.m6.SIGN_MESSAGE})),u)),(0,A.K)(u=>(this.handleErrorWithAlert("signMessageData",L.m6.SIGN_MESSAGE,"Sign Message Failed",r,u),(0,M._)(()=>new Error(this.extractErrorMessage(u))))))}))}verifyMessage(x,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+D.NZ.MESSAGE_API+"/verify";return"cln"===r&&(u=this.APIUrl+"/"+r+D.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,S.ac)({payload:L.m6.VERIFY_MESSAGE})),this.httpClient.post(u,{message:x,signature:i}).pipe((0,P.R)(this.unSubs[3]),(0,h.U)(c=>(this.store.dispatch((0,S.uO)({payload:L.m6.VERIFY_MESSAGE})),c)),(0,A.K)(c=>(this.handleErrorWithAlert("verifyMessageData",L.m6.VERIFY_MESSAGE,"Verify Message Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}bumpFee(x,i,r,u){return this.lnImplementationUpdated.pipe((0,b.P)(c=>null!==c),(0,d.z)(c=>{const _={txid:x,outputIndex:i};return r&&(_.targetConf=r),u&&(_.satPerByte=u),this.store.dispatch((0,S.ac)({payload:L.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+c+D.NZ.WALLET_API+"/bumpfee",_).pipe((0,P.R)(this.unSubs[4]),(0,h.U)(E=>(this.store.dispatch((0,S.uO)({payload:L.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),E)),(0,A.K)(E=>(this.handleErrorWithoutAlert("Bump Fee",L.m6.BUMP_FEE,E),(0,M._)(()=>new Error(this.extractErrorMessage(E))))))}))}labelUTXO(x,i,r=!0){return this.lnImplementationUpdated.pipe((0,b.P)(u=>null!==u),(0,d.z)(u=>{const c={txid:x,label:i,overwrite:r};return this.store.dispatch((0,S.ac)({payload:L.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+u+D.NZ.WALLET_API+"/label",c).pipe((0,P.R)(this.unSubs[5]),(0,h.U)(_=>(this.store.dispatch((0,S.uO)({payload:L.m6.LABEL_UTXO})),_)),(0,A.K)(_=>(this.handleErrorWithoutAlert("Lease UTXO",L.m6.LABEL_UTXO,_),(0,M._)(()=>new Error(this.extractErrorMessage(_))))))}))}leaseUTXO(x,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{const u={txid:x,outputIndex:i};return this.store.dispatch((0,S.ac)({payload:L.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+r+D.NZ.WALLET_API+"/lease",u).pipe((0,P.R)(this.unSubs[6]),(0,h.U)(c=>{this.store.dispatch((0,S.uO)({payload:L.m6.LEASE_UTXO})),this.store.dispatch((0,U.mC)()),this.store.dispatch((0,U.Ly)());const _=new Date(1e3*c.expiration),E=Math.round(_.getTime())-60*_.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(E).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,A.K)(c=>(this.handleErrorWithoutAlert("Lease UTXO",L.m6.LEASE_UTXO,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getForwardingHistory(x,i,r,u){if("LND"===x){const c={end_time:r,start_time:i};return this.store.dispatch((0,S.ac)({payload:L.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+D.NZ.SWITCH_API,c).pipe((0,P.R)(this.unSubs[7]),(0,w.M)(this.store.select(Z._f)),(0,d.z)(([_,E])=>{if(_.forwarding_events){const I=[...E.channels,...E.closedChannels];_.forwarding_events.forEach(v=>{if(I&&I.length>0)for(let n=0;n(this.handleErrorWithAlert("getForwardingHistoryData",L.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+D.NZ.SWITCH_API,_),(0,M._)(()=>new Error(this.extractErrorMessage(_))))))}return"CLN"===x?(this.store.dispatch((0,S.ac)({payload:L.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+D.NZ.CHANNELS_API+"/listForwards?status="+u).pipe((0,P.R)(this.unSubs[8]),(0,w.M)(this.store.select(j.ZW)),(0,d.z)(([c,_])=>{const E=this.mapAliases(c,[..._.activeChannels,..._.pendingChannels,..._.inactiveChannels]);return this.store.dispatch((0,S.uO)({payload:L.m6.GET_FORWARDING_HISTORY})),(0,a.of)(E)}),(0,A.K)(c=>(this.handleErrorWithAlert("getForwardingHistoryData",L.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+D.NZ.CHANNELS_API+"/listForwards?status="+u+"&start="+i+"&end="+r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))):(0,a.of)({})}listNetworkNodes(x=""){return this.lnImplementationUpdated.pipe((0,b.P)(i=>null!==i),(0,d.z)(i=>(this.store.dispatch((0,S.ac)({payload:L.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+D.NZ.NETWORK_API+"/listNodes"+x).pipe((0,P.R)(this.unSubs[9]),(0,d.z)(r=>(this.store.dispatch((0,S.uO)({payload:L.m6.LIST_NETWORK_NODES})),(0,a.of)(r))),(0,A.K)(r=>(this.handleErrorWithoutAlert("List Network Nodes",L.m6.LIST_NETWORK_NODES,r),(0,M._)(()=>this.extractErrorMessage(r))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,b.P)(x=>null!==x),(0,d.z)(x=>(this.store.dispatch((0,S.ac)({payload:L.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+x+D.NZ.UTILITY_API+"/listConfigs").pipe((0,P.R)(this.unSubs[10]),(0,d.z)(i=>(this.store.dispatch((0,S.uO)({payload:L.m6.GET_LIST_CONFIGS})),(0,a.of)(i))),(0,A.K)(i=>(this.handleErrorWithoutAlert("List Configurations",L.m6.GET_LIST_CONFIGS,i),(0,M._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(x,i,r,u,c,_){return this.lnImplementationUpdated.pipe((0,b.P)(E=>null!==E),(0,d.z)(E=>{const I=x?{policy:x,policy_mod:i,lease_fee_base_msat:r,lease_fee_basis:u,channel_fee_max_base_msat:c,channel_fee_max_proportional_thousandths:_}:null;return this.store.dispatch((0,S.ac)({payload:L.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+E+D.NZ.CHANNELS_API+"/funderUpdate",I).pipe((0,P.R)(this.unSubs[11]),(0,h.U)(v=>(this.store.dispatch((0,S.uO)({payload:L.m6.GET_FUNDER_POLICY})),I&&this.store.dispatch((0,S.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+v.compact_lease+"!"})),v)),(0,A.K)(v=>(this.handleErrorWithoutAlert("Funder Policy",L.m6.GET_FUNDER_POLICY,v),(0,M._)(()=>new Error(this.extractErrorMessage(v))))))}))}extractErrorMessage(x,i="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:i)}handleErrorWithoutAlert(x,i,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,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,S.uO)({payload:i})),this.store.dispatch((0,S.qi)({payload:{action:x,status:L.Bn.ERROR,statusCode:r.status.toString(),message:this.extractErrorMessage(r)}})))}handleErrorWithAlert(x,i,r,u,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,S.uO)({payload:i}));const _=this.extractErrorMessage(c);this.store.dispatch((0,S.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status?c.status:"Unknown Error",message:_,URL:u},component:k.H}}})),this.store.dispatch((0,S.qi)({payload:{action:x,status:L.Bn.ERROR,statusCode:c.status.toString(),message:_,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return J.\u0275fac=function(x){return new(x||J)(ne.LFG(t.eN),ne.LFG(X.yh),ne.LFG(de.mQ),ne.LFG(ee.ux),ne.LFG(te.rS))},J.\u0275prov=ne.Yz7({token:J,factory:J.\u0275fac}),J})()},5043:(Fe,Y,p)=>{"use strict";p.d(Y,{LG:()=>d,mQ:()=>b});var t=p(2340),e=p(5e3);const{isDebugMode:f}=t.NZ,M=()=>null;let b=(()=>{class P{invokeConsoleMethod(A,w){}}return P.\u0275fac=function(A){return new(A||P)},P.\u0275prov=e.Yz7({token:P,factory:P.\u0275fac}),P})(),d=(()=>{class P{get info(){return f?console.log.bind(console):M}get warn(){return f?console.warn.bind(console):M}get error(){return f?console.error.bind(console):M}invokeConsoleMethod(A,w){(console[A]||console.log||M).apply(console,[w])}}return P.\u0275fac=function(A){return new(A||P)},P.\u0275prov=e.Yz7({token:P,factory:P.\u0275fac}),P})()},9107:(Fe,Y,p)=>{"use strict";p.d(Y,{W:()=>Z});var t=p(8138),e=p(1135),f=p(7579),M=p(9646),a=p(2843),b=p(2722),d=p(262),P=p(4004),h=p(2340),A=p(7731),w=p(1786),D=p(7861),L=p(5e3),k=p(5043),S=p(5620),U=p(62);let Z=(()=>{class j{constructor(X,de,ee,te){this.httpClient=X,this.logger=de,this.store=ee,this.commonService=te,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,D.ac)({payload:A.m6.GET_LOOP_SWAPS})),this.loopUrl=h.T5+h.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,b.R)(this.unSubs[0])).subscribe({next:X=>{this.store.dispatch((0,D.uO)({payload:A.m6.GET_LOOP_SWAPS})),this.swaps=X,this.swapsChanged.next(this.swaps)},error:X=>this.swapsChanged.error(this.handleErrorWithAlert(A.m6.GET_LOOP_SWAPS,this.loopUrl,X))})}loopOut(X,de,ee,te,ce,J,me,x,i,r){const u={amount:X,targetConf:ee,swapRoutingFee:te,minerFee:ce,prepayRoutingFee:J,prepayAmt:me,swapFee:x,swapPublicationDeadline:i,destAddress:r};return""!==de&&(u.chanId=de),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,u).pipe((0,d.K)(c=>this.handleErrorWithoutAlert("Loop Out for Channel: "+de,A.m6.NO_SPINNER,c)))}getLoopOutTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(X=>this.handleErrorWithoutAlert("Loop Out Terms",A.m6.NO_SPINNER,X)))}getLoopOutQuote(X,de,ee){let te=new t.LE;return te=te.append("targetConf",de.toString()),te=te.append("swapPublicationDeadline",ee.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/quote/"+X,this.store.dispatch((0,D.ac)({payload:A.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:te}).pipe((0,b.R)(this.unSubs[1]),(0,P.U)(ce=>(this.store.dispatch((0,D.uO)({payload:A.m6.GET_QUOTE})),ce)),(0,d.K)(ce=>this.handleErrorWithoutAlert("Loop Out Quote",A.m6.GET_QUOTE,ce)))}getLoopOutTermsAndQuotes(X){let de=new t.LE;return de=de.append("targetConf",X.toString()),de=de.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,D.ac)({payload:A.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:de}).pipe((0,b.R)(this.unSubs[2]),(0,P.U)(ee=>(this.store.dispatch((0,D.uO)({payload:A.m6.GET_TERMS_QUOTES})),ee)),(0,d.K)(ee=>(0,M.of)(this.handleErrorWithAlert(A.m6.GET_TERMS_QUOTES,this.loopUrl,ee))))}loopIn(X,de,ee,te,ce){const J={amount:X,swapFee:de,minerFee:ee,lastHop:te,externalHtlc:ce};return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,J).pipe((0,d.K)(me=>this.handleErrorWithoutAlert("Loop In",A.m6.NO_SPINNER,me)))}getLoopInTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(X=>this.handleErrorWithoutAlert("Loop In Terms",A.m6.NO_SPINNER,X)))}getLoopInQuote(X,de,ee){let te=new t.LE;return te=te.append("targetConf",de.toString()),te=te.append("swapPublicationDeadline",ee.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/quote/"+X,this.store.dispatch((0,D.ac)({payload:A.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:te}).pipe((0,b.R)(this.unSubs[3]),(0,P.U)(ce=>(this.store.dispatch((0,D.uO)({payload:A.m6.GET_QUOTE})),ce)),(0,d.K)(ce=>this.handleErrorWithoutAlert("Loop In Qoute",A.m6.GET_QUOTE,ce)))}getLoopInTermsAndQuotes(X){let de=new t.LE;return de=de.append("targetConf",X.toString()),de=de.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,D.ac)({payload:A.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:de}).pipe((0,b.R)(this.unSubs[4]),(0,P.U)(ee=>(this.store.dispatch((0,D.uO)({payload:A.m6.GET_TERMS_QUOTES})),ee)),(0,d.K)(ee=>(0,M.of)(this.handleErrorWithAlert(A.m6.GET_TERMS_QUOTES,this.loopUrl,ee))))}getSwap(X){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/swap/"+X,this.httpClient.get(this.loopUrl).pipe((0,d.K)(de=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+X,A.m6.NO_SPINNER,de)))}handleErrorWithoutAlert(X,de,ee){let te="";return this.logger.error("ERROR IN: "+X+"\n"+JSON.stringify(ee)),this.store.dispatch((0,D.uO)({payload:de})),401===ee.status?(te="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.kS)())):503===ee.status?(te="Unable to Connect to Loop Server.",this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ee.status,message:"Unable to Connect to Loop Server",URL:X},component:w.H}}}))):te=this.commonService.extractErrorMessage(ee),(0,a._)(()=>new Error(te))}handleErrorWithAlert(X,de,ee){let te="";if(this.logger.error(ee),this.store.dispatch((0,D.uO)({payload:X})),401===ee.status)te="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.kS)());else if(503===ee.status)te="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ee.status,message:"Unable to Connect to Loop Server",URL:de},component:w.H}}}))},100);else{te=this.commonService.extractErrorMessage(ee);const ce=ee.error&&ee.error.error&&ee.error.error.code?ee.error.error.code:ee.error&&ee.error.code?ee.error.code:ee.code?ee.code:ee.status;setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"ERROR",message:{code:ce,message:te,URL:de},component:w.H}}}))},100)}return{message:te}}ngOnDestroy(){this.unSubs.forEach(X=>{X.next(null),X.complete()})}}return j.\u0275fac=function(X){return new(X||j)(L.LFG(t.eN),L.LFG(k.mQ),L.LFG(S.yh),L.LFG(U.v))},j.\u0275prov=L.Yz7({token:j,factory:j.\u0275fac}),j})()},5986:(Fe,Y,p)=>{"use strict";p.d(Y,{m:()=>f});var t=p(7579),e=p(5e3);let f=(()=>{class M{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(b){return sessionStorage.getItem(b)}getAllItems(){return sessionStorage}setItem(b,d){sessionStorage.setItem(b,d),this.sessionSub.next(sessionStorage)}removeItem(b){sessionStorage.removeItem(b),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})()},7998:(Fe,Y,p)=>{"use strict";p.d(Y,{d:()=>k});var t=p(1135),e=p(7579),f=p(2722),M=p(930),a=p(8306),b=p(727),d=p(4707);const P={url:"",deserializer:S=>JSON.parse(S.data),serializer:S=>JSON.stringify(S)};class A extends e.u{constructor(U,Z){if(super(),this._socket=null,U instanceof a.y)this.destination=Z,this.source=U;else{const j=this._config=Object.assign({},P);if(this._output=new e.x,"string"==typeof U)j.url=U;else for(const ne in U)U.hasOwnProperty(ne)&&(j[ne]=U[ne]);if(!j.WebSocketCtor&&WebSocket)j.WebSocketCtor=WebSocket;else if(!j.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new d.t}}lift(U){const Z=new A(this._config,this.destination);return Z.operator=U,Z.source=this,Z}_resetState(){this._socket=null,this.source||(this.destination=new d.t),this._output=new e.x}multiplex(U,Z,j){const ne=this;return new a.y(X=>{try{ne.next(U())}catch(ee){X.error(ee)}const de=ne.subscribe({next:ee=>{try{j(ee)&&X.next(ee)}catch(te){X.error(te)}},error:ee=>X.error(ee),complete:()=>X.complete()});return()=>{try{ne.next(Z())}catch(ee){X.error(ee)}de.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:U,protocol:Z,url:j,binaryType:ne}=this._config,X=this._output;let de=null;try{de=Z?new U(j,Z):new U(j),this._socket=de,ne&&(this._socket.binaryType=ne)}catch(te){return void X.error(te)}const ee=new b.w0(()=>{this._socket=null,de&&1===de.readyState&&de.close()});de.onopen=te=>{const{_socket:ce}=this;if(!ce)return de.close(),void this._resetState();const{openObserver:J}=this._config;J&&J.next(te);const me=this.destination;this.destination=M.Lv.create(x=>{if(1===de.readyState)try{const{serializer:i}=this._config;de.send(i(x))}catch(i){this.destination.error(i)}},x=>{const{closingObserver:i}=this._config;i&&i.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()}),me&&me instanceof d.t&&ee.add(me.subscribe(this.destination))},de.onerror=te=>{this._resetState(),X.error(te)},de.onclose=te=>{de===this._socket&&this._resetState();const{closeObserver:ce}=this._config;ce&&ce.next(te),te.wasClean?X.complete():X.error(te)},de.onmessage=te=>{try{const{deserializer:ce}=this._config;X.next(ce(te))}catch(ce){X.error(ce)}}}_subscribe(U){const{source:Z}=this;return Z?Z.subscribe(U):(this._socket||this._connectSocket(),this._output.subscribe(U),U.add(()=>{const{_socket:j}=this;0===this._output.observers.length&&(j&&(1===j.readyState||0===j.readyState)&&j.close(),this._resetState())}),U)}unsubscribe(){const{_socket:U}=this;U&&(1===U.readyState||0===U.readyState)&&U.close(),this._resetState(),super.unsubscribe()}}var w=p(5e3),D=p(5043),L=p(5986);let k=(()=>{class S{constructor(Z,j){this.logger=Z,this.sessionService=j,this.clWSMessages=new t.X(null),this.eclWSMessages=new t.X(null),this.lndWSMessages=new t.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}connectWebSocket(Z,j){(!this.socket||this.socket.closed)&&(this.wsUrl=Z,this.nodeIndex=j,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new A({url:Z,protocol:[this.sessionService.getItem("token"),j]}),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(){this.socket.pipe((0,f.R)(this.unSubs[1])).subscribe({next:Z=>{if((Z="string"==typeof Z?JSON.parse(Z):Z).error)this.handleError(Z.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(Z)),Z.source){case"LND":this.lndWSMessages.next(Z);break;case"CLN":this.clWSMessages.next(Z);break;case"ECL":this.eclWSMessages.next(Z)}},error:Z=>this.handleError(Z),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(Z){this.logger.error(Z),this.clWSMessages.error(Z),this.eclWSMessages.error(Z),this.lndWSMessages.error(Z),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 S.\u0275fac=function(Z){return new(Z||S)(w.LFG(D.mQ),w.LFG(L.m))},S.\u0275prov=w.Yz7({token:S,factory:S.\u0275fac}),S})()},8750:(Fe,Y,p)=>{"use strict";p.d(Y,{m:()=>an});var t=p(9808),e=p(1402),f=p(3075),M=p(8138),a=p(9444),b=p(5e3),d=p(3270),P=p(3322),h=p(7093);p(3191);let je=(()=>{class It{}return It.\u0275fac=function(mt){return new(mt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[d.IR]]}),It})(),ie=(()=>{class It{constructor(mt,Zt){(0,t.PM)(Zt)&&!mt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(mt,Zt=[]){return{ngModule:It,providers:mt.serverLoaded?[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),mt)},{provide:d.Bs,useValue:Zt,multi:!0},{provide:d.wY,useValue:!0}]:[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),mt)},{provide:d.Bs,useValue:Zt,multi:!0}]}}}return It.\u0275fac=function(mt){return new(mt||It)(b.LFG(d.wY),b.LFG(b.Lbi))},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[h.ae,P.aT,je],h.ae,P.aT,je]}),It})();var qe=p(5113),Mt=p(508),Vt=p(8966),Mi=p(1079),Ei=p(7544),en=p(7423);p(449),p(5664);let Fn=(()=>{class It{}return It.\u0275fac=function(mt){return new(mt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[Mt.BQ,Mt.si],Mt.BQ]}),It})();var Dn=p(9224),Ai=p(7446),Ri=p(6856),cn=p(1125),pr=p(3954),Br=p(5245),Jn=p(7531),mr=p(4623),Pr=p(2181),Nr=p(6087),ca=p(5899),ga=p(773),Ca=p(9814),Na=p(4107),Ra=p(2638),nr=p(2368);p(1159),p(6360),p(925),p(727),p(226);let va=(()=>{class It{}return It.\u0275fac=function(mt){return new(mt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[t.ez,Mt.BQ],Mt.BQ]}),It})();var $n=p(7261),Ta=p(4847),Ia=p(5615),Kn=p(2075),ra=p(3251),Hr=p(4594),Sr=p(7238),Fr=p(149),ya=p(1210),Fa=p(159),Wn=p(8129),Xe=p(9776);let St=(()=>{class It extends Xe.Xj{_createContainer(){const mt=document.createElement("div");mt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(mt),this._containerElement=mt}}return It.\u0275fac=function(){let hi;return function(Zt){return(hi||(hi=b.n5z(It)))(Zt||It)}}(),It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();var Ke=p(5043),Ot=p(7731);const ri={suppressScrollX:!1,suppressScrollY:!1};let Ti=(()=>{class It extends Mt.LF{format(mt,Zt){if("input"===Zt){let Hi=mt.getDate().toString();return Hi=+Hi<10?"0"+Hi:Hi,Hi+"/"+Ot.gg[mt.getMonth()].name.toUpperCase()+"/"+mt.getFullYear()}return Ot.gg[mt.getMonth()].name.toUpperCase()+" "+mt.getFullYear()}}return It.\u0275fac=function(){let hi;return function(Zt){return(hi||(hi=b.n5z(It)))(Zt||It)}}(),It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const ki={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 an=(()=>{class It{}return It.\u0275fac=function(mt){return new(mt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({providers:[{provide:Ke.mQ,useClass:Ke.LG},{provide:Wn.op,useValue:ri},{provide:$n.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:Mt._A,useClass:Ti},{provide:Mt.sG,useValue:ki},{provide:Xe.Xj,useClass:St},t.JJ,t.rS,t.uU],imports:[[t.ez,f.u5,f.UX,a.uH,ie,qe.xu,Vt.Is,en.ot,Fn,Dn.QW,Ai.p9,cn.To,pr.N6,Ri.FA,Mt.XK,Br.Ps,Jn.c,mr.ie,Pr.Tx,ca.Cv,ga.Cq,Ca.Fk,Fr.dp,Na.LD,Ra.SJ,nr.rP,Ta.JX,Kn.p0,Hr.g0,Sr.AV,Ei.g,Nr.TU,Ia.T5,va,ra.Nh,$n.ZX,Mi.Bb,ya.a4,Fa.OF,e.Bz,M.JF,Wn.Xd],f.u5,f.UX,a.uH,ie,qe.xu,Vt.Is,en.ot,Fn,Dn.QW,Ai.p9,cn.To,pr.N6,Ri.FA,Mt.XK,Br.Ps,Jn.c,mr.ie,Pr.Tx,ca.Cv,ga.Cq,Ca.Fk,Fr.dp,Na.LD,Ra.SJ,nr.rP,Ta.JX,Kn.p0,Hr.g0,Sr.AV,Ei.g,Nr.TU,Ia.T5,va,ra.Nh,$n.ZX,Mi.Bb,ya.a4,Fa.OF,Wn.Xd]}),It})()},7861:(Fe,Y,p)=>{"use strict";p.d(Y,{M6:()=>w,Q2:()=>S,QO:()=>c,Tm:()=>ce,Uy:()=>ee,XT:()=>X,_V:()=>me,ac:()=>P,c0:()=>r,c1:()=>D,dc:()=>v,ey:()=>ne,fk:()=>te,jS:()=>J,jW:()=>d,kS:()=>i,lC:()=>M,qR:()=>A,qi:()=>a,tj:()=>k,ts:()=>b,tw:()=>Z,uO:()=>h,vI:()=>j,x4:()=>E,yb:()=>L,zQ:()=>de});var t=p(5620),e=p(7731);(0,t.PH)(e.pg.VOID);const M=(0,t.PH)(e.pg.SET_API_URL_ECL,(0,t.Ky)()),a=(0,t.PH)(e.pg.UPDATE_API_CALL_STATUS_ROOT,(0,t.Ky)()),b=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),d=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),P=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),h=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),A=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),w=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),D=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),L=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),k=(0,t.PH)(e.pg.SHOW_PUBKEY),S=(0,t.PH)(e.pg.FETCH_CONFIG,(0,t.Ky)()),Z=((0,t.PH)(e.pg.SHOW_CONFIG,(0,t.Ky)()),(0,t.PH)(e.pg.UPDATE_SELECTED_NODE_OPTIONS)),j=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),ne=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),X=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),de=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),ee=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),te=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),ce=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),J=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),me=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),r=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),c=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),E=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),v=((0,t.PH)(e.pg.VERIFY_TWO_FA,(0,t.Ky)()),(0,t.PH)(e.pg.FETCH_FILE,(0,t.Ky)()));(0,t.PH)(e.pg.SHOW_FILE,(0,t.Ky)())},3093:(Fe,Y,p)=>{"use strict";p.d(Y,{V:()=>ji});var t=p(6642),e=p(7579),f=p(9646),M=p(8306),a=p(4128),b=p(4004),d=p(5698),P=p(1365),h=p(5577),A=p(262),w=p(2722),D=p(2340),L=p(7731),k=p(8966),S=p(5e3),U=p(7093),Z=p(773);let j=(()=>{class Kt{constructor(zt,si){this.dialogRef=zt,this.data=si}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(S.Y36(k.so),S.Y36(k.WI))},Kt.\u0275cmp=S.Xpm({type:Kt,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(zt,si){1&zt&&(S.TgZ(0,"div",0)(1,"div",1),S._UZ(2,"mat-spinner"),S.TgZ(3,"h1"),S._uU(4),S.qZA()()()),2&zt&&(S.xp6(4),S.Oqu(si.data.titleMessage))},directives:[U.xw,U.Wh,Z.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),Kt})();var ne=p(5043),X=p(7261),de=p(62),ee=p(9808),te=p(3322),ce=p(159),J=p(9224),me=p(7423),x=p(8129),i=p(5245),r=p(3390),u=p(6895),c=p(4834);const _=["scrollContainer"];function E(Kt,Oi){if(1&Kt&&S._UZ(0,"qr-code",15),2&Kt){const zt=S.oxw();S.Q6J("value",zt.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(Kt,Oi){1&Kt&&S.GkF(0)}const v=function(Kt){return{"h-40":Kt}};function n(Kt,Oi){if(1&Kt&&(S.ynx(0),S.TgZ(1,"mat-card-content",16,17),S.YNc(3,I,1,0,"ng-container",18),S.qZA(),S.BQk()),2&Kt){const zt=S.oxw(),si=S.MAs(20);S.xp6(1),S.Q6J("ngClass",S.VKq(2,v,zt.data.scrollable)),S.xp6(2),S.Q6J("ngTemplateOutlet",si)}}function C(Kt,Oi){1&Kt&&S.GkF(0)}function B(Kt,Oi){if(1&Kt&&(S.ynx(0),S.TgZ(1,"mat-card-content",19),S.YNc(2,C,1,0,"ng-container",18),S.qZA(),S.BQk()),2&Kt){S.oxw();const zt=S.MAs(20);S.xp6(2),S.Q6J("ngTemplateOutlet",zt)}}function N(Kt,Oi){1&Kt&&(S.TgZ(0,"mat-icon",23),S._uU(1,"arrow_downward"),S.qZA())}function z(Kt,Oi){1&Kt&&(S.TgZ(0,"mat-icon",23),S._uU(1,"arrow_upward"),S.qZA())}function oe(Kt,Oi){if(1&Kt){const zt=S.EpF();S.TgZ(0,"div",20)(1,"button",21),S.NdJ("click",function(){return S.CHM(zt),S.oxw().onScroll()}),S.YNc(2,N,2,0,"mat-icon",22),S.YNc(3,z,2,0,"mat-icon",22),S.qZA()()}if(2&Kt){const zt=S.oxw();S.xp6(2),S.Q6J("ngIf","DOWN"===zt.scrollDirection),S.xp6(1),S.Q6J("ngIf","UP"===zt.scrollDirection)}}function ge(Kt,Oi){1&Kt&&(S.TgZ(0,"button",24),S._uU(1,"OK"),S.qZA()),2&Kt&&S.Q6J("mat-dialog-close",!1)}function be(Kt,Oi){1&Kt&&(S.TgZ(0,"button",25),S._uU(1,"Close"),S.qZA()),2&Kt&&S.Q6J("mat-dialog-close",!1)}function Re(Kt,Oi){if(1&Kt){const zt=S.EpF();S.TgZ(0,"button",26),S.NdJ("copied",function(Pt){return S.CHM(zt),S.oxw().onCopyField(Pt)}),S._uU(1),S.qZA()}if(2&Kt){const zt=S.oxw();S.Q6J("payload",zt.showCopyField),S.xp6(1),S.hij("Copy ",zt.showCopyName,"")}}function we(Kt,Oi){1&Kt&&(S.TgZ(0,"button",25),S._uU(1,"Close"),S.qZA()),2&Kt&&S.Q6J("mat-dialog-close",!1)}function Q(Kt,Oi){if(1&Kt){const zt=S.EpF();S.TgZ(0,"button",26),S.NdJ("copied",function(Pt){return S.CHM(zt),S.oxw().onCopyField(Pt)}),S._uU(1),S.qZA()}if(2&Kt){const zt=S.oxw();S.Q6J("payload",zt.showQRField),S.xp6(1),S.hij("Copy ",zt.showQRName,"")}}function Ge(Kt,Oi){if(1&Kt&&S._UZ(0,"qr-code",15),2&Kt){const zt=S.oxw(2);S.Q6J("value",zt.showQRField)("size",200)("errorCorrectionLevel","L")}}function ve(Kt,Oi){if(1&Kt&&(S.TgZ(0,"p",32),S._uU(1),S.qZA()),2&Kt){const zt=S.oxw(2);S.xp6(1),S.Oqu(zt.data.titleMessage)}}function F(Kt,Oi){1&Kt&&S._UZ(0,"span",46),2&Kt&&S.Q6J("innerHTML",Oi.$implicit,S.oJD)}function De(Kt,Oi){if(1&Kt&&(S.ynx(0),S.YNc(1,F,1,1,"span",45),S.BQk()),2&Kt){const zt=S.oxw(2).$implicit;S.xp6(1),S.Q6J("ngForOf",zt.value)}}function lt(Kt,Oi){if(1&Kt&&(S.ynx(0),S._uU(1),S.ALo(2,"date"),S.BQk()),2&Kt){const zt=S.oxw(2).$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,1e3*zt.value,"dd/MMM/y HH:mm"))}}function Ie(Kt,Oi){if(1&Kt&&(S.ynx(0),S._uU(1),S.ALo(2,"number"),S.BQk()),2&Kt){const zt=S.oxw(2).$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,zt.value,zt.digitsInfo?zt.digitsInfo:"1.0-3"))}}function Ae(Kt,Oi){if(1&Kt&&(S.ynx(0),S._uU(1),S.BQk()),2&Kt){const zt=S.oxw(2).$implicit;S.xp6(1),S.Oqu(zt.value?"True":"False")}}function se(Kt,Oi){1&Kt&&(S.TgZ(0,"mat-icon",51),S._uU(1,"info"),S.qZA())}const Te=function(Kt){return{"failed-status":Kt}};function ye(Kt,Oi){if(1&Kt&&(S.TgZ(0,"p",49),S._uU(1),S.YNc(2,se,2,0,"mat-icon",50),S.qZA()),2&Kt){const zt=S.oxw(3).$implicit,si=S.oxw(4);S.Q6J("ngClass",S.VKq(3,Te,zt.value===si.LoopStateEnum.FAILED)),S.xp6(1),S.hij(" ",zt.value," "),S.xp6(1),S.Q6J("ngIf",zt.value===si.LoopStateEnum.FAILED)}}function W(Kt,Oi){if(1&Kt&&S._uU(0),2&Kt){const zt=S.oxw(3).$implicit;S.Oqu(zt.value)}}function $(Kt,Oi){if(1&Kt&&(S.ynx(0),S.YNc(1,ye,3,5,"p",47),S.YNc(2,W,1,1,"ng-template",null,48,S.W1O),S.BQk()),2&Kt){const zt=S.MAs(3),si=S.oxw(2).$implicit,Pt=S.oxw(4);S.xp6(1),S.Q6J("ngIf","SWAP"===Pt.data.openedBy&&"state"===si.key)("ngIfElse",zt)}}function ue(Kt,Oi){if(1&Kt&&(S.TgZ(0,"span")(1,"span",42),S.YNc(2,De,2,1,"ng-container",43),S.YNc(3,lt,3,4,"ng-container",43),S.YNc(4,Ie,3,4,"ng-container",43),S.YNc(5,Ae,2,1,"ng-container",43),S.YNc(6,$,4,2,"ng-container",44),S.qZA()()),2&Kt){const zt=S.oxw().$implicit,si=S.oxw(4);S.xp6(1),S.Q6J("ngSwitch",zt.type),S.xp6(1),S.Q6J("ngSwitchCase",si.dataTypeEnum.ARRAY),S.xp6(1),S.Q6J("ngSwitchCase",si.dataTypeEnum.DATE_TIME),S.xp6(1),S.Q6J("ngSwitchCase",si.dataTypeEnum.NUMBER),S.xp6(1),S.Q6J("ngSwitchCase",si.dataTypeEnum.BOOLEAN)}}function Ce(Kt,Oi){1&Kt&&(S.TgZ(0,"span",52),S._uU(1,"\xa0"),S.qZA())}function Le(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div",37)(1,"h4",38),S._uU(2),S.qZA(),S.YNc(3,ue,7,5,"span",39),S.YNc(4,Ce,2,0,"ng-template",null,40,S.W1O),S._UZ(6,"mat-divider",41),S.qZA()),2&Kt){const zt=Oi.$implicit,si=S.MAs(5);S.s9C("fxFlex.gt-md",zt.width),S.xp6(2),S.Oqu(zt.title),S.xp6(1),S.Q6J("ngIf",zt&&(!!zt.value||0===zt.value))("ngIfElse",si)}}function ct(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div")(1,"div",35),S.YNc(2,Le,7,4,"div",36),S.qZA()()),2&Kt){const zt=Oi.$implicit;S.xp6(2),S.Q6J("ngForOf",zt)}}function ut(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div",33),S.YNc(1,ct,3,1,"div",34),S.qZA()),2&Kt){const zt=S.oxw(2);S.xp6(1),S.Q6J("ngForOf",zt.messageObjs)}}const Dt=function(Kt){return{"display-none":Kt}};function di(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div",27)(1,"div",28),S.YNc(2,Ge,1,3,"qr-code",2),S.qZA(),S.TgZ(3,"div",29),S.YNc(4,ve,2,1,"p",30),S.YNc(5,ut,2,1,"div",31),S.qZA()()),2&Kt){const zt=S.oxw();S.xp6(1),S.Q6J("ngClass",S.VKq(4,Dt,""===zt.showQRField||zt.screenSize!==zt.screenSizeEnum.XS&&zt.screenSize!==zt.screenSizeEnum.SM)),S.xp6(1),S.Q6J("ngIf",""!==zt.showQRField),S.xp6(2),S.Q6J("ngIf",zt.data.titleMessage),S.xp6(1),S.Q6J("ngIf",(null==zt.messageObjs?null:zt.messageObjs.length)>0)}}let Yt=(()=>{class Kt{constructor(zt,si,Pt,mi,ti,vi){this.dialogRef=zt,this.data=si,this.logger=Pt,this.snackBar=mi,this.commonService=ti,this.renderer=vi,this.LoopStateEnum=L.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=L.n_,this.dataTypeEnum=L.Gi,this.screenSize="",this.screenSizeEnum=L.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(zt){zt&&(this.scrollContainer=zt,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",si=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",si=>{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===L.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(zt){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+zt)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(S.Y36(k.so),S.Y36(k.WI),S.Y36(ne.mQ),S.Y36(X.ux),S.Y36(de.v),S.Y36(S.Qsj))},Kt.\u0275cmp=S.Xpm({type:Kt,selectors:[["rtl-alert-message"]],viewQuery:function(zt,si){if(1&zt&&S.Gf(_,5),2&zt){let Pt;S.iGM(Pt=S.CRH())&&(si.container=Pt.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(zt,si){1&zt&&(S.TgZ(0,"div",0)(1,"div",1),S.YNc(2,E,1,3,"qr-code",2),S.qZA(),S.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),S._uU(7),S.qZA()(),S.TgZ(8,"button",7),S.NdJ("click",function(){return si.onClose()}),S._uU(9,"X"),S.qZA()(),S.YNc(10,n,4,4,"ng-container",8),S.YNc(11,B,3,1,"ng-container",8),S.YNc(12,oe,4,2,"div",9),S.TgZ(13,"div",10),S.YNc(14,ge,2,1,"button",11),S.YNc(15,be,2,1,"button",12),S.YNc(16,Re,2,2,"button",13),S.YNc(17,we,2,1,"button",12),S.YNc(18,Q,2,2,"button",13),S.qZA()()(),S.YNc(19,di,6,6,"ng-template",null,14,S.W1O)),2&zt&&(S.xp6(1),S.Q6J("ngClass",S.VKq(12,Dt,""===si.showQRField||si.screenSize===si.screenSizeEnum.XS||si.screenSize===si.screenSizeEnum.SM)),S.xp6(1),S.Q6J("ngIf",""!==si.showQRField),S.xp6(1),S.Q6J("fxFlex",""===si.showQRField||si.screenSize===si.screenSizeEnum.XS||si.screenSize===si.screenSizeEnum.SM?"100":"70"),S.xp6(4),S.Oqu(si.data.alertTitle||si.alertTypeEnum[si.data.type]),S.xp6(3),S.Q6J("ngIf",si.data.scrollable),S.xp6(1),S.Q6J("ngIf",!si.data.scrollable),S.xp6(1),S.Q6J("ngIf",si.data.scrollable&&si.shouldScroll),S.xp6(2),S.Q6J("ngIf",(!si.showQRField||""===si.showQRField)&&""===si.showCopyName),S.xp6(1),S.Q6J("ngIf",""!==si.showCopyName),S.xp6(1),S.Q6J("ngIf",""!==si.showCopyName),S.xp6(1),S.Q6J("ngIf",""!==si.showQRField),S.xp6(1),S.Q6J("ngIf",""!==si.showQRField))},directives:[U.xw,U.Wh,U.yH,ee.mk,te.oO,ee.O5,ce.uU,J.dk,me.lW,J.dn,x.$V,ee.tP,i.Hw,r.h,k.ZT,u.y,ee.sg,ee.RF,ee.n9,ee.ED,c.d],pipes:[ee.uU,ee.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),Kt})();var Gt=p(801),ui=p(7861),xt=p(5620),Nt=p(3075),gt=p(9444),et=p(7322),vt=p(7531),$t=p(6534);function jt(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div",17),S._UZ(1,"fa-icon",18),S.TgZ(2,"span"),S._uU(3),S.qZA()()),2&Kt){const zt=S.oxw();S.xp6(1),S.Q6J("icon",zt.faExclamationTriangle),S.xp6(2),S.Oqu(zt.warningMessage)}}function Pe(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div",19),S._UZ(1,"fa-icon",18),S.TgZ(2,"span"),S._uU(3),S.qZA()()),2&Kt){const zt=S.oxw();S.xp6(1),S.Q6J("icon",zt.faInfoCircle),S.xp6(2),S.Oqu(zt.informationMessage)}}function Oe(Kt,Oi){if(1&Kt&&(S.TgZ(0,"p",20),S._uU(1),S.qZA()),2&Kt){const zt=S.oxw();S.xp6(1),S.Oqu(zt.data.titleMessage)}}function le(Kt,Oi){1&Kt&&S._UZ(0,"span",33),2&Kt&&S.Q6J("innerHTML",Oi.$implicit,S.oJD)}function xe(Kt,Oi){if(1&Kt&&(S.ynx(0),S.YNc(1,le,1,1,"span",32),S.BQk()),2&Kt){const zt=S.oxw(2).$implicit;S.xp6(1),S.Q6J("ngForOf",zt.value)}}function ht(Kt,Oi){if(1&Kt&&(S.ynx(0),S._uU(1),S.ALo(2,"date"),S.BQk()),2&Kt){const zt=S.oxw(2).$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,1e3*zt.value,"dd/MMM/y HH:mm"))}}function ft(Kt,Oi){if(1&Kt&&(S.ynx(0),S._uU(1),S.ALo(2,"number"),S.BQk()),2&Kt){const zt=S.oxw(2).$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,zt.value,"1.0-3"))}}function Ht(Kt,Oi){if(1&Kt&&(S.ynx(0),S._uU(1),S.BQk()),2&Kt){const zt=S.oxw(2).$implicit;S.xp6(1),S.Oqu(!0===zt.value?"True":"False")}}function it(Kt,Oi){if(1&Kt&&(S.ynx(0),S._uU(1),S.BQk()),2&Kt){const zt=S.oxw(2).$implicit;S.xp6(1),S.Oqu(zt.value)}}function Ne(Kt,Oi){if(1&Kt&&(S.TgZ(0,"span")(1,"span",29),S.YNc(2,xe,2,1,"ng-container",30),S.YNc(3,ht,3,4,"ng-container",30),S.YNc(4,ft,3,4,"ng-container",30),S.YNc(5,Ht,2,1,"ng-container",30),S.YNc(6,it,2,1,"ng-container",31),S.qZA()()),2&Kt){const zt=S.oxw().$implicit,si=S.oxw(3);S.xp6(1),S.Q6J("ngSwitch",zt.type),S.xp6(1),S.Q6J("ngSwitchCase",si.dataTypeEnum.ARRAY),S.xp6(1),S.Q6J("ngSwitchCase",si.dataTypeEnum.DATE_TIME),S.xp6(1),S.Q6J("ngSwitchCase",si.dataTypeEnum.NUMBER),S.xp6(1),S.Q6J("ngSwitchCase",si.dataTypeEnum.BOOLEAN)}}function tt(Kt,Oi){1&Kt&&(S.TgZ(0,"span",34),S._uU(1,"\xa0"),S.qZA())}function Je(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div",24)(1,"h4",25),S._uU(2),S.qZA(),S.YNc(3,Ne,7,5,"span",26),S.YNc(4,tt,2,0,"ng-template",null,27,S.W1O),S._UZ(6,"mat-divider",28),S.qZA()),2&Kt){const zt=Oi.$implicit,si=S.MAs(5);S.s9C("fxFlex.gt-md",zt.width),S.xp6(2),S.Oqu(zt.title),S.xp6(1),S.Q6J("ngIf",zt&&(!!zt.value||0===zt.value))("ngIfElse",si)}}function Se(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div")(1,"div",22),S.YNc(2,Je,7,4,"div",23),S.qZA()()),2&Kt){const zt=Oi.$implicit;S.xp6(2),S.Q6J("ngForOf",zt)}}function Ue(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div"),S.YNc(1,Se,3,1,"div",21),S.qZA()),2&Kt){const zt=S.oxw();S.xp6(1),S.Q6J("ngForOf",zt.messageObjs)}}function rt(Kt,Oi){if(1&Kt&&(S.TgZ(0,"p",20),S._uU(1),S.qZA()),2&Kt){const zt=S.oxw(2);S.xp6(1),S.Oqu(zt.data.titleMessage)}}function at(Kt,Oi){if(1&Kt){const zt=S.EpF();S.TgZ(0,"input",41),S.NdJ("ngModelChange",function(Pt){return S.CHM(zt),S.oxw().$implicit.inputValue=Pt}),S.ALo(1,"lowercase"),S.qZA()}if(2&Kt){const zt=S.oxw(),si=zt.index,Pt=zt.$implicit;S.MGl("name","input",si,""),S.Q6J("placeholder",Pt.placeholder)("min",Pt.min)("step",Pt.step)("type",S.lcZ(1,7,Pt.inputType))("ngModel",Pt.inputValue)("tabindex",si+1)}}function yt(Kt,Oi){if(1&Kt){const zt=S.EpF();S.TgZ(0,"input",42),S.NdJ("ngModelChange",function(Pt){return S.CHM(zt),S.oxw().$implicit.inputValue=Pt}),S.ALo(1,"lowercase"),S.qZA()}if(2&Kt){const zt=S.oxw(),si=zt.index,Pt=zt.$implicit;S.MGl("name","input",si,""),S.Q6J("placeholder",Pt.placeholder)("min",Pt.min)("step",Pt.step)("type",S.lcZ(1,7,Pt.inputType))("ngModel",Pt.inputValue)("tabindex",si+1)}}function gi(Kt,Oi){if(1&Kt&&(S.TgZ(0,"mat-error"),S._uU(1),S.qZA()),2&Kt){const zt=S.oxw().$implicit;S.xp6(1),S.hij("",zt.placeholder," is required.")}}function Qt(Kt,Oi){if(1&Kt&&(S.TgZ(0,"mat-form-field",38),S.YNc(1,at,2,9,"input",39),S.YNc(2,yt,2,9,"input",40),S.YNc(3,gi,2,1,"mat-error",11),S.TgZ(4,"mat-hint"),S._uU(5),S.qZA()()),2&Kt){const zt=Oi.$implicit,si=Oi.index;S.Q6J("fxFlex",zt.width),S.xp6(1),S.Q6J("ngIf",0===si),S.xp6(1),S.Q6J("ngIf",0!==si),S.xp6(1),S.Q6J("ngIf",!zt.inputValue),S.xp6(2),S.Oqu(zt.hintFunction?zt.hintFunction(zt.inputValue):zt.hintText)}}function Jt(Kt,Oi){if(1&Kt&&(S.TgZ(0,"div",35),S.YNc(1,rt,2,1,"p",10),S.TgZ(2,"div",36),S.YNc(3,Qt,6,5,"mat-form-field",37),S.qZA()()),2&Kt){const zt=S.oxw();S.xp6(1),S.Q6J("ngIf",zt.data.titleMessage),S.xp6(2),S.Q6J("ngForOf",zt.getInputs)}}function Xi(Kt,Oi){if(1&Kt){const zt=S.EpF();S.TgZ(0,"button",43),S.NdJ("click",function(){S.CHM(zt);const Pt=S.oxw();return Pt.onClose(Pt.getInputs)}),S._uU(1),S.qZA()}if(2&Kt){const zt=S.oxw();S.xp6(1),S.Oqu(zt.yesBtnText)}}function fi(Kt,Oi){if(1&Kt){const zt=S.EpF();S.TgZ(0,"button",44),S.NdJ("click",function(){return S.CHM(zt),S.oxw().onClose(!0)}),S._uU(1),S.qZA()}if(2&Kt){const zt=S.oxw();S.xp6(1),S.Oqu(zt.yesBtnText)}}let ai=(()=>{class Kt{constructor(zt,si,Pt,mi){this.dialogRef=zt,this.data=si,this.logger=Pt,this.store=mi,this.faInfoCircle=Gt.sqG,this.faExclamationTriangle=Gt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=L.n_,this.dataTypeEnum=L.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null}]}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.messageObjs=this.data.message,this.data.type===L.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(zt){if(zt&&this.getInputs&&this.getInputs.some(si=>void 0===si.inputValue))return!0;this.store.dispatch((0,ui.yb)({payload:zt}))}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(S.Y36(k.so),S.Y36(k.WI),S.Y36(ne.mQ),S.Y36(xt.yh))},Kt.\u0275cmp=S.Xpm({type:Kt,selectors:[["rtl-confirmation-message"]],decls:20,vars:9,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","2",1,"mr-1",3,"click"],["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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["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(zt,si){1&zt&&(S.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),S._uU(5),S.qZA()(),S.TgZ(6,"button",5),S.NdJ("click",function(){return si.onClose(!1)}),S._uU(7,"X"),S.qZA()(),S.TgZ(8,"mat-card-content",6)(9,"form",7),S.YNc(10,jt,4,2,"div",8),S.YNc(11,Pe,4,2,"div",9),S.YNc(12,Oe,2,1,"p",10),S.YNc(13,Ue,2,1,"div",11),S.YNc(14,Jt,4,2,"div",12),S.TgZ(15,"div",13)(16,"button",14),S.NdJ("click",function(){return si.onClose(!1)}),S._uU(17),S.qZA(),S.YNc(18,Xi,2,1,"button",15),S.YNc(19,fi,2,1,"button",16),S.qZA()()()()()),2&zt&&(S.xp6(5),S.Oqu(si.data.alertTitle||si.alertTypeEnum[si.data.type]),S.xp6(5),S.Q6J("ngIf",si.warningMessage&&""!==si.warningMessage),S.xp6(1),S.Q6J("ngIf",si.informationMessage&&""!==si.informationMessage),S.xp6(1),S.Q6J("ngIf",si.data.titleMessage&&!si.flgShowInput),S.xp6(1),S.Q6J("ngIf",(null==si.messageObjs?null:si.messageObjs.length)>0),S.xp6(1),S.Q6J("ngIf",si.flgShowInput),S.xp6(3),S.Oqu(si.noBtnText),S.xp6(1),S.Q6J("ngIf",si.flgShowInput),S.xp6(1),S.Q6J("ngIf",!si.flgShowInput))},directives:[U.xw,U.yH,J.dk,U.Wh,me.lW,J.dn,Nt._Y,Nt.JL,Nt.F,ee.O5,gt.BN,ee.sg,ee.RF,ee.n9,ee.ED,c.d,et.KE,vt.Nt,$t.q,Nt.Fj,r.h,Nt.Q7,Nt.JJ,Nt.On,et.TO,et.bx],pipes:[ee.uU,ee.JJ,ee.i8],styles:[""]}),Kt})();var tn=p(1786),Wi=p(4107),Gi=p(508);function Yi(Kt,Oi){if(1&Kt&&(S.TgZ(0,"mat-option",23),S._uU(1),S.qZA()),2&Kt){const zt=Oi.$implicit;S.Q6J("value",zt),S.xp6(1),S.hij(" ",zt.infoName," ")}}function ze(Kt,Oi){if(1&Kt){const zt=S.EpF();S.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),S.NdJ("valueChange",function(Pt){return S.CHM(zt),S.oxw().selInfoType=Pt}),S.YNc(3,Yi,2,2,"mat-option",22),S.qZA()()()}if(2&Kt){const zt=S.oxw();S.xp6(2),S.Q6J("value",zt.selInfoType),S.xp6(1),S.Q6J("ngForOf",zt.infoTypes)}}const Lt=function(Kt){return{"display-none":Kt}};let fe=(()=>{class Kt{constructor(zt,si,Pt,mi,ti){this.dialogRef=zt,this.data=si,this.logger=Pt,this.snackBar=mi,this.commonService=ti,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=L.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((zt,si)=>{this.infoTypes.push({infoID:si+1,infoKey:"node URI "+(si+1),infoName:"Node URI "+(si+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(zt){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+zt)}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(S.Y36(k.so),S.Y36(k.WI),S.Y36(ne.mQ),S.Y36(X.ux),S.Y36(de.v))},Kt.\u0275cmp=S.Xpm({type:Kt,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(zt,si){1&zt&&(S.TgZ(0,"div",0)(1,"div",1),S._UZ(2,"qr-code",2),S.qZA(),S.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),S._UZ(6,"fa-icon",6),S.TgZ(7,"span",7),S._uU(8),S.qZA()(),S.TgZ(9,"button",8),S.NdJ("click",function(){return si.onClose()}),S._uU(10,"X"),S.qZA()(),S.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),S._UZ(14,"qr-code",2),S.qZA(),S.YNc(15,ze,4,2,"div",12),S.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),S._uU(19),S.qZA(),S.TgZ(20,"span",16),S._uU(21),S.qZA()()(),S._UZ(22,"mat-divider",17),S.TgZ(23,"div",18)(24,"button",19),S.NdJ("copied",function(mi){return si.onCopyPubkey(mi)}),S._uU(25),S.qZA()()()()()()),2&zt&&(S.xp6(1),S.Q6J("ngClass",S.VKq(15,Lt,si.screenSize===si.screenSizeEnum.XS||si.screenSize===si.screenSizeEnum.SM)),S.xp6(1),S.s9C("value",0===si.selInfoType.infoID?si.information.identity_pubkey:si.information.uris[si.selInfoType.infoID-1]),S.Q6J("size",si.qrWidth)("errorCorrectionLevel","L"),S.xp6(4),S.Q6J("icon",si.faReceipt),S.xp6(2),S.Oqu(si.selInfoType.infoName),S.xp6(5),S.Q6J("ngClass",S.VKq(17,Lt,si.screenSize!==si.screenSizeEnum.XS&&si.screenSize!==si.screenSizeEnum.SM)),S.xp6(1),S.s9C("value",0===si.selInfoType.infoID?si.information.identity_pubkey:si.information.uris[si.selInfoType.infoID-1]),S.Q6J("size",si.qrWidth)("errorCorrectionLevel","L"),S.xp6(1),S.Q6J("ngIf",si.information.uris&&si.information.uris.length>0),S.xp6(4),S.Oqu(si.selInfoType.infoName),S.xp6(2),S.Oqu(0===si.selInfoType.infoID?si.information.identity_pubkey:si.information.uris[si.selInfoType.infoID-1]),S.xp6(3),S.s9C("payload",0===si.selInfoType.infoID?si.information.identity_pubkey:si.information.uris[si.selInfoType.infoID-1]),S.xp6(1),S.hij("Copy ",si.selInfoType.infoKey,""))},directives:[U.xw,U.Wh,U.yH,ee.mk,te.oO,ce.uU,J.dk,gt.BN,me.lW,J.dn,ee.O5,et.KE,Wi.gD,ee.sg,Gi.ey,c.d,r.h,u.y],styles:[""]}),Kt})();var je=p(6523),Ct=p(429),ie=p(2994),qe=p(8377),Mt=p(8138),Vt=p(7998),Mi=p(5986),Ei=p(8104),en=p(1402);let ji=(()=>{class Kt{constructor(zt,si,Pt,mi,ti,vi,Bi,Fi,pn,Fn,Dn){this.actions=zt,this.httpClient=si,this.store=Pt,this.logger=mi,this.wsService=ti,this.sessionService=vi,this.commonService=Bi,this.dataService=Fi,this.dialog=pn,this.snackBar=Fn,this.router=Dn,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new e.x,new e.x],this.closeAllDialogs=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.CLOSE_ALL_DIALOGS),(0,b.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.OPEN_SNACK_BAR),(0,b.U)(Ai=>{"string"==typeof Ai.payload?this.snackBar.open(Ai.payload):this.snackBar.open(Ai.payload.message,"","ERROR"===Ai.payload.type?{duration:Ai.payload.duration?Ai.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Ai.payload.type?{duration:Ai.payload.duration?Ai.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Ai.payload.duration?Ai.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.OPEN_SPINNER),(0,b.U)(Ai=>{Ai.payload!==L.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(j,{data:{titleMessage:Ai.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.CLOSE_SPINNER),(0,b.U)(Ai=>{if(Ai.payload!==L.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Ai.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Ri=>{Ri.componentInstance&&Ri.componentInstance.data&&Ri.componentInstance.data.titleMessage&&Ri.componentInstance.data.titleMessage===Ai.payload&&Ri.close()})}catch(Ri){this.logger.error(Ri)}})),{dispatch:!1}),this.openAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.OPEN_ALERT),(0,b.U)(Ai=>{const Ri=JSON.parse(JSON.stringify(Ai.payload));Ri.width||(Ri.width=this.alertWidth),this.dialogRef=this.dialog.open(Ai.payload.data.component?Ai.payload.data.component:Yt,Ri)})),{dispatch:!1}),this.closeAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.CLOSE_ALERT),(0,b.U)(Ai=>(this.dialogRef&&this.dialogRef.close(),Ai.payload))),{dispatch:!1}),this.openConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.OPEN_CONFIRMATION),(0,b.U)(Ai=>{const Ri=JSON.parse(JSON.stringify(Ai.payload));Ri.width||(Ri.width=this.confirmWidth),this.dialogRef=this.dialog.open(ai,Ri)})),{dispatch:!1}),this.closeConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.CLOSE_CONFIRMATION),(0,d.q)(1),(0,b.U)(Ai=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Ai.payload),Ai.payload))),{dispatch:!1}),this.showNodePubkey=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.SHOW_PUBKEY),(0,P.M)(this.store.select(qe.R4)),(0,h.z)(([Ai,Ri])=>(this.sessionService.getItem("token")&&Ri.identity_pubkey?this.store.dispatch((0,ui.qR)({payload:{data:{information:Ri,component:fe}}})):this.snackBar.open("Node Pubkey does not exist."),(0,f.of)({type:L.pg.VOID}))))),this.appConfigFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.FETCH_RTL_CONFIG),(0,h.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===L.cu.XS||this.screenSize===L.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===L.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,ui.ac)({payload:L.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:L.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(D.NZ.CONF_API+"/rtlconf"):this.httpClient.get(D.NZ.CONF_API+"/rtlconfinit"))),(0,b.U)(Ai=>{let Ri;return this.logger.info(Ai),this.store.dispatch((0,ui.uO)({payload:L.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:L.Bn.COMPLETED}})),Ai.nodes.forEach(cn=>{cn.settings.currencyUnits=[...L.uA,cn.settings.currencyUnit],+cn.index===Ai.selectedNodeIndex&&(Ri=cn)}),Ri?(this.store.dispatch((0,ui.fk)({payload:{uiMessage:L.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Ri,isInitialSetup:!0}})),{type:L.pg.SET_RTL_CONFIG,payload:Ai}):{type:L.pg.VOID}}),(0,A.K)(Ai=>(this.handleErrorWithAlert("FetchRTLConfig",L.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",D.NZ.CONF_API,Ai),(0,f.of)({type:L.pg.VOID}))))),this.settingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.SAVE_SETTINGS),(0,h.z)(Ai=>{this.store.dispatch((0,ui.ac)({payload:Ai.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:L.Bn.INITIATED}}));let Ri=new M.y;if(Ai.payload.settings&&Ai.payload.defaultNodeIndex){const cn=this.httpClient.post(D.NZ.CONF_API,{updatedSettings:Ai.payload.settings}),pr=this.httpClient.post(D.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Ai.payload.defaultNodeIndex});Ri=(0,a.D)([cn,pr])}else Ai.payload.settings&&!Ai.payload.defaultNodeIndex?Ri=this.httpClient.post(D.NZ.CONF_API,{updatedSettings:Ai.payload.settings}):!Ai.payload.settings&&Ai.payload.defaultNodeIndex&&(Ri=this.httpClient.post(D.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Ai.payload.defaultNodeIndex}));return Ri.pipe((0,b.U)(cn=>(this.logger.info(cn),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:L.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Ai.payload.uiMessage})),{type:L.pg.OPEN_SNACK_BAR,payload:cn.length?cn[0].message+".":cn.message+"."})),(0,A.K)(cn=>(this.handleErrorWithAlert("UpdateSettings",Ai.payload.uiMessage,"Update Settings Failed!",D.NZ.CONF_API,cn.length?cn[0]:cn),(0,f.of)({type:L.pg.VOID}))))}))),this.updateServicesettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.UPDATE_SERVICE_SETTINGS),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:Ai.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:L.Bn.INITIATED}})),this.httpClient.post(D.NZ.CONF_API+"/updateServiceSettings",Ai.payload).pipe((0,b.U)(Ri=>(this.logger.info(Ri),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:L.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Ai.payload.uiMessage})),this.store.dispatch((0,ui.Tm)({payload:Ai.payload})),{type:L.pg.OPEN_SNACK_BAR,payload:Ri.message+"."})),(0,A.K)(Ri=>(this.handleErrorWithAlert("UpdateServiceSettings",Ai.payload.uiMessage,"Update Service Settings Failed!",D.NZ.CONF_API,Ri),(0,f.of)({type:L.pg.VOID})))))))),this.twoFASettingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.TWO_FA_SAVE_SETTINGS),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:L.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:L.Bn.INITIATED}})),this.httpClient.post(D.NZ.CONF_API+"/update2FA",{secret2fa:Ai.payload.secret2fa}))),(0,P.M)(this.store.select(qe.Yj)),(0,b.U)(([Ai,Ri])=>{this.logger.info(Ai),Ri.enable2FA=!Ri.enable2FA,this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:L.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:L.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.XT)({payload:Ri}))}),(0,A.K)(Ai=>(this.handleErrorWithAlert("Update2FASettings",L.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",D.NZ.CONF_API,Ai),(0,f.of)({type:L.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.FETCH_CONFIG),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:L.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:L.Bn.INITIATED}})),this.httpClient.get(D.NZ.CONF_API+"/config/"+Ai.payload).pipe((0,b.U)(Ri=>(this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:L.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:L.m6.OPEN_CONFIG_FILE})),{type:L.pg.SHOW_CONFIG,payload:Ri})),(0,A.K)(Ri=>(this.handleErrorWithAlert("fetchConfig",L.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",D.NZ.CONF_API+"/config/"+Ai.payload,Ri),(0,f.of)({type:L.pg.VOID})))))))),this.showLnConfig=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.SHOW_CONFIG),(0,b.U)(Ai=>Ai.payload)),{dispatch:!1}),this.isAuthorized=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.IS_AUTHORIZED),(0,h.z)(Ai=>(this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:L.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API,{authenticateWith:Ai.payload&&""!==Ai.payload.trim()?L.OJ.PASSWORD:L.OJ.JWT,authenticationValue:Ai.payload&&""!==Ai.payload.trim()?Ai.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,b.U)(Ri=>(this.logger.info(Ri),this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:L.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:L.pg.IS_AUTHORIZED_RES,payload:Ri})),(0,A.K)(Ri=>(this.handleErrorWithAlert("IsAuthorized",L.m6.NO_SPINNER,"Authorization Failed",D.NZ.AUTHENTICATE_API,Ri),(0,f.of)({type:L.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.IS_AUTHORIZED_RES),(0,b.U)(Ai=>Ai.payload)),{dispatch:!1}),this.authLogin=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.LOGIN),(0,P.M)(this.store.select(qe.Yj)),(0,h.z)(([Ai,Ri])=>(this.store.dispatch((0,je.Ll)({payload:null})),this.store.dispatch((0,Ct.xH)({payload:null})),this.store.dispatch((0,ie.Fd)({payload:null})),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:L.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API,{authenticateWith:Ai.payload.password?L.OJ.PASSWORD:L.OJ.JWT,authenticationValue:Ai.payload.password?Ai.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Ai.payload.twoFAToken?Ai.payload.twoFAToken:""}).pipe((0,b.U)(cn=>{this.logger.info(cn),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:L.Bn.COMPLETED}})),this.setLoggedInDetails(Ai.payload.defaultPassword,cn)}),(0,A.K)(cn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",L.m6.NO_SPINNER,cn),+Ri.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:cn.error&&cn.error.error?cn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,f.of)({type:L.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.VERIFY_TWO_FA),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:L.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:L.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API+"/token",{authentication2FA:Ai.payload.token}).pipe((0,b.U)(Ri=>{this.logger.info(Ri),this.store.dispatch((0,ui.uO)({payload:L.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:L.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Ai.payload.authResponse)}),(0,A.K)(Ri=>(this.handleErrorWithAlert("VerifyToken",L.m6.VERIFY_TOKEN,"Authorization Failed!",D.NZ.AUTHENTICATE_API+"/token",Ri),(0,f.of)({type:L.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.LOGOUT),(0,P.M)(this.store.select(qe.Yj)),(0,h.z)(([Ai,Ri])=>(this.store.dispatch((0,ui.ac)({payload:L.m6.LOG_OUT})),this.httpClient.get(D.NZ.AUTHENTICATE_API+"/logout").pipe((0,b.U)(cn=>{this.logger.info(cn),this.store.dispatch((0,ui.uO)({payload:L.m6.LOG_OUT})),+Ri.sso.rtlSSO?window.location.href=Ri.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,ui._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,t.GW)(()=>this.actions.pipe((0,w.R)(this.unSubs[1]),(0,t.l4)(L.pg.RESET_PASSWORD),(0,h.z)(Ai=>(this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:L.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API+"/reset",{currPassword:Ai.payload.currPassword,newPassword:Ai.payload.newPassword}).pipe((0,w.R)(this.unSubs[0]),(0,b.U)(Ri=>(this.logger.info(Ri),this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:L.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,ui.jW)({payload:"Password Reset Successful!"})),this.SetToken(Ri.token),{type:L.pg.RESET_PASSWORD_RES,payload:Ri.token})),(0,A.K)(Ri=>(this.handleErrorWithAlert("ResetPassword",L.m6.NO_SPINNER,"Password Reset Failed!",D.NZ.AUTHENTICATE_API+"/reset",Ri),(0,f.of)({type:L.pg.VOID})))))))),this.setSelectedNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.SET_SELECTED_NODE),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:Ai.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:L.Bn.INITIATED}})),this.httpClient.get(D.NZ.CONF_API+"/updateSelNode/"+Ai.payload.currentLnNode.index+"/"+Ai.payload.prevLnNodeIndex).pipe((0,b.U)(Ri=>(this.logger.info(Ri),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:L.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Ai.payload.uiMessage})),this.initializeNode(Ai.payload.currentLnNode,Ai.payload.isInitialSetup),{type:L.pg.VOID})),(0,A.K)(Ri=>(this.handleErrorWithAlert("UpdateSelNode",Ai.payload.uiMessage,"Update Selected Node Failed!",D.NZ.CONF_API+"/updateSelNode",Ri),(0,f.of)({type:L.pg.VOID})))))))),this.fetchFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.FETCH_FILE),(0,h.z)(Ai=>{this.store.dispatch((0,ui.ac)({payload:L.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:L.Bn.INITIATED}}));const Ri="?channel="+Ai.payload.channelPoint+(Ai.payload.path?"&path="+Ai.payload.path:"");return this.httpClient.get(D.NZ.CONF_API+"/file"+Ri).pipe((0,b.U)(cn=>(this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:L.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:L.m6.DOWNLOAD_BACKUP_FILE})),{type:L.pg.SHOW_FILE,payload:cn})),(0,A.K)(cn=>(this.handleErrorWithAlert("fetchFile",L.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",D.NZ.CONF_API+"/file"+Ri,{status:this.commonService.extractErrorNumber(cn),error:{error:this.commonService.extractErrorCode(cn)}}),(0,f.of)({type:L.pg.VOID}))))}))),this.showFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.SHOW_FILE),(0,b.U)(Ai=>Ai.payload)),{dispatch:!1})}initializeNode(zt,si){this.logger.info("Initializing node from RTL Effects.");const Pt=si?"":"HOME";let mi={};if(mi=zt.settings.fiatConversion&&zt.settings.currencyUnit?{userPersona:zt.settings.userPersona,channelBackupPath:zt.settings.channelBackupPath,selCurrencyUnit:zt.settings.currencyUnit,currencyUnits:[...L.uA,zt.settings.currencyUnit],fiatConversion:zt.settings.fiatConversion,lnImplementation:zt.lnImplementation,swapServerUrl:zt.settings.swapServerUrl,boltzServerUrl:zt.settings.boltzServerUrl,enableOffers:zt.settings.enableOffers}:{userPersona:zt.settings.userPersona,channelBackupPath:zt.settings.channelBackupPath,selCurrencyUnit:zt.settings.currencyUnit,currencyUnits:L.uA,fiatConversion:zt.settings.fiatConversion,lnImplementation:zt.lnImplementation,swapServerUrl:zt.settings.swapServerUrl,boltzServerUrl:zt.settings.boltzServerUrl,enableOffers:zt.settings.enableOffers},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,ui.vI)({payload:zt})),this.store.dispatch((0,je.Ll)({payload:mi})),this.store.dispatch((0,Ct.xH)({payload:mi})),this.store.dispatch((0,ie.Fd)({payload:mi})),this.sessionService.getItem("token")){const ti=zt.lnImplementation?zt.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(ti);const vi=D.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":D.T5;switch(this.wsService.connectWebSocket(vi.replace(/^http/,"ws")+D.NZ.Web_SOCKET_API,zt.index.toString()),ti){case"CLN":this.store.dispatch((0,Ct.CN)({payload:{loadPage:Pt}}));break;case"ECL":this.store.dispatch((0,ie.iz)({payload:{loadPage:Pt}}));break;default:this.store.dispatch((0,je.sQ)({payload:{loadPage:Pt}}))}}}SetToken(zt){zt?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",zt)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(zt,si){this.logger.info("Successfully Authorized!"),this.SetToken(si.token),this.sessionService.setItem("defaultPassword",zt),zt?(this.store.dispatch((0,ui.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,ui.ey)())}handleErrorWithoutAlert(zt,si,Pt){this.logger.error("ERROR IN: "+zt+"\n"+JSON.stringify(Pt)),401===Pt.status&&"Login"!==zt?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,ui.uO)({payload:si})),this.store.dispatch((0,ui.qi)({payload:{action:zt,status:L.Bn.ERROR,statusCode:Pt.status?Pt.status.toString():"",message:this.commonService.extractErrorMessage(Pt)}})))}handleErrorWithAlert(zt,si,Pt,mi,ti){if(this.logger.error(ti),0===ti.status&&ti.statusText&&"Unknown Error"===ti.statusText&&(ti={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===ti.status&&"Login"!==zt)this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,ui.uO)({payload:si}));const vi=this.commonService.extractErrorMessage(ti);this.store.dispatch((0,ui.qR)({payload:{data:{type:"ERROR",alertTitle:Pt,message:{code:ti.status?ti.status:"Unknown Error",message:vi,URL:mi},component:tn.H}}})),this.store.dispatch((0,ui.qi)({payload:{action:zt,status:L.Bn.ERROR,statusCode:ti.status?ti.status.toString():"",message:vi,URL:mi}}))}}ngOnDestroy(){this.unSubs.forEach(zt=>{zt.next(null),zt.complete()})}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(S.LFG(t.eX),S.LFG(Mt.eN),S.LFG(xt.yh),S.LFG(ne.mQ),S.LFG(Vt.d),S.LFG(Mi.m),S.LFG(de.v),S.LFG(Ei.D),S.LFG(k.uw),S.LFG(X.ux),S.LFG(en.F0))},Kt.\u0275prov=S.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})()},8377:(Fe,Y,p)=>{"use strict";p.d(Y,{R4:()=>b,Sr:()=>P,Yj:()=>a,dT:()=>M,gW:()=>h,ul:()=>d});var t=p(5620);const e=(0,t.ZF)("root"),M=((0,t.P1)(e,A=>A.apiURL),(0,t.P1)(e,A=>A.selNode)),a=(0,t.P1)(e,A=>A.appConfig),b=(0,t.P1)(e,A=>A.nodeData),d=(0,t.P1)(e,A=>A.apisCallStatus.Login),P=(0,t.P1)(e,A=>A.apisCallStatus.IsAuthorized),h=(0,t.P1)(e,A=>({nodeDate:A.nodeData,selNode:A.selNode}))},2340:(Fe,Y,p)=>{"use strict";p.d(Y,{NZ:()=>e,T5:()=>t,q4:()=>f});const t="./api",e={production:!0,isDebugMode:!1,AUTHENTICATE_API:t+"/authenticate",CONF_API:t+"/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",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},f="0.13.0-beta"},4886:(Fe,Y,p)=>{"use strict";var t=p(2313),e=p(5e3),f=p(6360),M=p(8138),a=p(5113),b=p(5620),d=p(6642),P=p(9565),h=p(7579),A=p(6451),w=p(4968),D=p(457),L=p(4986),k=p(2805);function S(K=0,Ve=L.z){return K<0&&(K=0),(0,k.H)(K,K,Ve)}var U=p(9646),Z=p(727),j=p(4482),ne=p(5403),X=p(8737),de=p(3269),ee=p(9672),ce=p(9300),J=p(8505),me=p(3900),x=p(2722),i=p(8746),r=p(1884),u=p(4004);class c{}let _=(()=>{class K{constructor(H,_e){this._ngZone=_e,this.timerStart$=new h.x,this.idleDetected$=new h.x,this.timeout$=new h.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,H&&this.setConfig(H)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,A.T)((0,w.R)(window,"mousemove"),(0,w.R)(window,"resize"),(0,w.R)(document,"keydown"))),this.idle$=(0,D.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function te(K,...Ve){var H,_e;const pt=null!==(H=(0,de.yG)(Ve))&&void 0!==H?H:L.z,Ci=null!==(_e=Ve[0])&&void 0!==_e?_e:null,xn=Ve[1]||1/0;return(0,j.e)((_r,Un)=>{let ea=[],hs=!1;const ar=Rs=>{const{buffer:W1,subs:ho}=Rs;ho.unsubscribe(),(0,X.P)(ea,Rs),Un.next(W1),hs&&sa()},sa=()=>{if(ea){const Rs=new Z.w0;Un.add(Rs);const ho={buffer:[],subs:Rs};ea.push(ho),(0,ee.f)(Rs,pt,()=>ar(ho),K)}};null!==Ci&&Ci>=0?(0,ee.f)(Un,pt,sa,Ci,!0):hs=!0,sa();const vs=(0,ne.x)(Un,Rs=>{const W1=ea.slice();for(const ho of W1){const{buffer:s3}=ho;s3.push(Rs),xn<=s3.length&&ar(ho)}},()=>{for(;null==ea?void 0:ea.length;)Un.next(ea.shift().buffer);null==vs||vs.unsubscribe(),Un.complete(),Un.unsubscribe()},void 0,()=>ea=null);_r.subscribe(vs)})}(this.idleSensitivityMillisec),(0,ce.h)(H=>!H.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,J.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,me.w)(()=>this._ngZone.runOutsideAngular(()=>S(1e3).pipe((0,x.R)((0,A.T)(this.activityEvents$,(0,k.H)(this.idleMillisec).pipe((0,J.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,i.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)(H=>H?this.timer$:(0,U.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,ce.h)(H=>!!H),(0,J.b)(()=>this.isTimeout=!0),(0,u.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(H){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(H):console.error("Call stopWatching() before set config values")}setConfig(H){H.idle&&(this.idleMillisec=1e3*H.idle),H.ping&&(this.pingMillisec=1e3*H.ping),H.idleSensitivity&&(this.idleSensitivityMillisec=1e3*H.idleSensitivity),H.timeout&&(this.timeout=H.timeout)}setCustomActivityEvents(H){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=H:console.error("Call stopWatching() before set custom activity events")}setupTimer(H){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,U.of)(()=>new Date).pipe((0,u.U)(_e=>_e()),(0,me.w)(_e=>S(1e3).pipe((0,u.U)(()=>Math.round(((new Date).valueOf()-_e.valueOf())/1e3)),(0,J.b)(pt=>{pt>=H&&this.timeout$.next(!0)}))))})}setupPing(H){this.ping$=S(H).pipe((0,ce.h)(()=>!this.isTimeout))}}return K.\u0275fac=function(H){return new(H||K)(e.LFG(c,8),e.LFG(e.R0b))},K.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),E=(()=>{class K{static forRoot(H){return{ngModule:K,providers:[{provide:c,useValue:H}]}}}return K.\u0275fac=function(H){return new(H||K)},K.\u0275mod=e.oAB({type:K}),K.\u0275inj=e.cJS({imports:[[]]}),K})();var I=p(1402),v=p(801),n=p(8377),C=p(7093),B=p(9444),N=p(9224),z=p(3251),oe=p(9808);const ge=function(){return{initial:!1}};function be(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[1].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[1].link),e.Q6J("active",H.activeLink===H.links[1].link)("state",e.DdM(4,ge)),e.xp6(1),e.Oqu(H.links[1].name)}}function Re(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[2].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[2].link),e.Q6J("active",H.activeLink===H.links[2].link),e.xp6(1),e.Oqu(H.links[2].name)}}let we=(()=>{class K{constructor(H,_e){this.store=H,this.router=_e,this.faUserCog=v.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof I.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(_e=>{this.appConfig=_e}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[2])).subscribe(_e=>{this.showBitcoind=!1,this.selNode=_e,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(I.F0))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Settings"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return _e.activeLink=_e.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,be,2,5,"div",7),e.YNc(11,Re,2,3,"div",8),e.qZA(),e.TgZ(12,"div",9),e._UZ(13,"router-outlet"),e.qZA()()()()),2&H&&(e.xp6(1),e.Q6J("icon",_e.faUserCog),e.xp6(7),e.s9C("routerLink",_e.links[0].link),e.Q6J("active",_e.activeLink===_e.links[0].link),e.xp6(1),e.Oqu(_e.links[0].name),e.xp6(1),e.Q6J("ngIf",!+_e.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",_e.showBitcoind))},directives:[C.xw,C.Wh,B.BN,N.a8,N.dn,z.BU,z.Nj,I.rH,oe.O5,C.yH,I.lC],styles:[""]}),K})();var Q=p(7731),Ge=p(7861),ve=p(5043),F=p(8129),De=p(3075),lt=p(7322),Ie=p(4107),Ae=p(3390),se=p(508),Te=p(7423);function ye(K,Ve){if(1&K&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.Q6J("value",H.index),e.xp6(1),e.AsE(" ",H.lnNode," (",H.lnImplementation,") ")}}function W(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw().appConfig.defaultNodeIndex=pt}),e.YNc(14,ye,2,3,"mat-option",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"div",10)(17,"button",14),e.NdJ("click",function(){return e.CHM(H),e.oxw().onResetSettings()}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",15),e.NdJ("click",function(){return e.CHM(H),e.oxw().onUpdateSettings()}),e._uU(20,"Update"),e.qZA()()()()()}if(2&K){const H=e.oxw();e.xp6(3),e.Q6J("icon",H.faWindowRestore),e.xp6(5),e.Q6J("icon",H.faInfoCircle),e.xp6(5),e.Q6J("ngModel",H.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",H.appConfig.nodes)}}let $=(()=>{class K{constructor(H,_e){this.logger=H,this.store=_e,this.faInfoCircle=v.sqG,this.faWindowRestore=v.wyP,this.faPlus=v.r8p,this.previousDefaultNode=0,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(H)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Ge.zQ)({payload:{uiMessage:Q.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:+this.appConfig.nodes[0].index}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0),e.YNc(1,W,21,4,"form",1),e.qZA()),2&H&&(e.xp6(1),e.Q6J("ngIf",_e.appConfig.nodes&&_e.appConfig.nodes.length&&_e.appConfig.nodes.length>0))},directives:[C.xw,C.yH,F.$V,oe.O5,De._Y,De.JL,De.F,C.Wh,B.BN,lt.KE,Ie.gD,Ae.h,De.JJ,De.On,oe.sg,se.ey,Te.lW],styles:[""]}),K})();var ue=p(8012),Ce=p(5698),Le=p(8966),ct=p(5768),ut=p(3093),Dt=p(7261),di=p(5615),Yt=p(7531),Gt=p(159),ui=p(6895);const xt=["stepper"];function Nt(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw();e.Oqu(H.passwordFormLabel)}}function gt(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function et(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.Oqu(H.secretFormLabel)}}function vt(K,Ve){if(1&K&&e._UZ(0,"qr-code",32),2&K){const H=e.oxw(2);e.Q6J("value",H.otpauth)("size",180)("errorCorrectionLevel","L")}}function $t(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function jt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",21),e.YNc(2,et,1,1,"ng-template",22),e.TgZ(3,"div",23),e.YNc(4,vt,1,3,"qr-code",24),e.qZA(),e.TgZ(5,"div",25),e._UZ(6,"fa-icon",26),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",27)(10,"mat-form-field",1),e._UZ(11,"input",28),e.TgZ(12,"fa-icon",29),e.NdJ("copied",function(pt){return e.CHM(H),e.oxw().onCopySecret(pt)}),e.qZA(),e.YNc(13,$t,2,0,"mat-error",14),e.qZA()(),e.TgZ(14,"div",30)(15,"button",31),e._uU(16,"Next"),e.qZA()()()()}if(2&K){const H=e.oxw();e.Q6J("stepControl",H.secretFormGroup)("editable",H.flgEditable),e.xp6(1),e.Q6J("formGroup",H.secretFormGroup),e.xp6(3),e.Q6J("ngIf",H.otpauth),e.xp6(2),e.Q6J("icon",H.faInfoCircle),e.xp6(6),e.Q6J("icon",H.faCopy)("payload",null==H.secretFormGroup||null==H.secretFormGroup.controls||null==H.secretFormGroup.controls.secret?null:H.secretFormGroup.controls.secret.value),e.xp6(1),e.Q6J("ngIf",null==H.secretFormGroup||null==H.secretFormGroup.controls||null==H.secretFormGroup.controls.secret||null==H.secretFormGroup.controls.secret.errors?null:H.secretFormGroup.controls.secret.errors.required)}}function Pe(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.Oqu(H.tokenFormLabel)}}function Oe(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function le(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function xe(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),e._UZ(3,"input",36),e.YNc(4,Oe,2,0,"mat-error",14),e.YNc(5,le,2,0,"mat-error",14),e.qZA()(),e.TgZ(6,"div",30)(7,"button",37),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onVerifyToken()}),e._uU(8),e.qZA()()()}if(2&K){const H=e.oxw(2);e.xp6(4),e.Q6J("ngIf",null==H.tokenFormGroup||null==H.tokenFormGroup.controls||null==H.tokenFormGroup.controls.token||null==H.tokenFormGroup.controls.token.errors?null:H.tokenFormGroup.controls.token.errors.required),e.xp6(1),e.Q6J("ngIf",null==H.tokenFormGroup||null==H.tokenFormGroup.controls||null==H.tokenFormGroup.controls.token||null==H.tokenFormGroup.controls.token.errors?null:H.tokenFormGroup.controls.token.errors.notValid),e.xp6(3),e.Oqu(null!=H.tokenFormGroup&&null!=H.tokenFormGroup.controls&&null!=H.tokenFormGroup.controls.token&&null!=H.tokenFormGroup.controls.token.errors&&H.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ht(K,Ve){1&K&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function ft(K,Ve){if(1&K&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Pe,1,1,"ng-template",12),e.YNc(3,xe,9,3,"div",35),e.YNc(4,ht,3,0,"div",14),e.qZA()()),2&K){const H=e.oxw();e.Q6J("stepControl",H.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",H.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!H.flgValidated||!H.isTokenValid),e.xp6(1),e.Q6J("ngIf",H.flgValidated&&H.isTokenValid)}}function Ht(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.Oqu(H.disableFormLabel)}}function it(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",7)(1,"div",38),e._UZ(2,"fa-icon",26),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",30)(6,"button",37),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onVerifyToken()}),e._uU(7,"Disable"),e.qZA()()()}if(2&K){const H=e.oxw(2);e.xp6(2),e.Q6J("icon",H.faExclamationTriangle)}}function Ne(K,Ve){1&K&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function tt(K,Ve){if(1&K&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Ht,1,1,"ng-template",12),e.YNc(3,it,8,1,"div",35),e.YNc(4,Ne,3,0,"div",14),e.qZA()()),2&K){const H=e.oxw();e.Q6J("stepControl",H.disableFormGroup),e.xp6(1),e.Q6J("formGroup",H.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!H.flgValidated||!H.isTokenValid),e.xp6(1),e.Q6J("ngIf",H.flgValidated&&H.isTokenValid)}}let Je=(()=>{class K{constructor(H,_e,pt,Ci,xn,_r){this.dialogRef=H,this.data=_e,this.store=pt,this.formBuilder=Ci,this.rtlEffects=xn,this.snackBar=_r,this.faExclamationTriangle=v.eHv,this.faCopy=v.kZ_,this.faInfoCircle=v.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",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:["",[De.kI.required]],password:["",[De.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},De.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",De.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new h.x,new h.x]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},De.kI.required]})}generateSecret(){const H=ct.authenticator.generateSecret();return this.otpauth=ct.authenticator.keyuri("","Ride The Lightning (RTL)",H),H}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Ge.QO)({payload:ue(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Ce.q)(1)).subscribe(H=>{"ERROR"!==H?(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(H){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch((0,Ge.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=ct.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,Ge.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(H){switch(H.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}H.selectedIndex{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(Le.so),e.Y36(Le.WI),e.Y36(b.yh),e.Y36(De.qu),e.Y36(ut.V),e.Y36(Dt.ux))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-two-factor-auth"]],viewQuery:function(H,_e){if(1&H&&e.Gf(xt,5),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.stepper=pt.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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Setup Two Factor Authentication"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(Ci){return _e.stepSelectionChanged(Ci)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,Nt,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",1),e._UZ(17,"input",13),e.YNc(18,gt,2,0,"mat-error",14),e.qZA()(),e.TgZ(19,"div",15)(20,"button",16),e.NdJ("click",function(){return _e.onAuthenticate()}),e._uU(21,"Confirm"),e.qZA()()()(),e.YNc(22,jt,17,8,"mat-step",17),e.YNc(23,ft,5,4,"mat-step",18),e.YNc(24,tt,5,4,"mat-step",18),e.qZA(),e.TgZ(25,"div",19)(26,"button",20),e._uU(27),e.qZA()()()()()()),2&H&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",_e.passwordFormGroup)("editable",_e.flgEditable),e.xp6(1),e.Q6J("formGroup",_e.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==_e.passwordFormGroup||null==_e.passwordFormGroup.controls||null==_e.passwordFormGroup.controls.password||null==_e.passwordFormGroup.controls.password.errors?null:_e.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!_e.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!_e.showDisableStepper),e.xp6(1),e.Q6J("ngIf",_e.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(_e.flgValidated&&_e.isTokenValid?"Close":"Cancel"))},directives:[C.xw,C.yH,N.dk,C.Wh,Te.lW,Le.ZT,N.dn,di.Vq,di.C0,De._Y,De.JL,De.sg,di.VY,lt.KE,Yt.Nt,De.Fj,Ae.h,De.JJ,De.u,De.Q7,oe.O5,lt.TO,Gt.uU,B.BN,lt.R9,ui.y,di.Ic],styles:[""]}),K})();var Se=p(5986),Ue=p(4834);const rt=["authForm"];function at(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function yt(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.errorMsg)}}function gi(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.errorConfirmMsg)}}function Qt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"form",10,11)(2,"div",12),e._UZ(3,"fa-icon",4),e.TgZ(4,"span",5),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"input",13),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw().currPassword=pt}),e.qZA(),e.YNc(8,at,2,0,"mat-error",14),e.qZA(),e.TgZ(9,"mat-form-field")(10,"input",15),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw().newPassword=pt}),e.qZA(),e.YNc(11,yt,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field")(13,"input",16),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw().confirmPassword=pt}),e.qZA(),e.YNc(14,gi,2,1,"mat-error",14),e.qZA(),e.TgZ(15,"div",17)(16,"button",18),e.NdJ("click",function(){return e.CHM(H),e.oxw().onResetPassword()}),e._uU(17,"Reset"),e.qZA(),e.TgZ(18,"button",19),e.NdJ("click",function(){return e.CHM(H),e.oxw().onChangePassword()}),e._uU(19,"Change Password"),e.qZA()(),e.TgZ(20,"div",20),e._UZ(21,"mat-divider",21),e.qZA()()}if(2&K){const H=e.oxw();e.xp6(3),e.Q6J("icon",H.faLock),e.xp6(4),e.Q6J("ngModel",H.currPassword),e.xp6(1),e.Q6J("ngIf",!H.currPassword),e.xp6(2),e.Q6J("ngModel",H.newPassword),e.xp6(1),e.Q6J("ngIf",H.matchOldAndNewPasswords()),e.xp6(2),e.Q6J("ngModel",H.confirmPassword),e.xp6(1),e.Q6J("ngIf",H.matchNewPasswords()),e.xp6(7),e.Q6J("inset",!0)}}let Jt=(()=>{class K{constructor(H,_e,pt,Ci,xn){this.logger=H,this.store=_e,this.actions=pt,this.router=Ci,this.sessionService=xn,this.faInfoCircle=v.sqG,this.faUserLock=v.FJU,this.faUserClock=v.hnx,this.faLock=v.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.logger.info(this.appConfig)}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(H=>{this.selNode=H}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ce.h)(H=>H.type===Q.pg.RESET_PASSWORD_RES)).subscribe(H=>{if(Q.kO.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation.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||Q.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Ge.c0)({payload:{currPassword:ue(this.currPassword).toString(),newPassword:ue(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let H=!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.",H=!0):Q.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=Q.kO.reduce((_e,pt,Ci)=>Ci{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh),e.Y36(d.eX),e.Y36(I.F0),e.Y36(Se.m))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-auth-settings"]],viewQuery:function(H,_e){if(1&H&&e.Gf(rt,5),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.form=pt.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(H,_e){1&H&&(e.TgZ(0,"div",0),e.YNc(1,Qt,22,8,"form",1),e.TgZ(2,"div",2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Two Factor Authentication"),e.qZA()(),e.TgZ(7,"div",6),e._UZ(8,"fa-icon",7),e.TgZ(9,"span"),e._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return _e.on2FAuth()}),e._uU(13),e.qZA()()()()),2&H&&(e.xp6(1),e.Q6J("ngIf",null==_e.appConfig?null:_e.appConfig.allowPasswordUpdate),e.xp6(3),e.Q6J("icon",_e.faUserClock),e.xp6(4),e.Q6J("icon",_e.faInfoCircle),e.xp6(5),e.Oqu(_e.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[C.xw,C.yH,C.Wh,oe.O5,De._Y,De.JL,De.F,B.BN,lt.KE,Yt.Nt,De.Fj,Ae.h,De.Q7,De.JJ,De.On,lt.TO,Te.lW,Ue.d],styles:[""]}),K})();var Xi=p(4623);function fi(K,Ve){1&K&&e._UZ(0,"mat-divider",7)}function ai(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,fi,1,0,"mat-divider",6),e.qZA()),2&K){const H=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,H.configData)),e.xp6(2),e.Q6J("ngIf",""!==H.configData)}}function tn(K,Ve){if(1&K&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H)}}function Wi(K,Ve){if(1&K&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H)}}function Gi(K,Ve){1&K&&e._UZ(0,"mat-divider",15),2&K&&e.Q6J("inset",!0)}function Yi(K,Ve){if(1&K&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,tn,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Wi,2,1,"h4",12),e.qZA(),e.YNc(5,Gi,1,1,"mat-divider",13),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(2),e.Q6J("ngIf",H.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",H.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",H.indexOf("[")<0)}}function ze(K,Ve){if(1&K&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,Yi,6,3,"mat-list-item",9),e.qZA()()),2&K){const H=e.oxw();e.xp6(2),e.Q6J("ngForOf",H.configData)}}let Lt=(()=>{class K{constructor(H,_e,pt){this.store=H,this.rtlEffects=_e,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=v.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ce.h)(H=>H instanceof I.Av)).subscribe({next:H=>{this.selectedNodeType=H.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Ge.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(H=>{const _e=H.data;this.fileFormat=H.format,this.configData=""===_e||!_e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==_e&&_e&&"JSON"===this.fileFormat?_e:"":_e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(ut.V),e.Y36(I.F0))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,ai,5,4,"div",2),e.YNc(3,ze,3,1,"div",3),e.qZA()()),2&H&&(e.xp6(2),e.Q6J("ngIf",""!==_e.configData&&"JSON"===_e.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==_e.configData&&("INI"===_e.fileFormat||"HOCON"===_e.fileFormat)))},directives:[C.xw,C.yH,C.Wh,oe.O5,Ue.d,Xi.i$,oe.sg,Xi.Tg,N.$j],pipes:[oe.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})();const fe=function(){return{initial:!1}};function je(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[1].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[1].link),e.Q6J("active",H.activeLink===H.links[1].link)("state",e.DdM(4,fe)),e.xp6(1),e.Oqu(H.links[1].name)}}function Ct(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[2].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[2].link),e.Q6J("active",H.activeLink===H.links[2].link),e.xp6(1),e.Oqu(H.links[2].name)}}function ie(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[3].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[3].link),e.Q6J("active",H.activeLink===H.links[3].link),e.xp6(1),e.Oqu(H.links[3].name)}}let qe=(()=>{class K{constructor(H,_e){this.store=H,this.router=_e,this.faTools=v.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 h.x,new h.x,new h.x]}ngOnInit(){const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof I.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(_e=>{switch(this.showLnConfig=!1,this.selNode=_e,this.selNode.lnImplementation.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(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(I.F0))},K.\u0275cmp=e.Xpm({type:K,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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(H,_e){1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Node Config"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return _e.activeLink=_e.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,je,2,5,"div",7),e.YNc(11,Ct,2,3,"div",8),e.YNc(12,ie,2,3,"div",8),e.qZA(),e.TgZ(13,"div",9),e._UZ(14,"router-outlet"),e.qZA()()()()),2&H&&(e.xp6(1),e.Q6J("icon",_e.faTools),e.xp6(7),e.s9C("routerLink",_e.links[0].link),e.Q6J("active",_e.activeLink===_e.links[0].link),e.xp6(1),e.Oqu(_e.links[0].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==_e.selNode||null==_e.selNode.lnImplementation?null:_e.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==_e.selNode||null==_e.selNode.lnImplementation?null:_e.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",_e.showLnConfig))},directives:[C.xw,C.Wh,B.BN,N.a8,N.dn,z.BU,z.Nj,I.rH,oe.O5,C.yH,I.lC],styles:[""]}),K})();function Mt(K,Ve){1&K&&e._UZ(0,"mat-divider",7)}function Vt(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,Mt,1,0,"mat-divider",6),e.qZA()),2&K){const H=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,H.configData)),e.xp6(2),e.Q6J("ngIf",""!==H.configData)}}function Mi(K,Ve){if(1&K&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H)}}function Ei(K,Ve){if(1&K&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H)}}function en(K,Ve){1&K&&e._UZ(0,"mat-divider",15),2&K&&e.Q6J("inset",!0)}function ji(K,Ve){if(1&K&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Mi,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Ei,2,1,"h4",12),e.qZA(),e.YNc(5,en,1,1,"mat-divider",13),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(2),e.Q6J("ngIf",H.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",H.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",H.indexOf("[")<0)}}function Kt(K,Ve){if(1&K&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,ji,6,3,"mat-list-item",9),e.qZA()()),2&K){const H=e.oxw();e.xp6(2),e.Q6J("ngForOf",H.configData)}}let Oi=(()=>{class K{constructor(H,_e,pt){this.store=H,this.rtlEffects=_e,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=v.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ce.h)(H=>H instanceof I.Av)).subscribe({next:H=>{this.selectedNodeType=H.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Ge.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(H=>{const _e=H.data;this.fileFormat=H.format,this.configData=""===_e||!_e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==_e&&_e&&"JSON"===this.fileFormat?_e:"":_e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(ut.V),e.Y36(I.F0))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Vt,5,4,"div",2),e.YNc(3,Kt,3,1,"div",3),e.qZA()()),2&H&&(e.xp6(2),e.Q6J("ngIf",""!==_e.configData&&"JSON"===_e.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==_e.configData&&("INI"===_e.fileFormat||"HOCON"===_e.fileFormat)))},directives:[C.xw,C.yH,C.Wh,oe.O5,Ue.d,Xi.i$,oe.sg,Xi.Tg,N.$j],pipes:[oe.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})();var zt=p(2994),si=p(429),Pt=p(6523),mi=p(62),ti=p(2368),vi=p(9814),Bi=p(3322);function Fi(K,Ve){if(1&K&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.Q6J("value",H.id),e.xp6(1),e.hij(" ",H.id," ")}}function pn(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function Fn(K,Ve){if(1&K&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.Q6J("value",H)("checked",_e.selNode.settings.userPersona===H),e.xp6(1),e.hij(" ",e.lcZ(2,3,H)," ")}}const Dn=function(K){return{"mr-4":K}};function Ai(K,Ve){if(1&K&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.Q6J("value",H)("ngClass",e.VKq(3,Dn,_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM)),e.xp6(1),e.hij("",H.name," ")}}const Ri=function(K){return{skin:!0,"selected-color":K}};function cn(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw().changeThemeColor(Ci.id)}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&K){const H=Ve.$implicit,_e=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,H.id)),e.Q6J("ngClass",e.VKq(6,Ri,_e.selectedThemeColor===H.id)),e.xp6(2),e.hij(" ",H.name," ")}}let pr=(()=>{class K{constructor(H,_e,pt){this.logger=H,this.commonService=_e,this.store=pt,this.faExclamationTriangle=v.eHv,this.faMoneyBillAlt=v.co4,this.faPaintBrush=v.XsY,this.faInfoCircle=v.sqG,this.userPersonas=[Q.ol.OPERATOR,Q.ol.MERCHANT],this.currencyUnits=Q.Er,this.themeModes=Q.wZ.modes,this.themeColors=Q.wZ.themes,this.selectedThemeMode=Q.wZ.modes[0],this.selectedThemeColor=Q.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Q.cu,this.unSubs=[new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.selectedThemeMode=this.themeModes.find(_e=>this.selNode.settings.themeMode===_e.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(H)})}onCurrencyChange(H){this.selNode.settings.currencyUnits=[...Q.uA,H.value],this.store.dispatch((0,Pt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:H.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,si.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:H.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:H.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(H,_e){this.selNode.settings[H]=!this.selNode.settings[H]}changeThemeColor(H){this.selectedThemeColor=H,this.selNode.settings.themeColor=H}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,Ge.zQ)({payload:{uiMessage:Q.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,Pt.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,si.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 H=this.selNode.index;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(_e=>_e.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Ge.fk)({payload:{uiMessage:Q.m6.NO_SPINNER,prevLnNodeIndex:+H,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Balance Display"),e.qZA()(),e.TgZ(7,"div",6)(8,"div",7),e._UZ(9,"fa-icon",8),e.TgZ(10,"span"),e._uU(11,"Fiat conversion calls "),e.TgZ(12,"strong")(13,"a",9),e._uU(14,"Blockchain.com"),e.qZA()(),e._uU(15," API to get conversion rates."),e.qZA()(),e.TgZ(16,"div",10)(17,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(Ci){return _e.selNode.settings.fiatConversion=Ci})("change",function(Ci){return _e.selNode.settings.currencyUnit=Ci.checked?_e.selNode.settings.currencyUnit:null}),e._uU(18,"Enable Fiat Conversion"),e.qZA(),e.TgZ(19,"mat-form-field")(20,"mat-select",12,13),e.NdJ("ngModelChange",function(Ci){return _e.selNode.settings.currencyUnit=Ci})("selectionChange",function(Ci){return _e.onCurrencyChange(Ci)}),e.YNc(22,Fi,2,2,"mat-option",14),e.qZA(),e.YNc(23,pn,2,0,"mat-error",15),e.qZA()()(),e.TgZ(24,"div",16)(25,"div",17)(26,"div",18),e._UZ(27,"fa-icon",4),e.TgZ(28,"span",5),e._uU(29,"Customization"),e.qZA()(),e.TgZ(30,"div",6)(31,"div",19)(32,"div",20),e._UZ(33,"fa-icon",8),e.TgZ(34,"span"),e._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(36,"div",21)(37,"h4"),e._uU(38,"Dashboard Layout"),e.qZA(),e.TgZ(39,"mat-radio-group",22),e.NdJ("ngModelChange",function(Ci){return _e.selNode.settings.userPersona=Ci}),e.YNc(40,Fn,3,5,"mat-radio-button",23),e.qZA()()(),e._UZ(41,"mat-divider",24),e.TgZ(42,"div",25)(43,"div",26)(44,"h4"),e._uU(45,"Mode"),e.qZA(),e.TgZ(46,"mat-radio-group",27),e.NdJ("ngModelChange",function(Ci){return _e.selectedThemeMode=Ci})("change",function(){return _e.chooseThemeMode()}),e.YNc(47,Ai,2,5,"mat-radio-button",28),e.qZA()()(),e._UZ(48,"mat-divider",24),e.TgZ(49,"div",25)(50,"div",29)(51,"h4"),e._uU(52,"Themes"),e.qZA(),e.TgZ(53,"div",30),e.YNc(54,cn,4,8,"span",31),e.qZA()()()()()()(),e.TgZ(55,"div",32)(56,"button",33),e.NdJ("click",function(){return _e.onResetSettings()}),e._uU(57,"Reset"),e.qZA(),e.TgZ(58,"button",34),e.NdJ("click",function(){return _e.onUpdateSettings()}),e._uU(59,"Update"),e.qZA()()()),2&H&&(e.xp6(4),e.Q6J("icon",_e.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",_e.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",_e.selNode.settings.fiatConversion),e.xp6(3),e.Q6J("ngModel",_e.selNode.settings.currencyUnit)("disabled",!_e.selNode.settings.fiatConversion)("required",_e.selNode.settings.fiatConversion),e.xp6(2),e.Q6J("ngForOf",_e.currencyUnits),e.xp6(1),e.Q6J("ngIf",_e.selNode.settings.fiatConversion&&!_e.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",_e.faPaintBrush),e.xp6(6),e.Q6J("icon",_e.faInfoCircle),e.xp6(6),e.Q6J("ngModel",_e.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",_e.userPersonas),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Q6J("ngModel",_e.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",_e.themeModes),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Q6J("ngForOf",_e.themeColors))},directives:[C.xw,C.yH,F.$V,De._Y,De.JL,De.F,C.Wh,B.BN,ti.Rr,De.JJ,De.On,lt.KE,Ie.gD,Ae.h,De.Q7,oe.sg,se.ey,oe.O5,lt.TO,vi.VQ,vi.U0,Ue.d,oe.mk,Bi.oO,Te.lW],pipes:[oe.rS,oe.i8],styles:[""]}),K})();const Br=function(){return{initial:!1}};let Jn=(()=>{class K{constructor(H){this.router=H,this.faLayerGroup=v.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof I.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeLink=pt?pt.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(I.F0))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-services-settings"]],decls:14,vars:9,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","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"]],template:function(H,_e){1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Services"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return _e.activeLink=_e.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",7),e.NdJ("click",function(){return _e.activeLink=_e.links[1].link}),e._uU(11),e.qZA()(),e.TgZ(12,"div",8),e._UZ(13,"router-outlet"),e.qZA()()()()),2&H&&(e.xp6(1),e.Q6J("icon",_e.faLayerGroup),e.xp6(7),e.s9C("routerLink",_e.links[0].link),e.Q6J("active",_e.activeLink===_e.links[0].link),e.xp6(1),e.Oqu(_e.links[0].name),e.xp6(1),e.s9C("routerLink",_e.links[1].link),e.Q6J("active",_e.activeLink===_e.links[1].link)("state",e.DdM(8,Br)),e.xp6(1),e.Oqu(_e.links[1].name))},directives:[C.xw,C.Wh,B.BN,N.a8,N.dn,z.BU,z.Nj,I.rH,C.yH,I.lC],styles:[""]}),K})();const mr=["form"];function Pr(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function Nr(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function ca(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}let ga=(()=>{class K{constructor(H,_e){this.logger=H,this.store=_e,this.faInfoCircle=v.sqG,this.enableLoop=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableLoop=H.settings.swapServerUrl&&""!==H.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(H)})}onEnableServiceChanged(H){this.enableLoop=H.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,Ge.jS)({payload:{uiMessage:Q.m6.UPDATE_LOOP_SETTINGS,service:Q.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,Pt.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,si.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(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-loop-service-settings"]],viewQuery:function(H,_e){if(1&H&&e.Gf(mr,7),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.form=pt.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(H,_e){if(1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"loopd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Ci){return _e.enableLoop=Ci})("change",function(Ci){return _e.onEnableServiceChanged(Ci)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(Ci){return _e.selNode.settings.swapServerUrl=Ci}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),e.qZA(),e.YNc(22,Pr,2,0,"mat-error",11),e.YNc(23,Nr,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(Ci){return _e.selNode.authentication.swapMacaroonPath=Ci}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(28,ca,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return _e.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return _e.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&H){const pt=e.MAs(19);e.xp6(2),e.Q6J("icon",_e.faInfoCircle),e.xp6(13),e.Q6J("ngModel",_e.enableLoop),e.xp6(3),e.Q6J("ngModel",_e.selNode.settings.swapServerUrl)("required",_e.enableLoop)("disabled",!_e.enableLoop),e.xp6(4),e.Q6J("ngIf",!_e.selNode.settings.swapServerUrl&&_e.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&_e.enableLoop),e.xp6(2),e.Q6J("ngModel",_e.selNode.authentication.swapMacaroonPath)("required",_e.enableLoop)("disabled",!_e.enableLoop),e.xp6(3),e.Q6J("ngIf",!_e.selNode.authentication.swapMacaroonPath&&_e.enableLoop)}},directives:[C.xw,C.yH,F.$V,B.BN,De._Y,De.JL,De.F,C.Wh,ti.Rr,Ae.h,De.JJ,De.On,lt.KE,Yt.Nt,De.Fj,De.Q7,lt.bx,oe.O5,lt.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})();const Ca=["form"];function Na(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function Ra(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function nr(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}let Qr=(()=>{class K{constructor(H,_e){this.logger=H,this.store=_e,this.faInfoCircle=v.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableBoltz=H.settings.boltzServerUrl&&""!==H.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(H)})}onEnableServiceChanged(H){this.enableBoltz=H.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,Ge.jS)({payload:{uiMessage:Q.m6.UPDATE_BOLTZ_SETTINGS,service:Q.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,Pt.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,si.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(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(H,_e){if(1&H&&e.Gf(Ca,7),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.form=pt.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(H,_e){if(1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"boltzd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Ci){return _e.enableBoltz=Ci})("change",function(Ci){return _e.onEnableServiceChanged(Ci)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(Ci){return _e.serverUrl=Ci}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),e.qZA(),e.YNc(22,Na,2,0,"mat-error",11),e.YNc(23,Ra,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(Ci){return _e.macaroonPath=Ci}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(28,nr,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return _e.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return _e.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&H){const pt=e.MAs(19);e.xp6(2),e.Q6J("icon",_e.faInfoCircle),e.xp6(13),e.Q6J("ngModel",_e.enableBoltz),e.xp6(3),e.Q6J("ngModel",_e.serverUrl)("required",_e.enableBoltz)("disabled",!_e.enableBoltz),e.xp6(4),e.Q6J("ngIf",(!_e.serverUrl||""===_e.serverUrl.trim())&&_e.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&_e.enableBoltz),e.xp6(2),e.Q6J("ngModel",_e.macaroonPath)("required",_e.enableBoltz)("disabled",!_e.enableBoltz),e.xp6(3),e.Q6J("ngIf",!_e.macaroonPath&&_e.enableBoltz)}},directives:[C.xw,C.yH,F.$V,B.BN,De._Y,De.JL,De.F,C.Wh,ti.Rr,Ae.h,De.JJ,De.On,lt.KE,Yt.Nt,De.Fj,De.Q7,lt.bx,oe.O5,lt.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})(),da=(()=>{class K{constructor(H,_e){this.store=H,this.router=_e,this.faLayerGroup=v.Krp,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof I.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(_e=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.selNode=_e,this.selNode.lnImplementation.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[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(I.F0))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-services"]],decls:1,vars:0,template:function(H,_e){1&H&&e._UZ(0,"router-outlet")},directives:[I.lC],styles:[""]}),K})();var Ha=p(8213),Ur=p(9107),Gr=p(6087),lr=p(4847),fn=p(2075),qr=p(5899);function Xn(K,Ve){1&K&&e._UZ(0,"mat-progress-bar",34)}function Za(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Initiation Time "),e.qZA())}function Zr(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.ALo(2,"date"),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,H.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function Ea(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Last Update Time "),e.qZA())}function Jr(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.ALo(2,"date"),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,H.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Dr(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," ID "),e.qZA())}function Rr(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.id)}}function Wr(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," ID (Bytes) "),e.qZA())}function gr(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.id_bytes)}}function Ir(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," State "),e.qZA())}function ua(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.xp6(1),e.Oqu(_e.LoopStateEnum[H.state])}}function _a(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," HTLC Address "),e.qZA())}function va(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.htlc_address)}}function $n(K,Ve){1&K&&(e.TgZ(0,"th",37),e._uU(1," Amount (Sats) "),e.qZA())}function Ta(K,Ve){if(1&K&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.amt))}}function Ia(K,Ve){1&K&&(e.TgZ(0,"th",37),e._uU(1," Cost Server (Sats) "),e.qZA())}function Kn(K,Ve){if(1&K&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.cost_server))}}function ra(K,Ve){1&K&&(e.TgZ(0,"th",37),e._uU(1," Cost Offchain (Sats) "),e.qZA())}function Hr(K,Ve){if(1&K&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.cost_offchain))}}function Sr(K,Ve){1&K&&(e.TgZ(0,"th",37),e._uU(1," Cost Onchain (Sats) "),e.qZA())}function Fr(K,Ve){if(1&K&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==H?null:H.cost_onchain)," ")}}function ya(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"th",39)(1,"div",40)(2,"mat-select",41),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",42),e.NdJ("click",function(){return e.CHM(H),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function Fa(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"td",43)(1,"button",44),e.NdJ("click",function(pt){const xn=e.CHM(H).$implicit;return e.oxw().onSwapClick(xn,pt)}),e._uU(2,"View Info"),e.qZA()()}}function Wn(K,Ve){if(1&K&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.emptyTableMessage)}}function Xe(K,Ve){if(1&K&&(e.TgZ(0,"td",45),e.YNc(1,Wn,2,1,"p",46),e.qZA()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=H.listSwaps&&H.listSwaps.data)||(null==H.listSwaps||null==H.listSwaps.data?null:H.listSwaps.data.length)<1)}}const St=function(K){return{"display-none":K}};function Ke(K,Ve){if(1&K&&e._UZ(0,"tr",47),2&K){const H=e.oxw();e.Q6J("ngClass",e.VKq(1,St,(null==H.listSwaps?null:H.listSwaps.data)&&(null==H.listSwaps||null==H.listSwaps.data?null:H.listSwaps.data.length)>0))}}function Ot(K,Ve){1&K&&e._UZ(0,"tr",48)}function ri(K,Ve){1&K&&e._UZ(0,"tr",49)}const Ti=function(K){return{"overflow-auto error-border":K,"overflow-auto":!0}},ki=function(){return["no_swap"]};let an=(()=>{class K{constructor(H,_e,pt,Ci){this.logger=H,this.commonService=_e,this.store=pt,this.loopService=Ci,this.selectedSwapType=Q.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=Q.Fq,this.faHistory=v.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=Q.IV,this.pageSizeOptions=Q.TJ,this.screenSize="",this.screenSizeEnum=Q.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===Q.cu.XS||this.screenSize===Q.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===Q.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(H){this.swapCaption=this.selectedSwapType===Q.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(H,_e){this.loopService.getSwap(H.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,x.R)(this.unSubs[2])).subscribe(pt=>{this.store.dispatch((0,Ge.qR)({payload:{data:{type:Q.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:Q.Fq[pt.state],title:"Status",width:50,type:Q.Gi.STRING},{key:"amt",value:pt.amt,title:"Amount (Sats)",width:50,type:Q.Gi.NUMBER}],[{key:"initiation_time",value:pt.initiation_time/1e9,title:"Initiation Time",width:50,type:Q.Gi.DATE_TIME},{key:"last_update_time",value:pt.last_update_time/1e9,title:"Last Update Time",width:50,type:Q.Gi.DATE_TIME}],[{key:"cost_server",value:pt.cost_server,title:"Server Cost (Sats)",width:33,type:Q.Gi.NUMBER},{key:"cost_offchain",value:pt.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Q.Gi.NUMBER},{key:"cost_onchain",value:pt.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Q.Gi.NUMBER}],[{key:"id_bytes",value:pt.id_bytes,title:"ID",width:100,type:Q.Gi.STRING}],[{key:"htlc_address",value:pt.htlc_address,title:"HTLC Address",width:100,type:Q.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new fn.by([...H]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(_e,pt)=>_e[pt]&&isNaN(_e[pt])?_e[pt].toLocaleLowerCase():_e[pt]?+_e[pt]:null,this.listSwaps.filterPredicate=(_e,pt)=>JSON.stringify(_e).toLowerCase().includes(pt),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===Q.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(b.yh),e.Y36(Ur.W))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-swaps"]],viewQuery:function(H,_e){if(1&H&&(e.Gf(lr.YE,5),e.Gf(Gr.NW,5)),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.sort=pt.first),e.iGM(pt=e.CRH())&&(_e.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Gr.ye,useValue:(0,Q.pt)("Swaps")}]),e.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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"mat-form-field",5)(7,"input",6),e.NdJ("keyup",function(){return _e.applyFilter()})("ngModelChange",function(Ci){return _e.selFilter=Ci}),e.qZA()()(),e.TgZ(8,"div",7)(9,"div",8),e.YNc(10,Xn,1,0,"mat-progress-bar",9),e.TgZ(11,"table",10,11),e.ynx(13,12),e.YNc(14,Za,2,0,"th",13),e.YNc(15,Zr,3,4,"td",14),e.BQk(),e.ynx(16,15),e.YNc(17,Ea,2,0,"th",13),e.YNc(18,Jr,3,4,"td",14),e.BQk(),e.ynx(19,16),e.YNc(20,Dr,2,0,"th",13),e.YNc(21,Rr,2,1,"td",14),e.BQk(),e.ynx(22,17),e.YNc(23,Wr,2,0,"th",13),e.YNc(24,gr,2,1,"td",14),e.BQk(),e.ynx(25,18),e.YNc(26,Ir,2,0,"th",13),e.YNc(27,ua,2,1,"td",14),e.BQk(),e.ynx(28,19),e.YNc(29,_a,2,0,"th",13),e.YNc(30,va,2,1,"td",14),e.BQk(),e.ynx(31,20),e.YNc(32,$n,2,0,"th",21),e.YNc(33,Ta,4,3,"td",14),e.BQk(),e.ynx(34,22),e.YNc(35,Ia,2,0,"th",21),e.YNc(36,Kn,4,3,"td",14),e.BQk(),e.ynx(37,23),e.YNc(38,ra,2,0,"th",21),e.YNc(39,Hr,4,3,"td",14),e.BQk(),e.ynx(40,24),e.YNc(41,Sr,2,0,"th",21),e.YNc(42,Fr,4,3,"td",14),e.BQk(),e.ynx(43,25),e.YNc(44,ya,6,0,"th",26),e.YNc(45,Fa,3,0,"td",27),e.BQk(),e.ynx(46,28),e.YNc(47,Xe,2,1,"td",29),e.BQk(),e.YNc(48,Ke,1,3,"tr",30),e.YNc(49,Ot,1,0,"tr",31),e.YNc(50,ri,1,0,"tr",32),e.qZA(),e._UZ(51,"mat-paginator",33),e.qZA()()()),2&H&&(e.xp6(3),e.Q6J("icon",_e.faHistory),e.xp6(2),e.hij("",_e.swapCaption," History"),e.xp6(2),e.Q6J("ngModel",_e.selFilter),e.xp6(3),e.Q6J("ngIf",!0===_e.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",_e.listSwaps)("ngClass",e.VKq(13,Ti,"error"===_e.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(15,ki)),e.xp6(1),e.Q6J("matHeaderRowDef",_e.displayedColumns)("matHeaderRowDefSticky",_e.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",_e.displayedColumns),e.xp6(1),e.Q6J("pageSize",_e.pageSize)("pageSizeOptions",_e.pageSizeOptions)("showFirstLastButtons",_e.screenSize!==_e.screenSizeEnum.XS))},directives:[C.xw,C.yH,C.Wh,B.BN,lt.KE,Yt.Nt,De.Fj,De.JJ,De.On,F.$V,oe.O5,qr.pW,fn.BZ,lr.YE,oe.mk,Bi.oO,fn.w1,fn.fO,fn.ge,lr.nU,fn.Dz,fn.ev,Ie.gD,Ie.$L,se.ey,Te.lW,fn.mD,fn.yh,fn.Ke,fn.Q2,fn.as,fn.XQ,fn.nj,fn.Gk,Gr.NW],pipes:[oe.uU,oe.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),K})();const It=function(K){return["../",K]};function hi(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw().onSelectedIndexChange(Ci)}),e._uU(1),e.qZA()}if(2&K){const H=Ve.$implicit,_e=e.oxw();e.Q6J("active",_e.activeTab.link===H.link)("routerLink",e.VKq(3,It,H.link)),e.xp6(1),e.Oqu(H.name)}}let mt=(()=>{class K{constructor(H,_e,pt){this.router=H,this.loopService=_e,this.store=pt,this.faInfinity=v.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Q.$I,this.selectedSwapType=Q.$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 h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.loopService.listSwaps();const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"loopin"===H.link?Q.$I.LOOP_IN:Q.$I.LOOP_OUT,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof I.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"loopin"===pt.link?Q.$I.LOOP_IN:Q.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,x.R)(this.unSubs[1])).subscribe({next:_e=>{this.flgLoading[0]=!1,this.storedSwaps=_e,this.filteredSwaps=this.storedSwaps.filter(pt=>pt.type===this.selectedSwapType)},error:_e=>{this.flgLoading[0]="error",this.emptyTableMessage=_e.message?_e.message:"No loop "+(this.selectedSwapType===Q.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){this.selectedSwapType="loopin"===H.link?Q.$I.LOOP_IN:Q.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(_e=>_e.type===this.selectedSwapType)}onLoop(H){H===Q.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,x.R)(this.unSubs[2])).subscribe({next:_e=>{this.store.dispatch((0,Ge.qR)({payload:{data:{minQuote:_e[0],maxQuote:_e[1],direction:H,component:Ha.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,x.R)(this.unSubs[3])).subscribe({next:_e=>{this.store.dispatch((0,Ge.qR)({payload:{data:{minQuote:_e[0],maxQuote:_e[1],direction:H,component:Ha.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(I.F0),e.Y36(Ur.W),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Loop"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,hi,2,5,"div",6),e.qZA(),e.TgZ(9,"div",7)(10,"button",8),e.NdJ("click",function(){return _e.onLoop(_e.selectedSwapType)}),e._uU(11),e.qZA()(),e._UZ(12,"rtl-swaps",9),e.qZA()()()),2&H&&(e.xp6(1),e.Q6J("icon",_e.faInfinity),e.xp6(7),e.Q6J("ngForOf",_e.links),e.xp6(3),e.hij("Start ",_e.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",_e.selectedSwapType)("swapsData",_e.filteredSwaps)("flgLoading",_e.flgLoading)("emptyTableMessage",_e.emptyTableMessage))},directives:[C.xw,C.Wh,B.BN,N.a8,N.dn,z.BU,oe.sg,z.Nj,I.rH,Te.lW,an,C.yH],styles:[""]}),K})();var Zt=p(7772),Hi=p(1135),Zi=p(2843),Ln=p(262),Qe=p(2340),We=p(1786);let He=(()=>{class K{constructor(H,_e,pt,Ci){this.httpClient=H,this.logger=_e,this.store=pt,this.commonService=Ci,this.swapUrl="",this.swaps={},this.swapsChanged=new Hi.X({}),this.unSubs=[new h.x,new h.x,new h.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Ge.ac)({payload:Q.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,x.R)(this.unSubs[0])).subscribe({next:H=>{this.store.dispatch((0,Ge.uO)({payload:Q.m6.GET_BOLTZ_SWAPS})),this.swaps=H,this.swapsChanged.next(this.swaps)},error:H=>this.swapsChanged.error(this.handleErrorWithAlert(Q.m6.GET_BOLTZ_SWAPS,this.swapUrl,H))})}swapInfo(H){return this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/swapInfo/"+H,this.httpClient.get(this.swapUrl).pipe((0,Ln.K)(_e=>(0,U.of)(this.handleErrorWithAlert(Q.m6.NO_SPINNER,this.swapUrl,_e))))}serviceInfo(){return this.store.dispatch((0,Ge.ac)({payload:Q.m6.GET_SERVICE_INFO})),this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,x.R)(this.unSubs[1]),(0,u.U)(H=>(this.store.dispatch((0,Ge.uO)({payload:Q.m6.GET_SERVICE_INFO})),H)),(0,Ln.K)(H=>(0,U.of)(this.handleErrorWithAlert(Q.m6.GET_SERVICE_INFO,this.swapUrl,H))))}swapOut(H,_e){const pt={amount:H,address:_e};return this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,pt).pipe((0,Ln.K)(Ci=>this.handleErrorWithoutAlert("Swap Out for Address: "+_e,Q.m6.NO_SPINNER,Ci)))}swapIn(H){const _e={amount:H};return this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,_e).pipe((0,Ln.K)(pt=>this.handleErrorWithoutAlert("Swap In for Amount: "+H,Q.m6.NO_SPINNER,pt)))}handleErrorWithoutAlert(H,_e,pt){let Ci="";return this.logger.error("ERROR IN: "+H+"\n"+JSON.stringify(pt)),this.store.dispatch((0,Ge.uO)({payload:_e})),401===pt.status?(Ci="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ge.kS)())):503===pt.status?(Ci="Unable to Connect to Boltz Server.",this.store.dispatch((0,Ge.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:H},component:We.H}}}))):Ci=this.commonService.extractErrorMessage(pt),(0,Zi._)(()=>new Error(Ci))}handleErrorWithAlert(H,_e,pt){let Ci="";if(401===pt.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ge.kS)())),this.logger.error(pt),this.store.dispatch((0,Ge.uO)({payload:H})),401===pt.status)Ci="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ge.kS)());else if(503===pt.status)Ci="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Ge.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:_e},component:We.H}}}))},100);else{Ci=this.commonService.extractErrorMessage(pt);const xn=pt.error&&pt.error.error&&pt.error.error.code?pt.error.error.code:pt.error&&pt.error.code?pt.error.code:pt.code?pt.code:pt.status;setTimeout(()=>{this.store.dispatch((0,Ge.qR)({payload:{data:{type:Q.n_.ERROR,alertTitle:"ERROR",message:{code:xn,message:Ci,URL:_e},component:We.H}}}))},100)}return{message:Ci}}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.LFG(M.eN),e.LFG(ve.mQ),e.LFG(b.yh),e.LFG(mi.v))},K.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac}),K})();var bt=p(1125);let Si=(()=>{class K{constructor(){this.serviceInfo={},this.direction=Q.hc.SWAP_OUT,this.swapTypeEnum=Q.hc}}return K.\u0275fac=function(H){return new(H||K)},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e._uU(4,"Service Information"),e.qZA()()(),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e._uU(9,"Minimum Amount (Sats)"),e.qZA(),e.TgZ(10,"span",6),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",4)(14,"h4",5),e._uU(15,"Maximum Amount (Sats)"),e.qZA(),e.TgZ(16,"span",6),e._uU(17),e.ALo(18,"number"),e.qZA()()(),e._UZ(19,"mat-divider",7),e.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),e._uU(23,"Fee Percentage"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA()(),e.TgZ(27,"div",4)(28,"h4",5),e._uU(29,"Miner Fee (Sats)"),e.qZA(),e.TgZ(30,"span",6),e._uU(31),e.ALo(32,"number"),e.qZA()()()()()),2&H&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==_e.serviceInfo||null==_e.serviceInfo.limits?null:_e.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==_e.serviceInfo||null==_e.serviceInfo.limits?null:_e.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==_e.serviceInfo||null==_e.serviceInfo.fees?null:_e.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,_e.direction===_e.swapTypeEnum.SWAP_OUT?null==_e.serviceInfo||null==_e.serviceInfo.fees||null==_e.serviceInfo.fees.miner?null:_e.serviceInfo.fees.miner.reverse:null==_e.serviceInfo||null==_e.serviceInfo.fees||null==_e.serviceInfo.fees.miner?null:_e.serviceInfo.fees.miner.normal)))},directives:[bt.ib,C.yH,bt.yz,bt.yK,C.Wh,C.xw,Ue.d],pipes:[oe.JJ],styles:[""]}),K})();var Qi=p(5245);function Yn(K,Ve){1&K&&e.GkF(0)}function Or(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&K){const H=e.oxw();e.xp6(2),e.Oqu(null!=H.swapStatus&&H.swapStatus.error?null==H.swapStatus?null:H.swapStatus.error:"Unknown Error.")}}function Wa(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Routing Fee (mSats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),e._uU(17,"Claim Transaction ID"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()(),e.TgZ(20,"div",7)(21,"h4",8),e._uU(22,"Lockup Address"),e.qZA(),e.TgZ(23,"span",5),e._uU(24),e.qZA()()()()),2&K){const H=e.oxw();e.xp6(6),e.Oqu(null==H.swapStatus?null:H.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==H.swapStatus?null:H.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==H.swapStatus?null:H.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==H.swapStatus?null:H.swapStatus.lockupAddress)}}function xa(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Expected Amount (Sats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),e._uU(17,"Address"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()()(),e._UZ(20,"mat-divider",9),e.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),e._uU(24,"BIP 21"),e.qZA(),e.TgZ(25,"span",5),e._uU(26),e.qZA()()()()),2&K){const H=e.oxw();e.xp6(6),e.Oqu(null==H.swapStatus?null:H.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==H.swapStatus?null:H.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==H.swapStatus?null:H.swapStatus.address),e.xp6(7),e.Oqu(null==H.swapStatus?null:H.swapStatus.bip21)}}let os=(()=>{class K{constructor(){this.swapStatus=null,this.direction=Q.hc.SWAP_OUT,this.swapTypeEnum=Q.hc}}return K.\u0275fac=function(H){return new(H||K)},K.\u0275cmp=e.Xpm({type:K,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(H,_e){if(1&H&&(e.YNc(0,Yn,1,0,"ng-container",0),e.YNc(1,Or,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Wa,25,6,"ng-template",null,2,e.W1O),e.YNc(5,xa,27,6,"ng-template",null,3,e.W1O)),2&H){const pt=e.MAs(2),Ci=e.MAs(4),xn=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=_e.swapStatus&&_e.swapStatus.error?pt:_e.direction===_e.swapTypeEnum.SWAP_OUT?Ci:xn)}},directives:[oe.tP,C.xw,C.yH,C.Wh,Ue.d],pipes:[oe.JJ],styles:[""]}),K})();var zi=p(113);function zn(K,Ve){1&K&&e.GkF(0)}const Ja=function(K,Ve){return{"small-svg":K,"large-svg":Ve}};function Cr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",7),e._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),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Reverse Submarine Swap explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function Gs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",21)(2,"g",22),e._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e._UZ(9,"path",29),e.TgZ(10,"defs")(11,"clipPath",30),e._UZ(12,"rect",31),e.qZA()()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function Xa(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",32),e._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.TgZ(9,"defs")(10,"pattern",40),e._UZ(11,"use",41),e.qZA(),e._UZ(12,"image",42),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Paying the Lightning Invoice"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function ha(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",43)(2,"g",22),e._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",30),e._UZ(10,"rect",49),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on-chain"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function xs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}let bs=(()=>{class K{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Q.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){if(1&H&&(e.YNc(0,zn,1,0,"ng-container",0),e.YNc(1,Cr,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Gs,19,5,"ng-template",null,2,e.W1O),e.YNc(5,Xa,19,5,"ng-template",null,3,e.W1O),e.YNc(7,ha,17,5,"ng-template",null,4,e.W1O),e.YNc(9,xs,13,5,"ng-template",null,5,e.W1O)),2&H){const pt=e.MAs(2),Ci=e.MAs(4),xn=e.MAs(6),_r=e.MAs(8),Un=e.MAs(10);e.Q6J("ngTemplateOutlet",1===_e.stepNumber?pt:2===_e.stepNumber?Ci:3===_e.stepNumber?xn:4===_e.stepNumber?_r:Un)}},directives:[oe.tP,C.xw,C.yH,C.Wh,oe.mk,Bi.oO,N.n5,N.$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:[zi.l]}}),K})();function Zs(K,Ve){1&K&&e.GkF(0)}const $a=function(K,Ve){return{"small-svg":K,"large-svg":Ve}};function Ms(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",7),e._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),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Submarine Swaps explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function gs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",21),e._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e.kcU(),e.TgZ(9,"div",18)(10,"mat-card-title"),e._uU(11,"Step 1: Deciding to Submarine Swap"),e.qZA()(),e.TgZ(12,"div",19)(13,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function Vr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",29),e._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.TgZ(9,"defs")(10,"pattern",37),e._UZ(11,"use",38),e.qZA(),e._UZ(12,"image",39),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Sending the on-chain funds"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function Va(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",40)(2,"g",41),e._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",47),e._UZ(10,"rect",48),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on Lightning"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function _t(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",49),e._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}let re=(()=>{class K{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Q.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){if(1&H&&(e.YNc(0,Zs,1,0,"ng-container",0),e.YNc(1,Ms,18,5,"ng-template",null,1,e.W1O),e.YNc(3,gs,15,5,"ng-template",null,2,e.W1O),e.YNc(5,Vr,19,5,"ng-template",null,3,e.W1O),e.YNc(7,Va,17,5,"ng-template",null,4,e.W1O),e.YNc(9,_t,13,5,"ng-template",null,5,e.W1O)),2&H){const pt=e.MAs(2),Ci=e.MAs(4),xn=e.MAs(6),_r=e.MAs(8),Un=e.MAs(10);e.Q6J("ngTemplateOutlet",1===_e.stepNumber?pt:2===_e.stepNumber?Ci:3===_e.stepNumber?xn:4===_e.stepNumber?_r:Un)}},directives:[oe.tP,C.xw,C.yH,C.Wh,oe.mk,Bi.oO,N.n5,N.$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:[zi.l]}}),K})();const he=["stepper"];function Ye(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.Oqu(H.inputFormLabel)}}function wt(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function Ft(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.minimal),".")}}function ii(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.maximal),".")}}function ni(K,Ve){1&K&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function yi(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onSwap()}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw(2);e.xp6(1),e.hij("Initiate ",H.swapDirectionCaption,"")}}function Pi(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(3);e.Oqu(H.addressFormLabel)}}function nn(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function un(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,Pi,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(pt){return e.CHM(H),e.oxw(2).onAddressTypeChange(pt)}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46),e._UZ(10,"input",47),e.YNc(11,nn,2,0,"mat-error",24),e.qZA()(),e.TgZ(12,"div",25)(13,"button",48),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onSwap()}),e._uU(14),e.qZA()()()()}if(2&K){const H=e.oxw(2);e.Q6J("stepControl",H.addressFormGroup)("editable",H.flgEditable),e.xp6(1),e.Q6J("formGroup",H.addressFormGroup),e.xp6(9),e.Q6J("required","external"===H.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==H.addressFormGroup.controls.address.errors?null:H.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",H.swapDirectionCaption,"")}}function Sn(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.hij("",H.swapDirectionCaption," Status")}}function Pn(K,Ve){if(1&K&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.swapStatus&&null!=H.swapStatus&&H.swapStatus.id?"check":"close")}}function yn(K,Ve){1&K&&e._UZ(0,"div")}function Tn(K,Ve){1&K&&e._UZ(0,"mat-progress-bar",50)}function qn(K,Ve){if(1&K&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.swapStatus&&H.swapStatus.error?H.swapDirectionCaption+" failed.":H.swapStatus&&H.swapStatus.id?H.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":H.swapDirectionCaption+" request placed successfully.")}}function xr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onRestart()}),e._uU(1,"Start Again"),e.qZA()}}function cr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){return e.CHM(H),e.oxw().showInfo()}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(H),e.oxw().onClose()}),e._uU(10,"X"),e.qZA()()(),e.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),e.NdJ("selectionChange",function(pt){return e.CHM(H),e.oxw().stepSelectionChanged(pt)}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,Ye,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21),e._UZ(22,"input",22),e.TgZ(23,"mat-hint"),e._uU(24),e.ALo(25,"number"),e.ALo(26,"number"),e.qZA(),e.TgZ(27,"span",23),e._uU(28,"Sats"),e.qZA(),e.YNc(29,wt,2,0,"mat-error",24),e.YNc(30,Ft,3,3,"mat-error",24),e.YNc(31,ii,3,3,"mat-error",24),e.qZA()(),e.TgZ(32,"div",25),e.YNc(33,ni,2,0,"button",26),e.YNc(34,yi,2,1,"button",27),e.qZA()()(),e.YNc(35,un,15,6,"mat-step",28),e.TgZ(36,"mat-step",29)(37,"form",16),e.YNc(38,Sn,1,1,"ng-template",17),e.TgZ(39,"div",30)(40,"mat-expansion-panel",31)(41,"mat-expansion-panel-header")(42,"mat-panel-title")(43,"span",32),e._uU(44),e.YNc(45,Pn,2,1,"mat-icon",33),e.qZA()()(),e.YNc(46,yn,1,0,"div",34),e.qZA(),e.YNc(47,Tn,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(48,qn,2,1,"h4",36),e.TgZ(49,"div",25),e.YNc(50,xr,2,0,"button",37),e.qZA()()()(),e.TgZ(51,"div",38)(52,"button",39),e._uU(53,"Close"),e.qZA()()()()()()}if(2&K){const H=e.oxw(),_e=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",H.screenSize===H.screenSizeEnum.XS||H.screenSize===H.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(H.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",H.screenSize===H.screenSizeEnum.XS||H.screenSize===H.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",H.inputFormGroup)("editable",H.flgEditable),e.xp6(1),e.Q6J("formGroup",H.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",H.serviceInfo)("direction",H.direction),e.xp6(3),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(25,30,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.minimal),"-",e.lcZ(26,32,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.maximal),""),e.xp6(5),e.Q6J("ngIf",null==H.inputFormGroup||null==H.inputFormGroup.controls||null==H.inputFormGroup.controls.amount||null==H.inputFormGroup.controls.amount.errors?null:H.inputFormGroup.controls.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==H.inputFormGroup||null==H.inputFormGroup.controls||null==H.inputFormGroup.controls.amount||null==H.inputFormGroup.controls.amount.errors?null:H.inputFormGroup.controls.amount.errors.min),e.xp6(1),e.Q6J("ngIf",null==H.inputFormGroup||null==H.inputFormGroup.controls||null==H.inputFormGroup.controls.amount||null==H.inputFormGroup.controls.amount.errors?null:H.inputFormGroup.controls.amount.errors.max),e.xp6(2),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",H.statusFormGroup),e.xp6(1),e.Q6J("formGroup",H.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!H.swapStatus),e.xp6(4),e.Oqu(H.swapStatus?H.swapStatus.id?H.swapDirectionCaption+" request details":H.swapDirectionCaption+" error details":"Waiting for "+H.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",H.swapStatus),e.xp6(1),e.Q6J("ngIf",!H.swapStatus)("ngIfElse",_e),e.xp6(1),e.Q6J("ngIf",!H.swapStatus),e.xp6(1),e.Q6J("ngIf",H.swapStatus),e.xp6(2),e.Q6J("ngIf",H.swapStatus&&(H.swapStatus.error||!H.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function Xr(K,Ve){if(1&K&&e._UZ(0,"rtl-boltz-swap-status",53),2&K){const H=e.oxw();e.Q6J("swapStatus",H.swapStatus)("direction",H.direction)}}function Yr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(pt){return e.CHM(H),e.oxw(2).stepNumber=pt}),e.qZA()}if(2&K){const H=e.oxw(2);e.Q6J("stepNumber",H.stepNumber)("animationDirection",H.animationDirection)}}function dr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(pt){return e.CHM(H),e.oxw(2).stepNumber=pt}),e.qZA()}if(2&K){const H=e.oxw(2);e.Q6J("stepNumber",H.stepNumber)("animationDirection",H.animationDirection)}}const zr=function(K,Ve){return{"dot-primary":K,"dot-primary-lighter":Ve}};function Bn(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw(2).onStepChanged(Ci)}),e._UZ(1,"p",72),e.qZA()}if(2&K){const H=Ve.$implicit,_e=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,zr,_e.stepNumber===H,_e.stepNumber!==H))}}function ur(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onReadMore()}),e._uU(1,"Read More"),e.qZA()}}function za(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onStepChanged(4)}),e._uU(1,"Back"),e.qZA()}}function nt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function Et(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function At(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw(2);return pt.onStepChanged(pt.stepNumber-1)}),e._uU(1,"Back"),e.qZA()}}function Rt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw(2);return pt.onStepChanged(pt.stepNumber+1)}),e._uU(1,"Next"),e.qZA()}}const qt=function(){return[1,2,3,4,5]};function _i(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"div",57)(6,"button",58),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.flgShowInfo=!1,pt.stepNumber=1}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,Yr,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,dr,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,Bn,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,ur,2,0,"button",64),e.YNc(15,za,2,0,"button",65),e.YNc(16,nt,2,0,"button",66),e.YNc(17,Et,2,0,"button",67),e.YNc(18,At,2,0,"button",68),e.YNc(19,Rt,2,0,"button",69),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,qt)),e.xp6(2),e.Q6J("ngIf",5===H.stepNumber),e.xp6(1),e.Q6J("ngIf",5===H.stepNumber),e.xp6(1),e.Q6J("ngIf",5===H.stepNumber),e.xp6(1),e.Q6J("ngIf",H.stepNumber<5),e.xp6(1),e.Q6J("ngIf",H.stepNumber>1&&H.stepNumber<5),e.xp6(1),e.Q6J("ngIf",H.stepNumber<5)}}let ei=(()=>{class K{constructor(H,_e,pt,Ci,xn,_r,Un,ea,hs){this.dialogRef=H,this.data=_e,this.store=pt,this.boltzService=Ci,this.formBuilder=xn,this.decimalPipe=_r,this.logger=Un,this.router=ea,this.commonService=hs,this.faInfoCircle=v.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Q.hc,this.direction=Q.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=Q.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===Q.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[De.kI.required,De.kI.min(this.serviceInfo.limits.minimal),De.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[De.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===Q.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Q.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,x.R)(this.unSubs[2])).subscribe(H=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(H){"external"===H.value?(this.addressFormGroup.controls.address.setValidators([De.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(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Q.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,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===Q.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,x.R)(this.unSubs[3])).subscribe({next:H=>{this.swapStatus=H,this.boltzService.listSwaps(),this.flgEditable=!0},error:H=>{this.swapStatus={error:H},this.flgEditable=!0,this.logger.error(H)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,x.R)(this.unSubs[4])).subscribe({next:_e=>{this.swapStatus=_e,this.boltzService.listSwaps(),this.flgEditable=!0},error:_e=>{this.swapStatus={error:_e},this.flgEditable=!0,this.logger.error(_e)}})}stepSelectionChanged(H){switch(H.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"}H.selectedIndex{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(Le.so),e.Y36(Le.WI),e.Y36(b.yh),e.Y36(He),e.Y36(De.qu),e.Y36(oe.JJ),e.Y36(ve.mQ),e.Y36(I.F0),e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(H,_e){if(1&H&&e.Gf(he,5),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.stepper=pt.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(H,_e){1&H&&(e.YNc(0,cr,54,34,"div",0),e.YNc(1,Xr,1,2,"ng-template",null,1,e.W1O),e.YNc(3,_i,20,11,"div",2)),2&H&&(e.Q6J("ngIf",!_e.flgShowInfo),e.xp6(3),e.Q6J("ngIf",_e.flgShowInfo))},directives:[oe.O5,C.xw,C.yH,C.Wh,N.dk,Te.lW,N.dn,di.Vq,di.C0,De._Y,De.JL,De.sg,di.VY,Si,lt.KE,Yt.Nt,De.wV,De.Fj,Ae.h,De.JJ,De.u,De.Q7,lt.bx,lt.R9,lt.TO,di.Ic,vi.VQ,vi.U0,bt.ib,bt.yz,bt.yK,Qi.Hw,qr.pW,Le.ZT,os,bs,re,oe.sg,oe.mk,Bi.oO],pipes:[oe.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[Zt._]}}),K})();function pi(K,Ve){1&K&&e._UZ(0,"mat-progress-bar",32)}function Li(K,Ve){1&K&&(e.TgZ(0,"th",33),e._uU(1," Status "),e.qZA())}function qi(K,Ve){if(1&K&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.xp6(1),e.Oqu(_e.swapStateEnum[H.status])}}function $i(K,Ve){1&K&&(e.TgZ(0,"th",33),e._uU(1," Swap ID "),e.qZA())}function on(K,Ve){if(1&K&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.id)}}function bn(K,Ve){1&K&&(e.TgZ(0,"th",33),e._uU(1," Claim Address "),e.qZA())}function Qn(K,Ve){if(1&K&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.claimAddress)}}function kn(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Onchain Amount (Sats) "),e.qZA())}function aa(K,Ve){if(1&K&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.onchainAmount))}}function Aa(K,Ve){1&K&&(e.TgZ(0,"th",33),e._uU(1," Lockup Address "),e.qZA())}function tr(K,Ve){if(1&K&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.lockupAddress)}}function br(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Expected Amount (Sats) "),e.qZA())}function hr(K,Ve){if(1&K&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.expectedAmount))}}function kr(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Timeout Block Height "),e.qZA())}function jr(K,Ve){if(1&K&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.timeoutBlockHeight))}}function Ya(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Amount (Sats) "),e.qZA())}function ls(K,Ve){if(1&K&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.amt))}}function cs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",40),e.NdJ("click",function(){return e.CHM(H),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function Cs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"td",41)(1,"button",42),e.NdJ("click",function(pt){const xn=e.CHM(H).$implicit;return e.oxw().onSwapClick(xn,pt)}),e._uU(2,"View Info"),e.qZA()()}}function Ws(K,Ve){if(1&K&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.emptyTableMessage)}}function Mo(K,Ve){if(1&K&&(e.TgZ(0,"td",43),e.YNc(1,Ws,2,1,"p",44),e.qZA()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=H.listSwaps&&H.listSwaps.data)||(null==H.listSwaps||null==H.listSwaps.data?null:H.listSwaps.data.length)<1)}}const Ys=function(K){return{"display-none":K}};function t1(K,Ve){if(1&K&&e._UZ(0,"tr",45),2&K){const H=e.oxw();e.Q6J("ngClass",e.VKq(1,Ys,(null==H.listSwaps?null:H.listSwaps.data)&&(null==H.listSwaps||null==H.listSwaps.data?null:H.listSwaps.data.length)>0))}}function Be(K,Ve){1&K&&e._UZ(0,"tr",46)}function Me(K,Ve){1&K&&e._UZ(0,"tr",47)}const pe=function(K){return{"overflow-auto error-border":K,"overflow-auto":!0}},$e=function(){return["no_swap"]};let ot=(()=>{class K{constructor(H,_e,pt,Ci){this.logger=H,this.commonService=_e,this.store=pt,this.boltzService=Ci,this.selectedSwapType=Q.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=Q.Qw,this.faHistory=v.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=Q.IV,this.pageSizeOptions=Q.TJ,this.screenSize="",this.screenSizeEnum=Q.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(H){H.selectedSwapType&&!H.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Q.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===Q.cu.XS||this.screenSize===Q.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===Q.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===Q.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===Q.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===Q.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(H,_e){this.boltzService.swapInfo(H.id).pipe((0,x.R)(this.unSubs[1])).subscribe(pt=>{this.store.dispatch((0,Ge.qR)({payload:{data:{type:Q.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:Q.Qw[(pt=this.selectedSwapType===Q.hc.SWAP_IN?pt.swap:pt.reverseSwap).status],title:"Status",width:50,type:Q.Gi.STRING},{key:"id",value:pt.id,title:"ID",width:50,type:Q.Gi.STRING}],[{key:"amount",value:pt.onchainAmount?pt.onchainAmount:pt.expectedAmount?pt.expectedAmount:0,title:pt.onchainAmount?"Onchain Amount (Sats)":pt.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Q.Gi.NUMBER},{key:"timeoutBlockHeight",value:pt.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Q.Gi.NUMBER}],[{key:"address",value:pt.claimAddress?pt.claimAddress:pt.lockupAddress?pt.lockupAddress:"",title:pt.claimAddress?"Claim Address":pt.lockupAddress?"Lockup Address":"Address",width:100,type:Q.Gi.STRING}],[{key:"invoice",value:pt.invoice,title:"Invoice",width:100,type:Q.Gi.STRING}],[{key:"privateKey",value:pt.privateKey,title:"Private Key",width:100,type:Q.Gi.STRING}],[{key:"preimage",value:pt.preimage,title:"Preimage",width:100,type:Q.Gi.STRING}],[{key:"redeemScript",value:pt.redeemScript,title:"Redeem Script",width:100,type:Q.Gi.STRING}],[{key:"lockupTransactionId",value:pt.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Q.Gi.STRING},{key:"transactionId",value:pt.claimTransactionId?pt.claimTransactionId:pt.refundTransactionId?pt.refundTransactionId:"",title:pt.claimTransactionId?"Claim Transaction ID":pt.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Q.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new fn.by(H?[...H]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(_e,pt)=>_e[pt]&&isNaN(_e[pt])?_e[pt].toLocaleLowerCase():_e[pt]?+_e[pt]:null,this.listSwaps.filterPredicate=(_e,pt)=>JSON.stringify(_e).toLowerCase().includes(pt),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===Q.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(b.yh),e.Y36(He))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-boltz-swaps"]],viewQuery:function(H,_e){if(1&H&&(e.Gf(lr.YE,5),e.Gf(Gr.NW,5)),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.sort=pt.first),e.iGM(pt=e.CRH())&&(_e.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Gr.ye,useValue:(0,Q.pt)("Swaps")}]),e.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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"mat-form-field",5)(7,"input",6),e.NdJ("keyup",function(){return _e.applyFilter()})("ngModelChange",function(Ci){return _e.selFilter=Ci}),e.qZA()()(),e.TgZ(8,"div",7)(9,"div",8),e.YNc(10,pi,1,0,"mat-progress-bar",9),e.TgZ(11,"table",10,11),e.ynx(13,12),e.YNc(14,Li,2,0,"th",13),e.YNc(15,qi,2,1,"td",14),e.BQk(),e.ynx(16,15),e.YNc(17,$i,2,0,"th",13),e.YNc(18,on,2,1,"td",14),e.BQk(),e.ynx(19,16),e.YNc(20,bn,2,0,"th",13),e.YNc(21,Qn,2,1,"td",14),e.BQk(),e.ynx(22,17),e.YNc(23,kn,2,0,"th",18),e.YNc(24,aa,4,3,"td",14),e.BQk(),e.ynx(25,19),e.YNc(26,Aa,2,0,"th",13),e.YNc(27,tr,2,1,"td",14),e.BQk(),e.ynx(28,20),e.YNc(29,br,2,0,"th",18),e.YNc(30,hr,4,3,"td",14),e.BQk(),e.ynx(31,21),e.YNc(32,kr,2,0,"th",18),e.YNc(33,jr,4,3,"td",14),e.BQk(),e.ynx(34,22),e.YNc(35,Ya,2,0,"th",18),e.YNc(36,ls,4,3,"td",14),e.BQk(),e.ynx(37,23),e.YNc(38,cs,6,0,"th",24),e.YNc(39,Cs,3,0,"td",25),e.BQk(),e.ynx(40,26),e.YNc(41,Mo,2,1,"td",27),e.BQk(),e.YNc(42,t1,1,3,"tr",28),e.YNc(43,Be,1,0,"tr",29),e.YNc(44,Me,1,0,"tr",30),e.qZA(),e._UZ(45,"mat-paginator",31),e.qZA()()()),2&H&&(e.xp6(3),e.Q6J("icon",_e.faHistory),e.xp6(2),e.hij("",_e.swapCaption," History"),e.xp6(2),e.Q6J("ngModel",_e.selFilter),e.xp6(3),e.Q6J("ngIf",!0===_e.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",_e.listSwaps)("ngClass",e.VKq(13,pe,"error"===_e.flgLoading[0])),e.xp6(31),e.Q6J("matFooterRowDef",e.DdM(15,$e)),e.xp6(1),e.Q6J("matHeaderRowDef",_e.displayedColumns)("matHeaderRowDefSticky",_e.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",_e.displayedColumns),e.xp6(1),e.Q6J("pageSize",_e.pageSize)("pageSizeOptions",_e.pageSizeOptions)("showFirstLastButtons",_e.screenSize!==_e.screenSizeEnum.XS))},directives:[C.xw,C.yH,C.Wh,B.BN,lt.KE,Yt.Nt,De.Fj,De.JJ,De.On,F.$V,oe.O5,qr.pW,fn.BZ,lr.YE,oe.mk,Bi.oO,fn.w1,fn.fO,fn.ge,lr.nU,fn.Dz,fn.ev,Ie.gD,Ie.$L,se.ey,Te.lW,fn.mD,fn.yh,fn.Ke,fn.Q2,fn.as,fn.XQ,fn.nj,fn.Gk,Gr.NW],pipes:[oe.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),K})();const kt=function(K){return["../",K]};function Xt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw().onSelectedIndexChange(Ci)}),e._uU(1),e.qZA()}if(2&K){const H=Ve.$implicit,_e=e.oxw();e.Q6J("active",_e.activeTab.link===H.link)("routerLink",e.VKq(3,kt,H.link)),e.xp6(1),e.Oqu(H.name)}}let oi=(()=>{class K{constructor(H,_e,pt){this.router=H,this.store=_e,this.boltzService=pt,this.swapTypeEnum=Q.hc,this.selectedSwapType=Q.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 h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.boltzService.listSwaps();const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"swapin"===H.link?Q.hc.SWAP_IN:Q.hc.SWAP_OUT,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof I.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"swapin"===pt.link?Q.hc.SWAP_IN:Q.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,x.R)(this.unSubs[1])).subscribe({next:_e=>{this.swaps=_e,this.swapsData=this.selectedSwapType===Q.hc.SWAP_IN?_e.swaps:_e.reverseSwaps,this.flgLoading[0]=!1},error:_e=>{this.flgLoading[0]="error",this.emptyTableMessage=_e.message?_e.message:"No swap "+(this.selectedSwapType===Q.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){"swapin"===H.link?(this.selectedSwapType=Q.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=Q.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(H){this.boltzService.serviceInfo().pipe((0,x.R)(this.unSubs[2])).subscribe({next:_e=>{this.store.dispatch((0,Ge.qR)({payload:{data:{serviceInfo:_e,direction:H,component:ei}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(I.F0),e.Y36(b.yh),e.Y36(He))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),e._UZ(4,"circle",4)(5,"path",5)(6,"path",6),e.qZA()()(),e.kcU(),e.TgZ(7,"span",7),e._uU(8,"Boltz"),e.qZA()(),e.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),e.YNc(13,Xt,2,5,"div",11),e.qZA(),e.TgZ(14,"div",12)(15,"button",13),e.NdJ("click",function(){return _e.onSwap(_e.selectedSwapType)}),e._uU(16),e.qZA()(),e._UZ(17,"rtl-boltz-swaps",14),e.qZA()()()),2&H&&(e.xp6(13),e.Q6J("ngForOf",_e.links),e.xp6(3),e.hij("Start ",_e.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",_e.selectedSwapType)("swapsData",_e.swapsData)("flgLoading",_e.flgLoading)("emptyTableMessage",_e.emptyTableMessage))},directives:[C.xw,C.Wh,N.a8,N.dn,C.yH,z.BU,oe.sg,z.Nj,I.rH,Te.lW,ot],styles:[""]}),K})();class Hn{constructor(Ve){this.help=Ve}}function es(K,Ve){if(1&K&&(e.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.qZA()(),e.TgZ(4,"mat-panel-description",9),e._UZ(5,"span",10),e.TgZ(6,"a",11),e._uU(7),e.qZA()()()),2&K){const H=e.oxw().$implicit,_e=e.oxw();e.xp6(3),e.Oqu(H.help.question),e.xp6(2),e.Q6J("innerHTML",H.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",_e.flgLoggedIn?_e.LNPLink+H.help.link:"/login"),e.xp6(1),e.Oqu(_e.flgLoggedIn?H.help.linkCaption:"Login to go to the page")}}function ws(K,Ve){if(1&K&&(e.TgZ(0,"div",6),e.YNc(1,es,8,4,"mat-expansion-panel",7),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===H.help.lnImplementation||H.help.lnImplementation===_e.selNode.lnImplementation)}}let Fo=(()=>{class K{constructor(H,_e){this.store=H,this.sessionService=_e,this.helpTopics=[],this.faQuestion=v.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.helpTopics.push(new Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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(H=>{switch(this.selNode=H,this.selNode.lnImplementation.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(H=>{this.flgLoggedIn=!!H.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(Se.m))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Help"),e.qZA()(),e.TgZ(5,"div",4)(6,"div",0),e.YNc(7,ws,2,1,"div",5),e.qZA()()()),2&H&&(e.xp6(2),e.Q6J("icon",_e.faQuestion),e.xp6(5),e.Q6J("ngForOf",_e.helpTopics))},directives:[C.xw,C.yH,C.Wh,B.BN,oe.sg,oe.O5,bt.ib,bt.yz,bt.yK,bt.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),K})();var n1=p(9841);function ba(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}let io=(()=>{class K{constructor(H,_e){this.dialogRef=H,this.store=_e,this.faUserClock=v.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Ge.M6)({payload:{twoFAToken:this.token}}))}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(Le.so),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Two Factor Token"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return _e.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return _e.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"input",9),e.NdJ("ngModelChange",function(Ci){return _e.token=Ci}),e.qZA(),e.YNc(13,ba,2,0,"mat-error",10),e.qZA(),e.TgZ(14,"div",11)(15,"button",12),e._uU(16,"Verify Token"),e.qZA()()()()()()),2&H&&(e.xp6(12),e.Q6J("ngModel",_e.token),e.xp6(1),e.Q6J("ngIf",!_e.token))},directives:[C.xw,C.Wh,C.yH,N.dk,Te.lW,N.dn,De._Y,De.JL,De.F,lt.KE,Yt.Nt,De.Fj,Ae.h,De.Q7,De.JJ,De.On,oe.O5,lt.TO],styles:[""]}),K})();function A2(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function js(K,Ve){if(1&K&&(e.TgZ(0,"p",21)(1,"mat-icon",22),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&K){const H=e.oxw();e.xp6(3),e.hij(" ",H.loginErrorMessage," ")}}const D2=function(K){return{"padding-gap-large":K}},Vo=function(K,Ve){return{"font-size-200":K,"font-size-300":Ve}};let S1=(()=>{class K{constructor(H,_e,pt,Ci){this.logger=H,this.store=_e,this.rtlEffects=pt,this.commonService=Ci,this.faUnlockAlt=v.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Q.cu,this.loginErrorMessage="",this.apiCallStatusEnum=Q.Bn,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,n1.a)([this.store.select(n.ul),this.store.select(n.Sr)]).pipe((0,x.R)(this.unSubs[0])).subscribe(([H,_e])=>{this.loginErrorMessage="",H.status===Q.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof H.message?JSON.stringify(H.message):H.message),this.logger.error(H.message)),_e.status===Q.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof _e.message?JSON.stringify(_e.message):_e.message),this.logger.error(_e.message))}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(H=>{this.appConfig=H,this.logger.info(H)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Ge.qR)({payload:{maxWidth:"35rem",data:{component:io}}})),this.rtlEffects.closeAlert.pipe((0,Ce.q)(1)).subscribe(H=>{H&&this.store.dispatch((0,Ge.x4)({payload:{password:ue(this.password),defaultPassword:Q.kO.includes(this.password.toLowerCase()),twoFAToken:H.twoFAToken}}))})):this.store.dispatch((0,Ge.x4)({payload:{password:ue(this.password),defaultPassword:Q.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh),e.Y36(ut.V),e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),e.NdJ("ngModelChange",function(Ci){return _e.password=Ci}),e.qZA(),e.TgZ(16,"mat-icon",15),e.NdJ("click",function(){return _e.flgShow=!_e.flgShow}),e._uU(17),e.qZA(),e.YNc(18,A2,2,0,"mat-error",16),e.qZA(),e.YNc(19,js,4,1,"p",17),e.TgZ(20,"div",18)(21,"button",19),e.NdJ("click",function(){return _e.resetData()}),e._uU(22,"Clear"),e.qZA(),e.TgZ(23,"button",20),e.NdJ("click",function(){return _e.onLogin()}),e._uU(24,"Login"),e.qZA()()()()()()()()()),2&H&&(e.xp6(6),e.Q6J("ngClass",e.VKq(7,D2,_e.screenSize===_e.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(9,Vo,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS)),e.xp6(7),e.Q6J("type",_e.flgShow?"text":"password")("ngModel",_e.password),e.xp6(2),e.Oqu(_e.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!_e.password),e.xp6(1),e.Q6J("ngIf",""!==_e.loginErrorMessage))},directives:[C.xw,C.yH,C.Wh,N.a8,oe.mk,Bi.oO,N.dk,N.n5,N.dn,De._Y,De.JL,De.F,lt.KE,Yt.Nt,De.Fj,Ae.h,De.Q7,De.JJ,De.On,Qi.Hw,lt.R9,oe.O5,lt.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}"]}),K})();var E1=p(9442);let T1=(()=>{class K{constructor(H,_e){this.activatedRoute=H,this.router=_e,this.error={errorCode:"",errorMessage:""},this.faTimes=v.NBC,this.unsubs=[new h.x,new h.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,x.R)(this.unsubs[0])).subscribe(H=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(I.gz),e.Y36(I.F0))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6),e.qZA()()(),e.TgZ(7,"mat-card-content",6)(8,"div",7),e._uU(9),e.qZA(),e.TgZ(10,"span",8)(11,"button",9),e.NdJ("click",function(){return _e.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&H&&(e.xp6(4),e.Q6J("icon",_e.faTimes),e.xp6(2),e.hij("Error ",_e.error.errorCode,""),e.xp6(3),e.Oqu(_e.error.errorMessage))},directives:[C.xw,C.yH,C.Wh,N.a8,N.dk,N.n5,B.BN,N.dn,Te.lW],encapsulation:2}),K})();var $r=p(1643),no=p(9828),wo=p(8104),zo=p(6534),A1=p(9843);function Lo(K,Ve){1&K&&e._UZ(0,"span",16)}function D1(K,Ve){1&K&&e._UZ(0,"span",17)}function I2(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"form",18,4)(2,"div",19),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"Please ensure that "),e.TgZ(6,"strong"),e._uU(7,"experimental-offers"),e.qZA(),e._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(9,"strong")(10,"a",20),e._uU(11,"here"),e.qZA()(),e._uU(12," to learn more about Core Lightning offers."),e.qZA()(),e.TgZ(13,"h4",21),e._uU(14,"Description"),e.qZA(),e.TgZ(15,"span"),e._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.qZA(),e.TgZ(17,"h4",21),e._uU(18,"Links"),e.qZA(),e.TgZ(19,"span")(20,"a",22),e._uU(21,"Core lightning Bolt12"),e.qZA()(),e._UZ(22,"mat-divider",23),e.TgZ(23,"div",24),e._UZ(24,"fa-icon",2),e.TgZ(25,"span"),e._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.qZA()(),e.TgZ(27,"mat-slide-toggle",25),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).enableOffers=pt})("change",function(){return e.CHM(H),e.oxw(2).onUpdateFeature()}),e._uU(28),e.qZA()()}if(2&K){const H=e.oxw(2);e.xp6(3),e.Q6J("icon",H.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",H.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",H.enableOffers),e.xp6(1),e.hij("Enable Offers ",H.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function Mr(K,Ve){if(1&K&&(e.TgZ(0,"mat-option",43),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&K){const H=Ve.$implicit;e.Q6J("value",H),e.xp6(1),e.hij(" ",e.lcZ(2,2,H.id)," ")}}function So(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(3);e.xp6(1),e.hij("",H.selPolicyType.placeholder," is required.")}}function Bo(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(3);e.xp6(1),e.AsE("",H.selPolicyType.placeholder," must be greater than or equal to ",H.selPolicyType.min,".")}}function jl(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(3);e.xp6(1),e.AsE("",H.selPolicyType.placeholder," must be less than or equal to ",H.selPolicyType.max,".")}}function Ba(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function Ua(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function Kl(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function I1(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const Ks=function(K,Ve){return{"alert-danger":K,"alert-info":Ve}};function O1(K,Ve){if(1&K&&(e.TgZ(0,"h4",44)(1,"span",45),e._uU(2),e.qZA()()),2&K){const H=e.oxw(3);e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ks,!!H.updateMsg.error,!!H.updateMsg.data)),e.xp6(1),e.hij(" ",H.updateMsg.error&&""!==H.updateMsg.error?"Error: "+H.updateMsg.error||0:H.updateMsg.data&&""!==H.updateMsg.data?H.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function fa(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"form",18,4)(2,"div",26),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"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."),e.qZA()(),e.TgZ(6,"div",27)(7,"mat-form-field",28)(8,"mat-select",29),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).selPolicyType=pt})("selectionChange",function(){return e.CHM(H),e.oxw(2).policyMod=null}),e.YNc(9,Mr,3,4,"mat-option",30),e.qZA()(),e.TgZ(10,"mat-form-field",31)(11,"input",32,33),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).policyMod=pt}),e.qZA(),e.TgZ(13,"mat-hint"),e._uU(14),e.qZA(),e.YNc(15,So,2,1,"mat-error",34),e.YNc(16,Bo,2,2,"mat-error",34),e.YNc(17,jl,2,2,"mat-error",34),e.qZA()(),e.TgZ(18,"div",27)(19,"mat-form-field",31)(20,"input",35),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).leaseFeeBaseSat=pt}),e.qZA(),e.YNc(21,Ba,2,0,"mat-error",34),e.qZA(),e.TgZ(22,"mat-form-field",31)(23,"input",36),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).leaseFeeBasis=pt}),e.qZA(),e.YNc(24,Ua,2,0,"mat-error",34),e.qZA()(),e.TgZ(25,"div",27)(26,"mat-form-field",31)(27,"input",37),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).channelFeeMaxBaseSat=pt}),e.qZA(),e.YNc(28,Kl,2,0,"mat-error",34),e.qZA(),e.TgZ(29,"mat-form-field",31)(30,"input",38),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).channelFeeMaxProportional=pt}),e.qZA(),e.YNc(31,I1,2,0,"mat-error",34),e.qZA()(),e.YNc(32,O1,3,5,"h4",39),e.TgZ(33,"div",40)(34,"button",41),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onResetPolicy()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",42),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onUpdateFundingPolicy()}),e._uU(37,"Update"),e.qZA()()()}if(2&K){const H=e.oxw(2);e.xp6(3),e.Q6J("icon",H.faExclamationTriangle),e.xp6(5),e.Q6J("ngModel",H.selPolicyType),e.xp6(1),e.Q6J("ngForOf",H.policyTypes),e.xp6(2),e.Q6J("ngModel",H.policyMod)("placeholder",H.selPolicyType.placeholder)("step","fixed"===H.selPolicyType.id?1e3:10)("min",H.selPolicyType.min)("max",H.selPolicyType.max),e.xp6(3),e.lnq("",H.selPolicyType.placeholder," should be between ",H.selPolicyType.min," and ",H.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!H.policyMod),e.xp6(1),e.Q6J("ngIf",H.policyModH.selPolicyType.max),e.xp6(3),e.Q6J("ngModel",H.leaseFeeBaseSat),e.xp6(1),e.Q6J("ngIf",!H.leaseFeeBaseSat),e.xp6(2),e.Q6J("ngModel",H.leaseFeeBasis),e.xp6(1),e.Q6J("ngIf",!H.leaseFeeBasis),e.xp6(3),e.Q6J("ngModel",H.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!H.channelFeeMaxBaseSat),e.xp6(2),e.Q6J("ngModel",H.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!H.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",H.flgUpdateCalled)}}function _s(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const Ci=e.CHM(H).index;return e.oxw().onPanelExpanded(Ci)}),e.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),e._uU(4),e.qZA(),e.TgZ(5,"h4",11),e.YNc(6,Lo,1,0,"span",12),e.YNc(7,D1,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,I2,29,5,"form",15),e.YNc(11,fa,38,23,"form",15),e.qZA()()}if(2&K){const H=Ve.$implicit,_e=Ve.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(H.name),e.xp6(2),e.Q6J("ngIf",H.enabled),e.xp6(1),e.Q6J("ngIf",!H.enabled),e.xp6(1),e.hij(" ",H.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===_e),e.xp6(1),e.Q6J("ngIf",1===_e)}}const O2=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(893),p.e(636)]).then(p.bind(p,1636)).then(K=>K.LNDModule),canActivate:[$r.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(893),p.e(564)]).then(p.bind(p,9564)).then(K=>K.CLNModule),canActivate:[$r.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(893),p.e(924)]).then(p.bind(p,7924)).then(K=>K.ECLModule),canActivate:[$r.a1]},{path:"settings",component:we,canActivate:[$r.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:$,canActivate:[$r.a1]},{path:"auth",component:Jt,canActivate:[$r.a1]},{path:"bconfig",component:Lt,canActivate:[$r.a1]}]},{path:"config",component:qe,canActivate:[$r.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:pr,canActivate:[$r.a1]},{path:"services",component:Jn,canActivate:[$r.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:ga,canActivate:[$r.a1]},{path:"boltz",component:Qr,canActivate:[$r.a1]}]},{path:"experimental",component:(()=>{class K{constructor(H,_e,pt,Ci){this.logger=H,this.store=_e,this.dataService=pt,this.commonService=Ci,this.faInfoCircle=v.sqG,this.faExclamationTriangle=v.eHv,this.faCode=v.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=Q.gB,this.selPolicyType=Q.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,x.R)(this.unSubs[0])).subscribe({next:H=>{this.logger.info("Received List Configs: "+JSON.stringify(H)),this.features[1].enabled=!!H["experimental-dual-fund"]},error:H=>{this.logger.error("List Configs Error: "+JSON.stringify(H)),this.features[1].enabled=!1}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(H=>{this.selNode=H,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(no.Rn).pipe((0,x.R)(this.unSubs[2])).subscribe(H=>{this.policyTypes[2].max=H.balance.totalBalance||1e3})}onPanelExpanded(H){1===H&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,x.R)(this.unSubs[3])).subscribe(_e=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(_e)),this.fundingPolicy=_e,this.fundingPolicy.policy&&(this.selPolicyType=Q.gB.find(pt=>pt.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,Ge.jS)({payload:{uiMessage:Q.m6.UPDATE_SETTING,service:Q.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,Pt.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,si.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:H=>{this.logger.info(H),this.fundingPolicy=H,this.updateMsg={data:"Compact Lease: "+H.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:H=>{this.logger.error(H),this.updateMsg={error:this.commonService.extractErrorMessage(H,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?Q.gB.find(H=>H.id===this.fundingPolicy.policy)||this.policyTypes[0]:Q.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(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh),e.Y36(wo.D),e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,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"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["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"],[4,"ngIf"],["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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._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."),e.qZA()(),e.TgZ(5,"form",3,4)(7,"div",5),e._UZ(8,"fa-icon",6),e.TgZ(9,"span",7),e._uU(10,"Features"),e.qZA()(),e.TgZ(11,"mat-accordion"),e.YNc(12,_s,12,7,"mat-expansion-panel",8),e.qZA()()()),2&H&&(e.xp6(2),e.Q6J("icon",_e.faInfoCircle),e.xp6(6),e.Q6J("icon",_e.faCode),e.xp6(4),e.Q6J("ngForOf",_e.features))},directives:[C.xw,C.yH,F.$V,B.BN,De._Y,De.JL,De.F,C.Wh,bt.pp,oe.sg,bt.ib,bt.yz,bt.yK,oe.O5,Ue.d,ti.Rr,Ae.h,De.JJ,De.On,lt.KE,Ie.gD,se.ey,Yt.Nt,De.wV,De.qQ,De.Fd,De.Fj,zo.q,A1.F,De.Q7,lt.bx,lt.TO,oe.mk,Bi.oO,Te.lW],pipes:[oe.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})(),canActivate:[$r.a1]},{path:"lnconfig",component:Oi,canActivate:[$r.a1]}]},{path:"services",component:da,canActivate:[$r.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:mt},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:oi}]},{path:"help",component:Fo},{path:"login",component:S1},{path:"error",component:T1},{path:"**",component:E1.w}]);var ds=p(8750),ja=p(8878),k2=p(4594),Uo=p(7238),ao=p(2181);function r1(K,Ve){if(1&K&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("icon",H.faCode),e.xp6(2),e.hij("API Version: ",null==H.information?null:H.information.api_version,"")}}function ql(K,Ve){if(1&K&&(e.TgZ(0,"a",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("icon",H.faUserCog)}}function Jl(K,Ve){if(1&K&&(e.TgZ(0,"a",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("icon",H.faLifeRing)}}function Y4(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"a",15),e.NdJ("click",function(){return e.CHM(H),e.oxw().onClick()}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&K){const H=e.oxw();e.xp6(1),e.Q6J("icon",H.faEject)}}let j4=(()=>{class K{constructor(H,_e,pt,Ci,xn){this.logger=H,this.sessionService=_e,this.store=pt,this.rtlEffects=Ci,this.actions=xn,this.faUserCog=v.gNZ,this.faCodeBranch=v.mh3,this.faCode=v.dT$,this.faCog=v.b7W,this.faLifeRing=v.uli,this.faEject=v.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.version=Qe.q4}ngOnInit(){this.store.select(n.R4).pipe((0,x.R)(this.unSubs[0])).subscribe(H=>{if(this.information=H,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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const _e=this.information.chains[0];this.informationChain.chain=_e.chain,this.informationChain.network=_e.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(H)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(H=>{this.showLogout=!!H.token,this.flgLoading=!!H.token}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ce.h)(H=>H.type===Q.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Ge.c1)({payload:{data:{type:Q.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[3])).subscribe(H=>{H&&(this.showLogout=!1,this.store.dispatch((0,Ge.kS)()))})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(Se.m),e.Y36(b.yh),e.Y36(ut.V),e.Y36(d.eX))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){if(1&H&&(e.TgZ(0,"mat-menu",0,1)(2,"p",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.YNc(6,r1,4,2,"p",4),e.YNc(7,ql,4,1,"a",5),e.YNc(8,Jl,4,1,"a",6),e.YNc(9,Y4,4,1,"a",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&H){const pt=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",_e.faCodeBranch),e.xp6(2),e.hij("Version: ",_e.version,""),e.xp6(1),e.Q6J("ngIf",null==_e.information?null:_e.information.api_version),e.xp6(1),e.Q6J("ngIf",_e.showLogout),e.xp6(1),e.Q6J("ngIf",_e.showLogout),e.xp6(1),e.Q6J("ngIf",_e.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",pt)}},directives:[ao.VK,ao.OP,B.BN,oe.O5,I.yS,I.rH,Te.lW,ao.p6,Qi.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}),K})();var k1=p(2638),Ma=p(8258),Ka=p(149);const Ls={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:v.HLz,link:"/lnd/home",userPersona:Q.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:v.nNP,link:"/lnd/onchain",userPersona:Q.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:v.BDt,link:"/lnd/connections",userPersona:Q.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:v.FVb,link:"/lnd/connections",userPersona:Q.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:v.Ssp,link:"/lnd/transactions",userPersona:Q.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:v.SuH,link:"/lnd/routing",userPersona:Q.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:v.koM,link:"/lnd/reports",userPersona:Q.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:v.wn1,link:"/lnd/graph",userPersona:Q.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:v.hkK,link:"/lnd/messages",userPersona:Q.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:v.q7m,link:"/lnd/channelbackup",userPersona:Q.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:v.TmZ,link:"/lnd/network",userPersona:Q.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:v.xf3,link:"/lnd/network",userPersona:Q.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:v.Krp,link:"/services/loop",userPersona:Q.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:v.vqe,link:"/services/loop",userPersona:Q.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Q.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:v.CgH,link:"/config",userPersona:Q.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:v.Psp,link:"/help",userPersona:Q.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:v.HLz,link:"/cln/home",userPersona:Q.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:v.nNP,link:"/cln/onchain",userPersona:Q.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:v.BDt,link:"/cln/connections",userPersona:Q.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:v.FVb,link:"/cln/connections",userPersona:Q.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:v.Acd,link:"/cln/liquidityads",userPersona:Q.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:v.Ssp,link:"/cln/transactions",userPersona:Q.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:v.SuH,link:"/cln/routing",userPersona:Q.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:v.koM,link:"/cln/reports",userPersona:Q.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:v.wn1,link:"/cln/graph",userPersona:Q.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:v.hkK,link:"/cln/messages",userPersona:Q.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:v.USL,link:"/cln/rates",userPersona:Q.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:v.xf3,link:"/cln/rates",userPersona:Q.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:v.CgH,link:"/config",userPersona:Q.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:v.Psp,link:"/help",userPersona:Q.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:v.HLz,link:"/ecl/home",userPersona:Q.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:v.nNP,link:"/ecl/onchain",userPersona:Q.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:v.BDt,link:"/ecl/connections",userPersona:Q.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:v.FVb,link:"/ecl/connections",userPersona:Q.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:v.Ssp,link:"/ecl/transactions",userPersona:Q.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:v.SuH,link:"/ecl/routing",userPersona:Q.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:v.koM,link:"/ecl/reports",userPersona:Q.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:v.wn1,link:"/ecl/graph",userPersona:Q.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:v.CgH,link:"/config",userPersona:Q.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:v.Psp,link:"/help",userPersona:Q.ol.ALL}]};function P1(K,Ve){if(1&K&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.Q6J("value",H.index),e.xp6(1),e.AsE(" ",H.lnNode," (",H.lnImplementation,") ")}}function N1(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(pt){return e.CHM(H),e.oxw().onNodeSelectionChange(pt.value)}),e.YNc(1,P1,2,3,"mat-option",10),e.qZA()}if(2&K){const H=e.oxw();e.Q6J("value",H.selConfigNodeIndex),e.xp6(1),e.Q6J("ngForOf",H.appConfig.nodes)}}function Xl(K,Ve){if(1&K&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&K){const H=e.oxw().$implicit;e.oxw(2);const _e=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===H.icon?_e:null)}}function P2(K,Ve){if(1&K&&e._UZ(0,"fa-icon",23),2&K){const H=e.oxw().$implicit;e.Q6J("icon",H.icon)}}function R1(K,Ve){if(1&K&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H.icon)}}function Ss(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw(2).onChildNavClicked(Ci)}),e.TgZ(2,"div",17),e.YNc(3,Xl,2,1,"span",18),e.YNc(4,P2,1,1,"fa-icon",19),e.YNc(5,R1,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&K){const H=Ve.$implicit;e.s9C("routerLink",H.link),e.xp6(3),e.Q6J("ngIf","SVG"===H.iconType),e.xp6(1),e.Q6J("ngIf","FA"===H.iconType),e.xp6(1),e.Q6J("ngIf",!H.iconType),e.xp6(2),e.Oqu(H.name)}}function Qa(K,Ve){if(1&K&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",H.icon)}}function us(K,Ve){if(1&K&&e._UZ(0,"fa-icon",23),2&K){const H=e.oxw().$implicit;e.Q6J("icon",H.icon)}}function Eo(K,Ve){if(1&K&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H.icon)}}function Qs(K,Ve){if(1&K&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,Qa,2,1,"span",28),e.YNc(4,us,1,1,"fa-icon",19),e.YNc(5,Eo,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon",30),e._uU(10),e.qZA()()(),e.TgZ(11,"div",31),e.GkF(12,32),e.qZA()()),2&K){const H=Ve.$implicit,_e=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===H.iconType),e.xp6(1),e.Q6J("ngIf","FA"===H.iconType),e.xp6(1),e.Q6J("ngIf",!H.iconType),e.xp6(2),e.Oqu(H.name),e.xp6(1),e.uIk("aria-label","toggle "+H.name),e.xp6(2),e.Oqu(_e.treeControlNested.isExpanded(H)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!_e.treeControlNested.isExpanded(H))}}function a1(K,Ve){if(1&K&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,Ss,8,5,"mat-tree-node",13),e.YNc(3,Qs,13,8,"mat-nested-tree-node",14),e.qZA()),2&K){const H=e.oxw();e.Q6J("dataSource",H.navMenus)("treeControl",H.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",H.hasChild)}}function oo(K,Ve){if(1&K&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",H.icon)}}function H1(K,Ve){if(1&K&&e._UZ(0,"fa-icon",36),2&K){const H=e.oxw().$implicit;e.s9C("matTooltip",H.name),e.Q6J("icon",H.icon)}}function F1(K,Ve){if(1&K&&(e.TgZ(0,"mat-icon",37),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.s9C("matTooltip",H.name),e.xp6(1),e.Oqu(H.icon)}}function pa(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw().onShowData(Ci)}),e.YNc(1,oo,2,1,"span",18),e.YNc(2,H1,1,2,"fa-icon",34),e.YNc(3,F1,2,2,"mat-icon",35),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&K){const H=Ve.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===H.iconType),e.xp6(1),e.Q6J("ngIf","FA"===H.iconType),e.xp6(1),e.Q6J("ngIf",!H.iconType),e.xp6(2),e.Oqu(H.name)}}function Go(K,Ve){if(1&K&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",H.icon)}}function $l(K,Ve){if(1&K&&e._UZ(0,"fa-icon",36),2&K){const H=e.oxw().$implicit;e.s9C("matTooltip",H.name),e.Q6J("icon",H.icon)}}function s1(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw(2).onClick(Ci)}),e.YNc(1,Go,2,1,"span",28),e.YNc(2,$l,1,2,"fa-icon",34),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&K){const H=Ve.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===H.iconType),e.xp6(1),e.Q6J("ngIf","FA"===H.iconType),e.xp6(2),e.Oqu(H.name)}}function V1(K,Ve){if(1&K&&(e.TgZ(0,"mat-tree",5),e.YNc(1,s1,5,3,"mat-tree-node",6),e.qZA()),2&K){const H=e.oxw();e.Q6J("dataSource",H.navMenusLogout)("treeControl",H.treeControlLogout)}}function Zo(K,Ve){1&K&&(e.O4$(),e.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),e._UZ(3,"circle",41)(4,"path",42)(5,"path",43),e.qZA()()())}let Oa=(()=>{class K{constructor(H,_e,pt,Ci,xn,_r){this.logger=H,this.commonService=_e,this.sessionService=pt,this.store=Ci,this.actions=xn,this.rtlEffects=_r,this.ChildNavClicked=new e.vpe,this.faEject=v.KOR,this.faEye=v.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:v.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:v.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=Q.ol,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x],this.treeControlNested=new Ma.VY(Un=>Un.children),this.treeControlLogout=new Ma.VY(Un=>Un.children),this.treeControlShowData=new Ma.VY(Un=>Un.children),this.navMenus=new Ka.WX,this.navMenusLogout=new Ka.WX,this.navMenusShowData=new Ka.WX,this.hasChild=(Un,ea)=>!!ea.children&&ea.children.length>0,this.version=Qe.q4,200===Ls.LNDChildren[Ls.LNDChildren.length-1].id&&Ls.LNDChildren.pop(),this.navMenus.data=Ls.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const H=this.sessionService.getItem("token");this.showLogout=!!H,this.flgLoading=!!H,this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(_e=>{this.appConfig=_e}),this.store.select(n.gW).pipe((0,x.R)(this.unSubs[1])).subscribe(_e=>{if(this.information=_e.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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const pt=this.information.chains[0];this.informationChain.chain=pt.chain,this.informationChain.network=pt.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=_e.selNode,this.settings=this.selNode.settings,this.selConfigNodeIndex=+_e.selNode.index,this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(_e)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[2])).subscribe(_e=>{this.showLogout=!!_e.token,this.flgLoading=!!_e.token}),this.actions.pipe((0,x.R)(this.unSubs[3]),(0,ce.h)(_e=>_e.type===Q.pg.LOGOUT)).subscribe(_e=>{this.showLogout=!1})}onClick(H){"Logout"===H.name&&(this.store.dispatch((0,Ge.c1)({payload:{data:{type:Q.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[4])).subscribe(_e=>{_e&&(this.showLogout=!1,this.store.dispatch((0,Ge.kS)()))})),this.ChildNavClicked.emit(H)}onChildNavClicked(H){this.ChildNavClicked.emit(H)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let H=[];H=JSON.parse(JSON.stringify(Ls.LNDChildren)),this.navMenus.data=H.filter(_e=>_e.children&&_e.children.length?(_e.children=_e.children.filter(pt=>(pt.userPersona===Q.ol.ALL||pt.userPersona===this.settings.userPersona)&&"/services/loop"!==pt.link&&"/services/boltz"!==pt.link||"/services/loop"===pt.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===pt.link&&this.settings.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),_e.children.length>0):_e.userPersona===Q.ol.ALL||_e.userPersona===this.settings.userPersona)}loadCLNMenu(){let H=[];H=JSON.parse(JSON.stringify(Ls.CLNChildren)),this.navMenus.data=H.filter(_e=>(_e.children&&_e.children.length&&(_e.children=_e.children.filter(pt=>(pt.userPersona===Q.ol.ALL||pt.userPersona===this.settings.userPersona)&&"/cln/messages"!==pt.link||"/cln/messages"===pt.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),_e.userPersona===Q.ol.ALL||_e.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Ls.ECLChildren))}onShowData(H){this.store.dispatch((0,Ge.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(H){const _e=this.selConfigNodeIndex;this.selConfigNodeIndex=H;const pt=this.appConfig.nodes.find(Ci=>+Ci.index===H);this.store.dispatch((0,Ge.fk)({payload:{uiMessage:Q.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+_e,currentLnNode:pt,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(Se.m),e.Y36(b.yh),e.Y36(d.eX),e.Y36(ut.V))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-side-navigation"]],viewQuery:function(H,_e){if(1&H&&e.Gf(Ka.gi,5),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.tree=pt.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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,N1,2,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,a1,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,pa,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,V1,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,Zo,6,0,"ng-template",null,8,e.W1O)),2&H&&(e.xp6(2),e.Q6J("ngIf",_e.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==_e.settings?null:_e.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",_e.navMenusShowData)("treeControl",_e.treeControlShowData),e.xp6(3),e.Q6J("ngIf",_e.showLogout))},directives:[C.xw,C.yH,C.Wh,F.$V,oe.O5,Ie.gD,oe.sg,se.ey,Ue.d,Ka.gi,Ka.fQ,Ka.uo,Ka.eu,I.Od,I.rH,oe.tP,B.BN,Qi.Hw,Ka.GZ,Te.lW,Ka.Ar,Uo.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),K})();var z1=p(773);const o1=["sideNavigation"],N2=["sideNavContent"];function lo(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(H),e.oxw().sideNavToggle()}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&K){const H=e.oxw();e.Q6J("matTooltip",H.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",H.smallScreen)}}function R2(K,Ve){1&K&&(e.O4$(),e._UZ(0,"path",18))}function e3(K,Ve){1&K&&(e.O4$(),e._UZ(0,"path",19))}function H2(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.flgSidenavPinned=!pt.flgSidenavPinned}),e.O4$(),e.TgZ(1,"svg",15),e.YNc(2,R2,1,0,"path",16),e.YNc(3,e3,1,0,"path",17),e.qZA()()}if(2&K){const H=e.oxw();e.Q6J("matTooltip",H.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!H.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",H.flgSidenavPinned)}}function co(K,Ve){if(1&K&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&K){const H=e.oxw();e.xp6(1),e.Oqu(H.information.alias?"RTL - "+H.information.alias:"RTL")}}function Wo(K,Ve){if(1&K&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&K){const H=e.oxw();e.xp6(1),e.Oqu(H.information.alias?"Ride The Lightning - "+H.information.alias:"Ride The Lightning")}}function Ns(K,Ve){1&K&&(e.TgZ(0,"div",20),e._UZ(1,"mat-spinner",21),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const Es=function(K,Ve){return[K,Ve]};let l1=(()=>{class K{constructor(H,_e,pt,Ci,xn,_r,Un,ea,hs){this.logger=H,this.commonService=_e,this.store=pt,this.actions=Ci,this.userIdle=xn,this.router=_r,this.sessionService=Un,this.breakpointObserver=ea,this.renderer=hs,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 h.x,new h.x,new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.router.events.subscribe(H=>{H 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(H=>{H.breakpoints[a.u3.XSmall]?(this.commonService.setScreenSize(Q.cu.XS),this.smallScreen=!0):H.breakpoints[a.u3.TabletPortrait]?(this.commonService.setScreenSize(Q.cu.SM),this.smallScreen=!0):H.breakpoints[a.u3.Small]||H.breakpoints[a.u3.Medium]?(this.commonService.setScreenSize(Q.cu.MD),this.smallScreen=!1):H.breakpoints[a.u3.Large]?(this.commonService.setScreenSize(Q.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Q.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Ge.ey)()),this.accessKey=this.readAccessKey(),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(H=>{this.settings=H.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(H=>{this.appConfig=H}),this.store.select(n.R4).pipe((0,x.R)(this.unSubs[3])).subscribe(H=>{this.information=H,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,ce.h)(H=>H.type===Q.pg.SET_RTL_CONFIG||H.type===Q.pg.LOGIN||H.type===Q.pg.LOGOUT)).subscribe(H=>{H.type===Q.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+H.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,Ge.x4)({payload:{password:ue(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),H.type===Q.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)),H.type===Q.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,x.R)(this.unSubs[5])).subscribe(H=>{this.logger.info("Counting Down: "+(11-H))}),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,Ge.ts)()),this.store.dispatch((0,Ge.qR)({payload:{data:{type:Q.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Ge.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const H=window.location.href;return H.includes("access-key=")?H.substring(H.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(H){this.smallScreen&&this.sideNavigation.close()}copiedText(H){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+H)}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(b.yh),e.Y36(d.eX),e.Y36(_),e.Y36(I.F0),e.Y36(Se.m),e.Y36(a.Yg),e.Y36(e.Qsj))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-app"]],viewQuery:function(H,_e){if(1&H&&(e.Gf(o1,5),e.Gf(N2,5)),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.sideNavigation=pt.first),e.iGM(pt=e.CRH())&&(_e.sideNavContent=pt.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(H,_e){1&H&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,lo,3,2,"button",2),e.YNc(6,H2,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,co,2,1,"span",4),e.YNc(9,Wo,2,1,"span",4),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),e.NdJ("ChildNavClicked",function(Ci){return _e.onNavigationClicked(Ci)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),e._UZ(19,"router-outlet",null,11),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,Ns,4,0,"div",12),e.qZA()),2&H&&(e.Q6J("ngClass",e.WLB(12,Es,e.lcZ(1,8,_e.settings.themeColor),e.lcZ(2,10,_e.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",_e.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!_e.smallScreen&&_e.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",_e.smallScreen),e.xp6(1),e.Q6J("ngIf",!_e.smallScreen),e.xp6(4),e.Q6J("opened",_e.flgSideNavOpened&&_e.flgLoggedIn)("mode",_e.flgSidenavPinned&&!_e.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!_e.settings.themeColor))},directives:[C.xw,oe.mk,Bi.oO,k2.Ye,C.Wh,oe.O5,Te.lW,Uo.gM,Qi.Hw,j4,k1.TM,k1.JX,F.$V,Oa,C.yH,k1.Rh,I.lC,z1.Ou],pipes:[oe.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[ja.g]}}),K})(),F2=(()=>{class K{constructor(H){this.sessionService=H}intercept(H,_e){if(this.sessionService.getItem("token")){const pt=H.clone({headers:H.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return _e.handle(pt)}return _e.handle(H)}}return K.\u0275fac=function(H){return new(H||K)(e.LFG(Se.m))},K.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac}),K})();var B1=p(7998),Ts=p(711),V2=p(4947),U1=p(3289);const t3={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1},To={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},Yo={apiURL:"",apisCallStatus:{Login:{status:Q.Bn.UN_INITIATED},IsAuthorized:{status:Q.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:t3,authentication:To,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:t3,authentication:To}]},nodeData:{}},Q4=(0,b.Lq)(Yo,(0,b.on)(Ge.qi,(K,{payload:Ve})=>{const H=JSON.parse(JSON.stringify(K.apisCallStatus));return H[Ve.action]={status:Ve.status,statusCode:Ve.statusCode,message:Ve.message,URL:Ve.URL,filePath:Ve.filePath},Object.assign(Object.assign({},K),{apisCallStatus:H})}),(0,b.on)(Ge.vI,(K,{payload:Ve})=>Object.assign(Object.assign({},Yo),{apisCallStatus:K.apisCallStatus,appConfig:K.appConfig,selNode:Ve})),(0,b.on)(Ge.fk,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{selNode:Ve.currentLnNode})),(0,b.on)(Ge.Tm,(K,{payload:Ve})=>{const H=JSON.parse(JSON.stringify(K.selNode));switch(Ve.service){case Q.JX.BOLTZ:H.settings.boltzServerUrl=Ve.settings.boltzServerUrl;break;case Q.JX.LOOP:H.settings.swapServerUrl=Ve.settings.swapServerUrl;break;case Q.JX.OFFERS:H.settings.enableOffers=Ve.settings.enableOffers}return Object.assign(Object.assign({},K),{selNode:H})}),(0,b.on)(Ge._V,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{nodeData:Ve})),(0,b.on)(Ge.XT,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{appConfig:Ve}))),i3={apisCallStatus:{FetchInfo:{status:Q.Bn.UN_INITIATED},FetchFees:{status:Q.Bn.UN_INITIATED},FetchPeers:{status:Q.Bn.UN_INITIATED},FetchClosedChannels:{status:Q.Bn.UN_INITIATED},FetchPendingChannels:{status:Q.Bn.UN_INITIATED},FetchAllChannels:{status:Q.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:Q.Bn.UN_INITIATED},FetchInvoices:{status:Q.Bn.UN_INITIATED},FetchPayments:{status:Q.Bn.UN_INITIATED},FetchForwardingHistory:{status:Q.Bn.UN_INITIATED},FetchUTXOs:{status:Q.Bn.UN_INITIATED},FetchTransactions:{status:Q.Bn.UN_INITIATED},FetchLightningTransactions:{status:Q.Bn.UN_INITIATED},FetchNetwork:{status:Q.Bn.UN_INITIATED}},nodeSettings:{userPersona:Q.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 z2=!1,n3=!1;const r3=(0,b.Lq)(i3,(0,b.on)(Pt.PC,(K,{payload:Ve})=>{const H=JSON.parse(JSON.stringify(K.apisCallStatus));return H[Ve.action]={status:Ve.status,statusCode:Ve.statusCode,message:Ve.message,URL:Ve.URL,filePath:Ve.filePath},Object.assign(Object.assign({},K),{apisCallStatus:H})}),(0,b.on)(Pt.JT,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{nodeSettings:Ve})),(0,b.on)(Pt.Ll,(K,{payload:Ve})=>Object.assign(Object.assign({},i3),{nodeSettings:Ve})),(0,b.on)(Pt.CX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{information:Ve})),(0,b.on)(Pt.Z8,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{peers:Ve})),(0,b.on)(Pt.EK,(K,{payload:Ve})=>{const H=[...K.peers],_e=K.peers.findIndex(pt=>pt.pub_key===Ve.pubkey);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{peers:H})}),(0,b.on)(Pt.YP,(K,{payload:Ve})=>{const H=K.listInvoices;return H.invoices.unshift(Ve),Object.assign(Object.assign({},K),{listInvoices:H})}),(0,b.on)(Pt.aL,(K,{payload:Ve})=>{const H=K.listInvoices;return H.invoices=H.invoices.map(_e=>_e.payment_request===Ve.payment_request?Ve:_e),Object.assign(Object.assign({},K),{listInvoices:H})}),(0,b.on)(Pt.qY,(K,{payload:Ve})=>{const H=K.listPayments;return H.payments=H.payments.map(_e=>_e.payment_hash===Ve.payment_hash?Ve:_e),Object.assign(Object.assign({},K),{listPayments:H})}),(0,b.on)(Pt.RX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{fees:Ve})),(0,b.on)(Pt._L,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{closedChannels:Ve})),(0,b.on)(Pt.TW,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{pendingChannels:Ve.pendingChannels,pendingChannelsSummary:Ve.pendingChannelsSummary})),(0,b.on)(Pt.as,(K,{payload:Ve})=>{let H=0,_e=0,pt=0,Ci=0,xn=0,_r=0;return Ve&&Ve.forEach(Un=>{Un.local_balance||(Un.local_balance=0),!0===Un.active?(xn+=+Un.local_balance,pt+=1,Un.local_balance?H=+H+ +Un.local_balance:Un.local_balance=0,Un.remote_balance?_e=+_e+ +Un.remote_balance:Un.remote_balance=0):(_r+=+Un.local_balance,Ci+=1)}),Object.assign(Object.assign({},K),{channels:Ve,channelsSummary:{active:{num_channels:pt,capacity:xn},inactive:{num_channels:Ci,capacity:_r}},lightningBalance:{local:H,remote:_e}})}),(0,b.on)(Pt.OG,(K,{payload:Ve})=>{const H=[...K.channels],_e=K.channels.findIndex(pt=>pt.channel_point===Ve.channelPoint);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{channels:H})}),(0,b.on)(Pt.Jl,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{blockchainBalance:Ve})),(0,b.on)(Pt.ks,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{networkInfo:Ve})),(0,b.on)(Pt.Nr,(K,{payload:Ve})=>(Ve.total_invoices||(Ve.total_invoices=K.listInvoices.total_invoices),Object.assign(Object.assign({},K),{listInvoices:Ve}))),(0,b.on)(Pt.Lf,(K,{payload:Ve})=>{if(z2=!0,Ve.length&&n3){const H=[...K.utxos];return H.forEach(_e=>{const pt=Ve.find(Ci=>Ci.tx_hash===_e.outpoint.txid_str);_e.label=pt&&pt.label?pt.label:""}),Object.assign(Object.assign({},K),{utxos:H,transactions:Ve})}return Object.assign(Object.assign({},K),{transactions:Ve})}),(0,b.on)(Pt.UH,(K,{payload:Ve})=>{if(n3=!0,Ve.length&&z2){const H=[...K.transactions];Ve.forEach(_e=>{const pt=H.find(Ci=>Ci.tx_hash===_e.outpoint.txid_str);_e.label=pt&&pt.label?pt.label:""})}return Object.assign(Object.assign({},K),{utxos:Ve})}),(0,b.on)(Pt.HI,(K,{payload:Ve})=>{const H={listInvoicesAll:K.allLightningTransactions.listInvoicesAll,listPaymentsAll:Ve};return Object.assign(Object.assign({},K),{listPayments:Ve,allLightningTransactions:H})}),(0,b.on)(Pt.Fr,(K,{payload:Ve})=>{const H={listInvoicesAll:Ve.listInvoicesAll,listPaymentsAll:K.listPayments};return Object.assign(Object.assign({},K),{allLightningTransactions:H})}),(0,b.on)(Pt.QJ,(K,{payload:Ve})=>{const H=[...K.channels,...K.closedChannels];let _e=Ve.forwarding_events?JSON.parse(JSON.stringify(Ve)):{};return _e.forwarding_events&&(_e=B2(_e,H)),Object.assign(Object.assign({},K),{forwardingHistory:_e})})),B2=(K,Ve)=>(K.forwarding_events.forEach(H=>{if(Ve&&Ve.length>0)for(let _e=0;_e{const H=JSON.parse(JSON.stringify(K.apisCallStatus));return H[Ve.action]={status:Ve.status,statusCode:Ve.statusCode,message:Ve.message,URL:Ve.URL,filePath:Ve.filePath},Object.assign(Object.assign({},K),{apisCallStatus:H})}),(0,b.on)(si.oo,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{nodeSettings:Ve})),(0,b.on)(si.xH,(K,{payload:Ve})=>Object.assign(Object.assign({},a3),{nodeSettings:Ve})),(0,b.on)(si.CX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{information:Ve})),(0,b.on)(si.RX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{fees:Ve})),(0,b.on)(si.I8,(K,{payload:Ve})=>Ve.perkb?Object.assign(Object.assign({},K),{feeRatesPerKB:Ve}):Ve.perkw?Object.assign(Object.assign({},K),{feeRatesPerKW:Ve}):Object.assign({},K)),(0,b.on)(si.Lu,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{balance:Ve})),(0,b.on)(si.xS,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{localRemoteBalance:Ve})),(0,b.on)(si.Z8,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{peers:Ve})),(0,b.on)(si.X3,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{peers:[...K.peers,Ve]})),(0,b.on)(si.EK,(K,{payload:Ve})=>{const H=[...K.peers],_e=K.peers.findIndex(pt=>pt.id===Ve.id);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{peers:H})}),(0,b.on)(si.as,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{activeChannels:Ve.activeChannels,pendingChannels:Ve.pendingChannels,inactiveChannels:Ve.inactiveChannels})),(0,b.on)(si.OG,(K,{payload:Ve})=>{const H=[...K.peers];return H.forEach(_e=>{_e.id===Ve.id&&(_e.connected=!1,delete _e.netaddr)}),Object.assign(Object.assign({},K),{peers:H})}),(0,b.on)(si.HI,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{payments:Ve})),(0,b.on)(si.QJ,(K,{payload:Ve})=>{const H=[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels],_e=As(Ve.listForwards,H);switch(Ve.listForwards=_e,Ve.status){case Q.OO.SETTLED:const pt=K.fees;return pt.totalTxCount=0|Ve.totalForwards,Object.assign(Object.assign({},K),{fees:pt,forwardingHistory:Ve});case Q.OO.FAILED:return Object.assign(Object.assign({},K),{failedForwardingHistory:Ve});case Q.OO.LOCAL_FAILED:return Object.assign(Object.assign({},K),{localFailedForwardingHistory:Ve});default:return Object.assign({},K)}}),(0,b.on)(si.YP,(K,{payload:Ve})=>{const H=K.invoices;return H.invoices.unshift(Ve),Object.assign(Object.assign({},K),{invoices:H})}),(0,b.on)(si.Nr,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{invoices:Ve})),(0,b.on)(si.aL,(K,{payload:Ve})=>{const H=K.invoices;return H.invoices=H.invoices.map(_e=>_e.label===Ve.label?Ve:_e),Object.assign(Object.assign({},K),{invoices:H})}),(0,b.on)(si.UH,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{utxos:Ve})),(0,b.on)(si.Zu,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{offers:Ve})),(0,b.on)(si.ZH,(K,{payload:Ve})=>{const H=K.offers;return H.unshift(Ve),Object.assign(Object.assign({},K),{offers:H})}),(0,b.on)(si.JK,(K,{payload:Ve})=>{const H=[...K.offers],_e=K.offers.findIndex(pt=>pt.offer_id===Ve.offer.offer_id);return _e>-1&&H.splice(_e,1,Ve.offer),Object.assign(Object.assign({},K),{offers:H})}),(0,b.on)(si.d7,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{offersBookmarks:Ve})),(0,b.on)(si.e9,(K,{payload:Ve})=>{const H=[...K.offersBookmarks],_e=H.findIndex(pt=>pt.bolt12===Ve.bolt12);if(_e<0)H.unshift(Ve);else{const pt=Object.assign({},H[_e]);pt.title=Ve.title,pt.amountmSat=Ve.amountmSat,pt.lastUpdatedAt=Ve.lastUpdatedAt,pt.description=Ve.description,pt.vendor=Ve.vendor,H.splice(_e,1,pt)}return Object.assign(Object.assign({},K),{offersBookmarks:H})}),(0,b.on)(si.en,(K,{payload:Ve})=>{const H=[...K.offersBookmarks],_e=K.offersBookmarks.findIndex(pt=>pt.bolt12===Ve.bolt12);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{offersBookmarks:H})})),As=(K,Ve)=>(K&&K.length>0?K.forEach((H,_e)=>{if(Ve&&Ve.length>0)for(let pt=0;pt{const H=JSON.parse(JSON.stringify(K.apisCallStatus));return H[Ve.action]={status:Ve.status,statusCode:Ve.statusCode,message:Ve.message,URL:Ve.URL,filePath:Ve.filePath},Object.assign(Object.assign({},K),{apisCallStatus:H})}),(0,b.on)(zt.Zr,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{nodeSettings:Ve})),(0,b.on)(zt.Fd,(K,{payload:Ve})=>Object.assign(Object.assign({},Z1),{nodeSettings:Ve})),(0,b.on)(zt.CX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{information:Ve})),(0,b.on)(zt.RX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{fees:Ve})),(0,b.on)(zt.eN,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{activeChannels:Ve})),(0,b.on)(zt.TW,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{pendingChannels:Ve})),(0,b.on)(zt.i,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{inactiveChannels:Ve})),(0,b.on)(zt.HG,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{channelsStatus:Ve})),(0,b.on)(zt.Bw,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{onchainBalance:Ve})),(0,b.on)(zt.On,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{lightningBalance:Ve})),(0,b.on)(zt.Z8,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{peers:Ve})),(0,b.on)(zt.EK,(K,{payload:Ve})=>{const H=[...K.peers],_e=K.peers.findIndex(pt=>pt.nodeId===Ve.nodeId);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{peers:H})}),(0,b.on)(zt.OG,(K,{payload:Ve})=>{const H=[...K.activeChannels],_e=K.activeChannels.findIndex(pt=>pt.channelId===Ve.channelId);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{activeChannels:H})}),(0,b.on)(zt.HI,(K,{payload:Ve})=>{if(Ve&&Ve.sent){const H=[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels];Ve.sent.map(_e=>{const pt=K.peers.find(Ci=>Ci.nodeId===_e.recipientNodeId);return _e.recipientNodeAlias=pt?pt.alias:_e.recipientNodeId,_e.parts&&_e.parts.map(Ci=>{const xn=H.find(_r=>_r.channelId===Ci.toChannelId);return Ci.toChannelAlias=xn?xn.alias:Ci.toChannelId,_e.parts}),Ve.sent})}if(Ve&&Ve.relayed){const H=[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels];Ve.relayed.forEach(_e=>{_e=U2(_e,H)})}return Object.assign(Object.assign({},K),{payments:Ve})}),(0,b.on)(zt.Lf,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{transactions:Ve})),(0,b.on)(zt.YP,(K,{payload:Ve})=>{const H=K.invoices;return H.unshift(Ve),Object.assign(Object.assign({},K),{invoices:H})}),(0,b.on)(zt.Nr,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{invoices:Ve})),(0,b.on)(zt.aL,(K,{payload:Ve})=>{let H=K.invoices;return H=H.map(_e=>{if(_e.paymentHash===Ve.paymentHash){if(Ve.hasOwnProperty("type")){const pt=JSON.parse(JSON.stringify(_e));return pt.amountSettled=Ve.parts&&Ve.parts.length&&Ve.parts.length>0&&Ve.parts[0].amount?Ve.parts[0].amount/1e3:0,pt.receivedAt=Ve.parts&&Ve.parts.length&&Ve.parts.length>0&&Ve.parts[0].timestamp?Math.round(Ve.parts[0].timestamp/1e3):0,pt.status="received",pt}return Ve}return _e}),Object.assign(Object.assign({},K),{invoices:H})}),(0,b.on)(zt.DJ,(K,{payload:Ve})=>{let H=K.pendingChannels;return H=H.map(_e=>(_e.channelId===Ve.channelId&&_e.nodeId===Ve.remoteNodeId&&(Ve.currentState=Ve.currentState.replace(/_/g," "),_e.state=Ve.currentState),_e)),Object.assign(Object.assign({},K),{pendingChannels:H})}),(0,b.on)(zt.ti,(K,{payload:Ve})=>{const H=K.payments,_e=U2(Ve,[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels]);_e.amountIn=Math.round(Ve.amountIn/1e3),_e.amountOut=Math.round(Ve.amountOut/1e3),H.relayed.unshift(_e);const pt=Ve.amountIn-Ve.amountOut,Ci={localBalance:K.lightningBalance.localBalance+pt,remoteBalance:K.lightningBalance.remoteBalance-pt},xn=K.channelsStatus;xn.active.capacity=K.channelsStatus.active.capacity+pt;const _r={daily_fee:K.fees.daily_fee+pt,daily_txs:K.fees.daily_txs+1,weekly_fee:K.fees.weekly_fee+pt,weekly_txs:K.fees.weekly_txs+1,monthly_fee:K.fees.monthly_fee+pt,monthly_txs:K.fees.monthly_txs+1},Un=K.activeChannels;let ea=!1,hs=!1;for(const ar of Un){if(ar.channelId===Ve.fromChannelId){ea=!0;const sa=ar.toLocal+ar.toRemote;ar.toLocal=ar.toLocal+_e.amountIn,ar.toRemote=ar.toRemote-_e.amountIn,ar.balancedness=0===sa?1:+(1-Math.abs((ar.toLocal-ar.toRemote)/sa)).toFixed(3)}if(ar.channelId===Ve.toChannelId){hs=!0;const sa=ar.toLocal+ar.toRemote;ar.toLocal=ar.toLocal-_e.amountOut,ar.toRemote=ar.toRemote+_e.amountOut,ar.balancedness=0===sa?1:+(1-Math.abs((ar.toLocal-ar.toRemote)/sa)).toFixed(3)}if(hs&&ea)break}return Object.assign(Object.assign({},K),{payments:H,lightningBalance:Ci,channelStatus:xn,fees:_r,activeChannels:Un})})),U2=(K,Ve)=>{if("payment-relayed"===K.type)if(Ve&&Ve.length>0)for(let H=0;H0)for(let H=0;H{Ve[H].channelId.toString()===_e.channelId&&(_e.channelAlias=Ve[H].alias?Ve[H].alias:_e.channelId,_e.shortChannelId=Ve[H].shortChannelId?Ve[H].shortChannelId:"")}),K.outgoing.forEach(_e=>{Ve[H].channelId.toString()===_e.channelId&&(_e.channelAlias=Ve[H].alias?Ve[H].alias:_e.channelId,_e.shortChannelId=Ve[H].shortChannelId?Ve[H].shortChannelId:"")}),H===Ve.length-1&&(K.incoming[0].channelAlias||K.incoming.forEach(_e=>{_e.channelAlias=_e.channelId.substring(0,17)+"...",_e.shortChannelId=""}),K.outgoing[0].channelAlias||K.outgoing.forEach(_e=>{_e.channelAlias=_e.channelId.substring(0,17)+"...",_e.shortChannelId=""}));else K.incoming.forEach(H=>{H.channelAlias=H.channelId.substring(0,17)+"...",H.shortChannelId=""}),K.outgoing.forEach(H=>{H.channelAlias=H.channelId.substring(0,17)+"...",H.shortChannelId=""});K.amountIn=K.incoming.reduce((H,_e)=>H+_e.amount,0),K.fromChannelId=K.incoming[0].channelId,K.fromChannelAlias=K.incoming[0].channelAlias,K.fromShortChannelId=K.incoming[0].shortChannelId,K.amountOut=K.outgoing.reduce((H,_e)=>H+_e.amount,0),K.toChannelId=K.outgoing[0].channelId,K.toChannelAlias=K.outgoing[0].channelAlias,K.toShortChannelId=K.outgoing[0].shortChannelId}return K};let q4=(()=>{class K{}return K.\u0275fac=function(H){return new(H||K)},K.\u0275mod=e.oAB({type:K,bootstrap:[l1]}),K.\u0275inj=e.cJS({providers:[{provide:M.TP,useClass:F2,multi:!0},$r.a1,Se.m,wo.D,B1.d,Ur.W,mi.v,He],imports:[[f.PW,ds.m,O2,a.xu,t.t6,E.forRoot({idle:3590,timeout:10,ping:12e3}),b.Aw.forRoot({root:Q4,lnd:r3,cln:G1,ecl:uo},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),d.sQ.forRoot([ut.V,Ts.l,V2.J,U1.o]),Qe.NZ.production?[]:P.FT.instrument()]]}),K})();Qe.NZ.production&&(0,e.G48)(),t.q6().bootstrapModule(q4).catch(K=>console.log(K))},7854:(Fe,Y)=>{"use strict";function p(Q){return Object.keys(Q).map(Ge=>Q[Ge])}var Q;Object.defineProperty(Y,"__esModule",{value:!0}),(Q=Y.HashAlgorithms||(Y.HashAlgorithms={})).SHA1="sha1",Q.SHA256="sha256",Q.SHA512="sha512";const t=p(Y.HashAlgorithms);!function(Q){Q.ASCII="ascii",Q.BASE64="base64",Q.HEX="hex",Q.LATIN1="latin1",Q.UTF8="utf8"}(Y.KeyEncodings||(Y.KeyEncodings={}));const e=p(Y.KeyEncodings);!function(Q){Q.HOTP="hotp",Q.TOTP="totp"}(Y.Strategy||(Y.Strategy={}));const f=p(Y.Strategy),M=()=>{throw new Error("Please provide an options.createDigest implementation.")};function a(Q){return/^(\d+)$/.test(Q)}function b(Q,Ge,ve){return Q.length>=Ge?Q:`${Array(Ge+1).join(ve)}${Q}`.slice(-1*Ge)}function d(Q){const Ge=`otpauth://${Q.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,ve=[];if(f.indexOf(Q.type)<0)throw new Error(`Expecting options.type to be one of ${f.join(", ")}. Received ${Q.type}.`);if("hotp"===Q.type){if(null==Q.counter||"number"!=typeof Q.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');ve.push(`&counter=${Q.counter}`)}return"totp"===Q.type&&Q.step&&ve.push(`&period=${Q.step}`),Q.digits&&ve.push(`&digits=${Q.digits}`),Q.algorithm&&ve.push(`&algorithm=${Q.algorithm.toUpperCase()}`),Q.issuer&&ve.push(`&issuer=${encodeURIComponent(Q.issuer)}`),Ge.replace("{labelPrefix}",encodeURIComponent(Q.issuer||Q.accountName)).replace("{accountName}",encodeURIComponent(Q.accountName)).replace("{secret}",Q.secret).replace("{query}",ve.join(""))}class P{constructor(Ge={}){this._defaultOptions=Object.freeze(Us({},Ge)),this._options=Object.freeze({})}create(Ge={}){return new P(Ge)}clone(Ge={}){const ve=this.create(Us(Us({},this._defaultOptions),Ge));return ve.options=this._options,ve}get options(){return Object.freeze(Us(Us({},this._defaultOptions),this._options))}set options(Ge){this._options=Object.freeze(Us(Us({},this._options),Ge))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function h(Q){if("function"!=typeof Q.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof Q.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof Q.digits)throw new Error("Expecting options.digits to be a number.");if(!Q.algorithm||t.indexOf(Q.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${Q.algorithm}.`);if(!Q.encoding||e.indexOf(Q.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${Q.encoding}.`)}const A=(Q,Ge,ve)=>Buffer.from(Ge,ve).toString("hex");function w(){return{algorithm:Y.HashAlgorithms.SHA1,createHmacKey:A,createDigest:M,digits:6,encoding:Y.KeyEncodings.ASCII}}function D(Q){const Ge=Us(Us({},w()),Q);return h(Ge),Object.freeze(Ge)}function L(Q){return b(Q.toString(16),16,"0")}function k(Q,Ge){const ve=Buffer.from(Q,"hex"),F=15&ve[ve.length-1],lt=((127&ve[F])<<24|(255&ve[F+1])<<16|(255&ve[F+2])<<8|255&ve[F+3])%Math.pow(10,Ge);return b(String(lt),Ge,"0")}function U(Q,Ge,ve){const F=ve.digest||function S(Q,Ge,ve){const F=L(Ge),De=ve.createHmacKey(ve.algorithm,Q,ve.encoding);return ve.createDigest(ve.algorithm,De,F)}(Q,Ge,ve);return k(F,ve.digits)}function Z(Q,Ge,ve,F){return!!a(Q)&&Q===U(Ge,ve,F)}function j(Q,Ge,ve,F,De){return d({algorithm:De.algorithm,digits:De.digits,type:Y.Strategy.HOTP,accountName:Q,counter:F,issuer:Ge,secret:ve})}class ne extends P{create(Ge={}){return new ne(Ge)}allOptions(){return D(this.options)}generate(Ge,ve){return U(Ge,ve,this.allOptions())}check(Ge,ve,F){return Z(Ge,ve,F,this.allOptions())}verify(Ge){if("object"!=typeof Ge)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ge.token,Ge.secret,Ge.counter)}keyuri(Ge,ve,F,De){return j(Ge,ve,F,De,this.allOptions())}}function X(Q){if("number"==typeof Q)return[Math.abs(Q),Math.abs(Q)];if(Array.isArray(Q)){const[Ge,ve]=Q;if("number"==typeof Ge&&"number"==typeof ve)return[Math.abs(Ge),Math.abs(ve)]}throw new Error("Expecting options.window to be an number or [number, number].")}function de(Q){if(h(Q),X(Q.window),"number"!=typeof Q.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof Q.step)throw new Error("Expecting options.step to be a number.")}const ee=(Q,Ge,ve)=>{const F=Q.length,De=Buffer.from(Q,Ge).toString("hex");if(F{switch(Q){case Y.HashAlgorithms.SHA1:return ee(Ge,ve,20);case Y.HashAlgorithms.SHA256:return ee(Ge,ve,32);case Y.HashAlgorithms.SHA512:return ee(Ge,ve,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${Q}.`)}};function ce(){return{algorithm:Y.HashAlgorithms.SHA1,createDigest:M,createHmacKey:te,digits:6,encoding:Y.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function J(Q){const Ge=Us(Us({},ce()),Q);return de(Ge),Object.freeze(Ge)}function me(Q,Ge){return Math.floor(Q/Ge/1e3)}function x(Q,Ge){return U(Q,me(Ge.epoch,Ge.step),Ge)}function i(Q,Ge,ve,F){const De=[];if(0===F)return De;for(let lt=1;lt<=F;lt++)De.push(Q+Ge*lt*ve);return De}function r(Q,Ge,ve){const F=X(ve),De=1e3*Ge;return{current:Q,past:i(Q,-1,De,F[0]),future:i(Q,1,De,F[1])}}function u(Q,Ge,ve){return!!a(Q)&&Q===x(Ge,ve)}function c(Q,Ge,ve,F){let De=null;return Q.some((lt,Ie)=>!!u(Ge,ve,$C(Us({},F),{epoch:lt}))&&(De=Ie+1,!0)),De}function _(Q,Ge,ve){if(u(Q,Ge,ve))return 0;const F=r(ve.epoch,ve.step,ve.window),De=c(F.past,Q,Ge,ve);return null!==De?-1*De:c(F.future,Q,Ge,ve)}function E(Q,Ge){return Math.floor(Q/1e3)%Ge}function I(Q,Ge){return Ge-E(Q,Ge)}function v(Q,Ge,ve,F){return d({algorithm:F.algorithm,digits:F.digits,step:F.step,type:Y.Strategy.TOTP,accountName:Q,issuer:Ge,secret:ve})}class n extends ne{create(Ge={}){return new n(Ge)}allOptions(){return J(this.options)}generate(Ge){return x(Ge,this.allOptions())}checkDelta(Ge,ve){return _(Ge,ve,this.allOptions())}check(Ge,ve){return"number"==typeof this.checkDelta(Ge,ve)}verify(Ge){if("object"!=typeof Ge)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ge.token,Ge.secret)}timeRemaining(){const Ge=this.allOptions();return I(Ge.epoch,Ge.step)}timeUsed(){const Ge=this.allOptions();return E(Ge.epoch,Ge.step)}keyuri(Ge,ve,F){return v(Ge,ve,F,this.allOptions())}}function C(Q){if(de(Q),"function"!=typeof Q.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(Q.keyEncoder&&"function"!=typeof Q.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function B(){return{algorithm:Y.HashAlgorithms.SHA1,createDigest:M,createHmacKey:te,digits:6,encoding:Y.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function N(Q){const Ge=Us(Us({},B()),Q);return C(Ge),Object.freeze(Ge)}function z(Q,Ge){return Ge.keyEncoder(Q,Ge.encoding)}function oe(Q,Ge){return Ge.keyDecoder(Q,Ge.encoding)}function ge(Q,Ge){return z(Ge.createRandomBytes(Q,Ge.encoding),Ge)}function be(Q,Ge){return x(oe(Q,Ge),Ge)}function Re(Q,Ge,ve){return _(Q,oe(Ge,ve),ve)}class we extends n{create(Ge={}){return new we(Ge)}allOptions(){return N(this.options)}generate(Ge){return be(Ge,this.allOptions())}checkDelta(Ge,ve){return Re(Ge,ve,this.allOptions())}encode(Ge){return z(Ge,this.allOptions())}decode(Ge){return oe(Ge,this.allOptions())}generateSecret(Ge=10){return ge(Ge,this.allOptions())}}Y.Authenticator=we,Y.HASH_ALGORITHMS=t,Y.HOTP=ne,Y.KEY_ENCODINGS=e,Y.OTP=P,Y.STRATEGY=f,Y.TOTP=n,Y.authenticatorCheckWithWindow=Re,Y.authenticatorDecoder=oe,Y.authenticatorDefaultOptions=B,Y.authenticatorEncoder=z,Y.authenticatorGenerateSecret=ge,Y.authenticatorOptionValidator=C,Y.authenticatorOptions=N,Y.authenticatorToken=be,Y.createDigestPlaceholder=M,Y.hotpCheck=Z,Y.hotpCounter=L,Y.hotpCreateHmacKey=A,Y.hotpDefaultOptions=w,Y.hotpDigestToToken=k,Y.hotpKeyuri=j,Y.hotpOptions=D,Y.hotpOptionsValidator=h,Y.hotpToken=U,Y.isTokenValid=a,Y.keyuri=d,Y.objectValues=p,Y.padStart=b,Y.totpCheck=u,Y.totpCheckByEpoch=c,Y.totpCheckWithWindow=_,Y.totpCounter=me,Y.totpCreateHmacKey=te,Y.totpDefaultOptions=ce,Y.totpEpochAvailable=r,Y.totpKeyuri=v,Y.totpOptions=J,Y.totpOptionsValidator=de,Y.totpPadSecret=ee,Y.totpTimeRemaining=I,Y.totpTimeUsed=E,Y.totpToken=x},6098:(Fe,Y,p)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(1348));Y.createDigest=(a,b,d)=>e.createHmac(a,Buffer.from(b,"hex")).update(Buffer.from(d,"hex")).digest().toString("hex"),Y.createRandomBytes=(a,b)=>e.randomBytes(a).toString(b)},1415:(Fe,Y,p)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(2167));Y.keyDecoder=(a,b)=>e.decode(a).toString(b),Y.keyEncoder=(a,b)=>e.encode(Buffer.from(a,b).toString("ascii")).toString().replace(/=/g,"")},842:(Fe,Y,p)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var t=p(6098),e=p(1415),f=p(7854);const M=new f.HOTP({createDigest:t.createDigest}),a=new f.TOTP({createDigest:t.createDigest}),b=new f.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});Y.authenticator=b,Y.hotp=M,Y.totp=a},7977:(Fe,Y,p)=>{"use strict";const t=Y;t.bignum=p(3854),t.define=p(9516).define,t.base=p(7813),t.constants=p(5459),t.decoders=p(196),t.encoders=p(1131)},9516:(Fe,Y,p)=>{"use strict";const t=p(1131),e=p(196),f=p(3894);function a(b,d){this.name=b,this.body=d,this.decoders={},this.encoders={}}Y.define=function(d,P){return new a(d,P)},a.prototype._createNamed=function(d){const P=this.name;function h(A){this._initNamed(A,P)}return f(h,d),h.prototype._initNamed=function(w,D){d.call(this,w,D)},new h(this)},a.prototype._getDecoder=function(d){return this.decoders.hasOwnProperty(d=d||"der")||(this.decoders[d]=this._createNamed(e[d])),this.decoders[d]},a.prototype.decode=function(d,P,h){return this._getDecoder(P).decode(d,h)},a.prototype._getEncoder=function(d){return this.encoders.hasOwnProperty(d=d||"der")||(this.encoders[d]=this._createNamed(t[d])),this.encoders[d]},a.prototype.encode=function(d,P,h){return this._getEncoder(P).encode(d,h)}},2769:(Fe,Y,p)=>{"use strict";const t=p(3894),e=p(4919).b,f=p(2038).Buffer;function M(b,d){e.call(this,d),f.isBuffer(b)?(this.base=b,this.offset=0,this.length=b.length):this.error("Input not Buffer")}function a(b,d){if(Array.isArray(b))this.length=0,this.value=b.map(function(P){return a.isEncoderBuffer(P)||(P=new a(P,d)),this.length+=P.length,P},this);else if("number"==typeof b){if(!(0<=b&&b<=255))return d.error("non-byte EncoderBuffer value");this.value=b,this.length=1}else if("string"==typeof b)this.value=b,this.length=f.byteLength(b);else{if(!f.isBuffer(b))return d.error("Unsupported type: "+typeof b);this.value=b,this.length=b.length}}t(M,e),Y.C=M,M.isDecoderBuffer=function(d){return d instanceof M||"object"==typeof d&&f.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},M.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},M.prototype.restore=function(d){const P=new M(this.base);return P.offset=d.offset,P.length=this.offset,this.offset=d.offset,e.prototype.restore.call(this,d.reporter),P},M.prototype.isEmpty=function(){return this.offset===this.length},M.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},M.prototype.skip=function(d,P){if(!(this.offset+d<=this.length))return this.error(P||"DecoderBuffer overrun");const h=new M(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+d,this.offset+=d,h},M.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},Y.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=f.alloc(this.length)),P||(P=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(h){h.join(d,P),P+=h.length}):("number"==typeof this.value?d[P]=this.value:"string"==typeof this.value?d.write(this.value,P):f.isBuffer(this.value)&&this.value.copy(d,P),P+=this.length)),d}},7813:(Fe,Y,p)=>{"use strict";const t=Y;t.Reporter=p(4919).b,t.DecoderBuffer=p(2769).C,t.EncoderBuffer=p(2769).R,t.Node=p(1430)},1430:(Fe,Y,p)=>{"use strict";const t=p(4919).b,e=p(2769).R,f=p(2769).C,M=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"],b=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function P(A,w,D){const L={};this._baseState=L,L.name=D,L.enc=A,L.parent=w||null,L.children=null,L.tag=null,L.args=null,L.reverseArgs=null,L.choice=null,L.optional=!1,L.any=!1,L.obj=!1,L.use=null,L.useDecoder=null,L.key=null,L.default=null,L.explicit=null,L.implicit=null,L.contains=null,L.parent||(L.children=[],this._wrap())}Fe.exports=P;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];P.prototype.clone=function(){const w=this._baseState,D={};h.forEach(function(k){D[k]=w[k]});const L=new this.constructor(D.parent);return L._baseState=D,L},P.prototype._wrap=function(){const w=this._baseState;b.forEach(function(D){this[D]=function(){const k=new this.constructor(this);return w.children.push(k),k[D].apply(k,arguments)}},this)},P.prototype._init=function(w){const D=this._baseState;M(null===D.parent),w.call(this),D.children=D.children.filter(function(L){return L._baseState.parent===this},this),M.equal(D.children.length,1,"Root node can have only one child")},P.prototype._useArgs=function(w){const D=this._baseState,L=w.filter(function(k){return k instanceof this.constructor},this);w=w.filter(function(k){return!(k instanceof this.constructor)},this),0!==L.length&&(M(null===D.children),D.children=L,L.forEach(function(k){k._baseState.parent=this},this)),0!==w.length&&(M(null===D.args),D.args=w,D.reverseArgs=w.map(function(k){if("object"!=typeof k||k.constructor!==Object)return k;const S={};return Object.keys(k).forEach(function(U){U==(0|U)&&(U|=0),S[k[U]]=U}),S}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(A){P.prototype[A]=function(){throw new Error(A+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(A){P.prototype[A]=function(){const D=this._baseState,L=Array.prototype.slice.call(arguments);return M(null===D.tag),D.tag=A,this._useArgs(L),this}}),P.prototype.use=function(w){M(w);const D=this._baseState;return M(null===D.use),D.use=w,this},P.prototype.optional=function(){return this._baseState.optional=!0,this},P.prototype.def=function(w){const D=this._baseState;return M(null===D.default),D.default=w,D.optional=!0,this},P.prototype.explicit=function(w){const D=this._baseState;return M(null===D.explicit&&null===D.implicit),D.explicit=w,this},P.prototype.implicit=function(w){const D=this._baseState;return M(null===D.explicit&&null===D.implicit),D.implicit=w,this},P.prototype.obj=function(){const w=this._baseState,D=Array.prototype.slice.call(arguments);return w.obj=!0,0!==D.length&&this._useArgs(D),this},P.prototype.key=function(w){const D=this._baseState;return M(null===D.key),D.key=w,this},P.prototype.any=function(){return this._baseState.any=!0,this},P.prototype.choice=function(w){const D=this._baseState;return M(null===D.choice),D.choice=w,this._useArgs(Object.keys(w).map(function(L){return w[L]})),this},P.prototype.contains=function(w){const D=this._baseState;return M(null===D.use),D.contains=w,this},P.prototype._decode=function(w,D){const L=this._baseState;if(null===L.parent)return w.wrapResult(L.children[0]._decode(w,D));let Z,k=L.default,S=!0,U=null;if(null!==L.key&&(U=w.enterKey(L.key)),L.optional){let j=null;if(null!==L.explicit?j=L.explicit:null!==L.implicit?j=L.implicit:null!==L.tag&&(j=L.tag),null!==j||L.any){if(S=this._peekTag(w,j,L.any),w.isError(S))return S}else{const ne=w.save();try{null===L.choice?this._decodeGeneric(L.tag,w,D):this._decodeChoice(w,D),S=!0}catch(X){S=!1}w.restore(ne)}}if(L.obj&&S&&(Z=w.enterObject()),S){if(null!==L.explicit){const ne=this._decodeTag(w,L.explicit);if(w.isError(ne))return ne;w=ne}const j=w.offset;if(null===L.use&&null===L.choice){let ne;L.any&&(ne=w.save());const X=this._decodeTag(w,null!==L.implicit?L.implicit:L.tag,L.any);if(w.isError(X))return X;L.any?k=w.raw(ne):w=X}if(D&&D.track&&null!==L.tag&&D.track(w.path(),j,w.length,"tagged"),D&&D.track&&null!==L.tag&&D.track(w.path(),w.offset,w.length,"content"),L.any||(k=null===L.choice?this._decodeGeneric(L.tag,w,D):this._decodeChoice(w,D)),w.isError(k))return k;if(!L.any&&null===L.choice&&null!==L.children&&L.children.forEach(function(X){X._decode(w,D)}),L.contains&&("octstr"===L.tag||"bitstr"===L.tag)){const ne=new f(k);k=this._getUse(L.contains,w._reporterState.obj)._decode(ne,D)}}return L.obj&&S&&(k=w.leaveObject(Z)),null===L.key||null===k&&!0!==S?null!==U&&w.exitKey(U):w.leaveKey(U,L.key,k),k},P.prototype._decodeGeneric=function(w,D,L){const k=this._baseState;return"seq"===w||"set"===w?null:"seqof"===w||"setof"===w?this._decodeList(D,w,k.args[0],L):/str$/.test(w)?this._decodeStr(D,w,L):"objid"===w&&k.args?this._decodeObjid(D,k.args[0],k.args[1],L):"objid"===w?this._decodeObjid(D,null,null,L):"gentime"===w||"utctime"===w?this._decodeTime(D,w,L):"null_"===w?this._decodeNull(D,L):"bool"===w?this._decodeBool(D,L):"objDesc"===w?this._decodeStr(D,w,L):"int"===w||"enum"===w?this._decodeInt(D,k.args&&k.args[0],L):null!==k.use?this._getUse(k.use,D._reporterState.obj)._decode(D,L):D.error("unknown tag: "+w)},P.prototype._getUse=function(w,D){const L=this._baseState;return L.useDecoder=this._use(w,D),M(null===L.useDecoder._baseState.parent),L.useDecoder=L.useDecoder._baseState.children[0],L.implicit!==L.useDecoder._baseState.implicit&&(L.useDecoder=L.useDecoder.clone(),L.useDecoder._baseState.implicit=L.implicit),L.useDecoder},P.prototype._decodeChoice=function(w,D){const L=this._baseState;let k=null,S=!1;return Object.keys(L.choice).some(function(U){const Z=w.save(),j=L.choice[U];try{const ne=j._decode(w,D);if(w.isError(ne))return!1;k={type:U,value:ne},S=!0}catch(ne){return w.restore(Z),!1}return!0},this),S?k:w.error("Choice not matched")},P.prototype._createEncoderBuffer=function(w){return new e(w,this.reporter)},P.prototype._encode=function(w,D,L){const k=this._baseState;if(null!==k.default&&k.default===w)return;const S=this._encodeValue(w,D,L);return void 0===S||this._skipDefault(S,D,L)?void 0:S},P.prototype._encodeValue=function(w,D,L){const k=this._baseState;if(null===k.parent)return k.children[0]._encode(w,D||new t);let S=null;if(this.reporter=D,k.optional&&void 0===w){if(null===k.default)return;w=k.default}let U=null,Z=!1;if(k.any)S=this._createEncoderBuffer(w);else if(k.choice)S=this._encodeChoice(w,D);else if(k.contains)U=this._getUse(k.contains,L)._encode(w,D),Z=!0;else if(k.children)U=k.children.map(function(j){if("null_"===j._baseState.tag)return j._encode(null,D,w);if(null===j._baseState.key)return D.error("Child should have a key");const ne=D.enterKey(j._baseState.key);if("object"!=typeof w)return D.error("Child expected, but input is not object");const X=j._encode(w[j._baseState.key],D,w);return D.leaveKey(ne),X},this).filter(function(j){return j}),U=this._createEncoderBuffer(U);else if("seqof"===k.tag||"setof"===k.tag){if(!k.args||1!==k.args.length)return D.error("Too many args for : "+k.tag);if(!Array.isArray(w))return D.error("seqof/setof, but data is not Array");const j=this.clone();j._baseState.implicit=null,U=this._createEncoderBuffer(w.map(function(ne){return this._getUse(this._baseState.args[0],w)._encode(ne,D)},j))}else null!==k.use?S=this._getUse(k.use,L)._encode(w,D):(U=this._encodePrimitive(k.tag,w),Z=!0);if(!k.any&&null===k.choice){const j=null!==k.implicit?k.implicit:k.tag,ne=null===k.implicit?"universal":"context";null===j?null===k.use&&D.error("Tag could be omitted only for .use()"):null===k.use&&(S=this._encodeComposite(j,Z,ne,U))}return null!==k.explicit&&(S=this._encodeComposite(k.explicit,!1,"context",S)),S},P.prototype._encodeChoice=function(w,D){const L=this._baseState,k=L.choice[w.type];return k||M(!1,w.type+" not found in "+JSON.stringify(Object.keys(L.choice))),k._encode(w.value,D)},P.prototype._encodePrimitive=function(w,D){const L=this._baseState;if(/str$/.test(w))return this._encodeStr(D,w);if("objid"===w&&L.args)return this._encodeObjid(D,L.reverseArgs[0],L.args[1]);if("objid"===w)return this._encodeObjid(D,null,null);if("gentime"===w||"utctime"===w)return this._encodeTime(D,w);if("null_"===w)return this._encodeNull();if("int"===w||"enum"===w)return this._encodeInt(D,L.args&&L.reverseArgs[0]);if("bool"===w)return this._encodeBool(D);if("objDesc"===w)return this._encodeStr(D,w);throw new Error("Unsupported tag: "+w)},P.prototype._isNumstr=function(w){return/^[0-9 ]*$/.test(w)},P.prototype._isPrintstr=function(w){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(w)}},4919:(Fe,Y,p)=>{"use strict";const t=p(3894);function e(M){this._reporterState={obj:null,path:[],options:M||{},errors:[]}}function f(M,a){this.path=M,this.rethrow(a)}Y.b=e,e.prototype.isError=function(a){return a instanceof f},e.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},e.prototype.restore=function(a){const b=this._reporterState;b.obj=a.obj,b.path=b.path.slice(0,a.pathLen)},e.prototype.enterKey=function(a){return this._reporterState.path.push(a)},e.prototype.exitKey=function(a){const b=this._reporterState;b.path=b.path.slice(0,a-1)},e.prototype.leaveKey=function(a,b,d){const P=this._reporterState;this.exitKey(a),null!==P.obj&&(P.obj[b]=d)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const a=this._reporterState,b=a.obj;return a.obj={},b},e.prototype.leaveObject=function(a){const b=this._reporterState,d=b.obj;return b.obj=a,d},e.prototype.error=function(a){let b;const d=this._reporterState,P=a instanceof f;if(b=P?a:new f(d.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),a.message||a,a.stack),!d.options.partial)throw b;return P||d.errors.push(b),b},e.prototype.wrapResult=function(a){const b=this._reporterState;return b.options.partial?{result:this.isError(a)?null:a,errors:b.errors}:a},t(f,Error),f.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,f),!this.stack)try{throw new Error(this.message)}catch(b){this.stack=b.stack}return this}},5496:(Fe,Y)=>{"use strict";function p(t){const e={};return Object.keys(t).forEach(function(f){(0|f)==f&&(f|=0),e[t[f]]=f}),e}Y.tagClass={0:"universal",1:"application",2:"context",3:"private"},Y.tagClassByName=p(Y.tagClass),Y.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"},Y.tagByName=p(Y.tag)},5459:(Fe,Y,p)=>{"use strict";const t=Y;t._reverse=function(f){const M={};return Object.keys(f).forEach(function(a){(0|a)==a&&(a|=0),M[f[a]]=a}),M},t.der=p(5496)},7127:(Fe,Y,p)=>{"use strict";const t=p(3894),e=p(3854),f=p(2769).C,M=p(1430),a=p(5496);function b(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new d,this.tree._init(A.body)}function d(A){M.call(this,"der",A)}function P(A,w){let D=A.readUInt8(w);if(A.isError(D))return D;const L=a.tagClass[D>>6],k=0==(32&D);if(31==(31&D)){let U=D;for(D=0;128==(128&U);){if(U=A.readUInt8(w),A.isError(U))return U;D<<=7,D|=127&U}}else D&=31;return{cls:L,primitive:k,tag:D,tagStr:a.tag[D]}}function h(A,w,D){let L=A.readUInt8(D);if(A.isError(L))return L;if(!w&&128===L)return null;if(0==(128&L))return L;const k=127&L;if(k>4)return A.error("length octect is too long");L=0;for(let S=0;S{"use strict";const t=Y;t.der=p(7127),t.pem=p(9617)},9617:(Fe,Y,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(7127);function M(a){f.call(this,a),this.enc="pem"}t(M,f),Fe.exports=M,M.prototype.decode=function(b,d){const P=b.toString().split(/[\r\n]+/g),h=d.label.toUpperCase(),A=/^-----(BEGIN|END) ([^-]+)-----$/;let w=-1,D=-1;for(let S=0;S{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(1430),M=p(5496);function a(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new b,this.tree._init(h.body)}function b(h){f.call(this,"der",h)}function d(h){return h<10?"0"+h:h}Fe.exports=a,a.prototype.encode=function(A,w){return this.tree._encode(A,w).join()},t(b,f),b.prototype._encodeComposite=function(A,w,D,L){const k=function P(h,A,w,D){let L;if("seqof"===h?h="seq":"setof"===h&&(h="set"),M.tagByName.hasOwnProperty(h))L=M.tagByName[h];else{if("number"!=typeof h||(0|h)!==h)return D.error("Unknown tag: "+h);L=h}return L>=31?D.error("Multi-octet tag encoding unsupported"):(A||(L|=32),L|=M.tagClassByName[w||"universal"]<<6,L)}(A,w,D,this.reporter);if(L.length<128){const Z=e.alloc(2);return Z[0]=k,Z[1]=L.length,this._createEncoderBuffer([Z,L])}let S=1;for(let Z=L.length;Z>=256;Z>>=8)S++;const U=e.alloc(2+S);U[0]=k,U[1]=128|S;for(let Z=1+S,j=L.length;j>0;Z--,j>>=8)U[Z]=255&j;return this._createEncoderBuffer([U,L])},b.prototype._encodeStr=function(A,w){if("bitstr"===w)return this._createEncoderBuffer([0|A.unused,A.data]);if("bmpstr"===w){const D=e.alloc(2*A.length);for(let L=0;L=40)return this.reporter.error("Second objid identifier OOB");A.splice(0,2,40*A[0]+A[1])}let L=0;for(let U=0;U=128;Z>>=7)L++}const k=e.alloc(L);let S=k.length-1;for(let U=A.length-1;U>=0;U--){let Z=A[U];for(k[S--]=127&Z;(Z>>=7)>0;)k[S--]=128|127&Z}return this._createEncoderBuffer(k)},b.prototype._encodeTime=function(A,w){let D;const L=new Date(A);return"gentime"===w?D=[d(L.getUTCFullYear()),d(L.getUTCMonth()+1),d(L.getUTCDate()),d(L.getUTCHours()),d(L.getUTCMinutes()),d(L.getUTCSeconds()),"Z"].join(""):"utctime"===w?D=[d(L.getUTCFullYear()%100),d(L.getUTCMonth()+1),d(L.getUTCDate()),d(L.getUTCHours()),d(L.getUTCMinutes()),d(L.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+w+" time is not supported yet"),this._encodeStr(D,"octstr")},b.prototype._encodeNull=function(){return this._createEncoderBuffer("")},b.prototype._encodeInt=function(A,w){if("string"==typeof A){if(!w)return this.reporter.error("String int or enum given, but no values map");if(!w.hasOwnProperty(A))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(A));A=w[A]}if("number"!=typeof A&&!e.isBuffer(A)){const k=A.toArray();!A.sign&&128&k[0]&&k.unshift(0),A=e.from(k)}if(e.isBuffer(A)){let k=A.length;0===A.length&&k++;const S=e.alloc(k);return A.copy(S),0===A.length&&(S[0]=0),this._createEncoderBuffer(S)}if(A<128)return this._createEncoderBuffer(A);if(A<256)return this._createEncoderBuffer([0,A]);let D=1;for(let k=A;k>=256;k>>=8)D++;const L=new Array(D);for(let k=L.length-1;k>=0;k--)L[k]=255&A,A>>=8;return 128&L[0]&&L.unshift(0),this._createEncoderBuffer(e.from(L))},b.prototype._encodeBool=function(A){return this._createEncoderBuffer(A?255:0)},b.prototype._use=function(A,w){return"function"==typeof A&&(A=A(w)),A._getEncoder("der").tree},b.prototype._skipDefault=function(A,w,D){const L=this._baseState;let k;if(null===L.default)return!1;const S=A.join();if(void 0===L.defaultBuffer&&(L.defaultBuffer=this._encodeValue(L.default,w,D).join()),S.length!==L.defaultBuffer.length)return!1;for(k=0;k{"use strict";const t=Y;t.der=p(6374),t.pem=p(3530)},3530:(Fe,Y,p)=>{"use strict";const t=p(3894),e=p(6374);function f(M){e.call(this,M),this.enc="pem"}t(f,e),Fe.exports=f,f.prototype.encode=function(a,b){const P=e.prototype.encode.call(this,a).toString("base64"),h=["-----BEGIN "+b.label+"-----"];for(let A=0;A=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,_=Math.min(x.length,r),E=i;E<_;E++){var I=x.charCodeAt(E)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[_]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===u)for(c=0,_=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(i,r,c)<<_,this.words[E]|=67108863&I,_>=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,_=1;_<=67108863;_*=r)c++;c--,_=_/r|0;for(var E=i.length-u,I=E%c,v=Math.min(E,E-I)+u,n=0,C=u;C1&&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 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"],w=[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],D=[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,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],_=0|i.words[0],E=c*_,v=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&v,N=Math.min(n,i.length-1),z=Math.max(0,n-x.length+1);z<=N;z++)C+=(E=(c=0|x.words[n-z|0])*(_=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,v=0|C}return 0!==v?r.words[n]=0|v:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,_=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-v.length]+v+u:v+u,(c+=2)>=26&&(c-=26,E--)}for(0!==_&&(u=_.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],C=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(C).toString(i);u=(B=B.idivn(C)).isZero()?N+u:A[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),_=u||Math.max(1,c);f(c<=_,"byte array longer than desired length"),f(_>0,"Requested array length <= 0"),this.strip();var v,n,E="le"===r,I=new i(_),C=this.clone();if(E){for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[n]=v;for(;n<_;n++)I[n]=0}else{for(n=0;n<_-c;n++)I[n]=0;for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[_-n-1]=v}return I},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var _=0,E=0;E>>26;for(;0!==_&&E>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,_=i):(c=i,_=this);for(var E=0,I=0;I<_.length;I++)E=(r=(0|c.words[I])-(0|_.words[I])+E)>>26,this.words[I]=67108863&r;for(;0!==E&&I>26,this.words[I]=67108863&r;if(0===E&&I>>13,oe=0|c[1],ge=8191&oe,be=oe>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,De=0|c[4],lt=8191&De,Ie=De>>>13,Ae=0|c[5],se=8191&Ae,Te=Ae>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|_[0],xt=8191&ui,Nt=ui>>>13,gt=0|_[1],et=8191>,vt=gt>>>13,$t=0|_[2],jt=8191&$t,Pe=$t>>>13,Oe=0|_[3],le=8191&Oe,xe=Oe>>>13,ht=0|_[4],ft=8191&ht,Ht=ht>>>13,it=0|_[5],Ne=8191&it,tt=it>>>13,Je=0|_[6],Se=8191&Je,Ue=Je>>>13,rt=0|_[7],at=8191&rt,yt=rt>>>13,gi=0|_[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|_[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(I+(v=Math.imul(N,xt))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(z,xt)|0))<<13)|0;I=((C=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,v=Math.imul(ge,xt),n=(n=Math.imul(ge,Nt))+Math.imul(be,xt)|0,C=Math.imul(be,Nt);var Wi=(I+(v=v+Math.imul(N,et)|0)|0)+((8191&(n=(n=n+Math.imul(N,vt)|0)+Math.imul(z,et)|0))<<13)|0;I=((C=C+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,v=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,C=Math.imul(Q,Nt),v=v+Math.imul(ge,et)|0,n=(n=n+Math.imul(ge,vt)|0)+Math.imul(be,et)|0,C=C+Math.imul(be,vt)|0;var Gi=(I+(v=v+Math.imul(N,jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;I=((C=C+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,v=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,C=Math.imul(F,Nt),v=v+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,C=C+Math.imul(Q,vt)|0,v=v+Math.imul(ge,jt)|0,n=(n=n+Math.imul(ge,Pe)|0)+Math.imul(be,jt)|0,C=C+Math.imul(be,Pe)|0;var Yi=(I+(v=v+Math.imul(N,le)|0)|0)+((8191&(n=(n=n+Math.imul(N,xe)|0)+Math.imul(z,le)|0))<<13)|0;I=((C=C+Math.imul(z,xe)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,v=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,C=Math.imul(Ie,Nt),v=v+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,C=C+Math.imul(F,vt)|0,v=v+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,C=C+Math.imul(Q,Pe)|0,v=v+Math.imul(ge,le)|0,n=(n=n+Math.imul(ge,xe)|0)+Math.imul(be,le)|0,C=C+Math.imul(be,xe)|0;var ze=(I+(v=v+Math.imul(N,ft)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;I=((C=C+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,v=Math.imul(se,xt),n=(n=Math.imul(se,Nt))+Math.imul(Te,xt)|0,C=Math.imul(Te,Nt),v=v+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,C=C+Math.imul(Ie,vt)|0,v=v+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,C=C+Math.imul(F,Pe)|0,v=v+Math.imul(we,le)|0,n=(n=n+Math.imul(we,xe)|0)+Math.imul(Q,le)|0,C=C+Math.imul(Q,xe)|0,v=v+Math.imul(ge,ft)|0,n=(n=n+Math.imul(ge,Ht)|0)+Math.imul(be,ft)|0,C=C+Math.imul(be,Ht)|0;var Lt=(I+(v=v+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;I=((C=C+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,C=Math.imul($,Nt),v=v+Math.imul(se,et)|0,n=(n=n+Math.imul(se,vt)|0)+Math.imul(Te,et)|0,C=C+Math.imul(Te,vt)|0,v=v+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,C=C+Math.imul(Ie,Pe)|0,v=v+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,xe)|0)+Math.imul(F,le)|0,C=C+Math.imul(F,xe)|0,v=v+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,C=C+Math.imul(Q,Ht)|0,v=v+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(be,Ne)|0,C=C+Math.imul(be,tt)|0;var fe=(I+(v=v+Math.imul(N,Se)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;I=((C=C+Math.imul(z,Ue)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,v=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,C=Math.imul(Le,Nt),v=v+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,C=C+Math.imul($,vt)|0,v=v+Math.imul(se,jt)|0,n=(n=n+Math.imul(se,Pe)|0)+Math.imul(Te,jt)|0,C=C+Math.imul(Te,Pe)|0,v=v+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,xe)|0)+Math.imul(Ie,le)|0,C=C+Math.imul(Ie,xe)|0,v=v+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,C=C+Math.imul(F,Ht)|0,v=v+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,C=C+Math.imul(Q,tt)|0,v=v+Math.imul(ge,Se)|0,n=(n=n+Math.imul(ge,Ue)|0)+Math.imul(be,Se)|0,C=C+Math.imul(be,Ue)|0;var je=(I+(v=v+Math.imul(N,at)|0)|0)+((8191&(n=(n=n+Math.imul(N,yt)|0)+Math.imul(z,at)|0))<<13)|0;I=((C=C+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,v=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,C=Math.imul(Dt,Nt),v=v+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,C=C+Math.imul($,Pe)|0,v=v+Math.imul(se,le)|0,n=(n=n+Math.imul(se,xe)|0)+Math.imul(Te,le)|0,C=C+Math.imul(Te,xe)|0,v=v+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,C=C+Math.imul(Ie,Ht)|0,v=v+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,C=C+Math.imul(F,tt)|0,v=v+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,C=C+Math.imul(Q,Ue)|0,v=v+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,yt)|0)+Math.imul(be,at)|0,C=C+Math.imul(be,yt)|0;var Ct=(I+(v=v+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;I=((C=C+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,v=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,C=Math.imul(Gt,Nt),v=v+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,C=C+Math.imul(Dt,vt)|0,v=v+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,C=C+Math.imul(Le,Pe)|0,v=v+Math.imul(W,le)|0,n=(n=n+Math.imul(W,xe)|0)+Math.imul($,le)|0,C=C+Math.imul($,xe)|0,v=v+Math.imul(se,ft)|0,n=(n=n+Math.imul(se,Ht)|0)+Math.imul(Te,ft)|0,C=C+Math.imul(Te,Ht)|0,v=v+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,C=C+Math.imul(Ie,tt)|0,v=v+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,C=C+Math.imul(F,Ue)|0,v=v+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,C=C+Math.imul(Q,yt)|0,v=v+Math.imul(ge,Qt)|0,n=(n=n+Math.imul(ge,Jt)|0)+Math.imul(be,Qt)|0,C=C+Math.imul(be,Jt)|0;var ie=(I+(v=v+Math.imul(N,fi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(z,fi)|0))<<13)|0;I=((C=C+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,v=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,C=Math.imul(Gt,vt),v=v+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,C=C+Math.imul(Dt,Pe)|0,v=v+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,xe)|0)+Math.imul(Le,le)|0,C=C+Math.imul(Le,xe)|0,v=v+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,C=C+Math.imul($,Ht)|0,v=v+Math.imul(se,Ne)|0,n=(n=n+Math.imul(se,tt)|0)+Math.imul(Te,Ne)|0,C=C+Math.imul(Te,tt)|0,v=v+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,C=C+Math.imul(Ie,Ue)|0,v=v+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,C=C+Math.imul(F,yt)|0,v=v+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,C=C+Math.imul(Q,Jt)|0;var qe=(I+(v=v+Math.imul(ge,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ge,ai)|0)+Math.imul(be,fi)|0))<<13)|0;I=((C=C+Math.imul(be,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,v=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,C=Math.imul(Gt,Pe),v=v+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,xe)|0)+Math.imul(Dt,le)|0,C=C+Math.imul(Dt,xe)|0,v=v+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,C=C+Math.imul(Le,Ht)|0,v=v+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,C=C+Math.imul($,tt)|0,v=v+Math.imul(se,Se)|0,n=(n=n+Math.imul(se,Ue)|0)+Math.imul(Te,Se)|0,C=C+Math.imul(Te,Ue)|0,v=v+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,C=C+Math.imul(Ie,yt)|0,v=v+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,C=C+Math.imul(F,Jt)|0;var Mt=(I+(v=v+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;I=((C=C+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(Yt,le),n=(n=Math.imul(Yt,xe))+Math.imul(Gt,le)|0,C=Math.imul(Gt,xe),v=v+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,C=C+Math.imul(Dt,Ht)|0,v=v+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,C=C+Math.imul(Le,tt)|0,v=v+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,C=C+Math.imul($,Ue)|0,v=v+Math.imul(se,at)|0,n=(n=n+Math.imul(se,yt)|0)+Math.imul(Te,at)|0,C=C+Math.imul(Te,yt)|0,v=v+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,C=C+Math.imul(Ie,Jt)|0;var Vt=(I+(v=v+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;I=((C=C+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,v=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,C=Math.imul(Gt,Ht),v=v+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,C=C+Math.imul(Dt,tt)|0,v=v+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,C=C+Math.imul(Le,Ue)|0,v=v+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,C=C+Math.imul($,yt)|0,v=v+Math.imul(se,Qt)|0,n=(n=n+Math.imul(se,Jt)|0)+Math.imul(Te,Qt)|0,C=C+Math.imul(Te,Jt)|0;var Mi=(I+(v=v+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;I=((C=C+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,v=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,C=Math.imul(Gt,tt),v=v+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,C=C+Math.imul(Dt,Ue)|0,v=v+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,C=C+Math.imul(Le,yt)|0,v=v+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,C=C+Math.imul($,Jt)|0;var Ei=(I+(v=v+Math.imul(se,fi)|0)|0)+((8191&(n=(n=n+Math.imul(se,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;I=((C=C+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,v=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,C=Math.imul(Gt,Ue),v=v+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,C=C+Math.imul(Dt,yt)|0,v=v+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,C=C+Math.imul(Le,Jt)|0;var en=(I+(v=v+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;I=((C=C+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,v=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,C=Math.imul(Gt,yt),v=v+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,C=C+Math.imul(Dt,Jt)|0;var ji=(I+(v=v+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;I=((C=C+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,v=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,C=Math.imul(Gt,Jt);var Kt=(I+(v=v+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;I=((C=C+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(I+(v=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return I=((C=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=fe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==I&&(E[19]=I,u.length++),u};function Z(x,i,r){return(new j).mulp(x,i,r)}function j(x,i){this.x=x,this.y=i}Math.imul||(S=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?S(this,i,r):c<63?k(this,i,r):c<1024?function U(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,_=0;_>>26)|0)>>>26,E&=67108863}r.words[_]=I,u=E,E=c}return 0!==u?r.words[_]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,_,E){for(var I=0;I>>=1)_++;return 1<<_+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c>>=13),_>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=_>>>26,this.words[u]=67108863&_}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function L(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var _,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(_=0;_>>26-r}E&&(this.words[_]=E,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_=0),c=r?(r-r%26)/26:0;var _=i%26,E=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,v=u;if(c-=E,c=Math.max(0,c),v){for(var n=0;nE)for(this.length-=E,n=0;n=0&&(0!==C||n>=c);n--){var B=0|this.words[n];this.words[n]=C<<26-_|B>>>_,C=B&I}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(v/67108864|0),this.words[_+u]=67108863&E}for(;_>26,this.words[_+u]=67108863&E;if(0===I)return this.strip();for(f(-1===I),I=0,_=0;_>26,this.words[_]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),_=i,E=0|_.words[_.length-1];0!=(u=26-this._countBits(E))&&(_=_.ushln(u),c.iushln(u),E=0|_.words[_.length-1]);var n,v=c.length-_.length;if("mod"!==r){(n=new a(null)).length=v+1,n.words=new Array(n.length);for(var C=0;C=0;N--){var z=67108864*(0|c.words[_.length+N])+(0|c.words[_.length+N-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(_,z,N);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(_,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:c,mod:_}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:E.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,_,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),_=i.andln(1),E=u.cmp(c);return E<0||1===_&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=new a(0),I=new a(1),v=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++v;for(var n=u.clone(),C=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||_.isOdd())&&(c.iadd(n),_.isub(C)),c.iushrn(1),_.iushrn(1);for(var z=0,oe=1;0==(u.words[0]&oe)&&z<26;++z,oe<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||I.isOdd())&&(E.iadd(n),I.isub(C)),E.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),_.isub(I)):(u.isub(r),E.isub(c),I.isub(_))}return{a:E,b:I,gcd:u.iushln(v)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,v=1;0==(r.words[0]&v)&&I<26;++I,v<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,C=1;0==(u.words[0]&C)&&n<26;++n,C<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(E),_.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(_)):(u.isub(r),_.isub(c))}return(B=0===r.cmpn(1)?c:_).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=r.cmp(u);if(_<0){var E=r;r=u,u=E}else if(0===_||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=I&=67108863}return 0!==_&&(this.words[E]=_,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],_=0|i.words[u];if(c!==_){c<_?r=-1:c>_&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(x,i){this.name=x,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(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)}X.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),_=0;_>>22,E=I}i.words[_-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=_,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),_=0;!c.isZero()&&0===c.andln(1);)_++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),I=E.redNeg(),v=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,v).cmp(I);)n.redIAdd(I);for(var C=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),z=_;0!==N.cmp(E);){for(var oe=N,ge=0;0!==oe.cmp(E);ge++)oe=oe.redSqr();f(ge=0;_--){for(var C=r.words[_],B=n-1;B>=0;B--){var N=C>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==N||0!==I?(I<<=1,I|=N,(4==++v||0===_&&0===B)&&(E=this.mul(E,c[I]),v=0,I=0)):v=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new me(i)},M(me,J),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},5343:(Fe,Y)=>{"use strict";Y.byteLength=function d(L){var k=b(L),U=k[1];return 3*(k[0]+U)/4-U},Y.toByteArray=function h(L){var k,de,S=b(L),U=S[0],Z=S[1],j=new e(function P(L,k,S){return 3*(k+S)/4-S}(0,U,Z)),ne=0,X=Z>0?U-4:U;for(de=0;de>16&255,j[ne++]=k>>8&255,j[ne++]=255&k;return 2===Z&&(k=t[L.charCodeAt(de)]<<2|t[L.charCodeAt(de+1)]>>4,j[ne++]=255&k),1===Z&&(k=t[L.charCodeAt(de)]<<10|t[L.charCodeAt(de+1)]<<4|t[L.charCodeAt(de+2)]>>2,j[ne++]=k>>8&255,j[ne++]=255&k),j},Y.fromByteArray=function D(L){for(var k,S=L.length,U=S%3,Z=[],j=16383,ne=0,X=S-U;neX?X:ne+j));return 1===U?Z.push(p[(k=L[S-1])>>2]+p[k<<4&63]+"=="):2===U&&Z.push(p[(k=(L[S-2]<<8)+L[S-1])>>10]+p[k>>4&63]+p[k<<2&63]+"="),Z.join("")};for(var p=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=0,a=f.length;M0)throw new Error("Invalid string. Length must be a multiple of 4");var S=L.indexOf("=");return-1===S&&(S=k),[S,S===k?0:4-S%4]}function A(L){return p[L>>18&63]+p[L>>12&63]+p[L>>6&63]+p[63&L]}function w(L,k,S){for(var Z=[],j=k;j=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void f(!1,"Invalid character in "+u)}function P(u,c,_){var E=d(u,_);return _-1>=c&&(E|=d(u,_-1)<<4),E}function h(u,c,_,E){for(var I=0,v=0,n=Math.min(u.length,_),C=c;C=49?B-49+10:B>=17?B-17+10:B,f(B>=0&&v0?c:_},a.min=function(c,_){return c.cmp(_)<0?c:_},a.prototype._init=function(c,_,E){if("number"==typeof c)return this._initNumber(c,_,E);if("object"==typeof c)return this._initArray(c,_,E);"hex"===_&&(_=16),f(_===(0|_)&&_>=2&&_<=36);var I=0;"-"===(c=c.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I=0;I-=3)this.words[v]|=(n=c[I]|c[I-1]<<8|c[I-2]<<16)<>>26-C&67108863,(C+=24)>=26&&(C-=26,v++);else if("le"===E)for(I=0,v=0;I>>26-C&67108863,(C+=24)>=26&&(C-=26,v++);return this._strip()},a.prototype._parseHex=function(c,_,E){this.length=Math.ceil((c.length-_)/6),this.words=new Array(this.length);for(var I=0;I=_;I-=2)C=P(c,_,I)<=18?(v-=18,this.words[n+=1]|=C>>>26):v+=8;else for(I=(c.length-_)%2==0?_+1:_;I=18?(v-=18,this.words[n+=1]|=C>>>26):v+=8;this._strip()},a.prototype._parseBase=function(c,_,E){this.words=[0],this.length=1;for(var I=0,v=1;v<=67108863;v*=_)I++;I--,v=v/_|0;for(var n=c.length-E,C=n%I,B=Math.min(n,n-C)+E,N=0,z=E;z1&&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")]=w}catch(u){a.prototype.inspect=w}else a.prototype.inspect=w;function w(){return(this.red?""}var D=["","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"],L=[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 Z(u,c,_){_.negative=c.negative^u.negative;var E=u.length+c.length|0;_.length=E,E=E-1|0;var I=0|u.words[0],v=0|c.words[0],n=I*v,B=n/67108864|0;_.words[0]=67108863&n;for(var N=1;N>>26,oe=67108863&B,ge=Math.min(N,c.length-1),be=Math.max(0,N-u.length+1);be<=ge;be++)z+=(n=(I=0|u.words[N-be|0])*(v=0|c.words[be])+oe)/67108864|0,oe=67108863&n;_.words[N]=0|oe,B=0|z}return 0!==B?_.words[N]=0|B:_.length--,_._strip()}a.prototype.toString=function(c,_){var E;if(_=0|_||1,16===(c=c||10)||"hex"===c){E="";for(var I=0,v=0,n=0;n>>24-I&16777215,(I+=2)>=26&&(I-=26,n--),E=0!==v||n!==this.length-1?D[6-B.length]+B+E:B+E}for(0!==v&&(E=v.toString(16)+E);E.length%_!=0;)E="0"+E;return 0!==this.negative&&(E="-"+E),E}if(c===(0|c)&&c>=2&&c<=36){var N=L[c],z=k[c];E="";var oe=this.clone();for(oe.negative=0;!oe.isZero();){var ge=oe.modrn(z).toString(c);E=(oe=oe.idivn(z)).isZero()?ge+E:D[N-ge.length]+ge+E}for(this.isZero()&&(E="0"+E);E.length%_!=0;)E="0"+E;return 0!==this.negative&&(E="-"+E),E}f(!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&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-c:c},a.prototype.toJSON=function(){return this.toString(16,2)},b&&(a.prototype.toBuffer=function(c,_){return this.toArrayLike(b,c,_)}),a.prototype.toArray=function(c,_){return this.toArrayLike(Array,c,_)},a.prototype.toArrayLike=function(c,_,E){this._strip();var I=this.byteLength(),v=E||Math.max(1,I);f(I<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0");var n=function(c,_){return c.allocUnsafe?c.allocUnsafe(_):new c(_)}(c,v);return this["_toArrayLike"+("le"===_?"LE":"BE")](n,I),n},a.prototype._toArrayLikeLE=function(c,_){for(var E=0,I=0,v=0,n=0;v>8&255),E>16&255),6===n?(E>24&255),I=0,n=0):(I=C>>>24,n+=2)}if(E=0&&(c[E--]=C>>8&255),E>=0&&(c[E--]=C>>16&255),6===n?(E>=0&&(c[E--]=C>>24&255),I=0,n=0):(I=C>>>24,n+=2)}if(E>=0)for(c[E--]=I;E>=0;)c[E--]=0},a.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var _=c,E=0;return _>=4096&&(E+=13,_>>>=13),_>=64&&(E+=7,_>>>=7),_>=8&&(E+=4,_>>>=4),_>=2&&(E+=2,_>>>=2),E+_},a.prototype._zeroBits=function(c){if(0===c)return 26;var _=c,E=0;return 0==(8191&_)&&(E+=13,_>>>=13),0==(127&_)&&(E+=7,_>>>=7),0==(15&_)&&(E+=4,_>>>=4),0==(3&_)&&(E+=2,_>>>=2),0==(1&_)&&E++,E},a.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,_=0;_c.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 _;_=this.length>c.length?c:this;for(var E=0;E<_.length;E++)this.words[E]=this.words[E]&c.words[E];return this.length=_.length,this._strip()},a.prototype.iand=function(c){return f(0==(this.negative|c.negative)),this.iuand(c)},a.prototype.and=function(c){return this.length>c.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 _,E;this.length>c.length?(_=this,E=c):(_=c,E=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){f("number"==typeof c&&c>=0);var _=0|Math.ceil(c/26),E=c%26;this._expand(_),E>0&&_--;for(var I=0;I<_;I++)this.words[I]=67108863&~this.words[I];return E>0&&(this.words[I]=~this.words[I]&67108863>>26-E),this._strip()},a.prototype.notn=function(c){return this.clone().inotn(c)},a.prototype.setn=function(c,_){f("number"==typeof c&&c>=0);var E=c/26|0,I=c%26;return this._expand(E+1),this.words[E]=_?this.words[E]|1<c.length?(E=this,I=c):(E=c,I=this);for(var v=0,n=0;n>>26;for(;0!==v&&n>>26;if(this.length=E.length,0!==v)this.words[this.length]=v,this.length++;else if(E!==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 _=this.iadd(c);return c.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var I,v,E=this.cmp(c);if(0===E)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(I=this,v=c):(I=c,v=this);for(var n=0,C=0;C>26,this.words[C]=67108863&_;for(;0!==n&&C>26,this.words[C]=67108863&_;if(0===n&&C>>13,Re=0|I[1],we=8191&Re,Q=Re>>>13,Ge=0|I[2],ve=8191&Ge,F=Ge>>>13,De=0|I[3],lt=8191&De,Ie=De>>>13,Ae=0|I[4],se=8191&Ae,Te=Ae>>>13,ye=0|I[5],W=8191&ye,$=ye>>>13,ue=0|I[6],Ce=8191&ue,Le=ue>>>13,ct=0|I[7],ut=8191&ct,Dt=ct>>>13,di=0|I[8],Yt=8191&di,Gt=di>>>13,ui=0|I[9],xt=8191&ui,Nt=ui>>>13,gt=0|v[0],et=8191>,vt=gt>>>13,$t=0|v[1],jt=8191&$t,Pe=$t>>>13,Oe=0|v[2],le=8191&Oe,xe=Oe>>>13,ht=0|v[3],ft=8191&ht,Ht=ht>>>13,it=0|v[4],Ne=8191&it,tt=it>>>13,Je=0|v[5],Se=8191&Je,Ue=Je>>>13,rt=0|v[6],at=8191&rt,yt=rt>>>13,gi=0|v[7],Qt=8191&gi,Jt=gi>>>13,Xi=0|v[8],fi=8191&Xi,ai=Xi>>>13,tn=0|v[9],Wi=8191&tn,Gi=tn>>>13;E.negative=c.negative^_.negative,E.length=19;var Yi=(C+(B=Math.imul(ge,et))|0)+((8191&(N=(N=Math.imul(ge,vt))+Math.imul(be,et)|0))<<13)|0;C=((z=Math.imul(be,vt))+(N>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,B=Math.imul(we,et),N=(N=Math.imul(we,vt))+Math.imul(Q,et)|0,z=Math.imul(Q,vt);var ze=(C+(B=B+Math.imul(ge,jt)|0)|0)+((8191&(N=(N=N+Math.imul(ge,Pe)|0)+Math.imul(be,jt)|0))<<13)|0;C=((z=z+Math.imul(be,Pe)|0)+(N>>>13)|0)+(ze>>>26)|0,ze&=67108863,B=Math.imul(ve,et),N=(N=Math.imul(ve,vt))+Math.imul(F,et)|0,z=Math.imul(F,vt),B=B+Math.imul(we,jt)|0,N=(N=N+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,z=z+Math.imul(Q,Pe)|0;var Lt=(C+(B=B+Math.imul(ge,le)|0)|0)+((8191&(N=(N=N+Math.imul(ge,xe)|0)+Math.imul(be,le)|0))<<13)|0;C=((z=z+Math.imul(be,xe)|0)+(N>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,B=Math.imul(lt,et),N=(N=Math.imul(lt,vt))+Math.imul(Ie,et)|0,z=Math.imul(Ie,vt),B=B+Math.imul(ve,jt)|0,N=(N=N+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,z=z+Math.imul(F,Pe)|0,B=B+Math.imul(we,le)|0,N=(N=N+Math.imul(we,xe)|0)+Math.imul(Q,le)|0,z=z+Math.imul(Q,xe)|0;var fe=(C+(B=B+Math.imul(ge,ft)|0)|0)+((8191&(N=(N=N+Math.imul(ge,Ht)|0)+Math.imul(be,ft)|0))<<13)|0;C=((z=z+Math.imul(be,Ht)|0)+(N>>>13)|0)+(fe>>>26)|0,fe&=67108863,B=Math.imul(se,et),N=(N=Math.imul(se,vt))+Math.imul(Te,et)|0,z=Math.imul(Te,vt),B=B+Math.imul(lt,jt)|0,N=(N=N+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,z=z+Math.imul(Ie,Pe)|0,B=B+Math.imul(ve,le)|0,N=(N=N+Math.imul(ve,xe)|0)+Math.imul(F,le)|0,z=z+Math.imul(F,xe)|0,B=B+Math.imul(we,ft)|0,N=(N=N+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,z=z+Math.imul(Q,Ht)|0;var je=(C+(B=B+Math.imul(ge,Ne)|0)|0)+((8191&(N=(N=N+Math.imul(ge,tt)|0)+Math.imul(be,Ne)|0))<<13)|0;C=((z=z+Math.imul(be,tt)|0)+(N>>>13)|0)+(je>>>26)|0,je&=67108863,B=Math.imul(W,et),N=(N=Math.imul(W,vt))+Math.imul($,et)|0,z=Math.imul($,vt),B=B+Math.imul(se,jt)|0,N=(N=N+Math.imul(se,Pe)|0)+Math.imul(Te,jt)|0,z=z+Math.imul(Te,Pe)|0,B=B+Math.imul(lt,le)|0,N=(N=N+Math.imul(lt,xe)|0)+Math.imul(Ie,le)|0,z=z+Math.imul(Ie,xe)|0,B=B+Math.imul(ve,ft)|0,N=(N=N+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,z=z+Math.imul(F,Ht)|0,B=B+Math.imul(we,Ne)|0,N=(N=N+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,z=z+Math.imul(Q,tt)|0;var Ct=(C+(B=B+Math.imul(ge,Se)|0)|0)+((8191&(N=(N=N+Math.imul(ge,Ue)|0)+Math.imul(be,Se)|0))<<13)|0;C=((z=z+Math.imul(be,Ue)|0)+(N>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,B=Math.imul(Ce,et),N=(N=Math.imul(Ce,vt))+Math.imul(Le,et)|0,z=Math.imul(Le,vt),B=B+Math.imul(W,jt)|0,N=(N=N+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,z=z+Math.imul($,Pe)|0,B=B+Math.imul(se,le)|0,N=(N=N+Math.imul(se,xe)|0)+Math.imul(Te,le)|0,z=z+Math.imul(Te,xe)|0,B=B+Math.imul(lt,ft)|0,N=(N=N+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,z=z+Math.imul(Ie,Ht)|0,B=B+Math.imul(ve,Ne)|0,N=(N=N+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,z=z+Math.imul(F,tt)|0,B=B+Math.imul(we,Se)|0,N=(N=N+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,z=z+Math.imul(Q,Ue)|0;var ie=(C+(B=B+Math.imul(ge,at)|0)|0)+((8191&(N=(N=N+Math.imul(ge,yt)|0)+Math.imul(be,at)|0))<<13)|0;C=((z=z+Math.imul(be,yt)|0)+(N>>>13)|0)+(ie>>>26)|0,ie&=67108863,B=Math.imul(ut,et),N=(N=Math.imul(ut,vt))+Math.imul(Dt,et)|0,z=Math.imul(Dt,vt),B=B+Math.imul(Ce,jt)|0,N=(N=N+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,z=z+Math.imul(Le,Pe)|0,B=B+Math.imul(W,le)|0,N=(N=N+Math.imul(W,xe)|0)+Math.imul($,le)|0,z=z+Math.imul($,xe)|0,B=B+Math.imul(se,ft)|0,N=(N=N+Math.imul(se,Ht)|0)+Math.imul(Te,ft)|0,z=z+Math.imul(Te,Ht)|0,B=B+Math.imul(lt,Ne)|0,N=(N=N+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,z=z+Math.imul(Ie,tt)|0,B=B+Math.imul(ve,Se)|0,N=(N=N+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,z=z+Math.imul(F,Ue)|0,B=B+Math.imul(we,at)|0,N=(N=N+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,z=z+Math.imul(Q,yt)|0;var qe=(C+(B=B+Math.imul(ge,Qt)|0)|0)+((8191&(N=(N=N+Math.imul(ge,Jt)|0)+Math.imul(be,Qt)|0))<<13)|0;C=((z=z+Math.imul(be,Jt)|0)+(N>>>13)|0)+(qe>>>26)|0,qe&=67108863,B=Math.imul(Yt,et),N=(N=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,z=Math.imul(Gt,vt),B=B+Math.imul(ut,jt)|0,N=(N=N+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,z=z+Math.imul(Dt,Pe)|0,B=B+Math.imul(Ce,le)|0,N=(N=N+Math.imul(Ce,xe)|0)+Math.imul(Le,le)|0,z=z+Math.imul(Le,xe)|0,B=B+Math.imul(W,ft)|0,N=(N=N+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,z=z+Math.imul($,Ht)|0,B=B+Math.imul(se,Ne)|0,N=(N=N+Math.imul(se,tt)|0)+Math.imul(Te,Ne)|0,z=z+Math.imul(Te,tt)|0,B=B+Math.imul(lt,Se)|0,N=(N=N+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,z=z+Math.imul(Ie,Ue)|0,B=B+Math.imul(ve,at)|0,N=(N=N+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,z=z+Math.imul(F,yt)|0,B=B+Math.imul(we,Qt)|0,N=(N=N+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,z=z+Math.imul(Q,Jt)|0;var Mt=(C+(B=B+Math.imul(ge,fi)|0)|0)+((8191&(N=(N=N+Math.imul(ge,ai)|0)+Math.imul(be,fi)|0))<<13)|0;C=((z=z+Math.imul(be,ai)|0)+(N>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,B=Math.imul(xt,et),N=(N=Math.imul(xt,vt))+Math.imul(Nt,et)|0,z=Math.imul(Nt,vt),B=B+Math.imul(Yt,jt)|0,N=(N=N+Math.imul(Yt,Pe)|0)+Math.imul(Gt,jt)|0,z=z+Math.imul(Gt,Pe)|0,B=B+Math.imul(ut,le)|0,N=(N=N+Math.imul(ut,xe)|0)+Math.imul(Dt,le)|0,z=z+Math.imul(Dt,xe)|0,B=B+Math.imul(Ce,ft)|0,N=(N=N+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,z=z+Math.imul(Le,Ht)|0,B=B+Math.imul(W,Ne)|0,N=(N=N+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,z=z+Math.imul($,tt)|0,B=B+Math.imul(se,Se)|0,N=(N=N+Math.imul(se,Ue)|0)+Math.imul(Te,Se)|0,z=z+Math.imul(Te,Ue)|0,B=B+Math.imul(lt,at)|0,N=(N=N+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,z=z+Math.imul(Ie,yt)|0,B=B+Math.imul(ve,Qt)|0,N=(N=N+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,z=z+Math.imul(F,Jt)|0,B=B+Math.imul(we,fi)|0,N=(N=N+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0,z=z+Math.imul(Q,ai)|0;var Vt=(C+(B=B+Math.imul(ge,Wi)|0)|0)+((8191&(N=(N=N+Math.imul(ge,Gi)|0)+Math.imul(be,Wi)|0))<<13)|0;C=((z=z+Math.imul(be,Gi)|0)+(N>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,B=Math.imul(xt,jt),N=(N=Math.imul(xt,Pe))+Math.imul(Nt,jt)|0,z=Math.imul(Nt,Pe),B=B+Math.imul(Yt,le)|0,N=(N=N+Math.imul(Yt,xe)|0)+Math.imul(Gt,le)|0,z=z+Math.imul(Gt,xe)|0,B=B+Math.imul(ut,ft)|0,N=(N=N+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,z=z+Math.imul(Dt,Ht)|0,B=B+Math.imul(Ce,Ne)|0,N=(N=N+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,z=z+Math.imul(Le,tt)|0,B=B+Math.imul(W,Se)|0,N=(N=N+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,z=z+Math.imul($,Ue)|0,B=B+Math.imul(se,at)|0,N=(N=N+Math.imul(se,yt)|0)+Math.imul(Te,at)|0,z=z+Math.imul(Te,yt)|0,B=B+Math.imul(lt,Qt)|0,N=(N=N+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,z=z+Math.imul(Ie,Jt)|0,B=B+Math.imul(ve,fi)|0,N=(N=N+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0,z=z+Math.imul(F,ai)|0;var Mi=(C+(B=B+Math.imul(we,Wi)|0)|0)+((8191&(N=(N=N+Math.imul(we,Gi)|0)+Math.imul(Q,Wi)|0))<<13)|0;C=((z=z+Math.imul(Q,Gi)|0)+(N>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,B=Math.imul(xt,le),N=(N=Math.imul(xt,xe))+Math.imul(Nt,le)|0,z=Math.imul(Nt,xe),B=B+Math.imul(Yt,ft)|0,N=(N=N+Math.imul(Yt,Ht)|0)+Math.imul(Gt,ft)|0,z=z+Math.imul(Gt,Ht)|0,B=B+Math.imul(ut,Ne)|0,N=(N=N+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,z=z+Math.imul(Dt,tt)|0,B=B+Math.imul(Ce,Se)|0,N=(N=N+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,z=z+Math.imul(Le,Ue)|0,B=B+Math.imul(W,at)|0,N=(N=N+Math.imul(W,yt)|0)+Math.imul($,at)|0,z=z+Math.imul($,yt)|0,B=B+Math.imul(se,Qt)|0,N=(N=N+Math.imul(se,Jt)|0)+Math.imul(Te,Qt)|0,z=z+Math.imul(Te,Jt)|0,B=B+Math.imul(lt,fi)|0,N=(N=N+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0,z=z+Math.imul(Ie,ai)|0;var Ei=(C+(B=B+Math.imul(ve,Wi)|0)|0)+((8191&(N=(N=N+Math.imul(ve,Gi)|0)+Math.imul(F,Wi)|0))<<13)|0;C=((z=z+Math.imul(F,Gi)|0)+(N>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,B=Math.imul(xt,ft),N=(N=Math.imul(xt,Ht))+Math.imul(Nt,ft)|0,z=Math.imul(Nt,Ht),B=B+Math.imul(Yt,Ne)|0,N=(N=N+Math.imul(Yt,tt)|0)+Math.imul(Gt,Ne)|0,z=z+Math.imul(Gt,tt)|0,B=B+Math.imul(ut,Se)|0,N=(N=N+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,z=z+Math.imul(Dt,Ue)|0,B=B+Math.imul(Ce,at)|0,N=(N=N+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,z=z+Math.imul(Le,yt)|0,B=B+Math.imul(W,Qt)|0,N=(N=N+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,z=z+Math.imul($,Jt)|0,B=B+Math.imul(se,fi)|0,N=(N=N+Math.imul(se,ai)|0)+Math.imul(Te,fi)|0,z=z+Math.imul(Te,ai)|0;var en=(C+(B=B+Math.imul(lt,Wi)|0)|0)+((8191&(N=(N=N+Math.imul(lt,Gi)|0)+Math.imul(Ie,Wi)|0))<<13)|0;C=((z=z+Math.imul(Ie,Gi)|0)+(N>>>13)|0)+(en>>>26)|0,en&=67108863,B=Math.imul(xt,Ne),N=(N=Math.imul(xt,tt))+Math.imul(Nt,Ne)|0,z=Math.imul(Nt,tt),B=B+Math.imul(Yt,Se)|0,N=(N=N+Math.imul(Yt,Ue)|0)+Math.imul(Gt,Se)|0,z=z+Math.imul(Gt,Ue)|0,B=B+Math.imul(ut,at)|0,N=(N=N+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,z=z+Math.imul(Dt,yt)|0,B=B+Math.imul(Ce,Qt)|0,N=(N=N+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,z=z+Math.imul(Le,Jt)|0,B=B+Math.imul(W,fi)|0,N=(N=N+Math.imul(W,ai)|0)+Math.imul($,fi)|0,z=z+Math.imul($,ai)|0;var ji=(C+(B=B+Math.imul(se,Wi)|0)|0)+((8191&(N=(N=N+Math.imul(se,Gi)|0)+Math.imul(Te,Wi)|0))<<13)|0;C=((z=z+Math.imul(Te,Gi)|0)+(N>>>13)|0)+(ji>>>26)|0,ji&=67108863,B=Math.imul(xt,Se),N=(N=Math.imul(xt,Ue))+Math.imul(Nt,Se)|0,z=Math.imul(Nt,Ue),B=B+Math.imul(Yt,at)|0,N=(N=N+Math.imul(Yt,yt)|0)+Math.imul(Gt,at)|0,z=z+Math.imul(Gt,yt)|0,B=B+Math.imul(ut,Qt)|0,N=(N=N+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,z=z+Math.imul(Dt,Jt)|0,B=B+Math.imul(Ce,fi)|0,N=(N=N+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0,z=z+Math.imul(Le,ai)|0;var Kt=(C+(B=B+Math.imul(W,Wi)|0)|0)+((8191&(N=(N=N+Math.imul(W,Gi)|0)+Math.imul($,Wi)|0))<<13)|0;C=((z=z+Math.imul($,Gi)|0)+(N>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,B=Math.imul(xt,at),N=(N=Math.imul(xt,yt))+Math.imul(Nt,at)|0,z=Math.imul(Nt,yt),B=B+Math.imul(Yt,Qt)|0,N=(N=N+Math.imul(Yt,Jt)|0)+Math.imul(Gt,Qt)|0,z=z+Math.imul(Gt,Jt)|0,B=B+Math.imul(ut,fi)|0,N=(N=N+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0,z=z+Math.imul(Dt,ai)|0;var Oi=(C+(B=B+Math.imul(Ce,Wi)|0)|0)+((8191&(N=(N=N+Math.imul(Ce,Gi)|0)+Math.imul(Le,Wi)|0))<<13)|0;C=((z=z+Math.imul(Le,Gi)|0)+(N>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,B=Math.imul(xt,Qt),N=(N=Math.imul(xt,Jt))+Math.imul(Nt,Qt)|0,z=Math.imul(Nt,Jt),B=B+Math.imul(Yt,fi)|0,N=(N=N+Math.imul(Yt,ai)|0)+Math.imul(Gt,fi)|0,z=z+Math.imul(Gt,ai)|0;var zt=(C+(B=B+Math.imul(ut,Wi)|0)|0)+((8191&(N=(N=N+Math.imul(ut,Gi)|0)+Math.imul(Dt,Wi)|0))<<13)|0;C=((z=z+Math.imul(Dt,Gi)|0)+(N>>>13)|0)+(zt>>>26)|0,zt&=67108863,B=Math.imul(xt,fi),N=(N=Math.imul(xt,ai))+Math.imul(Nt,fi)|0,z=Math.imul(Nt,ai);var si=(C+(B=B+Math.imul(Yt,Wi)|0)|0)+((8191&(N=(N=N+Math.imul(Yt,Gi)|0)+Math.imul(Gt,Wi)|0))<<13)|0;C=((z=z+Math.imul(Gt,Gi)|0)+(N>>>13)|0)+(si>>>26)|0,si&=67108863;var Pt=(C+(B=Math.imul(xt,Wi))|0)+((8191&(N=(N=Math.imul(xt,Gi))+Math.imul(Nt,Wi)|0))<<13)|0;return C=((z=Math.imul(Nt,Gi))+(N>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n[0]=Yi,n[1]=ze,n[2]=Lt,n[3]=fe,n[4]=je,n[5]=Ct,n[6]=ie,n[7]=qe,n[8]=Mt,n[9]=Vt,n[10]=Mi,n[11]=Ei,n[12]=en,n[13]=ji,n[14]=Kt,n[15]=Oi,n[16]=zt,n[17]=si,n[18]=Pt,0!==C&&(n[19]=C,E.length++),E};function ne(u,c,_){_.negative=c.negative^u.negative,_.length=u.length+c.length;for(var E=0,I=0,v=0;v<_.length-1;v++){var n=I;I=0;for(var C=67108863&E,B=Math.min(v,c.length-1),N=Math.max(0,v-u.length+1);N<=B;N++){var be=(0|u.words[v-N])*(0|c.words[N]),Re=67108863&be;C=67108863&(Re=Re+C|0),I+=(n=(n=n+(be/67108864|0)|0)+(Re>>>26)|0)>>>26,n&=67108863}_.words[v]=C,E=n,n=I}return 0!==E?_.words[v]=E:_.length--,_._strip()}function X(u,c,_){return ne(u,c,_)}function de(u,c){this.x=u,this.y=c}Math.imul||(j=Z),a.prototype.mulTo=function(c,_){var I=this.length+c.length;return 10===this.length&&10===c.length?j(this,c,_):I<63?Z(this,c,_):I<1024?ne(this,c,_):X(this,c,_)},de.prototype.makeRBT=function(c){for(var _=new Array(c),E=a.prototype._countBits(c)-1,I=0;I>=1;return I},de.prototype.permute=function(c,_,E,I,v,n){for(var C=0;C>>=1)v++;return 1<>>=13),v>>>=13;for(n=2*_;n>=26,E+=v/67108864|0,E+=n>>>26,this.words[I]=67108863&n}return 0!==E&&(this.words[I]=E,this.length++),_?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 _=function U(u){for(var c=new Array(u.bitLength()),_=0;_>>_%26&1;return c}(c);if(0===_.length)return new a(1);for(var E=this,I=0;I<_.length&&0===_[I];I++,E=E.sqr());if(++I<_.length)for(var v=E.sqr();I<_.length;I++,v=v.sqr())0!==_[I]&&(E=E.mul(v));return E},a.prototype.iushln=function(c){f("number"==typeof c&&c>=0);var v,_=c%26,E=(c-_)/26,I=67108863>>>26-_<<26-_;if(0!==_){var n=0;for(v=0;v>>26-_}n&&(this.words[v]=n,this.length++)}if(0!==E){for(v=this.length-1;v>=0;v--)this.words[v+E]=this.words[v];for(v=0;v=0),I=_?(_-_%26)/26:0;var v=c%26,n=Math.min((c-v)/26,this.length),C=67108863^67108863>>>v<n)for(this.length-=n,N=0;N=0&&(0!==z||N>=I);N--){var oe=0|this.words[N];this.words[N]=z<<26-v|oe>>>v,z=oe&C}return B&&0!==z&&(B.words[B.length++]=z),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(c,_,E){return f(0===this.negative),this.iushrn(c,_,E)},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){f("number"==typeof c&&c>=0);var _=c%26,E=(c-_)/26;return!(this.length<=E||!(this.words[E]&1<<_))},a.prototype.imaskn=function(c){f("number"==typeof c&&c>=0);var _=c%26,E=(c-_)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=E?this:(0!==_&&E++,this.length=Math.min(E,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this._strip())},a.prototype.maskn=function(c){return this.clone().imaskn(c)},a.prototype.iaddn=function(c){return f("number"==typeof c),f(c<67108864),c<0?this.isubn(-c):0!==this.negative?1===this.length&&(0|this.words[0])<=c?(this.words[0]=c-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(c),this.negative=1,this):this._iaddn(c)},a.prototype._iaddn=function(c){this.words[0]+=c;for(var _=0;_=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},a.prototype.isubn=function(c){if(f("number"==typeof c),f(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 _=0;_>26)-(B/67108864|0),this.words[v+E]=67108863&n}for(;v>26,this.words[v+E]=67108863&n;if(0===C)return this._strip();for(f(-1===C),C=0,v=0;v>26,this.words[v]=67108863&n;return this.negative=1,this._strip()},a.prototype._wordDiv=function(c,_){var E,I=this.clone(),v=c,n=0|v.words[v.length-1];0!=(E=26-this._countBits(n))&&(v=v.ushln(E),I.iushln(E),n=0|v.words[v.length-1]);var N,B=I.length-v.length;if("mod"!==_){(N=new a(null)).length=B+1,N.words=new Array(N.length);for(var z=0;z=0;ge--){var be=67108864*(0|I.words[v.length+ge])+(0|I.words[v.length+ge-1]);for(be=Math.min(be/n|0,67108863),I._ishlnsubmul(v,be,ge);0!==I.negative;)be--,I.negative=0,I._ishlnsubmul(v,1,ge),I.isZero()||(I.negative^=1);N&&(N.words[ge]=be)}return N&&N._strip(),I._strip(),"div"!==_&&0!==E&&I.iushrn(E),{div:N||null,mod:I}},a.prototype.divmod=function(c,_,E){return f(!c.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===c.negative?(n=this.neg().divmod(c,_),"mod"!==_&&(I=n.div.neg()),"div"!==_&&(v=n.mod.neg(),E&&0!==v.negative&&v.iadd(c)),{div:I,mod:v}):0===this.negative&&0!==c.negative?(n=this.divmod(c.neg(),_),"mod"!==_&&(I=n.div.neg()),{div:I,mod:n.mod}):0!=(this.negative&c.negative)?(n=this.neg().divmod(c.neg(),_),"div"!==_&&(v=n.mod.neg(),E&&0!==v.negative&&v.isub(c)),{div:n.div,mod:v}):c.length>this.length||this.cmp(c)<0?{div:new a(0),mod:this}:1===c.length?"div"===_?{div:this.divn(c.words[0]),mod:null}:"mod"===_?{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,_);var I,v,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 _=this.divmod(c);if(_.mod.isZero())return _.div;var E=0!==_.div.negative?_.mod.isub(c):_.mod,I=c.ushrn(1),v=c.andln(1),n=E.cmp(I);return n<0||1===v&&0===n?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},a.prototype.modrn=function(c){var _=c<0;_&&(c=-c),f(c<=67108863);for(var E=(1<<26)%c,I=0,v=this.length-1;v>=0;v--)I=(E*I+(0|this.words[v]))%c;return _?-I:I},a.prototype.modn=function(c){return this.modrn(c)},a.prototype.idivn=function(c){var _=c<0;_&&(c=-c),f(c<=67108863);for(var E=0,I=this.length-1;I>=0;I--){var v=(0|this.words[I])+67108864*E;this.words[I]=v/c|0,E=v%c}return this._strip(),_?this.ineg():this},a.prototype.divn=function(c){return this.clone().idivn(c)},a.prototype.egcd=function(c){f(0===c.negative),f(!c.isZero());var _=this,E=c.clone();_=0!==_.negative?_.umod(c):_.clone();for(var I=new a(1),v=new a(0),n=new a(0),C=new a(1),B=0;_.isEven()&&E.isEven();)_.iushrn(1),E.iushrn(1),++B;for(var N=E.clone(),z=_.clone();!_.isZero();){for(var oe=0,ge=1;0==(_.words[0]&ge)&&oe<26;++oe,ge<<=1);if(oe>0)for(_.iushrn(oe);oe-- >0;)(I.isOdd()||v.isOdd())&&(I.iadd(N),v.isub(z)),I.iushrn(1),v.iushrn(1);for(var be=0,Re=1;0==(E.words[0]&Re)&&be<26;++be,Re<<=1);if(be>0)for(E.iushrn(be);be-- >0;)(n.isOdd()||C.isOdd())&&(n.iadd(N),C.isub(z)),n.iushrn(1),C.iushrn(1);_.cmp(E)>=0?(_.isub(E),I.isub(n),v.isub(C)):(E.isub(_),n.isub(I),C.isub(v))}return{a:n,b:C,gcd:E.iushln(B)}},a.prototype._invmp=function(c){f(0===c.negative),f(!c.isZero());var oe,_=this,E=c.clone();_=0!==_.negative?_.umod(c):_.clone();for(var I=new a(1),v=new a(0),n=E.clone();_.cmpn(1)>0&&E.cmpn(1)>0;){for(var C=0,B=1;0==(_.words[0]&B)&&C<26;++C,B<<=1);if(C>0)for(_.iushrn(C);C-- >0;)I.isOdd()&&I.iadd(n),I.iushrn(1);for(var N=0,z=1;0==(E.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(E.iushrn(N);N-- >0;)v.isOdd()&&v.iadd(n),v.iushrn(1);_.cmp(E)>=0?(_.isub(E),I.isub(v)):(E.isub(_),v.isub(I))}return(oe=0===_.cmpn(1)?I:v).cmpn(0)<0&&oe.iadd(c),oe},a.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var _=this.clone(),E=c.clone();_.negative=0,E.negative=0;for(var I=0;_.isEven()&&E.isEven();I++)_.iushrn(1),E.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;E.isEven();)E.iushrn(1);var v=_.cmp(E);if(v<0){var n=_;_=E,E=n}else if(0===v||0===E.cmpn(1))break;_.isub(E)}return E.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){f("number"==typeof c);var _=c%26,E=(c-_)/26,I=1<<_;if(this.length<=E)return this._expand(E+1),this.words[E]|=I,this;for(var v=I,n=E;0!==v&&n>>26,this.words[n]=C&=67108863}return 0!==v&&(this.words[n]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(c){var E,_=c<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)E=1;else{_&&(c=-c),f(c<=67108863,"Number is too big");var I=0|this.words[0];E=I===c?0:Ic.length)return 1;if(this.length=0;E--){var I=0|this.words[E],v=0|c.words[E];if(I!==v){Iv&&(_=1);break}}return _},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 i(c)},a.prototype.toRed=function(c){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),c.convertTo(this)._forceRed(c)},a.prototype.fromRed=function(){return f(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 f(!this.red,"Already a number in reduction context"),this._forceRed(c)},a.prototype.redAdd=function(c){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},a.prototype.redIAdd=function(c){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},a.prototype.redSub=function(c){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},a.prototype.redISub=function(c){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},a.prototype.redShl=function(c){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},a.prototype.redMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},a.prototype.redIMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(c){return f(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var ee={k256:null,p224:null,p192:null,p25519:null};function te(u,c){this.name=u,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 ce(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function J(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function me(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(u){if("string"==typeof u){var c=a._prime(u);this.m=c.p,this.prime=c}else f(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}function r(u){i.call(this,u),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)}te.prototype._tmp=function(){var c=new a(null);return c.words=new Array(Math.ceil(this.n/13)),c},te.prototype.ireduce=function(c){var E,_=c;do{this.split(_,this.tmp),E=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(E>this.n);var I=E0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},te.prototype.split=function(c,_){c.iushrn(this.n,0,_)},te.prototype.imulK=function(c){return c.imul(this.k)},M(ce,te),ce.prototype.split=function(c,_){for(var E=4194303,I=Math.min(c.length,9),v=0;v>>22,n=C}c.words[v-10]=n>>>=22,c.length-=0===n&&c.length>10?10:9},ce.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var _=0,E=0;E>>=26,c.words[E]=v,_=I}return 0!==_&&(c.words[c.length++]=_),c},a._prime=function(c){if(ee[c])return ee[c];var _;if("k256"===c)_=new ce;else if("p224"===c)_=new J;else if("p192"===c)_=new me;else{if("p25519"!==c)throw new Error("Unknown prime "+c);_=new x}return ee[c]=_,_},i.prototype._verify1=function(c){f(0===c.negative,"red works only with positives"),f(c.red,"red works only with red numbers")},i.prototype._verify2=function(c,_){f(0==(c.negative|_.negative),"red works only with positives"),f(c.red&&c.red===_.red,"red works only with red numbers")},i.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(A(c,c.umod(this.m)._forceRed(this)),c)},i.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},i.prototype.add=function(c,_){this._verify2(c,_);var E=c.add(_);return E.cmp(this.m)>=0&&E.isub(this.m),E._forceRed(this)},i.prototype.iadd=function(c,_){this._verify2(c,_);var E=c.iadd(_);return E.cmp(this.m)>=0&&E.isub(this.m),E},i.prototype.sub=function(c,_){this._verify2(c,_);var E=c.sub(_);return E.cmpn(0)<0&&E.iadd(this.m),E._forceRed(this)},i.prototype.isub=function(c,_){this._verify2(c,_);var E=c.isub(_);return E.cmpn(0)<0&&E.iadd(this.m),E},i.prototype.shl=function(c,_){return this._verify1(c),this.imod(c.ushln(_))},i.prototype.imul=function(c,_){return this._verify2(c,_),this.imod(c.imul(_))},i.prototype.mul=function(c,_){return this._verify2(c,_),this.imod(c.mul(_))},i.prototype.isqr=function(c){return this.imul(c,c.clone())},i.prototype.sqr=function(c){return this.mul(c,c)},i.prototype.sqrt=function(c){if(c.isZero())return c.clone();var _=this.m.andln(3);if(f(_%2==1),3===_){var E=this.m.add(new a(1)).iushrn(2);return this.pow(c,E)}for(var I=this.m.subn(1),v=0;!I.isZero()&&0===I.andln(1);)v++,I.iushrn(1);f(!I.isZero());var n=new a(1).toRed(this),C=n.redNeg(),B=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new a(2*N*N).toRed(this);0!==this.pow(N,B).cmp(C);)N.redIAdd(C);for(var z=this.pow(N,I),oe=this.pow(c,I.addn(1).iushrn(1)),ge=this.pow(c,I),be=v;0!==ge.cmp(n);){for(var Re=ge,we=0;0!==Re.cmp(n);we++)Re=Re.redSqr();f(we=0;v--){for(var z=_.words[v],oe=N-1;oe>=0;oe--){var ge=z>>oe&1;n!==I[0]&&(n=this.sqr(n)),0!==ge||0!==C?(C<<=1,C|=ge,(4==++B||0===v&&0===oe)&&(n=this.mul(n,I[C]),B=0,C=0)):B=0}N=26}return n},i.prototype.convertTo=function(c){var _=c.umod(this.m);return _===c?_.clone():_},i.prototype.convertFrom=function(c){var _=c.clone();return _.red=null,_},a.mont=function(c){return new r(c)},M(r,i),r.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},r.prototype.convertFrom=function(c){var _=this.imod(c.mul(this.rinv));return _.red=null,_},r.prototype.imul=function(c,_){if(c.isZero()||_.isZero())return c.words[0]=0,c.length=1,c;var E=c.imul(_),I=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=E.isub(I).iushrn(this.shift),n=v;return v.cmp(this.m)>=0?n=v.isub(this.m):v.cmpn(0)<0&&(n=v.iadd(this.m)),n._forceRed(this)},r.prototype.mul=function(c,_){if(c.isZero()||_.isZero())return new a(0)._forceRed(this);var E=c.mul(_),I=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=E.isub(I).iushrn(this.shift),n=v;return v.cmp(this.m)>=0?n=v.isub(this.m):v.cmpn(0)<0&&(n=v.iadd(this.m)),n._forceRed(this)},r.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},7950:(Fe,Y,p)=>{var t;function e(M){this.rand=M}if(Fe.exports=function(a){return t||(t=new e(null)),t.generate(a)},Fe.exports.Rand=e,e.prototype.generate=function(a){return this._rand(a)},e.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var b=new Uint8Array(a),d=0;d{var t=p(3502).Buffer;function e(P){t.isBuffer(P)||(P=t.from(P));for(var h=P.length/4|0,A=new Array(h),w=0;w>>24]^k[j>>>16&255]^S[ne>>>8&255]^U[255&X]^h[J++],ee=L[j>>>24]^k[ne>>>16&255]^S[X>>>8&255]^U[255&Z]^h[J++],te=L[ne>>>24]^k[X>>>16&255]^S[Z>>>8&255]^U[255&j]^h[J++],ce=L[X>>>24]^k[Z>>>16&255]^S[j>>>8&255]^U[255&ne]^h[J++],Z=de,j=ee,ne=te,X=ce;return de=(w[Z>>>24]<<24|w[j>>>16&255]<<16|w[ne>>>8&255]<<8|w[255&X])^h[J++],ee=(w[j>>>24]<<24|w[ne>>>16&255]<<16|w[X>>>8&255]<<8|w[255&Z])^h[J++],te=(w[ne>>>24]<<24|w[X>>>16&255]<<16|w[Z>>>8&255]<<8|w[255&j])^h[J++],ce=(w[X>>>24]<<24|w[Z>>>16&255]<<16|w[j>>>8&255]<<8|w[255&ne])^h[J++],[de>>>=0,ee>>>=0,te>>>=0,ce>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],b=function(){for(var P=new Array(256),h=0;h<256;h++)P[h]=h<128?h<<1:h<<1^283;for(var A=[],w=[],D=[[],[],[],[]],L=[[],[],[],[]],k=0,S=0,U=0;U<256;++U){var Z=S^S<<1^S<<2^S<<3^S<<4;A[k]=Z=Z>>>8^255&Z^99,w[Z]=k;var j=P[k],ne=P[j],X=P[ne],de=257*P[Z]^16843008*Z;D[0][k]=de<<24|de>>>8,D[1][k]=de<<16|de>>>16,D[2][k]=de<<8|de>>>24,D[3][k]=de,L[0][Z]=(de=16843009*X^65537*ne^257*j^16843008*k)<<24|de>>>8,L[1][Z]=de<<16|de>>>16,L[2][Z]=de<<8|de>>>24,L[3][Z]=de,0===k?k=S=1:(k=j^P[P[P[X^j]]],S^=P[P[S]])}return{SBOX:A,INV_SBOX:w,SUB_MIX:D,INV_SUB_MIX:L}}();function d(P){this._key=e(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,h=P.length,A=h+6,w=4*(A+1),D=[],L=0;L>>24)>>>24]<<24|b.SBOX[k>>>16&255]<<16|b.SBOX[k>>>8&255]<<8|b.SBOX[255&k],k^=a[L/h|0]<<24):h>6&&L%h==4&&(k=b.SBOX[k>>>24]<<24|b.SBOX[k>>>16&255]<<16|b.SBOX[k>>>8&255]<<8|b.SBOX[255&k]),D[L]=D[L-h]^k}for(var S=[],U=0;U>>24]]^b.INV_SUB_MIX[1][b.SBOX[j>>>16&255]]^b.INV_SUB_MIX[2][b.SBOX[j>>>8&255]]^b.INV_SUB_MIX[3][b.SBOX[255&j]]}this._nRounds=A,this._keySchedule=D,this._invKeySchedule=S},d.prototype.encryptBlockRaw=function(P){return M(P=e(P),this._keySchedule,b.SUB_MIX,b.SBOX,this._nRounds)},d.prototype.encryptBlock=function(P){var h=this.encryptBlockRaw(P),A=t.allocUnsafe(16);return A.writeUInt32BE(h[0],0),A.writeUInt32BE(h[1],4),A.writeUInt32BE(h[2],8),A.writeUInt32BE(h[3],12),A},d.prototype.decryptBlock=function(P){var h=(P=e(P))[1];P[1]=P[3],P[3]=h;var A=M(P,this._invKeySchedule,b.INV_SUB_MIX,b.INV_SBOX,this._nRounds),w=t.allocUnsafe(16);return w.writeUInt32BE(A[0],0),w.writeUInt32BE(A[3],4),w.writeUInt32BE(A[2],8),w.writeUInt32BE(A[1],12),w},d.prototype.scrub=function(){f(this._keySchedule),f(this._invKeySchedule),f(this._key)},Fe.exports.AES=d},9382:(Fe,Y,p)=>{var t=p(1899),e=p(3502).Buffer,f=p(1052),M=p(3894),a=p(8857),b=p(8789),d=p(7968);function A(w,D,L,k){f.call(this);var S=e.alloc(4,0);this._cipher=new t.AES(D);var U=this._cipher.encryptBlock(S);this._ghash=new a(U),L=function h(w,D,L){if(12===D.length)return w._finID=e.concat([D,e.from([0,0,0,1])]),e.concat([D,e.from([0,0,0,2])]);var k=new a(L),S=D.length,U=S%16;k.update(D),U&&k.update(e.alloc(U=16-U,0)),k.update(e.alloc(8,0));var Z=8*S,j=e.alloc(8);j.writeUIntBE(Z,0,8),k.update(j),w._finID=k.state;var ne=e.from(w._finID);return d(ne),ne}(this,L,U),this._prev=e.from(L),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=k,this._alen=0,this._len=0,this._mode=w,this._authTag=null,this._called=!1}M(A,f),A.prototype._update=function(w){if(!this._called&&this._alen){var D=16-this._alen%16;D<16&&(D=e.alloc(D,0),this._ghash.update(D))}this._called=!0;var L=this._mode.encrypt(this,w);return this._ghash.update(this._decrypt?w:L),this._len+=w.length,L},A.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var w=b(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function P(w,D){var L=0;w.length!==D.length&&L++;for(var k=Math.min(w.length,D.length),S=0;S{var t=p(6900),e=p(856),f=p(4946);Y.createCipher=Y.Cipher=t.createCipher,Y.createCipheriv=Y.Cipheriv=t.createCipheriv,Y.createDecipher=Y.Decipher=e.createDecipher,Y.createDecipheriv=Y.Decipheriv=e.createDecipheriv,Y.listCiphers=Y.getCiphers=function M(){return Object.keys(f)}},856:(Fe,Y,p)=>{var t=p(9382),e=p(3502).Buffer,f=p(9171),M=p(8441),a=p(1052),b=p(1899),d=p(347);function h(k,S,U){a.call(this),this._cache=new A,this._last=void 0,this._cipher=new b.AES(S),this._prev=e.from(U),this._mode=k,this._autopadding=!0}function A(){this.cache=e.allocUnsafe(0)}function D(k,S,U){var Z=f[k.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof U&&(U=e.from(U)),"GCM"!==Z.mode&&U.length!==Z.iv)throw new TypeError("invalid iv length "+U.length);if("string"==typeof S&&(S=e.from(S)),S.length!==Z.key/8)throw new TypeError("invalid key length "+S.length);return"stream"===Z.type?new M(Z.module,S,U,!0):"auth"===Z.type?new t(Z.module,S,U,!0):new h(Z.module,S,U)}p(3894)(h,a),h.prototype._update=function(k){this._cache.add(k);for(var S,U,Z=[];S=this._cache.get(this._autopadding);)U=this._mode.decrypt(this,S),Z.push(U);return e.concat(Z)},h.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return function w(k){var S=k[15];if(S<1||S>16)throw new Error("unable to decrypt data");for(var U=-1;++U16)return S=this.cache.slice(0,16),this.cache=this.cache.slice(16),S}else if(this.cache.length>=16)return S=this.cache.slice(0,16),this.cache=this.cache.slice(16),S;return null},A.prototype.flush=function(){if(this.cache.length)return this.cache},Y.createDecipher=function L(k,S){var U=f[k.toLowerCase()];if(!U)throw new TypeError("invalid suite type");var Z=d(S,!1,U.key,U.iv);return D(k,Z.key,Z.iv)},Y.createDecipheriv=D},6900:(Fe,Y,p)=>{var t=p(9171),e=p(9382),f=p(3502).Buffer,M=p(8441),a=p(1052),b=p(1899),d=p(347);function h(k,S,U){a.call(this),this._cache=new w,this._cipher=new b.AES(S),this._prev=f.from(U),this._mode=k,this._autopadding=!0}p(3894)(h,a),h.prototype._update=function(k){this._cache.add(k);for(var S,U,Z=[];S=this._cache.get();)U=this._mode.encrypt(this,S),Z.push(U);return f.concat(Z)};var A=f.alloc(16,16);function w(){this.cache=f.allocUnsafe(0)}function D(k,S,U){var Z=t[k.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof S&&(S=f.from(S)),S.length!==Z.key/8)throw new TypeError("invalid key length "+S.length);if("string"==typeof U&&(U=f.from(U)),"GCM"!==Z.mode&&U.length!==Z.iv)throw new TypeError("invalid iv length "+U.length);return"stream"===Z.type?new M(Z.module,S,U):"auth"===Z.type?new e(Z.module,S,U):new h(Z.module,S,U)}h.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(A))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},w.prototype.add=function(k){this.cache=f.concat([this.cache,k])},w.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},w.prototype.flush=function(){for(var k=16-this.cache.length,S=f.allocUnsafe(k),U=-1;++U{var t=p(3502).Buffer,e=t.alloc(16,0);function M(b){var d=t.allocUnsafe(16);return d.writeUInt32BE(b[0]>>>0,0),d.writeUInt32BE(b[1]>>>0,4),d.writeUInt32BE(b[2]>>>0,8),d.writeUInt32BE(b[3]>>>0,12),d}function a(b){this.h=b,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}a.prototype.ghash=function(b){for(var d=-1;++d0;P--)b[P]=b[P]>>>1|(1&b[P-1])<<31;b[0]=b[0]>>>1,A&&(b[0]=b[0]^225<<24)}this.state=M(d)},a.prototype.update=function(b){this.cache=t.concat([this.cache,b]);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(b,d){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(M([0,b,0,d])),this.state},Fe.exports=a},7968:Fe=>{Fe.exports=function Y(p){for(var e,t=p.length;t--;){if(255!==(e=p.readUInt8(t))){e++,p.writeUInt8(e,t);break}p.writeUInt8(0,t)}}},4903:(Fe,Y,p)=>{var t=p(8789);Y.encrypt=function(e,f){var M=t(f,e._prev);return e._prev=e._cipher.encryptBlock(M),e._prev},Y.decrypt=function(e,f){var M=e._prev;e._prev=f;var a=e._cipher.decryptBlock(f);return t(a,M)}},9885:(Fe,Y,p)=>{var t=p(3502).Buffer,e=p(8789);function f(M,a,b){var d=a.length,P=e(a,M._cache);return M._cache=M._cache.slice(d),M._prev=t.concat([M._prev,b?a:P]),P}Y.encrypt=function(M,a,b){for(var P,d=t.allocUnsafe(0);a.length;){if(0===M._cache.length&&(M._cache=M._cipher.encryptBlock(M._prev),M._prev=t.allocUnsafe(0)),!(M._cache.length<=a.length)){d=t.concat([d,f(M,a,b)]);break}d=t.concat([d,f(M,a.slice(0,P=M._cache.length),b)]),a=a.slice(P)}return d}},6531:(Fe,Y,p)=>{var t=p(3502).Buffer;function e(M,a,b){for(var w,D,P=-1,A=0;++P<8;)A+=(128&(D=M._cipher.encryptBlock(M._prev)[0]^(w=a&1<<7-P?128:0)))>>P%8,M._prev=f(M._prev,b?w:D);return A}function f(M,a){var b=M.length,d=-1,P=t.allocUnsafe(M.length);for(M=t.concat([M,t.from([a])]);++d>7;return P}Y.encrypt=function(M,a,b){for(var d=a.length,P=t.allocUnsafe(d),h=-1;++h{var t=p(3502).Buffer;function e(f,M,a){var d=f._cipher.encryptBlock(f._prev)[0]^M;return f._prev=t.concat([f._prev.slice(1),t.from([a?M:d])]),d}Y.encrypt=function(f,M,a){for(var b=M.length,d=t.allocUnsafe(b),P=-1;++P{var t=p(8789),e=p(3502).Buffer,f=p(7968);function M(b){var d=b._cipher.encryptBlockRaw(b._prev);return f(b._prev),d}Y.encrypt=function(b,d){var P=Math.ceil(d.length/16),h=b._cache.length;b._cache=e.concat([b._cache,e.allocUnsafe(16*P)]);for(var A=0;A{Y.encrypt=function(p,t){return p._cipher.encryptBlock(t)},Y.decrypt=function(p,t){return p._cipher.decryptBlock(t)}},9171:(Fe,Y,p)=>{var t={ECB:p(1704),CBC:p(4903),CFB:p(9885),CFB8:p(1641),CFB1:p(6531),OFB:p(6816),CTR:p(1150),GCM:p(1150)},e=p(4946);for(var f in e)e[f].module=t[e[f].mode];Fe.exports=e},6816:(Fe,Y,p)=>{var t=p(8789);function e(f){return f._prev=f._cipher.encryptBlock(f._prev),f._prev}Y.encrypt=function(f,M){for(;f._cache.length{var t=p(1899),e=p(3502).Buffer,f=p(1052);function a(b,d,P,h){f.call(this),this._cipher=new t.AES(d),this._prev=e.from(P),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=h,this._mode=b}p(3894)(a,f),a.prototype._update=function(b){return this._mode.encrypt(this,b,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},Fe.exports=a},5255:(Fe,Y,p)=>{var t=p(9004),e=p(4330),f=p(9171),M=p(1115),a=p(347);function P(w,D,L){if(w=w.toLowerCase(),f[w])return e.createCipheriv(w,D,L);if(M[w])return new t({key:D,iv:L,mode:w});throw new TypeError("invalid suite type")}function h(w,D,L){if(w=w.toLowerCase(),f[w])return e.createDecipheriv(w,D,L);if(M[w])return new t({key:D,iv:L,mode:w,decrypt:!0});throw new TypeError("invalid suite type")}Y.createCipher=Y.Cipher=function b(w,D){var L,k;if(w=w.toLowerCase(),f[w])L=f[w].key,k=f[w].iv;else{if(!M[w])throw new TypeError("invalid suite type");L=8*M[w].key,k=M[w].iv}var S=a(D,!1,L,k);return P(w,S.key,S.iv)},Y.createCipheriv=Y.Cipheriv=P,Y.createDecipher=Y.Decipher=function d(w,D){var L,k;if(w=w.toLowerCase(),f[w])L=f[w].key,k=f[w].iv;else{if(!M[w])throw new TypeError("invalid suite type");L=8*M[w].key,k=M[w].iv}var S=a(D,!1,L,k);return h(w,S.key,S.iv)},Y.createDecipheriv=Y.Decipheriv=h,Y.listCiphers=Y.getCiphers=function A(){return Object.keys(M).concat(e.getCiphers())}},9004:(Fe,Y,p)=>{var t=p(1052),e=p(3684),f=p(3894),M=p(3502).Buffer,a={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function b(d){t.call(this);var A,P=d.mode.toLowerCase(),h=a[P];A=d.decrypt?"decrypt":"encrypt";var w=d.key;M.isBuffer(w)||(w=M.from(w)),("des-ede"===P||"des-ede-cbc"===P)&&(w=M.concat([w,w.slice(0,8)]));var D=d.iv;M.isBuffer(D)||(D=M.from(D)),this._des=h.create({key:w,iv:D,type:A})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],Fe.exports=b,f(b,t),b.prototype._update=function(d){return M.from(this._des.update(d))},b.prototype._final=function(){return M.from(this._des.final())}},1115:(Fe,Y)=>{Y["des-ecb"]={key:8,iv:0},Y["des-cbc"]=Y.des={key:8,iv:8},Y["des-ede3-cbc"]=Y.des3={key:24,iv:8},Y["des-ede3"]={key:24,iv:0},Y["des-ede-cbc"]={key:16,iv:8},Y["des-ede"]={key:16,iv:0}},8466:(Fe,Y,p)=>{var t=p(8538),e=p(3753);function M(b){var P,d=b.modulus.byteLength();do{P=new t(e(d))}while(P.cmp(b.modulus)>=0||!P.umod(b.prime1)||!P.umod(b.prime2));return P}function a(b,d){var P=function f(b){var d=M(b);return{blinder:d.toRed(t.mont(b.modulus)).redPow(new t(b.publicExponent)).fromRed(),unblinder:d.invm(b.modulus)}}(d),h=d.modulus.byteLength(),A=new t(b).mul(P.blinder).umod(d.modulus),w=A.toRed(t.mont(d.prime1)),D=A.toRed(t.mont(d.prime2)),L=d.coefficient,k=d.prime1,S=d.prime2,U=w.redPow(d.exponent1).fromRed(),Z=D.redPow(d.exponent2).fromRed(),j=U.isub(Z).imul(L).umod(k).imul(S);return Z.iadd(j).imul(P.unblinder).umod(d.modulus).toArrayLike(Buffer,"be",h)}a.getr=M,Fe.exports=a},7793:(Fe,Y,p)=>{Fe.exports=p(5207)},3923:(Fe,Y,p)=>{var t=p(8446).Buffer,e=p(6386),f=p(5685),M=p(3894),a=p(9947),b=p(3946),d=p(5207);function P(D){f.Writable.call(this);var L=d[D];if(!L)throw new Error("Unknown message digest");this._hashType=L.hash,this._hash=e(L.hash),this._tag=L.id,this._signType=L.sign}function h(D){f.Writable.call(this);var L=d[D];if(!L)throw new Error("Unknown message digest");this._hash=e(L.hash),this._tag=L.id,this._signType=L.sign}function A(D){return new P(D)}function w(D){return new h(D)}Object.keys(d).forEach(function(D){d[D].id=t.from(d[D].id,"hex"),d[D.toLowerCase()]=d[D]}),M(P,f.Writable),P.prototype._write=function(L,k,S){this._hash.update(L),S()},P.prototype.update=function(L,k){return"string"==typeof L&&(L=t.from(L,k)),this._hash.update(L),this},P.prototype.sign=function(L,k){this.end();var S=this._hash.digest(),U=a(S,L,this._hashType,this._signType,this._tag);return k?U.toString(k):U},M(h,f.Writable),h.prototype._write=function(L,k,S){this._hash.update(L),S()},h.prototype.update=function(L,k){return"string"==typeof L&&(L=t.from(L,k)),this._hash.update(L),this},h.prototype.verify=function(L,k,S){"string"==typeof k&&(k=t.from(k,S)),this.end();var U=this._hash.digest();return b(k,U,L,this._signType,this._tag)},Fe.exports={Sign:A,Verify:w,createSign:A,createVerify:w}},9947:(Fe,Y,p)=>{var t=p(8446).Buffer,e=p(4529),f=p(8466),M=p(7715).ec,a=p(8538),b=p(2772),d=p(1308);function D(Z,j,ne,X){if((Z=t.from(Z.toArray())).length0&&ne.ishrn(X),ne}function S(Z,j,ne){var X,de;do{for(X=t.alloc(0);8*X.length{var t=p(8446).Buffer,e=p(8538),f=p(7715).ec,M=p(2772),a=p(1308);function h(A,w){if(A.cmpn(0)<=0)throw new Error("invalid sig");if(A.cmp(w)>=w)throw new Error("invalid sig")}Fe.exports=function b(A,w,D,L,k){var S=M(D);if("ec"===S.type){if("ecdsa"!==L&&"ecdsa/rsa"!==L)throw new Error("wrong public key type");return function d(A,w,D){var L=a[D.data.algorithm.curve.join(".")];if(!L)throw new Error("unknown curve "+D.data.algorithm.curve.join("."));return new f(L).verify(w,A,D.data.subjectPrivateKey.data)}(A,w,S)}if("dsa"===S.type){if("dsa"!==L)throw new Error("wrong public key type");return function P(A,w,D){var L=D.data.p,k=D.data.q,S=D.data.g,U=D.data.pub_key,Z=M.signature.decode(A,"der"),j=Z.s,ne=Z.r;h(j,k),h(ne,k);var X=e.mont(L),de=j.invm(k);return 0===S.toRed(X).redPow(new e(w).mul(de).mod(k)).fromRed().mul(U.toRed(X).redPow(ne.mul(de).mod(k)).fromRed()).mod(L).mod(k).cmp(ne)}(A,w,S)}if("rsa"!==L&&"ecdsa/rsa"!==L)throw new Error("wrong public key type");w=t.concat([k,w]);for(var U=S.modulus.byteLength(),Z=[1],j=0;w.length+Z.length+2{var t=p(3172),e=t.Buffer;function f(a,b){for(var d in a)b[d]=a[d]}function M(a,b,d){return e(a,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Fe.exports=t:(f(t,Y),Y.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(a,b,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,b,d)},M.alloc=function(a,b,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=e(a);return void 0!==b?"string"==typeof d?P.fill(b,d):P.fill(b):P.fill(0),P},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},8789:Fe=>{Fe.exports=function(p,t){for(var e=Math.min(p.length,t.length),f=new Buffer(e),M=0;M{"use strict";var t=p(5343),e=p(8461),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Y.Buffer=d,Y.SlowBuffer=function j(Ie){return+Ie!=Ie&&(Ie=0),d.alloc(+Ie)},Y.INSPECT_MAX_BYTES=50;var M=2147483647;function b(Ie){if(Ie>M)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,se){if("number"==typeof Ie){if("string"==typeof Ae)throw new TypeError('The "string" argument must be of type string. Received type number');return w(Ie)}return P(Ie,Ae,se)}function P(Ie,Ae,se){if("string"==typeof Ie)return function D(Ie,Ae){if(("string"!=typeof Ae||""===Ae)&&(Ae="utf8"),!d.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);var se=0|ne(Ie,Ae),Te=b(se),ye=Te.write(Ie,Ae);return ye!==se&&(Te=Te.slice(0,ye)),Te}(Ie,Ae);if(ArrayBuffer.isView(Ie))return function k(Ie){if(F(Ie,Uint8Array)){var Ae=new Uint8Array(Ie);return S(Ae.buffer,Ae.byteOffset,Ae.byteLength)}return L(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(F(Ie,ArrayBuffer)||Ie&&F(Ie.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(F(Ie,SharedArrayBuffer)||Ie&&F(Ie.buffer,SharedArrayBuffer)))return S(Ie,Ae,se);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,se);var ye=function U(Ie){if(d.isBuffer(Ie)){var Ae=0|Z(Ie.length),se=b(Ae);return 0===se.length||Ie.copy(se,0,0,Ae),se}return void 0!==Ie.length?"number"!=typeof Ie.length||De(Ie.length)?b(0):L(Ie):"Buffer"===Ie.type&&Array.isArray(Ie.data)?L(Ie.data):void 0}(Ie);if(ye)return ye;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Ie[Symbol.toPrimitive])return d.from(Ie[Symbol.toPrimitive]("string"),Ae,se);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie)}function h(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 w(Ie){return h(Ie),b(Ie<0?0:0|Z(Ie))}function L(Ie){for(var Ae=Ie.length<0?0:0|Z(Ie.length),se=b(Ae),Te=0;Te=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return 0|Ie}function ne(Ie,Ae){if(d.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||F(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 se=Ie.length,Te=arguments.length>2&&!0===arguments[2];if(!Te&&0===se)return 0;for(var ye=!1;;)switch(Ae){case"ascii":case"latin1":case"binary":return se;case"utf8":case"utf-8":return Re(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*se;case"hex":return se>>>1;case"base64":return Ge(Ie).length;default:if(ye)return Te?-1:Re(Ie).length;Ae=(""+Ae).toLowerCase(),ye=!0}}function X(Ie,Ae,se){var Te=!1;if((void 0===Ae||Ae<0)&&(Ae=0),Ae>this.length||((void 0===se||se>this.length)&&(se=this.length),se<=0)||(se>>>=0)<=(Ae>>>=0))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return v(this,Ae,se);case"utf8":case"utf-8":return u(this,Ae,se);case"ascii":return E(this,Ae,se);case"latin1":case"binary":return I(this,Ae,se);case"base64":return r(this,Ae,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,Ae,se);default:if(Te)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),Te=!0}}function de(Ie,Ae,se){var Te=Ie[Ae];Ie[Ae]=Ie[se],Ie[se]=Te}function ee(Ie,Ae,se,Te,ye){if(0===Ie.length)return-1;if("string"==typeof se?(Te=se,se=0):se>2147483647?se=2147483647:se<-2147483648&&(se=-2147483648),De(se=+se)&&(se=ye?0:Ie.length-1),se<0&&(se=Ie.length+se),se>=Ie.length){if(ye)return-1;se=Ie.length-1}else if(se<0){if(!ye)return-1;se=0}if("string"==typeof Ae&&(Ae=d.from(Ae,Te)),d.isBuffer(Ae))return 0===Ae.length?-1:te(Ie,Ae,se,Te,ye);if("number"==typeof Ae)return Ae&=255,"function"==typeof Uint8Array.prototype.indexOf?ye?Uint8Array.prototype.indexOf.call(Ie,Ae,se):Uint8Array.prototype.lastIndexOf.call(Ie,Ae,se):te(Ie,[Ae],se,Te,ye);throw new TypeError("val must be string, number or Buffer")}function te(Ie,Ae,se,Te,ye){var Le,W=1,$=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;W=2,$/=2,ue/=2,se/=2}function Ce(di,Yt){return 1===W?di[Yt]:di.readUInt16BE(Yt*W)}if(ye){var ct=-1;for(Le=se;Le<$;Le++)if(Ce(Ie,Le)===Ce(Ae,-1===ct?0:Le-ct)){if(-1===ct&&(ct=Le),Le-ct+1===ue)return ct*W}else-1!==ct&&(Le-=Le-ct),ct=-1}else for(se+ue>$&&(se=$-ue),Le=se;Le>=0;Le--){for(var ut=!0,Dt=0;Dtye&&(Te=ye):Te=ye;var W=Ae.length;Te>W/2&&(Te=W/2);for(var $=0;$>8,W.push(se%256),W.push(Te);return W}(Ae,Ie.length-se),Ie,se,Te)}function r(Ie,Ae,se){return t.fromByteArray(0===Ae&&se===Ie.length?Ie:Ie.slice(Ae,se))}function u(Ie,Ae,se){se=Math.min(Ie.length,se);for(var Te=[],ye=Ae;ye239?4:W>223?3:W>191?2:1;if(ye+ue<=se)switch(ue){case 1:W<128&&($=W);break;case 2:128==(192&(Ce=Ie[ye+1]))&&(ut=(31&W)<<6|63&Ce)>127&&($=ut);break;case 3:Le=Ie[ye+2],128==(192&(Ce=Ie[ye+1]))&&128==(192&Le)&&(ut=(15&W)<<12|(63&Ce)<<6|63&Le)>2047&&(ut<55296||ut>57343)&&($=ut);break;case 4:Le=Ie[ye+2],ct=Ie[ye+3],128==(192&(Ce=Ie[ye+1]))&&128==(192&Le)&&128==(192&ct)&&(ut=(15&W)<<18|(63&Ce)<<12|(63&Le)<<6|63&ct)>65535&&ut<1114112&&($=ut)}null===$?($=65533,ue=1):$>65535&&(Te.push(($-=65536)>>>10&1023|55296),$=56320|1023&$),Te.push($),ye+=ue}return function _(Ie){var Ae=Ie.length;if(Ae<=c)return String.fromCharCode.apply(String,Ie);for(var se="",Te=0;Teye.length?d.from($).copy(ye,W):Uint8Array.prototype.set.call(ye,$,W);else{if(!d.isBuffer($))throw new TypeError('"list" argument must be an Array of Buffers');$.copy(ye,W)}W+=$.length}return ye},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 se=0;sese&&(Ae+=" ... "),""},f&&(d.prototype[f]=d.prototype.inspect),d.prototype.compare=function(Ae,se,Te,ye,W){if(F(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===se&&(se=0),void 0===Te&&(Te=Ae?Ae.length:0),void 0===ye&&(ye=0),void 0===W&&(W=this.length),se<0||Te>Ae.length||ye<0||W>this.length)throw new RangeError("out of range index");if(ye>=W&&se>=Te)return 0;if(ye>=W)return-1;if(se>=Te)return 1;if(this===Ae)return 0;for(var $=(W>>>=0)-(ye>>>=0),ue=(Te>>>=0)-(se>>>=0),Ce=Math.min($,ue),Le=this.slice(ye,W),ct=Ae.slice(se,Te),ut=0;ut>>=0,isFinite(Te)?(Te>>>=0,void 0===ye&&(ye="utf8")):(ye=Te,Te=void 0)}var W=this.length-se;if((void 0===Te||Te>W)&&(Te=W),Ae.length>0&&(Te<0||se<0)||se>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");for(var $=!1;;)switch(ye){case"hex":return ce(this,Ae,se,Te);case"utf8":case"utf-8":return J(this,Ae,se,Te);case"ascii":case"latin1":case"binary":return me(this,Ae,se,Te);case"base64":return x(this,Ae,se,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ae,se,Te);default:if($)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),$=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c=4096;function E(Ie,Ae,se){var Te="";se=Math.min(Ie.length,se);for(var ye=Ae;yeTe)&&(se=Te);for(var ye="",W=Ae;Wse)throw new RangeError("Trying to access beyond buffer length")}function B(Ie,Ae,se,Te,ye,W){if(!d.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ae>ye||AeIe.length)throw new RangeError("Index out of range")}function N(Ie,Ae,se,Te,ye,W){if(se+Te>Ie.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("Index out of range")}function z(Ie,Ae,se,Te,ye){return Ae=+Ae,se>>>=0,ye||N(Ie,0,se,4),e.write(Ie,Ae,se,Te,23,4),se+4}function oe(Ie,Ae,se,Te,ye){return Ae=+Ae,se>>>=0,ye||N(Ie,0,se,8),e.write(Ie,Ae,se,Te,52,8),se+8}d.prototype.slice=function(Ae,se){var Te=this.length;(Ae=~~Ae)<0?(Ae+=Te)<0&&(Ae=0):Ae>Te&&(Ae=Te),(se=void 0===se?Te:~~se)<0?(se+=Te)<0&&(se=0):se>Te&&(se=Te),se>>=0,se>>>=0,Te||C(Ae,se,this.length);for(var ye=this[Ae],W=1,$=0;++$>>=0,se>>>=0,Te||C(Ae,se,this.length);for(var ye=this[Ae+--se],W=1;se>0&&(W*=256);)ye+=this[Ae+--se]*W;return ye},d.prototype.readUint8=d.prototype.readUInt8=function(Ae,se){return Ae>>>=0,se||C(Ae,1,this.length),this[Ae]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(Ae,se){return Ae>>>=0,se||C(Ae,2,this.length),this[Ae]|this[Ae+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(Ae,se){return Ae>>>=0,se||C(Ae,2,this.length),this[Ae]<<8|this[Ae+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(Ae,se){return Ae>>>=0,se||C(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,se){return Ae>>>=0,se||C(Ae,4,this.length),16777216*this[Ae]+(this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3])},d.prototype.readIntLE=function(Ae,se,Te){Ae>>>=0,se>>>=0,Te||C(Ae,se,this.length);for(var ye=this[Ae],W=1,$=0;++$=(W*=128)&&(ye-=Math.pow(2,8*se)),ye},d.prototype.readIntBE=function(Ae,se,Te){Ae>>>=0,se>>>=0,Te||C(Ae,se,this.length);for(var ye=se,W=1,$=this[Ae+--ye];ye>0&&(W*=256);)$+=this[Ae+--ye]*W;return $>=(W*=128)&&($-=Math.pow(2,8*se)),$},d.prototype.readInt8=function(Ae,se){return Ae>>>=0,se||C(Ae,1,this.length),128&this[Ae]?-1*(255-this[Ae]+1):this[Ae]},d.prototype.readInt16LE=function(Ae,se){Ae>>>=0,se||C(Ae,2,this.length);var Te=this[Ae]|this[Ae+1]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt16BE=function(Ae,se){Ae>>>=0,se||C(Ae,2,this.length);var Te=this[Ae+1]|this[Ae]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt32LE=function(Ae,se){return Ae>>>=0,se||C(Ae,4,this.length),this[Ae]|this[Ae+1]<<8|this[Ae+2]<<16|this[Ae+3]<<24},d.prototype.readInt32BE=function(Ae,se){return Ae>>>=0,se||C(Ae,4,this.length),this[Ae]<<24|this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3]},d.prototype.readFloatLE=function(Ae,se){return Ae>>>=0,se||C(Ae,4,this.length),e.read(this,Ae,!0,23,4)},d.prototype.readFloatBE=function(Ae,se){return Ae>>>=0,se||C(Ae,4,this.length),e.read(this,Ae,!1,23,4)},d.prototype.readDoubleLE=function(Ae,se){return Ae>>>=0,se||C(Ae,8,this.length),e.read(this,Ae,!0,52,8)},d.prototype.readDoubleBE=function(Ae,se){return Ae>>>=0,se||C(Ae,8,this.length),e.read(this,Ae,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(Ae,se,Te,ye){Ae=+Ae,se>>>=0,Te>>>=0,ye||B(this,Ae,se,Te,Math.pow(2,8*Te)-1,0);var $=1,ue=0;for(this[se]=255&Ae;++ue>>=0,Te>>>=0,ye||B(this,Ae,se,Te,Math.pow(2,8*Te)-1,0);var $=Te-1,ue=1;for(this[se+$]=255&Ae;--$>=0&&(ue*=256);)this[se+$]=Ae/ue&255;return se+Te},d.prototype.writeUint8=d.prototype.writeUInt8=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,1,255,0),this[se]=255&Ae,se+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,2,65535,0),this[se]=255&Ae,this[se+1]=Ae>>>8,se+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,2,65535,0),this[se]=Ae>>>8,this[se+1]=255&Ae,se+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,4,4294967295,0),this[se+3]=Ae>>>24,this[se+2]=Ae>>>16,this[se+1]=Ae>>>8,this[se]=255&Ae,se+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,4,4294967295,0),this[se]=Ae>>>24,this[se+1]=Ae>>>16,this[se+2]=Ae>>>8,this[se+3]=255&Ae,se+4},d.prototype.writeIntLE=function(Ae,se,Te,ye){if(Ae=+Ae,se>>>=0,!ye){var W=Math.pow(2,8*Te-1);B(this,Ae,se,Te,W-1,-W)}var $=0,ue=1,Ce=0;for(this[se]=255&Ae;++$>0)-Ce&255;return se+Te},d.prototype.writeIntBE=function(Ae,se,Te,ye){if(Ae=+Ae,se>>>=0,!ye){var W=Math.pow(2,8*Te-1);B(this,Ae,se,Te,W-1,-W)}var $=Te-1,ue=1,Ce=0;for(this[se+$]=255&Ae;--$>=0&&(ue*=256);)Ae<0&&0===Ce&&0!==this[se+$+1]&&(Ce=1),this[se+$]=(Ae/ue>>0)-Ce&255;return se+Te},d.prototype.writeInt8=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,1,127,-128),Ae<0&&(Ae=255+Ae+1),this[se]=255&Ae,se+1},d.prototype.writeInt16LE=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,2,32767,-32768),this[se]=255&Ae,this[se+1]=Ae>>>8,se+2},d.prototype.writeInt16BE=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,2,32767,-32768),this[se]=Ae>>>8,this[se+1]=255&Ae,se+2},d.prototype.writeInt32LE=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,4,2147483647,-2147483648),this[se]=255&Ae,this[se+1]=Ae>>>8,this[se+2]=Ae>>>16,this[se+3]=Ae>>>24,se+4},d.prototype.writeInt32BE=function(Ae,se,Te){return Ae=+Ae,se>>>=0,Te||B(this,Ae,se,4,2147483647,-2147483648),Ae<0&&(Ae=4294967295+Ae+1),this[se]=Ae>>>24,this[se+1]=Ae>>>16,this[se+2]=Ae>>>8,this[se+3]=255&Ae,se+4},d.prototype.writeFloatLE=function(Ae,se,Te){return z(this,Ae,se,!0,Te)},d.prototype.writeFloatBE=function(Ae,se,Te){return z(this,Ae,se,!1,Te)},d.prototype.writeDoubleLE=function(Ae,se,Te){return oe(this,Ae,se,!0,Te)},d.prototype.writeDoubleBE=function(Ae,se,Te){return oe(this,Ae,se,!1,Te)},d.prototype.copy=function(Ae,se,Te,ye){if(!d.isBuffer(Ae))throw new TypeError("argument should be a Buffer");if(Te||(Te=0),!ye&&0!==ye&&(ye=this.length),se>=Ae.length&&(se=Ae.length),se||(se=0),ye>0&&ye=this.length)throw new RangeError("Index out of range");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),Ae.length-se>>=0,Te=void 0===Te?this.length:Te>>>0,Ae||(Ae=0),"number"==typeof Ae)for($=se;$55295&&se<57344){if(!ye){if(se>56319){(Ae-=3)>-1&&W.push(239,191,189);continue}if($+1===Te){(Ae-=3)>-1&&W.push(239,191,189);continue}ye=se;continue}if(se<56320){(Ae-=3)>-1&&W.push(239,191,189),ye=se;continue}se=65536+(ye-55296<<10|se-56320)}else ye&&(Ae-=3)>-1&&W.push(239,191,189);if(ye=null,se<128){if((Ae-=1)<0)break;W.push(se)}else if(se<2048){if((Ae-=2)<0)break;W.push(se>>6|192,63&se|128)}else if(se<65536){if((Ae-=3)<0)break;W.push(se>>12|224,se>>6&63|128,63&se|128)}else{if(!(se<1114112))throw new Error("Invalid code point");if((Ae-=4)<0)break;W.push(se>>18|240,se>>12&63|128,se>>6&63|128,63&se|128)}}return W}function Ge(Ie){return t.toByteArray(function be(Ie){if((Ie=(Ie=Ie.split("=")[0]).trim().replace(ge,"")).length<2)return"";for(;Ie.length%4!=0;)Ie+="=";return Ie}(Ie))}function ve(Ie,Ae,se,Te){for(var ye=0;ye=Ae.length||ye>=Ie.length);++ye)Ae[ye+se]=Ie[ye];return ye}function F(Ie,Ae){return Ie instanceof Ae||null!=Ie&&null!=Ie.constructor&&null!=Ie.constructor.name&&Ie.constructor.name===Ae.name}function De(Ie){return Ie!=Ie}var lt=function(){for(var Ie="0123456789abcdef",Ae=new Array(256),se=0;se<16;++se)for(var Te=16*se,ye=0;ye<16;++ye)Ae[Te+ye]=Ie[se]+Ie[ye];return Ae}()},1052:(Fe,Y,p)=>{var t=p(3502).Buffer,e=p(295).Transform,f=p(3054).s;function a(b){e.call(this),this.hashMode="string"==typeof b,this.hashMode?this[b]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(3894)(a,e),a.prototype.update=function(b,d,P){"string"==typeof b&&(b=t.from(b,d));var h=this._update(b);return this.hashMode?this:(P&&(h=this._toString(h,P)),h)},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(b,d,P){var h;try{this.hashMode?this._update(b):this.push(this._update(b))}catch(A){h=A}finally{P(h)}},a.prototype._flush=function(b){var d;try{this.push(this.__final())}catch(P){d=P}b(d)},a.prototype._finalOrDigest=function(b){var d=this.__final()||t.alloc(0);return b&&(d=this._toString(d,b,!0)),d},a.prototype._toString=function(b,d,P){if(this._decoder||(this._decoder=new f(d),this._encoding=d),this._encoding!==d)throw new Error("can't switch encodings");var h=this._decoder.write(b);return P&&(h+=this._decoder.end()),h},Fe.exports=a},7293:(Fe,Y,p)=>{"use strict";const t=p(4315),e=p(2872),f=p(717);Fe.exports=function M(d,P){switch(e(d)){case"object":return function a(d,P){if("function"==typeof P)return P(d);if(P||f(d)){const h=new d.constructor;for(let A in d)h[A]=M(d[A],P);return h}return d}(d,P);case"array":return function b(d,P){const h=new d.constructor(d.length);for(let A=0;AM?f:Array(M-f.length+1).join("0")+f}(M.toString(16),2)}).join("")}(f)},hexToBytes:function(f){if(f.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===f.indexOf("0x")&&(f=f.slice(2)),f.match(/../g).map(function(M){return parseInt(M,16)})}};Fe.exports?Fe.exports=p:Y.convertHex=p}(this)},5612:function(Fe){!function(Y){"use strict";var p={bytesToString:function(t){return t.map(function(e){return String.fromCharCode(e)}).join("")},stringToBytes:function(t){return t.split("").map(function(e){return e.charCodeAt(0)})}};p.UTF8={bytesToString:function(t){return decodeURIComponent(escape(p.bytesToString(t)))},stringToBytes:function(t){return p.stringToBytes(unescape(encodeURIComponent(t)))}},Fe.exports?Fe.exports=p:Y.convertString=p}(this)},4746:(Fe,Y,p)=>{var t=p(7715),e=p(6422);Fe.exports=function(d){return new M(d)};var f={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 M(b){this.curveType=f[b],this.curveType||(this.curveType={name:b}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(b,d,P){Array.isArray(b)||(b=b.toArray());var h=new Buffer(b);if(P&&h.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,_=Math.min(x.length,r),E=i;E<_;E++){var I=x.charCodeAt(E)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[_]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===u)for(c=0,_=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(i,r,c)<<_,this.words[E]|=67108863&I,_>=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,_=1;_<=67108863;_*=r)c++;c--,_=_/r|0;for(var E=i.length-u,I=E%c,v=Math.min(E,E-I)+u,n=0,C=u;C1&&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 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"],w=[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],D=[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,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],_=0|i.words[0],E=c*_,v=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&v,N=Math.min(n,i.length-1),z=Math.max(0,n-x.length+1);z<=N;z++)C+=(E=(c=0|x.words[n-z|0])*(_=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,v=0|C}return 0!==v?r.words[n]=0|v:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,_=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-v.length]+v+u:v+u,(c+=2)>=26&&(c-=26,E--)}for(0!==_&&(u=_.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],C=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(C).toString(i);u=(B=B.idivn(C)).isZero()?N+u:A[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),_=u||Math.max(1,c);f(c<=_,"byte array longer than desired length"),f(_>0,"Requested array length <= 0"),this.strip();var v,n,E="le"===r,I=new i(_),C=this.clone();if(E){for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[n]=v;for(;n<_;n++)I[n]=0}else{for(n=0;n<_-c;n++)I[n]=0;for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[_-n-1]=v}return I},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var _=0,E=0;E>>26;for(;0!==_&&E>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,_=i):(c=i,_=this);for(var E=0,I=0;I<_.length;I++)E=(r=(0|c.words[I])-(0|_.words[I])+E)>>26,this.words[I]=67108863&r;for(;0!==E&&I>26,this.words[I]=67108863&r;if(0===E&&I>>13,oe=0|c[1],ge=8191&oe,be=oe>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,De=0|c[4],lt=8191&De,Ie=De>>>13,Ae=0|c[5],se=8191&Ae,Te=Ae>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|_[0],xt=8191&ui,Nt=ui>>>13,gt=0|_[1],et=8191>,vt=gt>>>13,$t=0|_[2],jt=8191&$t,Pe=$t>>>13,Oe=0|_[3],le=8191&Oe,xe=Oe>>>13,ht=0|_[4],ft=8191&ht,Ht=ht>>>13,it=0|_[5],Ne=8191&it,tt=it>>>13,Je=0|_[6],Se=8191&Je,Ue=Je>>>13,rt=0|_[7],at=8191&rt,yt=rt>>>13,gi=0|_[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|_[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(I+(v=Math.imul(N,xt))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(z,xt)|0))<<13)|0;I=((C=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,v=Math.imul(ge,xt),n=(n=Math.imul(ge,Nt))+Math.imul(be,xt)|0,C=Math.imul(be,Nt);var Wi=(I+(v=v+Math.imul(N,et)|0)|0)+((8191&(n=(n=n+Math.imul(N,vt)|0)+Math.imul(z,et)|0))<<13)|0;I=((C=C+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,v=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,C=Math.imul(Q,Nt),v=v+Math.imul(ge,et)|0,n=(n=n+Math.imul(ge,vt)|0)+Math.imul(be,et)|0,C=C+Math.imul(be,vt)|0;var Gi=(I+(v=v+Math.imul(N,jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;I=((C=C+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,v=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,C=Math.imul(F,Nt),v=v+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,C=C+Math.imul(Q,vt)|0,v=v+Math.imul(ge,jt)|0,n=(n=n+Math.imul(ge,Pe)|0)+Math.imul(be,jt)|0,C=C+Math.imul(be,Pe)|0;var Yi=(I+(v=v+Math.imul(N,le)|0)|0)+((8191&(n=(n=n+Math.imul(N,xe)|0)+Math.imul(z,le)|0))<<13)|0;I=((C=C+Math.imul(z,xe)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,v=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,C=Math.imul(Ie,Nt),v=v+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,C=C+Math.imul(F,vt)|0,v=v+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,C=C+Math.imul(Q,Pe)|0,v=v+Math.imul(ge,le)|0,n=(n=n+Math.imul(ge,xe)|0)+Math.imul(be,le)|0,C=C+Math.imul(be,xe)|0;var ze=(I+(v=v+Math.imul(N,ft)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;I=((C=C+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,v=Math.imul(se,xt),n=(n=Math.imul(se,Nt))+Math.imul(Te,xt)|0,C=Math.imul(Te,Nt),v=v+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,C=C+Math.imul(Ie,vt)|0,v=v+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,C=C+Math.imul(F,Pe)|0,v=v+Math.imul(we,le)|0,n=(n=n+Math.imul(we,xe)|0)+Math.imul(Q,le)|0,C=C+Math.imul(Q,xe)|0,v=v+Math.imul(ge,ft)|0,n=(n=n+Math.imul(ge,Ht)|0)+Math.imul(be,ft)|0,C=C+Math.imul(be,Ht)|0;var Lt=(I+(v=v+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;I=((C=C+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,C=Math.imul($,Nt),v=v+Math.imul(se,et)|0,n=(n=n+Math.imul(se,vt)|0)+Math.imul(Te,et)|0,C=C+Math.imul(Te,vt)|0,v=v+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,C=C+Math.imul(Ie,Pe)|0,v=v+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,xe)|0)+Math.imul(F,le)|0,C=C+Math.imul(F,xe)|0,v=v+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,C=C+Math.imul(Q,Ht)|0,v=v+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(be,Ne)|0,C=C+Math.imul(be,tt)|0;var fe=(I+(v=v+Math.imul(N,Se)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;I=((C=C+Math.imul(z,Ue)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,v=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,C=Math.imul(Le,Nt),v=v+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,C=C+Math.imul($,vt)|0,v=v+Math.imul(se,jt)|0,n=(n=n+Math.imul(se,Pe)|0)+Math.imul(Te,jt)|0,C=C+Math.imul(Te,Pe)|0,v=v+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,xe)|0)+Math.imul(Ie,le)|0,C=C+Math.imul(Ie,xe)|0,v=v+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,C=C+Math.imul(F,Ht)|0,v=v+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,C=C+Math.imul(Q,tt)|0,v=v+Math.imul(ge,Se)|0,n=(n=n+Math.imul(ge,Ue)|0)+Math.imul(be,Se)|0,C=C+Math.imul(be,Ue)|0;var je=(I+(v=v+Math.imul(N,at)|0)|0)+((8191&(n=(n=n+Math.imul(N,yt)|0)+Math.imul(z,at)|0))<<13)|0;I=((C=C+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,v=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,C=Math.imul(Dt,Nt),v=v+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,C=C+Math.imul($,Pe)|0,v=v+Math.imul(se,le)|0,n=(n=n+Math.imul(se,xe)|0)+Math.imul(Te,le)|0,C=C+Math.imul(Te,xe)|0,v=v+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,C=C+Math.imul(Ie,Ht)|0,v=v+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,C=C+Math.imul(F,tt)|0,v=v+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,C=C+Math.imul(Q,Ue)|0,v=v+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,yt)|0)+Math.imul(be,at)|0,C=C+Math.imul(be,yt)|0;var Ct=(I+(v=v+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;I=((C=C+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,v=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,C=Math.imul(Gt,Nt),v=v+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,C=C+Math.imul(Dt,vt)|0,v=v+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,C=C+Math.imul(Le,Pe)|0,v=v+Math.imul(W,le)|0,n=(n=n+Math.imul(W,xe)|0)+Math.imul($,le)|0,C=C+Math.imul($,xe)|0,v=v+Math.imul(se,ft)|0,n=(n=n+Math.imul(se,Ht)|0)+Math.imul(Te,ft)|0,C=C+Math.imul(Te,Ht)|0,v=v+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,C=C+Math.imul(Ie,tt)|0,v=v+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,C=C+Math.imul(F,Ue)|0,v=v+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,C=C+Math.imul(Q,yt)|0,v=v+Math.imul(ge,Qt)|0,n=(n=n+Math.imul(ge,Jt)|0)+Math.imul(be,Qt)|0,C=C+Math.imul(be,Jt)|0;var ie=(I+(v=v+Math.imul(N,fi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(z,fi)|0))<<13)|0;I=((C=C+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,v=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,C=Math.imul(Gt,vt),v=v+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,C=C+Math.imul(Dt,Pe)|0,v=v+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,xe)|0)+Math.imul(Le,le)|0,C=C+Math.imul(Le,xe)|0,v=v+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,C=C+Math.imul($,Ht)|0,v=v+Math.imul(se,Ne)|0,n=(n=n+Math.imul(se,tt)|0)+Math.imul(Te,Ne)|0,C=C+Math.imul(Te,tt)|0,v=v+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,C=C+Math.imul(Ie,Ue)|0,v=v+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,C=C+Math.imul(F,yt)|0,v=v+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,C=C+Math.imul(Q,Jt)|0;var qe=(I+(v=v+Math.imul(ge,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ge,ai)|0)+Math.imul(be,fi)|0))<<13)|0;I=((C=C+Math.imul(be,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,v=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,C=Math.imul(Gt,Pe),v=v+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,xe)|0)+Math.imul(Dt,le)|0,C=C+Math.imul(Dt,xe)|0,v=v+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,C=C+Math.imul(Le,Ht)|0,v=v+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,C=C+Math.imul($,tt)|0,v=v+Math.imul(se,Se)|0,n=(n=n+Math.imul(se,Ue)|0)+Math.imul(Te,Se)|0,C=C+Math.imul(Te,Ue)|0,v=v+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,C=C+Math.imul(Ie,yt)|0,v=v+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,C=C+Math.imul(F,Jt)|0;var Mt=(I+(v=v+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;I=((C=C+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(Yt,le),n=(n=Math.imul(Yt,xe))+Math.imul(Gt,le)|0,C=Math.imul(Gt,xe),v=v+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,C=C+Math.imul(Dt,Ht)|0,v=v+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,C=C+Math.imul(Le,tt)|0,v=v+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,C=C+Math.imul($,Ue)|0,v=v+Math.imul(se,at)|0,n=(n=n+Math.imul(se,yt)|0)+Math.imul(Te,at)|0,C=C+Math.imul(Te,yt)|0,v=v+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,C=C+Math.imul(Ie,Jt)|0;var Vt=(I+(v=v+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;I=((C=C+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,v=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,C=Math.imul(Gt,Ht),v=v+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,C=C+Math.imul(Dt,tt)|0,v=v+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,C=C+Math.imul(Le,Ue)|0,v=v+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,C=C+Math.imul($,yt)|0,v=v+Math.imul(se,Qt)|0,n=(n=n+Math.imul(se,Jt)|0)+Math.imul(Te,Qt)|0,C=C+Math.imul(Te,Jt)|0;var Mi=(I+(v=v+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;I=((C=C+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,v=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,C=Math.imul(Gt,tt),v=v+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,C=C+Math.imul(Dt,Ue)|0,v=v+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,C=C+Math.imul(Le,yt)|0,v=v+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,C=C+Math.imul($,Jt)|0;var Ei=(I+(v=v+Math.imul(se,fi)|0)|0)+((8191&(n=(n=n+Math.imul(se,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;I=((C=C+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,v=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,C=Math.imul(Gt,Ue),v=v+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,C=C+Math.imul(Dt,yt)|0,v=v+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,C=C+Math.imul(Le,Jt)|0;var en=(I+(v=v+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;I=((C=C+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,v=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,C=Math.imul(Gt,yt),v=v+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,C=C+Math.imul(Dt,Jt)|0;var ji=(I+(v=v+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;I=((C=C+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,v=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,C=Math.imul(Gt,Jt);var Kt=(I+(v=v+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;I=((C=C+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(I+(v=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return I=((C=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=fe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==I&&(E[19]=I,u.length++),u};function Z(x,i,r){return(new j).mulp(x,i,r)}function j(x,i){this.x=x,this.y=i}Math.imul||(S=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?S(this,i,r):c<63?k(this,i,r):c<1024?function U(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,_=0;_>>26)|0)>>>26,E&=67108863}r.words[_]=I,u=E,E=c}return 0!==u?r.words[_]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,_,E){for(var I=0;I>>=1)_++;return 1<<_+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c>>=13),_>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=_>>>26,this.words[u]=67108863&_}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function L(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var _,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(_=0;_>>26-r}E&&(this.words[_]=E,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_=0),c=r?(r-r%26)/26:0;var _=i%26,E=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,v=u;if(c-=E,c=Math.max(0,c),v){for(var n=0;nE)for(this.length-=E,n=0;n=0&&(0!==C||n>=c);n--){var B=0|this.words[n];this.words[n]=C<<26-_|B>>>_,C=B&I}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(v/67108864|0),this.words[_+u]=67108863&E}for(;_>26,this.words[_+u]=67108863&E;if(0===I)return this.strip();for(f(-1===I),I=0,_=0;_>26,this.words[_]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),_=i,E=0|_.words[_.length-1];0!=(u=26-this._countBits(E))&&(_=_.ushln(u),c.iushln(u),E=0|_.words[_.length-1]);var n,v=c.length-_.length;if("mod"!==r){(n=new a(null)).length=v+1,n.words=new Array(n.length);for(var C=0;C=0;N--){var z=67108864*(0|c.words[_.length+N])+(0|c.words[_.length+N-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(_,z,N);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(_,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:c,mod:_}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:E.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,_,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),_=i.andln(1),E=u.cmp(c);return E<0||1===_&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=new a(0),I=new a(1),v=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++v;for(var n=u.clone(),C=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||_.isOdd())&&(c.iadd(n),_.isub(C)),c.iushrn(1),_.iushrn(1);for(var z=0,oe=1;0==(u.words[0]&oe)&&z<26;++z,oe<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||I.isOdd())&&(E.iadd(n),I.isub(C)),E.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),_.isub(I)):(u.isub(r),E.isub(c),I.isub(_))}return{a:E,b:I,gcd:u.iushln(v)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,v=1;0==(r.words[0]&v)&&I<26;++I,v<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,C=1;0==(u.words[0]&C)&&n<26;++n,C<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(E),_.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(_)):(u.isub(r),_.isub(c))}return(B=0===r.cmpn(1)?c:_).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=r.cmp(u);if(_<0){var E=r;r=u,u=E}else if(0===_||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=I&=67108863}return 0!==_&&(this.words[E]=_,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],_=0|i.words[u];if(c!==_){c<_?r=-1:c>_&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(x,i){this.name=x,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(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)}X.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),_=0;_>>22,E=I}i.words[_-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=_,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),_=0;!c.isZero()&&0===c.andln(1);)_++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),I=E.redNeg(),v=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,v).cmp(I);)n.redIAdd(I);for(var C=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),z=_;0!==N.cmp(E);){for(var oe=N,ge=0;0!==oe.cmp(E);ge++)oe=oe.redSqr();f(ge=0;_--){for(var C=r.words[_],B=n-1;B>=0;B--){var N=C>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==N||0!==I?(I<<=1,I|=N,(4==++v||0===_&&0===B)&&(E=this.mul(E,c[I]),v=0,I=0)):v=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new me(i)},M(me,J),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},6386:(Fe,Y,p)=>{"use strict";var t=p(3894),e=p(8095),f=p(5634),M=p(5244),a=p(1052);function b(d){a.call(this,"digest"),this._hash=d}t(b,a),b.prototype._update=function(d){this._hash.update(d)},b.prototype._final=function(){return this._hash.digest()},Fe.exports=function(P){return"md5"===(P=P.toLowerCase())?new e:"rmd160"===P||"ripemd160"===P?new f:new b(M(P))}},5640:(Fe,Y,p)=>{var t=p(8095);Fe.exports=function(e){return(new t).update(e).digest()}},4529:(Fe,Y,p)=>{"use strict";var t=p(3894),e=p(7309),f=p(1052),M=p(3502).Buffer,a=p(5640),b=p(5634),d=p(5244),P=M.alloc(128);function h(A,w){f.call(this,"digest"),"string"==typeof w&&(w=M.from(w));var D="sha512"===A||"sha384"===A?128:64;this._alg=A,this._key=w,w.length>D?w=("rmd160"===A?new b:d(A)).update(w).digest():w.length{"use strict";var t=p(3894),e=p(3502).Buffer,f=p(1052),M=e.alloc(128),a=64;function b(d,P){f.call(this,"digest"),"string"==typeof P&&(P=e.from(P)),this._alg=d,this._key=P,P.length>a?P=d(P):P.length{"use strict";Y.randomBytes=Y.rng=Y.pseudoRandomBytes=Y.prng=p(3753),Y.createHash=Y.Hash=p(6386),Y.createHmac=Y.Hmac=p(4529);var t=p(7793),e=Object.keys(t),f=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);Y.getHashes=function(){return f};var M=p(9357);Y.pbkdf2=M.pbkdf2,Y.pbkdf2Sync=M.pbkdf2Sync;var a=p(5255);Y.Cipher=a.Cipher,Y.createCipher=a.createCipher,Y.Cipheriv=a.Cipheriv,Y.createCipheriv=a.createCipheriv,Y.Decipher=a.Decipher,Y.createDecipher=a.createDecipher,Y.Decipheriv=a.Decipheriv,Y.createDecipheriv=a.createDecipheriv,Y.getCiphers=a.getCiphers,Y.listCiphers=a.listCiphers;var b=p(8829);Y.DiffieHellmanGroup=b.DiffieHellmanGroup,Y.createDiffieHellmanGroup=b.createDiffieHellmanGroup,Y.getDiffieHellman=b.getDiffieHellman,Y.createDiffieHellman=b.createDiffieHellman,Y.DiffieHellman=b.DiffieHellman;var d=p(3923);Y.createSign=d.createSign,Y.Sign=d.Sign,Y.createVerify=d.createVerify,Y.Verify=d.Verify,Y.createECDH=p(4746);var P=p(3701);Y.publicEncrypt=P.publicEncrypt,Y.privateEncrypt=P.privateEncrypt,Y.publicDecrypt=P.publicDecrypt,Y.privateDecrypt=P.privateDecrypt;var h=p(4275);Y.randomFill=h.randomFill,Y.randomFillSync=h.randomFillSync,Y.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},Y.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:(Fe,Y,p)=>{"use strict";Y.utils=p(7451),Y.Cipher=p(8170),Y.DES=p(4631),Y.CBC=p(9454),Y.EDE=p(1862)},9454:(Fe,Y,p)=>{"use strict";var t=p(2391),e=p(3894),f={};function M(b){t.equal(b.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d{"use strict";var t=p(2391);function e(f){this.options=f,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Fe.exports=e,e.prototype._init=function(){},e.prototype.update=function(M){return 0===M.length?[]:"decrypt"===this.type?this._updateDecrypt(M):this._updateEncrypt(M)},e.prototype._buffer=function(M,a){for(var b=Math.min(this.buffer.length-this.bufferOff,M.length-a),d=0;d0;d--)a+=this._buffer(M,a),b+=this._flushBuffer(P,b);return a+=this._buffer(M,a),P},e.prototype.final=function(M){var a,b;return M&&(a=this.update(M)),b="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),a?a.concat(b):b},e.prototype._pad=function(M,a){if(0===a)return!1;for(;a{"use strict";var t=p(2391),e=p(3894),f=p(7451),M=p(8170);function a(){this.tmp=new Array(2),this.keys=null}function b(P){M.call(this,P);var h=new a;this._desState=h,this.deriveKeys(h,P.key)}e(b,M),Fe.exports=b,b.create=function(h){return new b(h)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];b.prototype.deriveKeys=function(h,A){h.keys=new Array(32),t.equal(A.length,this.blockSize,"Invalid key length");var w=f.readUInt32BE(A,0),D=f.readUInt32BE(A,4);f.pc1(w,D,h.tmp,0),w=h.tmp[0],D=h.tmp[1];for(var L=0;L>>1];w=f.r28shl(w,k),D=f.r28shl(D,k),f.pc2(w,D,h.keys,L)}},b.prototype._update=function(h,A,w,D){var L=this._desState,k=f.readUInt32BE(h,A),S=f.readUInt32BE(h,A+4);f.ip(k,S,L.tmp,0),k=L.tmp[0],S=L.tmp[1],"encrypt"===this.type?this._encrypt(L,k,S,L.tmp,0):this._decrypt(L,k,S,L.tmp,0),S=L.tmp[1],f.writeUInt32BE(w,k=L.tmp[0],D),f.writeUInt32BE(w,S,D+4)},b.prototype._pad=function(h,A){for(var w=h.length-A,D=A;D>>0,k=de}f.rip(S,k,D,L)},b.prototype._decrypt=function(h,A,w,D,L){for(var k=w,S=A,U=h.keys.length-2;U>=0;U-=2){var Z=h.keys[U],j=h.keys[U+1];f.expand(k,h.tmp,0);var ne=f.substitute(Z^=h.tmp[0],j^=h.tmp[1]),de=k;k=(S^f.permute(ne))>>>0,S=de}f.rip(k,S,D,L)}},1862:(Fe,Y,p)=>{"use strict";var t=p(2391),e=p(3894),f=p(8170),M=p(4631);function a(d,P){t.equal(P.length,24,"Invalid key length");var h=P.slice(0,8),A=P.slice(8,16),w=P.slice(16,24);this.ciphers="encrypt"===d?[M.create({type:"encrypt",key:h}),M.create({type:"decrypt",key:A}),M.create({type:"encrypt",key:w})]:[M.create({type:"decrypt",key:w}),M.create({type:"encrypt",key:A}),M.create({type:"decrypt",key:h})]}function b(d){f.call(this,d);var P=new a(this.type,this.options.key);this._edeState=P}e(b,f),Fe.exports=b,b.create=function(P){return new b(P)},b.prototype._update=function(P,h,A,w){var D=this._edeState;D.ciphers[0]._update(P,h,A,w),D.ciphers[1]._update(A,w,A,w),D.ciphers[2]._update(A,w,A,w)},b.prototype._pad=M.prototype._pad,b.prototype._unpad=M.prototype._unpad},7451:(Fe,Y)=>{"use strict";Y.readUInt32BE=function(M,a){return(M[0+a]<<24|M[1+a]<<16|M[2+a]<<8|M[3+a])>>>0},Y.writeUInt32BE=function(M,a,b){M[0+b]=a>>>24,M[1+b]=a>>>16&255,M[2+b]=a>>>8&255,M[3+b]=255&a},Y.ip=function(M,a,b,d){for(var P=0,h=0,A=6;A>=0;A-=2){for(var w=0;w<=24;w+=8)P<<=1,P|=a>>>w+A&1;for(w=0;w<=24;w+=8)P<<=1,P|=M>>>w+A&1}for(A=6;A>=0;A-=2){for(w=1;w<=25;w+=8)h<<=1,h|=a>>>w+A&1;for(w=1;w<=25;w+=8)h<<=1,h|=M>>>w+A&1}b[d+0]=P>>>0,b[d+1]=h>>>0},Y.rip=function(M,a,b,d){for(var P=0,h=0,A=0;A<4;A++)for(var w=24;w>=0;w-=8)P<<=1,P|=a>>>w+A&1,P<<=1,P|=M>>>w+A&1;for(A=4;A<8;A++)for(w=24;w>=0;w-=8)h<<=1,h|=a>>>w+A&1,h<<=1,h|=M>>>w+A&1;b[d+0]=P>>>0,b[d+1]=h>>>0},Y.pc1=function(M,a,b,d){for(var P=0,h=0,A=7;A>=5;A--){for(var w=0;w<=24;w+=8)P<<=1,P|=a>>w+A&1;for(w=0;w<=24;w+=8)P<<=1,P|=M>>w+A&1}for(w=0;w<=24;w+=8)P<<=1,P|=a>>w+A&1;for(A=1;A<=3;A++){for(w=0;w<=24;w+=8)h<<=1,h|=a>>w+A&1;for(w=0;w<=24;w+=8)h<<=1,h|=M>>w+A&1}for(w=0;w<=24;w+=8)h<<=1,h|=M>>w+A&1;b[d+0]=P>>>0,b[d+1]=h>>>0},Y.r28shl=function(M,a){return M<>>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];Y.pc2=function(M,a,b,d){for(var P=0,h=0,A=p.length>>>1,w=0;w>>p[w]&1;for(w=A;w>>p[w]&1;b[d+0]=P>>>0,b[d+1]=h>>>0},Y.expand=function(M,a,b){var d=0,P=0;d=(1&M)<<5|M>>>27;for(var h=23;h>=15;h-=4)d<<=6,d|=M>>>h&63;for(h=11;h>=3;h-=4)P|=M>>>h&63,P<<=6;P|=(31&M)<<1|M>>>31,a[b+0]=d>>>0,a[b+1]=P>>>0};var t=[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];Y.substitute=function(M,a){for(var b=0,d=0;d<4;d++)b<<=4,b|=t[64*d+(M>>>18-6*d&63)];for(d=0;d<4;d++)b<<=4,b|=t[256+64*d+(a>>>18-6*d&63)];return b>>>0};var e=[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];Y.permute=function(M){for(var a=0,b=0;b>>e[b]&1;return a>>>0},Y.padSplit=function(M,a,b){for(var d=M.toString(2);d.length{var t=p(5563),e=p(9799),f=p(1419),a={binary:!0,hex:!0,base64:!0};Y.DiffieHellmanGroup=Y.createDiffieHellmanGroup=Y.getDiffieHellman=function M(d){var P=new Buffer(e[d].prime,"hex"),h=new Buffer(e[d].gen,"hex");return new f(P,h)},Y.createDiffieHellman=Y.DiffieHellman=function b(d,P,h,A){return Buffer.isBuffer(P)||void 0===a[P]?b(d,"binary",P,h):(P=P||"binary",A=A||"binary",h=h||new Buffer([2]),Buffer.isBuffer(h)||(h=new Buffer(h,A)),"number"==typeof d?new f(t(d,h),h,!0):(Buffer.isBuffer(d)||(d=new Buffer(d,P)),new f(d,h,!0)))}},1419:(Fe,Y,p)=>{var t=p(8313),f=new(p(7079)),M=new t(24),a=new t(11),b=new t(10),d=new t(3),P=new t(7),h=p(5563),A=p(3753);function w(Z,j){return j=j||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,j)),this._pub=new t(Z),this}function D(Z,j){return j=j||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,j)),this._priv=new t(Z),this}Fe.exports=S;var L={};function S(Z,j,ne){this.setGenerator(j),this.__prime=new t(Z),this._prime=t.mont(this.__prime),this._primeLen=Z.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ne?(this.setPublicKey=w,this.setPrivateKey=D):this._primeCode=8}function U(Z,j){var ne=new Buffer(Z.toArray());return j?ne.toString(j):ne}Object.defineProperty(S.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function k(Z,j){var ne=j.toString("hex"),X=[ne,Z.toString(16)].join("_");if(X in L)return L[X];var ee,de=0;if(Z.isEven()||!h.simpleSieve||!h.fermatTest(Z)||!f.test(Z))return de+=1,L[X]=de+="02"===ne||"05"===ne?8:4,de;switch(f.test(Z.shrn(1))||(de+=2),ne){case"02":Z.mod(M).cmp(a)&&(de+=8);break;case"05":(ee=Z.mod(b)).cmp(d)&&ee.cmp(P)&&(de+=8);break;default:de+=4}return L[X]=de,de}(this.__prime,this.__gen)),this._primeCode}}),S.prototype.generateKeys=function(){return this._priv||(this._priv=new t(A(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},S.prototype.computeSecret=function(Z){var j=(Z=(Z=new t(Z)).toRed(this._prime)).redPow(this._priv).fromRed(),ne=new Buffer(j.toArray()),X=this.getPrime();if(ne.length{var t=p(3753);Fe.exports=de,de.simpleSieve=ne,de.fermatTest=X;var e=p(8313),f=new e(24),a=new(p(7079)),b=new e(1),d=new e(2),P=new e(5),w=(new e(16),new e(8),new e(10)),D=new e(3),k=(new e(7),new e(11)),S=new e(4),Z=(new e(12),null);function ne(ee){for(var te=function j(){if(null!==Z)return Z;var te=[];te[0]=2;for(var ce=1,J=3;J<1048576;J+=2){for(var me=Math.ceil(Math.sqrt(J)),x=0;xee;)ce.ishrn(1);if(ce.isEven()&&ce.iadd(b),ce.testn(1)||ce.iadd(d),te.cmp(d)){if(!te.cmp(P))for(;ce.mod(w).cmp(D);)ce.iadd(S)}else for(;ce.mod(f).cmp(k);)ce.iadd(S);if(ne(J=ce.shrn(1))&&ne(ce)&&X(J)&&X(ce)&&a.test(J)&&a.test(ce))return ce}}},8313:function(Fe,Y,p){!function(t,e){"use strict";function f(x,i){if(!x)throw new Error(i||"Assertion failed")}function M(x,i){x.super_=i;var r=function(){};r.prototype=i.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,i,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(x||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7748).Buffer}catch(x){}function d(x,i){var r=x.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,_=Math.min(x.length,r),E=i;E<_;E++){var I=x.charCodeAt(E)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[_]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===u)for(c=0,_=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(i,r,c)<<_,this.words[E]|=67108863&I,_>=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,_=1;_<=67108863;_*=r)c++;c--,_=_/r|0;for(var E=i.length-u,I=E%c,v=Math.min(E,E-I)+u,n=0,C=u;C1&&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 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"],w=[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],D=[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,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],_=0|i.words[0],E=c*_,v=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&v,N=Math.min(n,i.length-1),z=Math.max(0,n-x.length+1);z<=N;z++)C+=(E=(c=0|x.words[n-z|0])*(_=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,v=0|C}return 0!==v?r.words[n]=0|v:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,_=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-v.length]+v+u:v+u,(c+=2)>=26&&(c-=26,E--)}for(0!==_&&(u=_.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],C=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(C).toString(i);u=(B=B.idivn(C)).isZero()?N+u:A[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),_=u||Math.max(1,c);f(c<=_,"byte array longer than desired length"),f(_>0,"Requested array length <= 0"),this.strip();var v,n,E="le"===r,I=new i(_),C=this.clone();if(E){for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[n]=v;for(;n<_;n++)I[n]=0}else{for(n=0;n<_-c;n++)I[n]=0;for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[_-n-1]=v}return I},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var _=0,E=0;E>>26;for(;0!==_&&E>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,_=i):(c=i,_=this);for(var E=0,I=0;I<_.length;I++)E=(r=(0|c.words[I])-(0|_.words[I])+E)>>26,this.words[I]=67108863&r;for(;0!==E&&I>26,this.words[I]=67108863&r;if(0===E&&I>>13,oe=0|c[1],ge=8191&oe,be=oe>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,De=0|c[4],lt=8191&De,Ie=De>>>13,Ae=0|c[5],se=8191&Ae,Te=Ae>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|_[0],xt=8191&ui,Nt=ui>>>13,gt=0|_[1],et=8191>,vt=gt>>>13,$t=0|_[2],jt=8191&$t,Pe=$t>>>13,Oe=0|_[3],le=8191&Oe,xe=Oe>>>13,ht=0|_[4],ft=8191&ht,Ht=ht>>>13,it=0|_[5],Ne=8191&it,tt=it>>>13,Je=0|_[6],Se=8191&Je,Ue=Je>>>13,rt=0|_[7],at=8191&rt,yt=rt>>>13,gi=0|_[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|_[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(I+(v=Math.imul(N,xt))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(z,xt)|0))<<13)|0;I=((C=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,v=Math.imul(ge,xt),n=(n=Math.imul(ge,Nt))+Math.imul(be,xt)|0,C=Math.imul(be,Nt);var Wi=(I+(v=v+Math.imul(N,et)|0)|0)+((8191&(n=(n=n+Math.imul(N,vt)|0)+Math.imul(z,et)|0))<<13)|0;I=((C=C+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,v=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,C=Math.imul(Q,Nt),v=v+Math.imul(ge,et)|0,n=(n=n+Math.imul(ge,vt)|0)+Math.imul(be,et)|0,C=C+Math.imul(be,vt)|0;var Gi=(I+(v=v+Math.imul(N,jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;I=((C=C+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,v=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,C=Math.imul(F,Nt),v=v+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,C=C+Math.imul(Q,vt)|0,v=v+Math.imul(ge,jt)|0,n=(n=n+Math.imul(ge,Pe)|0)+Math.imul(be,jt)|0,C=C+Math.imul(be,Pe)|0;var Yi=(I+(v=v+Math.imul(N,le)|0)|0)+((8191&(n=(n=n+Math.imul(N,xe)|0)+Math.imul(z,le)|0))<<13)|0;I=((C=C+Math.imul(z,xe)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,v=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,C=Math.imul(Ie,Nt),v=v+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,C=C+Math.imul(F,vt)|0,v=v+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,C=C+Math.imul(Q,Pe)|0,v=v+Math.imul(ge,le)|0,n=(n=n+Math.imul(ge,xe)|0)+Math.imul(be,le)|0,C=C+Math.imul(be,xe)|0;var ze=(I+(v=v+Math.imul(N,ft)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;I=((C=C+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,v=Math.imul(se,xt),n=(n=Math.imul(se,Nt))+Math.imul(Te,xt)|0,C=Math.imul(Te,Nt),v=v+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,C=C+Math.imul(Ie,vt)|0,v=v+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,C=C+Math.imul(F,Pe)|0,v=v+Math.imul(we,le)|0,n=(n=n+Math.imul(we,xe)|0)+Math.imul(Q,le)|0,C=C+Math.imul(Q,xe)|0,v=v+Math.imul(ge,ft)|0,n=(n=n+Math.imul(ge,Ht)|0)+Math.imul(be,ft)|0,C=C+Math.imul(be,Ht)|0;var Lt=(I+(v=v+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;I=((C=C+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,C=Math.imul($,Nt),v=v+Math.imul(se,et)|0,n=(n=n+Math.imul(se,vt)|0)+Math.imul(Te,et)|0,C=C+Math.imul(Te,vt)|0,v=v+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,C=C+Math.imul(Ie,Pe)|0,v=v+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,xe)|0)+Math.imul(F,le)|0,C=C+Math.imul(F,xe)|0,v=v+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,C=C+Math.imul(Q,Ht)|0,v=v+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(be,Ne)|0,C=C+Math.imul(be,tt)|0;var fe=(I+(v=v+Math.imul(N,Se)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;I=((C=C+Math.imul(z,Ue)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,v=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,C=Math.imul(Le,Nt),v=v+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,C=C+Math.imul($,vt)|0,v=v+Math.imul(se,jt)|0,n=(n=n+Math.imul(se,Pe)|0)+Math.imul(Te,jt)|0,C=C+Math.imul(Te,Pe)|0,v=v+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,xe)|0)+Math.imul(Ie,le)|0,C=C+Math.imul(Ie,xe)|0,v=v+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,C=C+Math.imul(F,Ht)|0,v=v+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,C=C+Math.imul(Q,tt)|0,v=v+Math.imul(ge,Se)|0,n=(n=n+Math.imul(ge,Ue)|0)+Math.imul(be,Se)|0,C=C+Math.imul(be,Ue)|0;var je=(I+(v=v+Math.imul(N,at)|0)|0)+((8191&(n=(n=n+Math.imul(N,yt)|0)+Math.imul(z,at)|0))<<13)|0;I=((C=C+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,v=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,C=Math.imul(Dt,Nt),v=v+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,C=C+Math.imul($,Pe)|0,v=v+Math.imul(se,le)|0,n=(n=n+Math.imul(se,xe)|0)+Math.imul(Te,le)|0,C=C+Math.imul(Te,xe)|0,v=v+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,C=C+Math.imul(Ie,Ht)|0,v=v+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,C=C+Math.imul(F,tt)|0,v=v+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,C=C+Math.imul(Q,Ue)|0,v=v+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,yt)|0)+Math.imul(be,at)|0,C=C+Math.imul(be,yt)|0;var Ct=(I+(v=v+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;I=((C=C+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,v=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,C=Math.imul(Gt,Nt),v=v+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,C=C+Math.imul(Dt,vt)|0,v=v+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,C=C+Math.imul(Le,Pe)|0,v=v+Math.imul(W,le)|0,n=(n=n+Math.imul(W,xe)|0)+Math.imul($,le)|0,C=C+Math.imul($,xe)|0,v=v+Math.imul(se,ft)|0,n=(n=n+Math.imul(se,Ht)|0)+Math.imul(Te,ft)|0,C=C+Math.imul(Te,Ht)|0,v=v+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,C=C+Math.imul(Ie,tt)|0,v=v+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,C=C+Math.imul(F,Ue)|0,v=v+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,C=C+Math.imul(Q,yt)|0,v=v+Math.imul(ge,Qt)|0,n=(n=n+Math.imul(ge,Jt)|0)+Math.imul(be,Qt)|0,C=C+Math.imul(be,Jt)|0;var ie=(I+(v=v+Math.imul(N,fi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(z,fi)|0))<<13)|0;I=((C=C+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,v=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,C=Math.imul(Gt,vt),v=v+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,C=C+Math.imul(Dt,Pe)|0,v=v+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,xe)|0)+Math.imul(Le,le)|0,C=C+Math.imul(Le,xe)|0,v=v+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,C=C+Math.imul($,Ht)|0,v=v+Math.imul(se,Ne)|0,n=(n=n+Math.imul(se,tt)|0)+Math.imul(Te,Ne)|0,C=C+Math.imul(Te,tt)|0,v=v+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,C=C+Math.imul(Ie,Ue)|0,v=v+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,C=C+Math.imul(F,yt)|0,v=v+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,C=C+Math.imul(Q,Jt)|0;var qe=(I+(v=v+Math.imul(ge,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ge,ai)|0)+Math.imul(be,fi)|0))<<13)|0;I=((C=C+Math.imul(be,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,v=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,C=Math.imul(Gt,Pe),v=v+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,xe)|0)+Math.imul(Dt,le)|0,C=C+Math.imul(Dt,xe)|0,v=v+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,C=C+Math.imul(Le,Ht)|0,v=v+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,C=C+Math.imul($,tt)|0,v=v+Math.imul(se,Se)|0,n=(n=n+Math.imul(se,Ue)|0)+Math.imul(Te,Se)|0,C=C+Math.imul(Te,Ue)|0,v=v+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,C=C+Math.imul(Ie,yt)|0,v=v+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,C=C+Math.imul(F,Jt)|0;var Mt=(I+(v=v+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;I=((C=C+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(Yt,le),n=(n=Math.imul(Yt,xe))+Math.imul(Gt,le)|0,C=Math.imul(Gt,xe),v=v+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,C=C+Math.imul(Dt,Ht)|0,v=v+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,C=C+Math.imul(Le,tt)|0,v=v+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,C=C+Math.imul($,Ue)|0,v=v+Math.imul(se,at)|0,n=(n=n+Math.imul(se,yt)|0)+Math.imul(Te,at)|0,C=C+Math.imul(Te,yt)|0,v=v+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,C=C+Math.imul(Ie,Jt)|0;var Vt=(I+(v=v+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;I=((C=C+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,v=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,C=Math.imul(Gt,Ht),v=v+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,C=C+Math.imul(Dt,tt)|0,v=v+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,C=C+Math.imul(Le,Ue)|0,v=v+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,C=C+Math.imul($,yt)|0,v=v+Math.imul(se,Qt)|0,n=(n=n+Math.imul(se,Jt)|0)+Math.imul(Te,Qt)|0,C=C+Math.imul(Te,Jt)|0;var Mi=(I+(v=v+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;I=((C=C+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,v=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,C=Math.imul(Gt,tt),v=v+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,C=C+Math.imul(Dt,Ue)|0,v=v+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,C=C+Math.imul(Le,yt)|0,v=v+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,C=C+Math.imul($,Jt)|0;var Ei=(I+(v=v+Math.imul(se,fi)|0)|0)+((8191&(n=(n=n+Math.imul(se,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;I=((C=C+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,v=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,C=Math.imul(Gt,Ue),v=v+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,C=C+Math.imul(Dt,yt)|0,v=v+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,C=C+Math.imul(Le,Jt)|0;var en=(I+(v=v+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;I=((C=C+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,v=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,C=Math.imul(Gt,yt),v=v+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,C=C+Math.imul(Dt,Jt)|0;var ji=(I+(v=v+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;I=((C=C+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,v=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,C=Math.imul(Gt,Jt);var Kt=(I+(v=v+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;I=((C=C+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(I+(v=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return I=((C=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=fe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==I&&(E[19]=I,u.length++),u};function Z(x,i,r){return(new j).mulp(x,i,r)}function j(x,i){this.x=x,this.y=i}Math.imul||(S=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?S(this,i,r):c<63?k(this,i,r):c<1024?function U(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,_=0;_>>26)|0)>>>26,E&=67108863}r.words[_]=I,u=E,E=c}return 0!==u?r.words[_]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,_,E){for(var I=0;I>>=1)_++;return 1<<_+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c>>=13),_>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=_>>>26,this.words[u]=67108863&_}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function L(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var _,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(_=0;_>>26-r}E&&(this.words[_]=E,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_=0),c=r?(r-r%26)/26:0;var _=i%26,E=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,v=u;if(c-=E,c=Math.max(0,c),v){for(var n=0;nE)for(this.length-=E,n=0;n=0&&(0!==C||n>=c);n--){var B=0|this.words[n];this.words[n]=C<<26-_|B>>>_,C=B&I}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(v/67108864|0),this.words[_+u]=67108863&E}for(;_>26,this.words[_+u]=67108863&E;if(0===I)return this.strip();for(f(-1===I),I=0,_=0;_>26,this.words[_]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),_=i,E=0|_.words[_.length-1];0!=(u=26-this._countBits(E))&&(_=_.ushln(u),c.iushln(u),E=0|_.words[_.length-1]);var n,v=c.length-_.length;if("mod"!==r){(n=new a(null)).length=v+1,n.words=new Array(n.length);for(var C=0;C=0;N--){var z=67108864*(0|c.words[_.length+N])+(0|c.words[_.length+N-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(_,z,N);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(_,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:c,mod:_}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:E.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,_,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),_=i.andln(1),E=u.cmp(c);return E<0||1===_&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=new a(0),I=new a(1),v=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++v;for(var n=u.clone(),C=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||_.isOdd())&&(c.iadd(n),_.isub(C)),c.iushrn(1),_.iushrn(1);for(var z=0,oe=1;0==(u.words[0]&oe)&&z<26;++z,oe<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||I.isOdd())&&(E.iadd(n),I.isub(C)),E.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),_.isub(I)):(u.isub(r),E.isub(c),I.isub(_))}return{a:E,b:I,gcd:u.iushln(v)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,v=1;0==(r.words[0]&v)&&I<26;++I,v<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,C=1;0==(u.words[0]&C)&&n<26;++n,C<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(E),_.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(_)):(u.isub(r),_.isub(c))}return(B=0===r.cmpn(1)?c:_).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=r.cmp(u);if(_<0){var E=r;r=u,u=E}else if(0===_||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=I&=67108863}return 0!==_&&(this.words[E]=_,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],_=0|i.words[u];if(c!==_){c<_?r=-1:c>_&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(x,i){this.name=x,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(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)}X.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),_=0;_>>22,E=I}i.words[_-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=_,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),_=0;!c.isZero()&&0===c.andln(1);)_++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),I=E.redNeg(),v=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,v).cmp(I);)n.redIAdd(I);for(var C=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),z=_;0!==N.cmp(E);){for(var oe=N,ge=0;0!==oe.cmp(E);ge++)oe=oe.redSqr();f(ge=0;_--){for(var C=r.words[_],B=n-1;B>=0;B--){var N=C>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==N||0!==I?(I<<=1,I|=N,(4==++v||0===_&&0===B)&&(E=this.mul(E,c[I]),v=0,I=0)):v=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new me(i)},M(me,J),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},4901:Fe=>{"use strict";var Y={single_source_shortest_paths:function(p,t,e){var f={},M={};M[t]=0;var b,d,P,h,A,D,a=Y.PriorityQueue.make();for(a.push(t,0);!a.empty();)for(P in h=(b=a.pop()).cost,A=p[d=b.value]||{})A.hasOwnProperty(P)&&(D=h+A[P],(void 0===M[P]||M[P]>D)&&(M[P]=D,a.push(P,D),f[P]=d));if(void 0!==e&&void 0===M[e]){var S=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(S)}return f},extract_shortest_path_from_predecessor_list:function(p,t){for(var e=[],f=t;f;)e.push(f),f=p[f];return e.reverse(),e},find_path:function(p,t,e){var f=Y.single_source_shortest_paths(p,t,e);return Y.extract_shortest_path_from_predecessor_list(f,e)},PriorityQueue:{make:function(p){var f,t=Y.PriorityQueue,e={};for(f in p=p||{},t)t.hasOwnProperty(f)&&(e[f]=t[f]);return e.queue=[],e.sorter=p.sorter||t.default_sorter,e},default_sorter:function(p,t){return p.cost-t.cost},push:function(p,t){this.queue.push({value:p,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Fe.exports=Y},7715:(Fe,Y,p)=>{"use strict";var t=Y;t.version=p(8597).i8,t.utils=p(1970),t.rand=p(7950),t.curve=p(6270),t.curves=p(2916),t.ec=p(7626),t.eddsa=p(1885)},7902:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.getNAF,M=e.getJSF,a=e.assert;function b(P,h){this.type=P,this.p=new t(h.p,16),this.red=h.prime?t.red(h.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=h.n&&new t(h.n,16),this.g=h.g&&this.pointFromJSON(h.g,h.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 A=this.n&&this.p.div(this.n);!A||A.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(P,h){this.curve=P,this.type=h,this.precomputed=null}Fe.exports=b,b.prototype.point=function(){throw new Error("Not implemented")},b.prototype.validate=function(){throw new Error("Not implemented")},b.prototype._fixedNafMul=function(h,A){a(h.precomputed);var w=h._getDoubles(),D=f(A,1,this._bitLength),L=(1<=S;Z--)U=(U<<1)+D[Z];k.push(U)}for(var j=this.jpoint(null,null,null),ne=this.jpoint(null,null,null),X=L;X>0;X--){for(S=0;S=0;U--){for(var Z=0;U>=0&&0===k[U];U--)Z++;if(U>=0&&Z++,S=S.dblp(Z),U<0)break;var j=k[U];a(0!==j),S="affine"===h.type?S.mixedAdd(j>0?L[j-1>>1]:L[-j-1>>1].neg()):S.add(j>0?L[j-1>>1]:L[-j-1>>1].neg())}return"affine"===h.type?S.toP():S},b.prototype._wnafMulAdd=function(h,A,w,D,L){var j,ne,X,k=this._wnafT1,S=this._wnafT2,U=this._wnafT3,Z=0;for(j=0;j=1;j-=2){var ee=j-1,te=j;if(1===k[ee]&&1===k[te]){var ce=[A[ee],null,null,A[te]];0===A[ee].y.cmp(A[te].y)?(ce[1]=A[ee].add(A[te]),ce[2]=A[ee].toJ().mixedAdd(A[te].neg())):0===A[ee].y.cmp(A[te].y.redNeg())?(ce[1]=A[ee].toJ().mixedAdd(A[te]),ce[2]=A[ee].add(A[te].neg())):(ce[1]=A[ee].toJ().mixedAdd(A[te]),ce[2]=A[ee].toJ().mixedAdd(A[te].neg()));var J=[-3,-1,-5,-7,0,7,5,1,3],me=M(w[ee],w[te]);for(Z=Math.max(me[0].length,Z),U[ee]=new Array(Z),U[te]=new Array(Z),ne=0;ne=0;j--){for(var c=0;j>=0;){var _=!0;for(ne=0;ne=0&&c++,r=r.dblp(c),j<0)break;for(ne=0;ne0?X=S[ne][E-1>>1]:E<0&&(X=S[ne][-E-1>>1].neg()),r="affine"===X.type?r.mixedAdd(X):r.add(X))}}for(j=0;j=Math.ceil((h.bitLength()+1)/A.step)},d.prototype._getDoubles=function(h,A){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var w=[this],D=this,L=0;L{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),a=t.assert;function b(P){this.twisted=1!=(0|P.a),this.mOneA=this.twisted&&-1==(0|P.a),this.extended=this.mOneA,M.call(this,"edwards",P),this.a=new e(P.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(P.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(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,h,A,w,D){M.BasePoint.call(this,P,"projective"),null===h&&null===A&&null===w?(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 e(h,16),this.y=new e(A,16),this.z=w?new e(w,16):this.curve.one,this.t=D&&new e(D,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()))))}f(b,M),Fe.exports=b,b.prototype._mulA=function(h){return this.mOneA?h.redNeg():this.a.redMul(h)},b.prototype._mulC=function(h){return this.oneC?h:this.c.redMul(h)},b.prototype.jpoint=function(h,A,w,D){return this.point(h,A,w,D)},b.prototype.pointFromX=function(h,A){(h=new e(h,16)).red||(h=h.toRed(this.red));var w=h.redSqr(),D=this.c2.redSub(this.a.redMul(w)),L=this.one.redSub(this.c2.redMul(this.d).redMul(w)),k=D.redMul(L.redInvm()),S=k.redSqrt();if(0!==S.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");var U=S.fromRed().isOdd();return(A&&!U||!A&&U)&&(S=S.redNeg()),this.point(h,S)},b.prototype.pointFromY=function(h,A){(h=new e(h,16)).red||(h=h.toRed(this.red));var w=h.redSqr(),D=w.redSub(this.c2),L=w.redMul(this.d).redMul(this.c2).redSub(this.a),k=D.redMul(L.redInvm());if(0===k.cmp(this.zero)){if(A)throw new Error("invalid point");return this.point(this.zero,h)}var S=k.redSqrt();if(0!==S.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");return S.fromRed().isOdd()!==A&&(S=S.redNeg()),this.point(S,h)},b.prototype.validate=function(h){if(h.isInfinity())return!0;h.normalize();var A=h.x.redSqr(),w=h.y.redSqr(),D=A.redMul(this.a).redAdd(w),L=this.c2.redMul(this.one.redAdd(this.d.redMul(A).redMul(w)));return 0===D.cmp(L)},f(d,M.BasePoint),b.prototype.pointFromJSON=function(h){return d.fromJSON(this,h)},b.prototype.point=function(h,A,w,D){return new d(this,h,A,w,D)},d.fromJSON=function(h,A){return new d(h,A[0],A[1],A[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 h=this.x.redSqr(),A=this.y.redSqr(),w=this.z.redSqr();w=w.redIAdd(w);var D=this.curve._mulA(h),L=this.x.redAdd(this.y).redSqr().redISub(h).redISub(A),k=D.redAdd(A),S=k.redSub(w),U=D.redSub(A),Z=L.redMul(S),j=k.redMul(U),ne=L.redMul(U),X=S.redMul(k);return this.curve.point(Z,j,X,ne)},d.prototype._projDbl=function(){var D,L,k,S,U,Z,h=this.x.redAdd(this.y).redSqr(),A=this.x.redSqr(),w=this.y.redSqr();if(this.curve.twisted){var j=(S=this.curve._mulA(A)).redAdd(w);this.zOne?(D=h.redSub(A).redSub(w).redMul(j.redSub(this.curve.two)),L=j.redMul(S.redSub(w)),k=j.redSqr().redSub(j).redSub(j)):(U=this.z.redSqr(),Z=j.redSub(U).redISub(U),D=h.redSub(A).redISub(w).redMul(Z),L=j.redMul(S.redSub(w)),k=j.redMul(Z))}else S=A.redAdd(w),U=this.curve._mulC(this.z).redSqr(),Z=S.redSub(U).redSub(U),D=this.curve._mulC(h.redISub(S)).redMul(Z),L=this.curve._mulC(S).redMul(A.redISub(w)),k=S.redMul(Z);return this.curve.point(D,L,k)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(h){var A=this.y.redSub(this.x).redMul(h.y.redSub(h.x)),w=this.y.redAdd(this.x).redMul(h.y.redAdd(h.x)),D=this.t.redMul(this.curve.dd).redMul(h.t),L=this.z.redMul(h.z.redAdd(h.z)),k=w.redSub(A),S=L.redSub(D),U=L.redAdd(D),Z=w.redAdd(A),j=k.redMul(S),ne=U.redMul(Z),X=k.redMul(Z),de=S.redMul(U);return this.curve.point(j,ne,de,X)},d.prototype._projAdd=function(h){var ne,X,A=this.z.redMul(h.z),w=A.redSqr(),D=this.x.redMul(h.x),L=this.y.redMul(h.y),k=this.curve.d.redMul(D).redMul(L),S=w.redSub(k),U=w.redAdd(k),Z=this.x.redAdd(this.y).redMul(h.x.redAdd(h.y)).redISub(D).redISub(L),j=A.redMul(S).redMul(Z);return this.curve.twisted?(ne=A.redMul(U).redMul(L.redSub(this.curve._mulA(D))),X=S.redMul(U)):(ne=A.redMul(U).redMul(L.redSub(D)),X=this.curve._mulC(S).redMul(U)),this.curve.point(j,ne,X)},d.prototype.add=function(h){return this.isInfinity()?h:h.isInfinity()?this:this.curve.extended?this._extAdd(h):this._projAdd(h)},d.prototype.mul=function(h){return this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve._wnafMul(this,h)},d.prototype.mulAdd=function(h,A,w){return this.curve._wnafMulAdd(1,[this,A],[h,w],2,!1)},d.prototype.jmulAdd=function(h,A,w){return this.curve._wnafMulAdd(1,[this,A],[h,w],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var h=this.z.redInvm();return this.x=this.x.redMul(h),this.y=this.y.redMul(h),this.t&&(this.t=this.t.redMul(h)),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(h){return this===h||0===this.getX().cmp(h.getX())&&0===this.getY().cmp(h.getY())},d.prototype.eqXToP=function(h){var A=h.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(A))return!0;for(var w=h.clone(),D=this.curve.redN.redMul(this.z);;){if(w.iadd(this.curve.n),w.cmp(this.curve.p)>=0)return!1;if(A.redIAdd(D),0===this.x.cmp(A))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6270:(Fe,Y,p)=>{"use strict";var t=Y;t.base=p(7902),t.short=p(1781),t.mont=p(7064),t.edwards=p(3835)},7064:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(3894),f=p(7902),M=p(1970);function a(d){f.call(this,"mont",d),this.a=new t(d.a,16).toRed(this.red),this.b=new t(d.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function b(d,P,h){f.BasePoint.call(this,d,"projective"),null===P&&null===h?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(P,16),this.z=new t(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(a,f),Fe.exports=a,a.prototype.validate=function(P){var h=P.normalize().x,A=h.redSqr(),w=A.redMul(h).redAdd(A.redMul(this.a)).redAdd(h);return 0===w.redSqrt().redSqr().cmp(w)},e(b,f.BasePoint),a.prototype.decodePoint=function(P,h){return this.point(M.toArray(P,h),1)},a.prototype.point=function(P,h){return new b(this,P,h)},a.prototype.pointFromJSON=function(P){return b.fromJSON(this,P)},b.prototype.precompute=function(){},b.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},b.fromJSON=function(P,h){return new b(P,h[0],h[1]||P.one)},b.prototype.inspect=function(){return this.isInfinity()?"":""},b.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},b.prototype.dbl=function(){var h=this.x.redAdd(this.z).redSqr(),w=this.x.redSub(this.z).redSqr(),D=h.redSub(w),L=h.redMul(w),k=D.redMul(w.redAdd(this.curve.a24.redMul(D)));return this.curve.point(L,k)},b.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.diffAdd=function(P,h){var A=this.x.redAdd(this.z),w=this.x.redSub(this.z),D=P.x.redAdd(P.z),k=P.x.redSub(P.z).redMul(A),S=D.redMul(w),U=h.z.redMul(k.redAdd(S).redSqr()),Z=h.x.redMul(k.redISub(S).redSqr());return this.curve.point(U,Z)},b.prototype.mul=function(P){for(var h=P.clone(),A=this,w=this.curve.point(null,null),L=[];0!==h.cmpn(0);h.iushrn(1))L.push(h.andln(1));for(var k=L.length-1;k>=0;k--)0===L[k]?(A=A.diffAdd(w,this),w=w.dbl()):(w=A.diffAdd(w,this),A=A.dbl());return w},b.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.eq=function(P){return 0===this.getX().cmp(P.getX())},b.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},b.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Fe,Y,p)=>{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),a=t.assert;function b(h){M.call(this,"short",h),this.a=new e(h.a,16).toRed(this.red),this.b=new e(h.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(h),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(h,A,w,D){M.BasePoint.call(this,h,"affine"),null===A&&null===w?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(A,16),this.y=new e(w,16),D&&(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(h,A,w,D){M.BasePoint.call(this,h,"jacobian"),null===A&&null===w&&null===D?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(A,16),this.y=new e(w,16),this.z=new e(D,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}f(b,M),Fe.exports=b,b.prototype._getEndomorphism=function(A){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var w,D;if(A.beta)w=new e(A.beta,16).toRed(this.red);else{var L=this._getEndoRoots(this.p);w=(w=L[0].cmp(L[1])<0?L[0]:L[1]).toRed(this.red)}if(A.lambda)D=new e(A.lambda,16);else{var k=this._getEndoRoots(this.n);0===this.g.mul(k[0]).x.cmp(this.g.x.redMul(w))?D=k[0]:a(0===this.g.mul(D=k[1]).x.cmp(this.g.x.redMul(w)))}return{beta:w,lambda:D,basis:A.basis?A.basis.map(function(U){return{a:new e(U.a,16),b:new e(U.b,16)}}):this._getEndoBasis(D)}}},b.prototype._getEndoRoots=function(A){var w=A===this.p?this.red:e.mont(A),D=new e(2).toRed(w).redInvm(),L=D.redNeg(),k=new e(3).toRed(w).redNeg().redSqrt().redMul(D);return[L.redAdd(k).fromRed(),L.redSub(k).fromRed()]},b.prototype._getEndoBasis=function(A){for(var j,ne,X,de,ee,te,ce,me,x,w=this.n.ushrn(Math.floor(this.n.bitLength()/2)),D=A,L=this.n.clone(),k=new e(1),S=new e(0),U=new e(0),Z=new e(1),J=0;0!==D.cmpn(0);){var i=L.div(D);me=L.sub(i.mul(D)),x=U.sub(i.mul(k));var r=Z.sub(i.mul(S));if(!X&&me.cmp(w)<0)j=ce.neg(),ne=k,X=me.neg(),de=x;else if(X&&2==++J)break;ce=me,L=D,D=me,U=k,k=x,Z=S,S=r}ee=me.neg(),te=x;var u=X.sqr().add(de.sqr());return ee.sqr().add(te.sqr()).cmp(u)>=0&&(ee=j,te=ne),X.negative&&(X=X.neg(),de=de.neg()),ee.negative&&(ee=ee.neg(),te=te.neg()),[{a:X,b:de},{a:ee,b:te}]},b.prototype._endoSplit=function(A){var w=this.endo.basis,D=w[0],L=w[1],k=L.b.mul(A).divRound(this.n),S=D.b.neg().mul(A).divRound(this.n),U=k.mul(D.a),Z=S.mul(L.a),j=k.mul(D.b),ne=S.mul(L.b);return{k1:A.sub(U).sub(Z),k2:j.add(ne).neg()}},b.prototype.pointFromX=function(A,w){(A=new e(A,16)).red||(A=A.toRed(this.red));var D=A.redSqr().redMul(A).redIAdd(A.redMul(this.a)).redIAdd(this.b),L=D.redSqrt();if(0!==L.redSqr().redSub(D).cmp(this.zero))throw new Error("invalid point");var k=L.fromRed().isOdd();return(w&&!k||!w&&k)&&(L=L.redNeg()),this.point(A,L)},b.prototype.validate=function(A){if(A.inf)return!0;var w=A.x,D=A.y,L=this.a.redMul(w),k=w.redSqr().redMul(w).redIAdd(L).redIAdd(this.b);return 0===D.redSqr().redISub(k).cmpn(0)},b.prototype._endoWnafMulAdd=function(A,w,D){for(var L=this._endoWnafT1,k=this._endoWnafT2,S=0;S":""},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(A){if(this.inf)return A;if(A.inf)return this;if(this.eq(A))return this.dbl();if(this.neg().eq(A))return this.curve.point(null,null);if(0===this.x.cmp(A.x))return this.curve.point(null,null);var w=this.y.redSub(A.y);0!==w.cmpn(0)&&(w=w.redMul(this.x.redSub(A.x).redInvm()));var D=w.redSqr().redISub(this.x).redISub(A.x),L=w.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,L)},d.prototype.dbl=function(){if(this.inf)return this;var A=this.y.redAdd(this.y);if(0===A.cmpn(0))return this.curve.point(null,null);var w=this.curve.a,D=this.x.redSqr(),L=A.redInvm(),k=D.redAdd(D).redIAdd(D).redIAdd(w).redMul(L),S=k.redSqr().redISub(this.x.redAdd(this.x)),U=k.redMul(this.x.redSub(S)).redISub(this.y);return this.curve.point(S,U)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(A){return A=new e(A,16),this.isInfinity()?this:this._hasDoubles(A)?this.curve._fixedNafMul(this,A):this.curve.endo?this.curve._endoWnafMulAdd([this],[A]):this.curve._wnafMul(this,A)},d.prototype.mulAdd=function(A,w,D){var L=[this,w],k=[A,D];return this.curve.endo?this.curve._endoWnafMulAdd(L,k):this.curve._wnafMulAdd(1,L,k,2)},d.prototype.jmulAdd=function(A,w,D){var L=[this,w],k=[A,D];return this.curve.endo?this.curve._endoWnafMulAdd(L,k,!0):this.curve._wnafMulAdd(1,L,k,2,!0)},d.prototype.eq=function(A){return this===A||this.inf===A.inf&&(this.inf||0===this.x.cmp(A.x)&&0===this.y.cmp(A.y))},d.prototype.neg=function(A){if(this.inf)return this;var w=this.curve.point(this.x,this.y.redNeg());if(A&&this.precomputed){var D=this.precomputed,L=function(k){return k.neg()};w.precomputed={naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(L)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(L)}}}return w},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},f(P,M.BasePoint),b.prototype.jpoint=function(A,w,D){return new P(this,A,w,D)},P.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var A=this.z.redInvm(),w=A.redSqr(),D=this.x.redMul(w),L=this.y.redMul(w).redMul(A);return this.curve.point(D,L)},P.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},P.prototype.add=function(A){if(this.isInfinity())return A;if(A.isInfinity())return this;var w=A.z.redSqr(),D=this.z.redSqr(),L=this.x.redMul(w),k=A.x.redMul(D),S=this.y.redMul(w.redMul(A.z)),U=A.y.redMul(D.redMul(this.z)),Z=L.redSub(k),j=S.redSub(U);if(0===Z.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ne=Z.redSqr(),X=ne.redMul(Z),de=L.redMul(ne),ee=j.redSqr().redIAdd(X).redISub(de).redISub(de),te=j.redMul(de.redISub(ee)).redISub(S.redMul(X)),ce=this.z.redMul(A.z).redMul(Z);return this.curve.jpoint(ee,te,ce)},P.prototype.mixedAdd=function(A){if(this.isInfinity())return A.toJ();if(A.isInfinity())return this;var w=this.z.redSqr(),D=this.x,L=A.x.redMul(w),k=this.y,S=A.y.redMul(w).redMul(this.z),U=D.redSub(L),Z=k.redSub(S);if(0===U.cmpn(0))return 0!==Z.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var j=U.redSqr(),ne=j.redMul(U),X=D.redMul(j),de=Z.redSqr().redIAdd(ne).redISub(X).redISub(X),ee=Z.redMul(X.redISub(de)).redISub(k.redMul(ne)),te=this.z.redMul(U);return this.curve.jpoint(de,ee,te)},P.prototype.dblp=function(A){if(0===A)return this;if(this.isInfinity())return this;if(!A)return this.dbl();var w;if(this.curve.zeroA||this.curve.threeA){var D=this;for(w=0;w=0)return!1;if(D.redIAdd(k),0===this.x.cmp(D))return!0}},P.prototype.inspect=function(){return this.isInfinity()?"":""},P.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Fe,Y,p)=>{"use strict";var P,t=Y,e=p(7084),f=p(6270),a=p(1970).assert;function b(h){this.curve="short"===h.type?new f.short(h):"edwards"===h.type?new f.edwards(h):new f.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(h,A){Object.defineProperty(t,h,{configurable:!0,enumerable:!0,get:function(){var w=new b(A);return Object.defineProperty(t,h,{configurable:!0,enumerable:!0,value:w}),w}})}t.PresetCurve=b,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:e.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:e.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:e.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:e.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:e.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:e.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:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{P=p(5150)}catch(h){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:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",P]})},7626:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(2438),f=p(1970),M=p(2916),a=p(7950),b=f.assert,d=p(1259),P=p(5957);function h(A){if(!(this instanceof h))return new h(A);"string"==typeof A&&(b(Object.prototype.hasOwnProperty.call(M,A),"Unknown curve "+A),A=M[A]),A instanceof M.PresetCurve&&(A={curve:A}),this.curve=A.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=A.curve.g,this.g.precompute(A.curve.n.bitLength()+1),this.hash=A.hash||A.curve.hash}Fe.exports=h,h.prototype.keyPair=function(w){return new d(this,w)},h.prototype.keyFromPrivate=function(w,D){return d.fromPrivate(this,w,D)},h.prototype.keyFromPublic=function(w,D){return d.fromPublic(this,w,D)},h.prototype.genKeyPair=function(w){w||(w={});for(var D=new e({hash:this.hash,pers:w.pers,persEnc:w.persEnc||"utf8",entropy:w.entropy||a(this.hash.hmacStrength),entropyEnc:w.entropy&&w.entropyEnc||"utf8",nonce:this.n.toArray()}),L=this.n.byteLength(),k=this.n.sub(new t(2));;){var S=new t(D.generate(L));if(!(S.cmp(k)>0))return S.iaddn(1),this.keyFromPrivate(S)}},h.prototype._truncateToN=function(w,D){var L=8*w.byteLength()-this.n.bitLength();return L>0&&(w=w.ushrn(L)),!D&&w.cmp(this.n)>=0?w.sub(this.n):w},h.prototype.sign=function(w,D,L,k){"object"==typeof L&&(k=L,L=null),k||(k={}),D=this.keyFromPrivate(D,L),w=this._truncateToN(new t(w,16));for(var S=this.n.byteLength(),U=D.getPrivate().toArray("be",S),Z=w.toArray("be",S),j=new e({hash:this.hash,entropy:U,nonce:Z,pers:k.pers,persEnc:k.persEnc||"utf8"}),ne=this.n.sub(new t(1)),X=0;;X++){var de=k.k?k.k(X):new t(j.generate(this.n.byteLength()));if(!((de=this._truncateToN(de,!0)).cmpn(1)<=0||de.cmp(ne)>=0)){var ee=this.g.mul(de);if(!ee.isInfinity()){var te=ee.getX(),ce=te.umod(this.n);if(0!==ce.cmpn(0)){var J=de.invm(this.n).mul(ce.mul(D.getPrivate()).iadd(w));if(0!==(J=J.umod(this.n)).cmpn(0)){var me=(ee.getY().isOdd()?1:0)|(0!==te.cmp(ce)?2:0);return k.canonical&&J.cmp(this.nh)>0&&(J=this.n.sub(J),me^=1),new P({r:ce,s:J,recoveryParam:me})}}}}}},h.prototype.verify=function(w,D,L,k){w=this._truncateToN(new t(w,16)),L=this.keyFromPublic(L,k);var S=(D=new P(D,"hex")).r,U=D.s;if(S.cmpn(1)<0||S.cmp(this.n)>=0||U.cmpn(1)<0||U.cmp(this.n)>=0)return!1;var X,Z=U.invm(this.n),j=Z.mul(w).umod(this.n),ne=Z.mul(S).umod(this.n);return this.curve._maxwellTrick?!(X=this.g.jmulAdd(j,L.getPublic(),ne)).isInfinity()&&X.eqXToP(S):!(X=this.g.mulAdd(j,L.getPublic(),ne)).isInfinity()&&0===X.getX().umod(this.n).cmp(S)},h.prototype.recoverPubKey=function(A,w,D,L){b((3&D)===D,"The recovery param is more than two bits"),w=new P(w,L);var k=this.n,S=new t(A),U=w.r,Z=w.s,j=1&D,ne=D>>1;if(U.cmp(this.curve.p.umod(this.curve.n))>=0&&ne)throw new Error("Unable to find sencond key candinate");U=this.curve.pointFromX(ne?U.add(this.curve.n):U,j);var X=w.r.invm(k),de=k.sub(S).mul(X).umod(k),ee=Z.mul(X).umod(k);return this.g.mulAdd(de,U,ee)},h.prototype.getKeyRecoveryParam=function(A,w,D,L){if(null!==(w=new P(w,L)).recoveryParam)return w.recoveryParam;for(var k=0;k<4;k++){var S;try{S=this.recoverPubKey(A,w,k)}catch(U){continue}if(S.eq(D))return k}throw new Error("Unable to find valid recovery factor")}},1259:(Fe,Y,p)=>{"use strict";var t=p(7433),f=p(1970).assert;function M(a,b){this.ec=a,this.priv=null,this.pub=null,b.priv&&this._importPrivate(b.priv,b.privEnc),b.pub&&this._importPublic(b.pub,b.pubEnc)}Fe.exports=M,M.fromPublic=function(b,d,P){return d instanceof M?d:new M(b,{pub:d,pubEnc:P})},M.fromPrivate=function(b,d,P){return d instanceof M?d:new M(b,{priv:d,privEnc:P})},M.prototype.validate=function(){var b=this.getPublic();return b.isInfinity()?{result:!1,reason:"Invalid public key"}:b.validate()?b.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"}},M.prototype.getPublic=function(b,d){return"string"==typeof b&&(d=b,b=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,b):this.pub},M.prototype.getPrivate=function(b){return"hex"===b?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(b,d){this.priv=new t(b,d||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(b,d){if(b.x||b.y)return"mont"===this.ec.curve.type?f(b.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&f(b.x&&b.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(b.x,b.y));this.pub=this.ec.curve.decodePoint(b,d)},M.prototype.derive=function(b){return b.validate()||f(b.validate(),"public point not validated"),b.mul(this.priv).getX()},M.prototype.sign=function(b,d,P){return this.ec.sign(b,this,d,P)},M.prototype.verify=function(b,d){return this.ec.verify(b,d,this)},M.prototype.inspect=function(){return""}},5957:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert;function M(h,A){if(h instanceof M)return h;this._importDER(h,A)||(f(h.r&&h.s,"Signature without r or s"),this.r=new t(h.r,16),this.s=new t(h.s,16),this.recoveryParam=void 0===h.recoveryParam?null:h.recoveryParam)}function a(){this.place=0}function b(h,A){var w=h[A.place++];if(!(128&w))return w;var D=15&w;if(0===D||D>4)return!1;for(var L=0,k=0,S=A.place;k>>=0;return!(L<=127)&&(A.place=S,L)}function d(h){for(var A=0,w=h.length-1;!h[A]&&!(128&h[A+1])&&A>>3);for(h.push(128|w);--w;)h.push(A>>>(w<<3)&255);h.push(A)}}Fe.exports=M,M.prototype._importDER=function(A,w){A=e.toArray(A,w);var D=new a;if(48!==A[D.place++])return!1;var L=b(A,D);if(!1===L||L+D.place!==A.length||2!==A[D.place++])return!1;var k=b(A,D);if(!1===k)return!1;var S=A.slice(D.place,k+D.place);if(D.place+=k,2!==A[D.place++])return!1;var U=b(A,D);if(!1===U||A.length!==U+D.place)return!1;var Z=A.slice(D.place,U+D.place);if(0===S[0]){if(!(128&S[1]))return!1;S=S.slice(1)}if(0===Z[0]){if(!(128&Z[1]))return!1;Z=Z.slice(1)}return this.r=new t(S),this.s=new t(Z),this.recoveryParam=null,!0},M.prototype.toDER=function(A){var w=this.r.toArray(),D=this.s.toArray();for(128&w[0]&&(w=[0].concat(w)),128&D[0]&&(D=[0].concat(D)),w=d(w),D=d(D);!(D[0]||128&D[1]);)D=D.slice(1);var L=[2];P(L,w.length),(L=L.concat(w)).push(2),P(L,D.length);var k=L.concat(D),S=[48];return P(S,k.length),S=S.concat(k),e.encode(S,A)}},1885:(Fe,Y,p)=>{"use strict";var t=p(7084),e=p(2916),f=p(1970),M=f.assert,a=f.parseBytes,b=p(7535),d=p(8241);function P(h){if(M("ed25519"===h,"only tested with ed25519 so far"),!(this instanceof P))return new P(h);this.curve=h=e[h].curve,this.g=h.g,this.g.precompute(h.n.bitLength()+1),this.pointClass=h.point().constructor,this.encodingLength=Math.ceil(h.n.bitLength()/8),this.hash=t.sha512}Fe.exports=P,P.prototype.sign=function(A,w){A=a(A);var D=this.keyFromSecret(w),L=this.hashInt(D.messagePrefix(),A),k=this.g.mul(L),S=this.encodePoint(k),U=this.hashInt(S,D.pubBytes(),A).mul(D.priv()),Z=L.add(U).umod(this.curve.n);return this.makeSignature({R:k,S:Z,Rencoded:S})},P.prototype.verify=function(A,w,D){A=a(A),w=this.makeSignature(w);var L=this.keyFromPublic(D),k=this.hashInt(w.Rencoded(),L.pubBytes(),A),S=this.g.mul(w.S());return w.R().add(L.pub().mul(k)).eq(S)},P.prototype.hashInt=function(){for(var A=this.hash(),w=0;w{"use strict";var t=p(1970),e=t.assert,f=t.parseBytes,M=t.cachedProperty;function a(b,d){this.eddsa=b,this._secret=f(d.secret),b.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=f(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},M(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),M(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),M(a,"privBytes",function(){var d=this.eddsa,P=this.hash(),h=d.encodingLength-1,A=P.slice(0,d.encodingLength);return A[0]&=248,A[h]&=127,A[h]|=64,A}),M(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),M(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),M(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(d){return e(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 e(this._secret,"KeyPair is public only"),t.encode(this.secret(),d)},a.prototype.getPublic=function(d){return t.encode(this.pubBytes(),d)},Fe.exports=a},8241:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert,M=e.cachedProperty,a=e.parseBytes;function b(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)}),f(P.R&&P.S,"Signature without R or S"),d.isPoint(P.R)&&(this._R=P.R),P.S instanceof t&&(this._S=P.S),this._Rencoded=Array.isArray(P.R)?P.R:P.Rencoded,this._Sencoded=Array.isArray(P.S)?P.S:P.Sencoded}M(b,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),M(b,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),M(b,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),M(b,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),b.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},b.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},Fe.exports=b},5150:Fe=>{Fe.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:(Fe,Y,p)=>{"use strict";var t=Y,e=p(7433),f=p(2391),M=p(8195);t.assert=f,t.toArray=M.toArray,t.zero2=M.zero2,t.toHex=M.toHex,t.encode=M.encode,t.getNAF=function a(A,w,D){var L=new Array(Math.max(A.bitLength(),D)+1);L.fill(0);for(var k=1<(k>>1)-1?(k>>1)-j:j):Z=0,L[U]=Z,S.iushrn(1)}return L},t.getJSF=function b(A,w){var D=[[],[]];A=A.clone(),w=w.clone();for(var S,L=0,k=0;A.cmpn(-L)>0||w.cmpn(-k)>0;){var j,ne,U=A.andln(3)+L&3,Z=w.andln(3)+k&3;3===U&&(U=-1),3===Z&&(Z=-1),j=0==(1&U)?0:3!=(S=A.andln(7)+L&7)&&5!==S||2!==Z?U:-U,D[0].push(j),ne=0==(1&Z)?0:3!=(S=w.andln(7)+k&7)&&5!==S||2!==U?Z:-Z,D[1].push(ne),2*L===j+1&&(L=1-L),2*k===ne+1&&(k=1-k),A.iushrn(1),w.iushrn(1)}return D},t.cachedProperty=function d(A,w,D){var L="_"+w;A.prototype[w]=function(){return void 0!==this[L]?this[L]:this[L]=D.call(this)}},t.parseBytes=function P(A){return"string"==typeof A?t.toArray(A,"hex"):A},t.intFromLE=function h(A){return new e(A,"hex","le")}},7433:function(Fe,Y,p){!function(t,e){"use strict";function f(x,i){if(!x)throw new Error(i||"Assertion failed")}function M(x,i){x.super_=i;var r=function(){};r.prototype=i.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,i,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(x||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(5568).Buffer}catch(x){}function d(x,i){var r=x.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,_=Math.min(x.length,r),E=i;E<_;E++){var I=x.charCodeAt(E)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[_]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===u)for(c=0,_=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(i,r,c)<<_,this.words[E]|=67108863&I,_>=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,_=1;_<=67108863;_*=r)c++;c--,_=_/r|0;for(var E=i.length-u,I=E%c,v=Math.min(E,E-I)+u,n=0,C=u;C1&&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 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"],w=[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],D=[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,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],_=0|i.words[0],E=c*_,v=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&v,N=Math.min(n,i.length-1),z=Math.max(0,n-x.length+1);z<=N;z++)C+=(E=(c=0|x.words[n-z|0])*(_=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,v=0|C}return 0!==v?r.words[n]=0|v:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,_=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-v.length]+v+u:v+u,(c+=2)>=26&&(c-=26,E--)}for(0!==_&&(u=_.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],C=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(C).toString(i);u=(B=B.idivn(C)).isZero()?N+u:A[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),_=u||Math.max(1,c);f(c<=_,"byte array longer than desired length"),f(_>0,"Requested array length <= 0"),this.strip();var v,n,E="le"===r,I=new i(_),C=this.clone();if(E){for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[n]=v;for(;n<_;n++)I[n]=0}else{for(n=0;n<_-c;n++)I[n]=0;for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[_-n-1]=v}return I},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var _=0,E=0;E>>26;for(;0!==_&&E>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,_=i):(c=i,_=this);for(var E=0,I=0;I<_.length;I++)E=(r=(0|c.words[I])-(0|_.words[I])+E)>>26,this.words[I]=67108863&r;for(;0!==E&&I>26,this.words[I]=67108863&r;if(0===E&&I>>13,oe=0|c[1],ge=8191&oe,be=oe>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,De=0|c[4],lt=8191&De,Ie=De>>>13,Ae=0|c[5],se=8191&Ae,Te=Ae>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|_[0],xt=8191&ui,Nt=ui>>>13,gt=0|_[1],et=8191>,vt=gt>>>13,$t=0|_[2],jt=8191&$t,Pe=$t>>>13,Oe=0|_[3],le=8191&Oe,xe=Oe>>>13,ht=0|_[4],ft=8191&ht,Ht=ht>>>13,it=0|_[5],Ne=8191&it,tt=it>>>13,Je=0|_[6],Se=8191&Je,Ue=Je>>>13,rt=0|_[7],at=8191&rt,yt=rt>>>13,gi=0|_[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|_[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(I+(v=Math.imul(N,xt))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(z,xt)|0))<<13)|0;I=((C=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,v=Math.imul(ge,xt),n=(n=Math.imul(ge,Nt))+Math.imul(be,xt)|0,C=Math.imul(be,Nt);var Wi=(I+(v=v+Math.imul(N,et)|0)|0)+((8191&(n=(n=n+Math.imul(N,vt)|0)+Math.imul(z,et)|0))<<13)|0;I=((C=C+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,v=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,C=Math.imul(Q,Nt),v=v+Math.imul(ge,et)|0,n=(n=n+Math.imul(ge,vt)|0)+Math.imul(be,et)|0,C=C+Math.imul(be,vt)|0;var Gi=(I+(v=v+Math.imul(N,jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;I=((C=C+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,v=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,C=Math.imul(F,Nt),v=v+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,C=C+Math.imul(Q,vt)|0,v=v+Math.imul(ge,jt)|0,n=(n=n+Math.imul(ge,Pe)|0)+Math.imul(be,jt)|0,C=C+Math.imul(be,Pe)|0;var Yi=(I+(v=v+Math.imul(N,le)|0)|0)+((8191&(n=(n=n+Math.imul(N,xe)|0)+Math.imul(z,le)|0))<<13)|0;I=((C=C+Math.imul(z,xe)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,v=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,C=Math.imul(Ie,Nt),v=v+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,C=C+Math.imul(F,vt)|0,v=v+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,C=C+Math.imul(Q,Pe)|0,v=v+Math.imul(ge,le)|0,n=(n=n+Math.imul(ge,xe)|0)+Math.imul(be,le)|0,C=C+Math.imul(be,xe)|0;var ze=(I+(v=v+Math.imul(N,ft)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;I=((C=C+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,v=Math.imul(se,xt),n=(n=Math.imul(se,Nt))+Math.imul(Te,xt)|0,C=Math.imul(Te,Nt),v=v+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,C=C+Math.imul(Ie,vt)|0,v=v+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,C=C+Math.imul(F,Pe)|0,v=v+Math.imul(we,le)|0,n=(n=n+Math.imul(we,xe)|0)+Math.imul(Q,le)|0,C=C+Math.imul(Q,xe)|0,v=v+Math.imul(ge,ft)|0,n=(n=n+Math.imul(ge,Ht)|0)+Math.imul(be,ft)|0,C=C+Math.imul(be,Ht)|0;var Lt=(I+(v=v+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;I=((C=C+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,C=Math.imul($,Nt),v=v+Math.imul(se,et)|0,n=(n=n+Math.imul(se,vt)|0)+Math.imul(Te,et)|0,C=C+Math.imul(Te,vt)|0,v=v+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,C=C+Math.imul(Ie,Pe)|0,v=v+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,xe)|0)+Math.imul(F,le)|0,C=C+Math.imul(F,xe)|0,v=v+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,C=C+Math.imul(Q,Ht)|0,v=v+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(be,Ne)|0,C=C+Math.imul(be,tt)|0;var fe=(I+(v=v+Math.imul(N,Se)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;I=((C=C+Math.imul(z,Ue)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,v=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,C=Math.imul(Le,Nt),v=v+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,C=C+Math.imul($,vt)|0,v=v+Math.imul(se,jt)|0,n=(n=n+Math.imul(se,Pe)|0)+Math.imul(Te,jt)|0,C=C+Math.imul(Te,Pe)|0,v=v+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,xe)|0)+Math.imul(Ie,le)|0,C=C+Math.imul(Ie,xe)|0,v=v+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,C=C+Math.imul(F,Ht)|0,v=v+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,C=C+Math.imul(Q,tt)|0,v=v+Math.imul(ge,Se)|0,n=(n=n+Math.imul(ge,Ue)|0)+Math.imul(be,Se)|0,C=C+Math.imul(be,Ue)|0;var je=(I+(v=v+Math.imul(N,at)|0)|0)+((8191&(n=(n=n+Math.imul(N,yt)|0)+Math.imul(z,at)|0))<<13)|0;I=((C=C+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,v=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,C=Math.imul(Dt,Nt),v=v+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,C=C+Math.imul($,Pe)|0,v=v+Math.imul(se,le)|0,n=(n=n+Math.imul(se,xe)|0)+Math.imul(Te,le)|0,C=C+Math.imul(Te,xe)|0,v=v+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,C=C+Math.imul(Ie,Ht)|0,v=v+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,C=C+Math.imul(F,tt)|0,v=v+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,C=C+Math.imul(Q,Ue)|0,v=v+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,yt)|0)+Math.imul(be,at)|0,C=C+Math.imul(be,yt)|0;var Ct=(I+(v=v+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;I=((C=C+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,v=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,C=Math.imul(Gt,Nt),v=v+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,C=C+Math.imul(Dt,vt)|0,v=v+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,C=C+Math.imul(Le,Pe)|0,v=v+Math.imul(W,le)|0,n=(n=n+Math.imul(W,xe)|0)+Math.imul($,le)|0,C=C+Math.imul($,xe)|0,v=v+Math.imul(se,ft)|0,n=(n=n+Math.imul(se,Ht)|0)+Math.imul(Te,ft)|0,C=C+Math.imul(Te,Ht)|0,v=v+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,C=C+Math.imul(Ie,tt)|0,v=v+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,C=C+Math.imul(F,Ue)|0,v=v+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,C=C+Math.imul(Q,yt)|0,v=v+Math.imul(ge,Qt)|0,n=(n=n+Math.imul(ge,Jt)|0)+Math.imul(be,Qt)|0,C=C+Math.imul(be,Jt)|0;var ie=(I+(v=v+Math.imul(N,fi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(z,fi)|0))<<13)|0;I=((C=C+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,v=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,C=Math.imul(Gt,vt),v=v+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,C=C+Math.imul(Dt,Pe)|0,v=v+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,xe)|0)+Math.imul(Le,le)|0,C=C+Math.imul(Le,xe)|0,v=v+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,C=C+Math.imul($,Ht)|0,v=v+Math.imul(se,Ne)|0,n=(n=n+Math.imul(se,tt)|0)+Math.imul(Te,Ne)|0,C=C+Math.imul(Te,tt)|0,v=v+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,C=C+Math.imul(Ie,Ue)|0,v=v+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,C=C+Math.imul(F,yt)|0,v=v+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,C=C+Math.imul(Q,Jt)|0;var qe=(I+(v=v+Math.imul(ge,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ge,ai)|0)+Math.imul(be,fi)|0))<<13)|0;I=((C=C+Math.imul(be,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,v=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,C=Math.imul(Gt,Pe),v=v+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,xe)|0)+Math.imul(Dt,le)|0,C=C+Math.imul(Dt,xe)|0,v=v+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,C=C+Math.imul(Le,Ht)|0,v=v+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,C=C+Math.imul($,tt)|0,v=v+Math.imul(se,Se)|0,n=(n=n+Math.imul(se,Ue)|0)+Math.imul(Te,Se)|0,C=C+Math.imul(Te,Ue)|0,v=v+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,C=C+Math.imul(Ie,yt)|0,v=v+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,C=C+Math.imul(F,Jt)|0;var Mt=(I+(v=v+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;I=((C=C+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(Yt,le),n=(n=Math.imul(Yt,xe))+Math.imul(Gt,le)|0,C=Math.imul(Gt,xe),v=v+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,C=C+Math.imul(Dt,Ht)|0,v=v+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,C=C+Math.imul(Le,tt)|0,v=v+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,C=C+Math.imul($,Ue)|0,v=v+Math.imul(se,at)|0,n=(n=n+Math.imul(se,yt)|0)+Math.imul(Te,at)|0,C=C+Math.imul(Te,yt)|0,v=v+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,C=C+Math.imul(Ie,Jt)|0;var Vt=(I+(v=v+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;I=((C=C+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,v=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,C=Math.imul(Gt,Ht),v=v+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,C=C+Math.imul(Dt,tt)|0,v=v+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,C=C+Math.imul(Le,Ue)|0,v=v+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,C=C+Math.imul($,yt)|0,v=v+Math.imul(se,Qt)|0,n=(n=n+Math.imul(se,Jt)|0)+Math.imul(Te,Qt)|0,C=C+Math.imul(Te,Jt)|0;var Mi=(I+(v=v+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;I=((C=C+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,v=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,C=Math.imul(Gt,tt),v=v+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,C=C+Math.imul(Dt,Ue)|0,v=v+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,C=C+Math.imul(Le,yt)|0,v=v+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,C=C+Math.imul($,Jt)|0;var Ei=(I+(v=v+Math.imul(se,fi)|0)|0)+((8191&(n=(n=n+Math.imul(se,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;I=((C=C+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,v=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,C=Math.imul(Gt,Ue),v=v+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,C=C+Math.imul(Dt,yt)|0,v=v+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,C=C+Math.imul(Le,Jt)|0;var en=(I+(v=v+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;I=((C=C+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,v=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,C=Math.imul(Gt,yt),v=v+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,C=C+Math.imul(Dt,Jt)|0;var ji=(I+(v=v+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;I=((C=C+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,v=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,C=Math.imul(Gt,Jt);var Kt=(I+(v=v+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;I=((C=C+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(I+(v=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return I=((C=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=fe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==I&&(E[19]=I,u.length++),u};function Z(x,i,r){return(new j).mulp(x,i,r)}function j(x,i){this.x=x,this.y=i}Math.imul||(S=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?S(this,i,r):c<63?k(this,i,r):c<1024?function U(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,_=0;_>>26)|0)>>>26,E&=67108863}r.words[_]=I,u=E,E=c}return 0!==u?r.words[_]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,_,E){for(var I=0;I>>=1)_++;return 1<<_+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c>>=13),_>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=_>>>26,this.words[u]=67108863&_}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function L(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var _,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(_=0;_>>26-r}E&&(this.words[_]=E,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_=0),c=r?(r-r%26)/26:0;var _=i%26,E=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,v=u;if(c-=E,c=Math.max(0,c),v){for(var n=0;nE)for(this.length-=E,n=0;n=0&&(0!==C||n>=c);n--){var B=0|this.words[n];this.words[n]=C<<26-_|B>>>_,C=B&I}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(v/67108864|0),this.words[_+u]=67108863&E}for(;_>26,this.words[_+u]=67108863&E;if(0===I)return this.strip();for(f(-1===I),I=0,_=0;_>26,this.words[_]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),_=i,E=0|_.words[_.length-1];0!=(u=26-this._countBits(E))&&(_=_.ushln(u),c.iushln(u),E=0|_.words[_.length-1]);var n,v=c.length-_.length;if("mod"!==r){(n=new a(null)).length=v+1,n.words=new Array(n.length);for(var C=0;C=0;N--){var z=67108864*(0|c.words[_.length+N])+(0|c.words[_.length+N-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(_,z,N);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(_,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:c,mod:_}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:E.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,_,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),_=i.andln(1),E=u.cmp(c);return E<0||1===_&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=new a(0),I=new a(1),v=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++v;for(var n=u.clone(),C=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||_.isOdd())&&(c.iadd(n),_.isub(C)),c.iushrn(1),_.iushrn(1);for(var z=0,oe=1;0==(u.words[0]&oe)&&z<26;++z,oe<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||I.isOdd())&&(E.iadd(n),I.isub(C)),E.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),_.isub(I)):(u.isub(r),E.isub(c),I.isub(_))}return{a:E,b:I,gcd:u.iushln(v)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,v=1;0==(r.words[0]&v)&&I<26;++I,v<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,C=1;0==(u.words[0]&C)&&n<26;++n,C<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(E),_.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(_)):(u.isub(r),_.isub(c))}return(B=0===r.cmpn(1)?c:_).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=r.cmp(u);if(_<0){var E=r;r=u,u=E}else if(0===_||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=I&=67108863}return 0!==_&&(this.words[E]=_,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],_=0|i.words[u];if(c!==_){c<_?r=-1:c>_&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(x,i){this.name=x,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(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)}X.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),_=0;_>>22,E=I}i.words[_-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=_,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),_=0;!c.isZero()&&0===c.andln(1);)_++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),I=E.redNeg(),v=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,v).cmp(I);)n.redIAdd(I);for(var C=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),z=_;0!==N.cmp(E);){for(var oe=N,ge=0;0!==oe.cmp(E);ge++)oe=oe.redSqr();f(ge=0;_--){for(var C=r.words[_],B=n-1;B>=0;B--){var N=C>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==N||0!==I?(I<<=1,I|=N,(4==++v||0===_&&0===B)&&(E=this.mul(E,c[I]),v=0,I=0)):v=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new me(i)},M(me,J),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},8419:Fe=>{"use strict";Fe.exports=function(p){for(var t=[],e=p.length,f=0;f=55296&&M<=56319&&e>f+1){var a=p.charCodeAt(f+1);a>=56320&&a<=57343&&(M=1024*(M-55296)+a-56320+65536,f+=1)}M<128?t.push(M):M<2048?(t.push(M>>6|192),t.push(63&M|128)):M<55296||M>=57344&&M<65536?(t.push(M>>12|224),t.push(M>>6&63|128),t.push(63&M|128)):M>=65536&&M<=1114111?(t.push(M>>18|240),t.push(M>>12&63|128),t.push(M>>6&63|128),t.push(63&M|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:Fe=>{"use strict";var t,Y="object"==typeof Reflect?Reflect:null,p=Y&&"function"==typeof Y.apply?Y.apply:function(X,de,ee){return Function.prototype.apply.call(X,de,ee)};t=Y&&"function"==typeof Y.ownKeys?Y.ownKeys:Object.getOwnPropertySymbols?function(X){return Object.getOwnPropertyNames(X).concat(Object.getOwnPropertySymbols(X))}:function(X){return Object.getOwnPropertyNames(X)};var f=Number.isNaN||function(X){return X!=X};function M(){M.init.call(this)}Fe.exports=M,Fe.exports.once=function U(ne,X){return new Promise(function(de,ee){function te(J){ne.removeListener(X,ce),ee(J)}function ce(){"function"==typeof ne.removeListener&&ne.removeListener("error",te),de([].slice.call(arguments))}j(ne,X,ce,{once:!0}),"error"!==X&&function Z(ne,X,de){"function"==typeof ne.on&&j(ne,"error",X,de)}(ne,te,{once:!0})})},M.EventEmitter=M,M.prototype._events=void 0,M.prototype._eventsCount=0,M.prototype._maxListeners=void 0;var a=10;function b(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?M.defaultMaxListeners:ne._maxListeners}function P(ne,X,de,ee){var te,ce,J;if(b(de),void 0===(ce=ne._events)?(ce=ne._events=Object.create(null),ne._eventsCount=0):(void 0!==ce.newListener&&(ne.emit("newListener",X,de.listener?de.listener:de),ce=ne._events),J=ce[X]),void 0===J)J=ce[X]=de,++ne._eventsCount;else if("function"==typeof J?J=ce[X]=ee?[de,J]:[J,de]:ee?J.unshift(de):J.push(de),(te=d(ne))>0&&J.length>te&&!J.warned){J.warned=!0;var me=new Error("Possible EventEmitter memory leak detected. "+J.length+" "+String(X)+" listeners added. Use emitter.setMaxListeners() to increase limit");me.name="MaxListenersExceededWarning",me.emitter=ne,me.type=X,me.count=J.length,function e(ne){console&&console.warn&&console.warn(ne)}(me)}return ne}function h(){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 A(ne,X,de){var ee={fired:!1,wrapFn:void 0,target:ne,type:X,listener:de},te=h.bind(ee);return te.listener=de,ee.wrapFn=te,te}function w(ne,X,de){var ee=ne._events;if(void 0===ee)return[];var te=ee[X];return void 0===te?[]:"function"==typeof te?de?[te.listener||te]:[te]:de?function S(ne){for(var X=new Array(ne.length),de=0;de0&&(J=de[0]),J instanceof Error)throw J;var me=new Error("Unhandled error."+(J?" ("+J.message+")":""));throw me.context=J,me}var x=ce[X];if(void 0===x)return!1;if("function"==typeof x)p(x,this,de);else{var i=x.length,r=L(x,i);for(ee=0;ee=0;J--)if(ee[J]===de||ee[J].listener===de){me=ee[J].listener,ce=J;break}if(ce<0)return this;0===ce?ee.shift():function k(ne,X){for(;X+1=0;te--)this.removeListener(X,de[te]);return this},M.prototype.listeners=function(X){return w(this,X,!0)},M.prototype.rawListeners=function(X){return w(this,X,!1)},M.listenerCount=function(ne,X){return"function"==typeof ne.listenerCount?ne.listenerCount(X):D.call(ne,X)},M.prototype.listenerCount=D,M.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(Fe,Y,p)=>{var t=p(3502).Buffer,e=p(8095);Fe.exports=function f(M,a,b,d){if(t.isBuffer(M)||(M=t.from(M,"binary")),a&&(t.isBuffer(a)||(a=t.from(a,"binary")),8!==a.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var P=b/8,h=t.alloc(P),A=t.alloc(d||0),w=t.alloc(0);P>0||d>0;){var D=new e;D.update(w),D.update(M),a&&D.update(a),w=D.digest();var L=0;if(P>0){var k=h.length-P;L=Math.min(P,w.length),w.copy(h,k,0,L),P-=L}if(L0){var S=A.length-d,U=Math.min(d,w.length-L);w.copy(A,S,L,L+U),d-=U}}return w.fill(0),{key:h,iv:A}}},9650:(Fe,Y,p)=>{"use strict";var t=p(8444).Buffer,e=p(5685).Transform;function a(b){e.call(this),this._block=t.allocUnsafe(b),this._blockSize=b,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(a,e),a.prototype._transform=function(b,d,P){var h=null;try{this.update(b,d)}catch(A){h=A}P(h)},a.prototype._flush=function(b){var d=null;try{this.push(this.digest())}catch(P){d=P}b(d)},a.prototype.update=function(b,d){if(function M(b,d){if(!t.isBuffer(b)&&"string"!=typeof b)throw new TypeError(d+" must be a string or a buffer")}(b,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(b)||(b=t.from(b,d));for(var P=this._block,h=0;this._blockOffset+b.length-h>=this._blockSize;){for(var A=this._blockOffset;A0;++w)this._length[w]+=D,(D=this._length[w]/4294967296|0)>0&&(this._length[w]-=4294967296*D);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(b){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==b&&(d=d.toString(b)),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")},Fe.exports=a},8444:(Fe,Y,p)=>{var t=p(3172),e=t.Buffer;function f(a,b){for(var d in a)b[d]=a[d]}function M(a,b,d){return e(a,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Fe.exports=t:(f(t,Y),Y.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(a,b,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,b,d)},M.alloc=function(a,b,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=e(a);return void 0!==b?"string"==typeof d?P.fill(b,d):P.fill(b):P.fill(0),P},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},7084:(Fe,Y,p)=>{var t=Y;t.utils=p(9299),t.common=p(3800),t.sha=p(4962),t.ripemd=p(9458),t.hmac=p(2194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},3800:(Fe,Y,p)=>{"use strict";var t=p(9299),e=p(2391);function f(){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}Y.BlockHash=f,f.prototype.update=function(a,b){if(a=t.toArray(a,b),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=t.join32(a,0,a.length-d,this.endian);for(var P=0;P>>24&255,P[h++]=a>>>16&255,P[h++]=a>>>8&255,P[h++]=255&a}else for(P[h++]=255&a,P[h++]=a>>>8&255,P[h++]=a>>>16&255,P[h++]=a>>>24&255,P[h++]=0,P[h++]=0,P[h++]=0,P[h++]=0,A=8;A{"use strict";var t=p(9299),e=p(2391);function f(M,a,b){if(!(this instanceof f))return new f(M,a,b);this.Hash=M,this.blockSize=M.blockSize/8,this.outSize=M.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(a,b))}Fe.exports=f,f.prototype._init=function(a){a.length>this.blockSize&&(a=(new this.Hash).update(a).digest()),e(a.length<=this.blockSize);for(var b=a.length;b{"use strict";var t=p(9299),e=p(3800),f=t.rotl32,M=t.sum32,a=t.sum32_3,b=t.sum32_4,d=e.BlockHash;function P(){if(!(this instanceof P))return new P;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(U,Z,j,ne){return U<=15?Z^j^ne:U<=31?Z&j|~Z&ne:U<=47?(Z|~j)^ne:U<=63?Z&ne|j&~ne:Z^(j|~ne)}function w(U){return U<=15?1352829926:U<=31?1548603684:U<=47?1836072691:U<=63?2053994217:0}t.inherits(P,d),Y.ripemd160=P,P.blockSize=512,P.outSize=160,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(Z,j){for(var ne=this.h[0],X=this.h[1],de=this.h[2],ee=this.h[3],te=this.h[4],ce=ne,J=X,me=de,x=ee,i=te,r=0;r<80;r++){var u=M(f(b(ne,h(r,X,de,ee),Z[D[r]+j],(U=r)<=15?0:U<=31?1518500249:U<=47?1859775393:U<=63?2400959708:2840853838),k[r]),te);ne=te,te=ee,ee=f(de,10),de=X,X=u,u=M(f(b(ce,h(79-r,J,me,x),Z[L[r]+j],w(r)),S[r]),i),ce=i,i=x,x=f(me,10),me=J,J=u}var U;u=a(this.h[1],de,x),this.h[1]=a(this.h[2],ee,i),this.h[2]=a(this.h[3],te,ce),this.h[3]=a(this.h[4],ne,J),this.h[4]=a(this.h[0],X,me),this.h[0]=u},P.prototype._digest=function(Z){return"hex"===Z?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var D=[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],L=[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],S=[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:(Fe,Y,p)=>{"use strict";Y.sha1=p(9007),Y.sha224=p(55),Y.sha256=p(9342),Y.sha384=p(8634),Y.sha512=p(39)},9007:(Fe,Y,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=t.rotl32,a=t.sum32,b=t.sum32_5,d=f.ft_1,P=e.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function A(){if(!(this instanceof A))return new A;P.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(A,P),Fe.exports=A,A.blockSize=512,A.outSize=160,A.hmacStrength=80,A.padLength=64,A.prototype._update=function(D,L){for(var k=this.W,S=0;S<16;S++)k[S]=D[L+S];for(;S{"use strict";var t=p(9299),e=p(9342);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(f,e),Fe.exports=f,f.blockSize=512,f.outSize=224,f.hmacStrength=192,f.padLength=64,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(Fe,Y,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=p(2391),a=t.sum32,b=t.sum32_4,d=t.sum32_5,P=f.ch32,h=f.maj32,A=f.s0_256,w=f.s1_256,D=f.g0_256,L=f.g1_256,k=e.BlockHash,S=[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 U(){if(!(this instanceof U))return new U;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=S,this.W=new Array(64)}t.inherits(U,k),Fe.exports=U,U.blockSize=512,U.outSize=256,U.hmacStrength=192,U.padLength=64,U.prototype._update=function(j,ne){for(var X=this.W,de=0;de<16;de++)X[de]=j[ne+de];for(;de{"use strict";var t=p(9299),e=p(39);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(f,e),Fe.exports=f,f.blockSize=1024,f.outSize=384,f.hmacStrength=192,f.padLength=128,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(Fe,Y,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(2391),M=t.rotr64_hi,a=t.rotr64_lo,b=t.shr64_hi,d=t.shr64_lo,P=t.sum64,h=t.sum64_hi,A=t.sum64_lo,w=t.sum64_4_hi,D=t.sum64_4_lo,L=t.sum64_5_hi,k=t.sum64_5_lo,S=e.BlockHash,U=[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 Z(){if(!(this instanceof Z))return new Z;S.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=U,this.W=new Array(160)}function j(u,c,_,E,I){var v=u&_^~u&I;return v<0&&(v+=4294967296),v}function ne(u,c,_,E,I,v){var n=c&E^~c&v;return n<0&&(n+=4294967296),n}function X(u,c,_,E,I){var v=u&_^u&I^_&I;return v<0&&(v+=4294967296),v}function de(u,c,_,E,I,v){var n=c&E^c&v^E&v;return n<0&&(n+=4294967296),n}function ee(u,c){var v=M(u,c,28)^M(c,u,2)^M(c,u,7);return v<0&&(v+=4294967296),v}function te(u,c){var v=a(u,c,28)^a(c,u,2)^a(c,u,7);return v<0&&(v+=4294967296),v}function ce(u,c){var v=M(u,c,14)^M(u,c,18)^M(c,u,9);return v<0&&(v+=4294967296),v}function J(u,c){var v=a(u,c,14)^a(u,c,18)^a(c,u,9);return v<0&&(v+=4294967296),v}function me(u,c){var v=M(u,c,1)^M(u,c,8)^b(u,c,7);return v<0&&(v+=4294967296),v}function x(u,c){var v=a(u,c,1)^a(u,c,8)^d(u,c,7);return v<0&&(v+=4294967296),v}function i(u,c){var v=M(u,c,19)^M(c,u,29)^b(u,c,6);return v<0&&(v+=4294967296),v}function r(u,c){var v=a(u,c,19)^a(c,u,29)^d(u,c,6);return v<0&&(v+=4294967296),v}t.inherits(Z,S),Fe.exports=Z,Z.blockSize=1024,Z.outSize=512,Z.hmacStrength=192,Z.padLength=128,Z.prototype._prepareBlock=function(c,_){for(var E=this.W,I=0;I<32;I++)E[I]=c[_+I];for(;I{"use strict";var e=p(9299).rotr32;function M(w,D,L){return w&D^~w&L}function a(w,D,L){return w&D^w&L^D&L}function b(w,D,L){return w^D^L}Y.ft_1=function f(w,D,L,k){return 0===w?M(D,L,k):1===w||3===w?b(D,L,k):2===w?a(D,L,k):void 0},Y.ch32=M,Y.maj32=a,Y.p32=b,Y.s0_256=function d(w){return e(w,2)^e(w,13)^e(w,22)},Y.s1_256=function P(w){return e(w,6)^e(w,11)^e(w,25)},Y.g0_256=function h(w){return e(w,7)^e(w,18)^w>>>3},Y.g1_256=function A(w){return e(w,17)^e(w,19)^w>>>10}},9299:(Fe,Y,p)=>{"use strict";var t=p(2391),e=p(3894);function f(r,u){return!(55296!=(64512&r.charCodeAt(u))||u<0||u+1>=r.length)&&56320==(64512&r.charCodeAt(u+1))}function b(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 h(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}Y.inherits=e,Y.toArray=function M(r,u){if(Array.isArray(r))return r.slice();if(!r)return[];var c=[];if("string"==typeof r)if(u){if("hex"===u)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),E=0;E>6|192,c[_++]=63&I|128):f(r,E)?(I=65536+((1023&I)<<10)+(1023&r.charCodeAt(++E)),c[_++]=I>>18|240,c[_++]=I>>12&63|128,c[_++]=I>>6&63|128,c[_++]=63&I|128):(c[_++]=I>>12|224,c[_++]=I>>6&63|128,c[_++]=63&I|128)}else for(E=0;E>>0;return I},Y.split32=function w(r,u){for(var c=new Array(4*r.length),_=0,E=0;_>>24,c[E+1]=I>>>16&255,c[E+2]=I>>>8&255,c[E+3]=255&I):(c[E+3]=I>>>24,c[E+2]=I>>>16&255,c[E+1]=I>>>8&255,c[E]=255&I)}return c},Y.rotr32=function D(r,u){return r>>>u|r<<32-u},Y.rotl32=function L(r,u){return r<>>32-u},Y.sum32=function k(r,u){return r+u>>>0},Y.sum32_3=function S(r,u,c){return r+u+c>>>0},Y.sum32_4=function U(r,u,c,_){return r+u+c+_>>>0},Y.sum32_5=function Z(r,u,c,_,E){return r+u+c+_+E>>>0},Y.sum64=function j(r,u,c,_){var v=_+r[u+1]>>>0;r[u]=(v<_?1:0)+c+r[u]>>>0,r[u+1]=v},Y.sum64_hi=function ne(r,u,c,_){return(u+_>>>0>>0},Y.sum64_lo=function X(r,u,c,_){return u+_>>>0},Y.sum64_4_hi=function de(r,u,c,_,E,I,v,n){var C=0,B=u;return C+=(B=B+_>>>0)>>0)>>0)>>0},Y.sum64_4_lo=function ee(r,u,c,_,E,I,v,n){return u+_+I+n>>>0},Y.sum64_5_hi=function te(r,u,c,_,E,I,v,n,C,B){var N=0,z=u;return N+=(z=z+_>>>0)>>0)>>0)>>0)>>0},Y.sum64_5_lo=function ce(r,u,c,_,E,I,v,n,C,B){return u+_+I+n+B>>>0},Y.rotr64_hi=function J(r,u,c){return(u<<32-c|r>>>c)>>>0},Y.rotr64_lo=function me(r,u,c){return(r<<32-c|u>>>c)>>>0},Y.shr64_hi=function x(r,u,c){return r>>>c},Y.shr64_lo=function i(r,u,c){return(r<<32-c|u>>>c)>>>0}},2438:(Fe,Y,p)=>{"use strict";var t=p(7084),e=p(8195),f=p(2391);function M(a){if(!(this instanceof M))return new M(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 b=e.toArray(a.entropy,a.entropyEnc||"hex"),d=e.toArray(a.nonce,a.nonceEnc||"hex"),P=e.toArray(a.pers,a.persEnc||"hex");f(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(b,d,P)}Fe.exports=M,M.prototype._init=function(b,d,P){var h=b.concat(d).concat(P);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var A=0;A=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(b.concat(P||[])),this._reseed=1},M.prototype.generate=function(b,d,P,h){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof d&&(h=P,P=d,d=null),P&&(P=e.toArray(P,h||"hex"),this._update(P));for(var A=[];A.length{Y.read=function(p,t,e,f,M){var a,b,d=8*M-f-1,P=(1<>1,A=-7,w=e?M-1:0,D=e?-1:1,L=p[t+w];for(w+=D,a=L&(1<<-A)-1,L>>=-A,A+=d;A>0;a=256*a+p[t+w],w+=D,A-=8);for(b=a&(1<<-A)-1,a>>=-A,A+=f;A>0;b=256*b+p[t+w],w+=D,A-=8);if(0===a)a=1-h;else{if(a===P)return b?NaN:1/0*(L?-1:1);b+=Math.pow(2,f),a-=h}return(L?-1:1)*b*Math.pow(2,a-f)},Y.write=function(p,t,e,f,M,a){var b,d,P,h=8*a-M-1,A=(1<>1,D=23===M?Math.pow(2,-24)-Math.pow(2,-77):0,L=f?0:a-1,k=f?1:-1,S=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,b=A):(b=Math.floor(Math.log(t)/Math.LN2),t*(P=Math.pow(2,-b))<1&&(b--,P*=2),(t+=b+w>=1?D/P:D*Math.pow(2,1-w))*P>=2&&(b++,P/=2),b+w>=A?(d=0,b=A):b+w>=1?(d=(t*P-1)*Math.pow(2,M),b+=w):(d=t*Math.pow(2,w-1)*Math.pow(2,M),b=0));M>=8;p[e+L]=255&d,L+=k,d/=256,M-=8);for(b=b<0;p[e+L]=255&b,L+=k,b/=256,h-=8);p[e+L-k]|=128*S}},3894:Fe=>{Fe.exports="function"==typeof Object.create?function(p,t){t&&(p.super_=t,p.prototype=Object.create(t.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,t){if(t){p.super_=t;var e=function(){};e.prototype=t.prototype,p.prototype=new e,p.prototype.constructor=p}}},717:(Fe,Y,p)=>{"use strict";var t=p(623);function e(f){return!0===t(f)&&"[object Object]"===Object.prototype.toString.call(f)}Fe.exports=function(M){var a,b;return!(!1===e(M)||(a=M.constructor,"function"!=typeof a)||(b=a.prototype,!1===e(b))||!1===b.hasOwnProperty("isPrototypeOf"))}},623:Fe=>{"use strict";Fe.exports=function(p){return null!=p&&"object"==typeof p&&!1===Array.isArray(p)}},2872:Fe=>{var Y=Object.prototype.toString;function p(h){return"function"==typeof h.constructor?h.constructor.name:null}Fe.exports=function(A){if(void 0===A)return"undefined";if(null===A)return"null";var w=typeof A;if("boolean"===w)return"boolean";if("string"===w)return"string";if("number"===w)return"number";if("symbol"===w)return"symbol";if("function"===w)return function a(h,A){return"GeneratorFunction"===p(h)}(A)?"generatorfunction":"function";if(function t(h){return Array.isArray?Array.isArray(h):h instanceof Array}(A))return"array";if(function P(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(A))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(A){if(-1!==A.message.indexOf("callee"))return!0}return!1}(A))return"arguments";if(function f(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(A))return"date";if(function e(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(A))return"error";if(function M(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(A))return"regexp";switch(p(A)){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 b(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(A))return"generator";switch(w=Y.call(A)){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 w.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Fe,Y,p)=>{"use strict";var t=p(3894),e=p(9650),f=p(3502).Buffer,M=new Array(16);function a(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function b(w,D){return w<>>32-D}function d(w,D,L,k,S,U,Z){return b(w+(D&L|~D&k)+S+U|0,Z)+D|0}function P(w,D,L,k,S,U,Z){return b(w+(D&k|L&~k)+S+U|0,Z)+D|0}function h(w,D,L,k,S,U,Z){return b(w+(D^L^k)+S+U|0,Z)+D|0}function A(w,D,L,k,S,U,Z){return b(w+(L^(D|~k))+S+U|0,Z)+D|0}t(a,e),a.prototype._update=function(){for(var w=M,D=0;D<16;++D)w[D]=this._block.readInt32LE(4*D);var L=this._a,k=this._b,S=this._c,U=this._d;L=d(L,k,S,U,w[0],3614090360,7),U=d(U,L,k,S,w[1],3905402710,12),S=d(S,U,L,k,w[2],606105819,17),k=d(k,S,U,L,w[3],3250441966,22),L=d(L,k,S,U,w[4],4118548399,7),U=d(U,L,k,S,w[5],1200080426,12),S=d(S,U,L,k,w[6],2821735955,17),k=d(k,S,U,L,w[7],4249261313,22),L=d(L,k,S,U,w[8],1770035416,7),U=d(U,L,k,S,w[9],2336552879,12),S=d(S,U,L,k,w[10],4294925233,17),k=d(k,S,U,L,w[11],2304563134,22),L=d(L,k,S,U,w[12],1804603682,7),U=d(U,L,k,S,w[13],4254626195,12),S=d(S,U,L,k,w[14],2792965006,17),L=P(L,k=d(k,S,U,L,w[15],1236535329,22),S,U,w[1],4129170786,5),U=P(U,L,k,S,w[6],3225465664,9),S=P(S,U,L,k,w[11],643717713,14),k=P(k,S,U,L,w[0],3921069994,20),L=P(L,k,S,U,w[5],3593408605,5),U=P(U,L,k,S,w[10],38016083,9),S=P(S,U,L,k,w[15],3634488961,14),k=P(k,S,U,L,w[4],3889429448,20),L=P(L,k,S,U,w[9],568446438,5),U=P(U,L,k,S,w[14],3275163606,9),S=P(S,U,L,k,w[3],4107603335,14),k=P(k,S,U,L,w[8],1163531501,20),L=P(L,k,S,U,w[13],2850285829,5),U=P(U,L,k,S,w[2],4243563512,9),S=P(S,U,L,k,w[7],1735328473,14),L=h(L,k=P(k,S,U,L,w[12],2368359562,20),S,U,w[5],4294588738,4),U=h(U,L,k,S,w[8],2272392833,11),S=h(S,U,L,k,w[11],1839030562,16),k=h(k,S,U,L,w[14],4259657740,23),L=h(L,k,S,U,w[1],2763975236,4),U=h(U,L,k,S,w[4],1272893353,11),S=h(S,U,L,k,w[7],4139469664,16),k=h(k,S,U,L,w[10],3200236656,23),L=h(L,k,S,U,w[13],681279174,4),U=h(U,L,k,S,w[0],3936430074,11),S=h(S,U,L,k,w[3],3572445317,16),k=h(k,S,U,L,w[6],76029189,23),L=h(L,k,S,U,w[9],3654602809,4),U=h(U,L,k,S,w[12],3873151461,11),S=h(S,U,L,k,w[15],530742520,16),L=A(L,k=h(k,S,U,L,w[2],3299628645,23),S,U,w[0],4096336452,6),U=A(U,L,k,S,w[7],1126891415,10),S=A(S,U,L,k,w[14],2878612391,15),k=A(k,S,U,L,w[5],4237533241,21),L=A(L,k,S,U,w[12],1700485571,6),U=A(U,L,k,S,w[3],2399980690,10),S=A(S,U,L,k,w[10],4293915773,15),k=A(k,S,U,L,w[1],2240044497,21),L=A(L,k,S,U,w[8],1873313359,6),U=A(U,L,k,S,w[15],4264355552,10),S=A(S,U,L,k,w[6],2734768916,15),k=A(k,S,U,L,w[13],1309151649,21),L=A(L,k,S,U,w[4],4149444226,6),U=A(U,L,k,S,w[11],3174756917,10),S=A(S,U,L,k,w[2],718787259,15),k=A(k,S,U,L,w[9],3951481745,21),this._a=this._a+L|0,this._b=this._b+k|0,this._c=this._c+S|0,this._d=this._d+U|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 w=f.allocUnsafe(16);return w.writeInt32LE(this._a,0),w.writeInt32LE(this._b,4),w.writeInt32LE(this._c,8),w.writeInt32LE(this._d,12),w},Fe.exports=a},7079:(Fe,Y,p)=>{var t=p(1378),e=p(7950);function f(M){this.rand=M||new e.Rand}Fe.exports=f,f.create=function(a){return new f(a)},f.prototype._randbelow=function(a){var b=a.bitLength(),d=Math.ceil(b/8);do{var P=new t(this.rand.generate(d))}while(P.cmp(a)>=0);return P},f.prototype._randrange=function(a,b){var d=b.sub(a);return a.add(this._randbelow(d))},f.prototype.test=function(a,b,d){var P=a.bitLength(),h=t.mont(a),A=new t(1).toRed(h);b||(b=Math.max(1,P/48|0));for(var w=a.subn(1),D=0;!w.testn(D);D++);for(var L=a.shrn(D),k=w.toRed(h);b>0;b--){var U=this._randrange(new t(2),w);d&&d(U);var Z=U.toRed(h).redPow(L);if(0!==Z.cmp(A)&&0!==Z.cmp(k)){for(var j=1;j0;b--){var k=this._randrange(new t(2),A),S=a.gcd(k);if(0!==S.cmpn(1))return S;var U=k.toRed(P).redPow(D);if(0!==U.cmp(h)&&0!==U.cmp(L)){for(var Z=1;Z=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,_=Math.min(x.length,r),E=i;E<_;E++){var I=x.charCodeAt(E)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[_]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===u)for(c=0,_=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(i,r,c)<<_,this.words[E]|=67108863&I,_>=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,_=1;_<=67108863;_*=r)c++;c--,_=_/r|0;for(var E=i.length-u,I=E%c,v=Math.min(E,E-I)+u,n=0,C=u;C1&&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 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"],w=[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],D=[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,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],_=0|i.words[0],E=c*_,v=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&v,N=Math.min(n,i.length-1),z=Math.max(0,n-x.length+1);z<=N;z++)C+=(E=(c=0|x.words[n-z|0])*(_=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,v=0|C}return 0!==v?r.words[n]=0|v:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,_=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-v.length]+v+u:v+u,(c+=2)>=26&&(c-=26,E--)}for(0!==_&&(u=_.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],C=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(C).toString(i);u=(B=B.idivn(C)).isZero()?N+u:A[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),_=u||Math.max(1,c);f(c<=_,"byte array longer than desired length"),f(_>0,"Requested array length <= 0"),this.strip();var v,n,E="le"===r,I=new i(_),C=this.clone();if(E){for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[n]=v;for(;n<_;n++)I[n]=0}else{for(n=0;n<_-c;n++)I[n]=0;for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[_-n-1]=v}return I},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var _=0,E=0;E>>26;for(;0!==_&&E>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,_=i):(c=i,_=this);for(var E=0,I=0;I<_.length;I++)E=(r=(0|c.words[I])-(0|_.words[I])+E)>>26,this.words[I]=67108863&r;for(;0!==E&&I>26,this.words[I]=67108863&r;if(0===E&&I>>13,oe=0|c[1],ge=8191&oe,be=oe>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,De=0|c[4],lt=8191&De,Ie=De>>>13,Ae=0|c[5],se=8191&Ae,Te=Ae>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|_[0],xt=8191&ui,Nt=ui>>>13,gt=0|_[1],et=8191>,vt=gt>>>13,$t=0|_[2],jt=8191&$t,Pe=$t>>>13,Oe=0|_[3],le=8191&Oe,xe=Oe>>>13,ht=0|_[4],ft=8191&ht,Ht=ht>>>13,it=0|_[5],Ne=8191&it,tt=it>>>13,Je=0|_[6],Se=8191&Je,Ue=Je>>>13,rt=0|_[7],at=8191&rt,yt=rt>>>13,gi=0|_[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|_[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(I+(v=Math.imul(N,xt))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(z,xt)|0))<<13)|0;I=((C=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,v=Math.imul(ge,xt),n=(n=Math.imul(ge,Nt))+Math.imul(be,xt)|0,C=Math.imul(be,Nt);var Wi=(I+(v=v+Math.imul(N,et)|0)|0)+((8191&(n=(n=n+Math.imul(N,vt)|0)+Math.imul(z,et)|0))<<13)|0;I=((C=C+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,v=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,C=Math.imul(Q,Nt),v=v+Math.imul(ge,et)|0,n=(n=n+Math.imul(ge,vt)|0)+Math.imul(be,et)|0,C=C+Math.imul(be,vt)|0;var Gi=(I+(v=v+Math.imul(N,jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;I=((C=C+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,v=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,C=Math.imul(F,Nt),v=v+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,C=C+Math.imul(Q,vt)|0,v=v+Math.imul(ge,jt)|0,n=(n=n+Math.imul(ge,Pe)|0)+Math.imul(be,jt)|0,C=C+Math.imul(be,Pe)|0;var Yi=(I+(v=v+Math.imul(N,le)|0)|0)+((8191&(n=(n=n+Math.imul(N,xe)|0)+Math.imul(z,le)|0))<<13)|0;I=((C=C+Math.imul(z,xe)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,v=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,C=Math.imul(Ie,Nt),v=v+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,C=C+Math.imul(F,vt)|0,v=v+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,C=C+Math.imul(Q,Pe)|0,v=v+Math.imul(ge,le)|0,n=(n=n+Math.imul(ge,xe)|0)+Math.imul(be,le)|0,C=C+Math.imul(be,xe)|0;var ze=(I+(v=v+Math.imul(N,ft)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;I=((C=C+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,v=Math.imul(se,xt),n=(n=Math.imul(se,Nt))+Math.imul(Te,xt)|0,C=Math.imul(Te,Nt),v=v+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,C=C+Math.imul(Ie,vt)|0,v=v+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,C=C+Math.imul(F,Pe)|0,v=v+Math.imul(we,le)|0,n=(n=n+Math.imul(we,xe)|0)+Math.imul(Q,le)|0,C=C+Math.imul(Q,xe)|0,v=v+Math.imul(ge,ft)|0,n=(n=n+Math.imul(ge,Ht)|0)+Math.imul(be,ft)|0,C=C+Math.imul(be,Ht)|0;var Lt=(I+(v=v+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;I=((C=C+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,C=Math.imul($,Nt),v=v+Math.imul(se,et)|0,n=(n=n+Math.imul(se,vt)|0)+Math.imul(Te,et)|0,C=C+Math.imul(Te,vt)|0,v=v+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,C=C+Math.imul(Ie,Pe)|0,v=v+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,xe)|0)+Math.imul(F,le)|0,C=C+Math.imul(F,xe)|0,v=v+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,C=C+Math.imul(Q,Ht)|0,v=v+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(be,Ne)|0,C=C+Math.imul(be,tt)|0;var fe=(I+(v=v+Math.imul(N,Se)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;I=((C=C+Math.imul(z,Ue)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,v=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,C=Math.imul(Le,Nt),v=v+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,C=C+Math.imul($,vt)|0,v=v+Math.imul(se,jt)|0,n=(n=n+Math.imul(se,Pe)|0)+Math.imul(Te,jt)|0,C=C+Math.imul(Te,Pe)|0,v=v+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,xe)|0)+Math.imul(Ie,le)|0,C=C+Math.imul(Ie,xe)|0,v=v+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,C=C+Math.imul(F,Ht)|0,v=v+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,C=C+Math.imul(Q,tt)|0,v=v+Math.imul(ge,Se)|0,n=(n=n+Math.imul(ge,Ue)|0)+Math.imul(be,Se)|0,C=C+Math.imul(be,Ue)|0;var je=(I+(v=v+Math.imul(N,at)|0)|0)+((8191&(n=(n=n+Math.imul(N,yt)|0)+Math.imul(z,at)|0))<<13)|0;I=((C=C+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,v=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,C=Math.imul(Dt,Nt),v=v+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,C=C+Math.imul($,Pe)|0,v=v+Math.imul(se,le)|0,n=(n=n+Math.imul(se,xe)|0)+Math.imul(Te,le)|0,C=C+Math.imul(Te,xe)|0,v=v+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,C=C+Math.imul(Ie,Ht)|0,v=v+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,C=C+Math.imul(F,tt)|0,v=v+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,C=C+Math.imul(Q,Ue)|0,v=v+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,yt)|0)+Math.imul(be,at)|0,C=C+Math.imul(be,yt)|0;var Ct=(I+(v=v+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;I=((C=C+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,v=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,C=Math.imul(Gt,Nt),v=v+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,C=C+Math.imul(Dt,vt)|0,v=v+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,C=C+Math.imul(Le,Pe)|0,v=v+Math.imul(W,le)|0,n=(n=n+Math.imul(W,xe)|0)+Math.imul($,le)|0,C=C+Math.imul($,xe)|0,v=v+Math.imul(se,ft)|0,n=(n=n+Math.imul(se,Ht)|0)+Math.imul(Te,ft)|0,C=C+Math.imul(Te,Ht)|0,v=v+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,C=C+Math.imul(Ie,tt)|0,v=v+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,C=C+Math.imul(F,Ue)|0,v=v+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,C=C+Math.imul(Q,yt)|0,v=v+Math.imul(ge,Qt)|0,n=(n=n+Math.imul(ge,Jt)|0)+Math.imul(be,Qt)|0,C=C+Math.imul(be,Jt)|0;var ie=(I+(v=v+Math.imul(N,fi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(z,fi)|0))<<13)|0;I=((C=C+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,v=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,C=Math.imul(Gt,vt),v=v+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,C=C+Math.imul(Dt,Pe)|0,v=v+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,xe)|0)+Math.imul(Le,le)|0,C=C+Math.imul(Le,xe)|0,v=v+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,C=C+Math.imul($,Ht)|0,v=v+Math.imul(se,Ne)|0,n=(n=n+Math.imul(se,tt)|0)+Math.imul(Te,Ne)|0,C=C+Math.imul(Te,tt)|0,v=v+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,C=C+Math.imul(Ie,Ue)|0,v=v+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,C=C+Math.imul(F,yt)|0,v=v+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,C=C+Math.imul(Q,Jt)|0;var qe=(I+(v=v+Math.imul(ge,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ge,ai)|0)+Math.imul(be,fi)|0))<<13)|0;I=((C=C+Math.imul(be,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,v=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,C=Math.imul(Gt,Pe),v=v+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,xe)|0)+Math.imul(Dt,le)|0,C=C+Math.imul(Dt,xe)|0,v=v+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,C=C+Math.imul(Le,Ht)|0,v=v+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,C=C+Math.imul($,tt)|0,v=v+Math.imul(se,Se)|0,n=(n=n+Math.imul(se,Ue)|0)+Math.imul(Te,Se)|0,C=C+Math.imul(Te,Ue)|0,v=v+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,C=C+Math.imul(Ie,yt)|0,v=v+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,C=C+Math.imul(F,Jt)|0;var Mt=(I+(v=v+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;I=((C=C+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(Yt,le),n=(n=Math.imul(Yt,xe))+Math.imul(Gt,le)|0,C=Math.imul(Gt,xe),v=v+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,C=C+Math.imul(Dt,Ht)|0,v=v+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,C=C+Math.imul(Le,tt)|0,v=v+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,C=C+Math.imul($,Ue)|0,v=v+Math.imul(se,at)|0,n=(n=n+Math.imul(se,yt)|0)+Math.imul(Te,at)|0,C=C+Math.imul(Te,yt)|0,v=v+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,C=C+Math.imul(Ie,Jt)|0;var Vt=(I+(v=v+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;I=((C=C+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,v=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,C=Math.imul(Gt,Ht),v=v+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,C=C+Math.imul(Dt,tt)|0,v=v+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,C=C+Math.imul(Le,Ue)|0,v=v+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,C=C+Math.imul($,yt)|0,v=v+Math.imul(se,Qt)|0,n=(n=n+Math.imul(se,Jt)|0)+Math.imul(Te,Qt)|0,C=C+Math.imul(Te,Jt)|0;var Mi=(I+(v=v+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;I=((C=C+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,v=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,C=Math.imul(Gt,tt),v=v+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,C=C+Math.imul(Dt,Ue)|0,v=v+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,C=C+Math.imul(Le,yt)|0,v=v+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,C=C+Math.imul($,Jt)|0;var Ei=(I+(v=v+Math.imul(se,fi)|0)|0)+((8191&(n=(n=n+Math.imul(se,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;I=((C=C+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,v=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,C=Math.imul(Gt,Ue),v=v+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,C=C+Math.imul(Dt,yt)|0,v=v+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,C=C+Math.imul(Le,Jt)|0;var en=(I+(v=v+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;I=((C=C+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,v=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,C=Math.imul(Gt,yt),v=v+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,C=C+Math.imul(Dt,Jt)|0;var ji=(I+(v=v+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;I=((C=C+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,v=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,C=Math.imul(Gt,Jt);var Kt=(I+(v=v+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;I=((C=C+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(I+(v=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return I=((C=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=fe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==I&&(E[19]=I,u.length++),u};function Z(x,i,r){return(new j).mulp(x,i,r)}function j(x,i){this.x=x,this.y=i}Math.imul||(S=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?S(this,i,r):c<63?k(this,i,r):c<1024?function U(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,_=0;_>>26)|0)>>>26,E&=67108863}r.words[_]=I,u=E,E=c}return 0!==u?r.words[_]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,_,E){for(var I=0;I>>=1)_++;return 1<<_+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c>>=13),_>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=_>>>26,this.words[u]=67108863&_}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function L(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var _,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(_=0;_>>26-r}E&&(this.words[_]=E,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_=0),c=r?(r-r%26)/26:0;var _=i%26,E=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,v=u;if(c-=E,c=Math.max(0,c),v){for(var n=0;nE)for(this.length-=E,n=0;n=0&&(0!==C||n>=c);n--){var B=0|this.words[n];this.words[n]=C<<26-_|B>>>_,C=B&I}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(v/67108864|0),this.words[_+u]=67108863&E}for(;_>26,this.words[_+u]=67108863&E;if(0===I)return this.strip();for(f(-1===I),I=0,_=0;_>26,this.words[_]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),_=i,E=0|_.words[_.length-1];0!=(u=26-this._countBits(E))&&(_=_.ushln(u),c.iushln(u),E=0|_.words[_.length-1]);var n,v=c.length-_.length;if("mod"!==r){(n=new a(null)).length=v+1,n.words=new Array(n.length);for(var C=0;C=0;N--){var z=67108864*(0|c.words[_.length+N])+(0|c.words[_.length+N-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(_,z,N);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(_,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:c,mod:_}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:E.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,_,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),_=i.andln(1),E=u.cmp(c);return E<0||1===_&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=new a(0),I=new a(1),v=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++v;for(var n=u.clone(),C=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||_.isOdd())&&(c.iadd(n),_.isub(C)),c.iushrn(1),_.iushrn(1);for(var z=0,oe=1;0==(u.words[0]&oe)&&z<26;++z,oe<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||I.isOdd())&&(E.iadd(n),I.isub(C)),E.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),_.isub(I)):(u.isub(r),E.isub(c),I.isub(_))}return{a:E,b:I,gcd:u.iushln(v)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,v=1;0==(r.words[0]&v)&&I<26;++I,v<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,C=1;0==(u.words[0]&C)&&n<26;++n,C<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(E),_.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(_)):(u.isub(r),_.isub(c))}return(B=0===r.cmpn(1)?c:_).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=r.cmp(u);if(_<0){var E=r;r=u,u=E}else if(0===_||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=I&=67108863}return 0!==_&&(this.words[E]=_,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],_=0|i.words[u];if(c!==_){c<_?r=-1:c>_&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(x,i){this.name=x,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(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)}X.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),_=0;_>>22,E=I}i.words[_-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=_,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),_=0;!c.isZero()&&0===c.andln(1);)_++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),I=E.redNeg(),v=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,v).cmp(I);)n.redIAdd(I);for(var C=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),z=_;0!==N.cmp(E);){for(var oe=N,ge=0;0!==oe.cmp(E);ge++)oe=oe.redSqr();f(ge=0;_--){for(var C=r.words[_],B=n-1;B>=0;B--){var N=C>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==N||0!==I?(I<<=1,I|=N,(4==++v||0===_&&0===B)&&(E=this.mul(E,c[I]),v=0,I=0)):v=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new me(i)},M(me,J),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},2391:Fe=>{function Y(p,t){if(!p)throw new Error(t||"Assertion failed")}Fe.exports=Y,Y.equal=function(t,e,f){if(t!=e)throw new Error(f||"Assertion failed: "+t+" != "+e)}},8195:(Fe,Y)=>{"use strict";var p=Y;function e(M){return 1===M.length?"0"+M:M}function f(M){for(var a="",b=0;b>8,A=255&P;h?b.push(h,A):b.push(A)}return b},p.zero2=e,p.toHex=f,p.encode=function(a,b){return"hex"===b?f(a):a}},5768:(Fe,Y,p)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var t=p(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(Y,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(Fe,Y,p)=>{"use strict";var t=p(7977);Y.certificate=p(2390);var e=t.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())});Y.RSAPrivateKey=e;var f=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Y.RSAPublicKey=f;var M=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});Y.PublicKey=M;var a=t.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())}),b=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});Y.PrivateKey=b;var d=t.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())});Y.EncryptedPrivateKey=d;var P=t.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())});Y.DSAPrivateKey=P,Y.DSAparam=t.define("DSAparam",function(){this.int()});var h=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(A),this.key("publicKey").optional().explicit(1).bitstr())});Y.ECPrivateKey=h;var A=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Y.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Fe,Y,p)=>{"use strict";var t=p(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),f=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),M=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(M),this.key("subjectPublicKey").bitstr())}),b=t.define("RelativeDistinguishedName",function(){this.setof(f)}),d=t.define("RDNSequence",function(){this.seqof(b)}),P=t.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),h=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),A=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),w=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(M),this.key("issuer").use(P),this.key("validity").use(h),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(A).optional())}),D=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(M),this.key("signatureValue").bitstr())});Fe.exports=D},5269:(Fe,Y,p)=>{var t=/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,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,f=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,M=p(347),a=p(4330),b=p(3502).Buffer;Fe.exports=function(d,P){var w,h=d.toString(),A=h.match(t);if(A){var L="aes"+A[1],k=b.from(A[2],"hex"),S=b.from(A[3].replace(/[\r\n]/g,""),"base64"),U=M(P,k.slice(0,8),parseInt(A[1],10)).key,Z=[],j=a.createDecipheriv(L,U,k);Z.push(j.update(S)),Z.push(j.final()),w=b.concat(Z)}else{var D=h.match(f);w=b.from(D[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(e)[1],data:w}}},2772:(Fe,Y,p)=>{var t=p(2999),e=p(2562),f=p(5269),M=p(4330),a=p(9357),b=p(3502).Buffer;function d(h){var A;"object"==typeof h&&!b.isBuffer(h)&&(A=h.passphrase,h=h.key),"string"==typeof h&&(h=b.from(h));var k,S,w=f(h,A),D=w.tag,L=w.data;switch(D){case"CERTIFICATE":S=t.certificate.decode(L,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(S||(S=t.PublicKey.decode(L,"der")),k=S.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(S.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return S.subjectPrivateKey=S.subjectPublicKey,{type:"ec",data:S};case"1.2.840.10040.4.1":return S.algorithm.params.pub_key=t.DSAparam.decode(S.subjectPublicKey.data,"der"),{type:"dsa",data:S.algorithm.params};default:throw new Error("unknown key id "+k)}case"ENCRYPTED PRIVATE KEY":L=function P(h,A){var w=h.algorithm.decrypt.kde.kdeparams.salt,D=parseInt(h.algorithm.decrypt.kde.kdeparams.iters.toString(),10),L=e[h.algorithm.decrypt.cipher.algo.join(".")],k=h.algorithm.decrypt.cipher.iv,S=h.subjectPrivateKey,U=parseInt(L.split("-")[1],10)/8,Z=a.pbkdf2Sync(A,w,D,U,"sha1"),j=M.createDecipheriv(L,Z,k),ne=[];return ne.push(j.update(S)),ne.push(j.final()),b.concat(ne)}(L=t.EncryptedPrivateKey.decode(L,"der"),A);case"PRIVATE KEY":switch(k=(S=t.PrivateKey.decode(L,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(S.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:S.algorithm.curve,privateKey:t.ECPrivateKey.decode(S.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return S.algorithm.params.priv_key=t.DSAparam.decode(S.subjectPrivateKey,"der"),{type:"dsa",params:S.algorithm.params};default:throw new Error("unknown key id "+k)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(L,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(L,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(L,"der")};case"EC PRIVATE KEY":return{curve:(L=t.ECPrivateKey.decode(L,"der")).parameters.value,privateKey:L.privateKey};default:throw new Error("unknown key type "+D)}}Fe.exports=d,d.signature=t.signature},9357:(Fe,Y,p)=>{Y.pbkdf2=p(415),Y.pbkdf2Sync=p(7472)},415:(Fe,Y,p)=>{var b,w,t=p(3502).Buffer,e=p(2697),f=p(8867),M=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"},h=[];function D(){return w||(w=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function L(S,U,Z,j,ne){return d.importKey("raw",S,{name:"PBKDF2"},!1,["deriveBits"]).then(function(X){return d.deriveBits({name:"PBKDF2",salt:U,iterations:Z,hash:{name:ne}},X,j<<3)}).then(function(X){return t.from(X)})}Fe.exports=function(S,U,Z,j,ne,X){"function"==typeof ne&&(X=ne,ne=void 0);var de=P[(ne=ne||"sha1").toLowerCase()];if(de&&"function"==typeof global.Promise){if(e(Z,j),S=a(S,f,"Password"),U=a(U,f,"Salt"),"function"!=typeof X)throw new Error("No callback provided to pbkdf2");!function k(S,U){S.then(function(Z){D()(function(){U(null,Z)})},function(Z){D()(function(){U(Z)})})}(function A(S){if(global.process&&!global.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[S])return h[S];var U=L(b=b||t.alloc(8),b,10,128,S).then(function(){return!0}).catch(function(){return!1});return h[S]=U,U}(de).then(function(ee){return ee?L(S,U,Z,j,de):M(S,U,Z,j,ne)}),X)}else D()(function(){var ee;try{ee=M(S,U,Z,j,ne)}catch(te){return X(te)}X(null,ee)})}},8867:Fe=>{var Y;Y=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",Fe.exports=Y},2697:Fe=>{var Y=Math.pow(2,30)-1;Fe.exports=function(p,t){if("number"!=typeof p)throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>Y||t!=t)throw new TypeError("Bad key length")}},7472:(Fe,Y,p)=>{var t=p(5640),e=p(5634),f=p(5244),M=p(3502).Buffer,a=p(2697),b=p(8867),d=p(4566),P=M.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function A(L,k,S){var U=function w(L){return"rmd160"===L||"ripemd160"===L?function S(U){return(new e).update(U).digest()}:"md5"===L?t:function k(U){return f(L).update(U).digest()}}(L),Z="sha512"===L||"sha384"===L?128:64;k.length>Z?k=U(k):k.length{var t=p(3502).Buffer;Fe.exports=function(e,f,M){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,f);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(M+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Fe,Y,p)=>{Y.publicEncrypt=p(6562),Y.privateDecrypt=p(6705),Y.privateEncrypt=function(e,f){return Y.publicEncrypt(e,f,!0)},Y.publicDecrypt=function(e,f){return Y.privateDecrypt(e,f,!0)}},6945:(Fe,Y,p)=>{var t=p(6386),e=p(3502).Buffer;function f(M){var a=e.allocUnsafe(4);return a.writeUInt32BE(M,0),a}Fe.exports=function(M,a){for(var P,b=e.alloc(0),d=0;b.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,_=Math.min(x.length,r),E=i;E<_;E++){var I=x.charCodeAt(E)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[_]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===u)for(c=0,_=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(i,r,c)<<_,this.words[E]|=67108863&I,_>=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(_-=18,this.words[E+=1]|=I>>>26):_+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,_=1;_<=67108863;_*=r)c++;c--,_=_/r|0;for(var E=i.length-u,I=E%c,v=Math.min(E,E-I)+u,n=0,C=u;C1&&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 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"],w=[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],D=[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,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],_=0|i.words[0],E=c*_,v=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&v,N=Math.min(n,i.length-1),z=Math.max(0,n-x.length+1);z<=N;z++)C+=(E=(c=0|x.words[n-z|0])*(_=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,v=0|C}return 0!==v?r.words[n]=0|v:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,_=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-v.length]+v+u:v+u,(c+=2)>=26&&(c-=26,E--)}for(0!==_&&(u=_.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],C=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(C).toString(i);u=(B=B.idivn(C)).isZero()?N+u:A[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),_=u||Math.max(1,c);f(c<=_,"byte array longer than desired length"),f(_>0,"Requested array length <= 0"),this.strip();var v,n,E="le"===r,I=new i(_),C=this.clone();if(E){for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[n]=v;for(;n<_;n++)I[n]=0}else{for(n=0;n<_-c;n++)I[n]=0;for(n=0;!C.isZero();n++)v=C.andln(255),C.iushrn(8),I[_-n-1]=v}return I},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var _=0,E=0;E>>26;for(;0!==_&&E>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,_=i):(c=i,_=this);for(var E=0,I=0;I<_.length;I++)E=(r=(0|c.words[I])-(0|_.words[I])+E)>>26,this.words[I]=67108863&r;for(;0!==E&&I>26,this.words[I]=67108863&r;if(0===E&&I>>13,oe=0|c[1],ge=8191&oe,be=oe>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,De=0|c[4],lt=8191&De,Ie=De>>>13,Ae=0|c[5],se=8191&Ae,Te=Ae>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|_[0],xt=8191&ui,Nt=ui>>>13,gt=0|_[1],et=8191>,vt=gt>>>13,$t=0|_[2],jt=8191&$t,Pe=$t>>>13,Oe=0|_[3],le=8191&Oe,xe=Oe>>>13,ht=0|_[4],ft=8191&ht,Ht=ht>>>13,it=0|_[5],Ne=8191&it,tt=it>>>13,Je=0|_[6],Se=8191&Je,Ue=Je>>>13,rt=0|_[7],at=8191&rt,yt=rt>>>13,gi=0|_[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|_[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(I+(v=Math.imul(N,xt))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(z,xt)|0))<<13)|0;I=((C=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,v=Math.imul(ge,xt),n=(n=Math.imul(ge,Nt))+Math.imul(be,xt)|0,C=Math.imul(be,Nt);var Wi=(I+(v=v+Math.imul(N,et)|0)|0)+((8191&(n=(n=n+Math.imul(N,vt)|0)+Math.imul(z,et)|0))<<13)|0;I=((C=C+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,v=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,C=Math.imul(Q,Nt),v=v+Math.imul(ge,et)|0,n=(n=n+Math.imul(ge,vt)|0)+Math.imul(be,et)|0,C=C+Math.imul(be,vt)|0;var Gi=(I+(v=v+Math.imul(N,jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;I=((C=C+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,v=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,C=Math.imul(F,Nt),v=v+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,C=C+Math.imul(Q,vt)|0,v=v+Math.imul(ge,jt)|0,n=(n=n+Math.imul(ge,Pe)|0)+Math.imul(be,jt)|0,C=C+Math.imul(be,Pe)|0;var Yi=(I+(v=v+Math.imul(N,le)|0)|0)+((8191&(n=(n=n+Math.imul(N,xe)|0)+Math.imul(z,le)|0))<<13)|0;I=((C=C+Math.imul(z,xe)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,v=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,C=Math.imul(Ie,Nt),v=v+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,C=C+Math.imul(F,vt)|0,v=v+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,C=C+Math.imul(Q,Pe)|0,v=v+Math.imul(ge,le)|0,n=(n=n+Math.imul(ge,xe)|0)+Math.imul(be,le)|0,C=C+Math.imul(be,xe)|0;var ze=(I+(v=v+Math.imul(N,ft)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;I=((C=C+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,v=Math.imul(se,xt),n=(n=Math.imul(se,Nt))+Math.imul(Te,xt)|0,C=Math.imul(Te,Nt),v=v+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,C=C+Math.imul(Ie,vt)|0,v=v+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,C=C+Math.imul(F,Pe)|0,v=v+Math.imul(we,le)|0,n=(n=n+Math.imul(we,xe)|0)+Math.imul(Q,le)|0,C=C+Math.imul(Q,xe)|0,v=v+Math.imul(ge,ft)|0,n=(n=n+Math.imul(ge,Ht)|0)+Math.imul(be,ft)|0,C=C+Math.imul(be,Ht)|0;var Lt=(I+(v=v+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;I=((C=C+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,C=Math.imul($,Nt),v=v+Math.imul(se,et)|0,n=(n=n+Math.imul(se,vt)|0)+Math.imul(Te,et)|0,C=C+Math.imul(Te,vt)|0,v=v+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,C=C+Math.imul(Ie,Pe)|0,v=v+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,xe)|0)+Math.imul(F,le)|0,C=C+Math.imul(F,xe)|0,v=v+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,C=C+Math.imul(Q,Ht)|0,v=v+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(be,Ne)|0,C=C+Math.imul(be,tt)|0;var fe=(I+(v=v+Math.imul(N,Se)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;I=((C=C+Math.imul(z,Ue)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,v=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,C=Math.imul(Le,Nt),v=v+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,C=C+Math.imul($,vt)|0,v=v+Math.imul(se,jt)|0,n=(n=n+Math.imul(se,Pe)|0)+Math.imul(Te,jt)|0,C=C+Math.imul(Te,Pe)|0,v=v+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,xe)|0)+Math.imul(Ie,le)|0,C=C+Math.imul(Ie,xe)|0,v=v+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,C=C+Math.imul(F,Ht)|0,v=v+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,C=C+Math.imul(Q,tt)|0,v=v+Math.imul(ge,Se)|0,n=(n=n+Math.imul(ge,Ue)|0)+Math.imul(be,Se)|0,C=C+Math.imul(be,Ue)|0;var je=(I+(v=v+Math.imul(N,at)|0)|0)+((8191&(n=(n=n+Math.imul(N,yt)|0)+Math.imul(z,at)|0))<<13)|0;I=((C=C+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,v=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,C=Math.imul(Dt,Nt),v=v+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,C=C+Math.imul($,Pe)|0,v=v+Math.imul(se,le)|0,n=(n=n+Math.imul(se,xe)|0)+Math.imul(Te,le)|0,C=C+Math.imul(Te,xe)|0,v=v+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,C=C+Math.imul(Ie,Ht)|0,v=v+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,C=C+Math.imul(F,tt)|0,v=v+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,C=C+Math.imul(Q,Ue)|0,v=v+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,yt)|0)+Math.imul(be,at)|0,C=C+Math.imul(be,yt)|0;var Ct=(I+(v=v+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;I=((C=C+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,v=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,C=Math.imul(Gt,Nt),v=v+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,C=C+Math.imul(Dt,vt)|0,v=v+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,C=C+Math.imul(Le,Pe)|0,v=v+Math.imul(W,le)|0,n=(n=n+Math.imul(W,xe)|0)+Math.imul($,le)|0,C=C+Math.imul($,xe)|0,v=v+Math.imul(se,ft)|0,n=(n=n+Math.imul(se,Ht)|0)+Math.imul(Te,ft)|0,C=C+Math.imul(Te,Ht)|0,v=v+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,C=C+Math.imul(Ie,tt)|0,v=v+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,C=C+Math.imul(F,Ue)|0,v=v+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,C=C+Math.imul(Q,yt)|0,v=v+Math.imul(ge,Qt)|0,n=(n=n+Math.imul(ge,Jt)|0)+Math.imul(be,Qt)|0,C=C+Math.imul(be,Jt)|0;var ie=(I+(v=v+Math.imul(N,fi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(z,fi)|0))<<13)|0;I=((C=C+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,v=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,C=Math.imul(Gt,vt),v=v+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,C=C+Math.imul(Dt,Pe)|0,v=v+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,xe)|0)+Math.imul(Le,le)|0,C=C+Math.imul(Le,xe)|0,v=v+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,C=C+Math.imul($,Ht)|0,v=v+Math.imul(se,Ne)|0,n=(n=n+Math.imul(se,tt)|0)+Math.imul(Te,Ne)|0,C=C+Math.imul(Te,tt)|0,v=v+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,C=C+Math.imul(Ie,Ue)|0,v=v+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,C=C+Math.imul(F,yt)|0,v=v+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,C=C+Math.imul(Q,Jt)|0;var qe=(I+(v=v+Math.imul(ge,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ge,ai)|0)+Math.imul(be,fi)|0))<<13)|0;I=((C=C+Math.imul(be,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,v=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,C=Math.imul(Gt,Pe),v=v+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,xe)|0)+Math.imul(Dt,le)|0,C=C+Math.imul(Dt,xe)|0,v=v+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,C=C+Math.imul(Le,Ht)|0,v=v+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,C=C+Math.imul($,tt)|0,v=v+Math.imul(se,Se)|0,n=(n=n+Math.imul(se,Ue)|0)+Math.imul(Te,Se)|0,C=C+Math.imul(Te,Ue)|0,v=v+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,C=C+Math.imul(Ie,yt)|0,v=v+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,C=C+Math.imul(F,Jt)|0;var Mt=(I+(v=v+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;I=((C=C+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(Yt,le),n=(n=Math.imul(Yt,xe))+Math.imul(Gt,le)|0,C=Math.imul(Gt,xe),v=v+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,C=C+Math.imul(Dt,Ht)|0,v=v+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,C=C+Math.imul(Le,tt)|0,v=v+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,C=C+Math.imul($,Ue)|0,v=v+Math.imul(se,at)|0,n=(n=n+Math.imul(se,yt)|0)+Math.imul(Te,at)|0,C=C+Math.imul(Te,yt)|0,v=v+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,C=C+Math.imul(Ie,Jt)|0;var Vt=(I+(v=v+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;I=((C=C+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,v=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,C=Math.imul(Gt,Ht),v=v+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,C=C+Math.imul(Dt,tt)|0,v=v+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,C=C+Math.imul(Le,Ue)|0,v=v+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,C=C+Math.imul($,yt)|0,v=v+Math.imul(se,Qt)|0,n=(n=n+Math.imul(se,Jt)|0)+Math.imul(Te,Qt)|0,C=C+Math.imul(Te,Jt)|0;var Mi=(I+(v=v+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;I=((C=C+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,v=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,C=Math.imul(Gt,tt),v=v+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,C=C+Math.imul(Dt,Ue)|0,v=v+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,C=C+Math.imul(Le,yt)|0,v=v+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,C=C+Math.imul($,Jt)|0;var Ei=(I+(v=v+Math.imul(se,fi)|0)|0)+((8191&(n=(n=n+Math.imul(se,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;I=((C=C+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,v=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,C=Math.imul(Gt,Ue),v=v+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,C=C+Math.imul(Dt,yt)|0,v=v+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,C=C+Math.imul(Le,Jt)|0;var en=(I+(v=v+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;I=((C=C+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,v=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,C=Math.imul(Gt,yt),v=v+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,C=C+Math.imul(Dt,Jt)|0;var ji=(I+(v=v+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;I=((C=C+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,v=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,C=Math.imul(Gt,Jt);var Kt=(I+(v=v+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;I=((C=C+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(I+(v=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return I=((C=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=fe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==I&&(E[19]=I,u.length++),u};function Z(x,i,r){return(new j).mulp(x,i,r)}function j(x,i){this.x=x,this.y=i}Math.imul||(S=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?S(this,i,r):c<63?k(this,i,r):c<1024?function U(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,_=0;_>>26)|0)>>>26,E&=67108863}r.words[_]=I,u=E,E=c}return 0!==u?r.words[_]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,_,E){for(var I=0;I>>=1)_++;return 1<<_+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c>>=13),_>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=_>>>26,this.words[u]=67108863&_}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function L(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var _,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(_=0;_>>26-r}E&&(this.words[_]=E,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_=0),c=r?(r-r%26)/26:0;var _=i%26,E=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,v=u;if(c-=E,c=Math.max(0,c),v){for(var n=0;nE)for(this.length-=E,n=0;n=0&&(0!==C||n>=c);n--){var B=0|this.words[n];this.words[n]=C<<26-_|B>>>_,C=B&I}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(v/67108864|0),this.words[_+u]=67108863&E}for(;_>26,this.words[_+u]=67108863&E;if(0===I)return this.strip();for(f(-1===I),I=0,_=0;_>26,this.words[_]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),_=i,E=0|_.words[_.length-1];0!=(u=26-this._countBits(E))&&(_=_.ushln(u),c.iushln(u),E=0|_.words[_.length-1]);var n,v=c.length-_.length;if("mod"!==r){(n=new a(null)).length=v+1,n.words=new Array(n.length);for(var C=0;C=0;N--){var z=67108864*(0|c.words[_.length+N])+(0|c.words[_.length+N-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(_,z,N);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(_,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:c,mod:_}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(_=E.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:E.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,_,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),_=i.andln(1),E=u.cmp(c);return E<0||1===_&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=new a(0),I=new a(1),v=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++v;for(var n=u.clone(),C=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||_.isOdd())&&(c.iadd(n),_.isub(C)),c.iushrn(1),_.iushrn(1);for(var z=0,oe=1;0==(u.words[0]&oe)&&z<26;++z,oe<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||I.isOdd())&&(E.iadd(n),I.isub(C)),E.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),_.isub(I)):(u.isub(r),E.isub(c),I.isub(_))}return{a:E,b:I,gcd:u.iushln(v)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),_=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,v=1;0==(r.words[0]&v)&&I<26;++I,v<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,C=1;0==(u.words[0]&C)&&n<26;++n,C<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(E),_.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(_)):(u.isub(r),_.isub(c))}return(B=0===r.cmpn(1)?c:_).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=r.cmp(u);if(_<0){var E=r;r=u,u=E}else if(0===_||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=I&=67108863}return 0!==_&&(this.words[E]=_,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],_=0|i.words[u];if(c!==_){c<_?r=-1:c>_&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(x,i){this.name=x,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(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)}X.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),_=0;_>>22,E=I}i.words[_-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=_,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),_=0;!c.isZero()&&0===c.andln(1);)_++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),I=E.redNeg(),v=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,v).cmp(I);)n.redIAdd(I);for(var C=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),z=_;0!==N.cmp(E);){for(var oe=N,ge=0;0!==oe.cmp(E);ge++)oe=oe.redSqr();f(ge=0;_--){for(var C=r.words[_],B=n-1;B>=0;B--){var N=C>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==N||0!==I?(I<<=1,I|=N,(4==++v||0===_&&0===B)&&(E=this.mul(E,c[I]),v=0,I=0)):v=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new me(i)},M(me,J),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(c).iushrn(this.shift),E=_;return _.cmp(this.m)>=0?E=_.isub(this.m):_.cmpn(0)<0&&(E=_.iadd(this.m)),E._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},6705:(Fe,Y,p)=>{var t=p(2772),e=p(6945),f=p(9401),M=p(2057),a=p(8466),b=p(6386),d=p(8651),P=p(3502).Buffer;Fe.exports=function(L,k,S){var U;U=L.padding?L.padding:S?1:4;var ne,Z=t(L),j=Z.modulus.byteLength();if(k.length>j||new M(k).cmp(Z.modulus)>=0)throw new Error("decryption error");ne=S?d(new M(k),Z):a(k,Z);var X=P.alloc(j-ne.length);if(ne=P.concat([X,ne],j),4===U)return function h(D,L){var k=D.modulus.byteLength(),S=b("sha1").update(P.alloc(0)).digest(),U=S.length;if(0!==L[0])throw new Error("decryption error");var Z=L.slice(1,U+1),j=L.slice(U+1),ne=f(Z,e(j,U)),X=f(j,e(ne,k-U-1));if(function w(D,L){D=P.from(D),L=P.from(L);var k=0,S=D.length;D.length!==L.length&&(k++,S=Math.min(D.length,L.length));for(var U=-1;++U=L.length){Z++;break}var j=L.slice(2,U-1);if(("0002"!==S.toString("hex")&&!k||"0001"!==S.toString("hex")&&k)&&Z++,j.length<8&&Z++,Z)throw new Error("decryption error");return L.slice(U)}(0,ne,S);if(3===U)return ne;throw new Error("unknown padding")}},6562:(Fe,Y,p)=>{var t=p(2772),e=p(3753),f=p(6386),M=p(6945),a=p(9401),b=p(2057),d=p(8651),P=p(8466),h=p(3502).Buffer;Fe.exports=function(k,S,U){var Z;Z=k.padding?k.padding:U?1:4;var ne,j=t(k);if(4===Z)ne=function A(L,k){var S=L.modulus.byteLength(),U=k.length,Z=f("sha1").update(h.alloc(0)).digest(),j=Z.length,ne=2*j;if(U>S-ne-2)throw new Error("message too long");var X=h.alloc(S-U-ne-2),de=S-j-1,ee=e(j),te=a(h.concat([Z,X,h.alloc(1,1),k],de),M(ee,de)),ce=a(ee,M(te,j));return new b(h.concat([h.alloc(1),ce,te],S))}(j,S);else if(1===Z)ne=function w(L,k,S){var j,U=k.length,Z=L.modulus.byteLength();if(U>Z-11)throw new Error("message too long");return j=S?h.alloc(Z-U-3,255):function D(L){for(var j,k=h.allocUnsafe(L),S=0,U=e(2*L),Z=0;S=0)throw new Error("data too long for modulus")}return U?P(ne,j):d(ne,j)}},8651:(Fe,Y,p)=>{var t=p(2057),e=p(3502).Buffer;Fe.exports=function f(M,a){return e.from(M.toRed(t.mont(a.modulus)).redPow(new t(a.publicExponent)).fromRed().toArray())}},9401:Fe=>{Fe.exports=function(p,t){for(var e=p.length,f=-1;++f{const t=p(8695),e=p(1465),f=p(3210),M=p(2334);function a(b,d,P,h,A){const w=[].slice.call(arguments,1),D=w.length,L="function"==typeof w[D-1];if(!L&&!t())throw new Error("Callback required as last argument");if(!L){if(D<1)throw new Error("Too few arguments provided");return 1===D?(P=d,d=h=void 0):2===D&&!d.getContext&&(h=P,P=d,d=void 0),new Promise(function(k,S){try{const U=e.create(P,h);k(b(U,d,h))}catch(U){S(U)}})}if(D<2)throw new Error("Too few arguments provided");2===D?(A=P,P=d,d=h=void 0):3===D&&(d.getContext&&void 0===A?(A=h,h=void 0):(A=h,h=P,P=d,d=void 0));try{const k=e.create(P,h);A(null,b(k,d,h))}catch(k){A(k)}}Y.create=e.create,Y.toCanvas=a.bind(null,f.render),Y.toDataURL=a.bind(null,f.renderToDataURL),Y.toString=a.bind(null,function(b,d,P){return M.render(b,P)})},8695:Fe=>{Fe.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Fe,Y,p)=>{const t=p(4792).getSymbolSize;Y.getRowColCoords=function(f){if(1===f)return[];const M=Math.floor(f/7)+2,a=t(f),b=145===a?26:2*Math.ceil((a-13)/(2*M-2)),d=[a-7];for(let P=1;P{const t=p(4016),e=["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 f(M){this.mode=t.ALPHANUMERIC,this.data=M}f.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(a){let b;for(b=0;b+2<=this.data.length;b+=2){let d=45*e.indexOf(this.data[b]);d+=e.indexOf(this.data[b+1]),a.put(d,11)}this.data.length%2&&a.put(e.indexOf(this.data[b]),6)},Fe.exports=f},2118:Fe=>{function Y(){this.buffer=[],this.length=0}Y.prototype={get:function(p){const t=Math.floor(p/8);return 1==(this.buffer[t]>>>7-p%8&1)},put:function(p,t){for(let e=0;e>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),p&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Fe.exports=Y},4425:Fe=>{function Y(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)}Y.prototype.set=function(p,t,e,f){const M=p*this.size+t;this.data[M]=e,f&&(this.reservedBit[M]=!0)},Y.prototype.get=function(p,t){return this.data[p*this.size+t]},Y.prototype.xor=function(p,t,e){this.data[p*this.size+t]^=e},Y.prototype.isReserved=function(p,t){return this.reservedBit[p*this.size+t]},Fe.exports=Y},5663:(Fe,Y,p)=>{const t=p(8419),e=p(4016);function f(M){this.mode=e.BYTE,"string"==typeof M&&(M=t(M)),this.data=new Uint8Array(M)}f.getBitsLength=function(a){return 8*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){for(let a=0,b=this.data.length;a{const t=p(2259),e=[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],f=[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];Y.getBlocksCount=function(a,b){switch(b){case t.L:return e[4*(a-1)+0];case t.M:return e[4*(a-1)+1];case t.Q:return e[4*(a-1)+2];case t.H:return e[4*(a-1)+3];default:return}},Y.getTotalCodewordsCount=function(a,b){switch(b){case t.L:return f[4*(a-1)+0];case t.M:return f[4*(a-1)+1];case t.Q:return f[4*(a-1)+2];case t.H:return f[4*(a-1)+3];default:return}}},2259:(Fe,Y)=>{Y.L={bit:1},Y.M={bit:0},Y.Q={bit:3},Y.H={bit:2},Y.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},Y.from=function(e,f){if(Y.isValid(e))return e;try{return function p(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Y.L;case"m":case"medium":return Y.M;case"q":case"quartile":return Y.Q;case"h":case"high":return Y.H;default:throw new Error("Unknown EC Level: "+t)}}(e)}catch(M){return f}}},3114:(Fe,Y,p)=>{const t=p(4792).getSymbolSize;Y.getPositions=function(M){const a=t(M);return[[0,0],[a-7,0],[0,a-7]]}},7078:(Fe,Y,p)=>{const t=p(4792),M=t.getBCHDigit(1335);Y.getEncodedBits=function(b,d){const P=b.bit<<3|d;let h=P<<10;for(;t.getBCHDigit(h)-M>=0;)h^=1335<{const p=new Uint8Array(512),t=new Uint8Array(256);(function(){let f=1;for(let M=0;M<255;M++)p[M]=f,t[f]=M,f<<=1,256&f&&(f^=285);for(let M=255;M<512;M++)p[M]=p[M-255]})(),Y.log=function(f){if(f<1)throw new Error("log("+f+")");return t[f]},Y.exp=function(f){return p[f]},Y.mul=function(f,M){return 0===f||0===M?0:p[t[f]+t[M]]}},4388:(Fe,Y,p)=>{const t=p(4016),e=p(4792);function f(M){this.mode=t.KANJI,this.data=M}f.getBitsLength=function(a){return 13*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){let a;for(a=0;a=33088&&b<=40956)b-=33088;else{if(!(b>=57408&&b<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");b-=49472}b=192*(b>>>8&255)+(255&b),M.put(b,13)}},Fe.exports=f},3667:(Fe,Y)=>{Y.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,f,M){switch(e){case Y.Patterns.PATTERN000:return(f+M)%2==0;case Y.Patterns.PATTERN001:return f%2==0;case Y.Patterns.PATTERN010:return M%3==0;case Y.Patterns.PATTERN011:return(f+M)%3==0;case Y.Patterns.PATTERN100:return(Math.floor(f/2)+Math.floor(M/3))%2==0;case Y.Patterns.PATTERN101:return f*M%2+f*M%3==0;case Y.Patterns.PATTERN110:return(f*M%2+f*M%3)%2==0;case Y.Patterns.PATTERN111:return(f*M%3+(f+M)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}Y.isValid=function(f){return null!=f&&""!==f&&!isNaN(f)&&f>=0&&f<=7},Y.from=function(f){return Y.isValid(f)?parseInt(f,10):void 0},Y.getPenaltyN1=function(f){const M=f.size;let a=0,b=0,d=0,P=null,h=null;for(let A=0;A=5&&(a+=b-5+3),P=D,b=1),D=f.get(w,A),D===h?d++:(d>=5&&(a+=d-5+3),h=D,d=1)}b>=5&&(a+=b-5+3),d>=5&&(a+=d-5+3)}return a},Y.getPenaltyN2=function(f){const M=f.size;let a=0;for(let b=0;b=10&&(1488===b||93===b)&&a++,d=d<<1&2047|f.get(h,P),h>=10&&(1488===d||93===d)&&a++}return 40*a},Y.getPenaltyN4=function(f){let M=0;const a=f.data.length;for(let d=0;d{const t=p(4406),e=p(2699);Y.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Y.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Y.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Y.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Y.MIXED={bit:-1},Y.getCharCountIndicator=function(a,b){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(b))throw new Error("Invalid version: "+b);return b>=1&&b<10?a.ccBits[0]:b<27?a.ccBits[1]:a.ccBits[2]},Y.getBestModeForData=function(a){return e.testNumeric(a)?Y.NUMERIC:e.testAlphanumeric(a)?Y.ALPHANUMERIC:e.testKanji(a)?Y.KANJI:Y.BYTE},Y.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},Y.isValid=function(a){return a&&a.bit&&a.ccBits},Y.from=function(a,b){if(Y.isValid(a))return a;try{return function f(M){if("string"!=typeof M)throw new Error("Param is not a string");switch(M.toLowerCase()){case"numeric":return Y.NUMERIC;case"alphanumeric":return Y.ALPHANUMERIC;case"kanji":return Y.KANJI;case"byte":return Y.BYTE;default:throw new Error("Unknown mode: "+M)}}(a)}catch(d){return b}}},7783:(Fe,Y,p)=>{const t=p(4016);function e(f){this.mode=t.NUMERIC,this.data=f.toString()}e.getBitsLength=function(M){return 10*Math.floor(M/3)+(M%3?M%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(M){let a,b,d;for(a=0;a+3<=this.data.length;a+=3)b=this.data.substr(a,3),d=parseInt(b,10),M.put(d,10);const P=this.data.length-a;P>0&&(b=this.data.substr(a),d=parseInt(b,10),M.put(d,3*P+1))},Fe.exports=e},1106:(Fe,Y,p)=>{const t=p(5339);Y.mul=function(f,M){const a=new Uint8Array(f.length+M.length-1);for(let b=0;b=0;){const b=a[0];for(let P=0;P{const t=p(4792),e=p(2259),f=p(2118),M=p(4425),a=p(6221),b=p(3114),d=p(3667),P=p(4655),h=p(2636),A=p(2088),w=p(7078),D=p(4016),L=p(2033);function j(te,ce,J){const me=te.size,x=w.getEncodedBits(ce,J);let i,r;for(i=0;i<15;i++)r=1==(x>>i&1),te.set(i<6?i:i<8?i+1:me-15+i,8,r,!0),te.set(8,i<8?me-i-1:i<9?15-i-1+1:15-i-1,r,!0);te.set(me-8,8,1,!0)}function ee(te,ce,J,me){let x;if(Array.isArray(te))x=L.fromArray(te);else{if("string"!=typeof te)throw new Error("Invalid data");{let _=ce;if(!_){const E=L.rawSplit(te);_=A.getBestVersionForData(E,J)}x=L.fromString(te,_||40)}}const i=A.getBestVersionForData(x,J);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(ce){if(ce=0&&u<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===u||6===u)||u>=2&&u<=4&&c>=2&&c<=4,!0)}}(c,ce),function S(te){const ce=te.size;for(let J=8;J=7&&function Z(te,ce){const J=te.size,me=A.getEncodedBits(ce);let x,i,r;for(let u=0;u<18;u++)x=Math.floor(u/3),i=u%3+J-8-3,r=1==(me>>u&1),te.set(x,i,r,!0),te.set(i,x,r,!0)}(c,ce),function ne(te,ce){const J=te.size;let me=-1,x=J-1,i=7,r=0;for(let u=J-1;u>0;u-=2)for(6===u&&u--;;){for(let c=0;c<2;c++)if(!te.isReserved(x,u-c)){let _=!1;r>>i&1)),te.set(x,u-c,_),i--,-1===i&&(r++,i=7)}if(x+=me,x<0||J<=x){x-=me,me=-me;break}}}(c,r),isNaN(me)&&(me=d.getBestMask(c,j.bind(null,c,J))),d.applyMask(me,c),j(c,J,me),{modules:c,version:ce,errorCorrectionLevel:J,maskPattern:me,segments:x}}Y.create=function(ce,J){if(void 0===ce||""===ce)throw new Error("No input text");let x,i,me=e.M;return void 0!==J&&(me=e.from(J.errorCorrectionLevel,e.M),x=A.from(J.version),i=d.from(J.maskPattern),J.toSJISFunc&&t.setToSJISFunction(J.toSJISFunc)),ee(ce,x,me,i)}},2636:(Fe,Y,p)=>{const t=p(1106);function e(f){this.genPoly=void 0,this.degree=f,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(M){this.degree=M,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(M){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(M.length+this.degree);a.set(M);const b=t.mod(a,this.genPoly),d=this.degree-b.length;if(d>0){const P=new Uint8Array(this.degree);return P.set(b,d),P}return b},Fe.exports=e},2699:(Fe,Y)=>{const p="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const f="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Y.KANJI=new RegExp(e,"g"),Y.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Y.BYTE=new RegExp(f,"g"),Y.NUMERIC=new RegExp(p,"g"),Y.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const M=new RegExp("^"+e+"$"),a=new RegExp("^"+p+"$"),b=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Y.testKanji=function(P){return M.test(P)},Y.testNumeric=function(P){return a.test(P)},Y.testAlphanumeric=function(P){return b.test(P)}},2033:(Fe,Y,p)=>{const t=p(4016),e=p(7783),f=p(2424),M=p(5663),a=p(4388),b=p(2699),d=p(4792),P=p(4901);function h(Z){return unescape(encodeURIComponent(Z)).length}function A(Z,j,ne){const X=[];let de;for(;null!==(de=Z.exec(ne));)X.push({data:de[0],index:de.index,mode:j,length:de[0].length});return X}function w(Z){const j=A(b.NUMERIC,t.NUMERIC,Z),ne=A(b.ALPHANUMERIC,t.ALPHANUMERIC,Z);let X,de;return d.isKanjiModeEnabled()?(X=A(b.BYTE,t.BYTE,Z),de=A(b.KANJI,t.KANJI,Z)):(X=A(b.BYTE_KANJI,t.BYTE,Z),de=[]),j.concat(ne,X,de).sort(function(te,ce){return te.index-ce.index}).map(function(te){return{data:te.data,mode:te.mode,length:te.length}})}function D(Z,j){switch(j){case t.NUMERIC:return e.getBitsLength(Z);case t.ALPHANUMERIC:return f.getBitsLength(Z);case t.KANJI:return a.getBitsLength(Z);case t.BYTE:return M.getBitsLength(Z)}}function U(Z,j){let ne;const X=t.getBestModeForData(Z);if(ne=t.from(j,X),ne!==t.BYTE&&ne.bit=0?j[j.length-1]:null;return X&&X.mode===ne.mode?(j[j.length-1].data+=ne.data,j):(j.push(ne),j)},[])}(ce))},Y.rawSplit=function(j){return Y.fromArray(w(j,d.isKanjiModeEnabled()))}},4792:(Fe,Y)=>{let p;const t=[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];Y.getSymbolSize=function(f){if(!f)throw new Error('"version" cannot be null or undefined');if(f<1||f>40)throw new Error('"version" should be in range from 1 to 40');return 4*f+17},Y.getSymbolTotalCodewords=function(f){return t[f]},Y.getBCHDigit=function(e){let f=0;for(;0!==e;)f++,e>>>=1;return f},Y.setToSJISFunction=function(f){if("function"!=typeof f)throw new Error('"toSJISFunc" is not a valid function.');p=f},Y.isKanjiModeEnabled=function(){return void 0!==p},Y.toSJIS=function(f){return p(f)}},4406:(Fe,Y)=>{Y.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(Fe,Y,p)=>{const t=p(4792),e=p(4655),f=p(2259),M=p(4016),a=p(4406),d=t.getBCHDigit(7973);function h(D,L){return M.getCharCountIndicator(D,L)+4}function A(D,L){let k=0;return D.forEach(function(S){k+=h(S.mode,L)+S.getBitsLength()}),k}Y.from=function(L,k){return a.isValid(L)?parseInt(L,10):k},Y.getCapacity=function(L,k,S){if(!a.isValid(L))throw new Error("Invalid QR Code version");void 0===S&&(S=M.BYTE);const j=8*(t.getSymbolTotalCodewords(L)-e.getTotalCodewordsCount(L,k));if(S===M.MIXED)return j;const ne=j-h(S,L);switch(S){case M.NUMERIC:return Math.floor(ne/10*3);case M.ALPHANUMERIC:return Math.floor(ne/11*2);case M.KANJI:return Math.floor(ne/13);default:return Math.floor(ne/8)}},Y.getBestVersionForData=function(L,k){let S;const U=f.from(k,f.M);if(Array.isArray(L)){if(L.length>1)return function w(D,L){for(let k=1;k<=40;k++)if(A(D,k)<=Y.getCapacity(k,L,M.MIXED))return k}(L,U);if(0===L.length)return 1;S=L[0]}else S=L;return function P(D,L,k){for(let S=1;S<=40;S++)if(L<=Y.getCapacity(S,k,D))return S}(S.mode,S.getLength(),U)},Y.getEncodedBits=function(L){if(!a.isValid(L)||L<7)throw new Error("Invalid QR Code version");let k=L<<12;for(;t.getBCHDigit(k)-d>=0;)k^=7973<{const t=p(6355);Y.render=function(a,b,d){let P=d,h=b;void 0===P&&(!b||!b.getContext)&&(P=b,b=void 0),b||(h=function f(){try{return document.createElement("canvas")}catch(M){throw new Error("You need to specify a canvas element")}}()),P=t.getOptions(P);const A=t.getImageWidth(a.modules.size,P),w=h.getContext("2d"),D=w.createImageData(A,A);return t.qrToImageData(D.data,a,P),function e(M,a,b){M.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=b,a.width=b,a.style.height=b+"px",a.style.width=b+"px"}(w,h,A),w.putImageData(D,0,0),h},Y.renderToDataURL=function(a,b,d){let P=d;return void 0===P&&(!b||!b.getContext)&&(P=b,b=void 0),P||(P={}),Y.render(a,b,P).toDataURL(P.type||"image/png",(P.rendererOpts||{}).quality)}},2334:(Fe,Y,p)=>{const t=p(6355);function e(a,b){const d=a.a/255,P=b+'="'+a.hex+'"';return d<1?P+" "+b+'-opacity="'+d.toFixed(2).slice(1)+'"':P}function f(a,b,d){let P=a+b;return void 0!==d&&(P+=" "+d),P}Y.render=function(b,d,P){const h=t.getOptions(d),A=b.modules.size,w=b.modules.data,D=A+2*h.margin,L=h.color.light.a?"':"",k="0&&L>0&&a[D-1]||(P+=A?f("M",L+d,.5+k+d):f("m",h,0),h=0,A=!1),L+1',Z=''+L+k+"\n";return"function"==typeof P&&P(null,Z),Z}},6355:(Fe,Y)=>{function p(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(M){return[M,M]}))),6===e.length&&e.push("F","F");const f=parseInt(e.join(""),16);return{r:f>>24&255,g:f>>16&255,b:f>>8&255,a:255&f,hex:"#"+e.slice(0,6).join("")}}Y.getOptions=function(e){e||(e={}),e.color||(e.color={});const M=e.width&&e.width>=21?e.width:void 0;return{width:M,scale:M?4:e.scale||4,margin:null==e.margin||e.margin<0?4:e.margin,color:{dark:p(e.color.dark||"#000000ff"),light:p(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},Y.getScale=function(e,f){return f.width&&f.width>=e+2*f.margin?f.width/(e+2*f.margin):f.scale},Y.getImageWidth=function(e,f){const M=Y.getScale(e,f);return Math.floor((e+2*f.margin)*M)},Y.qrToImageData=function(e,f,M){const a=f.modules.size,b=f.modules.data,d=Y.getScale(a,M),P=Math.floor((a+2*M.margin)*d),h=M.margin*d,A=[M.color.light,M.color.dark];for(let w=0;w=h&&D>=h&&w{"use strict";var t=65536,M=p(3502).Buffer,a=global.crypto||global.msCrypto;Fe.exports=a&&a.getRandomValues?function b(d,P){if(d>4294967295)throw new RangeError("requested too many random bytes");var h=M.allocUnsafe(d);if(d>0)if(d>t)for(var A=0;A{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=p(3502),f=p(3753),M=e.Buffer,a=e.kMaxLength,b=global.crypto||global.msCrypto,d=Math.pow(2,32)-1;function P(L,k){if("number"!=typeof L||L!=L)throw new TypeError("offset must be a number");if(L>d||L<0)throw new TypeError("offset must be a uint32");if(L>a||L>k)throw new RangeError("offset out of range")}function h(L,k,S){if("number"!=typeof L||L!=L)throw new TypeError("size must be a number");if(L>d||L<0)throw new TypeError("size must be a uint32");if(L+k>S||L>a)throw new RangeError("buffer too small")}function w(L,k,S,U){if(process.browser){var j=new Uint8Array(L.buffer,k,S);return b.getRandomValues(j),U?void process.nextTick(function(){U(null,L)}):L}if(!U)return f(S).copy(L,k),L;f(S,function(X,de){if(X)return U(X);de.copy(L,k),U(null,L)})}b&&b.getRandomValues||!process.browser?(Y.randomFill=function A(L,k,S,U){if(!(M.isBuffer(L)||L instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof k)U=k,k=0,S=L.length;else if("function"==typeof S)U=S,S=L.length-k;else if("function"!=typeof U)throw new TypeError('"cb" argument must be a function');return P(k,L.length),h(S,k,L.length),w(L,k,S,U)},Y.randomFillSync=function D(L,k,S){if(void 0===k&&(k=0),!(M.isBuffer(L)||L instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return P(k,L.length),void 0===S&&(S=L.length-k),h(S,k,L.length),w(L,k,S)}):(Y.randomFill=t,Y.randomFillSync=t)},891:Fe=>{"use strict";var p={};function t(b,d,P){P||(P=Error);var A=function(w){function D(L,k,S){return w.call(this,function h(w,D,L){return"string"==typeof d?d:d(w,D,L)}(L,k,S))||this}return function Y(b,d){b.prototype=Object.create(d.prototype),b.prototype.constructor=b,b.__proto__=d}(D,w),D}(P);A.prototype.name=P.name,A.prototype.code=b,p[b]=A}function e(b,d){if(Array.isArray(b)){var P=b.length;return b=b.map(function(h){return String(h)}),P>2?"one of ".concat(d," ").concat(b.slice(0,P-1).join(", "),", or ")+b[P-1]:2===P?"one of ".concat(d," ").concat(b[0]," or ").concat(b[1]):"of ".concat(d," ").concat(b[0])}return"of ".concat(d," ").concat(String(b))}t("ERR_INVALID_OPT_VALUE",function(b,d){return'The value "'+d+'" is invalid for option "'+b+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(b,d,P){var h,A;if("string"==typeof d&&function f(b,d,P){return b.substr(!P||P<0?0:+P,d.length)===d}(d,"not ")?(h="must not be",d=d.replace(/^not /,"")):h="must be",function M(b,d,P){return(void 0===P||P>b.length)&&(P=b.length),b.substring(P-d.length,P)===d}(b," argument"))A="The ".concat(b," ").concat(h," ").concat(e(d,"type"));else{var w=function a(b,d,P){return"number"!=typeof P&&(P=0),!(P+d.length>b.length)&&-1!==b.indexOf(d,P)}(b,".")?"property":"argument";A='The "'.concat(b,'" ').concat(w," ").concat(h," ").concat(e(d,"type"))}return A+". Received type ".concat(typeof P)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Fe.exports.q=p},1339:(Fe,Y,p)=>{"use strict";var t=Object.keys||function(A){var w=[];for(var D in A)w.push(D);return w};Fe.exports=d;var e=p(3154),f=p(520);p(3894)(d,e);for(var M=t(f.prototype),a=0;a{"use strict";Fe.exports=e;var t=p(6025);function e(f){if(!(this instanceof e))return new e(f);t.call(this,f)}p(3894)(e,t),e.prototype._transform=function(f,M,a){a(null,f)}},3154:(Fe,Y,p)=>{"use strict";var t;Fe.exports=x,x.ReadableState=me,p(9069);var A,f=function(De,lt){return De.listeners(lt).length},M=p(4970),a=p(3172).Buffer,b=global.Uint8Array||function(){},h=p(4616);A=h&&h.debuglog?h.debuglog("stream"):function(){};var X,de,ee,w=p(5019),D=p(1920),k=p(7102).getHighWaterMark,S=p(891).q,U=S.ERR_INVALID_ARG_TYPE,Z=S.ERR_STREAM_PUSH_AFTER_EOF,j=S.ERR_METHOD_NOT_IMPLEMENTED,ne=S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(x,M);var te=D.errorOrDestroy,ce=["error","close","destroy","pause","resume"];function me(F,De,lt){t=t||p(1339),"boolean"!=typeof lt&&(lt=De instanceof t),this.objectMode=!!(F=F||{}).objectMode,lt&&(this.objectMode=this.objectMode||!!F.readableObjectMode),this.highWaterMark=k(this,F,"readableHighWaterMark",lt),this.buffer=new w,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!==F.emitClose,this.autoDestroy=!!F.autoDestroy,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(X||(X=p(3054).s),this.decoder=new X(F.encoding),this.encoding=F.encoding)}function x(F){if(t=t||p(1339),!(this instanceof x))return new x(F);this._readableState=new me(F,this,this instanceof t),this.readable=!0,F&&("function"==typeof F.read&&(this._read=F.read),"function"==typeof F.destroy&&(this._destroy=F.destroy)),M.call(this)}function i(F,De,lt,Ie,Ae){A("readableAddChunk",De);var Te,se=F._readableState;if(null===De)se.reading=!1,function I(F,De){if(A("onEofChunk"),!De.ended){if(De.decoder){var lt=De.decoder.end();lt&<.length&&(De.buffer.push(lt),De.length+=De.objectMode?1:lt.length)}De.ended=!0,De.sync?v(F):(De.needReadable=!1,De.emittedReadable||(De.emittedReadable=!0,n(F)))}}(F,se);else if(Ae||(Te=function u(F,De){var lt;return!function P(F){return a.isBuffer(F)||F instanceof b}(De)&&"string"!=typeof De&&void 0!==De&&!F.objectMode&&(lt=new U("chunk",["string","Buffer","Uint8Array"],De)),lt}(se,De)),Te)te(F,Te);else if(se.objectMode||De&&De.length>0)if("string"!=typeof De&&!se.objectMode&&Object.getPrototypeOf(De)!==a.prototype&&(De=function d(F){return a.from(F)}(De)),Ie)se.endEmitted?te(F,new ne):r(F,se,De,!0);else if(se.ended)te(F,new Z);else{if(se.destroyed)return!1;se.reading=!1,se.decoder&&!lt?(De=se.decoder.write(De),se.objectMode||0!==De.length?r(F,se,De,!1):C(F,se)):r(F,se,De,!1)}else Ie||(se.reading=!1,C(F,se));return!se.ended&&(se.lengthDe.highWaterMark&&(De.highWaterMark=function _(F){return F>=c?F=c:(F--,F|=F>>>1,F|=F>>>2,F|=F>>>4,F|=F>>>8,F|=F>>>16,F++),F}(F)),F<=De.length?F:De.ended?De.length:(De.needReadable=!0,0))}function v(F){var De=F._readableState;A("emitReadable",De.needReadable,De.emittedReadable),De.needReadable=!1,De.emittedReadable||(A("emitReadable",De.flowing),De.emittedReadable=!0,process.nextTick(n,F))}function n(F){var De=F._readableState;A("emitReadable_",De.destroyed,De.length,De.ended),!De.destroyed&&(De.length||De.ended)&&(F.emit("readable"),De.emittedReadable=!1),De.needReadable=!De.flowing&&!De.ended&&De.length<=De.highWaterMark,Re(F)}function C(F,De){De.readingMore||(De.readingMore=!0,process.nextTick(B,F,De))}function B(F,De){for(;!De.reading&&!De.ended&&(De.length0,De.resumeScheduled&&!De.paused?De.flowing=!0:F.listenerCount("data")>0&&F.resume()}function oe(F){A("readable nexttick read 0"),F.read(0)}function be(F,De){A("resume",De.reading),De.reading||F.read(0),De.resumeScheduled=!1,F.emit("resume"),Re(F),De.flowing&&!De.reading&&F.read(0)}function Re(F){var De=F._readableState;for(A("flow",De.flowing);De.flowing&&null!==F.read(););}function we(F,De){return 0===De.length?null:(De.objectMode?lt=De.buffer.shift():!F||F>=De.length?(lt=De.decoder?De.buffer.join(""):1===De.buffer.length?De.buffer.first():De.buffer.concat(De.length),De.buffer.clear()):lt=De.buffer.consume(F,De.decoder),lt);var lt}function Q(F){var De=F._readableState;A("endReadable",De.endEmitted),De.endEmitted||(De.ended=!0,process.nextTick(Ge,De,F))}function Ge(F,De){if(A("endReadableNT",F.endEmitted,F.length),!F.endEmitted&&0===F.length&&(F.endEmitted=!0,De.readable=!1,De.emit("end"),F.autoDestroy)){var lt=De._writableState;(!lt||lt.autoDestroy&<.finished)&&De.destroy()}}function ve(F,De){for(var lt=0,Ie=F.length;lt=De.highWaterMark:De.length>0)||De.ended))return A("read: emitReadable",De.length,De.ended),0===De.length&&De.ended?Q(this):v(this),null;if(0===(F=E(F,De))&&De.ended)return 0===De.length&&Q(this),null;var Ae,Ie=De.needReadable;return A("need readable",Ie),(0===De.length||De.length-F0?we(F,De):null)?(De.needReadable=De.length<=De.highWaterMark,F=0):(De.length-=F,De.awaitDrain=0),0===De.length&&(De.ended||(De.needReadable=!0),lt!==F&&De.ended&&Q(this)),null!==Ae&&this.emit("data",Ae),Ae},x.prototype._read=function(F){te(this,new j("_read()"))},x.prototype.pipe=function(F,De){var lt=this,Ie=this._readableState;switch(Ie.pipesCount){case 0:Ie.pipes=F;break;case 1:Ie.pipes=[Ie.pipes,F];break;default:Ie.pipes.push(F)}Ie.pipesCount+=1,A("pipe count=%d opts=%j",Ie.pipesCount,De);var se=De&&!1===De.end||F===process.stdout||F===process.stderr?Dt:ye;function ye(){A("onend"),F.end()}Ie.endEmitted?process.nextTick(se):lt.once("end",se),F.on("unpipe",function Te(di,Yt){A("onunpipe"),di===lt&&Yt&&!1===Yt.hasUnpiped&&(Yt.hasUnpiped=!0,function ue(){A("cleanup"),F.removeListener("close",ct),F.removeListener("finish",ut),F.removeListener("drain",W),F.removeListener("error",Le),F.removeListener("unpipe",Te),lt.removeListener("end",ye),lt.removeListener("end",Dt),lt.removeListener("data",Ce),$=!0,Ie.awaitDrain&&(!F._writableState||F._writableState.needDrain)&&W()}())});var W=function N(F){return function(){var lt=F._readableState;A("pipeOnDrain",lt.awaitDrain),lt.awaitDrain&<.awaitDrain--,0===lt.awaitDrain&&f(F,"data")&&(lt.flowing=!0,Re(F))}}(lt);F.on("drain",W);var $=!1;function Ce(di){A("ondata");var Yt=F.write(di);A("dest.write",Yt),!1===Yt&&((1===Ie.pipesCount&&Ie.pipes===F||Ie.pipesCount>1&&-1!==ve(Ie.pipes,F))&&!$&&(A("false write response, pause",Ie.awaitDrain),Ie.awaitDrain++),lt.pause())}function Le(di){A("onerror",di),Dt(),F.removeListener("error",Le),0===f(F,"error")&&te(F,di)}function ct(){F.removeListener("finish",ut),Dt()}function ut(){A("onfinish"),F.removeListener("close",ct),Dt()}function Dt(){A("unpipe"),lt.unpipe(F)}return lt.on("data",Ce),function J(F,De,lt){if("function"==typeof F.prependListener)return F.prependListener(De,lt);F._events&&F._events[De]?Array.isArray(F._events[De])?F._events[De].unshift(lt):F._events[De]=[lt,F._events[De]]:F.on(De,lt)}(F,"error",Le),F.once("close",ct),F.once("finish",ut),F.emit("pipe",lt),Ie.flowing||(A("pipe resume"),lt.resume()),F},x.prototype.unpipe=function(F){var De=this._readableState,lt={hasUnpiped:!1};if(0===De.pipesCount)return this;if(1===De.pipesCount)return F&&F!==De.pipes||(F||(F=De.pipes),De.pipes=null,De.pipesCount=0,De.flowing=!1,F&&F.emit("unpipe",this,lt)),this;if(!F){var Ie=De.pipes,Ae=De.pipesCount;De.pipes=null,De.pipesCount=0,De.flowing=!1;for(var se=0;se0,!1!==Ie.flowing&&this.resume()):"readable"===F&&!Ie.endEmitted&&!Ie.readableListening&&(Ie.readableListening=Ie.needReadable=!0,Ie.flowing=!1,Ie.emittedReadable=!1,A("on readable",Ie.length,Ie.reading),Ie.length?v(this):Ie.reading||process.nextTick(oe,this)),lt},x.prototype.removeListener=function(F,De){var lt=M.prototype.removeListener.call(this,F,De);return"readable"===F&&process.nextTick(z,this),lt},x.prototype.removeAllListeners=function(F){var De=M.prototype.removeAllListeners.apply(this,arguments);return("readable"===F||void 0===F)&&process.nextTick(z,this),De},x.prototype.resume=function(){var F=this._readableState;return F.flowing||(A("resume"),F.flowing=!F.readableListening,function ge(F,De){De.resumeScheduled||(De.resumeScheduled=!0,process.nextTick(be,F,De))}(this,F)),F.paused=!1,this},x.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(F){var De=this,lt=this._readableState,Ie=!1;for(var Ae in F.on("end",function(){if(A("wrapped end"),lt.decoder&&!lt.ended){var Te=lt.decoder.end();Te&&Te.length&&De.push(Te)}De.push(null)}),F.on("data",function(Te){A("wrapped data"),lt.decoder&&(Te=lt.decoder.write(Te)),lt.objectMode&&null==Te||!(lt.objectMode||Te&&Te.length)||De.push(Te)||(Ie=!0,F.pause())}),F)void 0===this[Ae]&&"function"==typeof F[Ae]&&(this[Ae]=function(ye){return function(){return F[ye].apply(F,arguments)}}(Ae));for(var se=0;se{"use strict";Fe.exports=P;var t=p(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,f=t.ERR_MULTIPLE_CALLBACK,M=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=t.ERR_TRANSFORM_WITH_LENGTH_0,b=p(1339);function d(w,D){var L=this._transformState;L.transforming=!1;var k=L.writecb;if(null===k)return this.emit("error",new f);L.writechunk=null,L.writecb=null,null!=D&&this.push(D),k(w);var S=this._readableState;S.reading=!1,(S.needReadable||S.length{"use strict";function e(Re){var we=this;this.next=null,this.entry=null,this.finish=function(){!function be(Re,we,Q){var Ge=Re.entry;for(Re.entry=null;Ge;){var ve=Ge.callback;we.pendingcb--,ve(Q),Ge=Ge.next}we.corkedRequestsFree.next=Re}(we,Re)}}var f;Fe.exports=me,me.WritableState=ce;var J,M={deprecate:p(4364)},a=p(4970),b=p(3172).Buffer,d=global.Uint8Array||function(){},A=p(1920),D=p(7102).getHighWaterMark,L=p(891).q,k=L.ERR_INVALID_ARG_TYPE,S=L.ERR_METHOD_NOT_IMPLEMENTED,U=L.ERR_MULTIPLE_CALLBACK,Z=L.ERR_STREAM_CANNOT_PIPE,j=L.ERR_STREAM_DESTROYED,ne=L.ERR_STREAM_NULL_VALUES,X=L.ERR_STREAM_WRITE_AFTER_END,de=L.ERR_UNKNOWN_ENCODING,ee=A.errorOrDestroy;function te(){}function ce(Re,we,Q){f=f||p(1339),"boolean"!=typeof Q&&(Q=we instanceof f),this.objectMode=!!(Re=Re||{}).objectMode,Q&&(this.objectMode=this.objectMode||!!Re.writableObjectMode),this.highWaterMark=D(this,Re,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Re.decodeStrings),this.defaultEncoding=Re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){!function I(Re,we){var Q=Re._writableState,Ge=Q.sync,ve=Q.writecb;if("function"!=typeof ve)throw new U;if(function E(Re){Re.writing=!1,Re.writecb=null,Re.length-=Re.writelen,Re.writelen=0}(Q),we)!function _(Re,we,Q,Ge,ve){--we.pendingcb,Q?(process.nextTick(ve,Ge),process.nextTick(oe,Re,we),Re._writableState.errorEmitted=!0,ee(Re,Ge)):(ve(Ge),Re._writableState.errorEmitted=!0,ee(Re,Ge),oe(Re,we))}(Re,Q,Ge,we,ve);else{var F=B(Q)||Re.destroyed;!F&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&C(Re,Q),Ge?process.nextTick(v,Re,Q,F,ve):v(Re,Q,F,ve)}}(we,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Re.emitClose,this.autoDestroy=!!Re.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function me(Re){var we=this instanceof(f=f||p(1339));if(!we&&!J.call(me,this))return new me(Re);this._writableState=new ce(Re,this,we),this.writable=!0,Re&&("function"==typeof Re.write&&(this._write=Re.write),"function"==typeof Re.writev&&(this._writev=Re.writev),"function"==typeof Re.destroy&&(this._destroy=Re.destroy),"function"==typeof Re.final&&(this._final=Re.final)),a.call(this)}function c(Re,we,Q,Ge,ve,F,De){we.writelen=Ge,we.writecb=De,we.writing=!0,we.sync=!0,we.destroyed?we.onwrite(new j("write")):Q?Re._writev(ve,we.onwrite):Re._write(ve,F,we.onwrite),we.sync=!1}function v(Re,we,Q,Ge){Q||function n(Re,we){0===we.length&&we.needDrain&&(we.needDrain=!1,Re.emit("drain"))}(Re,we),we.pendingcb--,Ge(),oe(Re,we)}function C(Re,we){we.bufferProcessing=!0;var Q=we.bufferedRequest;if(Re._writev&&Q&&Q.next){var ve=new Array(we.bufferedRequestCount),F=we.corkedRequestsFree;F.entry=Q;for(var De=0,lt=!0;Q;)ve[De]=Q,Q.isBuf||(lt=!1),Q=Q.next,De+=1;ve.allBuffers=lt,c(Re,we,!0,we.length,ve,"",F.finish),we.pendingcb++,we.lastBufferedRequest=null,F.next?(we.corkedRequestsFree=F.next,F.next=null):we.corkedRequestsFree=new e(we),we.bufferedRequestCount=0}else{for(;Q;){var Ie=Q.chunk;if(c(Re,we,!1,we.objectMode?1:Ie.length,Ie,Q.encoding,Q.callback),Q=Q.next,we.bufferedRequestCount--,we.writing)break}null===Q&&(we.lastBufferedRequest=null)}we.bufferedRequest=Q,we.bufferProcessing=!1}function B(Re){return Re.ending&&0===Re.length&&null===Re.bufferedRequest&&!Re.finished&&!Re.writing}function N(Re,we){Re._final(function(Q){we.pendingcb--,Q&&ee(Re,Q),we.prefinished=!0,Re.emit("prefinish"),oe(Re,we)})}function oe(Re,we){var Q=B(we);if(Q&&(function z(Re,we){!we.prefinished&&!we.finalCalled&&("function"!=typeof Re._final||we.destroyed?(we.prefinished=!0,Re.emit("prefinish")):(we.pendingcb++,we.finalCalled=!0,process.nextTick(N,Re,we)))}(Re,we),0===we.pendingcb&&(we.finished=!0,Re.emit("finish"),we.autoDestroy))){var Ge=Re._readableState;(!Ge||Ge.autoDestroy&&Ge.endEmitted)&&Re.destroy()}return Q}p(3894)(me,a),ce.prototype.getBuffer=function(){for(var we=this.bufferedRequest,Q=[];we;)Q.push(we),we=we.next;return Q},function(){try{Object.defineProperty(ce.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Re){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(J=Function.prototype[Symbol.hasInstance],Object.defineProperty(me,Symbol.hasInstance,{value:function(we){return!!J.call(this,we)||this===me&&we&&we._writableState instanceof ce}})):J=function(we){return we instanceof this},me.prototype.pipe=function(){ee(this,new Z)},me.prototype.write=function(Re,we,Q){var Ge=this._writableState,ve=!1,F=!Ge.objectMode&&function h(Re){return b.isBuffer(Re)||Re instanceof d}(Re);return F&&!b.isBuffer(Re)&&(Re=function P(Re){return b.from(Re)}(Re)),"function"==typeof we&&(Q=we,we=null),F?we="buffer":we||(we=Ge.defaultEncoding),"function"!=typeof Q&&(Q=te),Ge.ending?function x(Re,we){var Q=new X;ee(Re,Q),process.nextTick(we,Q)}(this,Q):(F||function i(Re,we,Q,Ge){var ve;return null===Q?ve=new ne:"string"!=typeof Q&&!we.objectMode&&(ve=new k("chunk",["string","Buffer"],Q)),!ve||(ee(Re,ve),process.nextTick(Ge,ve),!1)}(this,Ge,Re,Q))&&(Ge.pendingcb++,ve=function u(Re,we,Q,Ge,ve,F){if(!Q){var De=function r(Re,we,Q){return!Re.objectMode&&!1!==Re.decodeStrings&&"string"==typeof we&&(we=b.from(we,Q)),we}(we,Ge,ve);Ge!==De&&(Q=!0,ve="buffer",Ge=De)}var lt=we.objectMode?1:Ge.length;we.length+=lt;var Ie=we.length-1))throw new de(we);return this._writableState.defaultEncoding=we,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(Re,we,Q){Q(new S("_write()"))},me.prototype._writev=null,me.prototype.end=function(Re,we,Q){var Ge=this._writableState;return"function"==typeof Re?(Q=Re,Re=null,we=null):"function"==typeof we&&(Q=we,we=null),null!=Re&&this.write(Re,we),Ge.corked&&(Ge.corked=1,this.uncork()),Ge.ending||function ge(Re,we,Q){we.ending=!0,oe(Re,we),Q&&(we.finished?process.nextTick(Q):Re.once("finish",Q)),we.ended=!0,Re.writable=!1}(this,Ge,Q),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(we){!this._writableState||(this._writableState.destroyed=we)}}),me.prototype.destroy=A.destroy,me.prototype._undestroy=A.undestroy,me.prototype._destroy=function(Re,we){we(Re)}},3872:(Fe,Y,p)=>{"use strict";var t;function e(j,ne,X){return ne in j?Object.defineProperty(j,ne,{value:X,enumerable:!0,configurable:!0,writable:!0}):j[ne]=X,j}var f=p(7542),M=Symbol("lastResolve"),a=Symbol("lastReject"),b=Symbol("error"),d=Symbol("ended"),P=Symbol("lastPromise"),h=Symbol("handlePromise"),A=Symbol("stream");function w(j,ne){return{value:j,done:ne}}function D(j){var ne=j[M];if(null!==ne){var X=j[A].read();null!==X&&(j[P]=null,j[M]=null,j[a]=null,ne(w(X,!1)))}}function L(j){process.nextTick(D,j)}var S=Object.getPrototypeOf(function(){}),U=Object.setPrototypeOf((e(t={get stream(){return this[A]},next:function(){var ne=this,X=this[b];if(null!==X)return Promise.reject(X);if(this[d])return Promise.resolve(w(void 0,!0));if(this[A].destroyed)return new Promise(function(ce,J){process.nextTick(function(){ne[b]?J(ne[b]):ce(w(void 0,!0))})});var ee,de=this[P];if(de)ee=new Promise(function k(j,ne){return function(X,de){j.then(function(){ne[d]?X(w(void 0,!0)):ne[h](X,de)},de)}}(de,this));else{var te=this[A].read();if(null!==te)return Promise.resolve(w(te,!1));ee=new Promise(this[h])}return this[P]=ee,ee}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var ne=this;return new Promise(function(X,de){ne[A].destroy(null,function(ee){ee?de(ee):X(w(void 0,!0))})})}),t),S);Fe.exports=function(ne){var X,de=Object.create(U,(e(X={},A,{value:ne,writable:!0}),e(X,M,{value:null,writable:!0}),e(X,a,{value:null,writable:!0}),e(X,b,{value:null,writable:!0}),e(X,d,{value:ne._readableState.endEmitted,writable:!0}),e(X,h,{value:function(te,ce){var J=de[A].read();J?(de[P]=null,de[M]=null,de[a]=null,te(w(J,!1))):(de[M]=te,de[a]=ce)},writable:!0}),X));return de[P]=null,f(ne,function(ee){if(ee&&"ERR_STREAM_PREMATURE_CLOSE"!==ee.code){var te=de[a];return null!==te&&(de[P]=null,de[M]=null,de[a]=null,te(ee)),void(de[b]=ee)}var ce=de[M];null!==ce&&(de[P]=null,de[M]=null,de[a]=null,ce(w(void 0,!0))),de[d]=!0}),ne.on("readable",L.bind(null,de)),de}},5019:(Fe,Y,p)=>{"use strict";function t(L,k){var S=Object.keys(L);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(L);k&&(U=U.filter(function(Z){return Object.getOwnPropertyDescriptor(L,Z).enumerable})),S.push.apply(S,U)}return S}function f(L,k,S){return k in L?Object.defineProperty(L,k,{value:S,enumerable:!0,configurable:!0,writable:!0}):L[k]=S,L}function a(L,k){for(var S=0;S0?this.tail.next=U:this.head=U,this.tail=U,++this.length}},{key:"unshift",value:function(S){var U={data:S,next:this.head};0===this.length&&(this.tail=U),this.head=U,++this.length}},{key:"shift",value:function(){if(0!==this.length){var S=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,S}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(S){if(0===this.length)return"";for(var U=this.head,Z=""+U.data;U=U.next;)Z+=S+U.data;return Z}},{key:"concat",value:function(S){if(0===this.length)return P.alloc(0);for(var U=P.allocUnsafe(S>>>0),Z=this.head,j=0;Z;)D(Z.data,U,j),j+=Z.data.length,Z=Z.next;return U}},{key:"consume",value:function(S,U){var Z;return Sne.length?ne.length:S;if(j+=X===ne.length?ne:ne.slice(0,S),0==(S-=X)){X===ne.length?(++Z,this.head=U.next?U.next:this.tail=null):(this.head=U,U.data=ne.slice(X));break}++Z}return this.length-=Z,j}},{key:"_getBuffer",value:function(S){var U=P.allocUnsafe(S),Z=this.head,j=1;for(Z.data.copy(U),S-=Z.data.length;Z=Z.next;){var ne=Z.data,X=S>ne.length?ne.length:S;if(ne.copy(U,U.length-S,0,X),0==(S-=X)){X===ne.length?(++j,this.head=Z.next?Z.next:this.tail=null):(this.head=Z,Z.data=ne.slice(X));break}++j}return this.length-=j,U}},{key:w,value:function(S,U){return A(this,function e(L){for(var k=1;k{"use strict";function p(a,b){f(a,b),t(a)}function t(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function f(a,b){a.emit("error",b)}Fe.exports={destroy:function Y(a,b){var d=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(b?b(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(f,this,a)):process.nextTick(f,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(A){!b&&A?d._writableState?d._writableState.errorEmitted?process.nextTick(t,d):(d._writableState.errorEmitted=!0,process.nextTick(p,d,A)):process.nextTick(p,d,A):b?(process.nextTick(t,d),b(A)):process.nextTick(t,d)}),this)},undestroy:function e(){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 M(a,b){var d=a._readableState,P=a._writableState;d&&d.autoDestroy||P&&P.autoDestroy?a.destroy(b):a.emit("error",b)}}},7542:(Fe,Y,p)=>{"use strict";var t=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function f(){}Fe.exports=function a(b,d,P){if("function"==typeof d)return a(b,null,d);d||(d={}),P=function e(b){var d=!1;return function(){if(!d){d=!0;for(var P=arguments.length,h=new Array(P),A=0;A{Fe.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Fe,Y,p)=>{"use strict";var t,f=p(891).q,M=f.ERR_MISSING_ARGS,a=f.ERR_STREAM_DESTROYED;function b(L){if(L)throw L}function P(L,k,S,U){U=function e(L){var k=!1;return function(){k||(k=!0,L.apply(void 0,arguments))}}(U);var Z=!1;L.on("close",function(){Z=!0}),void 0===t&&(t=p(7542)),t(L,{readable:k,writable:S},function(ne){if(ne)return U(ne);Z=!0,U()});var j=!1;return function(ne){if(!Z&&!j){if(j=!0,function d(L){return L.setHeader&&"function"==typeof L.abort}(L))return L.abort();if("function"==typeof L.destroy)return L.destroy();U(ne||new a("pipe"))}}}function h(L){L()}function A(L,k){return L.pipe(k)}function w(L){return L.length&&"function"==typeof L[L.length-1]?L.pop():b}Fe.exports=function D(){for(var L=arguments.length,k=new Array(L),S=0;S0,function(te){Z||(Z=te),te&&j.forEach(h),!de&&(j.forEach(h),U(Z))})});return k.reduce(A)}},7102:(Fe,Y,p)=>{"use strict";var t=p(891).q.ERR_INVALID_OPT_VALUE;Fe.exports={getHighWaterMark:function f(M,a,b,d){var P=function e(M,a,b){return null!=M.highWaterMark?M.highWaterMark:a?M[b]:null}(a,d,b);if(null!=P){if(!isFinite(P)||Math.floor(P)!==P||P<0)throw new t(d?b:"highWaterMark",P);return Math.floor(P)}return M.objectMode?16:16384}}},4970:(Fe,Y,p)=>{Fe.exports=p(9069).EventEmitter},5685:(Fe,Y,p)=>{(Y=Fe.exports=p(3154)).Stream=Y,Y.Readable=Y,Y.Writable=p(520),Y.Duplex=p(1339),Y.Transform=p(6025),Y.PassThrough=p(6071),Y.finished=p(7542),Y.pipeline=p(954)},5634:(Fe,Y,p)=>{"use strict";var t=p(3172).Buffer,e=p(3894),f=p(9650),M=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],b=[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],h=[0,1518500249,1859775393,2400959708,2840853838],A=[1352829926,1548603684,1836072691,2053994217,0];function w(){f.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function D(j,ne){return j<>>32-ne}function L(j,ne,X,de,ee,te,ce,J){return D(j+(ne^X^de)+te+ce|0,J)+ee|0}function k(j,ne,X,de,ee,te,ce,J){return D(j+(ne&X|~ne&de)+te+ce|0,J)+ee|0}function S(j,ne,X,de,ee,te,ce,J){return D(j+((ne|~X)^de)+te+ce|0,J)+ee|0}function U(j,ne,X,de,ee,te,ce,J){return D(j+(ne&de|X&~de)+te+ce|0,J)+ee|0}function Z(j,ne,X,de,ee,te,ce,J){return D(j+(ne^(X|~de))+te+ce|0,J)+ee|0}e(w,f),w.prototype._update=function(){for(var j=M,ne=0;ne<16;++ne)j[ne]=this._block.readInt32LE(4*ne);for(var X=0|this._a,de=0|this._b,ee=0|this._c,te=0|this._d,ce=0|this._e,J=0|this._a,me=0|this._b,x=0|this._c,i=0|this._d,r=0|this._e,u=0;u<80;u+=1){var c,_;u<16?(c=L(X,de,ee,te,ce,j[a[u]],h[0],d[u]),_=Z(J,me,x,i,r,j[b[u]],A[0],P[u])):u<32?(c=k(X,de,ee,te,ce,j[a[u]],h[1],d[u]),_=U(J,me,x,i,r,j[b[u]],A[1],P[u])):u<48?(c=S(X,de,ee,te,ce,j[a[u]],h[2],d[u]),_=S(J,me,x,i,r,j[b[u]],A[2],P[u])):u<64?(c=U(X,de,ee,te,ce,j[a[u]],h[3],d[u]),_=k(J,me,x,i,r,j[b[u]],A[3],P[u])):(c=Z(X,de,ee,te,ce,j[a[u]],h[4],d[u]),_=L(J,me,x,i,r,j[b[u]],A[4],P[u])),X=ce,ce=te,te=D(ee,10),ee=de,de=c,J=r,r=i,i=D(x,10),x=me,me=_}var E=this._b+ee+i|0;this._b=this._c+te+r|0,this._c=this._d+ce+J|0,this._d=this._e+X+me|0,this._e=this._a+de+x|0,this._a=E},w.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 j=t.alloc?t.alloc(20):new t(20);return j.writeInt32LE(this._a,0),j.writeInt32LE(this._b,4),j.writeInt32LE(this._c,8),j.writeInt32LE(this._d,12),j.writeInt32LE(this._e,16),j},Fe.exports=w},1135:(Fe,Y,p)=>{"use strict";p.d(Y,{X:()=>e});var t=p(7579);class e extends t.x{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const a=super._subscribe(M);return!a.closed&&M.next(this._value),a}getValue(){const{hasError:M,thrownError:a,_value:b}=this;if(M)throw a;return this._throwIfClosed(),b}next(M){super.next(this._value=M)}}},8306:(Fe,Y,p)=>{"use strict";p.d(Y,{y:()=>A});var t=p(930),e=p(727),f=p(8822),M=p(4671);var d=p(2416),P=p(576),h=p(2806);let A=(()=>{class k{constructor(U){U&&(this._subscribe=U)}lift(U){const Z=new k;return Z.source=this,Z.operator=U,Z}subscribe(U,Z,j){const ne=function L(k){return k&&k instanceof t.Lv||function D(k){return k&&(0,P.m)(k.next)&&(0,P.m)(k.error)&&(0,P.m)(k.complete)}(k)&&(0,e.Nn)(k)}(U)?U:new t.Hp(U,Z,j);return(0,h.x)(()=>{const{operator:X,source:de}=this;ne.add(X?X.call(ne,de):de?this._subscribe(ne):this._trySubscribe(ne))}),ne}_trySubscribe(U){try{return this._subscribe(U)}catch(Z){U.error(Z)}}forEach(U,Z){return new(Z=w(Z))((j,ne)=>{const X=new t.Hp({next:de=>{try{U(de)}catch(ee){ne(ee),X.unsubscribe()}},error:ne,complete:j});this.subscribe(X)})}_subscribe(U){var Z;return null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(U)}[f.L](){return this}pipe(...U){return function b(k){return 0===k.length?M.y:1===k.length?k[0]:function(U){return k.reduce((Z,j)=>j(Z),U)}}(U)(this)}toPromise(U){return new(U=w(U))((Z,j)=>{let ne;this.subscribe(X=>ne=X,X=>j(X),()=>Z(ne))})}}return k.create=S=>new k(S),k})();function w(k){var S;return null!==(S=null!=k?k:d.v.Promise)&&void 0!==S?S:Promise}},4707:(Fe,Y,p)=>{"use strict";p.d(Y,{t:()=>f});var t=p(7579),e=p(6063);class f extends t.x{constructor(a=1/0,b=1/0,d=e.l){super(),this._bufferSize=a,this._windowTime=b,this._timestampProvider=d,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=b===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,b)}next(a){const{isStopped:b,_buffer:d,_infiniteTimeWindow:P,_timestampProvider:h,_windowTime:A}=this;b||(d.push(a),!P&&d.push(h.now()+A)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const b=this._innerSubscribe(a),{_infiniteTimeWindow:d,_buffer:P}=this,h=P.slice();for(let A=0;A{"use strict";p.d(Y,{u:()=>P,x:()=>d});var t=p(8306),e=p(727);const M=(0,p(3888).d)(h=>function(){h(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var a=p(8737),b=p(2806);let d=(()=>{class h extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const D=new P(this,this);return D.operator=w,D}_throwIfClosed(){if(this.closed)throw new M}next(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const D of this.currentObservers)D.next(w)}})}error(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:D}=this;for(;D.length;)D.shift().error(w)}})}complete(){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:D,isStopped:L,observers:k}=this;return D||L?e.Lc:(this.currentObservers=null,k.push(w),new e.w0(()=>{this.currentObservers=null,(0,a.P)(k,w)}))}_checkFinalizedStatuses(w){const{hasError:D,thrownError:L,isStopped:k}=this;D?w.error(L):k&&w.complete()}asObservable(){const w=new t.y;return w.source=this,w}}return h.create=(A,w)=>new P(A,w),h})();class P extends d{constructor(A,w){super(),this.destination=A,this.source=w}next(A){var w,D;null===(D=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===D||D.call(w,A)}error(A){var w,D;null===(D=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===D||D.call(w,A)}complete(){var A,w;null===(w=null===(A=this.destination)||void 0===A?void 0:A.complete)||void 0===w||w.call(A)}_subscribe(A){var w,D;return null!==(D=null===(w=this.source)||void 0===w?void 0:w.subscribe(A))&&void 0!==D?D:e.Lc}}},930:(Fe,Y,p)=>{"use strict";p.d(Y,{Hp:()=>U,Lv:()=>D});var t=p(576),e=p(727),f=p(2416),M=p(7849),a=p(5032);const b=h("C",void 0,void 0);function h(de,ee,te){return{kind:de,value:ee,error:te}}var A=p(3410),w=p(2806);class D extends e.w0{constructor(ee){super(),this.isStopped=!1,ee?(this.destination=ee,(0,e.Nn)(ee)&&ee.add(this)):this.destination=X}static create(ee,te,ce){return new U(ee,te,ce)}next(ee){this.isStopped?ne(function P(de){return h("N",de,void 0)}(ee),this):this._next(ee)}error(ee){this.isStopped?ne(function d(de){return h("E",void 0,de)}(ee),this):(this.isStopped=!0,this._error(ee))}complete(){this.isStopped?ne(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ee){this.destination.next(ee)}_error(ee){try{this.destination.error(ee)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const L=Function.prototype.bind;function k(de,ee){return L.call(de,ee)}class S{constructor(ee){this.partialObserver=ee}next(ee){const{partialObserver:te}=this;if(te.next)try{te.next(ee)}catch(ce){Z(ce)}}error(ee){const{partialObserver:te}=this;if(te.error)try{te.error(ee)}catch(ce){Z(ce)}else Z(ee)}complete(){const{partialObserver:ee}=this;if(ee.complete)try{ee.complete()}catch(te){Z(te)}}}class U extends D{constructor(ee,te,ce){let J;if(super(),(0,t.m)(ee)||!ee)J={next:null!=ee?ee:void 0,error:null!=te?te:void 0,complete:null!=ce?ce:void 0};else{let me;this&&f.v.useDeprecatedNextContext?(me=Object.create(ee),me.unsubscribe=()=>this.unsubscribe(),J={next:ee.next&&k(ee.next,me),error:ee.error&&k(ee.error,me),complete:ee.complete&&k(ee.complete,me)}):J=ee}this.destination=new S(J)}}function Z(de){f.v.useDeprecatedSynchronousErrorHandling?(0,w.O)(de):(0,M.h)(de)}function ne(de,ee){const{onStoppedNotification:te}=f.v;te&&A.z.setTimeout(()=>te(de,ee))}const X={closed:!0,next:a.Z,error:function j(de){throw de},complete:a.Z}},727:(Fe,Y,p)=>{"use strict";p.d(Y,{Lc:()=>b,w0:()=>a,Nn:()=>d});var t=p(576);const f=(0,p(3888).d)(h=>function(w){h(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((D,L)=>`${L+1}) ${D.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var M=p(8737);class a{constructor(A){this.initialTeardown=A,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let A;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const k of w)k.remove(this);else w.remove(this);const{initialTeardown:D}=this;if((0,t.m)(D))try{D()}catch(k){A=k instanceof f?k.errors:[k]}const{_finalizers:L}=this;if(L){this._finalizers=null;for(const k of L)try{P(k)}catch(S){A=null!=A?A:[],S instanceof f?A=[...A,...S.errors]:A.push(S)}}if(A)throw new f(A)}}add(A){var w;if(A&&A!==this)if(this.closed)P(A);else{if(A instanceof a){if(A.closed||A._hasParent(this))return;A._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(A)}}_hasParent(A){const{_parentage:w}=this;return w===A||Array.isArray(w)&&w.includes(A)}_addParent(A){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(A),w):w?[w,A]:A}_removeParent(A){const{_parentage:w}=this;w===A?this._parentage=null:Array.isArray(w)&&(0,M.P)(w,A)}remove(A){const{_finalizers:w}=this;w&&(0,M.P)(w,A),A instanceof a&&A._removeParent(this)}}a.EMPTY=(()=>{const h=new a;return h.closed=!0,h})();const b=a.EMPTY;function d(h){return h instanceof a||h&&"closed"in h&&(0,t.m)(h.remove)&&(0,t.m)(h.add)&&(0,t.m)(h.unsubscribe)}function P(h){(0,t.m)(h)?h():h.unsubscribe()}},2416:(Fe,Y,p)=>{"use strict";p.d(Y,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Fe,Y,p)=>{"use strict";p.d(Y,{a:()=>A});var t=p(8306),e=p(4742),f=p(457),M=p(4671),a=p(3268),b=p(3269),d=p(1810),P=p(5403),h=p(9672);function A(...L){const k=(0,b.yG)(L),S=(0,b.jO)(L),{args:U,keys:Z}=(0,e.D)(L);if(0===U.length)return(0,f.D)([],k);const j=new t.y(function w(L,k,S=M.y){return U=>{D(k,()=>{const{length:Z}=L,j=new Array(Z);let ne=Z,X=Z;for(let de=0;de{const ee=(0,f.D)(L[de],k);let te=!1;ee.subscribe((0,P.x)(U,ce=>{j[de]=ce,te||(te=!0,X--),X||U.next(S(j.slice()))},()=>{--ne||U.complete()}))},U)},U)}}(U,k,Z?ne=>(0,d.n)(Z,ne):M.y));return S?j.pipe((0,a.Z)(S)):j}function D(L,k,S){L?(0,h.f)(S,L,k):k()}},7272:(Fe,Y,p)=>{"use strict";p.d(Y,{z:()=>a});var t=p(8189),f=p(3269),M=p(457);function a(...b){return function e(){return(0,t.J)(1)}()((0,M.D)(b,(0,f.yG)(b)))}},9770:(Fe,Y,p)=>{"use strict";p.d(Y,{P:()=>f});var t=p(8306),e=p(8421);function f(M){return new t.y(a=>{(0,e.Xf)(M()).subscribe(a)})}},515:(Fe,Y,p)=>{"use strict";p.d(Y,{E:()=>e});const e=new(p(8306).y)(a=>a.complete())},4128:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>P});var t=p(8306),e=p(4742),f=p(8421),M=p(3269),a=p(5403),b=p(3268),d=p(1810);function P(...h){const A=(0,M.jO)(h),{args:w,keys:D}=(0,e.D)(h),L=new t.y(k=>{const{length:S}=w;if(!S)return void k.complete();const U=new Array(S);let Z=S,j=S;for(let ne=0;ne{X||(X=!0,j--),U[ne]=de},()=>Z--,void 0,()=>{(!Z||!X)&&(j||k.next(D?(0,d.n)(D,U):U),k.complete())}))}});return A?L.pipe((0,b.Z)(A)):L}},457:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>te});var t=p(8421),e=p(5363),f=p(4482);function M(ce,J=0){return(0,f.e)((me,x)=>{x.add(ce.schedule(()=>me.subscribe(x),J))})}var d=p(8306),h=p(2202),A=p(576),w=p(9672);function L(ce,J){if(!ce)throw new Error("Iterable cannot be null");return new d.y(me=>{(0,w.f)(me,J,()=>{const x=ce[Symbol.asyncIterator]();(0,w.f)(me,J,()=>{x.next().then(i=>{i.done?me.complete():me.next(i.value)})},0,!0)})})}var k=p(3670),S=p(8239),U=p(1144),Z=p(6495),j=p(2206),ne=p(4532),X=p(3260);function te(ce,J){return J?function ee(ce,J){if(null!=ce){if((0,k.c)(ce))return function a(ce,J){return(0,t.Xf)(ce).pipe(M(J),(0,e.Q)(J))}(ce,J);if((0,U.z)(ce))return function P(ce,J){return new d.y(me=>{let x=0;return J.schedule(function(){x===ce.length?me.complete():(me.next(ce[x++]),me.closed||this.schedule())})})}(ce,J);if((0,S.t)(ce))return function b(ce,J){return(0,t.Xf)(ce).pipe(M(J),(0,e.Q)(J))}(ce,J);if((0,j.D)(ce))return L(ce,J);if((0,Z.T)(ce))return function D(ce,J){return new d.y(me=>{let x;return(0,w.f)(me,J,()=>{x=ce[h.h](),(0,w.f)(me,J,()=>{let i,r;try{({value:i,done:r}=x.next())}catch(u){return void me.error(u)}r?me.complete():me.next(i)},0,!0)}),()=>(0,A.m)(null==x?void 0:x.return)&&x.return()})}(ce,J);if((0,X.L)(ce))return function de(ce,J){return L((0,X.Q)(ce),J)}(ce,J)}throw(0,ne.z)(ce)}(ce,J):(0,t.Xf)(ce)}},4968:(Fe,Y,p)=>{"use strict";p.d(Y,{R:()=>A});var t=p(8421),e=p(8306),f=p(5577),M=p(1144),a=p(576),b=p(3268);const d=["addListener","removeListener"],P=["addEventListener","removeEventListener"],h=["on","off"];function A(S,U,Z,j){if((0,a.m)(Z)&&(j=Z,Z=void 0),j)return A(S,U,Z).pipe((0,b.Z)(j));const[ne,X]=function k(S){return(0,a.m)(S.addEventListener)&&(0,a.m)(S.removeEventListener)}(S)?P.map(de=>ee=>S[de](U,ee,Z)):function D(S){return(0,a.m)(S.addListener)&&(0,a.m)(S.removeListener)}(S)?d.map(w(S,U)):function L(S){return(0,a.m)(S.on)&&(0,a.m)(S.off)}(S)?h.map(w(S,U)):[];if(!ne&&(0,M.z)(S))return(0,f.z)(de=>A(de,U,Z))((0,t.Xf)(S));if(!ne)throw new TypeError("Invalid event target");return new e.y(de=>{const ee=(...te)=>de.next(1X(ee)})}function w(S,U){return Z=>j=>S[Z](U,j)}},8421:(Fe,Y,p)=>{"use strict";p.d(Y,{Xf:()=>L});var t=p(655),e=p(1144),f=p(8239),M=p(8306),a=p(3670),b=p(2206),d=p(4532),P=p(6495),h=p(3260),A=p(576),w=p(7849),D=p(8822);function L(de){if(de instanceof M.y)return de;if(null!=de){if((0,a.c)(de))return function k(de){return new M.y(ee=>{const te=de[D.L]();if((0,A.m)(te.subscribe))return te.subscribe(ee);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(de);if((0,e.z)(de))return function S(de){return new M.y(ee=>{for(let te=0;te{de.then(te=>{ee.closed||(ee.next(te),ee.complete())},te=>ee.error(te)).then(null,w.h)})}(de);if((0,b.D)(de))return j(de);if((0,P.T)(de))return function Z(de){return new M.y(ee=>{for(const te of de)if(ee.next(te),ee.closed)return;ee.complete()})}(de);if((0,h.L)(de))return function ne(de){return j((0,h.Q)(de))}(de)}throw(0,d.z)(de)}function j(de){return new M.y(ee=>{(function X(de,ee){var te,ce,J,me;return(0,t.mG)(this,void 0,void 0,function*(){try{for(te=(0,t.KL)(de);!(ce=yield te.next()).done;)if(ee.next(ce.value),ee.closed)return}catch(x){J={error:x}}finally{try{ce&&!ce.done&&(me=te.return)&&(yield me.call(te))}finally{if(J)throw J.error}}ee.complete()})})(de,ee).catch(te=>ee.error(te))})}},6451:(Fe,Y,p)=>{"use strict";p.d(Y,{T:()=>b});var t=p(8189),e=p(8421),f=p(515),M=p(3269),a=p(457);function b(...d){const P=(0,M.yG)(d),h=(0,M._6)(d,1/0),A=d;return A.length?1===A.length?(0,e.Xf)(A[0]):(0,t.J)(h)((0,a.D)(A,P)):f.E}},9646:(Fe,Y,p)=>{"use strict";p.d(Y,{of:()=>f});var t=p(3269),e=p(457);function f(...M){const a=(0,t.yG)(M);return(0,e.D)(M,a)}},2843:(Fe,Y,p)=>{"use strict";p.d(Y,{_:()=>f});var t=p(8306),e=p(576);function f(M,a){const b=(0,e.m)(M)?M:()=>M,d=P=>P.error(b());return new t.y(a?P=>a.schedule(d,0,P):d)}},2805:(Fe,Y,p)=>{"use strict";p.d(Y,{H:()=>a});var t=p(8306),e=p(4986),f=p(3532),M=p(1165);function a(b=0,d,P=e.P){let h=-1;return null!=d&&((0,f.K)(d)?P=d:h=d),new t.y(A=>{let w=(0,M.q)(b)?+b-P.now():b;w<0&&(w=0);let D=0;return P.schedule(function(){A.closed||(A.next(D++),0<=h?this.schedule(void 0,h):A.complete())},w)})}},5403:(Fe,Y,p)=>{"use strict";p.d(Y,{Q:()=>f,x:()=>e});var t=p(930);function e(M,a,b,d,P){return new f(M,a,b,d,P)}class f extends t.Lv{constructor(a,b,d,P,h,A){super(a),this.onFinalize=h,this.shouldUnsubscribe=A,this._next=b?function(w){try{b(w)}catch(D){a.error(D)}}:super._next,this._error=P?function(w){try{P(w)}catch(D){a.error(D)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(w){a.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:b}=this;super.unsubscribe(),!b&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}}}},3601:(Fe,Y,p)=>{"use strict";p.d(Y,{e:()=>d});var t=p(4986),e=p(4482),f=p(8421),M=p(5403),b=p(2805);function d(P,h=t.z){return function a(P){return(0,e.e)((h,A)=>{let w=!1,D=null,L=null,k=!1;const S=()=>{if(null==L||L.unsubscribe(),L=null,w){w=!1;const Z=D;D=null,A.next(Z)}k&&A.complete()},U=()=>{L=null,k&&A.complete()};h.subscribe((0,M.x)(A,Z=>{w=!0,D=Z,L||(0,f.Xf)(P(Z)).subscribe(L=(0,M.x)(A,S,U))},()=>{k=!0,(!w||!L||L.closed)&&A.complete()}))})}(()=>(0,b.H)(P,h))}},262:(Fe,Y,p)=>{"use strict";p.d(Y,{K:()=>M});var t=p(8421),e=p(5403),f=p(4482);function M(a){return(0,f.e)((b,d)=>{let A,P=null,h=!1;P=b.subscribe((0,e.x)(d,void 0,void 0,w=>{A=(0,t.Xf)(a(w,M(a)(b))),P?(P.unsubscribe(),P=null,A.subscribe(d)):h=!0})),h&&(P.unsubscribe(),P=null,A.subscribe(d))})}},4351:(Fe,Y,p)=>{"use strict";p.d(Y,{b:()=>f});var t=p(5577),e=p(576);function f(M,a){return(0,e.m)(a)?(0,t.z)(M,a,1):(0,t.z)(M,1)}},8372:(Fe,Y,p)=>{"use strict";p.d(Y,{b:()=>M});var t=p(4986),e=p(4482),f=p(5403);function M(a,b=t.z){return(0,e.e)((d,P)=>{let h=null,A=null,w=null;const D=()=>{if(h){h.unsubscribe(),h=null;const k=A;A=null,P.next(k)}};function L(){const k=w+a,S=b.now();if(S{A=k,w=b.now(),h||(h=b.schedule(L,a),P.add(h))},()=>{D(),P.complete()},void 0,()=>{A=h=null}))})}},6590:(Fe,Y,p)=>{"use strict";p.d(Y,{d:()=>f});var t=p(4482),e=p(5403);function f(M){return(0,t.e)((a,b)=>{let d=!1;a.subscribe((0,e.x)(b,P=>{d=!0,b.next(P)},()=>{d||b.next(M),b.complete()}))})}},4086:(Fe,Y,p)=>{"use strict";p.d(Y,{g:()=>h});var t=p(4986),e=p(7272),f=p(5698),M=p(8502),a=p(9718),b=p(5577);function d(A,w){return w?D=>(0,e.z)(w.pipe((0,f.q)(1),(0,M.l)()),D.pipe(d(A))):(0,b.z)((D,L)=>A(D,L).pipe((0,f.q)(1),(0,a.h)(D)))}var P=p(2805);function h(A,w=t.z){const D=(0,P.H)(A,w);return d(()=>D)}},1884:(Fe,Y,p)=>{"use strict";p.d(Y,{x:()=>M});var t=p(4671),e=p(4482),f=p(5403);function M(b,d=t.y){return b=null!=b?b:a,(0,e.e)((P,h)=>{let A,w=!0;P.subscribe((0,f.x)(h,D=>{const L=d(D);(w||!b(A,L))&&(w=!1,A=L,h.next(D))}))})}function a(b,d){return b===d}},9300:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>f});var t=p(4482),e=p(5403);function f(M,a){return(0,t.e)((b,d)=>{let P=0;b.subscribe((0,e.x)(d,h=>M.call(a,h,P++)&&d.next(h)))})}},8746:(Fe,Y,p)=>{"use strict";p.d(Y,{x:()=>e});var t=p(4482);function e(f){return(0,t.e)((M,a)=>{try{M.subscribe(a)}finally{a.add(f)}})}},590:(Fe,Y,p)=>{"use strict";p.d(Y,{P:()=>d});var t=p(6805),e=p(9300),f=p(5698),M=p(6590),a=p(8068),b=p(4671);function d(P,h){const A=arguments.length>=2;return w=>w.pipe(P?(0,e.h)((D,L)=>P(D,L,w)):b.y,(0,f.q)(1),A?(0,M.d)(h):(0,a.T)(()=>new t.K))}},8502:(Fe,Y,p)=>{"use strict";p.d(Y,{l:()=>M});var t=p(4482),e=p(5403),f=p(5032);function M(){return(0,t.e)((a,b)=>{a.subscribe((0,e.x)(b,f.Z))})}},4004:(Fe,Y,p)=>{"use strict";p.d(Y,{U:()=>f});var t=p(4482),e=p(5403);function f(M,a){return(0,t.e)((b,d)=>{let P=0;b.subscribe((0,e.x)(d,h=>{d.next(M.call(a,h,P++))}))})}},9718:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>e});var t=p(4004);function e(f){return(0,t.U)(()=>f)}},8189:(Fe,Y,p)=>{"use strict";p.d(Y,{J:()=>f});var t=p(5577),e=p(4671);function f(M=1/0){return(0,t.z)(e.y,M)}},5577:(Fe,Y,p)=>{"use strict";p.d(Y,{z:()=>P});var t=p(4004),e=p(8421),f=p(4482),M=p(9672),a=p(5403),d=p(576);function P(h,A,w=1/0){return(0,d.m)(A)?P((D,L)=>(0,t.U)((k,S)=>A(D,k,L,S))((0,e.Xf)(h(D,L))),w):("number"==typeof A&&(w=A),(0,f.e)((D,L)=>function b(h,A,w,D,L,k,S,U){const Z=[];let j=0,ne=0,X=!1;const de=()=>{X&&!Z.length&&!j&&A.complete()},ee=ce=>j{k&&A.next(ce),j++;let J=!1;(0,e.Xf)(w(ce,ne++)).subscribe((0,a.x)(A,me=>{null==L||L(me),k?ee(me):A.next(me)},()=>{J=!0},void 0,()=>{if(J)try{for(j--;Z.length&&jte(me)):te(me)}de()}catch(me){A.error(me)}}))};return h.subscribe((0,a.x)(A,ee,()=>{X=!0,de()})),()=>{null==U||U()}}(D,L,h,w)))}},5363:(Fe,Y,p)=>{"use strict";p.d(Y,{Q:()=>M});var t=p(9672),e=p(4482),f=p(5403);function M(a,b=0){return(0,e.e)((d,P)=>{d.subscribe((0,f.x)(P,h=>(0,t.f)(P,a,()=>P.next(h),b),()=>(0,t.f)(P,a,()=>P.complete(),b),h=>(0,t.f)(P,a,()=>P.error(h),b)))})}},5026:(Fe,Y,p)=>{"use strict";p.d(Y,{R:()=>M});var t=p(4482),e=p(5403);function f(a,b,d,P,h){return(A,w)=>{let D=d,L=b,k=0;A.subscribe((0,e.x)(w,S=>{const U=k++;L=D?a(L,S,U):(D=!0,S),P&&w.next(L)},h&&(()=>{D&&w.next(L),w.complete()})))}}function M(a,b){return(0,t.e)(f(a,b,arguments.length>=2,!0))}},3099:(Fe,Y,p)=>{"use strict";p.d(Y,{B:()=>a});var t=p(8421),e=p(7579),f=p(930),M=p(4482);function a(d={}){const{connector:P=(()=>new e.x),resetOnError:h=!0,resetOnComplete:A=!0,resetOnRefCountZero:w=!0}=d;return D=>{let L,k,S,U=0,Z=!1,j=!1;const ne=()=>{null==k||k.unsubscribe(),k=void 0},X=()=>{ne(),L=S=void 0,Z=j=!1},de=()=>{const ee=L;X(),null==ee||ee.unsubscribe()};return(0,M.e)((ee,te)=>{U++,!j&&!Z&&ne();const ce=S=null!=S?S:P();te.add(()=>{U--,0===U&&!j&&!Z&&(k=b(de,w))}),ce.subscribe(te),!L&&U>0&&(L=new f.Hp({next:J=>ce.next(J),error:J=>{j=!0,ne(),k=b(X,h,J),ce.error(J)},complete:()=>{Z=!0,ne(),k=b(X,A),ce.complete()}}),(0,t.Xf)(ee).subscribe(L))})(D)}}function b(d,P,...h){if(!0===P)return void d();if(!1===P)return;const A=new f.Hp({next:()=>{A.unsubscribe(),d()}});return P(...h).subscribe(A)}},5684:(Fe,Y,p)=>{"use strict";p.d(Y,{T:()=>e});var t=p(9300);function e(f){return(0,t.h)((M,a)=>f<=a)}},8675:(Fe,Y,p)=>{"use strict";p.d(Y,{O:()=>M});var t=p(7272),e=p(3269),f=p(4482);function M(...a){const b=(0,e.yG)(a);return(0,f.e)((d,P)=>{(b?(0,t.z)(a,d,b):(0,t.z)(a,d)).subscribe(P)})}},3900:(Fe,Y,p)=>{"use strict";p.d(Y,{w:()=>M});var t=p(8421),e=p(4482),f=p(5403);function M(a,b){return(0,e.e)((d,P)=>{let h=null,A=0,w=!1;const D=()=>w&&!h&&P.complete();d.subscribe((0,f.x)(P,L=>{null==h||h.unsubscribe();let k=0;const S=A++;(0,t.Xf)(a(L,S)).subscribe(h=(0,f.x)(P,U=>P.next(b?b(L,U,S,k++):U),()=>{h=null,D()}))},()=>{w=!0,D()}))})}},5698:(Fe,Y,p)=>{"use strict";p.d(Y,{q:()=>M});var t=p(515),e=p(4482),f=p(5403);function M(a){return a<=0?()=>t.E:(0,e.e)((b,d)=>{let P=0;b.subscribe((0,f.x)(d,h=>{++P<=a&&(d.next(h),a<=P&&d.complete())}))})}},2722:(Fe,Y,p)=>{"use strict";p.d(Y,{R:()=>a});var t=p(4482),e=p(5403),f=p(8421),M=p(5032);function a(b){return(0,t.e)((d,P)=>{(0,f.Xf)(b).subscribe((0,e.x)(P,()=>P.complete(),M.Z)),!P.closed&&d.subscribe(P)})}},8505:(Fe,Y,p)=>{"use strict";p.d(Y,{b:()=>a});var t=p(576),e=p(4482),f=p(5403),M=p(4671);function a(b,d,P){const h=(0,t.m)(b)||d||P?{next:b,error:d,complete:P}:b;return h?(0,e.e)((A,w)=>{var D;null===(D=h.subscribe)||void 0===D||D.call(h);let L=!0;A.subscribe((0,f.x)(w,k=>{var S;null===(S=h.next)||void 0===S||S.call(h,k),w.next(k)},()=>{var k;L=!1,null===(k=h.complete)||void 0===k||k.call(h),w.complete()},k=>{var S;L=!1,null===(S=h.error)||void 0===S||S.call(h,k),w.error(k)},()=>{var k,S;L&&(null===(k=h.unsubscribe)||void 0===k||k.call(h)),null===(S=h.finalize)||void 0===S||S.call(h)}))}):M.y}},8068:(Fe,Y,p)=>{"use strict";p.d(Y,{T:()=>M});var t=p(6805),e=p(4482),f=p(5403);function M(b=a){return(0,e.e)((d,P)=>{let h=!1;d.subscribe((0,f.x)(P,A=>{h=!0,P.next(A)},()=>h?P.complete():P.error(b())))})}function a(){return new t.K}},7414:(Fe,Y,p)=>{"use strict";p.d(Y,{V:()=>h});var t=p(4986),e=p(1165),f=p(4482),M=p(8421),a=p(3888),b=p(5403),d=p(9672);const P=(0,a.d)(w=>function(L=null){w(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=L});function h(w,D){const{first:L,each:k,with:S=A,scheduler:U=(null!=D?D:t.z),meta:Z=null}=(0,e.q)(w)?{first:w}:"number"==typeof w?{each:w}:w;if(null==L&&null==k)throw new TypeError("No timeout provided.");return(0,f.e)((j,ne)=>{let X,de,ee=null,te=0;const ce=J=>{de=(0,d.f)(ne,U,()=>{try{X.unsubscribe(),(0,M.Xf)(S({meta:Z,lastValue:ee,seen:te})).subscribe(ne)}catch(me){ne.error(me)}},J)};X=j.subscribe((0,b.x)(ne,J=>{null==de||de.unsubscribe(),te++,ne.next(ee=J),k>0&&ce(k)},void 0,void 0,()=>{(null==de?void 0:de.closed)||null==de||de.unsubscribe(),ee=null})),!te&&ce(null!=L?"number"==typeof L?L:+L-U.now():k)})}function A(w){throw new P(w)}},1365:(Fe,Y,p)=>{"use strict";p.d(Y,{M:()=>d});var t=p(4482),e=p(5403),f=p(8421),M=p(4671),a=p(5032),b=p(3269);function d(...P){const h=(0,b.jO)(P);return(0,t.e)((A,w)=>{const D=P.length,L=new Array(D);let k=P.map(()=>!1),S=!1;for(let U=0;U{L[U]=Z,!S&&!k[U]&&(k[U]=!0,(S=k.every(M.y))&&(k=null))},a.Z));A.subscribe((0,e.x)(w,U=>{if(S){const Z=[U,...L];w.next(h?h(...Z):Z)}}))})}},4408:(Fe,Y,p)=>{"use strict";p.d(Y,{o:()=>a});var t=p(727);class e extends t.w0{constructor(d,P){super()}schedule(d,P=0){return this}}const f={setInterval(b,d,...P){const{delegate:h}=f;return(null==h?void 0:h.setInterval)?h.setInterval(b,d,...P):setInterval(b,d,...P)},clearInterval(b){const{delegate:d}=f;return((null==d?void 0:d.clearInterval)||clearInterval)(b)},delegate:void 0};var M=p(8737);class a extends e{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 h=this.id,A=this.scheduler;return null!=h&&(this.id=this.recycleAsyncId(A,h,P)),this.pending=!0,this.delay=P,this.id=this.id||this.requestAsyncId(A,this.id,P),this}requestAsyncId(d,P,h=0){return f.setInterval(d.flush.bind(d,this),h)}recycleAsyncId(d,P,h=0){if(null!=h&&this.delay===h&&!1===this.pending)return P;f.clearInterval(P)}execute(d,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const h=this._execute(d,P);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,P){let A,h=!1;try{this.work(d)}catch(w){h=!0,A=w||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),A}unsubscribe(){if(!this.closed){const{id:d,scheduler:P}=this,{actions:h}=P;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(h,this),null!=d&&(this.id=this.recycleAsyncId(P,d,null)),this.delay=null,super.unsubscribe()}}}},7565:(Fe,Y,p)=>{"use strict";p.d(Y,{v:()=>f});var t=p(6063);class e{constructor(a,b=e.now){this.schedulerActionCtor=a,this.now=b}schedule(a,b=0,d){return new this.schedulerActionCtor(this,a).schedule(d,b)}}e.now=t.l.now;class f extends e{constructor(a,b=e.now){super(a,b),this.actions=[],this._active=!1,this._scheduled=void 0}flush(a){const{actions:b}=this;if(this._active)return void b.push(a);let d;this._active=!0;do{if(d=a.execute(a.state,a.delay))break}while(a=b.shift());if(this._active=!1,d){for(;a=b.shift();)a.unsubscribe();throw d}}}},3101:(Fe,Y,p)=>{"use strict";p.d(Y,{E:()=>k});var t=p(4408);let f,e=1;const M={};function a(U){return U in M&&(delete M[U],!0)}const b={setImmediate(U){const Z=e++;return M[Z]=!0,f||(f=Promise.resolve()),f.then(()=>a(Z)&&U()),Z},clearImmediate(U){a(U)}},{setImmediate:P,clearImmediate:h}=b,A={setImmediate(...U){const{delegate:Z}=A;return((null==Z?void 0:Z.setImmediate)||P)(...U)},clearImmediate(U){const{delegate:Z}=A;return((null==Z?void 0:Z.clearImmediate)||h)(U)},delegate:void 0};var D=p(7565);const k=new class L extends D.v{flush(Z){this._active=!0;const j=this._scheduled;this._scheduled=void 0;const{actions:ne}=this;let X;Z=Z||ne.shift();do{if(X=Z.execute(Z.state,Z.delay))break}while((Z=ne[0])&&Z.id===j&&ne.shift());if(this._active=!1,X){for(;(Z=ne[0])&&Z.id===j&&ne.shift();)Z.unsubscribe();throw X}}}(class w extends t.o{constructor(Z,j){super(Z,j),this.scheduler=Z,this.work=j}requestAsyncId(Z,j,ne=0){return null!==ne&&ne>0?super.requestAsyncId(Z,j,ne):(Z.actions.push(this),Z._scheduled||(Z._scheduled=A.setImmediate(Z.flush.bind(Z,void 0))))}recycleAsyncId(Z,j,ne=0){if(null!=ne&&ne>0||null==ne&&this.delay>0)return super.recycleAsyncId(Z,j,ne);Z.actions.some(X=>X.id===j)||(A.clearImmediate(j),Z._scheduled=void 0)}})},4986:(Fe,Y,p)=>{"use strict";p.d(Y,{P:()=>M,z:()=>f});var t=p(4408);const f=new(p(7565).v)(t.o),M=f},6063:(Fe,Y,p)=>{"use strict";p.d(Y,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(Fe,Y,p)=>{"use strict";p.d(Y,{N:()=>a});var t=p(4408),f=p(7565);const a=new class M extends f.v{}(class e extends t.o{constructor(P,h){super(P,h),this.scheduler=P,this.work=h}schedule(P,h=0){return h>0?super.schedule(P,h):(this.delay=h,this.state=P,this.scheduler.flush(this),this)}execute(P,h){return h>0||this.closed?super.execute(P,h):this._execute(P,h)}requestAsyncId(P,h,A=0){return null!=A&&A>0||null==A&&this.delay>0?super.requestAsyncId(P,h,A):P.flush(this)}})},3410:(Fe,Y,p)=>{"use strict";p.d(Y,{z:()=>t});const t={setTimeout(e,f,...M){const{delegate:a}=t;return(null==a?void 0:a.setTimeout)?a.setTimeout(e,f,...M):setTimeout(e,f,...M)},clearTimeout(e){const{delegate:f}=t;return((null==f?void 0:f.clearTimeout)||clearTimeout)(e)},delegate:void 0}},2202:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Fe,Y,p)=>{"use strict";p.d(Y,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Fe,Y,p)=>{"use strict";p.d(Y,{K:()=>e});const e=(0,p(3888).d)(f=>function(){f(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Fe,Y,p)=>{"use strict";p.d(Y,{_6:()=>b,jO:()=>M,yG:()=>a});var t=p(576),e=p(3532);function f(d){return d[d.length-1]}function M(d){return(0,t.m)(f(d))?d.pop():void 0}function a(d){return(0,e.K)(f(d))?d.pop():void 0}function b(d,P){return"number"==typeof f(d)?d.pop():P}},4742:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>a});const{isArray:t}=Array,{getPrototypeOf:e,prototype:f,keys:M}=Object;function a(d){if(1===d.length){const P=d[0];if(t(P))return{args:P,keys:null};if(function b(d){return d&&"object"==typeof d&&e(d)===f}(P)){const h=M(P);return{args:h.map(A=>P[A]),keys:h}}}return{args:d,keys:null}}},8737:(Fe,Y,p)=>{"use strict";function t(e,f){if(e){const M=e.indexOf(f);0<=M&&e.splice(M,1)}}p.d(Y,{P:()=>t})},3888:(Fe,Y,p)=>{"use strict";function t(e){const M=e(a=>{Error.call(a),a.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}p.d(Y,{d:()=>t})},1810:(Fe,Y,p)=>{"use strict";function t(e,f){return e.reduce((M,a,b)=>(M[a]=f[b],M),{})}p.d(Y,{n:()=>t})},2806:(Fe,Y,p)=>{"use strict";p.d(Y,{O:()=>M,x:()=>f});var t=p(2416);let e=null;function f(a){if(t.v.useDeprecatedSynchronousErrorHandling){const b=!e;if(b&&(e={errorThrown:!1,error:null}),a(),b){const{errorThrown:d,error:P}=e;if(e=null,d)throw P}}else a()}function M(a){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=a)}},9672:(Fe,Y,p)=>{"use strict";function t(e,f,M,a=0,b=!1){const d=f.schedule(function(){M(),b?e.add(this.schedule(null,a)):this.unsubscribe()},a);if(e.add(d),!b)return d}p.d(Y,{f:()=>t})},4671:(Fe,Y,p)=>{"use strict";function t(e){return e}p.d(Y,{y:()=>t})},1144:(Fe,Y,p)=>{"use strict";p.d(Y,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>e});var t=p(576);function e(f){return Symbol.asyncIterator&&(0,t.m)(null==f?void 0:f[Symbol.asyncIterator])}},1165:(Fe,Y,p)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}p.d(Y,{q:()=>t})},576:(Fe,Y,p)=>{"use strict";function t(e){return"function"==typeof e}p.d(Y,{m:()=>t})},3670:(Fe,Y,p)=>{"use strict";p.d(Y,{c:()=>f});var t=p(8822),e=p(576);function f(M){return(0,e.m)(M[t.L])}},6495:(Fe,Y,p)=>{"use strict";p.d(Y,{T:()=>f});var t=p(2202),e=p(576);function f(M){return(0,e.m)(null==M?void 0:M[t.h])}},5191:(Fe,Y,p)=>{"use strict";p.d(Y,{b:()=>f});var t=p(8306),e=p(576);function f(M){return!!M&&(M instanceof t.y||(0,e.m)(M.lift)&&(0,e.m)(M.subscribe))}},8239:(Fe,Y,p)=>{"use strict";p.d(Y,{t:()=>e});var t=p(576);function e(f){return(0,t.m)(null==f?void 0:f.then)}},3260:(Fe,Y,p)=>{"use strict";p.d(Y,{L:()=>M,Q:()=>f});var t=p(655),e=p(576);function f(a){return(0,t.FC)(this,arguments,function*(){const d=a.getReader();try{for(;;){const{value:P,done:h}=yield(0,t.qq)(d.read());if(h)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(P)}}finally{d.releaseLock()}})}function M(a){return(0,e.m)(null==a?void 0:a.getReader)}},3532:(Fe,Y,p)=>{"use strict";p.d(Y,{K:()=>e});var t=p(576);function e(f){return f&&(0,t.m)(f.schedule)}},4482:(Fe,Y,p)=>{"use strict";p.d(Y,{A:()=>e,e:()=>f});var t=p(576);function e(M){return(0,t.m)(null==M?void 0:M.lift)}function f(M){return a=>{if(e(a))return a.lift(function(b){try{return M(b,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Fe,Y,p)=>{"use strict";p.d(Y,{Z:()=>M});var t=p(4004);const{isArray:e}=Array;function M(a){return(0,t.U)(b=>function f(a,b){return e(b)?a(...b):a(b)}(a,b))}},5032:(Fe,Y,p)=>{"use strict";function t(){}p.d(Y,{Z:()=>t})},7849:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>f});var t=p(2416),e=p(3410);function f(M){e.z.setTimeout(()=>{const{onUnhandledError:a}=t.v;if(!a)throw M;a(M)})}},4532:(Fe,Y,p)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(Y,{z:()=>t})},3502:(Fe,Y,p)=>{var t=p(3172),e=t.Buffer;function f(a,b){for(var d in a)b[d]=a[d]}function M(a,b,d){return e(a,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Fe.exports=t:(f(t,Y),Y.Buffer=M),f(e,M),M.from=function(a,b,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,b,d)},M.alloc=function(a,b,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=e(a);return void 0!==b?"string"==typeof d?P.fill(b,d):P.fill(b):P.fill(0),P},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},2038:(Fe,Y,p)=>{"use strict";var M,t=p(3172),e=t.Buffer,f={};for(M in t)!t.hasOwnProperty(M)||"SlowBuffer"===M||"Buffer"===M||(f[M]=t[M]);var a=f.Buffer={};for(M in e)!e.hasOwnProperty(M)||"allocUnsafe"===M||"allocUnsafeSlow"===M||(a[M]=e[M]);if(f.Buffer.prototype=e.prototype,(!a.from||a.from===Uint8Array.from)&&(a.from=function(b,d,P){if("number"==typeof b)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof b);if(b&&void 0===b.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);return e(b,d,P)}),a.alloc||(a.alloc=function(b,d,P){if("number"!=typeof b)throw new TypeError('The "size" argument must be of type number. Received type '+typeof b);if(b<0||b>=2*(1<<30))throw new RangeError('The value "'+b+'" is invalid for option "size"');var h=e(b);return d&&0!==d.length?"string"==typeof P?h.fill(d,P):h.fill(d):h.fill(0),h}),!f.kStringMaxLength)try{f.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(b){}f.constants||(f.constants={MAX_LENGTH:f.kMaxLength},f.kStringMaxLength&&(f.constants.MAX_STRING_LENGTH=f.kStringMaxLength)),Fe.exports=f},6692:(Fe,Y,p)=>{var t=p(3502).Buffer;function e(f,M){this._block=t.alloc(f),this._finalSize=M,this._blockSize=f,this._len=0}e.prototype.update=function(f,M){"string"==typeof f&&(f=t.from(f,M=M||"utf8"));for(var a=this._block,b=this._blockSize,d=f.length,P=this._len,h=0;h=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 b=(4294967295&a)>>>0;this._block.writeUInt32BE((a-b)/4294967296,this._blockSize-8),this._block.writeUInt32BE(b,this._blockSize-4)}this._update(this._block);var P=this._hash();return f?P.toString(f):P},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Fe.exports=e},5244:(Fe,Y,p)=>{var t=Fe.exports=function(f){f=f.toLowerCase();var M=t[f];if(!M)throw new Error(f+" is not supported (we accept pull requests)");return new M};t.sha=p(8932),t.sha1=p(7736),t.sha224=p(5044),t.sha256=p(5014),t.sha384=p(6540),t.sha512=p(117)},8932:(Fe,Y,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function b(){this.init(),this._w=a,e.call(this,64,56)}function d(A){return A<<5|A>>>27}function P(A){return A<<30|A>>>2}function h(A,w,D,L){return 0===A?w&D|~w&L:2===A?w&D|w&L|D&L:w^D^L}t(b,e),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},b.prototype._update=function(A){for(var w=this._w,D=0|this._a,L=0|this._b,k=0|this._c,S=0|this._d,U=0|this._e,Z=0;Z<16;++Z)w[Z]=A.readInt32BE(4*Z);for(;Z<80;++Z)w[Z]=w[Z-3]^w[Z-8]^w[Z-14]^w[Z-16];for(var j=0;j<80;++j){var ne=~~(j/20),X=d(D)+h(ne,L,k,S)+U+w[j]+M[ne]|0;U=S,S=k,k=P(L),L=D,D=X}this._a=D+this._a|0,this._b=L+this._b|0,this._c=k+this._c|0,this._d=S+this._d|0,this._e=U+this._e|0},b.prototype._hash=function(){var A=f.allocUnsafe(20);return A.writeInt32BE(0|this._a,0),A.writeInt32BE(0|this._b,4),A.writeInt32BE(0|this._c,8),A.writeInt32BE(0|this._d,12),A.writeInt32BE(0|this._e,16),A},Fe.exports=b},7736:(Fe,Y,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function b(){this.init(),this._w=a,e.call(this,64,56)}function d(w){return w<<1|w>>>31}function P(w){return w<<5|w>>>27}function h(w){return w<<30|w>>>2}function A(w,D,L,k){return 0===w?D&L|~D&k:2===w?D&L|D&k|L&k:D^L^k}t(b,e),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},b.prototype._update=function(w){for(var D=this._w,L=0|this._a,k=0|this._b,S=0|this._c,U=0|this._d,Z=0|this._e,j=0;j<16;++j)D[j]=w.readInt32BE(4*j);for(;j<80;++j)D[j]=d(D[j-3]^D[j-8]^D[j-14]^D[j-16]);for(var ne=0;ne<80;++ne){var X=~~(ne/20),de=P(L)+A(X,k,S,U)+Z+D[ne]+M[X]|0;Z=U,U=S,S=h(k),k=L,L=de}this._a=L+this._a|0,this._b=k+this._b|0,this._c=S+this._c|0,this._d=U+this._d|0,this._e=Z+this._e|0},b.prototype._hash=function(){var w=f.allocUnsafe(20);return w.writeInt32BE(0|this._a,0),w.writeInt32BE(0|this._b,4),w.writeInt32BE(0|this._c,8),w.writeInt32BE(0|this._d,12),w.writeInt32BE(0|this._e,16),w},Fe.exports=b},5044:(Fe,Y,p)=>{var t=p(3894),e=p(5014),f=p(6692),M=p(3502).Buffer,a=new Array(64);function b(){this.init(),this._w=a,f.call(this,64,56)}t(b,e),b.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},b.prototype._hash=function(){var d=M.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},Fe.exports=b},5014:(Fe,Y,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[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 b(){this.init(),this._w=a,e.call(this,64,56)}function d(L,k,S){return S^L&(k^S)}function P(L,k,S){return L&k|S&(L|k)}function h(L){return(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10)}function A(L){return(L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7)}function w(L){return(L>>>7|L<<25)^(L>>>18|L<<14)^L>>>3}function D(L){return(L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10}t(b,e),b.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},b.prototype._update=function(L){for(var k=this._w,S=0|this._a,U=0|this._b,Z=0|this._c,j=0|this._d,ne=0|this._e,X=0|this._f,de=0|this._g,ee=0|this._h,te=0;te<16;++te)k[te]=L.readInt32BE(4*te);for(;te<64;++te)k[te]=D(k[te-2])+k[te-7]+w(k[te-15])+k[te-16]|0;for(var ce=0;ce<64;++ce){var J=ee+A(ne)+d(ne,X,de)+M[ce]+k[ce]|0,me=h(S)+P(S,U,Z)|0;ee=de,de=X,X=ne,ne=j+J|0,j=Z,Z=U,U=S,S=J+me|0}this._a=S+this._a|0,this._b=U+this._b|0,this._c=Z+this._c|0,this._d=j+this._d|0,this._e=ne+this._e|0,this._f=X+this._f|0,this._g=de+this._g|0,this._h=ee+this._h|0},b.prototype._hash=function(){var L=f.allocUnsafe(32);return L.writeInt32BE(this._a,0),L.writeInt32BE(this._b,4),L.writeInt32BE(this._c,8),L.writeInt32BE(this._d,12),L.writeInt32BE(this._e,16),L.writeInt32BE(this._f,20),L.writeInt32BE(this._g,24),L.writeInt32BE(this._h,28),L},Fe.exports=b},6540:(Fe,Y,p)=>{var t=p(3894),e=p(117),f=p(6692),M=p(3502).Buffer,a=new Array(160);function b(){this.init(),this._w=a,f.call(this,128,112)}t(b,e),b.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},b.prototype._hash=function(){var d=M.allocUnsafe(48);function P(h,A,w){d.writeInt32BE(h,w),d.writeInt32BE(A,w+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},Fe.exports=b},117:(Fe,Y,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[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 b(){this.init(),this._w=a,e.call(this,128,112)}function d(U,Z,j){return j^U&(Z^j)}function P(U,Z,j){return U&Z|j&(U|Z)}function h(U,Z){return(U>>>28|Z<<4)^(Z>>>2|U<<30)^(Z>>>7|U<<25)}function A(U,Z){return(U>>>14|Z<<18)^(U>>>18|Z<<14)^(Z>>>9|U<<23)}function w(U,Z){return(U>>>1|Z<<31)^(U>>>8|Z<<24)^U>>>7}function D(U,Z){return(U>>>1|Z<<31)^(U>>>8|Z<<24)^(U>>>7|Z<<25)}function L(U,Z){return(U>>>19|Z<<13)^(Z>>>29|U<<3)^U>>>6}function k(U,Z){return(U>>>19|Z<<13)^(Z>>>29|U<<3)^(U>>>6|Z<<26)}function S(U,Z){return U>>>0>>0?1:0}t(b,e),b.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},b.prototype._update=function(U){for(var Z=this._w,j=0|this._ah,ne=0|this._bh,X=0|this._ch,de=0|this._dh,ee=0|this._eh,te=0|this._fh,ce=0|this._gh,J=0|this._hh,me=0|this._al,x=0|this._bl,i=0|this._cl,r=0|this._dl,u=0|this._el,c=0|this._fl,_=0|this._gl,E=0|this._hl,I=0;I<32;I+=2)Z[I]=U.readInt32BE(4*I),Z[I+1]=U.readInt32BE(4*I+4);for(;I<160;I+=2){var v=Z[I-30],n=Z[I-30+1],C=w(v,n),B=D(n,v),N=L(v=Z[I-4],n=Z[I-4+1]),z=k(n,v),be=Z[I-32],Re=Z[I-32+1],we=B+Z[I-14+1]|0,Q=C+Z[I-14]+S(we,B)|0;Q=(Q=Q+N+S(we=we+z|0,z)|0)+be+S(we=we+Re|0,Re)|0,Z[I]=Q,Z[I+1]=we}for(var Ge=0;Ge<160;Ge+=2){Q=Z[Ge],we=Z[Ge+1];var ve=P(j,ne,X),F=P(me,x,i),De=h(j,me),lt=h(me,j),Ie=A(ee,u),Ae=A(u,ee),se=M[Ge],Te=M[Ge+1],ye=d(ee,te,ce),W=d(u,c,_),$=E+Ae|0,ue=J+Ie+S($,E)|0;ue=(ue=(ue=ue+ye+S($=$+W|0,W)|0)+se+S($=$+Te|0,Te)|0)+Q+S($=$+we|0,we)|0;var Ce=lt+F|0,Le=De+ve+S(Ce,lt)|0;J=ce,E=_,ce=te,_=c,te=ee,c=u,ee=de+ue+S(u=r+$|0,r)|0,de=X,r=i,X=ne,i=x,ne=j,x=me,j=ue+Le+S(me=$+Ce|0,$)|0}this._al=this._al+me|0,this._bl=this._bl+x|0,this._cl=this._cl+i|0,this._dl=this._dl+r|0,this._el=this._el+u|0,this._fl=this._fl+c|0,this._gl=this._gl+_|0,this._hl=this._hl+E|0,this._ah=this._ah+j+S(this._al,me)|0,this._bh=this._bh+ne+S(this._bl,x)|0,this._ch=this._ch+X+S(this._cl,i)|0,this._dh=this._dh+de+S(this._dl,r)|0,this._eh=this._eh+ee+S(this._el,u)|0,this._fh=this._fh+te+S(this._fl,c)|0,this._gh=this._gh+ce+S(this._gl,_)|0,this._hh=this._hh+J+S(this._hl,E)|0},b.prototype._hash=function(){var U=f.allocUnsafe(64);function Z(j,ne,X){U.writeInt32BE(j,X),U.writeInt32BE(ne,X+4)}return Z(this._ah,this._al,0),Z(this._bh,this._bl,8),Z(this._ch,this._cl,16),Z(this._dh,this._dl,24),Z(this._eh,this._el,32),Z(this._fh,this._fl,40),Z(this._gh,this._gl,48),Z(this._hh,this._hl,56),U},Fe.exports=b},8012:function(Fe,Y,p){!function(t){"use strict";var e={};Fe.exports?(e.bytesToHex=p(6128).bytesToHex,e.convertString=p(5612),Fe.exports=P):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=P);var f=[];!function(){function h(L){for(var k=Math.sqrt(L),S=2;S<=k;S++)if(!(L%S))return!1;return!0}for(var w=2,D=0;D<64;)h(w)&&(f[D]=4294967296*((L=Math.pow(w,1/3))-(0|L))|0,D++),w++;var L}();var b=[],d=function(h,A,w){for(var D=h[0],L=h[1],k=h[2],S=h[3],U=h[4],Z=h[5],j=h[6],ne=h[7],X=0;X<64;X++){if(X<16)b[X]=0|A[w+X];else{var de=b[X-15],te=b[X-2];b[X]=((de<<25|de>>>7)^(de<<14|de>>>18)^de>>>3)+b[X-7]+((te<<15|te>>>17)^(te<<13|te>>>19)^te>>>10)+b[X-16]}var me=D&L^D&k^L&k,r=ne+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&Z^~U&j)+f[X]+b[X];ne=j,j=Z,Z=U,U=S+r|0,S=k,k=L,L=D,D=r+(((D<<30|D>>>2)^(D<<19|D>>>13)^(D<<10|D>>>22))+me)|0}h[0]=h[0]+D|0,h[1]=h[1]+L|0,h[2]=h[2]+k|0,h[3]=h[3]+S|0,h[4]=h[4]+U|0,h[5]=h[5]+Z|0,h[6]=h[6]+j|0,h[7]=h[7]+ne|0};function P(h,A){h.constructor===String&&(h=e.convertString.UTF8.stringToBytes(h));var w=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],D=function(h){for(var A=[],w=0,D=0;w>>5]|=h[w]<<24-D%32;return A}(h),L=8*h.length;D[L>>5]|=128<<24-L%32,D[15+(L+64>>9<<4)]=L;for(var k=0;k>>5]>>>24-w%32&255);return A}(w);return A&&A.asBytes?S:A&&A.asString?e.convertString.bytesToString(S):e.bytesToHex(S)}P.x2=function(h,A){return P(P(h,{asBytes:!0}),A)}}(this)},4315:(Fe,Y,p)=>{"use strict";const t=Symbol.prototype.valueOf,e=p(2872);Fe.exports=function f(h,A){switch(e(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const A=h.length,w=Buffer.allocUnsafe?Buffer.allocUnsafe(A):Buffer.from(A);return h.copy(w),w}(h);case"symbol":return function P(h){return t?Object(t.call(h)):{}}(h);case"arraybuffer":return function a(h){const A=new h.constructor(h.byteLength);return new Uint8Array(A).set(new Uint8Array(h)),A}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function b(h,A){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function M(h){const A=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,w=new h.constructor(h.source,A);return w.lastIndex=h.lastIndex,w}(h);case"error":return Object.create(h);default:return h}}},295:(Fe,Y,p)=>{Fe.exports=f;var t=p(9069).EventEmitter;function f(){t.call(this)}p(3894)(f,t),f.Readable=p(3154),f.Writable=p(520),f.Duplex=p(1339),f.Transform=p(6025),f.PassThrough=p(6071),f.finished=p(7542),f.pipeline=p(954),f.Stream=f,f.prototype.pipe=function(M,a){var b=this;function d(k){M.writable&&!1===M.write(k)&&b.pause&&b.pause()}function P(){b.readable&&b.resume&&b.resume()}b.on("data",d),M.on("drain",P),!M._isStdio&&(!a||!1!==a.end)&&(b.on("end",A),b.on("close",w));var h=!1;function A(){h||(h=!0,M.end())}function w(){h||(h=!0,"function"==typeof M.destroy&&M.destroy())}function D(k){if(L(),0===t.listenerCount(this,"error"))throw k}function L(){b.removeListener("data",d),M.removeListener("drain",P),b.removeListener("end",A),b.removeListener("close",w),b.removeListener("error",D),M.removeListener("error",D),b.removeListener("end",L),b.removeListener("close",L),M.removeListener("close",L)}return b.on("error",D),M.on("error",D),b.on("end",L),b.on("close",L),M.on("close",L),M.emit("pipe",b),M}},3054:(Fe,Y,p)=>{"use strict";var t=p(858).Buffer,e=t.isEncoding||function(j){switch((j=""+j)&&j.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(j){var ne;switch(this.encoding=function M(j){var ne=function f(j){if(!j)return"utf8";for(var ne;;)switch(j){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 j;default:if(ne)return;j=(""+j).toLowerCase(),ne=!0}}(j);if("string"!=typeof ne&&(t.isEncoding===e||!e(j)))throw new Error("Unknown encoding: "+j);return ne||j}(j),this.encoding){case"utf16le":this.text=D,this.end=L,ne=4;break;case"utf8":this.fillLast=h,ne=4;break;case"base64":this.text=k,this.end=S,ne=3;break;default:return this.write=U,void(this.end=Z)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(ne)}function b(j){return j<=127?0:j>>5==6?2:j>>4==14?3:j>>3==30?4:j>>6==2?-1:-2}function h(j){var ne=this.lastTotal-this.lastNeed,X=function P(j,ne,X){if(128!=(192&ne[0]))return j.lastNeed=0,"\ufffd";if(j.lastNeed>1&&ne.length>1){if(128!=(192&ne[1]))return j.lastNeed=1,"\ufffd";if(j.lastNeed>2&&ne.length>2&&128!=(192&ne[2]))return j.lastNeed=2,"\ufffd"}}(this,j);return void 0!==X?X:this.lastNeed<=j.length?(j.copy(this.lastChar,ne,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(j.copy(this.lastChar,ne,0,j.length),void(this.lastNeed-=j.length))}function D(j,ne){if((j.length-ne)%2==0){var X=j.toString("utf16le",ne);if(X){var de=X.charCodeAt(X.length-1);if(de>=55296&&de<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1],X.slice(0,-1)}return X}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=j[j.length-1],j.toString("utf16le",ne,j.length-1)}function L(j){var ne=j&&j.length?this.write(j):"";return this.lastNeed?ne+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ne}function k(j,ne){var X=(j.length-ne)%3;return 0===X?j.toString("base64",ne):(this.lastNeed=3-X,this.lastTotal=3,1===X?this.lastChar[0]=j[j.length-1]:(this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1]),j.toString("base64",ne,j.length-X))}function S(j){var ne=j&&j.length?this.write(j):"";return this.lastNeed?ne+this.lastChar.toString("base64",0,3-this.lastNeed):ne}function U(j){return j.toString(this.encoding)}function Z(j){return j&&j.length?this.write(j):""}Y.s=a,a.prototype.write=function(j){if(0===j.length)return"";var ne,X;if(this.lastNeed){if(void 0===(ne=this.fillLast(j)))return"";X=this.lastNeed,this.lastNeed=0}else X=0;return X=0?(ee>0&&(j.lastNeed=ee-1),ee):--de=0?(ee>0&&(j.lastNeed=ee-2),ee):--de=0?(ee>0&&(2===ee?ee=0:j.lastNeed=ee-3),ee):0}(this,j,ne);if(!this.lastNeed)return j.toString("utf8",ne);this.lastTotal=X;var de=j.length-(X-this.lastNeed);return j.copy(this.lastChar,0,de),j.toString("utf8",ne,de)},a.prototype.fillLast=function(j){if(this.lastNeed<=j.length)return j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,j.length),this.lastNeed-=j.length}},858:(Fe,Y,p)=>{var t=p(3172),e=t.Buffer;function f(a,b){for(var d in a)b[d]=a[d]}function M(a,b,d){return e(a,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Fe.exports=t:(f(t,Y),Y.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(a,b,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,b,d)},M.alloc=function(a,b,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=e(a);return void 0!==b?"string"==typeof d?P.fill(b,d):P.fill(b):P.fill(0),P},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},2167:(Fe,Y,p)=>{var t=p(4606);Y.encode=t.encode,Y.decode=t.decode},4606:(Fe,Y)=>{"use strict";var t=[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];Y.encode=function(f){Buffer.isBuffer(f)||(f=new Buffer(f));for(var M=0,a=0,b=0,d=0,P=new Buffer(8*function e(f){var M=Math.floor(f.length/5);return f.length%5==0?M:M+1}(f));M3?(d=(d=h&255>>b)<<(b=(b+5)%8)|(M+1>8-b,M++):(d=h>>8-(b+5)&31,0==(b=(b+5)%8)&&M++),P[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(d),a++}for(M=a;M>>(M=(M+5)%8),d++,b=255&a<<8-M)}return P.slice(0,d)}},4364:Fe=>{function p(t){try{if(!global.localStorage)return!1}catch(f){return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}Fe.exports=function Y(t,e){if(p("noDeprecation"))return t;var f=!1;return function M(){if(!f){if(p("throwDeprecation"))throw new Error(e);p("traceDeprecation")?console.trace(e):console.warn(e),f=!0}return t.apply(this,arguments)}}},655:(Fe,Y,p)=>{"use strict";function a(i,r,u,c){var I,_=arguments.length,E=_<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,u):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(i,r,u,c);else for(var v=i.length-1;v>=0;v--)(I=i[v])&&(E=(_<3?I(E):_>3?I(r,u,E):I(r,u))||E);return _>3&&E&&Object.defineProperty(r,u,E),E}function P(i,r,u,c){return new(u||(u=Promise))(function(E,I){function v(B){try{C(c.next(B))}catch(N){I(N)}}function n(B){try{C(c.throw(B))}catch(N){I(N)}}function C(B){B.done?E(B.value):function _(E){return E instanceof u?E:new u(function(I){I(E)})}(B.value).then(v,n)}C((c=c.apply(i,r||[])).next())})}function Z(i){return this instanceof Z?(this.v=i,this):new Z(i)}function j(i,r,u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _,c=u.apply(i,r||[]),E=[];return _={},I("next"),I("throw"),I("return"),_[Symbol.asyncIterator]=function(){return this},_;function I(z){c[z]&&(_[z]=function(oe){return new Promise(function(ge,be){E.push([z,oe,ge,be])>1||v(z,oe)})})}function v(z,oe){try{!function n(z){z.value instanceof Z?Promise.resolve(z.value.v).then(C,B):N(E[0][2],z)}(c[z](oe))}catch(ge){N(E[0][3],ge)}}function C(z){v("next",z)}function B(z){v("throw",z)}function N(z,oe){z(oe),E.shift(),E.length&&v(E[0][0],E[0][1])}}function X(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function D(i){var r="function"==typeof Symbol&&Symbol.iterator,u=r&&i[r],c=0;if(u)return u.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u={},c("next"),c("throw"),c("return"),u[Symbol.asyncIterator]=function(){return this},u);function c(E){u[E]=i[E]&&function(I){return new Promise(function(v,n){!function _(E,I,v,n){Promise.resolve(n).then(function(C){E({value:C,done:v})},I)}(v,n,(I=i[E](I)).done,I.value)})}}}p.d(Y,{FC:()=>j,KL:()=>X,gn:()=>a,mG:()=>P,qq:()=>Z})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Fe,Y,p)=>{"use strict";p.d(Y,{F4:()=>A,IO:()=>S,LC:()=>e,SB:()=>h,X$:()=>M,ZE:()=>ne,ZN:()=>j,_j:()=>t,eR:()=>w,jt:()=>a,k1:()=>X,l3:()=>f,oB:()=>P,pV:()=>L,ru:()=>b,vP:()=>d});class t{}class e{}const f="*";function M(de,ee){return{type:7,name:de,definitions:ee,options:{}}}function a(de,ee=null){return{type:4,styles:ee,timings:de}}function b(de,ee=null){return{type:3,steps:de,options:ee}}function d(de,ee=null){return{type:2,steps:de,options:ee}}function P(de){return{type:6,styles:de,offset:null}}function h(de,ee,te){return{type:0,name:de,styles:ee,options:te}}function A(de){return{type:5,steps:de}}function w(de,ee,te=null){return{type:1,expr:de,animation:ee,options:te}}function L(de=null){return{type:9,options:de}}function S(de,ee,te=null){return{type:11,selector:de,animation:ee,options:te}}function Z(de){Promise.resolve(null).then(de)}class j{constructor(ee=0,te=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ee+te}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ee=>ee()),this._onDoneFns=[])}onStart(ee){this._onStartFns.push(ee)}onDone(ee){this._onDoneFns.push(ee)}onDestroy(ee){this._onDestroyFns.push(ee)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ee=>ee()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ee=>ee()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ee){this._position=this.totalTime?ee*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ee){const te="start"==ee?this._onStartFns:this._onDoneFns;te.forEach(ce=>ce()),te.length=0}}class ne{constructor(ee){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ee;let te=0,ce=0,J=0;const me=this.players.length;0==me?Z(()=>this._onFinish()):this.players.forEach(x=>{x.onDone(()=>{++te==me&&this._onFinish()}),x.onDestroy(()=>{++ce==me&&this._onDestroy()}),x.onStart(()=>{++J==me&&this._onStart()})}),this.totalTime=this.players.reduce((x,i)=>Math.max(x,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ee=>ee()),this._onDoneFns=[])}init(){this.players.forEach(ee=>ee.init())}onStart(ee){this._onStartFns.push(ee)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ee=>ee()),this._onStartFns=[])}onDone(ee){this._onDoneFns.push(ee)}onDestroy(ee){this._onDestroyFns.push(ee)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ee=>ee.play())}pause(){this.players.forEach(ee=>ee.pause())}restart(){this.players.forEach(ee=>ee.restart())}finish(){this._onFinish(),this.players.forEach(ee=>ee.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ee=>ee.destroy()),this._onDestroyFns.forEach(ee=>ee()),this._onDestroyFns=[])}reset(){this.players.forEach(ee=>ee.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ee){const te=ee*this.totalTime;this.players.forEach(ce=>{const J=ce.totalTime?Math.min(1,te/ce.totalTime):1;ce.setPosition(J)})}getPosition(){const ee=this.players.reduce((te,ce)=>null===te||ce.totalTime>te.totalTime?ce:te,null);return null!=ee?ee.getPosition():0}beforeDestroy(){this.players.forEach(ee=>{ee.beforeDestroy&&ee.beforeDestroy()})}triggerCallback(ee){const te="start"==ee?this._onStartFns:this._onDoneFns;te.forEach(ce=>ce()),te.length=0}}const X="!"},5664:(Fe,Y,p)=>{"use strict";p.d(Y,{$s:()=>x,Em:()=>_,Kd:()=>di,X6:()=>Te,ic:()=>I,kH:()=>Nt,mK:()=>F,qV:()=>ve,qm:()=>$t,rt:()=>jt,s1:()=>c,tE:()=>xt,yG:()=>ye});var t=p(9808),e=p(5e3),f=p(925),M=p(7579),a=p(727),b=p(1135),d=p(9646),P=p(1159),h=p(8505),A=p(8372),w=p(9300),D=p(4004),L=p(5698),k=p(5684),S=p(1884),U=p(2722),Z=p(3191),j=p(7144);function ee(Pe,Oe){return(Pe.getAttribute(Oe)||"").match(/\S+/g)||[]}const ce="cdk-describedby-message",J="cdk-describedby-host";let me=0,x=(()=>{class Pe{constructor(le,xe){this._platform=xe,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+me++,this._document=le}describe(le,xe,ht){if(!this._canBeDescribed(le,xe))return;const ft=i(xe,ht);"string"!=typeof xe?(r(xe),this._messageRegistry.set(ft,{messageElement:xe,referenceCount:0})):this._messageRegistry.has(ft)||this._createMessageElement(xe,ht),this._isElementDescribedByMessage(le,ft)||this._addMessageReference(le,ft)}removeDescription(le,xe,ht){var ft;if(!xe||!this._isElementNode(le))return;const Ht=i(xe,ht);if(this._isElementDescribedByMessage(le,Ht)&&this._removeMessageReference(le,Ht),"string"==typeof xe){const it=this._messageRegistry.get(Ht);it&&0===it.referenceCount&&this._deleteMessageElement(Ht)}0===(null===(ft=this._messagesContainer)||void 0===ft?void 0:ft.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var le;const xe=this._document.querySelectorAll(`[${J}="${this._id}"]`);for(let ht=0;ht0!=ht.indexOf(ce));le.setAttribute("aria-describedby",xe.join(" "))}_addMessageReference(le,xe){const ht=this._messageRegistry.get(xe);(function X(Pe,Oe,le){const xe=ee(Pe,Oe);xe.some(ht=>ht.trim()==le.trim())||(xe.push(le.trim()),Pe.setAttribute(Oe,xe.join(" ")))})(le,"aria-describedby",ht.messageElement.id),le.setAttribute(J,this._id),ht.referenceCount++}_removeMessageReference(le,xe){const ht=this._messageRegistry.get(xe);ht.referenceCount--,function de(Pe,Oe,le){const ht=ee(Pe,Oe).filter(ft=>ft!=le.trim());ht.length?Pe.setAttribute(Oe,ht.join(" ")):Pe.removeAttribute(Oe)}(le,"aria-describedby",ht.messageElement.id),le.removeAttribute(J)}_isElementDescribedByMessage(le,xe){const ht=ee(le,"aria-describedby"),ft=this._messageRegistry.get(xe),Ht=ft&&ft.messageElement.id;return!!Ht&&-1!=ht.indexOf(Ht)}_canBeDescribed(le,xe){if(!this._isElementNode(le))return!1;if(xe&&"object"==typeof xe)return!0;const ht=null==xe?"":`${xe}`.trim(),ft=le.getAttribute("aria-label");return!(!ht||ft&&ft.trim()===ht)}_isElementNode(le){return le.nodeType===this._document.ELEMENT_NODE}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(t.K0),e.LFG(f.t4))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function i(Pe,Oe){return"string"==typeof Pe?`${Oe||""}/${Pe}`:Pe}function r(Pe){Pe.id||(Pe.id=`${ce}-${me++}`)}class u{constructor(Oe){this._items=Oe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=a.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=le=>le.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,Oe instanceof e.n_E&&Oe.changes.subscribe(le=>{if(this._activeItem){const ht=le.toArray().indexOf(this._activeItem);ht>-1&&ht!==this._activeItemIndex&&(this._activeItemIndex=ht)}})}skipPredicate(Oe){return this._skipPredicateFn=Oe,this}withWrap(Oe=!0){return this._wrap=Oe,this}withVerticalOrientation(Oe=!0){return this._vertical=Oe,this}withHorizontalOrientation(Oe){return this._horizontal=Oe,this}withAllowedModifierKeys(Oe){return this._allowedModifierKeys=Oe,this}withTypeAhead(Oe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,h.b)(le=>this._pressedLetters.push(le)),(0,A.b)(Oe),(0,w.h)(()=>this._pressedLetters.length>0),(0,D.U)(()=>this._pressedLetters.join(""))).subscribe(le=>{const xe=this._getItemsArray();for(let ht=1;ht!Oe[ft]||this._allowedModifierKeys.indexOf(ft)>-1);switch(le){case P.Mf:return void this.tabOut.next();case P.JH:if(this._vertical&&ht){this.setNextItemActive();break}return;case P.LH:if(this._vertical&&ht){this.setPreviousItemActive();break}return;case P.SV:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case P.oh:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case P.Sd:if(this._homeAndEnd&&ht){this.setFirstItemActive();break}return;case P.uR:if(this._homeAndEnd&&ht){this.setLastItemActive();break}return;default:return void((ht||(0,P.Vb)(Oe,"shiftKey"))&&(Oe.key&&1===Oe.key.length?this._letterKeyStream.next(Oe.key.toLocaleUpperCase()):(le>=P.A&&le<=P.Z||le>=P.xE&&le<=P.aO)&&this._letterKeyStream.next(String.fromCharCode(le))))}this._pressedLetters=[],Oe.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(Oe){const le=this._getItemsArray(),xe="number"==typeof Oe?Oe:le.indexOf(Oe),ht=le[xe];this._activeItem=null==ht?null:ht,this._activeItemIndex=xe}_setActiveItemByDelta(Oe){this._wrap?this._setActiveInWrapMode(Oe):this._setActiveInDefaultMode(Oe)}_setActiveInWrapMode(Oe){const le=this._getItemsArray();for(let xe=1;xe<=le.length;xe++){const ht=(this._activeItemIndex+Oe*xe+le.length)%le.length;if(!this._skipPredicateFn(le[ht]))return void this.setActiveItem(ht)}}_setActiveInDefaultMode(Oe){this._setActiveItemByIndex(this._activeItemIndex+Oe,Oe)}_setActiveItemByIndex(Oe,le){const xe=this._getItemsArray();if(xe[Oe]){for(;this._skipPredicateFn(xe[Oe]);)if(!xe[Oe+=le])return;this.setActiveItem(Oe)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class c extends u{setActiveItem(Oe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Oe),this.activeItem&&this.activeItem.setActiveStyles()}}class _ extends u{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Oe){return this._origin=Oe,this}setActiveItem(Oe){super.setActiveItem(Oe),this.activeItem&&this.activeItem.focus(this._origin)}}let I=(()=>{class Pe{constructor(le){this._platform=le}isDisabled(le){return le.hasAttribute("disabled")}isVisible(le){return function n(Pe){return!!(Pe.offsetWidth||Pe.offsetHeight||"function"==typeof Pe.getClientRects&&Pe.getClientRects().length)}(le)&&"visible"===getComputedStyle(le).visibility}isTabbable(le){if(!this._platform.isBrowser)return!1;const xe=function v(Pe){try{return Pe.frameElement}catch(Oe){return null}}(function Q(Pe){return Pe.ownerDocument&&Pe.ownerDocument.defaultView||window}(le));if(xe&&(-1===be(xe)||!this.isVisible(xe)))return!1;let ht=le.nodeName.toLowerCase(),ft=be(le);return le.hasAttribute("contenteditable")?-1!==ft:!("iframe"===ht||"object"===ht||this._platform.WEBKIT&&this._platform.IOS&&!function Re(Pe){let Oe=Pe.nodeName.toLowerCase(),le="input"===Oe&&Pe.type;return"text"===le||"password"===le||"select"===Oe||"textarea"===Oe}(le))&&("audio"===ht?!!le.hasAttribute("controls")&&-1!==ft:"video"===ht?-1!==ft&&(null!==ft||this._platform.FIREFOX||le.hasAttribute("controls")):le.tabIndex>=0)}isFocusable(le,xe){return function we(Pe){return!function B(Pe){return function z(Pe){return"input"==Pe.nodeName.toLowerCase()}(Pe)&&"hidden"==Pe.type}(Pe)&&(function C(Pe){let Oe=Pe.nodeName.toLowerCase();return"input"===Oe||"select"===Oe||"button"===Oe||"textarea"===Oe}(Pe)||function N(Pe){return function oe(Pe){return"a"==Pe.nodeName.toLowerCase()}(Pe)&&Pe.hasAttribute("href")}(Pe)||Pe.hasAttribute("contenteditable")||ge(Pe))}(le)&&!this.isDisabled(le)&&((null==xe?void 0:xe.ignoreVisibility)||this.isVisible(le))}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(f.t4))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function ge(Pe){if(!Pe.hasAttribute("tabindex")||void 0===Pe.tabIndex)return!1;let Oe=Pe.getAttribute("tabindex");return!(!Oe||isNaN(parseInt(Oe,10)))}function be(Pe){if(!ge(Pe))return null;const Oe=parseInt(Pe.getAttribute("tabindex")||"",10);return isNaN(Oe)?-1:Oe}class Ge{constructor(Oe,le,xe,ht,ft=!1){this._element=Oe,this._checker=le,this._ngZone=xe,this._document=ht,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ft||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Oe){this._enabled=Oe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}destroy(){const Oe=this._startAnchor,le=this._endAnchor;Oe&&(Oe.removeEventListener("focus",this.startAnchorListener),Oe.remove()),le&&(le.removeEventListener("focus",this.endAnchorListener),le.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(Oe){return new Promise(le=>{this._executeOnStable(()=>le(this.focusInitialElement(Oe)))})}focusFirstTabbableElementWhenReady(Oe){return new Promise(le=>{this._executeOnStable(()=>le(this.focusFirstTabbableElement(Oe)))})}focusLastTabbableElementWhenReady(Oe){return new Promise(le=>{this._executeOnStable(()=>le(this.focusLastTabbableElement(Oe)))})}_getRegionBoundary(Oe){const le=this._element.querySelectorAll(`[cdk-focus-region-${Oe}], [cdkFocusRegion${Oe}], [cdk-focus-${Oe}]`);return"start"==Oe?le.length?le[0]:this._getFirstTabbableElement(this._element):le.length?le[le.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Oe){const le=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(le){if(!this._checker.isFocusable(le)){const xe=this._getFirstTabbableElement(le);return null==xe||xe.focus(Oe),!!xe}return le.focus(Oe),!0}return this.focusFirstTabbableElement(Oe)}focusFirstTabbableElement(Oe){const le=this._getRegionBoundary("start");return le&&le.focus(Oe),!!le}focusLastTabbableElement(Oe){const le=this._getRegionBoundary("end");return le&&le.focus(Oe),!!le}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Oe){if(this._checker.isFocusable(Oe)&&this._checker.isTabbable(Oe))return Oe;const le=Oe.children;for(let xe=0;xe=0;xe--){const ht=le[xe].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(le[xe]):null;if(ht)return ht}return null}_createAnchor(){const Oe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Oe),Oe.classList.add("cdk-visually-hidden"),Oe.classList.add("cdk-focus-trap-anchor"),Oe.setAttribute("aria-hidden","true"),Oe}_toggleAnchorTabIndex(Oe,le){Oe?le.setAttribute("tabindex","0"):le.removeAttribute("tabindex")}toggleAnchors(Oe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}_executeOnStable(Oe){this._ngZone.isStable?Oe():this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(Oe)}}let ve=(()=>{class Pe{constructor(le,xe,ht){this._checker=le,this._ngZone=xe,this._document=ht}create(le,xe=!1){return new Ge(le,this._checker,this._ngZone,this._document,xe)}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(I),e.LFG(e.R0b),e.LFG(t.K0))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),F=(()=>{class Pe{constructor(le,xe,ht){this._elementRef=le,this._focusTrapFactory=xe,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(le){this.focusTrap.enabled=(0,Z.Ig)(le)}get autoCapture(){return this._autoCapture}set autoCapture(le){this._autoCapture=(0,Z.Ig)(le)}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(le){const xe=le.autoCapture;xe&&!xe.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.Y36(e.SBq),e.Y36(ve),e.Y36(t.K0))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),Pe})();function Te(Pe){return 0===Pe.buttons||0===Pe.offsetX&&0===Pe.offsetY}function ye(Pe){const Oe=Pe.touches&&Pe.touches[0]||Pe.changedTouches&&Pe.changedTouches[0];return!(!Oe||-1!==Oe.identifier||null!=Oe.radiusX&&1!==Oe.radiusX||null!=Oe.radiusY&&1!==Oe.radiusY)}const W=new e.OlP("cdk-input-modality-detector-options"),$={ignoreKeys:[P.zL,P.jx,P.b2,P.MW,P.JU]},Ce=(0,f.i$)({passive:!0,capture:!0});let Le=(()=>{class Pe{constructor(le,xe,ht,ft){this._platform=le,this._mostRecentTarget=null,this._modality=new b.X(null),this._lastTouchMs=0,this._onKeydown=Ht=>{var it,Ne;(null===(Ne=null===(it=this._options)||void 0===it?void 0:it.ignoreKeys)||void 0===Ne?void 0:Ne.some(tt=>tt===Ht.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,f.sA)(Ht))},this._onMousedown=Ht=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Te(Ht)?"keyboard":"mouse"),this._mostRecentTarget=(0,f.sA)(Ht))},this._onTouchstart=Ht=>{ye(Ht)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,f.sA)(Ht))},this._options=Object.assign(Object.assign({},$),ft),this.modalityDetected=this._modality.pipe((0,k.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,S.x)()),le.isBrowser&&xe.runOutsideAngular(()=>{ht.addEventListener("keydown",this._onKeydown,Ce),ht.addEventListener("mousedown",this._onMousedown,Ce),ht.addEventListener("touchstart",this._onTouchstart,Ce)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ce),document.removeEventListener("mousedown",this._onMousedown,Ce),document.removeEventListener("touchstart",this._onTouchstart,Ce))}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(f.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(W,8))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const ct=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ut(){return null}}),Dt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let di=(()=>{class Pe{constructor(le,xe,ht,ft){this._ngZone=xe,this._defaultOptions=ft,this._document=ht,this._liveElement=le||this._createLiveElement()}announce(le,...xe){const ht=this._defaultOptions;let ft,Ht;return 1===xe.length&&"number"==typeof xe[0]?Ht=xe[0]:[ft,Ht]=xe,this.clear(),clearTimeout(this._previousTimeout),ft||(ft=ht&&ht.politeness?ht.politeness:"polite"),null==Ht&&ht&&(Ht=ht.duration),this._liveElement.setAttribute("aria-live",ft),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(it=>this._currentResolve=it)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=le,"number"==typeof Ht&&(this._previousTimeout=setTimeout(()=>this.clear(),Ht)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var le,xe;clearTimeout(this._previousTimeout),null===(le=this._liveElement)||void 0===le||le.remove(),this._liveElement=null,null===(xe=this._currentResolve)||void 0===xe||xe.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const le="cdk-live-announcer-element",xe=this._document.getElementsByClassName(le),ht=this._document.createElement("div");for(let ft=0;ft{class Pe{constructor(le,xe,ht,ft,Ht){this._ngZone=le,this._platform=xe,this._inputModalityDetector=ht,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 M.x,this._rootNodeFocusAndBlurListener=it=>{const Ne=(0,f.sA)(it),tt="focus"===it.type?this._onFocus:this._onBlur;for(let Je=Ne;Je;Je=Je.parentElement)tt.call(this,it,Je)},this._document=ft,this._detectionMode=(null==Ht?void 0:Ht.detectionMode)||0}monitor(le,xe=!1){const ht=(0,Z.fI)(le);if(!this._platform.isBrowser||1!==ht.nodeType)return(0,d.of)(null);const ft=(0,f.kV)(ht)||this._getDocument(),Ht=this._elementInfo.get(ht);if(Ht)return xe&&(Ht.checkChildren=!0),Ht.subject;const it={checkChildren:xe,subject:new M.x,rootNode:ft};return this._elementInfo.set(ht,it),this._registerGlobalListeners(it),it.subject}stopMonitoring(le){const xe=(0,Z.fI)(le),ht=this._elementInfo.get(xe);ht&&(ht.subject.complete(),this._setClasses(xe),this._elementInfo.delete(xe),this._removeGlobalListeners(ht))}focusVia(le,xe,ht){const ft=(0,Z.fI)(le);ft===this._getDocument().activeElement?this._getClosestElementsInfo(ft).forEach(([it,Ne])=>this._originChanged(it,xe,Ne)):(this._setOrigin(xe),"function"==typeof ft.focus&&ft.focus(ht))}ngOnDestroy(){this._elementInfo.forEach((le,xe)=>this.stopMonitoring(xe))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(le){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(le)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(le){return 1===this._detectionMode||!!(null==le?void 0:le.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(le,xe){le.classList.toggle("cdk-focused",!!xe),le.classList.toggle("cdk-touch-focused","touch"===xe),le.classList.toggle("cdk-keyboard-focused","keyboard"===xe),le.classList.toggle("cdk-mouse-focused","mouse"===xe),le.classList.toggle("cdk-program-focused","program"===xe)}_setOrigin(le,xe=!1){this._ngZone.runOutsideAngular(()=>{this._origin=le,this._originFromTouchInteraction="touch"===le&&xe,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(le,xe){const ht=this._elementInfo.get(xe),ft=(0,f.sA)(le);!ht||!ht.checkChildren&&xe!==ft||this._originChanged(xe,this._getFocusOrigin(ft),ht)}_onBlur(le,xe){const ht=this._elementInfo.get(xe);!ht||ht.checkChildren&&le.relatedTarget instanceof Node&&xe.contains(le.relatedTarget)||(this._setClasses(xe),this._emitOrigin(ht.subject,null))}_emitOrigin(le,xe){this._ngZone.run(()=>le.next(xe))}_registerGlobalListeners(le){if(!this._platform.isBrowser)return;const xe=le.rootNode,ht=this._rootNodeFocusListenerCount.get(xe)||0;ht||this._ngZone.runOutsideAngular(()=>{xe.addEventListener("focus",this._rootNodeFocusAndBlurListener,ui),xe.addEventListener("blur",this._rootNodeFocusAndBlurListener,ui)}),this._rootNodeFocusListenerCount.set(xe,ht+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,U.R)(this._stopInputModalityDetector)).subscribe(ft=>{this._setOrigin(ft,!0)}))}_removeGlobalListeners(le){const xe=le.rootNode;if(this._rootNodeFocusListenerCount.has(xe)){const ht=this._rootNodeFocusListenerCount.get(xe);ht>1?this._rootNodeFocusListenerCount.set(xe,ht-1):(xe.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ui),xe.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ui),this._rootNodeFocusListenerCount.delete(xe))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(le,xe,ht){this._setClasses(le,xe),this._emitOrigin(ht.subject,xe),this._lastFocusOrigin=xe}_getClosestElementsInfo(le){const xe=[];return this._elementInfo.forEach((ht,ft)=>{(ft===le||ht.checkChildren&&ft.contains(le))&&xe.push([ft,ht])}),xe}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(e.R0b),e.LFG(f.t4),e.LFG(Le),e.LFG(t.K0,8),e.LFG(Gt,8))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Nt=(()=>{class Pe{constructor(le,xe){this._elementRef=le,this._focusMonitor=xe,this.cdkFocusChange=new e.vpe}ngAfterViewInit(){const le=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(le,1===le.nodeType&&le.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(xe=>this.cdkFocusChange.emit(xe))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.Y36(e.SBq),e.Y36(xt))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Pe})();const gt="cdk-high-contrast-black-on-white",et="cdk-high-contrast-white-on-black",vt="cdk-high-contrast-active";let $t=(()=>{class Pe{constructor(le,xe){this._platform=le,this._document=xe}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const le=this._document.createElement("div");le.style.backgroundColor="rgb(1,2,3)",le.style.position="absolute",this._document.body.appendChild(le);const xe=this._document.defaultView||window,ht=xe&&xe.getComputedStyle?xe.getComputedStyle(le):null,ft=(ht&&ht.backgroundColor||"").replace(/ /g,"");switch(le.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 le=this._document.body.classList;le.remove(vt),le.remove(gt),le.remove(et),this._hasCheckedHighContrastMode=!0;const xe=this.getHighContrastMode();1===xe?(le.add(vt),le.add(gt)):2===xe&&(le.add(vt),le.add(et))}}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(f.t4),e.LFG(t.K0))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),jt=(()=>{class Pe{constructor(le){le._applyBodyHighContrastModeCssClasses()}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG($t))},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[j.Q8]]}),Pe})()},226:(Fe,Y,p)=>{"use strict";p.d(Y,{Is:()=>d,vT:()=>h});var t=p(5e3),e=p(9808);const f=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,t.f3M)(e.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 A{constructor(D){if(this.value="ltr",this.change=new t.vpe,D){const k=D.documentElement?D.documentElement.dir:null;this.value=function b(A){const w=(null==A?void 0:A.toLowerCase())||"";return"auto"===w&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?a.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}((D.body?D.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return A.\u0275fac=function(D){return new(D||A)(t.LFG(f,8))},A.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),h=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275mod=t.oAB({type:A}),A.\u0275inj=t.cJS({}),A})()},3191:(Fe,Y,p)=>{"use strict";p.d(Y,{Eq:()=>a,HM:()=>b,Ig:()=>e,du:()=>P,fI:()=>d,su:()=>f,t6:()=>M});var t=p(5e3);function e(h){return null!=h&&"false"!=`${h}`}function f(h,A=0){return M(h)?Number(h):A}function M(h){return!isNaN(parseFloat(h))&&!isNaN(Number(h))}function a(h){return Array.isArray(h)?h:[h]}function b(h){return null==h?"":"string"==typeof h?h:`${h}px`}function d(h){return h instanceof t.SBq?h.nativeElement:h}function P(h,A=/\s+/){const w=[];if(null!=h){const D=Array.isArray(h)?h:`${h}`.split(A);for(const L of D){const k=`${L}`.trim();k&&w.push(k)}}return w}},449:(Fe,Y,p)=>{"use strict";p.d(Y,{A8:()=>A,Ov:()=>P,Z9:()=>M,eX:()=>d,k:()=>w,o2:()=>f,yy:()=>b});var t=p(7579),e=p(5e3);class f{}function M(D){return D&&"function"==typeof D.connect}class b{applyChanges(L,k,S,U,Z){L.forEachOperation((j,ne,X)=>{let de,ee;if(null==j.previousIndex){const te=S(j,ne,X);de=k.createEmbeddedView(te.templateRef,te.context,te.index),ee=1}else null==X?(k.remove(ne),ee=3):(de=k.get(ne),k.move(de,X),ee=2);Z&&Z({context:null==de?void 0:de.context,operation:ee,record:j})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(L,k,S,U,Z){L.forEachOperation((j,ne,X)=>{let de,ee;null==j.previousIndex?(de=this._insertView(()=>S(j,ne,X),X,k,U(j)),ee=de?1:0):null==X?(this._detachAndCacheView(ne,k),ee=3):(de=this._moveView(ne,X,k,U(j)),ee=2),Z&&Z({context:null==de?void 0:de.context,operation:ee,record:j})})}detach(){for(const L of this._viewCache)L.destroy();this._viewCache=[]}_insertView(L,k,S,U){const Z=this._insertViewFromCache(k,S);if(Z)return void(Z.context.$implicit=U);const j=L();return S.createEmbeddedView(j.templateRef,j.context,j.index)}_detachAndCacheView(L,k){const S=k.detach(L);this._maybeCacheView(S,k)}_moveView(L,k,S,U){const Z=S.get(L);return S.move(Z,k),Z.context.$implicit=U,Z}_maybeCacheView(L,k){if(this._viewCache.lengththis._markSelected(U)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...L){this._verifyValueAssignment(L),L.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...L){this._verifyValueAssignment(L),L.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(L){this.isSelected(L)?this.deselect(L):this.select(L)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(L){return this._selection.has(L)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(L){this._multiple&&this.selected&&this._selected.sort(L)}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(L){this.isSelected(L)||(this._multiple||this._unmarkAll(),this._selection.add(L),this._emitChanges&&this._selectedToEmit.push(L))}_unmarkSelected(L){this.isSelected(L)&&(this._selection.delete(L),this._emitChanges&&this._deselectedToEmit.push(L))}_unmarkAll(){this.isEmpty()||this._selection.forEach(L=>this._unmarkSelected(L))}_verifyValueAssignment(L){}}let A=(()=>{class D{constructor(){this._listeners=[]}notify(k,S){for(let U of this._listeners)U(k,S)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(S=>k!==S)}}ngOnDestroy(){this._listeners=[]}}return D.\u0275fac=function(k){return new(k||D)},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const w=new e.OlP("_ViewRepeater")},1159:(Fe,Y,p)=>{"use strict";p.d(Y,{A:()=>N,JH:()=>X,JU:()=>b,K5:()=>a,Ku:()=>L,LH:()=>j,L_:()=>D,MW:()=>di,Mf:()=>f,SV:()=>ne,Sd:()=>U,VM:()=>k,Vb:()=>mi,Z:()=>Dt,aO:()=>I,b2:()=>Pt,hY:()=>w,jx:()=>d,oh:()=>Z,uR:()=>S,xE:()=>J,zL:()=>P});const f=9,a=13,b=16,d=17,P=18,w=27,D=32,L=33,k=34,S=35,U=36,Z=37,j=38,ne=39,X=40,J=48,I=57,N=65,Dt=90,di=91,Pt=224;function mi(ti,...vi){return vi.length?vi.some(Bi=>ti[Bi]):ti.altKey||ti.shiftKey||ti.ctrlKey||ti.metaKey}},5113:(Fe,Y,p)=>{"use strict";p.d(Y,{Yg:()=>X,u3:()=>ee,xu:()=>k});var t=p(5e3),e=p(3191),f=p(7579),M=p(9841),a=p(7272),b=p(8306),d=p(5698),P=p(5684),h=p(8372),A=p(4004),w=p(8675),D=p(2722),L=p(925);let k=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=t.oAB({type:te}),te.\u0275inj=t.cJS({}),te})();const S=new Set;let U,Z=(()=>{class te{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 j(te){if(!S.has(te))try{U||(U=document.createElement("style"),U.setAttribute("type","text/css"),document.head.appendChild(U)),U.sheet&&(U.sheet.insertRule(`@media ${te} {body{ }}`,0),S.add(te))}catch(ce){console.error(ce)}}(J),this._matchMedia(J)}}return te.\u0275fac=function(J){return new(J||te)(t.LFG(L.t4))},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();function ne(te){return{matches:"all"===te||""===te,media:te,addListener:()=>{},removeListener:()=>{}}}let X=(()=>{class te{constructor(J,me){this._mediaMatcher=J,this._zone=me,this._queries=new Map,this._destroySubject=new f.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(J){return de((0,e.Eq)(J)).some(x=>this._registerQuery(x).mql.matches)}observe(J){const x=de((0,e.Eq)(J)).map(r=>this._registerQuery(r).observable);let i=(0,M.a)(x);return i=(0,a.z)(i.pipe((0,d.q)(1)),i.pipe((0,P.T)(1),(0,h.b)(0))),i.pipe((0,A.U)(r=>{const u={matches:!1,breakpoints:{}};return r.forEach(({matches:c,query:_})=>{u.matches=u.matches||c,u.breakpoints[_]=c}),u}))}_registerQuery(J){if(this._queries.has(J))return this._queries.get(J);const me=this._mediaMatcher.matchMedia(J),i={observable:new b.y(r=>{const u=c=>this._zone.run(()=>r.next(c));return me.addListener(u),()=>{me.removeListener(u)}}).pipe((0,w.O)(me),(0,A.U)(({matches:r})=>({query:J,matches:r})),(0,D.R)(this._destroySubject)),mql:me};return this._queries.set(J,i),i}}return te.\u0275fac=function(J){return new(J||te)(t.LFG(Z),t.LFG(t.R0b))},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();function de(te){return te.map(ce=>ce.split(",")).reduce((ce,J)=>ce.concat(J)).map(ce=>ce.trim())}const ee={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:(Fe,Y,p)=>{"use strict";p.d(Y,{Q8:()=>h,wD:()=>P});var t=p(3191),e=p(5e3),f=p(8306),M=p(7579),a=p(8372);let b=(()=>{class A{create(D){return"undefined"==typeof MutationObserver?null:new MutationObserver(D)}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),d=(()=>{class A{constructor(D){this._mutationObserverFactory=D,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((D,L)=>this._cleanupObserver(L))}observe(D){const L=(0,t.fI)(D);return new f.y(k=>{const U=this._observeElement(L).subscribe(k);return()=>{U.unsubscribe(),this._unobserveElement(L)}})}_observeElement(D){if(this._observedElements.has(D))this._observedElements.get(D).count++;else{const L=new M.x,k=this._mutationObserverFactory.create(S=>L.next(S));k&&k.observe(D,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(D,{observer:k,stream:L,count:1})}return this._observedElements.get(D).stream}_unobserveElement(D){this._observedElements.has(D)&&(this._observedElements.get(D).count--,this._observedElements.get(D).count||this._cleanupObserver(D))}_cleanupObserver(D){if(this._observedElements.has(D)){const{observer:L,stream:k}=this._observedElements.get(D);L&&L.disconnect(),k.complete(),this._observedElements.delete(D)}}}return A.\u0275fac=function(D){return new(D||A)(e.LFG(b))},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),P=(()=>{class A{constructor(D,L,k){this._contentObserver=D,this._elementRef=L,this._ngZone=k,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,t.Ig)(D),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(D){this._debounce=(0,t.su)(D),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const D=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?D.pipe((0,a.b)(this.debounce)):D).subscribe(this.event)})}_unsubscribe(){var D;null===(D=this._currentSubscription)||void 0===D||D.unsubscribe()}}return A.\u0275fac=function(D){return new(D||A)(e.Y36(d),e.Y36(e.SBq),e.Y36(e.R0b))},A.\u0275dir=e.lG2({type:A,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),A})(),h=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({providers:[b]}),A})()},9776:(Fe,Y,p)=>{"use strict";p.d(Y,{pI:()=>lt,xu:()=>De,_G:()=>n,aV:()=>Ge,X_:()=>me,Xj:()=>E,U8:()=>se});var t=p(5303),e=p(9808),f=p(5e3),M=p(3191),a=p(925),b=p(226),d=p(7429),P=p(7579),h=p(727),A=p(6451),w=p(4482),D=p(5403),k=p(5698),S=p(2722),U=p(1159);const Z=(0,a.Mq)();class j{constructor(W,$){this._viewportRuler=W,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=$}attach(){}enable(){if(this._canBeEnabled()){const W=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=W.style.left||"",this._previousHTMLStyles.top=W.style.top||"",W.style.left=(0,M.HM)(-this._previousScrollPosition.left),W.style.top=(0,M.HM)(-this._previousScrollPosition.top),W.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const W=this._document.documentElement,ue=W.style,Ce=this._document.body.style,Le=ue.scrollBehavior||"",ct=Ce.scrollBehavior||"";this._isEnabled=!1,ue.left=this._previousHTMLStyles.left,ue.top=this._previousHTMLStyles.top,W.classList.remove("cdk-global-scrollblock"),Z&&(ue.scrollBehavior=Ce.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Z&&(ue.scrollBehavior=Le,Ce.scrollBehavior=ct)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const $=this._document.body,ue=this._viewportRuler.getViewportSize();return $.scrollHeight>ue.height||$.scrollWidth>ue.width}}class X{constructor(W,$,ue,Ce){this._scrollDispatcher=W,this._ngZone=$,this._viewportRuler=ue,this._config=Ce,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(W){this._overlayRef=W}enable(){if(this._scrollSubscription)return;const W=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=W.subscribe(()=>{const $=this._viewportRuler.getViewportScrollPosition().top;Math.abs($-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=W.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class de{enable(){}disable(){}attach(){}}function ee(ye,W){return W.some($=>ye.bottom<$.top||ye.top>$.bottom||ye.right<$.left||ye.left>$.right)}function te(ye,W){return W.some($=>ye.top<$.top||ye.bottom>$.bottom||ye.left<$.left||ye.right>$.right)}class ce{constructor(W,$,ue,Ce){this._scrollDispatcher=W,this._viewportRuler=$,this._ngZone=ue,this._config=Ce,this._scrollSubscription=null}attach(W){this._overlayRef=W}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 $=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ue,height:Ce}=this._viewportRuler.getViewportSize();ee($,[{width:ue,height:Ce,bottom:Ce,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 ye{constructor($,ue,Ce,Le){this._scrollDispatcher=$,this._viewportRuler=ue,this._ngZone=Ce,this.noop=()=>new de,this.close=ct=>new X(this._scrollDispatcher,this._ngZone,this._viewportRuler,ct),this.block=()=>new j(this._viewportRuler,this._document),this.reposition=ct=>new ce(this._scrollDispatcher,this._viewportRuler,this._ngZone,ct),this._document=Le}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(t.mF),f.LFG(t.rL),f.LFG(f.R0b),f.LFG(e.K0))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();class me{constructor(W){if(this.scrollStrategy=new de,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,W){const $=Object.keys(W);for(const ue of $)void 0!==W[ue]&&(this[ue]=W[ue])}}}class r{constructor(W,$){this.connectionPair=W,this.scrollableViewProperties=$}}class _{constructor(W,$,ue,Ce,Le,ct,ut,Dt,di){this._portalOutlet=W,this._host=$,this._pane=ue,this._config=Ce,this._ngZone=Le,this._keyboardDispatcher=ct,this._document=ut,this._location=Dt,this._outsideClickDispatcher=di,this._backdropElement=null,this._backdropClick=new P.x,this._attachments=new P.x,this._detachments=new P.x,this._locationChanges=h.w0.EMPTY,this._backdropClickHandler=Yt=>this._backdropClick.next(Yt),this._backdropTransitionendHandler=Yt=>{this._disposeBackdrop(Yt.target)},this._keydownEvents=new P.x,this._outsidePointerEvents=new P.x,Ce.scrollStrategy&&(this._scrollStrategy=Ce.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ce.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(W){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const $=this._portalOutlet.attach(W);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),$}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const W=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),W}dispose(){var W;const $=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===(W=this._host)||void 0===W||W.remove(),this._previousHostParent=this._pane=this._host=null,$&&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(W){W!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=W,this.hasAttached()&&(W.attach(this),this.updatePosition()))}updateSize(W){this._config=Object.assign(Object.assign({},this._config),W),this._updateElementSize()}setDirection(W){this._config=Object.assign(Object.assign({},this._config),{direction:W}),this._updateElementDirection()}addPanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!0)}removePanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!1)}getDirection(){const W=this._config.direction;return W?"string"==typeof W?W:W.value:"ltr"}updateScrollStrategy(W){W!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=W,this.hasAttached()&&(W.attach(this),W.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const W=this._pane.style;W.width=(0,M.HM)(this._config.width),W.height=(0,M.HM)(this._config.height),W.minWidth=(0,M.HM)(this._config.minWidth),W.minHeight=(0,M.HM)(this._config.minHeight),W.maxWidth=(0,M.HM)(this._config.maxWidth),W.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(W){this._pane.style.pointerEvents=W?"":"none"}_attachBackdrop(){const W="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(W)})}):this._backdropElement.classList.add(W)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const W=this._backdropElement;!W||(W.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{W.addEventListener("transitionend",this._backdropTransitionendHandler)}),W.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(W)},500)))}_toggleClasses(W,$,ue){const Ce=(0,M.Eq)($||[]).filter(Le=>!!Le);Ce.length&&(ue?W.classList.add(...Ce):W.classList.remove(...Ce))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const W=this._ngZone.onStable.pipe((0,S.R)((0,A.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()),W.unsubscribe())})})}_disposeScrollStrategy(){const W=this._scrollStrategy;W&&(W.disable(),W.detach&&W.detach())}_disposeBackdrop(W){W&&(W.removeEventListener("click",this._backdropClickHandler),W.removeEventListener("transitionend",this._backdropTransitionendHandler),W.remove(),this._backdropElement===W&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let E=(()=>{class ye{constructor($,ue){this._platform=ue,this._document=$}ngOnDestroy(){var $;null===($=this._containerElement)||void 0===$||$.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const $="cdk-overlay-container";if(this._platform.isBrowser||(0,a.Oy)()){const Ce=this._document.querySelectorAll(`.${$}[platform="server"], .${$}[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 W=this._originRect,$=this._overlayRect,ue=this._viewportRect,Ce=this._containerRect,Le=[];let ct;for(let ut of this._preferredPositions){let Dt=this._getOriginPoint(W,Ce,ut),di=this._getOverlayPoint(Dt,$,ut),Yt=this._getOverlayFit(di,$,ue,ut);if(Yt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ut,Dt);this._canFitWithFlexibleDimensions(Yt,di,ue)?Le.push({position:ut,origin:Dt,overlayRect:$,boundingBoxRect:this._calculateBoundingBoxRect(Dt,ut)}):(!ct||ct.overlayFit.visibleAreaDt&&(Dt=Yt,ut=di)}return this._isPushed=!1,void this._applyPosition(ut.position,ut.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ct.position,ct.originPoint);this._applyPosition(ct.position,ct.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&C(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 W=this._lastPosition;if(W){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const $=this._getOriginPoint(this._originRect,this._containerRect,W);this._applyPosition(W,$)}else this.apply()}withScrollableContainers(W){return this._scrollables=W,this}withPositions(W){return this._preferredPositions=W,-1===W.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(W){return this._viewportMargin=W,this}withFlexibleDimensions(W=!0){return this._hasFlexibleDimensions=W,this}withGrowAfterOpen(W=!0){return this._growAfterOpen=W,this}withPush(W=!0){return this._canPush=W,this}withLockedPosition(W=!0){return this._positionLocked=W,this}setOrigin(W){return this._origin=W,this}withDefaultOffsetX(W){return this._offsetX=W,this}withDefaultOffsetY(W){return this._offsetY=W,this}withTransformOriginOn(W){return this._transformOriginSelector=W,this}_getOriginPoint(W,$,ue){let Ce,Le;if("center"==ue.originX)Ce=W.left+W.width/2;else{const ct=this._isRtl()?W.right:W.left,ut=this._isRtl()?W.left:W.right;Ce="start"==ue.originX?ct:ut}return $.left<0&&(Ce-=$.left),Le="center"==ue.originY?W.top+W.height/2:"top"==ue.originY?W.top:W.bottom,$.top<0&&(Le-=$.top),{x:Ce,y:Le}}_getOverlayPoint(W,$,ue){let Ce,Le;return Ce="center"==ue.overlayX?-$.width/2:"start"===ue.overlayX?this._isRtl()?-$.width:0:this._isRtl()?0:-$.width,Le="center"==ue.overlayY?-$.height/2:"top"==ue.overlayY?0:-$.height,{x:W.x+Ce,y:W.y+Le}}_getOverlayFit(W,$,ue,Ce){const Le=N($);let{x:ct,y:ut}=W,Dt=this._getOffset(Ce,"x"),di=this._getOffset(Ce,"y");Dt&&(ct+=Dt),di&&(ut+=di);let ui=0-ut,xt=ut+Le.height-ue.height,Nt=this._subtractOverflows(Le.width,0-ct,ct+Le.width-ue.width),gt=this._subtractOverflows(Le.height,ui,xt),et=Nt*gt;return{visibleArea:et,isCompletelyWithinViewport:Le.width*Le.height===et,fitsInViewportVertically:gt===Le.height,fitsInViewportHorizontally:Nt==Le.width}}_canFitWithFlexibleDimensions(W,$,ue){if(this._hasFlexibleDimensions){const Ce=ue.bottom-$.y,Le=ue.right-$.x,ct=B(this._overlayRef.getConfig().minHeight),ut=B(this._overlayRef.getConfig().minWidth),di=W.fitsInViewportHorizontally||null!=ut&&ut<=Le;return(W.fitsInViewportVertically||null!=ct&&ct<=Ce)&&di}return!1}_pushOverlayOnScreen(W,$,ue){if(this._previousPushAmount&&this._positionLocked)return{x:W.x+this._previousPushAmount.x,y:W.y+this._previousPushAmount.y};const Ce=N($),Le=this._viewportRect,ct=Math.max(W.x+Ce.width-Le.width,0),ut=Math.max(W.y+Ce.height-Le.height,0),Dt=Math.max(Le.top-ue.top-W.y,0),di=Math.max(Le.left-ue.left-W.x,0);let Yt=0,Gt=0;return Yt=Ce.width<=Le.width?di||-ct:W.xNt&&!this._isInitialRender&&!this._growAfterOpen&&(ct=W.y-Nt/2)}if("end"===$.overlayX&&!Ce||"start"===$.overlayX&&Ce)ui=ue.width-W.x+this._viewportMargin,Yt=W.x-this._viewportMargin;else if("start"===$.overlayX&&!Ce||"end"===$.overlayX&&Ce)Gt=W.x,Yt=ue.right-W.x;else{const xt=Math.min(ue.right-W.x+ue.left,W.x),Nt=this._lastBoundingBoxSize.width;Yt=2*xt,Gt=W.x-xt,Yt>Nt&&!this._isInitialRender&&!this._growAfterOpen&&(Gt=W.x-Nt/2)}return{top:ct,left:Gt,bottom:ut,right:ui,width:Yt,height:Le}}_setBoundingBoxStyles(W,$){const ue=this._calculateBoundingBoxRect(W,$);!this._isInitialRender&&!this._growAfterOpen&&(ue.height=Math.min(ue.height,this._lastBoundingBoxSize.height),ue.width=Math.min(ue.width,this._lastBoundingBoxSize.width));const Ce={};if(this._hasExactPosition())Ce.top=Ce.left="0",Ce.bottom=Ce.right=Ce.maxHeight=Ce.maxWidth="",Ce.width=Ce.height="100%";else{const Le=this._overlayRef.getConfig().maxHeight,ct=this._overlayRef.getConfig().maxWidth;Ce.height=(0,M.HM)(ue.height),Ce.top=(0,M.HM)(ue.top),Ce.bottom=(0,M.HM)(ue.bottom),Ce.width=(0,M.HM)(ue.width),Ce.left=(0,M.HM)(ue.left),Ce.right=(0,M.HM)(ue.right),Ce.alignItems="center"===$.overlayX?"center":"end"===$.overlayX?"flex-end":"flex-start",Ce.justifyContent="center"===$.overlayY?"center":"bottom"===$.overlayY?"flex-end":"flex-start",Le&&(Ce.maxHeight=(0,M.HM)(Le)),ct&&(Ce.maxWidth=(0,M.HM)(ct))}this._lastBoundingBoxSize=ue,C(this._boundingBox.style,Ce)}_resetBoundingBoxStyles(){C(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){C(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(W,$){const ue={},Ce=this._hasExactPosition(),Le=this._hasFlexibleDimensions,ct=this._overlayRef.getConfig();if(Ce){const Yt=this._viewportRuler.getViewportScrollPosition();C(ue,this._getExactOverlayY($,W,Yt)),C(ue,this._getExactOverlayX($,W,Yt))}else ue.position="static";let ut="",Dt=this._getOffset($,"x"),di=this._getOffset($,"y");Dt&&(ut+=`translateX(${Dt}px) `),di&&(ut+=`translateY(${di}px)`),ue.transform=ut.trim(),ct.maxHeight&&(Ce?ue.maxHeight=(0,M.HM)(ct.maxHeight):Le&&(ue.maxHeight="")),ct.maxWidth&&(Ce?ue.maxWidth=(0,M.HM)(ct.maxWidth):Le&&(ue.maxWidth="")),C(this._pane.style,ue)}_getExactOverlayY(W,$,ue){let Ce={top:"",bottom:""},Le=this._getOverlayPoint($,this._overlayRect,W);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,ue)),"bottom"===W.overlayY?Ce.bottom=this._document.documentElement.clientHeight-(Le.y+this._overlayRect.height)+"px":Ce.top=(0,M.HM)(Le.y),Ce}_getExactOverlayX(W,$,ue){let ct,Ce={left:"",right:""},Le=this._getOverlayPoint($,this._overlayRect,W);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,ue)),ct=this._isRtl()?"end"===W.overlayX?"left":"right":"end"===W.overlayX?"right":"left","right"===ct?Ce.right=this._document.documentElement.clientWidth-(Le.x+this._overlayRect.width)+"px":Ce.left=(0,M.HM)(Le.x),Ce}_getScrollVisibility(){const W=this._getOriginRect(),$=this._pane.getBoundingClientRect(),ue=this._scrollables.map(Ce=>Ce.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:te(W,ue),isOriginOutsideView:ee(W,ue),isOverlayClipped:te($,ue),isOverlayOutsideView:ee($,ue)}}_subtractOverflows(W,...$){return $.reduce((ue,Ce)=>ue-Math.max(Ce,0),W)}_getNarrowedViewportRect(){const W=this._document.documentElement.clientWidth,$=this._document.documentElement.clientHeight,ue=this._viewportRuler.getViewportScrollPosition();return{top:ue.top+this._viewportMargin,left:ue.left+this._viewportMargin,right:ue.left+W-this._viewportMargin,bottom:ue.top+$-this._viewportMargin,width:W-2*this._viewportMargin,height:$-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(W,$){return"x"===$?null==W.offsetX?this._offsetX:W.offsetX:null==W.offsetY?this._offsetY:W.offsetY}_validatePositions(){}_addPanelClasses(W){this._pane&&(0,M.Eq)(W).forEach($=>{""!==$&&-1===this._appliedPanelClasses.indexOf($)&&(this._appliedPanelClasses.push($),this._pane.classList.add($))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(W=>{this._pane.classList.remove(W)}),this._appliedPanelClasses=[])}_getOriginRect(){const W=this._origin;if(W instanceof f.SBq)return W.nativeElement.getBoundingClientRect();if(W instanceof Element)return W.getBoundingClientRect();const $=W.width||0,ue=W.height||0;return{top:W.y,bottom:W.y+ue,left:W.x,right:W.x+$,height:ue,width:$}}}function C(ye,W){for(let $ in W)W.hasOwnProperty($)&&(ye[$]=W[$]);return ye}function B(ye){if("number"!=typeof ye&&null!=ye){const[W,$]=ye.split(v);return $&&"px"!==$?null:parseFloat(W)}return ye||null}function N(ye){return{top:Math.floor(ye.top),right:Math.floor(ye.right),bottom:Math.floor(ye.bottom),left:Math.floor(ye.left),width:Math.floor(ye.width),height:Math.floor(ye.height)}}const z="cdk-global-overlay-wrapper";class oe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(W){const $=W.getConfig();this._overlayRef=W,this._width&&!$.width&&W.updateSize({width:this._width}),this._height&&!$.height&&W.updateSize({height:this._height}),W.hostElement.classList.add(z),this._isDisposed=!1}top(W=""){return this._bottomOffset="",this._topOffset=W,this._alignItems="flex-start",this}left(W=""){return this._rightOffset="",this._leftOffset=W,this._justifyContent="flex-start",this}bottom(W=""){return this._topOffset="",this._bottomOffset=W,this._alignItems="flex-end",this}right(W=""){return this._leftOffset="",this._rightOffset=W,this._justifyContent="flex-end",this}width(W=""){return this._overlayRef?this._overlayRef.updateSize({width:W}):this._width=W,this}height(W=""){return this._overlayRef?this._overlayRef.updateSize({height:W}):this._height=W,this}centerHorizontally(W=""){return this.left(W),this._justifyContent="center",this}centerVertically(W=""){return this.top(W),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const W=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement.style,ue=this._overlayRef.getConfig(),{width:Ce,height:Le,maxWidth:ct,maxHeight:ut}=ue,Dt=!("100%"!==Ce&&"100vw"!==Ce||ct&&"100%"!==ct&&"100vw"!==ct),di=!("100%"!==Le&&"100vh"!==Le||ut&&"100%"!==ut&&"100vh"!==ut);W.position=this._cssPosition,W.marginLeft=Dt?"0":this._leftOffset,W.marginTop=di?"0":this._topOffset,W.marginBottom=this._bottomOffset,W.marginRight=this._rightOffset,Dt?$.justifyContent="flex-start":"center"===this._justifyContent?$.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?$.justifyContent="flex-end":"flex-end"===this._justifyContent&&($.justifyContent="flex-start"):$.justifyContent=this._justifyContent,$.alignItems=di?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const W=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement,ue=$.style;$.classList.remove(z),ue.justifyContent=ue.alignItems=W.marginTop=W.marginBottom=W.marginLeft=W.marginRight=W.position="",this._overlayRef=null,this._isDisposed=!0}}let ge=(()=>{class ye{constructor($,ue,Ce,Le){this._viewportRuler=$,this._document=ue,this._platform=Ce,this._overlayContainer=Le}global(){return new oe}flexibleConnectedTo($){return new n($,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(t.rL),f.LFG(e.K0),f.LFG(a.t4),f.LFG(E))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),be=(()=>{class ye{constructor($){this._attachedOverlays=[],this._document=$}ngOnDestroy(){this.detach()}add($){this.remove($),this._attachedOverlays.push($)}remove($){const ue=this._attachedOverlays.indexOf($);ue>-1&&this._attachedOverlays.splice(ue,1),0===this._attachedOverlays.length&&this.detach()}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(e.K0))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Re=(()=>{class ye extends be{constructor($,ue){super($),this._ngZone=ue,this._keydownListener=Ce=>{const Le=this._attachedOverlays;for(let ct=Le.length-1;ct>-1;ct--)if(Le[ct]._keydownEvents.observers.length>0){const ut=Le[ct]._keydownEvents;this._ngZone?this._ngZone.run(()=>ut.next(Ce)):ut.next(Ce);break}}}add($){super.add($),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 ye.\u0275fac=function($){return new($||ye)(f.LFG(e.K0),f.LFG(f.R0b,8))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),we=(()=>{class ye extends be{constructor($,ue,Ce){super($),this._platform=ue,this._ngZone=Ce,this._cursorStyleIsSet=!1,this._pointerDownListener=Le=>{this._pointerDownEventTarget=(0,a.sA)(Le)},this._clickListener=Le=>{const ct=(0,a.sA)(Le),ut="click"===Le.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ct;this._pointerDownEventTarget=null;const Dt=this._attachedOverlays.slice();for(let di=Dt.length-1;di>-1;di--){const Yt=Dt[di];if(Yt._outsidePointerEvents.observers.length<1||!Yt.hasAttached())continue;if(Yt.overlayElement.contains(ct)||Yt.overlayElement.contains(ut))break;const Gt=Yt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Gt.next(Le)):Gt.next(Le)}}}add($){if(super.add($),!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 $=this._document.body;$.removeEventListener("pointerdown",this._pointerDownListener,!0),$.removeEventListener("click",this._clickListener,!0),$.removeEventListener("auxclick",this._clickListener,!0),$.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&($.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners($){$.addEventListener("pointerdown",this._pointerDownListener,!0),$.addEventListener("click",this._clickListener,!0),$.addEventListener("auxclick",this._clickListener,!0),$.addEventListener("contextmenu",this._clickListener,!0)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(e.K0),f.LFG(a.t4),f.LFG(f.R0b,8))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Q=0,Ge=(()=>{class ye{constructor($,ue,Ce,Le,ct,ut,Dt,di,Yt,Gt,ui){this.scrollStrategies=$,this._overlayContainer=ue,this._componentFactoryResolver=Ce,this._positionBuilder=Le,this._keyboardDispatcher=ct,this._injector=ut,this._ngZone=Dt,this._document=di,this._directionality=Yt,this._location=Gt,this._outsideClickDispatcher=ui}create($){const ue=this._createHostElement(),Ce=this._createPaneElement(ue),Le=this._createPortalOutlet(Ce),ct=new me($);return ct.direction=ct.direction||this._directionality.value,new _(Le,ue,Ce,ct,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement($){const ue=this._document.createElement("div");return ue.id="cdk-overlay-"+Q++,ue.classList.add("cdk-overlay-pane"),$.appendChild(ue),ue}_createHostElement(){const $=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild($),$}_createPortalOutlet($){return this._appRef||(this._appRef=this._injector.get(f.z2F)),new d.u0($,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(J),f.LFG(E),f.LFG(f._Vd),f.LFG(ge),f.LFG(Re),f.LFG(f.zs3),f.LFG(f.R0b),f.LFG(e.K0),f.LFG(b.Is),f.LFG(e.Ye),f.LFG(we))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const ve=[{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"}],F=new f.OlP("cdk-connected-overlay-scroll-strategy");let De=(()=>{class ye{constructor($){this.elementRef=$}}return ye.\u0275fac=function($){return new($||ye)(f.Y36(f.SBq))},ye.\u0275dir=f.lG2({type:ye,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ye})(),lt=(()=>{class ye{constructor($,ue,Ce,Le,ct){this._overlay=$,this._dir=ct,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w0.EMPTY,this._attachSubscription=h.w0.EMPTY,this._detachSubscription=h.w0.EMPTY,this._positionSubscription=h.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new f.vpe,this.positionChange=new f.vpe,this.attach=new f.vpe,this.detach=new f.vpe,this.overlayKeydown=new f.vpe,this.overlayOutsideClick=new f.vpe,this._templatePortal=new d.UE(ue,Ce),this._scrollStrategyFactory=Le,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX($){this._offsetX=$,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY($){this._offsetY=$,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop($){this._hasBackdrop=(0,M.Ig)($)}get lockPosition(){return this._lockPosition}set lockPosition($){this._lockPosition=(0,M.Ig)($)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions($){this._flexibleDimensions=(0,M.Ig)($)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen($){this._growAfterOpen=(0,M.Ig)($)}get push(){return this._push}set push($){this._push=(0,M.Ig)($)}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($){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),$.origin&&this.open&&this._position.apply()),$.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ve);const $=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=$.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=$.detachments().subscribe(()=>this.detach.emit()),$.keydownEvents().subscribe(ue=>{this.overlayKeydown.next(ue),ue.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(ue)&&(ue.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(ue=>{this.overlayOutsideClick.next(ue)})}_buildConfig(){const $=this._position=this.positionStrategy||this._createPositionStrategy(),ue=new me({direction:this._dir,positionStrategy:$,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($){const ue=this.positions.map(Ce=>({originX:Ce.originX,originY:Ce.originY,overlayX:Ce.overlayX,overlayY:Ce.overlayY,offsetX:Ce.offsetX||this.offsetX,offsetY:Ce.offsetY||this.offsetY,panelClass:Ce.panelClass||void 0}));return $.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 $=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy($),$}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof De?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($=>{this.backdropClick.emit($)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function L(ye,W=!1){return(0,w.e)(($,ue)=>{let Ce=0;$.subscribe((0,D.x)(ue,Le=>{const ct=ye(Le,Ce++);(ct||W)&&ue.next(Le),!ct&&ue.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe($=>{this.positionChange.emit($),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ye.\u0275fac=function($){return new($||ye)(f.Y36(Ge),f.Y36(f.Rgc),f.Y36(f.s_b),f.Y36(F),f.Y36(b.Is,8))},ye.\u0275dir=f.lG2({type:ye,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:[f.TTD]}),ye})();const Ae={provide:F,deps:[Ge],useFactory:function Ie(ye){return()=>ye.scrollStrategies.reposition()}};let se=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[Ge,Ae],imports:[[b.vT,d.eL,t.Cl],t.Cl]}),ye})()},925:(Fe,Y,p)=>{"use strict";p.d(Y,{Mq:()=>k,Oy:()=>de,_i:()=>S,ht:()=>ne,i$:()=>w,kV:()=>j,qK:()=>P,sA:()=>X,t4:()=>M});var t=p(5e3),e=p(9808);let f;try{f="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ee){f=!1}let b,M=(()=>{class ee{constructor(ce){this._platformId=ce,this.isBrowser=this._platformId?(0,e.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&&!f)&&"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 ee.\u0275fac=function(ce){return new(ce||ee)(t.LFG(t.Lbi))},ee.\u0275prov=t.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();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(b)return b;if("object"!=typeof document||!document)return b=new Set(d),b;let ee=document.createElement("input");return b=new Set(d.filter(te=>(ee.setAttribute("type",te),ee.type===te))),b}let h,D,L,U;function w(ee){return function A(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?ee:!!ee.capture}function k(){if(null==L){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return L=!1,L;if("scrollBehavior"in document.documentElement.style)L=!0;else{const ee=Element.prototype.scrollTo;L=!!ee&&!/\{\s*\[native code\]\s*\}/.test(ee.toString())}}return L}function S(){if("object"!=typeof document||!document)return 0;if(null==D){const ee=document.createElement("div"),te=ee.style;ee.dir="rtl",te.width="1px",te.overflow="auto",te.visibility="hidden",te.pointerEvents="none",te.position="absolute";const ce=document.createElement("div"),J=ce.style;J.width="2px",J.height="1px",ee.appendChild(ce),document.body.appendChild(ee),D=0,0===ee.scrollLeft&&(ee.scrollLeft=1,D=0===ee.scrollLeft?1:2),ee.remove()}return D}function j(ee){if(function Z(){if(null==U){const ee="undefined"!=typeof document?document.head:null;U=!(!ee||!ee.createShadowRoot&&!ee.attachShadow)}return U}()){const te=ee.getRootNode?ee.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&te instanceof ShadowRoot)return te}return null}function ne(){let ee="undefined"!=typeof document&&document?document.activeElement:null;for(;ee&&ee.shadowRoot;){const te=ee.shadowRoot.activeElement;if(te===ee)break;ee=te}return ee}function X(ee){return ee.composedPath?ee.composedPath()[0]:ee.target}function de(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Fe,Y,p)=>{"use strict";p.d(Y,{C5:()=>A,Pl:()=>ne,UE:()=>w,eL:()=>de,en:()=>L,ig:()=>Z,u0:()=>S});var t=p(5e3),e=p(9808);class h{attach(ce){return this._attachedHost=ce,ce.attach(this)}detach(){let ce=this._attachedHost;null!=ce&&(this._attachedHost=null,ce.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ce){this._attachedHost=ce}}class A extends h{constructor(ce,J,me,x){super(),this.component=ce,this.viewContainerRef=J,this.injector=me,this.componentFactoryResolver=x}}class w extends h{constructor(ce,J,me){super(),this.templateRef=ce,this.viewContainerRef=J,this.context=me}get origin(){return this.templateRef.elementRef}attach(ce,J=this.context){return this.context=J,super.attach(ce)}detach(){return this.context=void 0,super.detach()}}class D extends h{constructor(ce){super(),this.element=ce instanceof t.SBq?ce.nativeElement:ce}}class L{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ce){return ce instanceof A?(this._attachedPortal=ce,this.attachComponentPortal(ce)):ce instanceof w?(this._attachedPortal=ce,this.attachTemplatePortal(ce)):this.attachDomPortal&&ce instanceof D?(this._attachedPortal=ce,this.attachDomPortal(ce)):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(ce){this._disposeFn=ce}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class S extends L{constructor(ce,J,me,x,i){super(),this.outletElement=ce,this._componentFactoryResolver=J,this._appRef=me,this._defaultInjector=x,this.attachDomPortal=r=>{const u=r.element,c=this._document.createComment("dom-portal");u.parentNode.insertBefore(c,u),this.outletElement.appendChild(u),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(u,c)})},this._document=i}attachComponentPortal(ce){const me=(ce.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ce.component);let x;return ce.viewContainerRef?(x=ce.viewContainerRef.createComponent(me,ce.viewContainerRef.length,ce.injector||ce.viewContainerRef.injector),this.setDisposeFn(()=>x.destroy())):(x=me.create(ce.injector||this._defaultInjector||t.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=ce,x}attachTemplatePortal(ce){let J=ce.viewContainerRef,me=J.createEmbeddedView(ce.templateRef,ce.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=ce,me}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ce){return ce.hostView.rootNodes[0]}}let Z=(()=>{class te extends w{constructor(J,me){super(J,me)}}return te.\u0275fac=function(J){return new(J||te)(t.Y36(t.Rgc),t.Y36(t.s_b))},te.\u0275dir=t.lG2({type:te,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),te})(),ne=(()=>{class te extends L{constructor(J,me,x){super(),this._componentFactoryResolver=J,this._viewContainerRef=me,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const r=i.element,u=this._document.createComment("dom-portal");i.setAttachedHost(this),r.parentNode.insertBefore(u,r),this._getRootNode().appendChild(r),this._attachedPortal=i,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(r,u)})},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,i=(J.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(J.component),r=me.createComponent(i,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 te.\u0275fac=function(J){return new(J||te)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},te.\u0275dir=t.lG2({type:te,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),te})(),de=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=t.oAB({type:te}),te.\u0275inj=t.cJS({}),te})()},5303:(Fe,Y,p)=>{"use strict";p.d(Y,{PQ:()=>u,ZD:()=>B,mF:()=>r,Cl:()=>N,rL:()=>_});var t=p(3191),e=p(5e3),f=p(4408),M=p(727);const a={schedule(z){let oe=requestAnimationFrame,ge=cancelAnimationFrame;const{delegate:be}=a;be&&(oe=be.requestAnimationFrame,ge=be.cancelAnimationFrame);const Re=oe(we=>{ge=void 0,z(we)});return new M.w0(()=>null==ge?void 0:ge(Re))},requestAnimationFrame(...z){const{delegate:oe}=a;return((null==oe?void 0:oe.requestAnimationFrame)||requestAnimationFrame)(...z)},cancelAnimationFrame(...z){const{delegate:oe}=a;return((null==oe?void 0:oe.cancelAnimationFrame)||cancelAnimationFrame)(...z)},delegate:void 0};var d=p(7565);new class P extends d.v{flush(oe){this._active=!0;const ge=this._scheduled;this._scheduled=void 0;const{actions:be}=this;let Re;oe=oe||be.shift();do{if(Re=oe.execute(oe.state,oe.delay))break}while((oe=be[0])&&oe.id===ge&&be.shift());if(this._active=!1,Re){for(;(oe=be[0])&&oe.id===ge&&be.shift();)oe.unsubscribe();throw Re}}}(class b extends f.o{constructor(oe,ge){super(oe,ge),this.scheduler=oe,this.work=ge}requestAsyncId(oe,ge,be=0){return null!==be&&be>0?super.requestAsyncId(oe,ge,be):(oe.actions.push(this),oe._scheduled||(oe._scheduled=a.requestAnimationFrame(()=>oe.flush(void 0))))}recycleAsyncId(oe,ge,be=0){if(null!=be&&be>0||null==be&&this.delay>0)return super.recycleAsyncId(oe,ge,be);oe.actions.some(Re=>Re.id===ge)||(a.cancelAnimationFrame(ge),oe._scheduled=void 0)}});var w=p(7579),D=p(9646),L=p(8306),k=p(4968),U=(p(3101),p(3601)),Z=p(9300),j=p(2722),ne=p(9808),X=p(925),de=p(226);let r=(()=>{class z{constructor(ge,be,Re){this._ngZone=ge,this._platform=be,this._scrolled=new w.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Re}register(ge){this.scrollContainers.has(ge)||this.scrollContainers.set(ge,ge.elementScrolled().subscribe(()=>this._scrolled.next(ge)))}deregister(ge){const be=this.scrollContainers.get(ge);be&&(be.unsubscribe(),this.scrollContainers.delete(ge))}scrolled(ge=20){return this._platform.isBrowser?new L.y(be=>{this._globalSubscription||this._addGlobalListener();const Re=ge>0?this._scrolled.pipe((0,U.e)(ge)).subscribe(be):this._scrolled.subscribe(be);return this._scrolledCount++,()=>{Re.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,D.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ge,be)=>this.deregister(be)),this._scrolled.complete()}ancestorScrolled(ge,be){const Re=this.getAncestorScrollContainers(ge);return this.scrolled(be).pipe((0,Z.h)(we=>!we||Re.indexOf(we)>-1))}getAncestorScrollContainers(ge){const be=[];return this.scrollContainers.forEach((Re,we)=>{this._scrollableContainsElement(we,ge)&&be.push(we)}),be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ge,be){let Re=(0,t.fI)(be),we=ge.getElementRef().nativeElement;do{if(Re==we)return!0}while(Re=Re.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ge=this._getWindow();return(0,k.R)(ge.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return z.\u0275fac=function(ge){return new(ge||z)(e.LFG(e.R0b),e.LFG(X.t4),e.LFG(ne.K0,8))},z.\u0275prov=e.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),u=(()=>{class z{constructor(ge,be,Re,we){this.elementRef=ge,this.scrollDispatcher=be,this.ngZone=Re,this.dir=we,this._destroyed=new w.x,this._elementScrolled=new L.y(Q=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,j.R)(this._destroyed)).subscribe(Q)))}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(ge){const be=this.elementRef.nativeElement,Re=this.dir&&"rtl"==this.dir.value;null==ge.left&&(ge.left=Re?ge.end:ge.start),null==ge.right&&(ge.right=Re?ge.start:ge.end),null!=ge.bottom&&(ge.top=be.scrollHeight-be.clientHeight-ge.bottom),Re&&0!=(0,X._i)()?(null!=ge.left&&(ge.right=be.scrollWidth-be.clientWidth-ge.left),2==(0,X._i)()?ge.left=ge.right:1==(0,X._i)()&&(ge.left=ge.right?-ge.right:ge.right)):null!=ge.right&&(ge.left=be.scrollWidth-be.clientWidth-ge.right),this._applyScrollToOptions(ge)}_applyScrollToOptions(ge){const be=this.elementRef.nativeElement;(0,X.Mq)()?be.scrollTo(ge):(null!=ge.top&&(be.scrollTop=ge.top),null!=ge.left&&(be.scrollLeft=ge.left))}measureScrollOffset(ge){const be="left",we=this.elementRef.nativeElement;if("top"==ge)return we.scrollTop;if("bottom"==ge)return we.scrollHeight-we.clientHeight-we.scrollTop;const Q=this.dir&&"rtl"==this.dir.value;return"start"==ge?ge=Q?"right":be:"end"==ge&&(ge=Q?be:"right"),Q&&2==(0,X._i)()?ge==be?we.scrollWidth-we.clientWidth-we.scrollLeft:we.scrollLeft:Q&&1==(0,X._i)()?ge==be?we.scrollLeft+we.scrollWidth-we.clientWidth:-we.scrollLeft:ge==be?we.scrollLeft:we.scrollWidth-we.clientWidth-we.scrollLeft}}return z.\u0275fac=function(ge){return new(ge||z)(e.Y36(e.SBq),e.Y36(r),e.Y36(e.R0b),e.Y36(de.Is,8))},z.\u0275dir=e.lG2({type:z,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),z})(),_=(()=>{class z{constructor(ge,be,Re){this._platform=ge,this._change=new w.x,this._changeListener=we=>{this._change.next(we)},this._document=Re,be.runOutsideAngular(()=>{if(ge.isBrowser){const we=this._getWindow();we.addEventListener("resize",this._changeListener),we.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ge=this._getWindow();ge.removeEventListener("resize",this._changeListener),ge.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ge={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ge}getViewportRect(){const ge=this.getViewportScrollPosition(),{width:be,height:Re}=this.getViewportSize();return{top:ge.top,left:ge.left,bottom:ge.top+Re,right:ge.left+be,height:Re,width:be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ge=this._document,be=this._getWindow(),Re=ge.documentElement,we=Re.getBoundingClientRect();return{top:-we.top||ge.body.scrollTop||be.scrollY||Re.scrollTop||0,left:-we.left||ge.body.scrollLeft||be.scrollX||Re.scrollLeft||0}}change(ge=20){return ge>0?this._change.pipe((0,U.e)(ge)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ge=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ge.innerWidth,height:ge.innerHeight}:{width:0,height:0}}}return z.\u0275fac=function(ge){return new(ge||z)(e.LFG(X.t4),e.LFG(e.R0b),e.LFG(ne.K0,8))},z.\u0275prov=e.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),B=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({}),z})(),N=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[[de.vT,B],de.vT,B]}),z})()},1555:(Fe,Y,p)=>{"use strict";p.d(Y,{B8:()=>de,KL:()=>k,U5:()=>ce,be:()=>X,gx:()=>ne,po:()=>te,st:()=>ee,u6:()=>S});var t=p(5664),e=p(3191),f=p(1159),M=p(9808),a=p(5e3),b=p(925),d=p(7579),P=p(9646),h=p(8675),A=p(2722),w=p(226);function D(J,me){1&J&&a.Hsn(0)}const L=["*"];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})(),S=(()=>{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})(),U=0;const ne=new a.OlP("STEPPER_GLOBAL_OPTIONS");let X=(()=>{class J{constructor(x,i){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=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(x){this._editable=(0,e.Ig)(x)}get optional(){return this._optional}set optional(x){this._optional=(0,e.Ig)(x)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(x){this._completedOverride=(0,e.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,e.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)(()=>de)),a.Y36(ne,8))},J.\u0275cmp=a.Xpm({type:J,selectors:[["cdk-step"]],contentQueries:function(x,i,r){if(1&x&&a.Suo(r,S,5),2&x){let u;a.iGM(u=a.CRH())&&(i.stepLabel=u.first)}},viewQuery:function(x,i){if(1&x&&a.Gf(a.Rgc,7),2&x){let r;a.iGM(r=a.CRH())&&(i.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:L,decls:1,vars:0,template:function(x,i){1&x&&(a.F$t(),a.YNc(0,D,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),J})(),de=(()=>{class J{constructor(x,i,r,u){this._dir=x,this._changeDetectorRef=i,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=U++}get linear(){return this._linear}set linear(x){this._linear=(0,e.Ig)(x)}get selectedIndex(){return this._selectedIndex}set selectedIndex(x){var i;const r=(0,e.su)(x);this.steps&&this._steps?(this._isValidIndex(r),null===(i=this.selected)||void 0===i||i._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,h.O)(this._steps),(0,A.R)(this._destroyed)).subscribe(x=>{this.steps.reset(x.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,h.O)(this._stepHeader),(0,A.R)(this._destroyed)).subscribe(x=>{this._sortedHeaders.reset(x.toArray().sort((i,r)=>i._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,P.of)()).pipe((0,h.O)(this._layoutDirection()),(0,A.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 i=x-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(x,i="number"){const r=this.steps.toArray()[x],u=this._isCurrentStep(x);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,u):this._getGuidelineLogic(r,u,i)}_getDefaultIndicatorLogic(x,i){return x._showError()&&x.hasError&&!i?"error":!x.completed||i?"number":x.editable?"edit":"done"}_getGuidelineLogic(x,i,r="number"){return x._showError()&&x.hasError&&!i?"error":x.completed&&!i?"done":x.completed&&i?r:x.editable&&i?"edit":r}_isCurrentStep(x){return this._selectedIndex===x}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(x){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:x,previouslySelectedIndex:this._selectedIndex,selectedStep:i[x],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(x):this._keyManager.updateActiveItem(x),this._selectedIndex=x,this._stateChanged()}_onKeydown(x){const i=(0,f.Vb)(x),r=x.keyCode,u=this._keyManager;null==u.activeItemIndex||i||r!==f.L_&&r!==f.K5?u.onKeydown(x):(this.selectedIndex=u.activeItemIndex,x.preventDefault())}_anyControlsInvalidOrPending(x){return!!(this._linear&&x>=0)&&this.steps.toArray().slice(0,x).some(i=>{const r=i.stepControl;return(r?r.invalid||r.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const x=this._elementRef.nativeElement,i=(0,b.ht)();return x===i||x.contains(i)}_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(de))},J.\u0275dir=a.lG2({type:J,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(x,i){1&x&&a.NdJ("click",function(){return i._stepper.next()}),2&x&&a.Ikx("type",i.type)},inputs:{type:"type"}}),J})(),te=(()=>{class J{constructor(x){this._stepper=x,this.type="button"}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(de))},J.\u0275dir=a.lG2({type:J,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(x,i){1&x&&a.NdJ("click",function(){return i._stepper.previous()}),2&x&&a.Ikx("type",i.type)},inputs:{type:"type"}}),J})(),ce=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275mod=a.oAB({type:J}),J.\u0275inj=a.cJS({imports:[[w.vT]]}),J})()},8258:(Fe,Y,p)=>{"use strict";p.d(Y,{HI:()=>S,Hs:()=>J,Ud:()=>c,VY:()=>k,XJ:()=>u,Xx:()=>i,_0:()=>ce,cu:()=>U,nZ:()=>E,rO:()=>j});var t=p(449),e=p(5191),f=p(7579),M=p(1135),a=p(9646),b=p(5698),d=p(9300),P=p(2722),h=p(5e3),A=p(3191),w=p(226);class k extends class D{constructor(){this.expansionModel=new t.Ov(!0)}toggle(v){this.expansionModel.toggle(this._trackByValue(v))}expand(v){this.expansionModel.select(this._trackByValue(v))}collapse(v){this.expansionModel.deselect(this._trackByValue(v))}isExpanded(v){return this.expansionModel.isSelected(this._trackByValue(v))}toggleDescendants(v){this.expansionModel.isSelected(this._trackByValue(v))?this.collapseDescendants(v):this.expandDescendants(v)}collapseAll(){this.expansionModel.clear()}expandDescendants(v){let n=[v];n.push(...this.getDescendants(v)),this.expansionModel.select(...n.map(C=>this._trackByValue(C)))}collapseDescendants(v){let n=[v];n.push(...this.getDescendants(v)),this.expansionModel.deselect(...n.map(C=>this._trackByValue(C)))}_trackByValue(v){return this.trackBy?this.trackBy(v):v}}{constructor(v,n){super(),this.getChildren=v,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const v=this.dataNodes.reduce((n,C)=>[...n,...this.getDescendants(C),C],[]);this.expansionModel.select(...v.map(n=>this._trackByValue(n)))}getDescendants(v){const n=[];return this._getDescendants(n,v),n.splice(1)}_getDescendants(v,n){v.push(n);const C=this.getChildren(n);Array.isArray(C)?C.forEach(B=>this._getDescendants(v,B)):(0,e.b)(C)&&C.pipe((0,b.q)(1),(0,d.h)(Boolean)).subscribe(B=>{for(const N of B)this._getDescendants(v,N)})}}const S=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let U=(()=>{class I{constructor(n,C){this.viewContainer=n,this._node=C}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.s_b),h.Y36(S,8))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class Z{constructor(v){this.$implicit=v}}let j=(()=>{class I{constructor(n){this.template=n}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.Rgc))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),ce=(()=>{class I{constructor(n,C){this._differs=n,this._changeDetectorRef=C,this._onDestroy=new f.x,this._levels=new Map,this.viewChange=new M.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(C=>!C.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,t.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,e.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(C=>this.renderNodeChanges(C)))}renderNodeChanges(n,C=this._dataDiffer,B=this._nodeOutlet.viewContainer,N){const z=C.diff(n);!z||(z.forEachOperation((oe,ge,be)=>{if(null==oe.previousIndex)this.insertNode(n[be],be,B,N);else if(null==be)B.remove(ge),this._levels.delete(oe.item);else{const Re=B.get(ge);B.move(Re,be)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,C){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(N=>N.when&&N.when(C,n))||this._defaultNodeDef}insertNode(n,C,B,N){const z=this._getNodeDef(n,C),oe=new Z(n);oe.level=this.treeControl.getLevel?this.treeControl.getLevel(n):void 0!==N&&this._levels.has(N)?this._levels.get(N)+1:0,this._levels.set(n,oe.level),(B||this._nodeOutlet.viewContainer).createEmbeddedView(z.template,oe,C),J.mostRecentTreeNode&&(J.mostRecentTreeNode.data=n)}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.ZZ4),h.Y36(h.sBO))},I.\u0275cmp=h.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(n,C,B){if(1&n&&h.Suo(B,j,5),2&n){let N;h.iGM(N=h.CRH())&&(C._nodeDefs=N)}},viewQuery:function(n,C){if(1&n&&h.Gf(U,7),2&n){let B;h.iGM(B=h.CRH())&&(C._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,C){1&n&&h.GkF(0,0)},directives:[U],encapsulation:2}),I})(),J=(()=>{class I{constructor(n,C){this._elementRef=n,this._tree=C,this._destroyed=new f.x,this._dataChanges=new f.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 v=I.parentElement;for(;v&&!x(v);)v=v.parentElement;return v?v.classList.contains("cdk-nested-tree-node")?(0,A.su)(v.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)(h.Y36(h.SBq),h.Y36(ce))},I.\u0275dir=h.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,C){2&n&&h.uIk("aria-expanded",C.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function x(I){const v=I.classList;return!(!(null==v?void 0:v.contains("cdk-nested-tree-node"))&&!(null==v?void 0:v.contains("cdk-tree")))}let i=(()=>{class I extends J{constructor(n,C,B){super(n,C),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,e.b)(n)&&n.pipe((0,P.R)(this._destroyed)).subscribe(C=>this.updateChildrenNodes(C)),this.nodeOutlet.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const C=this._getNodeOutlet();n&&(this._children=n),C&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,C.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(C=>!C._node||C._node===this)}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.SBq),h.Y36(ce),h.Y36(h.ZZ4))},I.\u0275dir=h.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,C,B){if(1&n&&h.Suo(B,U,5),2&n){let N;h.iGM(N=h.CRH())&&(C.nodeOutlet=N)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:J,useExisting:I},{provide:S,useExisting:I}]),h.qOj]}),I})();const r=/([A-Za-z%]+)$/;let u=(()=>{class I{constructor(n,C,B,N){this._treeNode=n,this._tree=C,this._element=B,this._dir=N,this._destroyed=new f.x,this.indentUnits="px",this._indent=40,this._setPadding(),N&&N.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,C=null==this._level?n:this._level;return"number"==typeof C?`${C*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const C=this._paddingIndent();if(C!==this._currentPadding||n){const B=this._element.nativeElement,N=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",z="paddingLeft"===N?"paddingRight":"paddingLeft";B.style[N]=C||"",B.style[z]="",this._currentPadding=C}}_setLevelInput(n){this._level=(0,A.su)(n,null),this._setPadding()}_setIndentInput(n){let C=n,B="px";if("string"==typeof n){const N=n.split(r);C=N[0],B=N[1]||B}this.indentUnits=B,this._indent=(0,A.su)(C),this._setPadding()}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(J),h.Y36(ce),h.Y36(h.SBq),h.Y36(w.Is,8))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),c=(()=>{class I{constructor(n,C){this._tree=n,this._treeNode=C,this._recursive=!1}get recursive(){return this._recursive}set recursive(n){this._recursive=(0,A.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)(h.Y36(ce),h.Y36(J))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,C){1&n&&h.NdJ("click",function(N){return C._toggle(N)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),E=(()=>{class I{}return I.\u0275fac=function(n){return new(n||I)},I.\u0275mod=h.oAB({type:I}),I.\u0275inj=h.cJS({}),I})()},9808:(Fe,Y,p)=>{"use strict";p.d(Y,{Do:()=>de,ED:()=>Fn,EM:()=>Hr,HT:()=>a,JF:()=>Wn,JJ:()=>Za,K0:()=>d,Mx:()=>en,NF:()=>$n,Nd:()=>qr,O5:()=>mi,OU:()=>Rr,Ov:()=>ga,PC:()=>cn,PM:()=>Ta,RF:()=>Fi,S$:()=>Z,Ts:()=>lr,V_:()=>A,Ye:()=>ee,b0:()=>X,bD:()=>Ir,ez:()=>gr,gd:()=>nr,i8:()=>Ca,lw:()=>P,mk:()=>ji,mr:()=>ne,n9:()=>pn,q:()=>f,rS:()=>Ra,sg:()=>zt,tP:()=>pr,uU:()=>da,w_:()=>b});var t=p(5e3);let e=null;function f(){return e}function a(Xe){e||(e=Xe)}class b{}const d=new t.OlP("DocumentToken");let P=(()=>{class Xe{historyGo(Ke){throw new Error("Not implemented")}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275prov=t.Yz7({token:Xe,factory:function(){return function h(){return(0,t.LFG)(w)}()},providedIn:"platform"}),Xe})();const A=new t.OlP("Location Initialized");let w=(()=>{class Xe extends P{constructor(Ke){super(),this._doc=Ke,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return f().getBaseHref(this._doc)}onPopState(Ke){const Ot=f().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("popstate",Ke,!1),()=>Ot.removeEventListener("popstate",Ke)}onHashChange(Ke){const Ot=f().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("hashchange",Ke,!1),()=>Ot.removeEventListener("hashchange",Ke)}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(Ke){this.location.pathname=Ke}pushState(Ke,Ot,ri){D()?this._history.pushState(Ke,Ot,ri):this.location.hash=ri}replaceState(Ke,Ot,ri){D()?this._history.replaceState(Ke,Ot,ri):this.location.hash=ri}forward(){this._history.forward()}back(){this._history.back()}historyGo(Ke=0){this._history.go(Ke)}getState(){return this._history.state}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.LFG(d))},Xe.\u0275prov=t.Yz7({token:Xe,factory:function(){return function L(){return new w((0,t.LFG)(d))}()},providedIn:"platform"}),Xe})();function D(){return!!window.history.pushState}function k(Xe,St){if(0==Xe.length)return St;if(0==St.length)return Xe;let Ke=0;return Xe.endsWith("/")&&Ke++,St.startsWith("/")&&Ke++,2==Ke?Xe+St.substring(1):1==Ke?Xe+St:Xe+"/"+St}function S(Xe){const St=Xe.match(/#|\?|$/),Ke=St&&St.index||Xe.length;return Xe.slice(0,Ke-("/"===Xe[Ke-1]?1:0))+Xe.slice(Ke)}function U(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let Z=(()=>{class Xe{historyGo(Ke){throw new Error("Not implemented")}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275prov=t.Yz7({token:Xe,factory:function(){return function j(Xe){const St=(0,t.LFG)(d).location;return new X((0,t.LFG)(P),St&&St.origin||"")}()},providedIn:"root"}),Xe})();const ne=new t.OlP("appBaseHref");let X=(()=>{class Xe extends Z{constructor(Ke,Ot){if(super(),this._platformLocation=Ke,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(Ke){this._removeListenerFns.push(this._platformLocation.onPopState(Ke),this._platformLocation.onHashChange(Ke))}getBaseHref(){return this._baseHref}prepareExternalUrl(Ke){return k(this._baseHref,Ke)}path(Ke=!1){const Ot=this._platformLocation.pathname+U(this._platformLocation.search),ri=this._platformLocation.hash;return ri&&Ke?`${Ot}${ri}`:Ot}pushState(Ke,Ot,ri,Ti){const ki=this.prepareExternalUrl(ri+U(Ti));this._platformLocation.pushState(Ke,Ot,ki)}replaceState(Ke,Ot,ri,Ti){const ki=this.prepareExternalUrl(ri+U(Ti));this._platformLocation.replaceState(Ke,Ot,ki)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Ke=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,Ke)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.LFG(P),t.LFG(ne,8))},Xe.\u0275prov=t.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),de=(()=>{class Xe extends Z{constructor(Ke,Ot){super(),this._platformLocation=Ke,this._baseHref="",this._removeListenerFns=[],null!=Ot&&(this._baseHref=Ot)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ke){this._removeListenerFns.push(this._platformLocation.onPopState(Ke),this._platformLocation.onHashChange(Ke))}getBaseHref(){return this._baseHref}path(Ke=!1){let Ot=this._platformLocation.hash;return null==Ot&&(Ot="#"),Ot.length>0?Ot.substring(1):Ot}prepareExternalUrl(Ke){const Ot=k(this._baseHref,Ke);return Ot.length>0?"#"+Ot:Ot}pushState(Ke,Ot,ri,Ti){let ki=this.prepareExternalUrl(ri+U(Ti));0==ki.length&&(ki=this._platformLocation.pathname),this._platformLocation.pushState(Ke,Ot,ki)}replaceState(Ke,Ot,ri,Ti){let ki=this.prepareExternalUrl(ri+U(Ti));0==ki.length&&(ki=this._platformLocation.pathname),this._platformLocation.replaceState(Ke,Ot,ki)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Ke=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,Ke)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.LFG(P),t.LFG(ne,8))},Xe.\u0275prov=t.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),ee=(()=>{class Xe{constructor(Ke,Ot){this._subject=new t.vpe,this._urlChangeListeners=[],this._platformStrategy=Ke;const ri=this._platformStrategy.getBaseHref();this._platformLocation=Ot,this._baseHref=S(J(ri)),this._platformStrategy.onPopState(Ti=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ti.state,type:Ti.type})})}path(Ke=!1){return this.normalize(this._platformStrategy.path(Ke))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(Ke,Ot=""){return this.path()==this.normalize(Ke+U(Ot))}normalize(Ke){return Xe.stripTrailingSlash(function ce(Xe,St){return Xe&&St.startsWith(Xe)?St.substring(Xe.length):St}(this._baseHref,J(Ke)))}prepareExternalUrl(Ke){return Ke&&"/"!==Ke[0]&&(Ke="/"+Ke),this._platformStrategy.prepareExternalUrl(Ke)}go(Ke,Ot="",ri=null){this._platformStrategy.pushState(ri,"",Ke,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ke+U(Ot)),ri)}replaceState(Ke,Ot="",ri=null){this._platformStrategy.replaceState(ri,"",Ke,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ke+U(Ot)),ri)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Ke=0){var Ot,ri;null===(ri=(Ot=this._platformStrategy).historyGo)||void 0===ri||ri.call(Ot,Ke)}onUrlChange(Ke){this._urlChangeListeners.push(Ke),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ot=>{this._notifyUrlChangeListeners(Ot.url,Ot.state)}))}_notifyUrlChangeListeners(Ke="",Ot){this._urlChangeListeners.forEach(ri=>ri(Ke,Ot))}subscribe(Ke,Ot,ri){return this._subject.subscribe({next:Ke,error:Ot,complete:ri})}}return Xe.normalizeQueryParams=U,Xe.joinWithSlash=k,Xe.stripTrailingSlash=S,Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.LFG(Z),t.LFG(P))},Xe.\u0275prov=t.Yz7({token:Xe,factory:function(){return function te(){return new ee((0,t.LFG)(Z),(0,t.LFG)(P))}()},providedIn:"root"}),Xe})();function J(Xe){return Xe.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))(),u=(()=>((u=u||{})[u.Narrow=0]="Narrow",u[u.Abbreviated=1]="Abbreviated",u[u.Wide=2]="Wide",u[u.Short=3]="Short",u))(),c=(()=>((c=c||{})[c.Short=0]="Short",c[c.Medium=1]="Medium",c[c.Long=2]="Long",c[c.Full=3]="Full",c))(),_=(()=>((_=_||{})[_.Decimal=0]="Decimal",_[_.Group=1]="Group",_[_.List=2]="List",_[_.PercentSign=3]="PercentSign",_[_.PlusSign=4]="PlusSign",_[_.MinusSign=5]="MinusSign",_[_.Exponential=6]="Exponential",_[_.SuperscriptingExponent=7]="SuperscriptingExponent",_[_.PerMille=8]="PerMille",_[_.Infinity=9]="Infinity",_[_.NaN=10]="NaN",_[_.TimeSeparator=11]="TimeSeparator",_[_.CurrencyDecimal=12]="CurrencyDecimal",_[_.CurrencyGroup=13]="CurrencyGroup",_))();function oe(Xe,St){return Te((0,t.cg1)(Xe)[t.wAp.DateFormat],St)}function ge(Xe,St){return Te((0,t.cg1)(Xe)[t.wAp.TimeFormat],St)}function be(Xe,St){return Te((0,t.cg1)(Xe)[t.wAp.DateTimeFormat],St)}function Re(Xe,St){const Ke=(0,t.cg1)(Xe),Ot=Ke[t.wAp.NumberSymbols][St];if(void 0===Ot){if(St===_.CurrencyDecimal)return Ke[t.wAp.NumberSymbols][_.Decimal];if(St===_.CurrencyGroup)return Ke[t.wAp.NumberSymbols][_.Group]}return Ot}function lt(Xe){if(!Xe[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Xe[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Te(Xe,St){for(let Ke=St;Ke>-1;Ke--)if(void 0!==Xe[Ke])return Xe[Ke];throw new Error("Locale data API: locale data undefined")}function ye(Xe){const[St,Ke]=Xe.split(":");return{hours:+St,minutes:+Ke}}const Ce=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Le={},ct=/((?:[^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 ut=(()=>((ut=ut||{})[ut.Short=0]="Short",ut[ut.ShortGMT=1]="ShortGMT",ut[ut.Long=2]="Long",ut[ut.Extended=3]="Extended",ut))(),Dt=(()=>((Dt=Dt||{})[Dt.FullYear=0]="FullYear",Dt[Dt.Month=1]="Month",Dt[Dt.Date=2]="Date",Dt[Dt.Hours=3]="Hours",Dt[Dt.Minutes=4]="Minutes",Dt[Dt.Seconds=5]="Seconds",Dt[Dt.FractionalSeconds=6]="FractionalSeconds",Dt[Dt.Day=7]="Day",Dt))(),di=(()=>((di=di||{})[di.DayPeriods=0]="DayPeriods",di[di.Days=1]="Days",di[di.Months=2]="Months",di[di.Eras=3]="Eras",di))();function Yt(Xe,St,Ke,Ot){let ri=function Ue(Xe){if(at(Xe))return Xe;if("number"==typeof Xe&&!isNaN(Xe))return new Date(Xe);if("string"==typeof Xe){if(Xe=Xe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Xe)){const[ri,Ti=1,ki=1]=Xe.split("-").map(an=>+an);return Gt(ri,Ti-1,ki)}const Ke=parseFloat(Xe);if(!isNaN(Xe-Ke))return new Date(Ke);let Ot;if(Ot=Xe.match(Ce))return function rt(Xe){const St=new Date(0);let Ke=0,Ot=0;const ri=Xe[8]?St.setUTCFullYear:St.setFullYear,Ti=Xe[8]?St.setUTCHours:St.setHours;Xe[9]&&(Ke=Number(Xe[9]+Xe[10]),Ot=Number(Xe[9]+Xe[11])),ri.call(St,Number(Xe[1]),Number(Xe[2])-1,Number(Xe[3]));const ki=Number(Xe[4]||0)-Ke,an=Number(Xe[5]||0)-Ot,It=Number(Xe[6]||0),hi=Math.floor(1e3*parseFloat("0."+(Xe[7]||0)));return Ti.call(St,ki,an,It,hi),St}(Ot)}const St=new Date(Xe);if(!at(St))throw new Error(`Unable to convert "${Xe}" into a date`);return St}(Xe);St=ui(Ke,St)||St;let an,ki=[];for(;St;){if(an=ct.exec(St),!an){ki.push(St);break}{ki=ki.concat(an.slice(1));const mt=ki.pop();if(!mt)break;St=mt}}let It=ri.getTimezoneOffset();Ot&&(It=tt(Ot,It),ri=function Se(Xe,St,Ke){const Ot=Ke?-1:1,ri=Xe.getTimezoneOffset();return function Je(Xe,St){return(Xe=new Date(Xe.getTime())).setMinutes(Xe.getMinutes()+St),Xe}(Xe,Ot*(tt(St,ri)-ri))}(ri,Ot,!0));let hi="";return ki.forEach(mt=>{const Zt=function Ne(Xe){if(it[Xe])return it[Xe];let St;switch(Xe){case"G":case"GG":case"GGG":St=$t(di.Eras,u.Abbreviated);break;case"GGGG":St=$t(di.Eras,u.Wide);break;case"GGGGG":St=$t(di.Eras,u.Narrow);break;case"y":St=et(Dt.FullYear,1,0,!1,!0);break;case"yy":St=et(Dt.FullYear,2,0,!0,!0);break;case"yyy":St=et(Dt.FullYear,3,0,!1,!0);break;case"yyyy":St=et(Dt.FullYear,4,0,!1,!0);break;case"Y":St=Ht(1);break;case"YY":St=Ht(2,!0);break;case"YYY":St=Ht(3);break;case"YYYY":St=Ht(4);break;case"M":case"L":St=et(Dt.Month,1,1);break;case"MM":case"LL":St=et(Dt.Month,2,1);break;case"MMM":St=$t(di.Months,u.Abbreviated);break;case"MMMM":St=$t(di.Months,u.Wide);break;case"MMMMM":St=$t(di.Months,u.Narrow);break;case"LLL":St=$t(di.Months,u.Abbreviated,r.Standalone);break;case"LLLL":St=$t(di.Months,u.Wide,r.Standalone);break;case"LLLLL":St=$t(di.Months,u.Narrow,r.Standalone);break;case"w":St=ft(1);break;case"ww":St=ft(2);break;case"W":St=ft(1,!0);break;case"d":St=et(Dt.Date,1);break;case"dd":St=et(Dt.Date,2);break;case"c":case"cc":St=et(Dt.Day,1);break;case"ccc":St=$t(di.Days,u.Abbreviated,r.Standalone);break;case"cccc":St=$t(di.Days,u.Wide,r.Standalone);break;case"ccccc":St=$t(di.Days,u.Narrow,r.Standalone);break;case"cccccc":St=$t(di.Days,u.Short,r.Standalone);break;case"E":case"EE":case"EEE":St=$t(di.Days,u.Abbreviated);break;case"EEEE":St=$t(di.Days,u.Wide);break;case"EEEEE":St=$t(di.Days,u.Narrow);break;case"EEEEEE":St=$t(di.Days,u.Short);break;case"a":case"aa":case"aaa":St=$t(di.DayPeriods,u.Abbreviated);break;case"aaaa":St=$t(di.DayPeriods,u.Wide);break;case"aaaaa":St=$t(di.DayPeriods,u.Narrow);break;case"b":case"bb":case"bbb":St=$t(di.DayPeriods,u.Abbreviated,r.Standalone,!0);break;case"bbbb":St=$t(di.DayPeriods,u.Wide,r.Standalone,!0);break;case"bbbbb":St=$t(di.DayPeriods,u.Narrow,r.Standalone,!0);break;case"B":case"BB":case"BBB":St=$t(di.DayPeriods,u.Abbreviated,r.Format,!0);break;case"BBBB":St=$t(di.DayPeriods,u.Wide,r.Format,!0);break;case"BBBBB":St=$t(di.DayPeriods,u.Narrow,r.Format,!0);break;case"h":St=et(Dt.Hours,1,-12);break;case"hh":St=et(Dt.Hours,2,-12);break;case"H":St=et(Dt.Hours,1);break;case"HH":St=et(Dt.Hours,2);break;case"m":St=et(Dt.Minutes,1);break;case"mm":St=et(Dt.Minutes,2);break;case"s":St=et(Dt.Seconds,1);break;case"ss":St=et(Dt.Seconds,2);break;case"S":St=et(Dt.FractionalSeconds,1);break;case"SS":St=et(Dt.FractionalSeconds,2);break;case"SSS":St=et(Dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":St=Pe(ut.Short);break;case"ZZZZZ":St=Pe(ut.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":St=Pe(ut.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":St=Pe(ut.Long);break;default:return null}return it[Xe]=St,St}(mt);hi+=Zt?Zt(ri,Ke,It):"''"===mt?"'":mt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),hi}function Gt(Xe,St,Ke){const Ot=new Date(0);return Ot.setFullYear(Xe,St,Ke),Ot.setHours(0,0,0),Ot}function ui(Xe,St){const Ke=function I(Xe){return(0,t.cg1)(Xe)[t.wAp.LocaleId]}(Xe);if(Le[Ke]=Le[Ke]||{},Le[Ke][St])return Le[Ke][St];let Ot="";switch(St){case"shortDate":Ot=oe(Xe,c.Short);break;case"mediumDate":Ot=oe(Xe,c.Medium);break;case"longDate":Ot=oe(Xe,c.Long);break;case"fullDate":Ot=oe(Xe,c.Full);break;case"shortTime":Ot=ge(Xe,c.Short);break;case"mediumTime":Ot=ge(Xe,c.Medium);break;case"longTime":Ot=ge(Xe,c.Long);break;case"fullTime":Ot=ge(Xe,c.Full);break;case"short":const ri=ui(Xe,"shortTime"),Ti=ui(Xe,"shortDate");Ot=xt(be(Xe,c.Short),[ri,Ti]);break;case"medium":const ki=ui(Xe,"mediumTime"),an=ui(Xe,"mediumDate");Ot=xt(be(Xe,c.Medium),[ki,an]);break;case"long":const It=ui(Xe,"longTime"),hi=ui(Xe,"longDate");Ot=xt(be(Xe,c.Long),[It,hi]);break;case"full":const mt=ui(Xe,"fullTime"),Zt=ui(Xe,"fullDate");Ot=xt(be(Xe,c.Full),[mt,Zt])}return Ot&&(Le[Ke][St]=Ot),Ot}function xt(Xe,St){return St&&(Xe=Xe.replace(/\{([^}]+)}/g,function(Ke,Ot){return null!=St&&Ot in St?St[Ot]:Ke})),Xe}function Nt(Xe,St,Ke="-",Ot,ri){let Ti="";(Xe<0||ri&&Xe<=0)&&(ri?Xe=1-Xe:(Xe=-Xe,Ti=Ke));let ki=String(Xe);for(;ki.length0||an>-Ke)&&(an+=Ke),Xe===Dt.Hours)0===an&&-12===Ke&&(an=12);else if(Xe===Dt.FractionalSeconds)return function gt(Xe,St){return Nt(Xe,3).substr(0,St)}(an,St);const It=Re(ki,_.MinusSign);return Nt(an,St,It,Ot,ri)}}function $t(Xe,St,Ke=r.Format,Ot=!1){return function(ri,Ti){return function jt(Xe,St,Ke,Ot,ri,Ti){switch(Ke){case di.Months:return function C(Xe,St,Ke){const Ot=(0,t.cg1)(Xe),Ti=Te([Ot[t.wAp.MonthsFormat],Ot[t.wAp.MonthsStandalone]],St);return Te(Ti,Ke)}(St,ri,Ot)[Xe.getMonth()];case di.Days:return function n(Xe,St,Ke){const Ot=(0,t.cg1)(Xe),Ti=Te([Ot[t.wAp.DaysFormat],Ot[t.wAp.DaysStandalone]],St);return Te(Ti,Ke)}(St,ri,Ot)[Xe.getDay()];case di.DayPeriods:const ki=Xe.getHours(),an=Xe.getMinutes();if(Ti){const hi=function Ie(Xe){const St=(0,t.cg1)(Xe);return lt(St),(St[t.wAp.ExtraData][2]||[]).map(Ot=>"string"==typeof Ot?ye(Ot):[ye(Ot[0]),ye(Ot[1])])}(St),mt=function Ae(Xe,St,Ke){const Ot=(0,t.cg1)(Xe);lt(Ot);const Ti=Te([Ot[t.wAp.ExtraData][0],Ot[t.wAp.ExtraData][1]],St)||[];return Te(Ti,Ke)||[]}(St,ri,Ot),Zt=hi.findIndex(Hi=>{if(Array.isArray(Hi)){const[Zi,Ln]=Hi,Qe=ki>=Zi.hours&&an>=Zi.minutes,We=ki0?Math.floor(ri/60):Math.ceil(ri/60);switch(Xe){case ut.Short:return(ri>=0?"+":"")+Nt(ki,2,Ti)+Nt(Math.abs(ri%60),2,Ti);case ut.ShortGMT:return"GMT"+(ri>=0?"+":"")+Nt(ki,1,Ti);case ut.Long:return"GMT"+(ri>=0?"+":"")+Nt(ki,2,Ti)+":"+Nt(Math.abs(ri%60),2,Ti);case ut.Extended:return 0===Ot?"Z":(ri>=0?"+":"")+Nt(ki,2,Ti)+":"+Nt(Math.abs(ri%60),2,Ti);default:throw new Error(`Unknown zone width "${Xe}"`)}}}function ht(Xe){return Gt(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()+(4-Xe.getDay()))}function ft(Xe,St=!1){return function(Ke,Ot){let ri;if(St){const Ti=new Date(Ke.getFullYear(),Ke.getMonth(),1).getDay()-1,ki=Ke.getDate();ri=1+Math.floor((ki+Ti)/7)}else{const Ti=ht(Ke),ki=function xe(Xe){const St=Gt(Xe,0,1).getDay();return Gt(Xe,0,1+(St<=4?4:11)-St)}(Ti.getFullYear()),an=Ti.getTime()-ki.getTime();ri=1+Math.round(an/6048e5)}return Nt(ri,Xe,Re(Ot,_.MinusSign))}}function Ht(Xe,St=!1){return function(Ke,Ot){return Nt(ht(Ke).getFullYear(),Xe,Re(Ot,_.MinusSign),St)}}const it={};function tt(Xe,St){Xe=Xe.replace(/:/g,"");const Ke=Date.parse("Jan 01, 1970 00:00:00 "+Xe)/6e4;return isNaN(Ke)?St:Ke}function at(Xe){return Xe instanceof Date&&!isNaN(Xe.valueOf())}const yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function qe(Xe){const St=parseInt(Xe);if(isNaN(St))throw new Error("Invalid integer literal when parsing "+Xe);return St}function en(Xe,St){St=encodeURIComponent(St);for(const Ke of Xe.split(";")){const Ot=Ke.indexOf("="),[ri,Ti]=-1==Ot?[Ke,""]:[Ke.slice(0,Ot),Ke.slice(Ot+1)];if(ri.trim()===St)return decodeURIComponent(Ti)}return null}let ji=(()=>{class Xe{constructor(Ke,Ot,ri,Ti){this._iterableDiffers=Ke,this._keyValueDiffers=Ot,this._ngEl=ri,this._renderer=Ti,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Ke){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Ke?Ke.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Ke){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Ke?Ke.split(/\s+/):Ke,this._rawClass&&((0,t.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Ke=this._iterableDiffer.diff(this._rawClass);Ke&&this._applyIterableChanges(Ke)}else if(this._keyValueDiffer){const Ke=this._keyValueDiffer.diff(this._rawClass);Ke&&this._applyKeyValueChanges(Ke)}}_applyKeyValueChanges(Ke){Ke.forEachAddedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),Ke.forEachChangedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),Ke.forEachRemovedItem(Ot=>{Ot.previousValue&&this._toggleClass(Ot.key,!1)})}_applyIterableChanges(Ke){Ke.forEachAddedItem(Ot=>{if("string"!=typeof Ot.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,t.AaK)(Ot.item)}`);this._toggleClass(Ot.item,!0)}),Ke.forEachRemovedItem(Ot=>this._toggleClass(Ot.item,!1))}_applyClasses(Ke){Ke&&(Array.isArray(Ke)||Ke instanceof Set?Ke.forEach(Ot=>this._toggleClass(Ot,!0)):Object.keys(Ke).forEach(Ot=>this._toggleClass(Ot,!!Ke[Ot])))}_removeClasses(Ke){Ke&&(Array.isArray(Ke)||Ke instanceof Set?Ke.forEach(Ot=>this._toggleClass(Ot,!1)):Object.keys(Ke).forEach(Ot=>this._toggleClass(Ot,!1)))}_toggleClass(Ke,Ot){(Ke=Ke.trim())&&Ke.split(/\s+/g).forEach(ri=>{Ot?this._renderer.addClass(this._ngEl.nativeElement,ri):this._renderer.removeClass(this._ngEl.nativeElement,ri)})}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Xe})();class Oi{constructor(St,Ke,Ot,ri){this.$implicit=St,this.ngForOf=Ke,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 Xe{constructor(Ke,Ot,ri){this._viewContainer=Ke,this._template=Ot,this._differs=ri,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Ke){this._ngForOf=Ke,this._ngForOfDirty=!0}set ngForTrackBy(Ke){this._trackByFn=Ke}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Ke){Ke&&(this._template=Ke)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Ke=this._ngForOf;!this._differ&&Ke&&(this._differ=this._differs.find(Ke).create(this.ngForTrackBy))}if(this._differ){const Ke=this._differ.diff(this._ngForOf);Ke&&this._applyChanges(Ke)}}_applyChanges(Ke){const Ot=this._viewContainer;Ke.forEachOperation((ri,Ti,ki)=>{if(null==ri.previousIndex)Ot.createEmbeddedView(this._template,new Oi(ri.item,this._ngForOf,-1,-1),null===ki?void 0:ki);else if(null==ki)Ot.remove(null===Ti?void 0:Ti);else if(null!==Ti){const an=Ot.get(Ti);Ot.move(an,ki),si(an,ri)}});for(let ri=0,Ti=Ot.length;ri{si(Ot.get(ri.currentIndex),ri)})}static ngTemplateContextGuard(Ke,Ot){return!0}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Xe})();function si(Xe,St){Xe.context.$implicit=St.item}let mi=(()=>{class Xe{constructor(Ke,Ot){this._viewContainer=Ke,this._context=new ti,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ot}set ngIf(Ke){this._context.$implicit=this._context.ngIf=Ke,this._updateView()}set ngIfThen(Ke){vi("ngIfThen",Ke),this._thenTemplateRef=Ke,this._thenViewRef=null,this._updateView()}set ngIfElse(Ke){vi("ngIfElse",Ke),this._elseTemplateRef=Ke,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(Ke,Ot){return!0}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b),t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Xe})();class ti{constructor(){this.$implicit=null,this.ngIf=null}}function vi(Xe,St){if(St&&!St.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,t.AaK)(St)}'.`)}class Bi{constructor(St,Ke){this._viewContainerRef=St,this._templateRef=Ke,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(St){St&&!this._created?this.create():!St&&this._created&&this.destroy()}}let Fi=(()=>{class Xe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Ke){this._ngSwitch=Ke,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Ke){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Ke)}_matchCase(Ke){const Ot=Ke==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(Ke){if(this._defaultViews&&Ke!==this._defaultUsed){this._defaultUsed=Ke;for(let Ot=0;Ot{class Xe{constructor(Ke,Ot,ri){this.ngSwitch=ri,ri._addCase(),this._view=new Bi(Ke,Ot)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Fi,9))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Xe})(),Fn=(()=>{class Xe{constructor(Ke,Ot,ri){ri._addDefault(new Bi(Ke,Ot))}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Fi,9))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngSwitchDefault",""]]}),Xe})(),cn=(()=>{class Xe{constructor(Ke,Ot,ri){this._ngEl=Ke,this._differs=Ot,this._renderer=ri,this._ngStyle=null,this._differ=null}set ngStyle(Ke){this._ngStyle=Ke,!this._differ&&Ke&&(this._differ=this._differs.find(Ke).create())}ngDoCheck(){if(this._differ){const Ke=this._differ.diff(this._ngStyle);Ke&&this._applyChanges(Ke)}}_setStyle(Ke,Ot){const[ri,Ti]=Ke.split(".");null!=(Ot=null!=Ot&&Ti?`${Ot}${Ti}`:Ot)?this._renderer.setStyle(this._ngEl.nativeElement,ri,Ot):this._renderer.removeStyle(this._ngEl.nativeElement,ri)}_applyChanges(Ke){Ke.forEachRemovedItem(Ot=>this._setStyle(Ot.key,null)),Ke.forEachAddedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue)),Ke.forEachChangedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue))}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Xe})(),pr=(()=>{class Xe{constructor(Ke){this._viewContainerRef=Ke,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(Ke){if(Ke.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&&Ke.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[t.TTD]}),Xe})();function Jn(Xe,St){return new t.vHH(2100,"")}class mr{createSubscription(St,Ke){return St.subscribe({next:Ke,error:Ot=>{throw Ot}})}dispose(St){St.unsubscribe()}onDestroy(St){St.unsubscribe()}}class Pr{createSubscription(St,Ke){return St.then(Ke,Ot=>{throw Ot})}dispose(St){}onDestroy(St){}}const Nr=new Pr,ca=new mr;let ga=(()=>{class Xe{constructor(Ke){this._ref=Ke,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(Ke){return this._obj?Ke!==this._obj?(this._dispose(),this.transform(Ke)):this._latestValue:(Ke&&this._subscribe(Ke),this._latestValue)}_subscribe(Ke){this._obj=Ke,this._strategy=this._selectStrategy(Ke),this._subscription=this._strategy.createSubscription(Ke,Ot=>this._updateLatestValue(Ke,Ot))}_selectStrategy(Ke){if((0,t.QGY)(Ke))return Nr;if((0,t.F4k)(Ke))return ca;throw Jn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Ke,Ot){Ke===this._obj&&(this._latestValue=Ot,this._ref.markForCheck())}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.sBO,16))},Xe.\u0275pipe=t.Yjl({name:"async",type:Xe,pure:!1}),Xe})(),Ca=(()=>{class Xe{transform(Ke){if(null==Ke)return null;if("string"!=typeof Ke)throw Jn();return Ke.toLowerCase()}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"lowercase",type:Xe,pure:!0}),Xe})();const Na=/(?:[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 Ra=(()=>{class Xe{transform(Ke){if(null==Ke)return null;if("string"!=typeof Ke)throw Jn();return Ke.replace(Na,Ot=>Ot[0].toUpperCase()+Ot.substr(1).toLowerCase())}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"titlecase",type:Xe,pure:!0}),Xe})(),nr=(()=>{class Xe{transform(Ke){if(null==Ke)return null;if("string"!=typeof Ke)throw Jn();return Ke.toUpperCase()}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"uppercase",type:Xe,pure:!0}),Xe})();const Qr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let da=(()=>{class Xe{constructor(Ke,Ot){this.locale=Ke,this.defaultTimezone=Ot}transform(Ke,Ot="mediumDate",ri,Ti){var ki;if(null==Ke||""===Ke||Ke!=Ke)return null;try{return Yt(Ke,Ot,Ti||this.locale,null!==(ki=null!=ri?ri:this.defaultTimezone)&&void 0!==ki?ki:void 0)}catch(an){throw Jn()}}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.soG,16),t.Y36(Qr,24))},Xe.\u0275pipe=t.Yjl({name:"date",type:Xe,pure:!0}),Xe})(),lr=(()=>{class Xe{transform(Ke){return JSON.stringify(Ke,null,2)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"json",type:Xe,pure:!1}),Xe})(),qr=(()=>{class Xe{constructor(Ke){this.differs=Ke,this.keyValues=[],this.compareFn=Xn}transform(Ke,Ot=Xn){if(!Ke||!(Ke instanceof Map)&&"object"!=typeof Ke)return null;this.differ||(this.differ=this.differs.find(Ke).create());const ri=this.differ.diff(Ke),Ti=Ot!==this.compareFn;return ri&&(this.keyValues=[],ri.forEachItem(ki=>{this.keyValues.push(function fn(Xe,St){return{key:Xe,value:St}}(ki.key,ki.currentValue))})),(ri||Ti)&&(this.keyValues.sort(Ot),this.compareFn=Ot),this.keyValues}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.aQg,16))},Xe.\u0275pipe=t.Yjl({name:"keyvalue",type:Xe,pure:!1}),Xe})();function Xn(Xe,St){const Ke=Xe.key,Ot=St.key;if(Ke===Ot)return 0;if(void 0===Ke)return 1;if(void 0===Ot)return-1;if(null===Ke)return 1;if(null===Ot)return-1;if("string"==typeof Ke&&"string"==typeof Ot)return Ke{class Xe{constructor(Ke){this._locale=Ke}transform(Ke,Ot,ri){if(!function Jr(Xe){return!(null==Xe||""===Xe||Xe!=Xe)}(Ke))return null;ri=ri||this._locale;try{return function Lt(Xe,St,Ke){return function Gi(Xe,St,Ke,Ot,ri,Ti,ki=!1){let an="",It=!1;if(isFinite(Xe)){let hi=function Ct(Xe){let Ot,ri,Ti,ki,an,St=Math.abs(Xe)+"",Ke=0;for((ri=St.indexOf("."))>-1&&(St=St.replace(".","")),(Ti=St.search(/e/i))>0?(ri<0&&(ri=Ti),ri+=+St.slice(Ti+1),St=St.substring(0,Ti)):ri<0&&(ri=St.length),Ti=0;"0"===St.charAt(Ti);Ti++);if(Ti===(an=St.length))Ot=[0],ri=1;else{for(an--;"0"===St.charAt(an);)an--;for(ri-=Ti,Ot=[],ki=0;Ti<=an;Ti++,ki++)Ot[ki]=Number(St.charAt(Ti))}return ri>22&&(Ot=Ot.splice(0,21),Ke=ri-1,ri=1),{digits:Ot,exponent:Ke,integerLen:ri}}(Xe);ki&&(hi=function je(Xe){if(0===Xe.digits[0])return Xe;const St=Xe.digits.length-Xe.integerLen;return Xe.exponent?Xe.exponent+=2:(0===St?Xe.digits.push(0,0):1===St&&Xe.digits.push(0),Xe.integerLen+=2),Xe}(hi));let mt=St.minInt,Zt=St.minFrac,Hi=St.maxFrac;if(Ti){const bt=Ti.match(yt);if(null===bt)throw new Error(`${Ti} is not a valid digit info`);const Si=bt[1],Qi=bt[3],Yn=bt[5];null!=Si&&(mt=qe(Si)),null!=Qi&&(Zt=qe(Qi)),null!=Yn?Hi=qe(Yn):null!=Qi&&Zt>Hi&&(Hi=Zt)}!function ie(Xe,St,Ke){if(St>Ke)throw new Error(`The minimum number of digits after fraction (${St}) is higher than the maximum (${Ke}).`);let Ot=Xe.digits,ri=Ot.length-Xe.integerLen;const Ti=Math.min(Math.max(St,ri),Ke);let ki=Ti+Xe.integerLen,an=Ot[ki];if(ki>0){Ot.splice(Math.max(Xe.integerLen,ki));for(let Zt=ki;Zt=5)if(ki-1<0){for(let Zt=0;Zt>ki;Zt--)Ot.unshift(0),Xe.integerLen++;Ot.unshift(1),Xe.integerLen++}else Ot[ki-1]++;for(;ri=hi?Ln.pop():It=!1),Hi>=10?1:0},0);mt&&(Ot.unshift(mt),Xe.integerLen++)}(hi,Zt,Hi);let Zi=hi.digits,Ln=hi.integerLen;const Qe=hi.exponent;let We=[];for(It=Zi.every(bt=>!bt);Ln0?We=Zi.splice(Ln,Zi.length):(We=Zi,Zi=[0]);const He=[];for(Zi.length>=St.lgSize&&He.unshift(Zi.splice(-St.lgSize,Zi.length).join(""));Zi.length>St.gSize;)He.unshift(Zi.splice(-St.gSize,Zi.length).join(""));Zi.length&&He.unshift(Zi.join("")),an=He.join(Re(Ke,Ot)),We.length&&(an+=Re(Ke,ri)+We.join("")),Qe&&(an+=Re(Ke,_.Exponential)+"+"+Qe)}else an=Re(Ke,_.Infinity);return an=Xe<0&&!It?St.negPre+an+St.negSuf:St.posPre+an+St.posSuf,an}(Xe,function fe(Xe,St="-"){const Ke={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ot=Xe.split(";"),ri=Ot[0],Ti=Ot[1],ki=-1!==ri.indexOf(".")?ri.split("."):[ri.substring(0,ri.lastIndexOf("0")+1),ri.substring(ri.lastIndexOf("0")+1)],an=ki[0],It=ki[1]||"";Ke.posPre=an.substr(0,an.indexOf("#"));for(let mt=0;mt{class Xe{transform(Ke,Ot,ri){if(null==Ke)return null;if(!this.supports(Ke))throw Jn();return Ke.slice(Ot,ri)}supports(Ke){return"string"==typeof Ke||Array.isArray(Ke)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"slice",type:Xe,pure:!1}),Xe})(),gr=(()=>{class Xe{}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275mod=t.oAB({type:Xe}),Xe.\u0275inj=t.cJS({}),Xe})();const Ir="browser";function $n(Xe){return Xe===Ir}function Ta(Xe){return"server"===Xe}let Hr=(()=>{class Xe{}return Xe.\u0275prov=(0,t.Yz7)({token:Xe,providedIn:"root",factory:()=>new Sr((0,t.LFG)(d),window)}),Xe})();class Sr{constructor(St,Ke){this.document=St,this.window=Ke,this.offset=()=>[0,0]}setOffset(St){this.offset=Array.isArray(St)?()=>St:St}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(St){this.supportsScrolling()&&this.window.scrollTo(St[0],St[1])}scrollToAnchor(St){if(!this.supportsScrolling())return;const Ke=function ya(Xe,St){const Ke=Xe.getElementById(St)||Xe.getElementsByName(St)[0];if(Ke)return Ke;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const Ot=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let ri=Ot.currentNode;for(;ri;){const Ti=ri.shadowRoot;if(Ti){const ki=Ti.getElementById(St)||Ti.querySelector(`[name="${St}"]`);if(ki)return ki}ri=Ot.nextNode()}}return null}(this.document,St);Ke&&(this.scrollToElement(Ke),Ke.focus())}setHistoryScrollRestoration(St){if(this.supportScrollRestoration()){const Ke=this.window.history;Ke&&Ke.scrollRestoration&&(Ke.scrollRestoration=St)}}scrollToElement(St){const Ke=St.getBoundingClientRect(),Ot=Ke.left+this.window.pageXOffset,ri=Ke.top+this.window.pageYOffset,Ti=this.offset();this.window.scrollTo(Ot-Ti[0],ri-Ti[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const St=Fr(this.window.history)||Fr(Object.getPrototypeOf(this.window.history));return!(!St||!St.writable&&!St.set)}catch(St){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(St){return!1}}}function Fr(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class Wn{}},8138:(Fe,Y,p)=>{"use strict";p.d(Y,{JF:()=>ye,LE:()=>Z,TP:()=>I,eN:()=>_});var t=p(9808),e=p(5e3),f=p(9646),M=p(8306),a=p(4351),b=p(9300),d=p(4004);class P{}class h{}class A{constructor(Ce){this.normalizedNames=new Map,this.lazyUpdate=null,Ce?this.lazyInit="string"==typeof Ce?()=>{this.headers=new Map,Ce.split("\n").forEach(Le=>{const ct=Le.indexOf(":");if(ct>0){const ut=Le.slice(0,ct),Dt=ut.toLowerCase(),di=Le.slice(ct+1).trim();this.maybeSetNormalizedName(ut,Dt),this.headers.has(Dt)?this.headers.get(Dt).push(di):this.headers.set(Dt,[di])}})}:()=>{this.headers=new Map,Object.keys(Ce).forEach(Le=>{let ct=Ce[Le];const ut=Le.toLowerCase();"string"==typeof ct&&(ct=[ct]),ct.length>0&&(this.headers.set(ut,ct),this.maybeSetNormalizedName(Le,ut))})}:this.headers=new Map}has(Ce){return this.init(),this.headers.has(Ce.toLowerCase())}get(Ce){this.init();const Le=this.headers.get(Ce.toLowerCase());return Le&&Le.length>0?Le[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ce){return this.init(),this.headers.get(Ce.toLowerCase())||null}append(Ce,Le){return this.clone({name:Ce,value:Le,op:"a"})}set(Ce,Le){return this.clone({name:Ce,value:Le,op:"s"})}delete(Ce,Le){return this.clone({name:Ce,value:Le,op:"d"})}maybeSetNormalizedName(Ce,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,Ce)}init(){this.lazyInit&&(this.lazyInit instanceof A?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ce=>this.applyUpdate(Ce)),this.lazyUpdate=null))}copyFrom(Ce){Ce.init(),Array.from(Ce.headers.keys()).forEach(Le=>{this.headers.set(Le,Ce.headers.get(Le)),this.normalizedNames.set(Le,Ce.normalizedNames.get(Le))})}clone(Ce){const Le=new A;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof A?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([Ce]),Le}applyUpdate(Ce){const Le=Ce.name.toLowerCase();switch(Ce.op){case"a":case"s":let ct=Ce.value;if("string"==typeof ct&&(ct=[ct]),0===ct.length)return;this.maybeSetNormalizedName(Ce.name,Le);const ut=("a"===Ce.op?this.headers.get(Le):void 0)||[];ut.push(...ct),this.headers.set(Le,ut);break;case"d":const Dt=Ce.value;if(Dt){let di=this.headers.get(Le);if(!di)return;di=di.filter(Yt=>-1===Dt.indexOf(Yt)),0===di.length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,di)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}forEach(Ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(Le=>Ce(this.normalizedNames.get(Le),this.headers.get(Le)))}}class w{encodeKey(Ce){return S(Ce)}encodeValue(Ce){return S(Ce)}decodeKey(Ce){return decodeURIComponent(Ce)}decodeValue(Ce){return decodeURIComponent(Ce)}}const L=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function S(ue){return encodeURIComponent(ue).replace(L,(Ce,Le)=>{var ct;return null!==(ct=k[Le])&&void 0!==ct?ct:Ce})}function U(ue){return`${ue}`}class Z{constructor(Ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ce.encoder||new w,Ce.fromString){if(Ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function D(ue,Ce){const Le=new Map;return ue.length>0&&ue.replace(/^\?/,"").split("&").forEach(ut=>{const Dt=ut.indexOf("="),[di,Yt]=-1==Dt?[Ce.decodeKey(ut),""]:[Ce.decodeKey(ut.slice(0,Dt)),Ce.decodeValue(ut.slice(Dt+1))],Gt=Le.get(di)||[];Gt.push(Yt),Le.set(di,Gt)}),Le}(Ce.fromString,this.encoder)}else Ce.fromObject?(this.map=new Map,Object.keys(Ce.fromObject).forEach(Le=>{const ct=Ce.fromObject[Le];this.map.set(Le,Array.isArray(ct)?ct:[ct])})):this.map=null}has(Ce){return this.init(),this.map.has(Ce)}get(Ce){this.init();const Le=this.map.get(Ce);return Le?Le[0]:null}getAll(Ce){return this.init(),this.map.get(Ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ce,Le){return this.clone({param:Ce,value:Le,op:"a"})}appendAll(Ce){const Le=[];return Object.keys(Ce).forEach(ct=>{const ut=Ce[ct];Array.isArray(ut)?ut.forEach(Dt=>{Le.push({param:ct,value:Dt,op:"a"})}):Le.push({param:ct,value:ut,op:"a"})}),this.clone(Le)}set(Ce,Le){return this.clone({param:Ce,value:Le,op:"s"})}delete(Ce,Le){return this.clone({param:Ce,value:Le,op:"d"})}toString(){return this.init(),this.keys().map(Ce=>{const Le=this.encoder.encodeKey(Ce);return this.map.get(Ce).map(ct=>Le+"="+this.encoder.encodeValue(ct)).join("&")}).filter(Ce=>""!==Ce).join("&")}clone(Ce){const Le=new Z({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(Ce),Le}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ce=>this.map.set(Ce,this.cloneFrom.map.get(Ce))),this.updates.forEach(Ce=>{switch(Ce.op){case"a":case"s":const Le=("a"===Ce.op?this.map.get(Ce.param):void 0)||[];Le.push(U(Ce.value)),this.map.set(Ce.param,Le);break;case"d":if(void 0===Ce.value){this.map.delete(Ce.param);break}{let ct=this.map.get(Ce.param)||[];const ut=ct.indexOf(U(Ce.value));-1!==ut&&ct.splice(ut,1),ct.length>0?this.map.set(Ce.param,ct):this.map.delete(Ce.param)}}}),this.cloneFrom=this.updates=null)}}class ne{constructor(){this.map=new Map}set(Ce,Le){return this.map.set(Ce,Le),this}get(Ce){return this.map.has(Ce)||this.map.set(Ce,Ce.defaultValue()),this.map.get(Ce)}delete(Ce){return this.map.delete(Ce),this}has(Ce){return this.map.has(Ce)}keys(){return this.map.keys()}}function de(ue){return"undefined"!=typeof ArrayBuffer&&ue instanceof ArrayBuffer}function ee(ue){return"undefined"!=typeof Blob&&ue instanceof Blob}function te(ue){return"undefined"!=typeof FormData&&ue instanceof FormData}class J{constructor(Ce,Le,ct,ut){let Dt;if(this.url=Le,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ce.toUpperCase(),function X(ue){switch(ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ut?(this.body=void 0!==ct?ct:null,Dt=ut):Dt=ct,Dt&&(this.reportProgress=!!Dt.reportProgress,this.withCredentials=!!Dt.withCredentials,Dt.responseType&&(this.responseType=Dt.responseType),Dt.headers&&(this.headers=Dt.headers),Dt.context&&(this.context=Dt.context),Dt.params&&(this.params=Dt.params)),this.headers||(this.headers=new A),this.context||(this.context=new ne),this.params){const di=this.params.toString();if(0===di.length)this.urlWithParams=Le;else{const Yt=Le.indexOf("?");this.urlWithParams=Le+(-1===Yt?"?":Ytgt.set(et,Ce.setHeaders[et]),ui)),Ce.setParams&&(xt=Object.keys(Ce.setParams).reduce((gt,et)=>gt.set(et,Ce.setParams[et]),xt)),new J(ct,ut,di,{params:xt,headers:ui,context:Nt,reportProgress:Gt,responseType:Dt,withCredentials:Yt})}}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(Ce,Le=200,ct="OK"){this.headers=Ce.headers||new A,this.status=void 0!==Ce.status?Ce.status:Le,this.statusText=Ce.statusText||ct,this.url=Ce.url||null,this.ok=this.status>=200&&this.status<300}}class i extends x{constructor(Ce={}){super(Ce),this.type=me.ResponseHeader}clone(Ce={}){return new i({headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class r extends x{constructor(Ce={}){super(Ce),this.type=me.Response,this.body=void 0!==Ce.body?Ce.body:null}clone(Ce={}){return new r({body:void 0!==Ce.body?Ce.body:this.body,headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class u extends x{constructor(Ce){super(Ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ce.url||"(unknown url)"}`:`Http failure response for ${Ce.url||"(unknown url)"}: ${Ce.status} ${Ce.statusText}`,this.error=Ce.error||null}}function c(ue,Ce){return{body:Ce,headers:ue.headers,context:ue.context,observe:ue.observe,params:ue.params,reportProgress:ue.reportProgress,responseType:ue.responseType,withCredentials:ue.withCredentials}}let _=(()=>{class ue{constructor(Le){this.handler=Le}request(Le,ct,ut={}){let Dt;if(Le instanceof J)Dt=Le;else{let Gt,ui;Gt=ut.headers instanceof A?ut.headers:new A(ut.headers),ut.params&&(ui=ut.params instanceof Z?ut.params:new Z({fromObject:ut.params})),Dt=new J(Le,ct,void 0!==ut.body?ut.body:null,{headers:Gt,context:ut.context,params:ui,reportProgress:ut.reportProgress,responseType:ut.responseType||"json",withCredentials:ut.withCredentials})}const di=(0,f.of)(Dt).pipe((0,a.b)(Gt=>this.handler.handle(Gt)));if(Le instanceof J||"events"===ut.observe)return di;const Yt=di.pipe((0,b.h)(Gt=>Gt instanceof r));switch(ut.observe||"body"){case"body":switch(Dt.responseType){case"arraybuffer":return Yt.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 Yt.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 Yt.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 Yt.pipe((0,d.U)(Gt=>Gt.body))}case"response":return Yt;default:throw new Error(`Unreachable: unhandled observe type ${ut.observe}}`)}}delete(Le,ct={}){return this.request("DELETE",Le,ct)}get(Le,ct={}){return this.request("GET",Le,ct)}head(Le,ct={}){return this.request("HEAD",Le,ct)}jsonp(Le,ct){return this.request("JSONP",Le,{params:(new Z).append(ct,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Le,ct={}){return this.request("OPTIONS",Le,ct)}patch(Le,ct,ut={}){return this.request("PATCH",Le,c(ut,ct))}post(Le,ct,ut={}){return this.request("POST",Le,c(ut,ct))}put(Le,ct,ut={}){return this.request("PUT",Le,c(ut,ct))}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(P))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})();class E{constructor(Ce,Le){this.next=Ce,this.interceptor=Le}handle(Ce){return this.interceptor.intercept(Ce,this.next)}}const I=new e.OlP("HTTP_INTERCEPTORS");let v=(()=>{class ue{intercept(Le,ct){return ct.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const Re=/^\)\]\}',?\n/;let Q=(()=>{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 M.y(ct=>{const ut=this.xhrFactory.build();if(ut.open(Le.method,Le.urlWithParams),Le.withCredentials&&(ut.withCredentials=!0),Le.headers.forEach((et,vt)=>ut.setRequestHeader(et,vt.join(","))),Le.headers.has("Accept")||ut.setRequestHeader("Accept","application/json, text/plain, */*"),!Le.headers.has("Content-Type")){const et=Le.detectContentTypeHeader();null!==et&&ut.setRequestHeader("Content-Type",et)}if(Le.responseType){const et=Le.responseType.toLowerCase();ut.responseType="json"!==et?et:"text"}const Dt=Le.serializeBody();let di=null;const Yt=()=>{if(null!==di)return di;const et=ut.statusText||"OK",vt=new A(ut.getAllResponseHeaders()),$t=function we(ue){return"responseURL"in ue&&ue.responseURL?ue.responseURL:/^X-Request-URL:/m.test(ue.getAllResponseHeaders())?ue.getResponseHeader("X-Request-URL"):null}(ut)||Le.url;return di=new i({headers:vt,status:ut.status,statusText:et,url:$t}),di},Gt=()=>{let{headers:et,status:vt,statusText:$t,url:jt}=Yt(),Pe=null;204!==vt&&(Pe=void 0===ut.response?ut.responseText:ut.response),0===vt&&(vt=Pe?200:0);let Oe=vt>=200&&vt<300;if("json"===Le.responseType&&"string"==typeof Pe){const le=Pe;Pe=Pe.replace(Re,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(xe){Pe=le,Oe&&(Oe=!1,Pe={error:xe,text:Pe})}}Oe?(ct.next(new r({body:Pe,headers:et,status:vt,statusText:$t,url:jt||void 0})),ct.complete()):ct.error(new u({error:Pe,headers:et,status:vt,statusText:$t,url:jt||void 0}))},ui=et=>{const{url:vt}=Yt(),$t=new u({error:et,status:ut.status||0,statusText:ut.statusText||"Unknown Error",url:vt||void 0});ct.error($t)};let xt=!1;const Nt=et=>{xt||(ct.next(Yt()),xt=!0);let vt={type:me.DownloadProgress,loaded:et.loaded};et.lengthComputable&&(vt.total=et.total),"text"===Le.responseType&&!!ut.responseText&&(vt.partialText=ut.responseText),ct.next(vt)},gt=et=>{let vt={type:me.UploadProgress,loaded:et.loaded};et.lengthComputable&&(vt.total=et.total),ct.next(vt)};return ut.addEventListener("load",Gt),ut.addEventListener("error",ui),ut.addEventListener("timeout",ui),ut.addEventListener("abort",ui),Le.reportProgress&&(ut.addEventListener("progress",Nt),null!==Dt&&ut.upload&&ut.upload.addEventListener("progress",gt)),ut.send(Dt),ct.next({type:me.Sent}),()=>{ut.removeEventListener("error",ui),ut.removeEventListener("abort",ui),ut.removeEventListener("load",Gt),ut.removeEventListener("timeout",ui),Le.reportProgress&&(ut.removeEventListener("progress",Nt),null!==Dt&&ut.upload&&ut.upload.removeEventListener("progress",gt)),ut.readyState!==ut.DONE&&ut.abort()}})}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(t.JF))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const Ge=new e.OlP("XSRF_COOKIE_NAME"),ve=new e.OlP("XSRF_HEADER_NAME");class F{}let De=(()=>{class ue{constructor(Le,ct,ut){this.doc=Le,this.platform=ct,this.cookieName=ut,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,t.Mx)(Le,this.cookieName),this.lastCookieString=Le),this.lastToken}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Ge))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),lt=(()=>{class ue{constructor(Le,ct){this.tokenService=Le,this.headerName=ct}intercept(Le,ct){const ut=Le.url.toLowerCase();if("GET"===Le.method||"HEAD"===Le.method||ut.startsWith("http://")||ut.startsWith("https://"))return ct.handle(Le);const Dt=this.tokenService.getToken();return null!==Dt&&!Le.headers.has(this.headerName)&&(Le=Le.clone({headers:Le.headers.set(this.headerName,Dt)})),ct.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(F),e.LFG(ve))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),Ie=(()=>{class ue{constructor(Le,ct){this.backend=Le,this.injector=ct,this.chain=null}handle(Le){if(null===this.chain){const ct=this.injector.get(I,[]);this.chain=ct.reduceRight((ut,Dt)=>new E(ut,Dt),this.backend)}return this.chain.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(h),e.LFG(e.zs3))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),Te=(()=>{class ue{static disable(){return{ngModule:ue,providers:[{provide:lt,useClass:v}]}}static withOptions(Le={}){return{ngModule:ue,providers:[Le.cookieName?{provide:Ge,useValue:Le.cookieName}:[],Le.headerName?{provide:ve,useValue:Le.headerName}:[]]}}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=e.oAB({type:ue}),ue.\u0275inj=e.cJS({providers:[lt,{provide:I,useExisting:lt,multi:!0},{provide:F,useClass:De},{provide:Ge,useValue:"XSRF-TOKEN"},{provide:ve,useValue:"X-XSRF-TOKEN"}]}),ue})(),ye=(()=>{class ue{}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=e.oAB({type:ue}),ue.\u0275inj=e.cJS({providers:[_,{provide:P,useClass:Ie},Q,{provide:h,useExisting:Q}],imports:[[Te.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ue})()},5e3:(Fe,Y,p)=>{"use strict";p.d(Y,{$8M:()=>T1,$Z:()=>_4,AFp:()=>Lf,ALo:()=>Kh,AaK:()=>P,AsE:()=>O4,BQk:()=>b4,CHM:()=>Ja,CRH:()=>Mu,CZH:()=>Ou,CqO:()=>M4,DdM:()=>zh,Dn7:()=>hu,EJc:()=>Wp,EiD:()=>l3,EpF:()=>kc,F$t:()=>wd,F4k:()=>Nl,FYo:()=>Ah,FiY:()=>Wo,G48:()=>u9,Gf:()=>xu,GfV:()=>Oh,GkF:()=>Oc,Gpc:()=>w,Gre:()=>Wd,HOy:()=>qc,Hsn:()=>Ld,Ikx:()=>In,JOm:()=>Hs,JVY:()=>W1,Jf7:()=>C0,L6k:()=>ho,LAX:()=>x6,LFG:()=>Oa,LSH:()=>d3,Lbi:()=>Gp,MAs:()=>ps,MGl:()=>Rl,NdJ:()=>M2,O4$:()=>ur,OlP:()=>Mr,Oqu:()=>Kc,PXZ:()=>r9,PiD:()=>Ns,Q6J:()=>v4,QGY:()=>ms,Qsj:()=>Dh,R0b:()=>bo,RDi:()=>Fr,Rgc:()=>Wl,SBq:()=>F4,Sil:()=>jp,Suo:()=>bu,TTD:()=>Jr,TgZ:()=>Pl,Tol:()=>Rd,Udp:()=>Zc,VKq:()=>Bh,VLi:()=>n9,W1O:()=>df,WFA:()=>Pc,WLB:()=>Uh,X6Q:()=>zf,XFs:()=>Ae,Xpm:()=>ht,Y36:()=>M1,YKP:()=>au,YNc:()=>s4,Yjl:()=>rt,Yz7:()=>oe,ZZ4:()=>Yu,_Bn:()=>bh,_UZ:()=>b2,_Vd:()=>s6,_c5:()=>A9,_uU:()=>jc,aQg:()=>ju,c2e:()=>Ef,cJS:()=>be,cg1:()=>Sa,d8E:()=>wn,dDg:()=>If,deG:()=>So,dqk:()=>ui,eBb:()=>s3,eFA:()=>Nf,ekj:()=>E4,f3M:()=>o1,g9A:()=>Pu,h0i:()=>Ul,hGG:()=>D9,hij:()=>I4,iGM:()=>rf,ifc:()=>ut,ip1:()=>Iu,kEZ:()=>Gh,kL8:()=>Tr,kcU:()=>nt,lG2:()=>Ue,lcZ:()=>Qh,lnq:()=>Qc,mCW:()=>c1,n5z:()=>S1,n_E:()=>l6,oAB:()=>tt,oJD:()=>s0,oxw:()=>bd,pB0:()=>r8,q3G:()=>oa,qLn:()=>K2,qOj:()=>i4,qZA:()=>x2,qzn:()=>vs,s9C:()=>Rc,sBO:()=>Uf,sIi:()=>Ml,s_b:()=>B4,soG:()=>p6,tBr:()=>co,tb:()=>Nu,tp0:()=>Es,uIk:()=>wc,vHH:()=>S,vpe:()=>Ho,wAp:()=>ln,xi3:()=>qh,xp6:()=>R0,yhl:()=>Rs,ynx:()=>x4,z2F:()=>Bu,z3N:()=>sa,zSh:()=>X3,zs3:()=>go});var t=p(7579),e=p(727),f=p(8306),M=p(6451),a=p(3099);function b(s){for(let l in s)if(s[l]===b)return l;throw Error("Could not find renamed property on target object.")}function d(s,l){for(const g in l)l.hasOwnProperty(g)&&!s.hasOwnProperty(g)&&(s[g]=l[g])}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 g=l.indexOf("\n");return-1===g?l:l.substring(0,g)}function h(s,l){return null==s||""===s?null===l?"":l:null==l||""===l?s:s+" "+l}const A=b({__forward_ref__:b});function w(s){return s.__forward_ref__=w,s.toString=function(){return P(this())},s}function D(s){return L(s)?s():s}function L(s){return"function"==typeof s&&s.hasOwnProperty(A)&&s.__forward_ref__===w}class S extends Error{constructor(l,g){super(function U(s,l){return`NG0${Math.abs(s)}${l?": "+l:""}`}(l,g)),this.code=l}}function Z(s){return"string"==typeof s?s:null==s?"":String(s)}function j(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():Z(s)}function ee(s,l){const g=l?` in ${l}`:"";throw new S(-201,`No provider for ${j(s)} found${g}`)}function n(s,l){null==s&&function C(s,l,g,T){throw new Error(`ASSERTION ERROR: ${s}`+(null==T?"":` [Expected=> ${g} ${T} ${l} <=Actual]`))}(l,s,null,"!=")}function oe(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function be(s){return{providers:s.providers||[],imports:s.imports||[]}}function Re(s){return we(s,F)||we(s,lt)}function we(s,l){return s.hasOwnProperty(l)?s[l]:null}function ve(s){return s&&(s.hasOwnProperty(De)||s.hasOwnProperty(Ie))?s[De]:null}const F=b({\u0275prov:b}),De=b({\u0275inj:b}),lt=b({ngInjectableDef:b}),Ie=b({ngInjectorDef:b});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 se;function ye(s){const l=se;return se=s,l}function W(s,l,g){const T=Re(s);return T&&"root"==T.providedIn?void 0===T.value?T.value=T.factory():T.value:g&Ae.Optional?null:void 0!==l?l:void ee(P(s),"Injector")}function ue(s){return{toString:s}.toString()}var Ce=(()=>((Ce=Ce||{})[Ce.OnPush=0]="OnPush",Ce[Ce.Default=1]="Default",Ce))(),ut=(()=>{return(s=ut||(ut={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",ut;var s})();const Dt="undefined"!=typeof globalThis&&globalThis,di="undefined"!=typeof window&&window,Yt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ui=Dt||"undefined"!=typeof global&&global||di||Yt,gt={},et=[],vt=b({\u0275cmp:b}),$t=b({\u0275dir:b}),jt=b({\u0275pipe:b}),Pe=b({\u0275mod:b}),Oe=b({\u0275fac:b}),le=b({__NG_ELEMENT_ID__:b});let xe=0;function ht(s){return ue(()=>{const g={},T={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:g,inputs:null,outputs:null,exportAs:s.exportAs||null,onPush:s.changeDetection===Ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:s.selectors||et,viewQuery:s.viewQuery||null,features:s.features||null,data:s.data||{},encapsulation:s.encapsulation||ut.Emulated,id:"c",styles:s.styles||et,_:null,setInput:null,schemas:s.schemas||null,tView:null},R=s.directives,G=s.features,ae=s.pipes;return T.id+=xe++,T.inputs=Se(s.inputs,g),T.outputs=Se(s.outputs),G&&G.forEach(Ee=>Ee(T)),T.directiveDefs=R?()=>("function"==typeof R?R():R).map(Ht):null,T.pipeDefs=ae?()=>("function"==typeof ae?ae():ae).map(it):null,T})}function Ht(s){return at(s)||function yt(s){return s[$t]||null}(s)}function it(s){return function gi(s){return s[jt]||null}(s)}const Ne={};function tt(s){return ue(()=>{const l={type:s.type,bootstrap:s.bootstrap||et,declarations:s.declarations||et,imports:s.imports||et,exports:s.exports||et,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null};return null!=s.id&&(Ne[s.id]=s.type),l})}function Se(s,l){if(null==s)return gt;const g={};for(const T in s)if(s.hasOwnProperty(T)){let R=s[T],G=R;Array.isArray(R)&&(G=R[1],R=R[0]),g[R]=T,l&&(l[R]=G)}return g}const Ue=ht;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[vt]||null}function Qt(s,l){const g=s[Pe]||null;if(!g&&!0===l)throw new Error(`Type ${P(s)} does not have '\u0275mod' property.`);return g}function Fi(s){return Array.isArray(s)&&"object"==typeof s[1]}function pn(s){return Array.isArray(s)&&!0===s[1]}function Fn(s){return 0!=(8&s.flags)}function Dn(s){return 2==(2&s.flags)}function Ai(s){return 1==(1&s.flags)}function Ri(s){return null!==s.template}function cn(s){return 0!=(512&s[2])}function Zr(s,l){return s.hasOwnProperty(Oe)?s[Oe]:null}class Ea{constructor(l,g,T){this.previousValue=l,this.currentValue=g,this.firstChange=T}isFirstChange(){return this.firstChange}}function Jr(){return Dr}function Dr(s){return s.type.prototype.ngOnChanges&&(s.setInput=Wr),Rr}function Rr(){const s=Ir(this),l=null==s?void 0:s.current;if(l){const g=s.previous;if(g===gt)s.previous=l;else for(let T in l)g[T]=l[T];s.current=null,this.ngOnChanges(l)}}function Wr(s,l,g,T){const R=Ir(s)||function ua(s,l){return s[gr]=l}(s,{previous:gt,current:null}),G=R.current||(R.current={}),ae=R.previous,Ee=this.declaredInputs[g],Ze=ae[Ee];G[Ee]=new Ea(Ze&&Ze.currentValue,l,ae===gt),s[T]=l}Jr.ngInherit=!0;const gr="__ngSimpleChanges__";function Ir(s){return s[gr]||null}let Sr;function Fr(s){Sr=s}function ya(){return void 0!==Sr?Sr:"undefined"!=typeof document?document:void 0}function Wn(s){return!!s.listen}const Xe={createRenderer:(s,l)=>ya()};function Ke(s){for(;Array.isArray(s);)s=s[0];return s}function Ti(s,l){return Ke(l[s])}function ki(s,l){return Ke(l[s.index])}function It(s,l){return s.data[l]}function hi(s,l){return s[l]}function mt(s,l){const g=l[s];return Fi(g)?g:g[0]}function Zt(s){return 4==(4&s[2])}function Hi(s){return 128==(128&s[2])}function Ln(s,l){return null==l?null:s[l]}function Qe(s){s[18]=0}function We(s,l){s[5]+=l;let g=s,T=s[3];for(;null!==T&&(1===l&&1===g[5]||-1===l&&0===g[5]);)T[5]+=l,g=T,T=T[3]}const He={lFrame:Tn(null),bindingsEnabled:!0};function Wa(){return He.bindingsEnabled}function zi(){return He.lFrame.lView}function zn(){return He.lFrame.tView}function Ja(s){return He.lFrame.contextLView=s,s[8]}function Cr(){let s=Gs();for(;null!==s&&64===s.type;)s=s.parent;return s}function Gs(){return He.lFrame.currentTNode}function ha(s,l){const g=He.lFrame;g.currentTNode=s,g.isParent=l}function xs(){return He.lFrame.isParent}function bs(){He.lFrame.isParent=!1}function Vr(){const s=He.lFrame;let l=s.bindingRootIndex;return-1===l&&(l=s.bindingRootIndex=s.tView.bindingStartIndex),l}function Va(){return He.lFrame.bindingIndex}function re(){return He.lFrame.bindingIndex++}function he(s){const l=He.lFrame,g=l.bindingIndex;return l.bindingIndex=l.bindingIndex+s,g}function Ft(s,l){const g=He.lFrame;g.bindingIndex=g.bindingRootIndex=s,ni(l)}function ni(s){He.lFrame.currentDirectiveIndex=s}function yi(s){const l=He.lFrame.currentDirectiveIndex;return-1===l?null:s[l]}function Pi(){return He.lFrame.currentQueryIndex}function nn(s){He.lFrame.currentQueryIndex=s}function un(s){const l=s[1];return 2===l.type?l.declTNode:1===l.type?s[6]:null}function Sn(s,l,g){if(g&Ae.SkipSelf){let R=l,G=s;for(;!(R=R.parent,null!==R||g&Ae.Host||(R=un(G),null===R||(G=G[15],10&R.type))););if(null===R)return!1;l=R,s=G}const T=He.lFrame=yn();return T.currentTNode=l,T.lView=s,!0}function Pn(s){const l=yn(),g=s[1];He.lFrame=l,l.currentTNode=g.firstChild,l.lView=s,l.tView=g,l.contextLView=s,l.bindingIndex=g.bindingStartIndex,l.inI18n=!1}function yn(){const s=He.lFrame,l=null===s?null:s.child;return null===l?Tn(s):l}function Tn(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=He.lFrame;return He.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const xr=qn;function cr(){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 dr(){return He.lFrame.selectedIndex}function zr(s){He.lFrame.selectedIndex=s}function Bn(){const s=He.lFrame;return It(s.tView,s.selectedIndex)}function ur(){He.lFrame.currentNamespace="svg"}function nt(){!function Et(){He.lFrame.currentNamespace=null}()}function qt(s,l){for(let g=l.directiveStart,T=l.directiveEnd;g=T)break}else l[Ze]<0&&(s[18]+=65536),(Ee>11>16&&(3&s[2])===l){s[2]+=2048;try{G.call(Ee)}finally{}}}else try{G.call(Ee)}finally{}}class on{constructor(l,g,T){this.factory=l,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=T}}function kr(s,l,g){const T=Wn(s);let R=0;for(;Rl){ae=G-1;break}}}for(;G>16}(s),T=l;for(;g>0;)T=T[15],g--;return T}let t1=!0;function Be(s){const l=t1;return t1=s,l}let ot=0;function Xt(s,l){const g=Ni(s,l);if(-1!==g)return g;const T=l[1];T.firstCreatePass&&(s.injectorIndex=l.length,oi(T.data,s),oi(l,null),oi(T.blueprint,null));const R=dn(s,l),G=s.injectorIndex;if(Cs(R)){const ae=Ws(R),Ee=Ys(R,l),Ze=Ee[1].data;for(let dt=0;dt<8;dt++)l[G+dt]=Ee[ae+dt]|Ze[ae+dt]}return l[G+8]=R,G}function oi(s,l){s.push(0,0,0,0,0,0,0,0,l)}function Ni(s,l){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===l[s.injectorIndex+8]?-1:s.injectorIndex}function dn(s,l){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let g=0,T=null,R=l;for(;null!==R;){const G=R[1],ae=G.type;if(T=2===ae?G.declTNode:1===ae?R[6]:null,null===T)return-1;if(g++,R=R[15],-1!==T.injectorIndex)return T.injectorIndex|g<<16}return-1}function Rn(s,l,g){!function kt(s,l,g){let T;"string"==typeof g?T=g.charCodeAt(0)||0:g.hasOwnProperty(le)&&(T=g[le]),null==T&&(T=g[le]=ot++);const R=255&T;l.data[s+(R>>5)]|=1<=0?255&l:Fo:l}(g);if("function"==typeof G){if(!Sn(l,s,T))return T&Ae.Host?rr(R,g,T):Hn(l,g,T,R);try{const ae=G(T);if(null!=ae||T&Ae.Optional)return ae;ee(g)}finally{xr()}}else if("number"==typeof G){let ae=null,Ee=Ni(s,l),Ze=-1,dt=T&Ae.Host?l[16][6]:null;for((-1===Ee||T&Ae.SkipSelf)&&(Ze=-1===Ee?dn(s,l):l[Ee+8],-1!==Ze&&D2(T,!1)?(ae=l[1],Ee=Ws(Ze),l=Ys(Ze,l)):Ee=-1);-1!==Ee;){const Tt=l[1];if(js(G,Ee,Tt.data)){const Wt=n1(Ee,l,g,ae,T,dt);if(Wt!==ws)return Wt}Ze=l[Ee+8],-1!==Ze&&D2(T,l[1].data[Ee+8]===dt)&&js(G,Ee,l)?(ae=Tt,Ee=Ws(Ze),l=Ys(Ze,l)):Ee=-1}}}return Hn(l,g,T,R)}const ws={};function Fo(){return new Vo(Cr(),zi())}function n1(s,l,g,T,R,G){const ae=l[1],Ee=ae.data[s+8],Tt=ba(Ee,ae,g,null==T?Dn(Ee)&&t1:T!=ae&&0!=(3&Ee.type),R&Ae.Host&&G===Ee);return null!==Tt?io(l,ae,Tt,Ee):ws}function ba(s,l,g,T,R){const G=s.providerIndexes,ae=l.data,Ee=1048575&G,Ze=s.directiveStart,Tt=G>>20,ci=R?Ee+Tt:s.directiveEnd;for(let xi=T?Ee:Ee+Tt;xi=Ze&&Vi.type===g)return xi}if(R){const xi=ae[Ze];if(xi&&Ri(xi)&&xi.type===g)return Ze}return null}function io(s,l,g,T){let R=s[g];const G=l.data;if(function bn(s){return s instanceof on}(R)){const ae=R;ae.resolving&&function ne(s,l){const g=l?`. Dependency path: ${l.join(" > ")} > ${s}`:"";throw new S(-200,`Circular dependency in DI detected for ${s}${g}`)}(j(G[g]));const Ee=Be(ae.canSeeViewProviders);ae.resolving=!0;const Ze=ae.injectImpl?ye(ae.injectImpl):null;Sn(s,T,Ae.Default);try{R=s[g]=ae.factory(void 0,G,s,T),l.firstCreatePass&&g>=T.directiveStart&&function Rt(s,l,g){const{ngOnChanges:T,ngOnInit:R,ngDoCheck:G}=l.type.prototype;if(T){const ae=Dr(l);(g.preOrderHooks||(g.preOrderHooks=[])).push(s,ae),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(s,ae)}R&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-s,R),G&&((g.preOrderHooks||(g.preOrderHooks=[])).push(s,G),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(s,G))}(g,G[g],l)}finally{null!==Ze&&ye(Ze),Be(Ee),ae.resolving=!1,xr()}}return R}function js(s,l,g){return!!(g[l+(s>>5)]&1<{const l=s.prototype.constructor,g=l[Oe]||E1(l),T=Object.prototype;let R=Object.getPrototypeOf(s.prototype).constructor;for(;R&&R!==T;){const G=R[Oe]||E1(R);if(G&&G!==g)return G;R=Object.getPrototypeOf(R)}return G=>new G})}function E1(s){return L(s)?()=>{const l=E1(D(s));return l&&l()}:Zr(s)}function T1(s){return function Mn(s,l){if("class"===l)return s.classes;if("style"===l)return s.styles;const g=s.attrs;if(g){const T=g.length;let R=0;for(;R{const T=function A1(s){return function(...g){if(s){const T=s(...g);for(const R in T)this[R]=T[R]}}}(l);function R(...G){if(this instanceof R)return T.apply(this,G),this;const ae=new R(...G);return Ee.annotation=ae,Ee;function Ee(Ze,dt,Tt){const Wt=Ze.hasOwnProperty(no)?Ze[no]:Object.defineProperty(Ze,no,{value:[]})[no];for(;Wt.length<=Tt;)Wt.push(null);return(Wt[Tt]=Wt[Tt]||[]).push(ae),Ze}}return g&&(R.prototype=Object.create(g.prototype)),R.prototype.ngMetadataName=s,R.annotationCls=R,R})}class Mr{constructor(l,g){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=oe({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const So=new Mr("AnalyzeForEntryComponents");function ds(s,l){void 0===l&&(l=s);for(let g=0;gArray.isArray(g)?ja(g,l):l(g))}function k2(s,l,g){l>=s.length?s.push(g):s.splice(l,0,g)}function Uo(s,l){return l>=s.length-1?s.pop():s.splice(l,1)[0]}function ao(s,l){const g=[];for(let T=0;T=0?s[1|T]=g:(T=~T,function Jl(s,l,g,T){let R=s.length;if(R==l)s.push(g,T);else if(1===R)s.push(T,s[0]),s[0]=g;else{for(R--,s.push(s[R-1],s[R]);R>l;)s[R]=s[R-2],R--;s[l]=g,s[l+1]=T}}(s,T,l,g)),T}function Ka(s,l){const g=so(s,l);if(g>=0)return s[1|g]}function so(s,l){return function Ls(s,l,g){let T=0,R=s.length>>g;for(;R!==T;){const G=T+(R-T>>1),ae=s[G<l?R=G:T=G+1}return~(R<({token:s})),-1),Wo=lo(Lo("Optional"),8),Ns=lo(Lo("Self"),2),Es=lo(Lo("SkipSelf"),4);let As,Ve;function uo(s){var l;return(null===(l=function Z1(){if(void 0===As&&(As=null,ui.trustedTypes))try{As=ui.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return As}())||void 0===l?void 0:l.createHTML(s))||s}function _e(s){var l;return(null===(l=function H(){if(void 0===Ve&&(Ve=null,ui.trustedTypes))try{Ve=ui.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Ve}())||void 0===l?void 0:l.createHTML(s))||s}class xn{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class _r extends xn{getTypeName(){return"HTML"}}class Un extends xn{getTypeName(){return"Style"}}class ea extends xn{getTypeName(){return"Script"}}class hs extends xn{getTypeName(){return"URL"}}class ar extends xn{getTypeName(){return"ResourceURL"}}function sa(s){return s instanceof xn?s.changingThisBreaksApplicationSecurity:s}function vs(s,l){const g=Rs(s);if(null!=g&&g!==l){if("ResourceURL"===g&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===l}function Rs(s){return s instanceof xn&&s.getTypeName()||null}function W1(s){return new _r(s)}function ho(s){return new Un(s)}function s3(s){return new ea(s)}function x6(s){return new hs(s)}function r8(s){return new ar(s)}class X4{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l=""+l;try{const g=(new window.DOMParser).parseFromString(uo(l),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(l):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class $4{constructor(l){if(this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const T=this.inertDocument.createElement("body");g.appendChild(T)}}getInertBodyElement(l){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=uo(l),g;const T=this.inertDocument.createElement("body");return T.innerHTML=uo(l),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(T),T}stripCustomNsAttrs(l){const g=l.attributes;for(let R=g.length-1;0c1(l.trim())).join(", ")),this.buf.push(" ",ae,'="',a0(Ze),'"')}var s;return this.buf.push(">"),!0}endElement(l){const g=l.nodeName.toLowerCase();wa.hasOwnProperty(g)&&!t0.hasOwnProperty(g)&&(this.buf.push(""))}chars(l){this.buf.push(a0(l))}checkClobberedElement(l,g){if(g&&(l.compareDocumentPosition(g)&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 g}}const w6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L6=/([^\#-~ |!])/g;function a0(s){return s.replace(/&/g,"&").replace(w6,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(L6,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(//g,">")}let q1;function l3(s,l){let g=null;try{q1=q1||function J4(s){const l=new $4(s);return function a8(){try{return!!(new window.DOMParser).parseFromString(uo(""),"text/html")}catch(s){return!1}}()?new X4(l):l}(s);let T=l?String(l):"";g=q1.getInertBodyElement(T);let R=5,G=T;do{if(0===R)throw new Error("Failed to sanitize html because the input is unstable");R--,T=G,G=g.innerHTML,g=q1.getInertBodyElement(T)}while(T!==G);return uo((new r0).sanitizeChildren(J1(g)||g))}finally{if(g){const T=J1(g)||g;for(;T.firstChild;)T.removeChild(T.firstChild)}}}function J1(s){return"content"in s&&function S6(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var oa=(()=>((oa=oa||{})[oa.NONE=0]="NONE",oa[oa.HTML=1]="HTML",oa[oa.STYLE=2]="STYLE",oa[oa.SCRIPT=3]="SCRIPT",oa[oa.URL=4]="URL",oa[oa.RESOURCE_URL=5]="RESOURCE_URL",oa))();function s0(s){const l=Ko();return l?_e(l.sanitize(oa.HTML,s)||""):vs(s,"HTML")?_e(sa(s)):l3(ya(),Z(s))}function d3(s){const l=Ko();return l?l.sanitize(oa.URL,s)||"":vs(s,"URL")?sa(s):c1(Z(s))}function Ko(){const s=zi();return s&&s[12]}const u3="__ngContext__";function qa(s,l){s[u3]=l}function h3(s){const l=function $1(s){return s[u3]||null}(s);return l?Array.isArray(l)?l:l.lView:null}function j2(s){return s.ngOriginalError}function C3(s,...l){s.error(...l)}class K2{constructor(){this._console=console}handleError(l){const g=this._findOriginalError(l),T=function R6(s){return s&&s.ngErrorLogger||C3}(l);T(this._console,"ERROR",l),g&&T(this._console,"ORIGINAL ERROR",g)}_findOriginalError(l){let g=l&&j2(l);for(;g&&j2(g);)g=j2(g);return g||null}}const G6=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ui))();function C0(s){return s.ownerDocument.defaultView}function qs(s){return s instanceof Function?s():s}var Hs=(()=>((Hs=Hs||{})[Hs.Important=1]="Important",Hs[Hs.DashCase=2]="DashCase",Hs))();function y3(s,l){return undefined(s,l)}function h1(s){const l=s[3];return pn(l)?l[3]:l}function x3(s){return j6(s[13])}function b0(s){return j6(s[4])}function j6(s){for(;null!==s&&!pn(s);)s=s[4];return s}function f1(s,l,g,T,R){if(null!=T){let G,ae=!1;pn(T)?G=T:Fi(T)&&(ae=!0,T=T[0]);const Ee=Ke(T);0===s&&null!==g?null==R?t2(l,g,Ee):qo(l,g,Ee,R||null,!0):1===s&&null!==g?qo(l,g,Ee,R||null,!0):2===s?function E3(s,l,g){const T=Jo(s,l);T&&function e5(s,l,g,T){Wn(s)?s.removeChild(l,g,T):l.removeChild(g)}(s,T,l,g)}(l,Ee,ae):3===s&&l.destroyNode(Ee),null!=G&&function I0(s,l,g,T,R){const G=g[7];G!==Ke(g)&&f1(l,s,T,G,R);for(let Ee=10;Ee0&&(s[g-1][4]=T[4]);const G=Uo(s,10+l);!function J2(s,l){r2(s,l,l[11],2,null,null),l[0]=null,l[6]=null}(T[1],T);const ae=G[19];null!==ae&&ae.detachView(G[1]),T[3]=null,T[4]=null,T[2]&=-129}return T}function L0(s,l){if(!(256&l[2])){const g=l[11];Wn(g)&&g.destroyNode&&r2(s,l,g,3,null,null),function J6(s){let l=s[13];if(!l)return w3(s[1],s);for(;l;){let g=null;if(Fi(l))g=l[13];else{const T=l[10];T&&(g=T)}if(!g){for(;l&&!l[4]&&l!==s;)Fi(l)&&w3(l[1],l),l=l[3];null===l&&(l=s),Fi(l)&&w3(l[1],l),g=l&&l[4]}l=g}}(l)}}function w3(s,l){if(!(256&l[2])){l[2]&=-129,l[2]|=256,function S0(s,l){let g;if(null!=s&&null!=(g=s.destroyHooks))for(let T=0;T=0?T[R=dt]():T[R=-dt].unsubscribe(),G+=2}else{const ae=T[R=g[G+1]];g[G].call(ae)}if(null!==T){for(let G=R+1;GG?"":R[Wt+1].toLowerCase();const xi=8&T?ci:null;if(xi&&-1!==O0(xi,dt,0)||2&T&&dt!==ci){if(Ds(T))return!1;ae=!0}}}}else{if(!ae&&!Ds(T)&&!Ds(Ze))return!1;if(ae&&Ds(Ze))continue;ae=!1,T=Ze|1&T}}return Ds(T)||ae}function Ds(s){return 0==(1&s)}function i5(s,l,g,T){if(null===l)return-1;let R=0;if(T||!g){let G=!1;for(;R-1)for(g++;g0?'="'+Ee+'"':"")+"]"}else 8&T?R+="."+ae:4&T&&(R+=" "+ae);else""!==R&&!Ds(ae)&&(l+=al(G,R),R=""),T=ae,G=G||!Ds(T);g++}return""!==R&&(l+=al(G,R)),l}const Gn={};function R0(s){H0(zn(),zi(),dr()+s,!1)}function H0(s,l,g,T){if(!T)if(3==(3&l[2])){const G=s.preOrderCheckHooks;null!==G&&_i(l,G,g)}else{const G=s.preOrderHooks;null!==G&&ei(l,G,0,g)}zr(g)}function s2(s,l){return s<<17|l<<2}function Is(s){return s>>17&32767}function k3(s){return 2|s}function Js(s){return(131068&s)>>2}function P3(s,l){return-131069&s|l<<2}function sl(s){return 1|s}function _5(s,l){const g=s.contentQueries;if(null!==g)for(let T=0;T20&&H0(s,l,20,!1),g(T,R)}finally{zr(G)}}function Q0(s,l,g){if(Fn(l)){const R=l.directiveEnd;for(let G=l.directiveStart;G0;){const g=s[--l];if("number"==typeof g&&g<0)return g}return 0})(Ee)!=Ze&&Ee.push(Ze),Ee.push(T,R,ae)}}function T5(s,l){null!==s.hostBindings&&s.hostBindings(1,l)}function D5(s,l){l.flags|=2,(s.components||(s.components=[])).push(l.index)}function S8(s,l,g){if(g){if(l.exportAs)for(let T=0;T0&&gl(g)}}function gl(s){for(let T=x3(s);null!==T;T=b0(T))for(let R=10;R0&&gl(G)}const g=s[1].components;if(null!==g)for(let T=0;T0&&gl(R)}}function N5(s,l){const g=mt(l,s),T=g[1];(function oc(s,l){for(let g=l.length;gPromise.resolve(null))();function cc(s){return s[7]||(s[7]=[])}function dc(s){return s.cleanup||(s.cleanup=[])}function uc(s,l,g){return(null===s||Ri(s))&&(g=function Ot(s){for(;Array.isArray(s);){if("object"==typeof s[1])return s;s=s[0]}return null}(g[l.index])),g[11]}function V5(s,l){const g=s[9],T=g?g.get(K2,null):null;T&&T.handleError(l)}function hc(s,l,g,T,R){for(let G=0;Gthis.processProvider(Ee,l,g)),ja([l],Ee=>this.processInjectorType(Ee,[],G)),this.records.set(J3,o2(void 0,this));const ae=this.records.get(X3);this.scope=null!=ae?ae.value:null,this.source=R||("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,g=Qs,T=Ae.Default){this.assertNotDestroyed();const R=V1(this),G=ye(void 0);try{if(!(T&Ae.SkipSelf)){let Ee=this.records.get(l);if(void 0===Ee){const Ze=function N8(s){return"function"==typeof s||"object"==typeof s&&s instanceof Mr}(l)&&Re(l);Ee=Ze&&this.injectableDefInScope(Ze)?o2(t4(l),xl):null,this.records.set(l,Ee)}if(null!=Ee)return this.hydrate(l,Ee)}return(T&Ae.Self?e4():this.parent).get(l,g=T&Ae.Optional&&g===Qs?null:g)}catch(ae){if("NullInjectorError"===ae.name){if((ae[oo]=ae[oo]||[]).unshift(P(l)),R)throw ae;return function e3(s,l,g,T){const R=s[oo];throw l[Go]&&R.unshift(l[Go]),s.message=function H2(s,l,g,T=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.substr(2):s;let R=P(l);if(Array.isArray(l))R=l.map(P).join(" -> ");else if("object"==typeof l){let G=[];for(let ae in l)if(l.hasOwnProperty(ae)){let Ee=l[ae];G.push(ae+":"+("string"==typeof Ee?JSON.stringify(Ee):P(Ee)))}R=`{${G.join(", ")}}`}return`${g}${T?"("+T+")":""}[${R}]: ${s.replace(F1,"\n ")}`}("\n"+s.message,R,g,T),s.ngTokenPath=R,s[oo]=null,s}(ae,l,"R3InjectorError",this.source)}throw ae}finally{ye(G),V1(R)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(l=>this.get(l))}toString(){const l=[];return this.records.forEach((T,R)=>l.push(P(R))),`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processInjectorType(l,g,T){if(!(l=D(l)))return!1;let R=ve(l);const G=null==R&&l.ngModule||void 0,ae=void 0===G?l:G,Ee=-1!==T.indexOf(ae);if(void 0!==G&&(R=ve(G)),null==R)return!1;if(null!=R.imports&&!Ee){let Tt;T.push(ae);try{ja(R.imports,Wt=>{this.processInjectorType(Wt,g,T)&&(void 0===Tt&&(Tt=[]),Tt.push(Wt))})}finally{}if(void 0!==Tt)for(let Wt=0;Wtthis.processProvider(Vi,ci,xi||et))}}this.injectorDefTypes.add(ae);const Ze=Zr(ae)||(()=>new ae);this.records.set(ae,o2(Ze,xl));const dt=R.providers;if(null!=dt&&!Ee){const Tt=l;ja(dt,Wt=>this.processProvider(Wt,Tt,dt))}return void 0!==G&&void 0!==l.providers}processProvider(l,g,T){let R=l2(l=D(l))?l:D(l&&l.provide);const G=function Y5(s,l,g){return j5(s)?o2(void 0,s.useValue):o2(fc(s),xl)}(l);if(l2(l)||!0!==l.multi)this.records.get(R);else{let ae=this.records.get(R);ae||(ae=o2(void 0,xl,!0),ae.factory=()=>N2(ae.multi),this.records.set(R,ae)),R=l,ae.multi.push(l)}this.records.set(R,G)}hydrate(l,g){return g.value===xl&&(g.value=G5,g.value=g.factory()),"object"==typeof g.value&&g.value&&function P8(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(l){if(!l.providedIn)return!1;const g=D(l.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function t4(s){const l=Re(s),g=null!==l?l.factory:Zr(s);if(null!==g)return g;if(s instanceof Mr)throw new S(204,!1);if(s instanceof Function)return function I8(s){const l=s.length;if(l>0)throw ao(l,"?"),new S(204,!1);const g=function Q(s){const l=s&&(s[F]||s[lt]);if(l){const g=function Ge(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 "${g}" 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 "${g}" class.`),l}return null}(s);return null!==g?()=>g.factory(s):()=>new s}(s);throw new S(204,!1)}function fc(s,l,g){let T;if(l2(s)){const R=D(s);return Zr(R)||t4(R)}if(j5(s))T=()=>D(s.useValue);else if(function pc(s){return!(!s||!s.useFactory)}(s))T=()=>s.useFactory(...N2(s.deps||[]));else if(function O8(s){return!(!s||!s.useExisting)}(s))T=()=>Oa(D(s.useExisting));else{const R=D(s&&(s.useClass||s.provide));if(!function k8(s){return!!s.deps}(s))return Zr(R)||t4(R);T=()=>new R(...N2(s.deps))}return T}function o2(s,l,g=!1){return{factory:s,value:l,multi:g?[]:void 0}}function j5(s){return null!==s&&"object"==typeof s&&$l in s}function l2(s){return"function"==typeof s}let go=(()=>{class s{static create(g,T){var R;if(Array.isArray(g))return Z5({name:""},T,g,"");{const G=null!==(R=g.name)&&void 0!==R?R:"";return Z5({name:G},g.parent,g.providers,G)}}}return s.THROW_IF_NOT_FOUND=Qs,s.NULL=new U5,s.\u0275prov=oe({token:s,providedIn:"any",factory:()=>Oa(J3)}),s.__NG_ELEMENT_ID__=-1,s})();function sd(s,l){qt(h3(s)[1],Cr())}function i4(s){let l=function od(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),g=!0;const T=[s];for(;l;){let R;if(Ri(s))R=l.\u0275cmp||l.\u0275dir;else{if(l.\u0275cmp)throw new S(903,"");R=l.\u0275dir}if(R){if(g){T.push(R);const ae=s;ae.inputs=bc(s.inputs),ae.declaredInputs=bc(s.declaredInputs),ae.outputs=bc(s.outputs);const Ee=R.hostBindings;Ee&&G8(s,Ee);const Ze=R.viewQuery,dt=R.contentQueries;if(Ze&&B8(s,Ze),dt&&U8(s,dt),d(s.inputs,R.inputs),d(s.declaredInputs,R.declaredInputs),d(s.outputs,R.outputs),Ri(R)&&R.data.animation){const Tt=s.data;Tt.animation=(Tt.animation||[]).concat(R.data.animation)}}const G=R.features;if(G)for(let ae=0;ae=0;T--){const R=s[T];R.hostVars=l+=R.hostVars,R.hostAttrs=ls(R.hostAttrs,g=ls(g,R.hostAttrs))}}(T)}function bc(s){return s===gt?{}:s===et?[]:s}function B8(s,l){const g=s.viewQuery;s.viewQuery=g?(T,R)=>{l(T,R),g(T,R)}:l}function U8(s,l){const g=s.contentQueries;s.contentQueries=g?(T,R,G)=>{l(T,R,G),g(T,R,G)}:l}function G8(s,l){const g=s.hostBindings;s.hostBindings=g?(T,R)=>{l(T,R),g(T,R)}:l}let bl=null;function _1(){if(!bl){const s=ui.Symbol;if(s&&s.iterator)bl=s.iterator;else{const l=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gEe(Ke(ir[T.index])):T.index;if(Wn(g)){let ir=null;if(!Ee&&Ze&&(ir=function Nc(s,l,g,T){const R=s.cleanup;if(null!=R)for(let G=0;GZe?Ee[Ze]:null}"string"==typeof ae&&(G+=2)}return null}(s,l,R,T.index)),null!==ir)(ir.__ngLastListenerFn__||ir).__ngNextListenerFn__=G,ir.__ngLastListenerFn__=G,xi=!1;else{G=w4(T,l,Wt,G,!1);const Lr=g.listen(Cn,R,G);ci.push(G,Lr),Tt&&Tt.push(R,An,Ui,Ui+1)}}else G=w4(T,l,Wt,G,!0),Cn.addEventListener(R,G,ae),ci.push(G),Tt&&Tt.push(R,An,Ui,ae)}else G=w4(T,l,Wt,G,!1);const Vi=T.outputs;let Ji;if(xi&&null!==Vi&&(Ji=Vi[R])){const sn=Ji.length;if(sn)for(let Cn=0;Cn0;)l=l[15],s--;return l}(s,He.lFrame.contextLView))[8]}(s)}function Md(s,l){let g=null;const T=function r5(s){const l=s.attrs;if(null!=l){const g=l.indexOf(5);if(0==(1&g))return l[g+1]}return null}(s);for(let R=0;R=0}const ka={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function L4(s){return s.substring(ka.key,ka.keyEnd)}function Id(s,l){const g=ka.textEnd;return g===l?-1:(l=ka.keyEnd=function Q8(s,l,g){for(;l32;)l++;return l}(s,ka.key=l,g),w2(s,l,g))}function w2(s,l,g){for(;l=0;g=Id(l,g))Ma(s,L4(l),!0)}function eo(s,l,g,T){const R=zi(),G=zn(),ae=he(2);G.firstUpdatePass&&Wc(G,s,ae,T),l!==Gn&&is(R,ae,l)&&Yc(G,G.data[dr()],R,R[11],s,R[ae+1]=function Bd(s,l){return null==s||("string"==typeof l?s+=l:"object"==typeof s&&(s=P(sa(s)))),s}(l,g),T,ae)}function to(s,l,g,T){const R=zn(),G=he(2);R.firstUpdatePass&&Wc(R,null,G,T);const ae=zi();if(g!==Gn&&is(ae,G,g)){const Ee=R.data[dr()];if(Ud(Ee,T)&&!Hd(R,G)){let Ze=T?Ee.classesWithoutHost:Ee.stylesWithoutHost;null!==Ze&&(g=h(Ze,g||"")),kl(R,Ee,ae,g,T)}else!function Vd(s,l,g,T,R,G,ae,Ee){R===Gn&&(R=et);let Ze=0,dt=0,Tt=0=s.expandoStartIndex}function Wc(s,l,g,T){const R=s.data;if(null===R[g+1]){const G=R[dr()],ae=Hd(s,g);Ud(G,T)&&null===l&&!ae&&(l=!1),l=function X8(s,l,g,T){const R=yi(s);let G=T?l.residualClasses:l.residualStyles;if(null===R)0===(T?l.classBindings:l.styleBindings)&&(g=Hl(g=A4(null,s,l,g,T),l.attrs,T),G=null);else{const ae=l.directiveStylingLast;if(-1===ae||s[ae]!==R)if(g=A4(R,s,l,g,T),null===G){let Ze=function $8(s,l,g){const T=g?l.classBindings:l.styleBindings;if(0!==Js(T))return s[Is(T)]}(s,l,T);void 0!==Ze&&Array.isArray(Ze)&&(Ze=A4(null,s,l,Ze[1],T),Ze=Hl(Ze,l.attrs,T),function Fd(s,l,g,T){s[Is(g?l.classBindings:l.styleBindings)]=T}(s,l,T,Ze))}else G=function eh(s,l,g){let T;const R=l.directiveEnd;for(let G=1+l.directiveStylingLast;G0)&&(dt=!0)}else Tt=g;if(R)if(0!==Ze){const ci=Is(s[Ee+1]);s[T+1]=s2(ci,Ee),0!==ci&&(s[ci+1]=P3(s[ci+1],T)),s[Ee+1]=function V0(s,l){return 131071&s|l<<17}(s[Ee+1],T)}else s[T+1]=s2(Ee,0),0!==Ee&&(s[Ee+1]=P3(s[Ee+1],T)),Ee=T;else s[T+1]=s2(Ze,0),0===Ee?Ee=T:s[Ze+1]=P3(s[Ze+1],T),Ze=T;dt&&(s[T+1]=k3(s[T+1])),zc(s,Tt,T,!0),zc(s,Tt,T,!1),function Dd(s,l,g,T,R){const G=R?s.residualClasses:s.residualStyles;null!=G&&"string"==typeof l&&so(G,l)>=0&&(g[T+1]=sl(g[T+1]))}(l,Tt,s,T,G),ae=s2(Ee,Ze),G?l.classBindings=ae:l.styleBindings=ae}(R,G,l,g,ae,T)}}function A4(s,l,g,T,R){let G=null;const ae=g.directiveEnd;let Ee=g.directiveStylingLast;for(-1===Ee?Ee=g.directiveStart:Ee++;Ee0;){const Ze=s[R],dt=Array.isArray(Ze),Tt=dt?Ze[1]:Ze,Wt=null===Tt;let ci=g[R+1];ci===Gn&&(ci=Wt?et:void 0);let xi=Wt?Ka(ci,T):Tt===T?ci:void 0;if(dt&&!D4(xi)&&(xi=Ka(Ze,T)),D4(xi)&&(Ee=xi,ae))return Ee;const Vi=s[R+1];R=ae?Is(Vi):Js(Vi)}if(null!==l){let Ze=G?l.residualClasses:l.residualStyles;null!=Ze&&(Ee=Ka(Ze,T))}return Ee}function D4(s){return void 0!==s}function Ud(s,l){return 0!=(s.flags&(l?16:32))}function jc(s,l=""){const g=zi(),T=zn(),R=s+20,G=T.firstCreatePass?g1(T,R,1,l,null):T.data[R],ae=g[R]=function q2(s,l){return Wn(s)?s.createText(l):s.createTextNode(l)}(g[11],l);el(T,g,ae,G),ha(G,!1)}function Kc(s){return I4("",s,""),Kc}function I4(s,l,g){const T=zi(),R=y1(T,s,l,g);return R!==Gn&&mo(T,dr(),R),I4}function O4(s,l,g,T,R){const G=zi(),ae=function d2(s,l,g,T,R,G){const Ee=v1(s,Va(),g,R);return he(2),Ee?l+Z(g)+T+Z(R)+G:Gn}(G,s,l,g,T,R);return ae!==Gn&&mo(G,dr(),ae),O4}function Qc(s,l,g,T,R,G,ae){const Ee=zi(),Ze=function u2(s,l,g,T,R,G,ae,Ee){const dt=Ll(s,Va(),g,R,ae);return he(3),dt?l+Z(g)+T+Z(R)+G+Z(ae)+Ee:Gn}(Ee,s,l,g,T,R,G,ae);return Ze!==Gn&&mo(Ee,dr(),Ze),Qc}function qc(s,l,g,T,R,G,ae,Ee,Ze){const dt=zi(),Tt=x1(dt,s,l,g,T,R,G,ae,Ee,Ze);return Tt!==Gn&&mo(dt,dr(),Tt),qc}function Wd(s,l,g){to(Ma,$s,y1(zi(),s,l,g),!0)}function In(s,l,g){const T=zi();return is(T,re(),l)&&fs(zn(),Bn(),T,s,l,T[11],g,!0),In}function wn(s,l,g){const T=zi();if(is(T,re(),l)){const G=zn(),ae=Bn();fs(G,ae,T,s,l,uc(yi(G.data),ae,T),g,!0)}return wn}const fr=void 0;var Pa=["en",[["a","p"],["AM","PM"],fr],[["AM","PM"],fr,fr],[["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"]],fr,[["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"]],fr,[["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}",fr,"{1} 'at' {0}",fr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function wr(s){const g=Math.floor(Math.abs(s)),T=s.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===T?1:5}];let Er={};function Sa(s){const l=function rs(s){return s.toLowerCase().replace(/_/g,"-")}(s);let g=ns(l);if(g)return g;const T=l.split("-")[0];if(g=ns(T),g)return g;if("en"===T)return Pa;throw new Error(`Missing locale data for the locale "${s}".`)}function Tr(s){return Sa(s)[ln.PluralCase]}function ns(s){return s in Er||(Er[s]=ui.ng&&ui.ng.common&&ui.ng.common.locales&&ui.ng.common.locales[s]),Er[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 Kr="en-US";let Ga=Kr;function $d(s,l,g,T,R){if(s=D(s),Array.isArray(s))for(let G=0;G>20;if(l2(s)||!s.multi){const xi=new on(Ze,R,M1),Vi=tu(Ee,l,R?Tt:Tt+ci,Wt);-1===Vi?(Rn(Xt(dt,ae),G,Ee),eu(G,s,l.length),l.push(Ee),dt.directiveStart++,dt.directiveEnd++,R&&(dt.providerIndexes+=1048576),g.push(xi),ae.push(xi)):(g[Vi]=xi,ae[Vi]=xi)}else{const xi=tu(Ee,l,Tt+ci,Wt),Vi=tu(Ee,l,Tt,Tt+ci),Ji=xi>=0&&g[xi],sn=Vi>=0&&g[Vi];if(R&&!sn||!R&&!Ji){Rn(Xt(dt,ae),G,Ee);const Cn=function Q7(s,l,g,T,R){const G=new on(s,g,M1);return G.multi=[],G.index=l,G.componentProviders=0,r6(G,R,T&&!g),G}(R?K7:a6,g.length,R,T,Ze);!R&&sn&&(g[Vi].providerFactory=Cn),eu(G,s,l.length,0),l.push(Ee),dt.directiveStart++,dt.directiveEnd++,R&&(dt.providerIndexes+=1048576),g.push(Cn),ae.push(Cn)}else eu(G,s,xi>-1?xi:Vi,r6(g[R?Vi:xi],Ze,!R&&T));!R&&T&&sn&&g[Vi].componentProviders++}}}function eu(s,l,g,T){const R=l2(l),G=function K5(s){return!!s.useClass}(l);if(R||G){const Ze=(G?D(l.useClass):l).prototype.ngOnDestroy;if(Ze){const dt=s.destroyHooks||(s.destroyHooks=[]);if(!R&&l.multi){const Tt=dt.indexOf(g);-1===Tt?dt.push(g,[T,Ze]):dt[Tt+1].push(T,Ze)}else dt.push(g,Ze)}}}function r6(s,l,g){return g&&s.componentProviders++,s.multi.push(l)-1}function tu(s,l,g,T){for(let R=g;R{g.providersResolver=(T,R)=>function xh(s,l,g){const T=zn();if(T.firstCreatePass){const R=Ri(s);$d(g,T.data,T.blueprint,R,!0),$d(l,T.data,T.blueprint,R,!1)}}(T,R?R(s):s,l)}}class wh{}class q7{resolveComponentFactory(l){throw function Lh(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 s6=(()=>{class s{}return s.NULL=new q7,s})();function Th(){return Bl(Cr(),zi())}function Bl(s,l){return new F4(ki(s,l))}let F4=(()=>{class s{constructor(g){this.nativeElement=g}}return s.__NG_ELEMENT_ID__=Th,s})();function J7(s){return s instanceof F4?s.nativeElement:s}class Ah{}let Dh=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function Ih(){const s=zi(),g=mt(Cr().index,s);return function $7(s){return s[11]}(Fi(g)?g:s)}(),s})(),ep=(()=>{class s{}return s.\u0275prov=oe({token:s,providedIn:"root",factory:()=>null}),s})();class Oh{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const kh=new Oh("13.3.11"),nu={};function o6(s,l,g,T,R=!1){for(;null!==g;){const G=l[g.index];if(null!==G&&T.push(Ke(G)),pn(G))for(let Ee=10;Ee-1&&(Qo(l,T),Uo(g,T))}this._attachedToViewContainer=!1}L0(this._lView[1],this._lView)}onDestroy(l){ec(this._lView[1],this._lView,null,l)}markForCheck(){_l(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Q3(s,l,g){const T=l[10];T.begin&&T.begin();try{Xo(s,l,s.template,g)}catch(R){throw V5(l,R),R}finally{T.end&&T.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function q6(s,l){r2(s,l,l[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new S(902,"");this._appRef=l}}class tp extends V4{constructor(l){super(l),this._view=l}detectChanges(){q3(this._view)}checkNoChanges(){}get context(){return null}}class Ph extends s6{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const g=at(l);return new ru(g,this.ngModule)}}function Nh(s){const l=[];for(let g in s)s.hasOwnProperty(g)&&l.push({propName:s[g],templateName:g});return l}class ru extends wh{constructor(l,g){super(),this.componentDef=l,this.ngModule=g,this.componentType=l.type,this.selector=function o5(s){return s.map(s5).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return Nh(this.componentDef.inputs)}get outputs(){return Nh(this.componentDef.outputs)}create(l,g,T,R){const G=(R=R||this.ngModule)?function Hh(s,l){return{get:(g,T,R)=>{const G=s.get(g,nu,R);return G!==nu||T===nu?G:l.get(g,T,R)}}}(l,R.injector):l,ae=G.get(Ah,Xe),Ee=G.get(ep,null),Ze=ae.createRenderer(null,this.componentDef),dt=this.componentDef.selectors[0][0]||"div",Tt=T?function $0(s,l,g){if(Wn(s))return s.selectRootElement(l,g===ut.ShadowDom);let T="string"==typeof l?s.querySelector(l):l;return T.textContent="",T}(Ze,T,this.componentDef.encapsulation):Ao(ae.createRenderer(null,this.componentDef),dt,function Rh(s){const l=s.toLowerCase();return"svg"===l?"svg":"math"===l?"math":null}(dt)),Wt=this.componentDef.onPush?576:528,ci=function xc(s,l){return{components:[],scheduler:s||G6,clean:F5,playerHandler:l||null,flags:0}}(),xi=pl(0,null,null,1,0,null,null,null,null,null),Vi=fl(null,xi,ci,Wt,null,null,ae,Ze,Ee,G);let Ji,sn;Pn(Vi);try{const Cn=function yc(s,l,g,T,R,G){const ae=g[1];g[20]=s;const Ze=g1(ae,20,2,"#host",null),dt=Ze.mergedAttrs=l.hostAttrs;null!==dt&&(yl(Ze,dt,!0),null!==s&&(kr(R,s,dt),null!==Ze.classes&&A3(R,s,Ze.classes),null!==Ze.styles&&T3(R,s,Ze.styles)));const Tt=T.createRenderer(s,l),Wt=fl(g,q0(l),null,l.onPush?64:16,g[20],Ze,T,Tt,G||null,null);return ae.firstCreatePass&&(Rn(Xt(Ze,g),ae,l.type),D5(ae,Ze),j3(Ze,g.length,1)),Cl(g,Wt),g[20]=Wt}(Tt,this.componentDef,Vi,ae,Ze);if(Tt)if(T)kr(Ze,Tt,["ng-version",kh.full]);else{const{attrs:Ui,classes:An}=function N0(s){const l=[],g=[];let T=1,R=2;for(;T0&&A3(Ze,Tt,An.join(" "))}if(sn=It(xi,20),void 0!==g){const Ui=sn.projection=[];for(let An=0;AnZe(ae,l)),l.contentQueries){const Ze=Cr();l.contentQueries(1,ae,Ze.directiveStart)}const Ee=Cr();return!G.firstCreatePass||null===l.hostBindings&&null===l.hostAttrs||(zr(Ee.index),E5(g[1],Ee,0,Ee.directiveStart,Ee.directiveEnd,l),T5(l,ae)),ae}(Cn,this.componentDef,Vi,ci,[sd]),Fs(xi,Vi,null)}finally{cr()}return new rp(this.componentType,Ji,Bl(sn,Vi),Vi,sn)}}class rp extends class Mh{}{constructor(l,g,T,R,G){super(),this.location=T,this._rootLView=R,this._tNode=G,this.instance=g,this.hostView=this.changeDetectorRef=new tp(R),this.componentType=l}get injector(){return new Vo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(l){this.hostView.onDestroy(l)}}class Ul{}class au{}const Gl=new Map;class ou extends Ul{constructor(l,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ph(this);const T=Qt(l);this._bootstrapComponents=qs(T.bootstrap),this._r3Injector=W5(l,g,[{provide:Ul,useValue:this},{provide:s6,useValue:this.componentFactoryResolver}],P(l)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(l)}get(l,g=go.THROW_IF_NOT_FOUND,T=Ae.Default){return l===go||l===Ul||l===J3?this:this._r3Injector.get(l,g,T)}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class lu extends au{constructor(l){super(),this.moduleType=l,null!==Qt(l)&&function sp(s){const l=new Set;!function g(T){const R=Qt(T,!0),G=R.id;null!==G&&(function Vh(s,l,g){if(l&&l!==g)throw new Error(`Duplicate module registered for ${s} - ${P(l)} vs ${P(l.name)}`)}(G,Gl.get(G),T),Gl.set(G,T));const ae=qs(R.imports);for(const Ee of ae)l.has(Ee)||(l.add(Ee),g(Ee))}(s)}(l)}create(l){return new ou(this.moduleType,l)}}function zh(s,l,g){const T=Vr()+s,R=zi();return R[T]===Gn?Co(R,T,g?l.call(g):l()):function wl(s,l){return s[l]}(R,T)}function Bh(s,l,g,T){return cu(zi(),Vr(),s,l,g,T)}function Uh(s,l,g,T,R){return Yh(zi(),Vr(),s,l,g,T,R)}function Gh(s,l,g,T,R,G){return du(zi(),Vr(),s,l,g,T,R,G)}function z4(s,l){const g=s[l];return g===Gn?void 0:g}function cu(s,l,g,T,R,G){const ae=l+g;return is(s,ae,R)?Co(s,ae+1,G?T.call(G,R):T(R)):z4(s,ae+1)}function Yh(s,l,g,T,R,G,ae){const Ee=l+g;return v1(s,Ee,R,G)?Co(s,Ee+2,ae?T.call(ae,R,G):T(R,G)):z4(s,Ee+2)}function du(s,l,g,T,R,G,ae,Ee){const Ze=l+g;return Ll(s,Ze,R,G,ae)?Co(s,Ze+3,Ee?T.call(Ee,R,G,ae):T(R,G,ae)):z4(s,Ze+3)}function Kh(s,l){const g=zn();let T;const R=s+20;g.firstCreatePass?(T=function up(s,l){if(l)for(let g=l.length-1;g>=0;g--){const T=l[g];if(s===T.name)return T}}(l,g.pipeRegistry),g.data[R]=T,T.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(R,T.onDestroy)):T=g.data[R];const G=T.factory||(T.factory=Zr(T.type)),ae=ye(M1);try{const Ee=Be(!1),Ze=G();return Be(Ee),function o4(s,l,g,T){g>=s.data.length&&(s.data[g]=null,s.blueprint[g]=null),l[g]=T}(g,zi(),R,Ze),Ze}finally{ye(ae)}}function Qh(s,l,g){const T=s+20,R=zi(),G=hi(R,T);return Zl(R,T)?cu(R,Vr(),l,G.transform,g,G):G.transform(g)}function qh(s,l,g,T){const R=s+20,G=zi(),ae=hi(G,R);return Zl(G,R)?Yh(G,Vr(),l,ae.transform,g,T,ae):ae.transform(g,T)}function hu(s,l,g,T,R){const G=s+20,ae=zi(),Ee=hi(ae,G);return Zl(ae,G)?du(ae,Vr(),l,Ee.transform,g,T,R,Ee):Ee.transform(g,T,R)}function Zl(s,l){return s[1].data[l].pure}function fu(s){return l=>{setTimeout(s,void 0,l)}}const Ho=class pp extends t.x{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,g,T){var R,G,ae;let Ee=l,Ze=g||(()=>null),dt=T;if(l&&"object"==typeof l){const Wt=l;Ee=null===(R=Wt.next)||void 0===R?void 0:R.bind(Wt),Ze=null===(G=Wt.error)||void 0===G?void 0:G.bind(Wt),dt=null===(ae=Wt.complete)||void 0===ae?void 0:ae.bind(Wt)}this.__isAsync&&(Ze=fu(Ze),Ee&&(Ee=fu(Ee)),dt&&(dt=fu(dt)));const Tt=super.subscribe({next:Ee,error:Ze,complete:dt});return l instanceof e.w0&&l.add(Tt),Tt}};function mp(){return this._results[_1()]()}class l6{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 g=_1(),T=l6.prototype;T[g]||(T[g]=mp)}get changes(){return this._changes||(this._changes=new Ho)}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,g){return this._results.reduce(l,g)}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,g){const T=this;T.dirty=!1;const R=ds(l);(this._changesDetected=!function O2(s,l,g){if(s.length!==l.length)return!1;for(let T=0;T{class s{}return s.__NG_ELEMENT_ID__=_p,s})();const gp=Wl,Cp=class extends gp{constructor(l,g,T){super(),this._declarationLView=l,this._declarationTContainer=g,this.elementRef=T}createEmbeddedView(l){const g=this._declarationTContainer.tViews,T=fl(this._declarationLView,g,l,16,null,g.declTNode,null,null,null,null);T[17]=this._declarationLView[this._declarationTContainer.index];const G=this._declarationLView[19];return null!==G&&(T[19]=G.createEmbeddedView(g)),Fs(g,T,l),new V4(T)}};function _p(){return c6(Cr(),zi())}function c6(s,l){return 4&s.type?new Cp(l,s,Bl(s,l)):null}let B4=(()=>{class s{}return s.__NG_ELEMENT_ID__=vp,s})();function vp(){return ef(Cr(),zi())}const Jh=B4,Xh=class extends Jh{constructor(l,g,T){super(),this._lContainer=l,this._hostTNode=g,this._hostLView=T}get element(){return Bl(this._hostTNode,this._hostLView)}get injector(){return new Vo(this._hostTNode,this._hostLView)}get parentInjector(){const l=dn(this._hostTNode,this._hostLView);if(Cs(l)){const g=Ys(l,this._hostLView),T=Ws(l);return new Vo(g[1].data[T+8],g)}return new Vo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const g=$h(this._lContainer);return null!==g&&g[l]||null}get length(){return this._lContainer.length-10}createEmbeddedView(l,g,T){const R=l.createEmbeddedView(g||{});return this.insert(R,T),R}createComponent(l,g,T,R,G){const ae=l&&!function ro(s){return"function"==typeof s}(l);let Ee;if(ae)Ee=g;else{const Wt=g||{};Ee=Wt.index,T=Wt.injector,R=Wt.projectableNodes,G=Wt.ngModuleRef}const Ze=ae?l:new ru(at(l)),dt=T||this.parentInjector;if(!G&&null==Ze.ngModule){const ci=(ae?dt:this.parentInjector).get(Ul,null);ci&&(G=ci)}const Tt=Ze.create(dt,R,void 0,G);return this.insert(Tt.hostView,Ee),Tt}insert(l,g){const T=l._lView,R=T[1];if(function Zi(s){return pn(s[3])}(T)){const Tt=this.indexOf(l);if(-1!==Tt)this.detach(Tt);else{const Wt=T[3],ci=new Xh(Wt,Wt[6],Wt[3]);ci.detach(ci.indexOf(l))}}const G=this._adjustIndex(g),ae=this._lContainer;!function b3(s,l,g,T){const R=10+T,G=g.length;T>0&&(g[R-1][4]=l),T0)T.push(ae[Ee/2]);else{const dt=G[Ee+1],Tt=l[-Ze];for(let Wt=10;Wt{class s{constructor(g){this.appInits=g,this.resolve=f6,this.reject=f6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((T,R)=>{this.resolve=T,this.reject=R})}runInitializers(){if(this.initialized)return;const g=[],T=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let R=0;R{G.subscribe({complete:Ee,error:Ze})});g.push(ae)}}Promise.all(g).then(()=>{T()}).catch(R=>{this.reject(R)}),0===g.length&&T(),this.initialized=!0}}return s.\u0275fac=function(g){return new(g||s)(Oa(Iu,8))},s.\u0275prov=oe({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Lf=new Mr("AppId",{providedIn:"root",factory:function Sf(){return`${ku()}${ku()}${ku()}`}});function ku(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Pu=new Mr("Platform Initializer"),Gp=new Mr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Nu=new Mr("appBootstrapListener");let Ef=(()=>{class s{log(g){console.log(g)}warn(g){console.warn(g)}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=oe({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const p6=new Mr("LocaleId",{providedIn:"root",factory:()=>o1(p6,Ae.Optional|Ae.SkipSelf)||function Zp(){return"undefined"!=typeof $localize&&$localize.locale||Kr}()}),Wp=new Mr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Yp{constructor(l,g){this.ngModuleFactory=l,this.componentFactories=g}}let jp=(()=>{class s{compileModuleSync(g){return new lu(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const T=this.compileModuleSync(g),G=qs(Qt(g).declarations).reduce((ae,Ee)=>{const Ze=at(Ee);return Ze&&ae.push(new ru(Ze)),ae},[]);return new Yp(T,G)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=oe({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Tf=(()=>Promise.resolve(0))();function m6(s){"undefined"==typeof Zone?Tf.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class bo{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:T=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ho(!1),this.onMicrotaskEmpty=new Ho(!1),this.onStable=new Ho(!1),this.onError=new Ho(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const R=this;R._nesting=0,R._outer=R._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(R._inner=R._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(R._inner=R._inner.fork(Zone.longStackTraceZoneSpec)),R.shouldCoalesceEventChangeDetection=!T&&g,R.shouldCoalesceRunChangeDetection=T,R.lastRequestAnimationFrameId=-1,R.nativeRequestAnimationFrame=function qp(){let s=ui.requestAnimationFrame,l=ui.cancelAnimationFrame;if("undefined"!=typeof Zone&&s&&l){const g=s[Zone.__symbol__("OriginalDelegate")];g&&(s=g);const T=l[Zone.__symbol__("OriginalDelegate")];T&&(l=T)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function $p(s){const l=()=>{!function Xp(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(ui,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Ru(s),s.isCheckStableRunning=!0,g6(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Ru(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,T,R,G,ae,Ee)=>{try{return Af(s),g.invokeTask(R,G,ae,Ee)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===G.type||s.shouldCoalesceRunChangeDetection)&&l(),Df(s)}},onInvoke:(g,T,R,G,ae,Ee,Ze)=>{try{return Af(s),g.invoke(R,G,ae,Ee,Ze)}finally{s.shouldCoalesceRunChangeDetection&&l(),Df(s)}},onHasTask:(g,T,R,G)=>{g.hasTask(R,G),T===R&&("microTask"==G.change?(s._hasPendingMicrotasks=G.microTask,Ru(s),g6(s)):"macroTask"==G.change&&(s.hasPendingMacrotasks=G.macroTask))},onHandleError:(g,T,R,G)=>(g.handleError(R,G),s.runOutsideAngular(()=>s.onError.emit(G)),!1)})}(R)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(bo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(l,g,T){return this._inner.run(l,g,T)}runTask(l,g,T,R){const G=this._inner,ae=G.scheduleEventTask("NgZoneEvent: "+R,l,Jp,f6,f6);try{return G.runTask(ae,g,T)}finally{G.cancelTask(ae)}}runGuarded(l,g,T){return this._inner.runGuarded(l,g,T)}runOutsideAngular(l){return this._outer.run(l)}}const Jp={};function g6(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 Ru(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Af(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function Df(s){s._nesting--,g6(s)}class e9{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ho,this.onMicrotaskEmpty=new Ho,this.onStable=new Ho,this.onError=new Ho}run(l,g,T){return l.apply(g,T)}runGuarded(l,g,T){return l.apply(g,T)}runOutsideAngular(l){return l()}runTask(l,g,T,R){return l.apply(g,T)}}let If=(()=>{class s{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.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:()=>{bo.assertNotInAngularZone(),m6(()=>{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())m6(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(T=>!T.updateCb||!T.updateCb(g)||(clearTimeout(T.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,T,R){let G=-1;T&&T>0&&(G=setTimeout(()=>{this._callbacks=this._callbacks.filter(ae=>ae.timeoutId!==G),g(this._didWork,this.getPendingTasks())},T)),this._callbacks.push({doneCb:g,timeoutId:G,updateCb:R})}whenStable(g,T,R){if(R&&!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(g,T,R),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,T,R){return[]}}return s.\u0275fac=function(g){return new(g||s)(Oa(bo))},s.\u0275prov=oe({token:s,factory:s.\u0275fac}),s})(),t9=(()=>{class s{constructor(){this._applications=new Map,Hu.addToWindow(this)}registerApplication(g,T){this._applications.set(g,T)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,T=!0){return Hu.findTestabilityInTree(this,g,T)}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=oe({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();class i9{addToWindow(l){}findTestabilityInTree(l,g,T){return null}}function n9(s){Hu=s}let Hu=new i9,E2=null;const Fu=new Mr("AllowMultipleToken"),Of=new Mr("PlatformOnDestroy");class r9{constructor(l,g){this.name=l,this.token=g}}function Nf(s,l,g=[]){const T=`Platform: ${l}`,R=new Mr(T);return(G=[])=>{let ae=Vu();if(!ae||ae.injector.get(Fu,!1)){const Ee=[...g,...G,{provide:R,useValue:!0}];s?s(Ee):function a9(s){if(E2&&!E2.get(Fu,!1))throw new S(400,"");E2=s;const l=s.get(zu),g=s.get(Pu,null);g&&g.forEach(T=>T())}(function o9(s=[],l){return go.create({name:l,providers:[{provide:X3,useValue:"platform"},{provide:Of,useValue:()=>E2=null},...s]})}(Ee,T))}return function s9(s){const l=Vu();if(!l)throw new S(401,"");return l}()}}function Vu(){var s;return null!==(s=null==E2?void 0:E2.get(zu))&&void 0!==s?s:null}let zu=(()=>{class s{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,T){const Ee=function l9(s,l){let g;return g="noop"===s?new e9:("zone.js"===s?void 0:s)||new bo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==l?void 0:l.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==l?void 0:l.ngZoneRunCoalescing)}),g}(T?T.ngZone:void 0,{ngZoneEventCoalescing:T&&T.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:T&&T.ngZoneRunCoalescing||!1}),Ze=[{provide:bo,useValue:Ee}];return Ee.run(()=>{const dt=go.create({providers:Ze,parent:this.injector,name:g.moduleType.name}),Tt=g.create(dt),Wt=Tt.injector.get(K2,null);if(!Wt)throw new S(402,"");return Ee.runOutsideAngular(()=>{const ci=Ee.onError.subscribe({next:xi=>{Wt.handleError(xi)}});Tt.onDestroy(()=>{C6(this._modules,Tt),ci.unsubscribe()})}),function c9(s,l,g){try{const T=g();return ms(T)?T.catch(R=>{throw l.runOutsideAngular(()=>s.handleError(R)),R}):T}catch(T){throw l.runOutsideAngular(()=>s.handleError(T)),T}}(Wt,Ee,()=>{const ci=Tt.injector.get(Ou);return ci.runInitializers(),ci.donePromise.then(()=>(function Vl(s){n(s,"Expected localeId to be defined"),"string"==typeof s&&(Ga=s.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(p6,Kr)||Kr),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(g,T=[]){const R=Rf({},T);return function kf(s,l,g){const T=new lu(g);return Promise.resolve(T)}(0,0,g).then(G=>this.bootstrapModuleFactory(G,R))}_moduleDoBootstrap(g){const T=g.injector.get(Bu);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(R=>T.bootstrap(R));else{if(!g.instance.ngDoBootstrap)throw new S(403,"");g.instance.ngDoBootstrap(T)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,"");this._modules.slice().forEach(T=>T.destroy()),this._destroyListeners.forEach(T=>T());const g=this._injector.get(Of,null);null==g||g(),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(g){return new(g||s)(Oa(go))},s.\u0275prov=oe({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function Rf(s,l){return Array.isArray(l)?l.reduce(Rf,s):Object.assign(Object.assign({},s),l)}let Bu=(()=>{class s{constructor(g,T,R,G){this._zone=g,this._injector=T,this._exceptionHandler=R,this._initStatus=G,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 f.y(Ze=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ze.next(this._stable),Ze.complete()})}),Ee=new f.y(Ze=>{let dt;this._zone.runOutsideAngular(()=>{dt=this._zone.onStable.subscribe(()=>{bo.assertNotInAngularZone(),m6(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ze.next(!0))})})});const Tt=this._zone.onUnstable.subscribe(()=>{bo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ze.next(!1)}))});return()=>{dt.unsubscribe(),Tt.unsubscribe()}});this.isStable=(0,M.T)(ae,Ee.pipe((0,a.B)()))}bootstrap(g,T){if(!this._initStatus.done)throw new S(405,"");let R;R=g instanceof wh?g:this._injector.get(s6).resolveComponentFactory(g),this.componentTypes.push(R.componentType);const G=function Pf(s){return s.isBoundToModule}(R)?void 0:this._injector.get(Ul),Ee=R.create(go.NULL,[],T||R.selector,G),Ze=Ee.location.nativeElement,dt=Ee.injector.get(If,null),Tt=dt&&Ee.injector.get(t9);return dt&&Tt&&Tt.registerApplication(Ze,dt),Ee.onDestroy(()=>{this.detachView(Ee.hostView),C6(this.components,Ee),Tt&&Tt.unregisterApplication(Ze)}),this._loadComponent(Ee),Ee}tick(){if(this._runningTick)throw new S(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const T=g;this._views.push(T),T.attachToAppRef(this)}detachView(g){const T=g;C6(this._views,T),T.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Nu,[]).concat(this._bootstrapListeners).forEach(R=>R(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return s.\u0275fac=function(g){return new(g||s)(Oa(bo),Oa(go),Oa(K2),Oa(Ou))},s.\u0275prov=oe({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function C6(s,l){const g=s.indexOf(l);g>-1&&s.splice(g,1)}let Ff=!0,Vf=!1;function zf(){return Vf=!0,Ff}function u9(){if(Vf)throw new Error("Cannot enable prod mode after platform setup.");Ff=!1}let Uf=(()=>{class s{}return s.__NG_ELEMENT_ID__=f9,s})();function f9(s){return function Gf(s,l,g){if(Dn(s)&&!g){const T=mt(s.index,l);return new V4(T,T)}return 47&s.type?new V4(l[16],l):null}(Cr(),zi(),16==(16&s))}class Wu{constructor(){}supports(l){return Ml(l)}create(l){return new b9(l)}}const x9=(s,l)=>l;class b9{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||x9}forEachItem(l){let g;for(g=this._itHead;null!==g;g=g._next)l(g)}forEachOperation(l){let g=this._itHead,T=this._removalsHead,R=0,G=null;for(;g||T;){const ae=!T||g&&g.currentIndex{ae=this._trackByFn(R,Ee),null!==g&&Object.is(g.trackById,ae)?(T&&(g=this._verifyReinsertion(g,Ee,ae,R)),Object.is(g.item,Ee)||this._addIdentityChange(g,Ee)):(g=this._mismatch(g,Ee,ae,R),T=!0),g=g._next,R++}),this.length=R;return this._truncate(g),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,g,T,R){let G;return null===l?G=this._itTail:(G=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(T,null))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._reinsertAfter(l,G,R)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(T,R))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._moveAfter(l,G,R)):l=this._addAfter(new M9(g,T),G,R),l}_verifyReinsertion(l,g,T,R){let G=null===this._unlinkedRecords?null:this._unlinkedRecords.get(T,null);return null!==G?l=this._reinsertAfter(G,l._prev,R):l.currentIndex!=R&&(l.currentIndex=R,this._addToMoves(l,R)),l}_truncate(l){for(;null!==l;){const g=l._next;this._addToRemovals(this._unlink(l)),l=g}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,g,T){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const R=l._prevRemoved,G=l._nextRemoved;return null===R?this._removalsHead=G:R._nextRemoved=G,null===G?this._removalsTail=R:G._prevRemoved=R,this._insertAfter(l,g,T),this._addToMoves(l,T),l}_moveAfter(l,g,T){return this._unlink(l),this._insertAfter(l,g,T),this._addToMoves(l,T),l}_addAfter(l,g,T){return this._insertAfter(l,g,T),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,g,T){const R=null===g?this._itHead:g._next;return l._next=R,l._prev=g,null===R?this._itTail=l:R._prev=l,null===g?this._itHead=l:g._next=l,null===this._linkedRecords&&(this._linkedRecords=new Yf),this._linkedRecords.put(l),l.currentIndex=T,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const g=l._prev,T=l._next;return null===g?this._itHead=T:g._next=T,null===T?this._itTail=g:T._prev=g,l}_addToMoves(l,g){return l.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yf),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,g){return l.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class M9{constructor(l,g){this.item=l,this.trackById=g,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 w9{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,g){let T;for(T=this._head;null!==T;T=T._nextDup)if((null===g||g<=T.currentIndex)&&Object.is(T.trackById,l))return T;return null}remove(l){const g=l._prevDup,T=l._nextDup;return null===g?this._head=T:g._nextDup=T,null===T?this._tail=g:T._prevDup=g,null===this._head}}class Yf{constructor(){this.map=new Map}put(l){const g=l.trackById;let T=this.map.get(g);T||(T=new w9,this.map.set(g,T)),T.add(l)}get(l,g){const R=this.map.get(l);return R?R.get(l,g):null}remove(l){const g=l.trackById;return this.map.get(g).remove(l)&&this.map.delete(g),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jf(s,l,g){const T=s.previousIndex;if(null===T)return T;let R=0;return g&&T{if(g&&g.key===R)this._maybeAddToChanges(g,T),this._appendAfter=g,g=g._next;else{const G=this._getOrCreateRecordForKey(R,T);g=this._insertBeforeOrAppend(g,G)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let T=g;null!==T;T=T._nextRemoved)T===this._mapHead&&(this._mapHead=null),this._records.delete(T.key),T._nextRemoved=T._next,T.previousValue=T.currentValue,T.currentValue=null,T._prev=null,T._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,g){if(l){const T=l._prev;return g._next=l,g._prev=T,l._prev=g,T&&(T._next=g),l===this._mapHead&&(this._mapHead=g),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(l,g){if(this._records.has(l)){const R=this._records.get(l);this._maybeAddToChanges(R,g);const G=R._prev,ae=R._next;return G&&(G._next=ae),ae&&(ae._prev=G),R._next=null,R._prev=null,R}const T=new S9(l);return this._records.set(l,T),T.currentValue=g,this._addToAdditions(T),T}_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,g){Object.is(g,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=g,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,g){l instanceof Map?l.forEach(g):Object.keys(l).forEach(T=>g(l[T],T))}}class S9{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 Qf(){return new Yu([new Wu])}let Yu=(()=>{class s{constructor(g){this.factories=g}static create(g,T){if(null!=T){const R=T.factories.slice();g=g.concat(R)}return new s(g)}static extend(g){return{provide:s,useFactory:T=>s.create(g,T||Qf()),deps:[[s,new Es,new Wo]]}}find(g){const T=this.factories.find(R=>R.supports(g));if(null!=T)return T;throw new S(901,"")}}return s.\u0275prov=oe({token:s,providedIn:"root",factory:Qf}),s})();function qf(){return new ju([new Kf])}let ju=(()=>{class s{constructor(g){this.factories=g}static create(g,T){if(T){const R=T.factories.slice();g=g.concat(R)}return new s(g)}static extend(g){return{provide:s,useFactory:T=>s.create(g,T||qf()),deps:[[s,new Es,new Wo]]}}find(g){const T=this.factories.find(G=>G.supports(g));if(T)return T;throw new S(901,"")}}return s.\u0275prov=oe({token:s,providedIn:"root",factory:qf}),s})();const A9=Nf(null,"core",[]);let D9=(()=>{class s{constructor(g){}}return s.\u0275fac=function(g){return new(g||s)(Oa(Bu))},s.\u0275mod=tt({type:s}),s.\u0275inj=be({}),s})()},9042:(Fe,Y,p)=>{"use strict";function t(A){for(let w in A){let D=A[w]||"";switch(w){case"display":A.display="flex"===D?["-webkit-flex","flex"]:"inline-flex"===D?["-webkit-inline-flex","inline-flex"]:D;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":A["-webkit-"+w]=D;break;case"flex-direction":D=D||"row",A["-webkit-flex-direction"]=D,A["flex-direction"]=D;break;case"order":A.order=A["-webkit-"+w]=isNaN(+D)?"0":D}}return A}p.d(Y,{Ar:()=>M,GK:()=>t,iQ:()=>f,kt:()=>h,tj:()=>b});const e="inline",f=["row","column","row-reverse","column-reverse"];function M(A){let[w,D,L]=a(A);return function P(A,w=null,D=!1){return{display:D?"inline-flex":"flex","box-sizing":"border-box","flex-direction":A,"flex-wrap":w||null}}(w,D,L)}function a(A){var w;A=null!==(w=null==A?void 0:A.toLowerCase())&&void 0!==w?w:"";let[D,L,k]=A.split(" ");return f.find(S=>S===D)||(D=f[0]),L===e&&(L=k!==e?k:"",k=e),[D,d(L),!!k]}function b(A){let[w]=a(A);return w.indexOf("row")>-1}function d(A){if(A)switch(A.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":A="wrap-reverse";break;case"no":case"none":case"nowrap":A="nowrap";break;default:A="wrap"}return A}function h(A,...w){if(null==A)throw TypeError("Cannot convert undefined or null to object");for(let D of w)if(null!=D)for(let L in D)D.hasOwnProperty(L)&&(A[L]=D[L]);return A}},3270:(Fe,Y,p)=>{"use strict";p.d(Y,{Bs:()=>ne,FL:()=>ui,IR:()=>L,Ot:()=>di,QI:()=>de,RK:()=>ee,WU:()=>Z,g5:()=>U,iR:()=>ye,wY:()=>j,yB:()=>se});var t=p(5e3),e=p(9808),f=p(1135),M=p(8306),a=p(6451),b=p(7579),d=p(9042),P=p(9300),h=p(8505);const w={provide:t.tb,useFactory:function A(xt,Nt){return()=>{if((0,e.NF)(Nt)){const gt=Array.from(xt.querySelectorAll(`[class*=${D}]`)),et=/\bflex-layout-.+?\b/g;gt.forEach(vt=>{vt.classList.contains(`${D}ssr`)&&vt.parentNode?vt.parentNode.removeChild(vt):vt.className.replace(et,"")})}}},deps:[e.K0,t.Lbi],multi:!0},D="flex-layout-";let L=(()=>{class xt{}return xt.\u0275fac=function(gt){return new(gt||xt)},xt.\u0275mod=t.oAB({type:xt}),xt.\u0275inj=t.cJS({providers:[w]}),xt})();class k{constructor(Nt=!1,gt="all",et="",vt="",$t=0){this.matches=Nt,this.mediaQuery=gt,this.mqAlias=et,this.suffix=vt,this.priority=$t,this.property=""}clone(){return new k(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let S=(()=>{class xt{constructor(){this.stylesheet=new Map}addStyleToElement(gt,et,vt){const $t=this.stylesheet.get(gt);$t?$t.set(et,vt):this.stylesheet.set(gt,new Map([[et,vt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(gt,et){const vt=this.stylesheet.get(gt);let $t="";if(vt){const jt=vt.get(et);("number"==typeof jt||"string"==typeof jt)&&($t=jt+"")}return $t}}return xt.\u0275fac=function(gt){return new(gt||xt)},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();const U={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Z=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>U}),j=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ne=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function X(xt,Nt){return xt=xt?xt.clone():new k,Nt&&(xt.mqAlias=Nt.alias,xt.mediaQuery=Nt.mediaQuery,xt.suffix=Nt.suffix,xt.priority=Nt.priority),xt}class de{constructor(){this.shouldCache=!0}sideEffect(Nt,gt,et){}}let ee=(()=>{class xt{constructor(gt,et,vt,$t){this._serverStylesheet=gt,this._serverModuleLoaded=et,this._platformId=vt,this.layoutConfig=$t}applyStyleToElement(gt,et,vt=null){let $t={};"string"==typeof et&&($t[et]=vt,et=$t),$t=this.layoutConfig.disableVendorPrefixes?et:(0,d.GK)(et),this._applyMultiValueStyleToElement($t,gt)}applyStyleToElements(gt,et=[]){const vt=this.layoutConfig.disableVendorPrefixes?gt:(0,d.GK)(gt);et.forEach($t=>{this._applyMultiValueStyleToElement(vt,$t)})}getFlowDirection(gt){const et="flex-direction";let vt=this.lookupStyle(gt,et);return[vt||"row",this.lookupInlineStyle(gt,et)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?vt:""]}hasWrap(gt){return"wrap"===this.lookupStyle(gt,"flex-wrap")}lookupAttributeValue(gt,et){var vt;return null!==(vt=gt.getAttribute(et))&&void 0!==vt?vt:""}lookupInlineStyle(gt,et){return(0,e.NF)(this._platformId)?gt.style.getPropertyValue(et):function te(xt,Nt){var gt;return null!==(gt=me(xt)[Nt])&&void 0!==gt?gt:""}(gt,et)}lookupStyle(gt,et,vt=!1){let $t="";return gt&&(($t=this.lookupInlineStyle(gt,et))||((0,e.NF)(this._platformId)?vt||($t=getComputedStyle(gt).getPropertyValue(et)):this._serverModuleLoaded&&($t=this._serverStylesheet.getStyleForElement(gt,et)))),$t?$t.trim():""}_applyMultiValueStyleToElement(gt,et){Object.keys(gt).sort().forEach(vt=>{const $t=gt[vt],jt=Array.isArray($t)?$t:[$t];jt.sort();for(let Pe of jt)Pe=Pe?Pe+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?et.style.setProperty(vt,Pe):ce(et,vt,Pe):this._serverStylesheet.addStyleToElement(et,vt,Pe)})}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(S),t.LFG(j),t.LFG(t.Lbi),t.LFG(Z))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();function ce(xt,Nt,gt){Nt=Nt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const et=me(xt);et[Nt]=null!=gt?gt:"",function J(xt,Nt){let gt="";for(const et in Nt)Nt[et]&&(gt+=`${et}:${Nt[et]};`);xt.setAttribute("style",gt)}(xt,et)}function me(xt){const Nt={},gt=xt.getAttribute("style");if(gt){const et=gt.split(/;+/g);for(let vt=0;vt0){const jt=$t.indexOf(":");if(-1===jt)throw new Error(`Invalid CSS style: ${$t}`);Nt[$t.substr(0,jt).trim()]=$t.substr(jt+1).trim()}}}return Nt}function x(xt,Nt){return(Nt&&Nt.priority||0)-(xt&&xt.priority||0)}function i(xt,Nt){return(xt.priority||0)-(Nt.priority||0)}let r=(()=>{class xt{constructor(gt,et,vt){this._zone=gt,this._platformId=et,this._document=vt,this.source=new f.X(new k(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const gt=[];return this.registry.forEach((et,vt)=>{et.matches&>.push(vt)}),gt}isActive(gt){var et;const vt=this.registry.get(gt);return null!==(et=null==vt?void 0:vt.matches)&&void 0!==et?et:this.registerQuery(gt).some($t=>$t.matches)}observe(gt,et=!1){if(gt&>.length){const vt=this._observable$.pipe((0,P.h)(jt=>!et||gt.indexOf(jt.mediaQuery)>-1)),$t=new M.y(jt=>{const Pe=this.registerQuery(gt);if(Pe.length){const Oe=Pe.pop();Pe.forEach(le=>{jt.next(le)}),this.source.next(Oe)}jt.complete()});return(0,a.T)($t,vt)}return this._observable$}registerQuery(gt){const et=Array.isArray(gt)?gt:[gt],vt=[];return function c(xt,Nt){const gt=xt.filter(et=>!u[et]);if(gt.length>0){const et=gt.join(", ");try{const vt=Nt.createElement("style");vt.setAttribute("type","text/css"),vt.styleSheet||vt.appendChild(Nt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${et} {.fx-query-test{ }}\n`)),Nt.head.appendChild(vt),gt.forEach($t=>u[$t]=vt)}catch(vt){console.error(vt)}}}(et,this._document),et.forEach($t=>{const jt=Oe=>{this._zone.run(()=>this.source.next(new k(Oe.matches,$t)))};let Pe=this.registry.get($t);Pe||(Pe=this.buildMQL($t),Pe.addListener(jt),this.pendingRemoveListenerFns.push(()=>Pe.removeListener(jt)),this.registry.set($t,Pe)),Pe.matches&&vt.push(new k(!0,$t))}),vt}ngOnDestroy(){let gt;for(;gt=this.pendingRemoveListenerFns.pop();)gt()}buildMQL(gt){return function _(xt,Nt){return Nt&&window.matchMedia("all").addListener?window.matchMedia(xt):{matches:"all"===xt||""===xt,media:xt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(gt,(0,e.NF)(this._platformId))}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();const u={},E=[{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)",v="(orientation: landscape) and (max-width: 959.98px)",n="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",C="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",B="(orientation: portrait) and (min-width: 840px)",N="(orientation: landscape) and (min-width: 1280px)",z={HANDSET:`${I}, ${v}`,TABLET:`${n} , ${C}`,WEB:`${B}, ${N} `,HANDSET_PORTRAIT:`${I}`,TABLET_PORTRAIT:`${n} `,WEB_PORTRAIT:`${B}`,HANDSET_LANDSCAPE:`${v}`,TABLET_LANDSCAPE:`${C}`,WEB_LANDSCAPE:`${N}`},oe=[{alias:"handset",priority:2e3,mediaQuery:z.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:z.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:z.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:z.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:z.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:z.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:z.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:z.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:z.WEB_PORTRAIT,overlapping:!0}],ge=/(\.|-|_)/g;function be(xt){let Nt=xt.length>0?xt.charAt(0):"",gt=xt.length>1?xt.slice(1):"";return Nt.toUpperCase()+gt}const Ge=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const xt=(0,t.f3M)(ne),Nt=(0,t.f3M)(Z),gt=[].concat.apply([],(xt||[]).map(vt=>Array.isArray(vt)?vt:[vt]));return function Q(xt,Nt=[]){const gt={};return xt.forEach(et=>{gt[et.alias]=et}),Nt.forEach(et=>{gt[et.alias]?(0,d.kt)(gt[et.alias],et):gt[et.alias]=et}),function we(xt){return xt.forEach(Nt=>{Nt.suffix||(Nt.suffix=function Re(xt){return xt.replace(ge,"|").split("|").map(be).join("")}(Nt.alias),Nt.overlapping=!!Nt.overlapping)}),xt}(Object.keys(gt).map(et=>gt[et]))}((Nt.disableDefaultBps?[]:E).concat(Nt.addOrientationBps?oe:[]),gt)}});let ve=(()=>{class xt{constructor(gt){this.findByMap=new Map,this.items=[...gt].sort(i)}findByAlias(gt){return gt?this.findWithPredicate(gt,et=>et.alias===gt):null}findByQuery(gt){return this.findWithPredicate(gt,et=>et.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 et;return null!==(et=null==gt?void 0:gt.suffix)&&void 0!==et?et:""})}findWithPredicate(gt,et){var vt;let $t=this.findByMap.get(gt);return $t||($t=null!==(vt=this.items.find(et))&&void 0!==vt?vt:null,this.findByMap.set(gt,$t)),null!=$t?$t:null}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(Ge))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();const F="print",De={alias:F,mediaQuery:F,priority:1e3};let lt=(()=>{class xt{constructor(gt,et,vt){this.breakpoints=gt,this.layoutConfig=et,this._document=vt,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,F]}isPrintEvent(gt){return gt.mediaQuery.startsWith(F)}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 et=this.breakpoints.findByQuery(gt);return(et?[...this.printBreakPoints,et]:this.printBreakPoints).sort(x)}updateEvent(gt){var et;let vt=this.breakpoints.findByQuery(gt.mediaQuery);return this.isPrintEvent(gt)&&(vt=this.getEventBreakpoints(gt)[0],gt.mediaQuery=null!==(et=null==vt?void 0:vt.mediaQuery)&&void 0!==et?et:""),X(gt,vt)}registerBeforeAfterPrintHooks(gt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const et=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(gt,this.getEventBreakpoints(new k(!0,F))),gt.updateStyles())},vt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(gt),gt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",et),this._document.defaultView.addEventListener("afterprint",vt),this.beforePrintEventListeners.push(et),this.afterPrintEventListeners.push(vt)}interceptEvents(gt){return et=>{this.isPrintEvent(et)?et.matches&&!this.isPrinting?(this.startPrinting(gt,this.getEventBreakpoints(et)),gt.updateStyles()):!et.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(gt),gt.updateStyles()):this.collectActivations(gt,et)}}blockPropagation(){return gt=>!(this.isPrinting||this.isPrintEvent(gt))}startPrinting(gt,et){this.isPrinting=!0,this.formerActivations=gt.activatedBreakpoints,gt.activatedBreakpoints=this.queue.addPrintBreakpoints(et)}stopPrinting(gt){gt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(gt,et){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!et.matches){const vt=this.breakpoints.findByQuery(et.mediaQuery);if(vt){const $t=this.formerActivations&&this.formerActivations.includes(vt),jt=!this.formerActivations&>.activatedBreakpoints.includes(vt);($t||jt)&&(this.deactivations.push(vt),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 xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(ve),t.LFG(Z),t.LFG(e.K0))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();class Ie{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Nt){return Nt.push(De),Nt.sort(x),Nt.forEach(gt=>this.addBreakpoint(gt)),this.printBreakpoints}addBreakpoint(Nt){Nt&&void 0===this.printBreakpoints.find(et=>et.mediaQuery===Nt.mediaQuery)&&(this.printBreakpoints=function Ae(xt){var Nt;return null!==(Nt=null==xt?void 0:xt.mediaQuery.startsWith(F))&&void 0!==Nt&&Nt}(Nt)?[Nt,...this.printBreakpoints]:[...this.printBreakpoints,Nt])}clear(){this.printBreakpoints=[]}}let se=(()=>{class xt{constructor(gt,et,vt){this.matchMedia=gt,this.breakpoints=et,this.hook=vt,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 b.x,this.observeActivations()}get activatedAlias(){var gt,et;return null!==(et=null===(gt=this.activatedBreakpoints[0])||void 0===gt?void 0:gt.alias)&&void 0!==et?et:""}set activatedBreakpoints(gt){this._activatedBreakpoints=[...gt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(gt){this._useFallbacks=gt}onMediaChange(gt){const et=this.findByQuery(gt.mediaQuery);if(et){gt=X(gt,et);const vt=this.activatedBreakpoints.indexOf(et);gt.matches&&-1===vt?(this._activatedBreakpoints.push(et),this._activatedBreakpoints.sort(x),this.updateStyles()):!gt.matches&&-1!==vt&&(this._activatedBreakpoints.splice(vt,1),this._activatedBreakpoints.sort(x),this.updateStyles())}}init(gt,et,vt,$t,jt=[]){Te(this.updateMap,gt,et,vt),Te(this.clearMap,gt,et,$t),this.buildElementKeyMap(gt,et),this.watchExtraTriggers(gt,et,jt)}getValue(gt,et,vt){const $t=this.elementMap.get(gt);if($t){const jt=void 0!==vt?$t.get(vt):this.getActivatedValues($t,et);if(jt)return jt.get(et)}}hasValue(gt,et){const vt=this.elementMap.get(gt);if(vt){const $t=this.getActivatedValues(vt,et);if($t)return void 0!==$t.get(et)||!1}return!1}setValue(gt,et,vt,$t){var jt;let Pe=this.elementMap.get(gt);if(Pe){const le=(null!==(jt=Pe.get($t))&&void 0!==jt?jt:new Map).set(et,vt);Pe.set($t,le),this.elementMap.set(gt,Pe)}else Pe=(new Map).set($t,(new Map).set(et,vt)),this.elementMap.set(gt,Pe);const Oe=this.getValue(gt,et);void 0!==Oe&&this.updateElement(gt,et,Oe)}trackValue(gt,et){return this.subject.asObservable().pipe((0,P.h)(vt=>vt.element===gt&&vt.key===et))}updateStyles(){this.elementMap.forEach((gt,et)=>{const vt=new Set(this.elementKeyMap.get(et));let $t=this.getActivatedValues(gt);$t&&$t.forEach((jt,Pe)=>{this.updateElement(et,Pe,jt),vt.delete(Pe)}),vt.forEach(jt=>{if($t=this.getActivatedValues(gt,jt),$t){const Pe=$t.get(jt);this.updateElement(et,jt,Pe)}else this.clearElement(et,jt)})})}clearElement(gt,et){const vt=this.clearMap.get(gt);if(vt){const $t=vt.get(et);$t&&($t(),this.subject.next({element:gt,key:et,value:""}))}}updateElement(gt,et,vt){const $t=this.updateMap.get(gt);if($t){const jt=$t.get(et);jt&&(jt(vt),this.subject.next({element:gt,key:et,value:vt}))}}releaseElement(gt){const et=this.watcherMap.get(gt);et&&(et.forEach($t=>$t.unsubscribe()),this.watcherMap.delete(gt));const vt=this.elementMap.get(gt);vt&&(vt.forEach(($t,jt)=>vt.delete(jt)),this.elementMap.delete(gt))}triggerUpdate(gt,et){const vt=this.elementMap.get(gt);if(vt){const $t=this.getActivatedValues(vt,et);$t&&(et?this.updateElement(gt,et,$t.get(et)):$t.forEach((jt,Pe)=>this.updateElement(gt,Pe,jt)))}}buildElementKeyMap(gt,et){let vt=this.elementKeyMap.get(gt);vt||(vt=new Set,this.elementKeyMap.set(gt,vt)),vt.add(et)}watchExtraTriggers(gt,et,vt){if(vt&&vt.length){let $t=this.watcherMap.get(gt);if($t||($t=new Map,this.watcherMap.set(gt,$t)),!$t.get(et)){const Pe=(0,a.T)(...vt).subscribe(()=>{const Oe=this.getValue(gt,et);this.updateElement(gt,et,Oe)});$t.set(et,Pe)}}}findByQuery(gt){return this.breakpoints.findByQuery(gt)}getActivatedValues(gt,et){for(let $t=0;$tet.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(gt)).pipe((0,h.b)(this.hook.interceptEvents(this)),(0,P.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(r),t.LFG(ve),t.LFG(lt))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();function Te(xt,Nt,gt,et){var vt;if(void 0!==et){const $t=null!==(vt=xt.get(Nt))&&void 0!==vt?vt:new Map;$t.set(gt,et),xt.set(Nt,$t)}}let ye=(()=>{class xt{constructor(gt,et,vt,$t){this.elementRef=gt,this.styleBuilder=et,this.styler=vt,this.marshal=$t,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new b.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(et=>{if(-1!==this.inputs.indexOf(et)){const vt=et.split(".").slice(1).join(".");this.setValue(gt[et].currentValue,vt)}})}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,et){const vt=this.styleBuilder,$t=vt.shouldCache;let jt=this.styleCache.get(gt);(!jt||!$t)&&(jt=vt.buildStyles(gt,et),$t&&this.styleCache.set(gt,jt)),this.mru=Object.assign({},jt),this.applyStyleToElement(jt),vt.sideEffect(gt,jt,et)}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,et=!1){if(gt){const[vt,$t]=this.styler.getFlowDirection(gt);if(!$t&&et){const jt=(0,d.Ar)(vt);this.styler.applyStyleToElements(jt,[gt])}return vt.trim()}return"row"}hasWrap(gt){return this.styler.hasWrap(gt)}applyStyleToElement(gt,et,vt=this.nativeElement){this.styler.applyStyleToElement(vt,gt,et)}setValue(gt,et){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,et)}updateWithValue(gt){this.currentValue!==gt&&(this.addStyles(gt),this.currentValue=gt)}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.Y36(t.SBq),t.Y36(de),t.Y36(ee),t.Y36(se))},xt.\u0275dir=t.lG2({type:xt,features:[t.TTD]}),xt})();function di(xt,Nt="1",gt="1"){let et=[Nt,gt,xt],vt=xt.indexOf("calc");if(vt>0){et[2]=Yt(xt.substring(vt).trim());let $t=xt.substr(0,vt).trim().split(" ");2==$t.length&&(et[0]=$t[0],et[1]=$t[1])}else if(0==vt)et[2]=Yt(xt.trim());else{let $t=xt.split(" ");et=3===$t.length?$t:[Nt,gt,xt]}return et}function Yt(xt){return xt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function ui(xt,Nt){if(void 0===Nt)return xt;const gt=et=>{const vt=+et.slice(0,-"x".length);return xt.endsWith("x")&&!isNaN(vt)?`${vt*Nt.value}${Nt.unit}`:xt};return xt.includes(" ")?xt.split(" ").map(gt).join(" "):gt(xt)}},3322:(Fe,Y,p)=>{"use strict";p.d(Y,{Zl:()=>E,aT:()=>n,oO:()=>U});var t=p(5e3),e=p(3270),f=p(9808),b=(p(3191),p(2722),p(2313));let L=(()=>{class C extends e.iR{constructor(N,z,oe,ge,be,Re,we){super(N,null,z,oe),this.ngClassInstance=we,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new f.mk(ge,be,N,Re)),this.init(),this.setValue("","")}set klass(N){this.ngClassInstance.klass=N,this.setValue(N,"")}updateWithValue(N){this.ngClassInstance.ngClass=N,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return C.\u0275fac=function(N){return new(N||C)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.mk,10))},C.\u0275dir=t.lG2({type:C,inputs:{klass:["class","klass"]},features:[t.qOj]}),C})();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 U=(()=>{class C extends L{constructor(){super(...arguments),this.inputs=k}}return C.\u0275fac=function(){let B;return function(z){return(B||(B=t.n5z(C)))(z||C)}}(),C.\u0275dir=t.lG2({type:C,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:[t.qOj]}),C})();class te{constructor(B,N,z=!0){this.key=B,this.value=N,this.key=z?B.replace(/['"]/g,"").trim():B.trim(),this.value=z?N.replace(/['"]/g,"").trim():N.trim(),this.value=this.value.replace(/;/,"")}}function ce(C){let B=typeof C;return"object"===B?C.constructor===Array?"array":C.constructor===Set?"set":"object":B}function i(C){const[B,...N]=C.split(":");return new te(B,N.join(":"))}function r(C,B){return B.key&&(C[B.key]=B.value),C}let u=(()=>{class C extends e.iR{constructor(N,z,oe,ge,be,Re,we,Q,Ge){var ve;super(N,null,z,oe),this.sanitizer=ge,this.ngStyleInstance=we,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new f.PC(N,be,Re)),this.init();const F=null!==(ve=this.nativeElement.getAttribute("style"))&&void 0!==ve?ve:"";this.fallbackStyles=this.buildStyleMap(F),this.isServer=Q&&(0,f.PM)(Ge)}updateWithValue(N){const z=this.buildStyleMap(N);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),z),this.isServer&&this.applyStyleToElement(z),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(N){const z=oe=>{var ge;return null!==(ge=this.sanitizer.sanitize(t.q3G.STYLE,oe))&&void 0!==ge?ge:""};if(N)switch(ce(N)){case"string":return I(function J(C,B=";"){return String(C).trim().split(B).map(N=>N.trim()).filter(N=>""!==N)}(N),z);case"array":return I(N,z);default:return function x(C,B){let N=[];return"set"===ce(C)?C.forEach(z=>N.push(z)):Object.keys(C).forEach(z=>{N.push(`${z}:${C[z]}`)}),function me(C,B){return C.map(i).filter(z=>!!z).map(z=>(B&&(z.value=B(z.value)),z)).reduce(r,{})}(N,B)}(N,z)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return C.\u0275fac=function(N){return new(N||C)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(b.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},C.\u0275dir=t.lG2({type:C,features:[t.qOj]}),C})();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 E=(()=>{class C extends u{constructor(){super(...arguments),this.inputs=c}}return C.\u0275fac=function(){let B;return function(z){return(B||(B=t.n5z(C)))(z||C)}}(),C.\u0275dir=t.lG2({type:C,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:[t.qOj]}),C})();function I(C,B){return C.map(i).filter(z=>!!z).map(z=>(B&&(z.value=B(z.value)),z)).reduce(r,{})}let n=(()=>{class C{}return C.\u0275fac=function(N){return new(N||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[[e.IR]]}),C})()},7093:(Fe,Y,p)=>{"use strict";p.d(Y,{Wh:()=>Yt,ae:()=>Pe,xw:()=>w,yH:()=>_});var t=p(5e3),e=p(226),f=p(3270),M=p(9042),b=(p(7579),p(2722));let d=(()=>{class Oe extends f.QI{buildStyles(xe,{display:ht}){const ft=(0,M.Ar)(xe);return Object.assign(Object.assign({},ft),{display:"none"===ht?ht:ft.display})}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275prov=t.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();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 A=(()=>{class Oe extends f.iR{constructor(xe,ht,ft,Ht,it){super(xe,ft,ht,Ht),this._config=it,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(xe){var ht;const Ht=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(ht=D.get(Ht))&&void 0!==ht?ht:new Map,D.set(Ht,this.styleCache),this.currentValue!==xe&&(this.addStyles(xe,{display:Ht}),this.currentValue=xe)}}return Oe.\u0275fac=function(xe){return new(xe||Oe)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(d),t.Y36(f.yB),t.Y36(f.WU))},Oe.\u0275dir=t.lG2({type:Oe,features:[t.qOj]}),Oe})(),w=(()=>{class Oe extends A{constructor(){super(...arguments),this.inputs=P}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275dir=t.lG2({type:Oe,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:[t.qOj]}),Oe})();const D=new Map;let i=(()=>{class Oe extends f.QI{constructor(xe){super(),this.layoutConfig=xe}buildStyles(xe,ht){let[ft,Ht,...it]=xe.split(" "),Ne=it.join(" ");const tt=ht.direction.indexOf("column")>-1?"column":"row",Je=(0,M.tj)(tt)?"max-width":"max-height",Se=(0,M.tj)(tt)?"min-width":"min-height",Ue=String(Ne).indexOf("calc")>-1,rt=Ue||"auto"===Ne,at=String(Ne).indexOf("%")>-1&&!Ue,yt=String(Ne).indexOf("px")>-1||String(Ne).indexOf("rem")>-1||String(Ne).indexOf("em")>-1||String(Ne).indexOf("vw")>-1||String(Ne).indexOf("vh")>-1;let gi=Ue||yt;ft="0"==ft?0:ft,Ht="0"==Ht?0:Ht;const Qt=!ft&&!Ht;let Jt={};const Xi={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Ne||""){case"":const fi=!1!==this.layoutConfig.useColumnBasisZero;Ne="row"===tt?"0%":fi?"0.000000001px":"auto";break;case"initial":case"nogrow":ft=0,Ne="auto";break;case"grow":Ne="100%";break;case"noshrink":Ht=0,Ne="auto";break;case"auto":break;case"none":ft=0,Ht=0,Ne="auto";break;default:!gi&&!at&&!isNaN(Ne)&&(Ne+="%"),"0%"===Ne&&(gi=!0),"0px"===Ne&&(Ne="0%"),Jt=(0,M.kt)(Xi,Ue?{"flex-grow":ft,"flex-shrink":Ht,"flex-basis":gi?Ne:"100%"}:{flex:`${ft} ${Ht} ${gi?Ne:"100%"}`})}return Jt.flex||Jt["flex-grow"]||(Jt=(0,M.kt)(Xi,Ue?{"flex-grow":ft,"flex-shrink":Ht,"flex-basis":Ne}:{flex:`${ft} ${Ht} ${Ne}`})),"0%"!==Ne&&"0px"!==Ne&&"0.000000001px"!==Ne&&"auto"!==Ne&&(Jt[Se]=Qt||gi&&ft?Ne:null,Jt[Je]=Qt||!rt&&Ht?Ne:null),Jt[Se]||Jt[Je]?ht.hasWrap&&(Jt[Ue?"flex-basis":"flex"]=Jt[Je]?Ue?Jt[Je]:`${ft} ${Ht} ${Jt[Je]}`:Ue?Jt[Se]:`${ft} ${Ht} ${Jt[Se]}`):Jt=(0,M.kt)(Xi,Ue?{"flex-grow":ft,"flex-shrink":Ht,"flex-basis":Ne}:{flex:`${ft} ${Ht} ${Ne}`}),(0,M.kt)(Jt,{"box-sizing":"border-box"})}}return Oe.\u0275fac=function(xe){return new(xe||Oe)(t.LFG(f.WU))},Oe.\u0275prov=t.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();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 Oe extends f.iR{constructor(xe,ht,ft,Ht,it){super(xe,Ht,ht,it),this.layoutConfig=ft,this.marshal=it,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(xe){this.flexShrink=xe||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(xe){this.flexGrow=xe||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,b.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,b.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(xe){const ft=xe.value.split(" ");this.direction=ft[0],this.wrap=void 0!==ft[1]&&"wrap"===ft[1],this.triggerUpdate()}updateWithValue(xe){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,Ht=ft.startsWith("row"),it=this.wrap;Ht&&it?this.styleCache=v:Ht&&!it?this.styleCache=E:!Ht&&it?this.styleCache=n:!Ht&&!it&&(this.styleCache=I);const Ne=String(xe).replace(";",""),tt=(0,f.Ot)(Ne,this.flexGrow,this.flexShrink);this.addStyles(tt.join(" "),{direction:ft,hasWrap:it})}triggerReflow(){const xe=this.activatedValue;if(void 0!==xe){const ht=(0,f.Ot)(xe+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ht.join(" "))}}}return Oe.\u0275fac=function(xe){return new(xe||Oe)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(f.WU),t.Y36(i),t.Y36(f.yB))},Oe.\u0275dir=t.lG2({type:Oe,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),Oe})(),_=(()=>{class Oe extends c{constructor(){super(...arguments),this.inputs=r}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275dir=t.lG2({type:Oe,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:[t.qOj]}),Oe})();const E=new Map,I=new Map,v=new Map,n=new Map;let ct=(()=>{class Oe extends f.QI{buildStyles(xe,ht){const ft={},[Ht,it]=xe.split(" ");switch(Ht){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(it){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,M.kt)(ft,{display:ht.inline?"inline-flex":"flex","flex-direction":ht.layout,"box-sizing":"border-box","max-width":"stretch"===it?(0,M.tj)(ht.layout)?null:"100%":null,"max-height":"stretch"===it&&(0,M.tj)(ht.layout)?"100%":null})}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275prov=t.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();const ut=["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 di=(()=>{class Oe extends f.iR{constructor(xe,ht,ft,Ht){super(xe,ft,ht,Ht),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,b.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(xe){const ht=this.layout||"row",ft=this.inline;"row"===ht&&ft?this.styleCache=gt:"row"!==ht||ft?"row-reverse"===ht&&ft?this.styleCache=vt:"row-reverse"!==ht||ft?"column"===ht&&ft?this.styleCache=et:"column"!==ht||ft?"column-reverse"===ht&&ft?this.styleCache=$t:"column-reverse"===ht&&!ft&&(this.styleCache=Nt):this.styleCache=ui:this.styleCache=xt:this.styleCache=Gt,this.addStyles(xe,{layout:ht,inline:ft})}onLayoutChange(xe){const ht=xe.value.split(" ");this.layout=ht[0],this.inline=xe.value.includes("inline"),M.iQ.find(ft=>ft===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Oe.\u0275fac=function(xe){return new(xe||Oe)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(ct),t.Y36(f.yB))},Oe.\u0275dir=t.lG2({type:Oe,features:[t.qOj]}),Oe})(),Yt=(()=>{class Oe extends di{constructor(){super(...arguments),this.inputs=ut}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275dir=t.lG2({type:Oe,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:[t.qOj]}),Oe})();const Gt=new Map,ui=new Map,xt=new Map,Nt=new Map,gt=new Map,et=new Map,vt=new Map,$t=new Map;let Pe=(()=>{class Oe{}return Oe.\u0275fac=function(xe){return new(xe||Oe)},Oe.\u0275mod=t.oAB({type:Oe}),Oe.\u0275inj=t.cJS({imports:[[f.IR,e.vT]]}),Oe})()},3075:(Fe,Y,p)=>{"use strict";p.d(Y,{Cf:()=>Z,F:()=>zt,Fd:()=>Ia,Fj:()=>k,JJ:()=>Ae,JL:()=>se,JU:()=>P,NI:()=>Ei,On:()=>Dn,Q7:()=>Fr,UX:()=>Zt,Zs:()=>ya,_Y:()=>Ai,a5:()=>ve,kI:()=>X,oH:()=>Na,qQ:()=>ra,qu:()=>Zi,sg:()=>nr,u:()=>fn,u5:()=>mt,wV:()=>cn});var t=p(5e3),e=p(9808),f=p(457),M=p(4128),a=p(4004);let b=(()=>{class Qe{constructor(He,bt){this._renderer=He,this._elementRef=bt,this.onChange=Si=>{},this.onTouched=()=>{}}setProperty(He,bt){this._renderer.setProperty(this._elementRef.nativeElement,He,bt)}registerOnTouched(He){this.onTouched=He}registerOnChange(He){this.onChange=He}setDisabledState(He){this.setProperty("disabled",He)}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(t.Qsj),t.Y36(t.SBq))},Qe.\u0275dir=t.lG2({type:Qe}),Qe})(),d=(()=>{class Qe extends b{}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,features:[t.qOj]}),Qe})();const P=new t.OlP("NgValueAccessor"),w={provide:P,useExisting:(0,t.Gpc)(()=>k),multi:!0},L=new t.OlP("CompositionEventMode");let k=(()=>{class Qe extends b{constructor(He,bt,Si){super(He,bt),this._compositionMode=Si,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function D(){const Qe=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(Qe.toLowerCase())}())}writeValue(He){this.setProperty("value",null==He?"":He)}_handleInput(He){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(He)}_compositionStart(){this._composing=!0}_compositionEnd(He){this._composing=!1,this._compositionMode&&this.onChange(He)}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(L,8))},Qe.\u0275dir=t.lG2({type:Qe,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(He,bt){1&He&&t.NdJ("input",function(Qi){return bt._handleInput(Qi.target.value)})("blur",function(){return bt.onTouched()})("compositionstart",function(){return bt._compositionStart()})("compositionend",function(Qi){return bt._compositionEnd(Qi.target.value)})},features:[t._Bn([w]),t.qOj]}),Qe})();function S(Qe){return null==Qe||0===Qe.length}function U(Qe){return null!=Qe&&"number"==typeof Qe.length}const Z=new t.OlP("NgValidators"),j=new t.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 X{static min(We){return de(We)}static max(We){return ee(We)}static required(We){return te(We)}static requiredTrue(We){return ce(We)}static email(We){return function J(Qe){return S(Qe.value)||ne.test(Qe.value)?null:{email:!0}}(We)}static minLength(We){return function me(Qe){return We=>S(We.value)||!U(We.value)?null:We.value.lengthU(We.value)&&We.value.length>Qe?{maxlength:{requiredLength:Qe,actualLength:We.value.length}}:null}(We)}static pattern(We){return function i(Qe){if(!Qe)return r;let We,He;return"string"==typeof Qe?(He="","^"!==Qe.charAt(0)&&(He+="^"),He+=Qe,"$"!==Qe.charAt(Qe.length-1)&&(He+="$"),We=new RegExp(He)):(He=Qe.toString(),We=Qe),bt=>{if(S(bt.value))return null;const Si=bt.value;return We.test(Si)?null:{pattern:{requiredPattern:He,actualValue:Si}}}}(We)}static nullValidator(We){return null}static compose(We){return n(We)}static composeAsync(We){return B(We)}}function de(Qe){return We=>{if(S(We.value)||S(Qe))return null;const He=parseFloat(We.value);return!isNaN(He)&&He{if(S(We.value)||S(Qe))return null;const He=parseFloat(We.value);return!isNaN(He)&&He>Qe?{max:{max:Qe,actual:We.value}}:null}}function te(Qe){return S(Qe.value)?{required:!0}:null}function ce(Qe){return!0===Qe.value?null:{required:!0}}function r(Qe){return null}function u(Qe){return null!=Qe}function c(Qe){const We=(0,t.QGY)(Qe)?(0,f.D)(Qe):Qe;return(0,t.CqO)(We),We}function _(Qe){let We={};return Qe.forEach(He=>{We=null!=He?Object.assign(Object.assign({},We),He):We}),0===Object.keys(We).length?null:We}function E(Qe,We){return We.map(He=>He(Qe))}function v(Qe){return Qe.map(We=>function I(Qe){return!Qe.validate}(We)?We:He=>We.validate(He))}function n(Qe){if(!Qe)return null;const We=Qe.filter(u);return 0==We.length?null:function(He){return _(E(He,We))}}function C(Qe){return null!=Qe?n(v(Qe)):null}function B(Qe){if(!Qe)return null;const We=Qe.filter(u);return 0==We.length?null:function(He){const bt=E(He,We).map(c);return(0,M.D)(bt).pipe((0,a.U)(_))}}function N(Qe){return null!=Qe?B(v(Qe)):null}function z(Qe,We){return null===Qe?[We]:Array.isArray(Qe)?[...Qe,We]:[Qe,We]}function oe(Qe){return Qe._rawValidators}function ge(Qe){return Qe._rawAsyncValidators}function be(Qe){return Qe?Array.isArray(Qe)?Qe:[Qe]:[]}function Re(Qe,We){return Array.isArray(Qe)?Qe.includes(We):Qe===We}function we(Qe,We){const He=be(We);return be(Qe).forEach(Si=>{Re(He,Si)||He.push(Si)}),He}function Q(Qe,We){return be(We).filter(He=>!Re(Qe,He))}class Ge{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(We){this._rawValidators=We||[],this._composedValidatorFn=C(this._rawValidators)}_setAsyncValidators(We){this._rawAsyncValidators=We||[],this._composedAsyncValidatorFn=N(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(We){this._onDestroyCallbacks.push(We)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(We=>We()),this._onDestroyCallbacks=[]}reset(We){this.control&&this.control.reset(We)}hasError(We,He){return!!this.control&&this.control.hasError(We,He)}getError(We,He){return this.control?this.control.getError(We,He):null}}class ve extends Ge{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class F extends Ge{get formDirective(){return null}get path(){return null}}class De{constructor(We){this._cd=We}is(We){var He,bt,Si;return"submitted"===We?!!(null===(He=this._cd)||void 0===He?void 0:He.submitted):!!(null===(Si=null===(bt=this._cd)||void 0===bt?void 0:bt.control)||void 0===Si?void 0:Si[We])}}let Ae=(()=>{class Qe extends De{constructor(He){super(He)}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(ve,2))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(He,bt){2&He&&t.ekj("ng-untouched",bt.is("untouched"))("ng-touched",bt.is("touched"))("ng-pristine",bt.is("pristine"))("ng-dirty",bt.is("dirty"))("ng-valid",bt.is("valid"))("ng-invalid",bt.is("invalid"))("ng-pending",bt.is("pending"))},features:[t.qOj]}),Qe})(),se=(()=>{class Qe extends De{constructor(He){super(He)}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(F,10))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(He,bt){2&He&&t.ekj("ng-untouched",bt.is("untouched"))("ng-touched",bt.is("touched"))("ng-pristine",bt.is("pristine"))("ng-dirty",bt.is("dirty"))("ng-valid",bt.is("valid"))("ng-invalid",bt.is("invalid"))("ng-pending",bt.is("pending"))("ng-submitted",bt.is("submitted"))},features:[t.qOj]}),Qe})();function gt(Qe,We){return[...We.path,Qe]}function et(Qe,We){Pe(Qe,We),We.valueAccessor.writeValue(Qe.value),function le(Qe,We){We.valueAccessor.registerOnChange(He=>{Qe._pendingValue=He,Qe._pendingChange=!0,Qe._pendingDirty=!0,"change"===Qe.updateOn&&ht(Qe,We)})}(Qe,We),function ft(Qe,We){const He=(bt,Si)=>{We.valueAccessor.writeValue(bt),Si&&We.viewToModelUpdate(bt)};Qe.registerOnChange(He),We._registerOnDestroy(()=>{Qe._unregisterOnChange(He)})}(Qe,We),function xe(Qe,We){We.valueAccessor.registerOnTouched(()=>{Qe._pendingTouched=!0,"blur"===Qe.updateOn&&Qe._pendingChange&&ht(Qe,We),"submit"!==Qe.updateOn&&Qe.markAsTouched()})}(Qe,We),function jt(Qe,We){if(We.valueAccessor.setDisabledState){const He=bt=>{We.valueAccessor.setDisabledState(bt)};Qe.registerOnDisabledChange(He),We._registerOnDestroy(()=>{Qe._unregisterOnDisabledChange(He)})}}(Qe,We)}function vt(Qe,We,He=!0){const bt=()=>{};We.valueAccessor&&(We.valueAccessor.registerOnChange(bt),We.valueAccessor.registerOnTouched(bt)),Oe(Qe,We),Qe&&(We._invokeOnDestroyCallbacks(),Qe._registerOnCollectionChange(()=>{}))}function $t(Qe,We){Qe.forEach(He=>{He.registerOnValidatorChange&&He.registerOnValidatorChange(We)})}function Pe(Qe,We){const He=oe(Qe);null!==We.validator?Qe.setValidators(z(He,We.validator)):"function"==typeof He&&Qe.setValidators([He]);const bt=ge(Qe);null!==We.asyncValidator?Qe.setAsyncValidators(z(bt,We.asyncValidator)):"function"==typeof bt&&Qe.setAsyncValidators([bt]);const Si=()=>Qe.updateValueAndValidity();$t(We._rawValidators,Si),$t(We._rawAsyncValidators,Si)}function Oe(Qe,We){let He=!1;if(null!==Qe){if(null!==We.validator){const Si=oe(Qe);if(Array.isArray(Si)&&Si.length>0){const Qi=Si.filter(Yn=>Yn!==We.validator);Qi.length!==Si.length&&(He=!0,Qe.setValidators(Qi))}}if(null!==We.asyncValidator){const Si=ge(Qe);if(Array.isArray(Si)&&Si.length>0){const Qi=Si.filter(Yn=>Yn!==We.asyncValidator);Qi.length!==Si.length&&(He=!0,Qe.setAsyncValidators(Qi))}}}const bt=()=>{};return $t(We._rawValidators,bt),$t(We._rawAsyncValidators,bt),He}function ht(Qe,We){Qe._pendingDirty&&Qe.markAsDirty(),Qe.setValue(Qe._pendingValue,{emitModelToViewChange:!1}),We.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1}function Ht(Qe,We){Pe(Qe,We)}function Ue(Qe,We){if(!Qe.hasOwnProperty("model"))return!1;const He=Qe.model;return!!He.isFirstChange()||!Object.is(We,He.currentValue)}function at(Qe,We){Qe._syncPendingControls(),We.forEach(He=>{const bt=He.control;"submit"===bt.updateOn&&bt._pendingChange&&(He.viewToModelUpdate(bt._pendingValue),bt._pendingChange=!1)})}function yt(Qe,We){if(!We)return null;let He,bt,Si;return Array.isArray(We),We.forEach(Qi=>{Qi.constructor===k?He=Qi:function rt(Qe){return Object.getPrototypeOf(Qe.constructor)===d}(Qi)?bt=Qi:Si=Qi}),Si||bt||He||null}function gi(Qe,We){const He=Qe.indexOf(We);He>-1&&Qe.splice(He,1)}const Xi="VALID",fi="INVALID",ai="PENDING",tn="DISABLED";function Gi(Qe){return(fe(Qe)?Qe.validators:Qe)||null}function Yi(Qe){return Array.isArray(Qe)?C(Qe):Qe||null}function ze(Qe,We){return(fe(We)?We.asyncValidators:Qe)||null}function Lt(Qe){return Array.isArray(Qe)?N(Qe):Qe||null}function fe(Qe){return null!=Qe&&!Array.isArray(Qe)&&"object"==typeof Qe}const je=Qe=>Qe instanceof Ei,Ct=Qe=>Qe instanceof en,ie=Qe=>Qe instanceof ji;function qe(Qe){return je(Qe)?Qe.value:Qe.getRawValue()}function Mt(Qe,We){const He=Ct(Qe),bt=Qe.controls;if(!(He?Object.keys(bt):bt).length)throw new t.vHH(1e3,"");if(!bt[We])throw new t.vHH(1001,"")}function Vt(Qe,We){Ct(Qe),Qe._forEachChild((bt,Si)=>{if(void 0===We[Si])throw new t.vHH(1002,"")})}class Mi{constructor(We,He){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=We,this._rawAsyncValidators=He,this._composedValidatorFn=Yi(this._rawValidators),this._composedAsyncValidatorFn=Lt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(We){this._rawValidators=this._composedValidatorFn=We}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(We){this._rawAsyncValidators=this._composedAsyncValidatorFn=We}get parent(){return this._parent}get valid(){return this.status===Xi}get invalid(){return this.status===fi}get pending(){return this.status==ai}get disabled(){return this.status===tn}get enabled(){return this.status!==tn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(We){this._rawValidators=We,this._composedValidatorFn=Yi(We)}setAsyncValidators(We){this._rawAsyncValidators=We,this._composedAsyncValidatorFn=Lt(We)}addValidators(We){this.setValidators(we(We,this._rawValidators))}addAsyncValidators(We){this.setAsyncValidators(we(We,this._rawAsyncValidators))}removeValidators(We){this.setValidators(Q(We,this._rawValidators))}removeAsyncValidators(We){this.setAsyncValidators(Q(We,this._rawAsyncValidators))}hasValidator(We){return Re(this._rawValidators,We)}hasAsyncValidator(We){return Re(this._rawAsyncValidators,We)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(We={}){this.touched=!0,this._parent&&!We.onlySelf&&this._parent.markAsTouched(We)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(We=>We.markAllAsTouched())}markAsUntouched(We={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(He=>{He.markAsUntouched({onlySelf:!0})}),this._parent&&!We.onlySelf&&this._parent._updateTouched(We)}markAsDirty(We={}){this.pristine=!1,this._parent&&!We.onlySelf&&this._parent.markAsDirty(We)}markAsPristine(We={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(He=>{He.markAsPristine({onlySelf:!0})}),this._parent&&!We.onlySelf&&this._parent._updatePristine(We)}markAsPending(We={}){this.status=ai,!1!==We.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!We.onlySelf&&this._parent.markAsPending(We)}disable(We={}){const He=this._parentMarkedDirty(We.onlySelf);this.status=tn,this.errors=null,this._forEachChild(bt=>{bt.disable(Object.assign(Object.assign({},We),{onlySelf:!0}))}),this._updateValue(),!1!==We.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},We),{skipPristineCheck:He})),this._onDisabledChange.forEach(bt=>bt(!0))}enable(We={}){const He=this._parentMarkedDirty(We.onlySelf);this.status=Xi,this._forEachChild(bt=>{bt.enable(Object.assign(Object.assign({},We),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:We.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},We),{skipPristineCheck:He})),this._onDisabledChange.forEach(bt=>bt(!1))}_updateAncestors(We){this._parent&&!We.onlySelf&&(this._parent.updateValueAndValidity(We),We.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(We){this._parent=We}updateValueAndValidity(We={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xi||this.status===ai)&&this._runAsyncValidator(We.emitEvent)),!1!==We.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!We.onlySelf&&this._parent.updateValueAndValidity(We)}_updateTreeValidity(We={emitEvent:!0}){this._forEachChild(He=>He._updateTreeValidity(We)),this.updateValueAndValidity({onlySelf:!0,emitEvent:We.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?tn:Xi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(We){if(this.asyncValidator){this.status=ai,this._hasOwnPendingAsyncValidator=!0;const He=c(this.asyncValidator(this));this._asyncValidationSubscription=He.subscribe(bt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(bt,{emitEvent:We})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(We,He={}){this.errors=We,this._updateControlsErrors(!1!==He.emitEvent)}get(We){return function Wi(Qe,We,He){if(null==We||(Array.isArray(We)||(We=We.split(He)),Array.isArray(We)&&0===We.length))return null;let bt=Qe;return We.forEach(Si=>{bt=Ct(bt)?bt.controls.hasOwnProperty(Si)?bt.controls[Si]:null:ie(bt)&&bt.at(Si)||null}),bt}(this,We,".")}getError(We,He){const bt=He?this.get(He):this;return bt&&bt.errors?bt.errors[We]:null}hasError(We,He){return!!this.getError(We,He)}get root(){let We=this;for(;We._parent;)We=We._parent;return We}_updateControlsErrors(We){this.status=this._calculateStatus(),We&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(We)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?tn:this.errors?fi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ai)?ai:this._anyControlsHaveStatus(fi)?fi:Xi}_anyControlsHaveStatus(We){return this._anyControls(He=>He.status===We)}_anyControlsDirty(){return this._anyControls(We=>We.dirty)}_anyControlsTouched(){return this._anyControls(We=>We.touched)}_updatePristine(We={}){this.pristine=!this._anyControlsDirty(),this._parent&&!We.onlySelf&&this._parent._updatePristine(We)}_updateTouched(We={}){this.touched=this._anyControlsTouched(),this._parent&&!We.onlySelf&&this._parent._updateTouched(We)}_isBoxedValue(We){return"object"==typeof We&&null!==We&&2===Object.keys(We).length&&"value"in We&&"disabled"in We}_registerOnCollectionChange(We){this._onCollectionChange=We}_setUpdateStrategy(We){fe(We)&&null!=We.updateOn&&(this._updateOn=We.updateOn)}_parentMarkedDirty(We){return!We&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ei extends Mi{constructor(We=null,He,bt){super(Gi(He),ze(bt,He)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(We),this._setUpdateStrategy(He),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),fe(He)&&He.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(We)?We.value:We)}setValue(We,He={}){this.value=this._pendingValue=We,this._onChange.length&&!1!==He.emitModelToViewChange&&this._onChange.forEach(bt=>bt(this.value,!1!==He.emitViewToModelChange)),this.updateValueAndValidity(He)}patchValue(We,He={}){this.setValue(We,He)}reset(We=this.defaultValue,He={}){this._applyFormState(We),this.markAsPristine(He),this.markAsUntouched(He),this.setValue(this.value,He),this._pendingChange=!1}_updateValue(){}_anyControls(We){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(We){this._onChange.push(We)}_unregisterOnChange(We){gi(this._onChange,We)}registerOnDisabledChange(We){this._onDisabledChange.push(We)}_unregisterOnDisabledChange(We){gi(this._onDisabledChange,We)}_forEachChild(We){}_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(We){this._isBoxedValue(We)?(this.value=this._pendingValue=We.value,We.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=We}}class en extends Mi{constructor(We,He,bt){super(Gi(He),ze(bt,He)),this.controls=We,this._initObservables(),this._setUpdateStrategy(He),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(We,He){return this.controls[We]?this.controls[We]:(this.controls[We]=He,He.setParent(this),He._registerOnCollectionChange(this._onCollectionChange),He)}addControl(We,He,bt={}){this.registerControl(We,He),this.updateValueAndValidity({emitEvent:bt.emitEvent}),this._onCollectionChange()}removeControl(We,He={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),delete this.controls[We],this.updateValueAndValidity({emitEvent:He.emitEvent}),this._onCollectionChange()}setControl(We,He,bt={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),delete this.controls[We],He&&this.registerControl(We,He),this.updateValueAndValidity({emitEvent:bt.emitEvent}),this._onCollectionChange()}contains(We){return this.controls.hasOwnProperty(We)&&this.controls[We].enabled}setValue(We,He={}){Vt(this,We),Object.keys(We).forEach(bt=>{Mt(this,bt),this.controls[bt].setValue(We[bt],{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He)}patchValue(We,He={}){null!=We&&(Object.keys(We).forEach(bt=>{this.controls[bt]&&this.controls[bt].patchValue(We[bt],{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He))}reset(We={},He={}){this._forEachChild((bt,Si)=>{bt.reset(We[Si],{onlySelf:!0,emitEvent:He.emitEvent})}),this._updatePristine(He),this._updateTouched(He),this.updateValueAndValidity(He)}getRawValue(){return this._reduceChildren({},(We,He,bt)=>(We[bt]=qe(He),We))}_syncPendingControls(){let We=this._reduceChildren(!1,(He,bt)=>!!bt._syncPendingControls()||He);return We&&this.updateValueAndValidity({onlySelf:!0}),We}_forEachChild(We){Object.keys(this.controls).forEach(He=>{const bt=this.controls[He];bt&&We(bt,He)})}_setUpControls(){this._forEachChild(We=>{We.setParent(this),We._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(We){for(const He of Object.keys(this.controls)){const bt=this.controls[He];if(this.contains(He)&&We(bt))return!0}return!1}_reduceValue(){return this._reduceChildren({},(We,He,bt)=>((He.enabled||this.disabled)&&(We[bt]=He.value),We))}_reduceChildren(We,He){let bt=We;return this._forEachChild((Si,Qi)=>{bt=He(bt,Si,Qi)}),bt}_allControlsDisabled(){for(const We of Object.keys(this.controls))if(this.controls[We].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class ji extends Mi{constructor(We,He,bt){super(Gi(He),ze(bt,He)),this.controls=We,this._initObservables(),this._setUpdateStrategy(He),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(We){return this.controls[We]}push(We,He={}){this.controls.push(We),this._registerControl(We),this.updateValueAndValidity({emitEvent:He.emitEvent}),this._onCollectionChange()}insert(We,He,bt={}){this.controls.splice(We,0,He),this._registerControl(He),this.updateValueAndValidity({emitEvent:bt.emitEvent})}removeAt(We,He={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),this.controls.splice(We,1),this.updateValueAndValidity({emitEvent:He.emitEvent})}setControl(We,He,bt={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),this.controls.splice(We,1),He&&(this.controls.splice(We,0,He),this._registerControl(He)),this.updateValueAndValidity({emitEvent:bt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(We,He={}){Vt(this,We),We.forEach((bt,Si)=>{Mt(this,Si),this.at(Si).setValue(bt,{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He)}patchValue(We,He={}){null!=We&&(We.forEach((bt,Si)=>{this.at(Si)&&this.at(Si).patchValue(bt,{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He))}reset(We=[],He={}){this._forEachChild((bt,Si)=>{bt.reset(We[Si],{onlySelf:!0,emitEvent:He.emitEvent})}),this._updatePristine(He),this._updateTouched(He),this.updateValueAndValidity(He)}getRawValue(){return this.controls.map(We=>qe(We))}clear(We={}){this.controls.length<1||(this._forEachChild(He=>He._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:We.emitEvent}))}_syncPendingControls(){let We=this.controls.reduce((He,bt)=>!!bt._syncPendingControls()||He,!1);return We&&this.updateValueAndValidity({onlySelf:!0}),We}_forEachChild(We){this.controls.forEach((He,bt)=>{We(He,bt)})}_updateValue(){this.value=this.controls.filter(We=>We.enabled||this.disabled).map(We=>We.value)}_anyControls(We){return this.controls.some(He=>He.enabled&&We(He))}_setUpControls(){this._forEachChild(We=>this._registerControl(We))}_allControlsDisabled(){for(const We of this.controls)if(We.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(We){We.setParent(this),We._registerOnCollectionChange(this._onCollectionChange)}}const Kt={provide:F,useExisting:(0,t.Gpc)(()=>zt)},Oi=(()=>Promise.resolve(null))();let zt=(()=>{class Qe extends F{constructor(He,bt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new en({},C(He),N(bt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(He){Oi.then(()=>{const bt=this._findContainer(He.path);He.control=bt.registerControl(He.name,He.control),et(He.control,He),He.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(He)})}getControl(He){return this.form.get(He.path)}removeControl(He){Oi.then(()=>{const bt=this._findContainer(He.path);bt&&bt.removeControl(He.name),this._directives.delete(He)})}addFormGroup(He){Oi.then(()=>{const bt=this._findContainer(He.path),Si=new en({});Ht(Si,He),bt.registerControl(He.name,Si),Si.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(He){Oi.then(()=>{const bt=this._findContainer(He.path);bt&&bt.removeControl(He.name)})}getFormGroup(He){return this.form.get(He.path)}updateModel(He,bt){Oi.then(()=>{this.form.get(He.path).setValue(bt)})}setValue(He){this.control.setValue(He)}onSubmit(He){return this.submitted=!0,at(this.form,this._directives),this.ngSubmit.emit(He),!1}onReset(){this.resetForm()}resetForm(He){this.form.reset(He),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(He){return He.pop(),He.length?this.form.get(He):this.form}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(Z,10),t.Y36(j,10))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(He,bt){1&He&&t.NdJ("submit",function(Qi){return bt.onSubmit(Qi)})("reset",function(){return bt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Kt]),t.qOj]}),Qe})();const pn={provide:ve,useExisting:(0,t.Gpc)(()=>Dn)},Fn=(()=>Promise.resolve(null))();let Dn=(()=>{class Qe extends ve{constructor(He,bt,Si,Qi,Yn){super(),this._changeDetectorRef=Yn,this.control=new Ei,this._registered=!1,this.update=new t.vpe,this._parent=He,this._setValidators(bt),this._setAsyncValidators(Si),this.valueAccessor=yt(0,Qi)}ngOnChanges(He){if(this._checkForErrors(),!this._registered||"name"in He){if(this._registered&&(this._checkName(),this.formDirective)){const bt=He.name.previousValue;this.formDirective.removeControl({name:bt,path:this._getPath(bt)})}this._setUpControl()}"isDisabled"in He&&this._updateDisabled(He),Ue(He,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(He){this.viewModel=He,this.update.emit(He)}_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(){et(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(He){Fn.then(()=>{var bt;this.control.setValue(He,{emitViewToModelChange:!1}),null===(bt=this._changeDetectorRef)||void 0===bt||bt.markForCheck()})}_updateDisabled(He){const bt=He.isDisabled.currentValue,Si=""===bt||bt&&"false"!==bt;Fn.then(()=>{var Qi;Si&&!this.control.disabled?this.control.disable():!Si&&this.control.disabled&&this.control.enable(),null===(Qi=this._changeDetectorRef)||void 0===Qi||Qi.markForCheck()})}_getPath(He){return this._parent?gt(He,this._parent):[He]}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(F,9),t.Y36(Z,10),t.Y36(j,10),t.Y36(P,10),t.Y36(t.sBO,8))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([pn]),t.qOj,t.TTD]}),Qe})(),Ai=(()=>{class Qe{}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Qe})();const Ri={provide:P,useExisting:(0,t.Gpc)(()=>cn),multi:!0};let cn=(()=>{class Qe extends d{writeValue(He){this.setProperty("value",null==He?"":He)}registerOnChange(He){this.onChange=bt=>{He(""==bt?null:parseFloat(bt))}}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(He,bt){1&He&&t.NdJ("input",function(Qi){return bt.onChange(Qi.target.value)})("blur",function(){return bt.onTouched()})},features:[t._Bn([Ri]),t.qOj]}),Qe})(),Jn=(()=>{class Qe{}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275mod=t.oAB({type:Qe}),Qe.\u0275inj=t.cJS({}),Qe})();const ga=new t.OlP("NgModelWithFormControlWarning"),Ca={provide:ve,useExisting:(0,t.Gpc)(()=>Na)};let Na=(()=>{class Qe extends ve{constructor(He,bt,Si,Qi){super(),this._ngModelWarningConfig=Qi,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(He),this._setAsyncValidators(bt),this.valueAccessor=yt(0,Si)}set isDisabled(He){}ngOnChanges(He){if(this._isControlChanged(He)){const bt=He.form.previousValue;bt&&vt(bt,this,!1),et(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ue(He,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&vt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(He){this.viewModel=He,this.update.emit(He)}_isControlChanged(He){return He.hasOwnProperty("form")}}return Qe._ngModelWarningSentOnce=!1,Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(Z,10),t.Y36(j,10),t.Y36(P,10),t.Y36(ga,8))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Ca]),t.qOj,t.TTD]}),Qe})();const Ra={provide:F,useExisting:(0,t.Gpc)(()=>nr)};let nr=(()=>{class Qe extends F{constructor(He,bt){super(),this.validators=He,this.asyncValidators=bt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(He),this._setAsyncValidators(bt)}ngOnChanges(He){this._checkFormPresent(),He.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Oe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(He){const bt=this.form.get(He.path);return et(bt,He),bt.updateValueAndValidity({emitEvent:!1}),this.directives.push(He),bt}getControl(He){return this.form.get(He.path)}removeControl(He){vt(He.control||null,He,!1),gi(this.directives,He)}addFormGroup(He){this._setUpFormContainer(He)}removeFormGroup(He){this._cleanUpFormContainer(He)}getFormGroup(He){return this.form.get(He.path)}addFormArray(He){this._setUpFormContainer(He)}removeFormArray(He){this._cleanUpFormContainer(He)}getFormArray(He){return this.form.get(He.path)}updateModel(He,bt){this.form.get(He.path).setValue(bt)}onSubmit(He){return this.submitted=!0,at(this.form,this.directives),this.ngSubmit.emit(He),!1}onReset(){this.resetForm()}resetForm(He){this.form.reset(He),this.submitted=!1}_updateDomValue(){this.directives.forEach(He=>{const bt=He.control,Si=this.form.get(He.path);bt!==Si&&(vt(bt||null,He),je(Si)&&(et(Si,He),He.control=Si))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(He){const bt=this.form.get(He.path);Ht(bt,He),bt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(He){if(this.form){const bt=this.form.get(He.path);bt&&function it(Qe,We){return Oe(Qe,We)}(bt,He)&&bt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pe(this.form,this),this._oldForm&&Oe(this._oldForm,this)}_checkFormPresent(){}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(Z,10),t.Y36(j,10))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formGroup",""]],hostBindings:function(He,bt){1&He&&t.NdJ("submit",function(Qi){return bt.onSubmit(Qi)})("reset",function(){return bt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Ra]),t.qOj,t.TTD]}),Qe})();const lr={provide:ve,useExisting:(0,t.Gpc)(()=>fn)};let fn=(()=>{class Qe extends ve{constructor(He,bt,Si,Qi,Yn){super(),this._ngModelWarningConfig=Yn,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=He,this._setValidators(bt),this._setAsyncValidators(Si),this.valueAccessor=yt(0,Qi)}set isDisabled(He){}ngOnChanges(He){this._added||this._setUpControl(),Ue(He,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(He){this.viewModel=He,this.update.emit(He)}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 Qe._ngModelWarningSentOnce=!1,Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(F,13),t.Y36(Z,10),t.Y36(j,10),t.Y36(P,10),t.Y36(ga,8))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([lr]),t.qOj,t.TTD]}),Qe})();function va(Qe){return"number"==typeof Qe?Qe:parseFloat(Qe)}let $n=(()=>{class Qe{constructor(){this._validator=r}ngOnChanges(He){if(this.inputName in He){const bt=this.normalizeInput(He[this.inputName].currentValue);this._enabled=this.enabled(bt),this._validator=this._enabled?this.createValidator(bt):r,this._onChange&&this._onChange()}}validate(He){return this._validator(He)}registerOnValidatorChange(He){this._onChange=He}enabled(He){return null!=He}}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275dir=t.lG2({type:Qe,features:[t.TTD]}),Qe})();const Ta={provide:Z,useExisting:(0,t.Gpc)(()=>Ia),multi:!0};let Ia=(()=>{class Qe extends $n{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=He=>va(He),this.createValidator=He=>ee(He)}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(He,bt){2&He&&t.uIk("max",bt._enabled?bt.max:null)},inputs:{max:"max"},features:[t._Bn([Ta]),t.qOj]}),Qe})();const Kn={provide:Z,useExisting:(0,t.Gpc)(()=>ra),multi:!0};let ra=(()=>{class Qe extends $n{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=He=>va(He),this.createValidator=He=>de(He)}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(He,bt){2&He&&t.uIk("min",bt._enabled?bt.min:null)},inputs:{min:"min"},features:[t._Bn([Kn]),t.qOj]}),Qe})();const Hr={provide:Z,useExisting:(0,t.Gpc)(()=>Fr),multi:!0},Sr={provide:Z,useExisting:(0,t.Gpc)(()=>ya),multi:!0};let Fr=(()=>{class Qe extends $n{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=He=>function _a(Qe){return null!=Qe&&!1!==Qe&&"false"!=`${Qe}`}(He),this.createValidator=He=>te}enabled(He){return He}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(He,bt){2&He&&t.uIk("required",bt._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Hr]),t.qOj]}),Qe})(),ya=(()=>{class Qe extends Fr{constructor(){super(...arguments),this.createValidator=He=>ce}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(He,bt){2&He&&t.uIk("required",bt._enabled?"":null)},features:[t._Bn([Sr]),t.qOj]}),Qe})(),hi=(()=>{class Qe{}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275mod=t.oAB({type:Qe}),Qe.\u0275inj=t.cJS({imports:[[Jn]]}),Qe})(),mt=(()=>{class Qe{}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275mod=t.oAB({type:Qe}),Qe.\u0275inj=t.cJS({imports:[hi]}),Qe})(),Zt=(()=>{class Qe{static withConfig(He){return{ngModule:Qe,providers:[{provide:ga,useValue:He.warnOnNgModelWithFormControl}]}}}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275mod=t.oAB({type:Qe}),Qe.\u0275inj=t.cJS({imports:[hi]}),Qe})(),Zi=(()=>{class Qe{group(He,bt=null){const Si=this._reduceControls(He);let Or,Qi=null,Yn=null;return null!=bt&&(function Hi(Qe){return void 0!==Qe.asyncValidators||void 0!==Qe.validators||void 0!==Qe.updateOn}(bt)?(Qi=null!=bt.validators?bt.validators:null,Yn=null!=bt.asyncValidators?bt.asyncValidators:null,Or=null!=bt.updateOn?bt.updateOn:void 0):(Qi=null!=bt.validator?bt.validator:null,Yn=null!=bt.asyncValidator?bt.asyncValidator:null)),new en(Si,{asyncValidators:Yn,updateOn:Or,validators:Qi})}control(He,bt,Si){return new Ei(He,bt,Si)}array(He,bt,Si){const Qi=He.map(Yn=>this._createControl(Yn));return new ji(Qi,bt,Si)}_reduceControls(He){const bt={};return Object.keys(He).forEach(Si=>{bt[Si]=this._createControl(He[Si])}),bt}_createControl(He){return je(He)||Ct(He)||ie(He)?He:Array.isArray(He)?this.control(He[0],He.length>1?He[1]:null,He.length>2?He[2]:null):this.control(He)}}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:Zt}),Qe})()},1079:(Fe,Y,p)=>{"use strict";p.d(Y,{Bb:()=>Q,XC:()=>n,ZL:()=>be});var t=p(5664),e=p(3191),f=p(5e3),M=p(508),a=p(727),b=p(7579),d=p(9770),P=p(6451),h=p(9646),A=p(4968),w=p(925),D=p(9808),L=p(9776),k=p(5303),S=p(1159),U=p(7429),Z=p(3075),j=p(7322),ne=p(8675),X=p(3900),de=p(5698),ee=p(9300),te=p(4004),ce=p(8505),J=p(4086),me=p(226);const x=["panel"];function i(Ge,ve){if(1&Ge&&(f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA()),2&Ge){const F=ve.id,De=f.oxw();f.Q6J("id",De.id)("ngClass",De._classList),f.uIk("aria-label",De.ariaLabel||null)("aria-labelledby",De._getPanelAriaLabelledby(F))}}const r=["*"];let u=0;class c{constructor(ve,F){this.source=ve,this.option=F}}const _=(0,M.Kr)(class{}),E=new f.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function I(){return{autoActiveFirstOption:!1}}});let v=(()=>{class Ge extends _{constructor(F,De,lt,Ie){super(),this._changeDetectorRef=F,this._elementRef=De,this._activeOptionChanges=a.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new f.vpe,this.opened=new f.vpe,this.closed=new f.vpe,this.optionActivated=new f.vpe,this._classList={},this.id="mat-autocomplete-"+u++,this.inertGroups=(null==Ie?void 0:Ie.SAFARI)||!1,this._autoActiveFirstOption=!!lt.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(F){this._autoActiveFirstOption=(0,e.Ig)(F)}set classList(F){this._classList=F&&F.length?(0,e.du)(F).reduce((De,lt)=>(De[lt]=!0,De),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new t.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(F=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[F]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(F){this.panel&&(this.panel.nativeElement.scrollTop=F)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(F){const De=new c(this,F);this.optionSelected.emit(De)}_getPanelAriaLabelledby(F){return this.ariaLabel?null:this.ariaLabelledby?(F?F+" ":"")+this.ariaLabelledby:F}_setVisibilityClasses(F){F[this._visibleClass]=this.showPanel,F[this._hiddenClass]=!this.showPanel}}return Ge.\u0275fac=function(F){return new(F||Ge)(f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(E),f.Y36(w.t4))},Ge.\u0275dir=f.lG2({type:Ge,viewQuery:function(F,De){if(1&F&&(f.Gf(f.Rgc,7),f.Gf(x,5)),2&F){let lt;f.iGM(lt=f.CRH())&&(De.template=lt.first),f.iGM(lt=f.CRH())&&(De.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:[f.qOj]}),Ge})(),n=(()=>{class Ge extends v{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ge.\u0275fac=function(){let ve;return function(De){return(ve||(ve=f.n5z(Ge)))(De||Ge)}}(),Ge.\u0275cmp=f.Xpm({type:Ge,selectors:[["mat-autocomplete"]],contentQueries:function(F,De,lt){if(1&F&&(f.Suo(lt,M.K7,5),f.Suo(lt,M.ey,5)),2&F){let Ie;f.iGM(Ie=f.CRH())&&(De.optionGroups=Ie),f.iGM(Ie=f.CRH())&&(De.options=Ie)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[f._Bn([{provide:M.HF,useExisting:Ge}]),f.qOj],ngContentSelectors:r,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(F,De){1&F&&(f.F$t(),f.YNc(0,i,3,4,"ng-template"))},directives:[D.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}),Ge})();const C=new f.OlP("mat-autocomplete-scroll-strategy"),N={provide:C,deps:[L.aV],useFactory:function B(Ge){return()=>Ge.scrollStrategies.reposition()}},z={provide:Z.JU,useExisting:(0,f.Gpc)(()=>be),multi:!0};let ge=(()=>{class Ge{constructor(F,De,lt,Ie,Ae,se,Te,ye,W,$,ue){this._element=F,this._overlay=De,this._viewContainerRef=lt,this._zone=Ie,this._changeDetectorRef=Ae,this._dir=Te,this._formField=ye,this._document=W,this._viewportRuler=$,this._defaults=ue,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new b.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 Ce=this.autocomplete?this.autocomplete.options:null;return Ce?Ce.changes.pipe((0,ne.O)(Ce),(0,X.w)(()=>(0,P.T)(...Ce.map(Le=>Le.onSelectionChange)))):this._zone.onStable.pipe((0,de.q)(1),(0,X.w)(()=>this.optionSelections))}),this._scrollStrategy=se}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(F){this._autocompleteDisabled=(0,e.Ig)(F)}ngAfterViewInit(){const F=this._getWindow();void 0!==F&&this._zone.runOutsideAngular(()=>F.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(F){F.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const F=this._getWindow();void 0!==F&&F.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,ee.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ee.h)(()=>this._overlayAttached)):(0,h.of)()).pipe((0,te.U)(F=>F instanceof M.rN?F:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,P.T)((0,A.R)(this._document,"click"),(0,A.R)(this._document,"auxclick"),(0,A.R)(this._document,"touchend")).pipe((0,ee.h)(F=>{const De=(0,w.sA)(F),lt=this._formField?this._formField._elementRef.nativeElement:null,Ie=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&De!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!lt||!lt.contains(De))&&(!Ie||!Ie.contains(De))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(De)}))}writeValue(F){Promise.resolve().then(()=>this._setTriggerValue(F))}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this._element.nativeElement.disabled=F}_handleKeydown(F){const De=F.keyCode,lt=(0,S.Vb)(F);if(De===S.hY&&!lt&&F.preventDefault(),this.activeOption&&De===S.K5&&this.panelOpen&&!lt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),F.preventDefault();else if(this.autocomplete){const Ie=this.autocomplete._keyManager.activeItem,Ae=De===S.LH||De===S.JH;De===S.Mf||Ae&&!lt&&this.panelOpen?this.autocomplete._keyManager.onKeydown(F):Ae&&this._canOpen()&&this.openPanel(),(Ae||this.autocomplete._keyManager.activeItem!==Ie)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(F){let De=F.target,lt=De.value;"number"===De.type&&(lt=""==lt?null:parseFloat(lt)),this._previousValue!==lt&&(this._previousValue=lt,this._onChange(lt),this._canOpen()&&this._document.activeElement===F.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(F=!1){this._formField&&"auto"===this._formField.floatLabel&&(F?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const F=this._zone.onStable.pipe((0,de.q)(1)),De=this.autocomplete.options.changes.pipe((0,ce.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,J.g)(0));return(0,P.T)(F,De).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(F){const De=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(F):F,lt=null!=De?De:"";this._formField?this._formField._control.value=lt:this._element.nativeElement.value=lt,this._previousValue=lt}_setValueAndClose(F){const De=F&&F.source;De&&(this._clearPreviousSelectedOption(De),this._setTriggerValue(De.value),this._onChange(De.value),this.autocomplete._emitSelectEvent(De),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(F){this.autocomplete.options.forEach(De=>{De!==F&&De.selected&&De.deselect()})}_attachOverlay(){var F;let De=this._overlayRef;De?(this._positionStrategy.setOrigin(this._getConnectedElement()),De.updateSize({width:this._getPanelWidth()})):(this._portal=new U.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(F=this._formField)||void 0===F?void 0:F.getLabelId()}),De=this._overlay.create(this._getOverlayConfig()),this._overlayRef=De,De.keydownEvents().subscribe(Ie=>{(Ie.keyCode===S.hY&&!(0,S.Vb)(Ie)||Ie.keyCode===S.LH&&(0,S.Vb)(Ie,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Ie.stopPropagation(),Ie.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&De&&De.updateSize({width:this._getPanelWidth()})})),De&&!De.hasAttached()&&(De.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 F;return new L.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(F=this._defaults)||void 0===F?void 0:F.overlayPanelClass})}_getOverlayPosition(){const F=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(F),this._positionStrategy=F,F}_setStrategyPositions(F){const De=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],lt=this._aboveClass,Ie=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:lt},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:lt}];let Ae;Ae="above"===this.position?Ie:"below"===this.position?De:[...De,...Ie],F.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 F=this.autocomplete;F.autoActiveFirstOption?F._keyManager.setFirstItemActive():F._keyManager.setActiveItem(-1)}_canOpen(){const F=this._element.nativeElement;return!F.readOnly&&!F.disabled&&!this._autocompleteDisabled}_getWindow(){var F;return(null===(F=this._document)||void 0===F?void 0:F.defaultView)||window}_scrollToOption(F){const De=this.autocomplete,lt=(0,M.CB)(F,De.options,De.optionGroups);if(0===F&&1===lt)De._setScrollTop(0);else if(De.panel){const Ie=De.options.toArray()[F];if(Ie){const Ae=Ie._getHostElement(),se=(0,M.jH)(Ae.offsetTop,Ae.offsetHeight,De._getScrollTop(),De.panel.nativeElement.offsetHeight);De._setScrollTop(se)}}}}return Ge.\u0275fac=function(F){return new(F||Ge)(f.Y36(f.SBq),f.Y36(L.aV),f.Y36(f.s_b),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(C),f.Y36(me.Is,8),f.Y36(j.G_,9),f.Y36(D.K0,8),f.Y36(k.rL),f.Y36(E,8))},Ge.\u0275dir=f.lG2({type:Ge,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[f.TTD]}),Ge})(),be=(()=>{class Ge extends ge{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ge.\u0275fac=function(){let ve;return function(De){return(ve||(ve=f.n5z(Ge)))(De||Ge)}}(),Ge.\u0275dir=f.lG2({type:Ge,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(F,De){1&F&&f.NdJ("focusin",function(){return De._handleFocus()})("blur",function(){return De._onTouched()})("input",function(Ie){return De._handleInput(Ie)})("keydown",function(Ie){return De._handleKeydown(Ie)})("click",function(){return De._handleClick()}),2&F&&f.uIk("autocomplete",De.autocompleteAttribute)("role",De.autocompleteDisabled?null:"combobox")("aria-autocomplete",De.autocompleteDisabled?null:"list")("aria-activedescendant",De.panelOpen&&De.activeOption?De.activeOption.id:null)("aria-expanded",De.autocompleteDisabled?null:De.panelOpen.toString())("aria-owns",De.autocompleteDisabled||!De.panelOpen||null==De.autocomplete?null:De.autocomplete.id)("aria-haspopup",De.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[f._Bn([z]),f.qOj]}),Ge})(),Q=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275mod=f.oAB({type:Ge}),Ge.\u0275inj=f.cJS({providers:[N],imports:[[L.U8,M.Ng,M.BQ,D.ez],k.ZD,M.Ng,M.BQ]}),Ge})()},7544:(Fe,Y,p)=>{"use strict";p.d(Y,{g:()=>A,k:()=>h});var t=p(5e3),e=p(508),f=p(5664),M=p(3191),a=p(6360);let b=0;const d=(0,e.Id)(class{}),P="mat-badge-content";let h=(()=>{class w extends d{constructor(L,k,S,U,Z){super(),this._ngZone=L,this._elementRef=k,this._ariaDescriber=S,this._renderer=U,this._animationMode=Z,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=b++,this._isInitialized=!1}get color(){return this._color}set color(L){this._setColor(L),this._color=L}get overlap(){return this._overlap}set overlap(L){this._overlap=(0,M.Ig)(L)}get content(){return this._content}set content(L){this._updateRenderedContent(L)}get description(){return this._description}set description(L){this._updateHostAriaDescription(L)}get hidden(){return this._hidden}set hidden(L){this._hidden=(0,M.Ig)(L)}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 L=this._renderer.createElement("span"),k="mat-badge-active";return L.setAttribute("id",`mat-badge-content-${this._id}`),L.setAttribute("aria-hidden","true"),L.classList.add(P),"NoopAnimations"===this._animationMode&&L.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(L),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{L.classList.add(k)})}):L.classList.add(k),L}_updateRenderedContent(L){const k=`${null!=L?L:""}`.trim();this._isInitialized&&k&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=k),this._content=k}_updateHostAriaDescription(L){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),L&&this._ariaDescriber.describe(this._elementRef.nativeElement,L),this._description=L}_setColor(L){const k=this._elementRef.nativeElement.classList;k.remove(`mat-badge-${this._color}`),L&&k.add(`mat-badge-${L}`)}_clearExistingBadges(){const L=this._elementRef.nativeElement.querySelectorAll(`:scope > .${P}`);for(const k of Array.from(L))k!==this._badgeElement&&k.remove()}}return w.\u0275fac=function(L){return new(L||w)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(f.$s),t.Y36(t.Qsj),t.Y36(a.Qb,8))},w.\u0275dir=t.lG2({type:w,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(L,k){2&L&&t.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:[t.qOj]}),w})(),A=(()=>{class w{}return w.\u0275fac=function(L){return new(L||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[f.rt,e.BQ],e.BQ]}),w})()},7423:(Fe,Y,p)=>{"use strict";p.d(Y,{lW:()=>w,ot:()=>L});var t=p(5e3),e=p(508),f=p(6360),M=p(5664);const a=["mat-button",""],b=["*"],h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],A=(0,e.pj)((0,e.Id)((0,e.Kr)(class{constructor(k){this._elementRef=k}})));let w=(()=>{class k extends A{constructor(U,Z,j){super(U),this._focusMonitor=Z,this._animationMode=j,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ne of h)this._hasHostAttributes(ne)&&this._getHostElement().classList.add(ne);U.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(U,Z){U?this._focusMonitor.focusVia(this._getHostElement(),U,Z):this._getHostElement().focus(Z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...U){return U.some(Z=>this._getHostElement().hasAttribute(Z))}}return k.\u0275fac=function(U){return new(U||k)(t.Y36(t.SBq),t.Y36(M.tE),t.Y36(f.Qb,8))},k.\u0275cmp=t.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(U,Z){if(1&U&&t.Gf(e.wG,5),2&U){let j;t.iGM(j=t.CRH())&&(Z.ripple=j.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(U,Z){2&U&&(t.uIk("disabled",Z.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:a,ngContentSelectors:b,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(U,Z){1&U&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&U&&(t.xp6(2),t.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),t.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[e.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})(),L=(()=>{class k{}return k.\u0275fac=function(U){return new(U||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),k})()},9224:(Fe,Y,p)=>{"use strict";p.d(Y,{$j:()=>D,QW:()=>ce,a8:()=>de,dk:()=>ee,dn:()=>A,n5:()=>w});var t=p(5e3),e=p(6360),f=p(508);const M=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],b=[[["","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 A=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275dir=t.lG2({type:J,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),J})(),w=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275dir=t.lG2({type:J,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),J})(),D=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275dir=t.lG2({type:J,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),J})(),de=(()=>{class J{constructor(x){this._animationMode=x}}return J.\u0275fac=function(x){return new(x||J)(t.Y36(e.Qb,8))},J.\u0275cmp=t.Xpm({type:J,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(x,i){2&x&&t.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(x,i){1&x&&(t.F$t(M),t.Hsn(0),t.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})(),ee=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275cmp=t.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,i){1&x&&(t.F$t(b),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),J})(),ce=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275mod=t.oAB({type:J}),J.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),J})()},7446:(Fe,Y,p)=>{"use strict";p.d(Y,{oG:()=>j,p9:()=>ee});var t=p(3191),e=p(5e3),f=p(3075),M=p(508),a=p(6360),b=p(5664),d=p(7144);const P=["input"],h=function(te){return{enterDuration:te}},A=["*"],w=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:D});function D(){return{color:"accent",clickAction:"check-indeterminate"}}let L=0;const k=D(),S={provide:f.JU,useExisting:(0,e.Gpc)(()=>j),multi:!0};class U{}const Z=(0,M.sb)((0,M.pj)((0,M.Kr)((0,M.Id)(class{constructor(te){this._elementRef=te}}))));let j=(()=>{class te extends Z{constructor(J,me,x,i,r,u,c){super(J),this._changeDetectorRef=me,this._focusMonitor=x,this._ngZone=i,this._animationMode=u,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++L,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.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,t.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,t.Ig)(J);me!=this.checked&&(this._checked=me,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(J){const me=(0,t.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,t.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 i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{x.classList.remove(i)},1e3)})}}_emitChangeEvent(){const J=new U;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 te.\u0275fac=function(J){return new(J||te)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(b.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(a.Qb,8),e.Y36(w,8))},te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-checkbox"]],viewQuery:function(J,me){if(1&J&&(e.Gf(P,5),e.Gf(M.wG,5)),2&J){let x;e.iGM(x=e.CRH())&&(me._inputElement=x.first),e.iGM(x=e.CRH())&&(me.ripple=x.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(J,me){2&J&&(e.Ikx("id",me.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.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:[e._Bn([S]),e.qOj],ngContentSelectors:A,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&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.NdJ("change",function(i){return me._onInteractionEvent(i)})("click",function(i){return me._onInputClick(i)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e._UZ(7,"span",7),e.TgZ(8,"span",8),e.O4$(),e.TgZ(9,"svg",9),e._UZ(10,"path",10),e.qZA(),e.kcU(),e._UZ(11,"span",11),e.qZA()(),e.TgZ(12,"span",12,13),e.NdJ("cdkObserveContent",function(){return me._onLabelTextChange()}),e.TgZ(14,"span",14),e._uU(15,"\xa0"),e.qZA(),e.Hsn(16),e.qZA()()),2&J){const x=e.MAs(1),i=e.MAs(13);e.uIk("for",me.inputId),e.xp6(2),e.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(1),e.Q6J("id",me.inputId)("required",me.required)("checked",me.checked)("disabled",me.disabled)("tabIndex",me.tabIndex),e.uIk("value",me.value)("name",me.name)("aria-label",me.ariaLabel||null)("aria-labelledby",me.ariaLabelledby)("aria-checked",me._getAriaChecked())("aria-describedby",me.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",x)("matRippleDisabled",me._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.VKq(19,h,"NoopAnimations"===me._animationMode?0:150))}},directives:[M.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}),te})(),de=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({}),te})(),ee=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({imports:[[M.si,M.BQ,d.Q8,de],M.BQ,de]}),te})()},508:(Fe,Y,p)=>{"use strict";p.d(Y,{yN:()=>ne,mZ:()=>X,_A:()=>v,rD:()=>Re,sG:()=>n,K7:()=>Gt,HF:()=>ut,Y2:()=>$,BQ:()=>te,X2:()=>we,uc:()=>ve,XK:()=>ge,ey:()=>et,Ng:()=>jt,rN:()=>Nt,nP:()=>Le,us:()=>ct,wG:()=>ue,si:()=>Ce,LF:()=>N,IR:()=>Te,CB:()=>vt,jH:()=>$t,pj:()=>i,Kr:()=>r,Id:()=>x,FD:()=>c,dB:()=>_,sb:()=>u,E0:()=>Q});var t=p(5e3),e=p(226),M=p(9808),a=p(925),b=p(5664),d=p(3191),P=p(7579),h=p(8306),A=p(8675),w=p(6360),D=p(1159);function S(Pe,Oe){if(1&Pe&&t._UZ(0,"mat-pseudo-checkbox",4),2&Pe){const le=t.oxw();t.Q6J("state",le.selected?"checked":"unchecked")("disabled",le.disabled)}}function U(Pe,Oe){if(1&Pe&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&Pe){const le=t.oxw();t.xp6(1),t.hij("(",le.group.label,")")}}const Z=["*"];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})(),X=(()=>{class Pe{}return Pe.COMPLEX="375ms",Pe.ENTERING="225ms",Pe.EXITING="195ms",Pe})();const ee=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function de(){return!0}});let te=(()=>{class Pe{constructor(le,xe,ht){this._sanityChecks=xe,this._document=ht,this._hasDoneGlobalChecks=!1,le._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(le){return!(0,a.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[le])}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.LFG(b.qm),t.LFG(ee,8),t.LFG(M.K0))},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[e.vT],e.vT]}),Pe})();function x(Pe){return class extends Pe{constructor(...Oe){super(...Oe),this._disabled=!1}get disabled(){return this._disabled}set disabled(Oe){this._disabled=(0,d.Ig)(Oe)}}}function i(Pe,Oe){return class extends Pe{constructor(...le){super(...le),this.defaultColor=Oe,this.color=Oe}get color(){return this._color}set color(le){const xe=le||this.defaultColor;xe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),xe&&this._elementRef.nativeElement.classList.add(`mat-${xe}`),this._color=xe)}}}function r(Pe){return class extends Pe{constructor(...Oe){super(...Oe),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Oe){this._disableRipple=(0,d.Ig)(Oe)}}}function u(Pe,Oe=0){return class extends Pe{constructor(...le){super(...le),this._tabIndex=Oe,this.defaultTabIndex=Oe}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(le){this._tabIndex=null!=le?(0,d.su)(le):this.defaultTabIndex}}}function c(Pe){return class extends Pe{constructor(...Oe){super(...Oe),this.stateChanges=new P.x,this.errorState=!1}updateErrorState(){const Oe=this.errorState,ft=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ft!==Oe&&(this.errorState=ft,this.stateChanges.next())}}}function _(Pe){return class extends Pe{constructor(...Oe){super(...Oe),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(le=>{this._isInitialized?this._notifySubscriber(le):this._pendingSubscribers.push(le)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Oe){Oe.next(),Oe.complete()}}}const E=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function I(){return(0,t.f3M)(t.soG)}});class v{constructor(){this._localeChanges=new P.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Oe){return this.isDateInstance(Oe)&&this.isValid(Oe)?Oe:null}deserialize(Oe){return null==Oe||this.isDateInstance(Oe)&&this.isValid(Oe)?Oe:this.invalid()}setLocale(Oe){this.locale=Oe,this._localeChanges.next()}compareDate(Oe,le){return this.getYear(Oe)-this.getYear(le)||this.getMonth(Oe)-this.getMonth(le)||this.getDate(Oe)-this.getDate(le)}sameDate(Oe,le){if(Oe&&le){let xe=this.isValid(Oe),ht=this.isValid(le);return xe&&ht?!this.compareDate(Oe,le):xe==ht}return Oe==le}clampDate(Oe,le,xe){return le&&this.compareDate(Oe,le)<0?le:xe&&this.compareDate(Oe,xe)>0?xe:Oe}}const n=new t.OlP("mat-date-formats"),C=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function B(Pe,Oe){const le=Array(Pe);for(let xe=0;xe{class Pe extends v{constructor(le,xe){super(),this.useUtcForDisplay=!1,super.setLocale(le)}getYear(le){return le.getFullYear()}getMonth(le){return le.getMonth()}getDate(le){return le.getDate()}getDayOfWeek(le){return le.getDay()}getMonthNames(le){const xe=new Intl.DateTimeFormat(this.locale,{month:le,timeZone:"utc"});return B(12,ht=>this._format(xe,new Date(2017,ht,1)))}getDateNames(){const le=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return B(31,xe=>this._format(le,new Date(2017,0,xe+1)))}getDayOfWeekNames(le){const xe=new Intl.DateTimeFormat(this.locale,{weekday:le,timeZone:"utc"});return B(7,ht=>this._format(xe,new Date(2017,0,ht+1)))}getYearName(le){const xe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(xe,le)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(le){return this.getDate(this._createDateWithOverflow(this.getYear(le),this.getMonth(le)+1,0))}clone(le){return new Date(le.getTime())}createDate(le,xe,ht){let ft=this._createDateWithOverflow(le,xe,ht);return ft.getMonth(),ft}today(){return new Date}parse(le){return"number"==typeof le?new Date(le):le?new Date(Date.parse(le)):null}format(le,xe){if(!this.isValid(le))throw Error("NativeDateAdapter: Cannot format invalid date.");const ht=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},xe),{timeZone:"utc"}));return this._format(ht,le)}addCalendarYears(le,xe){return this.addCalendarMonths(le,12*xe)}addCalendarMonths(le,xe){let ht=this._createDateWithOverflow(this.getYear(le),this.getMonth(le)+xe,this.getDate(le));return this.getMonth(ht)!=((this.getMonth(le)+xe)%12+12)%12&&(ht=this._createDateWithOverflow(this.getYear(ht),this.getMonth(ht),0)),ht}addCalendarDays(le,xe){return this._createDateWithOverflow(this.getYear(le),this.getMonth(le),this.getDate(le)+xe)}toIso8601(le){return[le.getUTCFullYear(),this._2digit(le.getUTCMonth()+1),this._2digit(le.getUTCDate())].join("-")}deserialize(le){if("string"==typeof le){if(!le)return null;if(C.test(le)){let xe=new Date(le);if(this.isValid(xe))return xe}}return super.deserialize(le)}isDateInstance(le){return le instanceof Date}isValid(le){return!isNaN(le.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(le,xe,ht){const ft=new Date;return ft.setFullYear(le,xe,ht),ft.setHours(0,0,0,0),ft}_2digit(le){return("00"+le).slice(-2)}_format(le,xe){const ht=new Date;return ht.setUTCFullYear(xe.getFullYear(),xe.getMonth(),xe.getDate()),ht.setUTCHours(xe.getHours(),xe.getMinutes(),xe.getSeconds(),xe.getMilliseconds()),le.format(ht)}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.LFG(E,8),t.LFG(a.t4))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const z={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 oe=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:[{provide:v,useClass:N}]}),Pe})(),ge=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:[{provide:n,useValue:z}],imports:[[oe]]}),Pe})(),Re=(()=>{class Pe{isErrorState(le,xe){return!!(le&&le.invalid&&(le.touched||xe&&xe.submitted))}}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),we=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275dir=t.lG2({type:Pe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Pe})();function Q(Pe,Oe,le="mat"){Pe.changes.pipe((0,A.O)(Pe)).subscribe(({length:xe})=>{Ge(Oe,`${le}-2-line`,!1),Ge(Oe,`${le}-3-line`,!1),Ge(Oe,`${le}-multi-line`,!1),2===xe||3===xe?Ge(Oe,`${le}-${xe}-line`,!0):xe>3&&Ge(Oe,`${le}-multi-line`,!0)})}function Ge(Pe,Oe,le){Pe.nativeElement.classList.toggle(Oe,le)}let ve=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[te],te]}),Pe})();class F{constructor(Oe,le,xe){this._renderer=Oe,this.element=le,this.config=xe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const De={enterDuration:225,exitDuration:150},Ie=(0,a.i$)({passive:!0}),Ae=["mousedown","touchstart"],se=["mouseup","mouseleave","touchend","touchcancel"];class Te{constructor(Oe,le,xe,ht){this._target=Oe,this._ngZone=le,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ht.isBrowser&&(this._containerElement=(0,d.fI)(xe))}fadeInRipple(Oe,le,xe={}){const ht=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ft=Object.assign(Object.assign({},De),xe.animation);xe.centered&&(Oe=ht.left+ht.width/2,le=ht.top+ht.height/2);const Ht=xe.radius||function W(Pe,Oe,le){const xe=Math.max(Math.abs(Pe-le.left),Math.abs(Pe-le.right)),ht=Math.max(Math.abs(Oe-le.top),Math.abs(Oe-le.bottom));return Math.sqrt(xe*xe+ht*ht)}(Oe,le,ht),it=Oe-ht.left,Ne=le-ht.top,tt=ft.enterDuration,Je=document.createElement("div");Je.classList.add("mat-ripple-element"),Je.style.left=it-Ht+"px",Je.style.top=Ne-Ht+"px",Je.style.height=2*Ht+"px",Je.style.width=2*Ht+"px",null!=xe.color&&(Je.style.backgroundColor=xe.color),Je.style.transitionDuration=`${tt}ms`,this._containerElement.appendChild(Je),function ye(Pe){window.getComputedStyle(Pe).getPropertyValue("opacity")}(Je),Je.style.transform="scale(1)";const Se=new F(this,Je,xe);return Se.state=0,this._activeRipples.add(Se),xe.persistent||(this._mostRecentTransientRipple=Se),this._runTimeoutOutsideZone(()=>{const Ue=Se===this._mostRecentTransientRipple;Se.state=1,!xe.persistent&&(!Ue||!this._isPointerDown)&&Se.fadeOut()},tt),Se}fadeOutRipple(Oe){const le=this._activeRipples.delete(Oe);if(Oe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!le)return;const xe=Oe.element,ht=Object.assign(Object.assign({},De),Oe.config.animation);xe.style.transitionDuration=`${ht.exitDuration}ms`,xe.style.opacity="0",Oe.state=2,this._runTimeoutOutsideZone(()=>{Oe.state=3,xe.remove()},ht.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Oe=>Oe.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Oe=>{Oe.config.persistent||Oe.fadeOut()})}setupTriggerEvents(Oe){const le=(0,d.fI)(Oe);!le||le===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=le,this._registerEvents(Ae))}handleEvent(Oe){"mousedown"===Oe.type?this._onMousedown(Oe):"touchstart"===Oe.type?this._onTouchStart(Oe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(se),this._pointerUpEventsRegistered=!0)}_onMousedown(Oe){const le=(0,b.X6)(Oe),xe=this._lastTouchStartEvent&&Date.now(){!Oe.config.persistent&&(1===Oe.state||Oe.config.terminateOnPointerUp&&0===Oe.state)&&Oe.fadeOut()}))}_runTimeoutOutsideZone(Oe,le=0){this._ngZone.runOutsideAngular(()=>setTimeout(Oe,le))}_registerEvents(Oe){this._ngZone.runOutsideAngular(()=>{Oe.forEach(le=>{this._triggerElement.addEventListener(le,this,Ie)})})}_removeTriggerEvents(){this._triggerElement&&(Ae.forEach(Oe=>{this._triggerElement.removeEventListener(Oe,this,Ie)}),this._pointerUpEventsRegistered&&se.forEach(Oe=>{this._triggerElement.removeEventListener(Oe,this,Ie)}))}}const $=new t.OlP("mat-ripple-global-options");let ue=(()=>{class Pe{constructor(le,xe,ht,ft,Ht){this._elementRef=le,this._animationMode=Ht,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ft||{},this._rippleRenderer=new Te(this,xe,le,ht)}get disabled(){return this._disabled}set disabled(le){le&&this.fadeOutAllNonPersistent(),this._disabled=le,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(le){this._trigger=le,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(le,xe=0,ht){return"number"==typeof le?this._rippleRenderer.fadeInRipple(le,xe,Object.assign(Object.assign({},this.rippleConfig),ht)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),le))}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.t4),t.Y36($,8),t.Y36(w.Qb,8))},Pe.\u0275dir=t.lG2({type:Pe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(le,xe){2&le&&t.ekj("mat-ripple-unbounded",xe.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})(),Ce=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[te],te]}),Pe})(),Le=(()=>{class Pe{constructor(le){this._animationMode=le,this.state="unchecked",this.disabled=!1}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.Y36(w.Qb,8))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(le,xe){2&le&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===xe.state)("mat-pseudo-checkbox-checked","checked"===xe.state)("mat-pseudo-checkbox-disabled",xe.disabled)("_mat-animation-noopable","NoopAnimations"===xe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(le,xe){},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})(),ct=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[te]]}),Pe})();const ut=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),Gt=new t.OlP("MatOptgroup");let xt=0;class Nt{constructor(Oe,le=!1){this.source=Oe,this.isUserInput=le}}let gt=(()=>{class Pe{constructor(le,xe,ht,ft){this._element=le,this._changeDetectorRef=xe,this._parent=ht,this.group=ft,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+xt++,this.onSelectionChange=new t.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(le){this._disabled=(0,d.Ig)(le)}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(le,xe){const ht=this._getHostElement();"function"==typeof ht.focus&&ht.focus(xe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(le){(le.keyCode===D.K5||le.keyCode===D.L_)&&!(0,D.Vb)(le)&&(this._selectViaInteraction(),le.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 le=this.viewValue;le!==this._mostRecentViewValue&&(this._mostRecentViewValue=le,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(le=!1){this.onSelectionChange.emit(new Nt(this,le))}}return Pe.\u0275fac=function(le){t.$Z()},Pe.\u0275dir=t.lG2({type:Pe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Pe})(),et=(()=>{class Pe extends gt{constructor(le,xe,ht,ft){super(le,xe,ht,ft)}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ut,8),t.Y36(Gt,8))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(le,xe){1&le&&t.NdJ("click",function(){return xe._selectViaInteraction()})("keydown",function(ft){return xe._handleKeydown(ft)}),2&le&&(t.Ikx("id",xe.id),t.uIk("tabindex",xe._getTabIndex())("aria-selected",xe._getAriaSelected())("aria-disabled",xe.disabled.toString()),t.ekj("mat-selected",xe.selected)("mat-option-multiple",xe.multiple)("mat-active",xe.active)("mat-option-disabled",xe.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:Z,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(le,xe){1&le&&(t.F$t(),t.YNc(0,S,1,2,"mat-pseudo-checkbox",0),t.TgZ(1,"span",1),t.Hsn(2),t.qZA(),t.YNc(3,U,2,1,"span",2),t._UZ(4,"div",3)),2&le&&(t.Q6J("ngIf",xe.multiple),t.xp6(3),t.Q6J("ngIf",xe.group&&xe.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",xe._getHostElement())("matRippleDisabled",xe.disabled||xe.disableRipple))},directives:[Le,M.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 vt(Pe,Oe,le){if(le.length){let xe=Oe.toArray(),ht=le.toArray(),ft=0;for(let Ht=0;Htle+xe?Math.max(0,Pe-xe+Oe):le}let jt=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[Ce,M.ez,te,ct]]}),Pe})()},6856:(Fe,Y,p)=>{"use strict";p.d(Y,{FA:()=>fe,Mq:()=>Ne,hl:()=>at,nW:()=>gi});var t=p(5664),e=p(9776),f=p(7429),M=p(9808),a=p(5e3),b=p(7423),d=p(5303),P=p(508),h=p(7579),A=p(727),w=p(6451),D=p(9646),L=p(1159),k=p(5698),S=p(8675),U=p(9300),Z=p(226),j=p(3191),ne=p(925),X=p(1777),de=p(3075),ee=p(7322),te=p(7531);const ce=["mat-calendar-body",""];function J(je,Ct){if(1&je&&(a.TgZ(0,"tr",2)(1,"td",3),a._uU(2),a.qZA()()),2&je){const ie=a.oxw();a.xp6(1),a.Udp("padding-top",ie._cellPadding)("padding-bottom",ie._cellPadding),a.uIk("colspan",ie.numCols),a.xp6(1),a.hij(" ",ie.label," ")}}function me(je,Ct){if(1&je&&(a.TgZ(0,"td",3),a._uU(1),a.qZA()),2&je){const ie=a.oxw(2);a.Udp("padding-top",ie._cellPadding)("padding-bottom",ie._cellPadding),a.uIk("colspan",ie._firstRowOffset),a.xp6(1),a.hij(" ",ie._firstRowOffset>=ie.labelMinRequiredCells?ie.label:""," ")}}function x(je,Ct){if(1&je){const ie=a.EpF();a.TgZ(0,"td",7)(1,"button",8),a.NdJ("click",function(Mt){const Mi=a.CHM(ie).$implicit;return a.oxw(2)._cellClicked(Mi,Mt)}),a.TgZ(2,"div",9),a._uU(3),a.qZA(),a._UZ(4,"div",10),a.qZA()()}if(2&je){const ie=Ct.$implicit,qe=Ct.index,Mt=a.oxw().index,Vt=a.oxw();a.Udp("width",Vt._cellWidth)("padding-top",Vt._cellPadding)("padding-bottom",Vt._cellPadding),a.uIk("data-mat-row",Mt)("data-mat-col",qe),a.xp6(1),a.ekj("mat-calendar-body-disabled",!ie.enabled)("mat-calendar-body-active",Vt._isActiveCell(Mt,qe))("mat-calendar-body-range-start",Vt._isRangeStart(ie.compareValue))("mat-calendar-body-range-end",Vt._isRangeEnd(ie.compareValue))("mat-calendar-body-in-range",Vt._isInRange(ie.compareValue))("mat-calendar-body-comparison-bridge-start",Vt._isComparisonBridgeStart(ie.compareValue,Mt,qe))("mat-calendar-body-comparison-bridge-end",Vt._isComparisonBridgeEnd(ie.compareValue,Mt,qe))("mat-calendar-body-comparison-start",Vt._isComparisonStart(ie.compareValue))("mat-calendar-body-comparison-end",Vt._isComparisonEnd(ie.compareValue))("mat-calendar-body-in-comparison-range",Vt._isInComparisonRange(ie.compareValue))("mat-calendar-body-preview-start",Vt._isPreviewStart(ie.compareValue))("mat-calendar-body-preview-end",Vt._isPreviewEnd(ie.compareValue))("mat-calendar-body-in-preview",Vt._isInPreview(ie.compareValue)),a.Q6J("ngClass",ie.cssClasses)("tabindex",Vt._isActiveCell(Mt,qe)?0:-1),a.uIk("aria-label",ie.ariaLabel)("aria-disabled",!ie.enabled||null)("aria-pressed",Vt._isSelected(ie.compareValue))("aria-current",Vt.todayValue===ie.compareValue?"date":null),a.xp6(1),a.ekj("mat-calendar-body-selected",Vt._isSelected(ie.compareValue))("mat-calendar-body-comparison-identical",Vt._isComparisonIdentical(ie.compareValue))("mat-calendar-body-today",Vt.todayValue===ie.compareValue),a.xp6(1),a.hij(" ",ie.displayValue," ")}}function i(je,Ct){if(1&je&&(a.TgZ(0,"tr",4),a.YNc(1,me,2,6,"td",5),a.YNc(2,x,5,47,"td",6),a.qZA()),2&je){const ie=Ct.$implicit,qe=Ct.index,Mt=a.oxw();a.xp6(1),a.Q6J("ngIf",0===qe&&Mt._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",ie)}}function r(je,Ct){if(1&je&&(a.TgZ(0,"th",5)(1,"span",6),a._uU(2),a.qZA(),a.TgZ(3,"span",7),a._uU(4),a.qZA()()),2&je){const ie=Ct.$implicit;a.xp6(2),a.Oqu(ie.long),a.xp6(2),a.Oqu(ie.narrow)}}const u=["*"];function c(je,Ct){}function _(je,Ct){if(1&je){const ie=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(Mt){return a.CHM(ie),a.oxw().activeDate=Mt})("_userSelection",function(Mt){return a.CHM(ie),a.oxw()._dateSelected(Mt)}),a.qZA()}if(2&je){const ie=a.oxw();a.Q6J("activeDate",ie.activeDate)("selected",ie.selected)("dateFilter",ie.dateFilter)("maxDate",ie.maxDate)("minDate",ie.minDate)("dateClass",ie.dateClass)("comparisonStart",ie.comparisonStart)("comparisonEnd",ie.comparisonEnd)}}function E(je,Ct){if(1&je){const ie=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(Mt){return a.CHM(ie),a.oxw().activeDate=Mt})("monthSelected",function(Mt){return a.CHM(ie),a.oxw()._monthSelectedInYearView(Mt)})("selectedChange",function(Mt){return a.CHM(ie),a.oxw()._goToDateInView(Mt,"month")}),a.qZA()}if(2&je){const ie=a.oxw();a.Q6J("activeDate",ie.activeDate)("selected",ie.selected)("dateFilter",ie.dateFilter)("maxDate",ie.maxDate)("minDate",ie.minDate)("dateClass",ie.dateClass)}}function I(je,Ct){if(1&je){const ie=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(Mt){return a.CHM(ie),a.oxw().activeDate=Mt})("yearSelected",function(Mt){return a.CHM(ie),a.oxw()._yearSelectedInMultiYearView(Mt)})("selectedChange",function(Mt){return a.CHM(ie),a.oxw()._goToDateInView(Mt,"year")}),a.qZA()}if(2&je){const ie=a.oxw();a.Q6J("activeDate",ie.activeDate)("selected",ie.selected)("dateFilter",ie.dateFilter)("maxDate",ie.maxDate)("minDate",ie.minDate)("dateClass",ie.dateClass)}}function v(je,Ct){}const n=["button"];function C(je,Ct){1&je&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const B=[[["","matDatepickerToggleIcon",""]]],N=["[matDatepickerToggleIcon]"];class Re{constructor(Ct,ie,qe,Mt,Vt={},Mi=Ct,Ei){this.value=Ct,this.displayValue=ie,this.ariaLabel=qe,this.enabled=Mt,this.cssClasses=Vt,this.compareValue=Mi,this.rawValue=Ei}}let we=(()=>{class je{constructor(ie,qe){this._elementRef=ie,this._ngZone=qe,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=Mt=>{if(this._skipNextFocus&&"focus"===Mt.type)this._skipNextFocus=!1;else if(Mt.target&&this.isRange){const Vt=this._getCellFromElement(Mt.target);Vt&&this._ngZone.run(()=>this.previewChange.emit({value:Vt.enabled?Vt:null,event:Mt}))}},this._leaveHandler=Mt=>{null!==this.previewEnd&&this.isRange&&Mt.target&&this._getCellFromElement(Mt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Mt}))},qe.runOutsideAngular(()=>{const Mt=ie.nativeElement;Mt.addEventListener("mouseenter",this._enterHandler,!0),Mt.addEventListener("focus",this._enterHandler,!0),Mt.addEventListener("mouseleave",this._leaveHandler,!0),Mt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(ie,qe){ie.enabled&&this.selectedValueChange.emit({value:ie.value,event:qe})}_isSelected(ie){return this.startValue===ie||this.endValue===ie}ngOnChanges(ie){const qe=ie.numCols,{rows:Mt,numCols:Vt}=this;(ie.rows||qe)&&(this._firstRowOffset=Mt&&Mt.length&&Mt[0].length?Vt-Mt[0].length:0),(ie.cellAspectRatio||qe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Vt+"%"),(qe||!this._cellWidth)&&(this._cellWidth=100/Vt+"%")}ngOnDestroy(){const ie=this._elementRef.nativeElement;ie.removeEventListener("mouseenter",this._enterHandler,!0),ie.removeEventListener("focus",this._enterHandler,!0),ie.removeEventListener("mouseleave",this._leaveHandler,!0),ie.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(ie,qe){let Mt=ie*this.numCols+qe;return ie&&(Mt-=this._firstRowOffset),Mt==this.activeCell}_focusActiveCell(ie=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{setTimeout(()=>{const qe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");qe&&(ie||(this._skipNextFocus=!0),qe.focus())})})})}_isRangeStart(ie){return Ge(ie,this.startValue,this.endValue)}_isRangeEnd(ie){return ve(ie,this.startValue,this.endValue)}_isInRange(ie){return F(ie,this.startValue,this.endValue,this.isRange)}_isComparisonStart(ie){return Ge(ie,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(ie,qe,Mt){if(!this._isComparisonStart(ie)||this._isRangeStart(ie)||!this._isInRange(ie))return!1;let Vt=this.rows[qe][Mt-1];if(!Vt){const Mi=this.rows[qe-1];Vt=Mi&&Mi[Mi.length-1]}return Vt&&!this._isRangeEnd(Vt.compareValue)}_isComparisonBridgeEnd(ie,qe,Mt){if(!this._isComparisonEnd(ie)||this._isRangeEnd(ie)||!this._isInRange(ie))return!1;let Vt=this.rows[qe][Mt+1];if(!Vt){const Mi=this.rows[qe+1];Vt=Mi&&Mi[0]}return Vt&&!this._isRangeStart(Vt.compareValue)}_isComparisonEnd(ie){return ve(ie,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(ie){return F(ie,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(ie){return this.comparisonStart===this.comparisonEnd&&ie===this.comparisonStart}_isPreviewStart(ie){return Ge(ie,this.previewStart,this.previewEnd)}_isPreviewEnd(ie){return ve(ie,this.previewStart,this.previewEnd)}_isInPreview(ie){return F(ie,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(ie){let qe;if(Q(ie)?qe=ie:Q(ie.parentNode)&&(qe=ie.parentNode),qe){const Mt=qe.getAttribute("data-mat-row"),Vt=qe.getAttribute("data-mat-col");if(Mt&&Vt)return this.rows[parseInt(Mt)][parseInt(Vt)]}return null}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.SBq),a.Y36(a.R0b))},je.\u0275cmp=a.Xpm({type:je,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:ce,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(ie,qe){1&ie&&(a.YNc(0,J,3,6,"tr",0),a.YNc(1,i,3,2,"tr",1)),2&ie&&(a.Q6J("ngIf",qe._firstRowOffset.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}),je})();function Q(je){return"TD"===je.nodeName}function Ge(je,Ct,ie){return null!==ie&&Ct!==ie&&je=Ct&&je===ie}function F(je,Ct,ie,qe){return qe&&null!==Ct&&null!==ie&&Ct!==ie&&je>=Ct&&je<=ie}class De{constructor(Ct,ie){this.start=Ct,this.end=ie}}let lt=(()=>{class je{constructor(ie,qe){this.selection=ie,this._adapter=qe,this._selectionChanged=new h.x,this.selectionChanged=this._selectionChanged,this.selection=ie}updateSelection(ie,qe){const Mt=this.selection;this.selection=ie,this._selectionChanged.next({selection:ie,source:qe,oldValue:Mt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(ie){return this._adapter.isDateInstance(ie)&&this._adapter.isValid(ie)}}return je.\u0275fac=function(ie){a.$Z()},je.\u0275prov=a.Yz7({token:je,factory:je.\u0275fac}),je})(),Ie=(()=>{class je extends lt{constructor(ie){super(null,ie)}add(ie){super.updateSelection(ie,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const ie=new je(this._adapter);return ie.updateSelection(this.selection,this),ie}}return je.\u0275fac=function(ie){return new(ie||je)(a.LFG(P._A))},je.\u0275prov=a.Yz7({token:je,factory:je.\u0275fac}),je})();const Te={provide:lt,deps:[[new a.FiY,new a.tp0,lt],P._A],useFactory:function se(je,Ct){return je||new Ie(Ct)}},$=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let ut=(()=>{class je{constructor(ie,qe,Mt,Vt,Mi){this._changeDetectorRef=ie,this._dateFormats=qe,this._dateAdapter=Mt,this._dir=Vt,this._rangeStrategy=Mi,this._rerenderSubscription=A.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(ie){const qe=this._activeDate,Mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Mt,this.minDate,this.maxDate),this._hasSameMonthAndYear(qe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof De?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,S.O)(null)).subscribe(()=>this._init())}ngOnChanges(ie){const qe=ie.comparisonStart||ie.comparisonEnd;qe&&!qe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(ie){const qe=ie.value,Mt=this._dateAdapter.getYear(this.activeDate),Vt=this._dateAdapter.getMonth(this.activeDate),Mi=this._dateAdapter.createDate(Mt,Vt,qe);let Ei,en;this._selected instanceof De?(Ei=this._getDateInCurrentMonth(this._selected.start),en=this._getDateInCurrentMonth(this._selected.end)):Ei=en=this._getDateInCurrentMonth(this._selected),(Ei!==qe||en!==qe)&&this.selectedChange.emit(Mi),this._userSelection.emit({value:Mi,event:ie.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(ie){const qe=this._activeDate,Mt=this._isRtl();switch(ie.keyCode){case L.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Mt?1:-1);break;case L.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Mt?-1:1);break;case L.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case L.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case L.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case L.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case L.Ku:this.activeDate=ie.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case L.VM:this.activeDate=ie.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case L.K5:case L.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&ie.preventDefault());case L.hY:return void(null!=this._previewEnd&&!(0,L.Vb)(ie)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:ie}),ie.preventDefault(),ie.stopPropagation()));default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ie.preventDefault()}_handleCalendarBodyKeyup(ie){(ie.keyCode===L.L_||ie.keyCode===L.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:ie}),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 ie=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(ie)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(ie){this._matCalendarBody._focusActiveCell(ie)}_previewChanged({event:ie,value:qe}){if(this._rangeStrategy){const Vt=this._rangeStrategy.createPreview(qe?qe.rawValue:null,this.selected,ie);this._previewStart=this._getCellCompareValue(Vt.start),this._previewEnd=this._getCellCompareValue(Vt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const ie=this._dateAdapter.getFirstDayOfWeek(),qe=this._dateAdapter.getDayOfWeekNames("narrow");let Vt=this._dateAdapter.getDayOfWeekNames("long").map((Mi,Ei)=>({long:Mi,narrow:qe[Ei]}));this._weekdays=Vt.slice(ie).concat(Vt.slice(0,ie))}_createWeekCells(){const ie=this._dateAdapter.getNumDaysInMonth(this.activeDate),qe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Mt=0,Vt=this._firstWeekOffset;Mt=0)&&(!this.maxDate||this._dateAdapter.compareDate(ie,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(ie))}_getDateInCurrentMonth(ie){return ie&&this._hasSameMonthAndYear(ie,this.activeDate)?this._dateAdapter.getDate(ie):null}_hasSameMonthAndYear(ie,qe){return!(!ie||!qe||this._dateAdapter.getMonth(ie)!=this._dateAdapter.getMonth(qe)||this._dateAdapter.getYear(ie)!=this._dateAdapter.getYear(qe))}_getCellCompareValue(ie){if(ie){const qe=this._dateAdapter.getYear(ie),Mt=this._dateAdapter.getMonth(ie),Vt=this._dateAdapter.getDate(ie);return new Date(qe,Mt,Vt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(ie){ie instanceof De?(this._rangeStart=this._getCellCompareValue(ie.start),this._rangeEnd=this._getCellCompareValue(ie.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(ie),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(ie){return!this.dateFilter||this.dateFilter(ie)}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.sBO),a.Y36(P.sG,8),a.Y36(P._A,8),a.Y36(Z.Is,8),a.Y36($,8))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-month-view"]],viewQuery:function(ie,qe){if(1&ie&&a.Gf(we,5),2&ie){let Mt;a.iGM(Mt=a.CRH())&&(qe._matCalendarBody=Mt.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(ie,qe){1&ie&&(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 qe._dateSelected(Vt)})("previewChange",function(Vt){return qe._previewChanged(Vt)})("keyup",function(Vt){return qe._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return qe._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&ie&&(a.xp6(3),a.Q6J("ngForOf",qe._weekdays),a.xp6(3),a.Q6J("label",qe._monthLabel)("rows",qe._weeks)("todayValue",qe._todayDate)("startValue",qe._rangeStart)("endValue",qe._rangeEnd)("comparisonStart",qe._comparisonRangeStart)("comparisonEnd",qe._comparisonRangeEnd)("previewStart",qe._previewStart)("previewEnd",qe._previewEnd)("isRange",qe._isRange)("labelMinRequiredCells",3)("activeCell",qe._dateAdapter.getDate(qe.activeDate)-1))},directives:[we,M.sg],encapsulation:2,changeDetection:0}),je})(),Yt=(()=>{class je{constructor(ie,qe,Mt){this._changeDetectorRef=ie,this._dateAdapter=qe,this._dir=Mt,this._rerenderSubscription=A.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(ie){let qe=this._activeDate;const Mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Mt,this.minDate,this.maxDate),Gt(this._dateAdapter,qe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof De?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie)),this._setSelectedYear(ie)}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,S.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const qe=this._dateAdapter.getYear(this._activeDate)-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Mt=0,Vt=[];Mt<24;Mt++)Vt.push(qe+Mt),4==Vt.length&&(this._years.push(Vt.map(Mi=>this._createCellForYear(Mi))),Vt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(ie){const qe=ie.value;this.yearSelected.emit(this._dateAdapter.createDate(qe,0,1));let Mt=this._dateAdapter.getMonth(this.activeDate),Vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(qe,Mt,1));this.selectedChange.emit(this._dateAdapter.createDate(qe,Mt,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(ie){const qe=this._activeDate,Mt=this._isRtl();switch(ie.keyCode){case L.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Mt?1:-1);break;case L.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Mt?-1:1);break;case L.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case L.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case L.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case L.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case L.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?-240:-24);break;case L.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?240:24);break;case L.K5:case L.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ie.preventDefault()}_handleCalendarBodyKeyup(ie){(ie.keyCode===L.L_||ie.keyCode===L.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:ie}),this._selectionKeyPressed=!1)}_getActiveCell(){return ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(ie){const qe=this._dateAdapter.createDate(ie,0,1),Mt=this._dateAdapter.getYearName(qe),Vt=this.dateClass?this.dateClass(qe,"multi-year"):void 0;return new Re(ie,Mt,Mt,this._shouldEnableYear(ie),Vt)}_shouldEnableYear(ie){if(null==ie||this.maxDate&&ie>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ie{class je{constructor(ie,qe,Mt,Vt){this._changeDetectorRef=ie,this._dateFormats=qe,this._dateAdapter=Mt,this._dir=Vt,this._rerenderSubscription=A.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(ie){let qe=this._activeDate;const Mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Mt,this.minDate,this.maxDate),this._dateAdapter.getYear(qe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof De?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie)),this._setSelectedMonth(ie)}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,S.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(ie){const qe=ie.value,Mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),qe,1);this.monthSelected.emit(Mt);const Vt=this._dateAdapter.getNumDaysInMonth(Mt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),qe,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(ie){const qe=this._activeDate,Mt=this._isRtl();switch(ie.keyCode){case L.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Mt?1:-1);break;case L.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Mt?-1:1);break;case L.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case L.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case L.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case L.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case L.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?-10:-1);break;case L.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?10:1);break;case L.K5:case L.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ie.preventDefault()}_handleCalendarBodyKeyup(ie){(ie.keyCode===L.L_||ie.keyCode===L.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:ie}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let ie=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(qe=>qe.map(Mt=>this._createCellForMonth(Mt,ie[Mt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(ie){return ie&&this._dateAdapter.getYear(ie)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(ie):null}_createCellForMonth(ie,qe){const Mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ie,1),Vt=this._dateAdapter.format(Mt,this._dateFormats.display.monthYearA11yLabel),Mi=this.dateClass?this.dateClass(Mt,"year"):void 0;return new Re(ie,qe.toLocaleUpperCase(),Vt,this._shouldEnableMonth(ie),Mi)}_shouldEnableMonth(ie){const qe=this._dateAdapter.getYear(this.activeDate);if(null==ie||this._isYearAndMonthAfterMaxDate(qe,ie)||this._isYearAndMonthBeforeMinDate(qe,ie))return!1;if(!this.dateFilter)return!0;for(let Vt=this._dateAdapter.createDate(qe,ie,1);this._dateAdapter.getMonth(Vt)==ie;Vt=this._dateAdapter.addCalendarDays(Vt,1))if(this.dateFilter(Vt))return!0;return!1}_isYearAndMonthAfterMaxDate(ie,qe){if(this.maxDate){const Mt=this._dateAdapter.getYear(this.maxDate),Vt=this._dateAdapter.getMonth(this.maxDate);return ie>Mt||ie===Mt&&qe>Vt}return!1}_isYearAndMonthBeforeMinDate(ie,qe){if(this.minDate){const Mt=this._dateAdapter.getYear(this.minDate),Vt=this._dateAdapter.getMonth(this.minDate);return ie{class je{constructor(){this.changes=new h.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(ie,qe){return`${ie} \u2013 ${qe}`}}return je.\u0275fac=function(ie){return new(ie||je)},je.\u0275prov=a.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),vt=0,$t=(()=>{class je{constructor(ie,qe,Mt,Vt,Mi){this._intl=ie,this.calendar=qe,this._dateAdapter=Mt,this._dateFormats=Vt,this._buttonDescriptionId="mat-calendar-button-"+vt++,this.calendar.stateChanges.subscribe(()=>Mi.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 qe=this._dateAdapter.getYear(this.calendar.activeDate)-ui(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Mt=qe+24-1,Vt=this._dateAdapter.getYearName(this._dateAdapter.createDate(qe,0,1)),Mi=this._dateAdapter.getYearName(this._dateAdapter.createDate(Mt,0,1));return this._intl.formatYearRange(Vt,Mi)}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(ie,qe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(ie)==this._dateAdapter.getYear(qe)&&this._dateAdapter.getMonth(ie)==this._dateAdapter.getMonth(qe):"year"==this.calendar.currentView?this._dateAdapter.getYear(ie)==this._dateAdapter.getYear(qe):Gt(this._dateAdapter,ie,qe,this.calendar.minDate,this.calendar.maxDate)}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(et),a.Y36((0,a.Gpc)(()=>jt)),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(a.sBO))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:u,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(ie,qe){1&ie&&(a.F$t(),a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return qe.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 qe.previousClicked()}),a.qZA(),a.TgZ(10,"button",7),a.NdJ("click",function(){return qe.nextClicked()}),a.qZA()()()),2&ie&&(a.xp6(2),a.uIk("aria-label",qe.periodButtonLabel)("aria-describedby",qe._buttonDescriptionId),a.xp6(1),a.uIk("id",qe._buttonDescriptionId),a.xp6(1),a.Oqu(qe.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==qe.calendar.currentView),a.xp6(4),a.Q6J("disabled",!qe.previousEnabled()),a.uIk("aria-label",qe.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!qe.nextEnabled()),a.uIk("aria-label",qe.nextButtonLabel))},directives:[b.lW],encapsulation:2,changeDetection:0}),je})(),jt=(()=>{class je{constructor(ie,qe,Mt,Vt){this._dateAdapter=qe,this._dateFormats=Mt,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 h.x,this._intlChanges=ie.changes.subscribe(()=>{Vt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(ie){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof De?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get activeDate(){return this._clampedActiveDate}set activeDate(ie){this._clampedActiveDate=this._dateAdapter.clampDate(ie,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(ie){const qe=this._currentView!==ie?ie:null;this._currentView=ie,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),qe&&this.viewChanged.emit(qe)}ngAfterContentInit(){this._calendarHeaderPortal=new f.C5(this.headerComponent||$t),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(ie){const qe=ie.minDate&&!this._dateAdapter.sameDate(ie.minDate.previousValue,ie.minDate.currentValue)?ie.minDate:void 0,Mt=ie.maxDate&&!this._dateAdapter.sameDate(ie.maxDate.previousValue,ie.maxDate.currentValue)?ie.maxDate:void 0,Vt=qe||Mt||ie.dateFilter;if(Vt&&!Vt.firstChange){const Mi=this._getCurrentViewComponent();Mi&&(this._changeDetectorRef.detectChanges(),Mi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(ie){const qe=ie.value;(this.selected instanceof De||qe&&!this._dateAdapter.sameDate(qe,this.selected))&&this.selectedChange.emit(qe),this._userSelection.emit(ie)}_yearSelectedInMultiYearView(ie){this.yearSelected.emit(ie)}_monthSelectedInYearView(ie){this.monthSelected.emit(ie)}_goToDateInView(ie,qe){this.activeDate=ie,this.currentView=qe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(et),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(a.sBO))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-calendar"]],viewQuery:function(ie,qe){if(1&ie&&(a.Gf(ut,5),a.Gf(gt,5),a.Gf(Yt,5)),2&ie){let Mt;a.iGM(Mt=a.CRH())&&(qe.monthView=Mt.first),a.iGM(Mt=a.CRH())&&(qe.yearView=Mt.first),a.iGM(Mt=a.CRH())&&(qe.multiYearView=Mt.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(ie,qe){1&ie&&(a.YNc(0,c,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,_,1,8,"mat-month-view",2),a.YNc(3,E,1,6,"mat-year-view",3),a.YNc(4,I,1,6,"mat-multi-year-view",4),a.qZA()),2&ie&&(a.Q6J("cdkPortalOutlet",qe._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",qe.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[ut,gt,Yt,f.Pl,t.kH,M.RF,M.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}),je})();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 Oe=0;const le=new a.OlP("mat-datepicker-scroll-strategy"),ht={provide:le,deps:[e.aV],useFactory:function xe(je){return()=>je.scrollStrategies.reposition()}},ft=(0,P.pj)(class{constructor(je){this._elementRef=je}});let Ht=(()=>{class je extends ft{constructor(ie,qe,Mt,Vt,Mi,Ei){super(ie),this._changeDetectorRef=qe,this._globalModel=Mt,this._dateAdapter=Vt,this._rangeSelectionStrategy=Mi,this._subscriptions=new A.w0,this._animationDone=new h.x,this._actionsPortal=null,this._closeButtonText=Ei.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(ie){const qe=this._model.selection,Mt=ie.value,Vt=qe instanceof De;if(Vt&&this._rangeSelectionStrategy){const Mi=this._rangeSelectionStrategy.selectionFinished(Mt,qe,ie.event);this._model.updateSelection(Mi,this)}else Mt&&(Vt||!this._dateAdapter.sameDate(Mt,qe))&&this._model.add(Mt);(!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 je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(lt),a.Y36(P._A),a.Y36($,8),a.Y36(et))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-datepicker-content"]],viewQuery:function(ie,qe){if(1&ie&&a.Gf(jt,5),2&ie){let Mt;a.iGM(Mt=a.CRH())&&(qe._calendar=Mt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(ie,qe){1&ie&&a.WFA("@transformPanel.done",function(){return qe._animationDone.next()}),2&ie&&(a.d8E("@transformPanel",qe._animationState),a.ekj("mat-datepicker-content-touch",qe.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(ie,qe){if(1&ie&&(a.TgZ(0,"div",0)(1,"mat-calendar",1),a.NdJ("yearSelected",function(Vt){return qe.datepicker._selectYear(Vt)})("monthSelected",function(Vt){return qe.datepicker._selectMonth(Vt)})("viewChanged",function(Vt){return qe.datepicker._viewChanged(Vt)})("_userSelection",function(Vt){return qe._handleUserSelection(Vt)}),a.qZA(),a.YNc(2,v,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return qe._closeButtonFocused=!0})("blur",function(){return qe._closeButtonFocused=!1})("click",function(){return qe.datepicker.close()}),a._uU(4),a.qZA()()),2&ie){let Mt;a.ekj("mat-datepicker-content-container-with-custom-header",qe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",qe._actionsPortal),a.uIk("aria-modal",!0)("aria-labelledby",null!==(Mt=qe._dialogLabelId)&&void 0!==Mt?Mt:void 0),a.xp6(1),a.Q6J("id",qe.datepicker.id)("ngClass",qe.datepicker.panelClass)("startAt",qe.datepicker.startAt)("startView",qe.datepicker.startView)("minDate",qe.datepicker._getMinDate())("maxDate",qe.datepicker._getMaxDate())("dateFilter",qe.datepicker._getDateFilter())("headerComponent",qe.datepicker.calendarHeaderComponent)("selected",qe._getSelected())("dateClass",qe.datepicker.dateClass)("comparisonStart",qe.comparisonStart)("comparisonEnd",qe.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",qe._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!qe._closeButtonFocused),a.Q6J("color",qe.color||"primary"),a.xp6(1),a.Oqu(qe._closeButtonText)}},directives:[jt,b.lW,t.mK,M.mk,f.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}),je})(),it=(()=>{class je{constructor(ie,qe,Mt,Vt,Mi,Ei,en){this._overlay=ie,this._ngZone=qe,this._viewContainerRef=Mt,this._dateAdapter=Mi,this._dir=Ei,this._model=en,this._inputStateChanges=A.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-"+Oe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.x,this._scrollStrategy=Vt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(ie){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(ie){this._color=ie}get touchUi(){return this._touchUi}set touchUi(ie){this._touchUi=(0,j.Ig)(ie)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(ie){const qe=(0,j.Ig)(ie);qe!==this._disabled&&(this._disabled=qe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(ie){this._restoreFocus=(0,j.Ig)(ie)}get panelClass(){return this._panelClass}set panelClass(ie){this._panelClass=(0,j.du)(ie)}get opened(){return this._opened}set opened(ie){(0,j.Ig)(ie)?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(ie){const qe=ie.xPosition||ie.yPosition;if(qe&&!qe.firstChange&&this._overlayRef){const Mt=this._overlayRef.getConfig().positionStrategy;Mt instanceof e._G&&(this._setConnectedPositions(Mt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(ie){this._model.add(ie)}_selectYear(ie){this.yearSelected.emit(ie)}_selectMonth(ie){this.monthSelected.emit(ie)}_viewChanged(ie){this.viewChanged.emit(ie)}registerInput(ie){return this._inputStateChanges.unsubscribe(),this.datepickerInput=ie,this._inputStateChanges=ie.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(ie){this._actionsPortal=ie}removeActions(ie){ie===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 qe=this._componentRef.instance;qe._startExitAnimation(),qe._animationDone.pipe((0,k.q)(1)).subscribe(()=>this._destroyOverlay())}const ie=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(ie)):ie()}_applyPendingSelection(){var ie,qe;null===(qe=null===(ie=this._componentRef)||void 0===ie?void 0:ie.instance)||void 0===qe||qe._applyPendingSelection()}_forwardContentValues(ie){ie.datepicker=this,ie.color=this.color,ie._actionsPortal=this._actionsPortal,ie._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const ie=this.touchUi,qe=new f.C5(Ht,this._viewContainerRef),Mt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:ie?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[ie?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:ie?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(ie?"dialog":"popup")}));this._getCloseStream(Mt).subscribe(Vt=>{Vt&&Vt.preventDefault(),this.close()}),Mt.keydownEvents().subscribe(Vt=>{const Mi=Vt.keyCode;(Mi===L.LH||Mi===L.JH||Mi===L.oh||Mi===L.SV||Mi===L.Ku||Mi===L.VM)&&Vt.preventDefault()}),this._componentRef=Mt.attach(qe),this._forwardContentValues(this._componentRef.instance),ie||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>Mt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const ie=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(ie)}_setConnectedPositions(ie){const qe="end"===this.xPosition?"end":"start",Mt="start"===qe?"end":"start",Vt="above"===this.yPosition?"bottom":"top",Mi="top"===Vt?"bottom":"top";return ie.withPositions([{originX:qe,originY:Mi,overlayX:qe,overlayY:Vt},{originX:qe,originY:Vt,overlayX:qe,overlayY:Mi},{originX:Mt,originY:Mi,overlayX:Mt,overlayY:Vt},{originX:Mt,originY:Vt,overlayX:Mt,overlayY:Mi}])}_getCloseStream(ie){return(0,w.T)(ie.backdropClick(),ie.detachments(),ie.keydownEvents().pipe((0,U.h)(qe=>qe.keyCode===L.hY&&!(0,L.Vb)(qe)||this.datepickerInput&&(0,L.Vb)(qe,"altKey")&&qe.keyCode===L.LH)))}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(e.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(le),a.Y36(P._A,8),a.Y36(Z.Is,8),a.Y36(lt))},je.\u0275dir=a.lG2({type:je,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]}),je})(),Ne=(()=>{class je extends it{}return je.\u0275fac=function(){let Ct;return function(qe){return(Ct||(Ct=a.n5z(je)))(qe||je)}}(),je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([Te,{provide:it,useExisting:je}]),a.qOj],decls:0,vars:0,template:function(ie,qe){},encapsulation:2,changeDetection:0}),je})();class tt{constructor(Ct,ie){this.target=Ct,this.targetElement=ie,this.value=this.target.value}}let Je=(()=>{class je{constructor(ie,qe,Mt){this._elementRef=ie,this._dateAdapter=qe,this._dateFormats=Mt,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new h.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=A.w0.EMPTY,this._localeSubscription=A.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Vt=>{const Mi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value));return!Mi||this._matchesFilter(Mi)?null:{matDatepickerFilter:!0}},this._minValidator=Vt=>{const Mi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Ei=this._getMinDate();return!Ei||!Mi||this._dateAdapter.compareDate(Ei,Mi)<=0?null:{matDatepickerMin:{min:Ei,actual:Mi}}},this._maxValidator=Vt=>{const Mi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Ei=this._getMaxDate();return!Ei||!Mi||this._dateAdapter.compareDate(Ei,Mi)>=0?null:{matDatepickerMax:{max:Ei,actual:Mi}}},this._lastValueValid=!1,this._localeSubscription=qe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(ie){this._assignValueProgrammatically(ie)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(ie){const qe=(0,j.Ig)(ie),Mt=this._elementRef.nativeElement;this._disabled!==qe&&(this._disabled=qe,this.stateChanges.next(void 0)),qe&&this._isInitialized&&Mt.blur&&Mt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(ie){this._model=ie,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(qe=>{if(this._shouldHandleChangeEvent(qe)){const Mt=this._getValueFromModel(qe.selection);this._lastValueValid=this._isValidValue(Mt),this._cvaOnChange(Mt),this._onTouched(),this._formatValue(Mt),this.dateInput.emit(new tt(this,this._elementRef.nativeElement)),this.dateChange.emit(new tt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(ie){(function Se(je,Ct){const ie=Object.keys(je);for(let qe of ie){const{previousValue:Mt,currentValue:Vt}=je[qe];if(!Ct.isDateInstance(Mt)||!Ct.isDateInstance(Vt))return!0;if(!Ct.sameDate(Mt,Vt))return!0}return!1})(ie,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(ie){this._validatorOnChange=ie}validate(ie){return this._validator?this._validator(ie):null}writeValue(ie){this._assignValueProgrammatically(ie)}registerOnChange(ie){this._cvaOnChange=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this.disabled=ie}_onKeydown(ie){ie.altKey&&ie.keyCode===L.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),ie.preventDefault())}_onInput(ie){const qe=this._lastValueValid;let Mt=this._dateAdapter.parse(ie,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Mt),Mt=this._dateAdapter.getValidDateOrNull(Mt);const Vt=!this._dateAdapter.sameDate(Mt,this.value);!Mt||Vt?this._cvaOnChange(Mt):(ie&&!this.value&&this._cvaOnChange(Mt),qe!==this._lastValueValid&&this._validatorOnChange()),Vt&&(this._assignValue(Mt),this.dateInput.emit(new tt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new tt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(ie){this._elementRef.nativeElement.value=null!=ie?this._dateAdapter.format(ie,this._dateFormats.display.dateInput):""}_assignValue(ie){this._model?(this._assignValueToModel(ie),this._pendingValue=null):this._pendingValue=ie}_isValidValue(ie){return!ie||this._dateAdapter.isValid(ie)}_parentDisabled(){return!1}_assignValueProgrammatically(ie){ie=this._dateAdapter.deserialize(ie),this._lastValueValid=this._isValidValue(ie),ie=this._dateAdapter.getValidDateOrNull(ie),this._assignValue(ie),this._formatValue(ie)}_matchesFilter(ie){const qe=this._getDateFilter();return!qe||qe(ie)}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.SBq),a.Y36(P._A,8),a.Y36(P.sG,8))},je.\u0275dir=a.lG2({type:je,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),je})();const Ue={provide:de.JU,useExisting:(0,a.Gpc)(()=>at),multi:!0},rt={provide:de.Cf,useExisting:(0,a.Gpc)(()=>at),multi:!0};let at=(()=>{class je extends Je{constructor(ie,qe,Mt,Vt){super(ie,qe,Mt),this._formField=Vt,this._closedSubscription=A.w0.EMPTY,this._validator=de.kI.compose(super._getValidators())}set matDatepicker(ie){ie&&(this._datepicker=ie,this._closedSubscription=ie.closedStream.subscribe(()=>this._onTouched()),this._registerModel(ie.registerInput(this)))}get min(){return this._min}set min(ie){const qe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie));this._dateAdapter.sameDate(qe,this._min)||(this._min=qe,this._validatorOnChange())}get max(){return this._max}set max(ie){const qe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie));this._dateAdapter.sameDate(qe,this._max)||(this._max=qe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(ie){const qe=this._matchesFilter(this.value);this._dateFilter=ie,this._matchesFilter(this.value)!==qe&&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(ie){return ie}_assignValueToModel(ie){this._model&&this._model.updateSelection(ie,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(ie){return ie.source!==this}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.SBq),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(ee.G_,8))},je.\u0275dir=a.lG2({type:je,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(ie,qe){1&ie&&a.NdJ("input",function(Vt){return qe._onInput(Vt.target.value)})("change",function(){return qe._onChange()})("blur",function(){return qe._onBlur()})("keydown",function(Vt){return qe._onKeydown(Vt)}),2&ie&&(a.Ikx("disabled",qe.disabled),a.uIk("aria-haspopup",qe._datepicker?"dialog":null)("aria-owns",(null==qe._datepicker?null:qe._datepicker.opened)&&qe._datepicker.id||null)("min",qe.min?qe._dateAdapter.toIso8601(qe.min):null)("max",qe.max?qe._dateAdapter.toIso8601(qe.max):null)("data-mat-calendar",qe._datepicker?qe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([Ue,rt,{provide:te.Jk,useExisting:je}]),a.qOj]}),je})(),yt=(()=>{class je{}return je.\u0275fac=function(ie){return new(ie||je)},je.\u0275dir=a.lG2({type:je,selectors:[["","matDatepickerToggleIcon",""]]}),je})(),gi=(()=>{class je{constructor(ie,qe,Mt){this._intl=ie,this._changeDetectorRef=qe,this._stateChanges=A.w0.EMPTY;const Vt=Number(Mt);this.tabIndex=Vt||0===Vt?Vt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(ie){this._disabled=(0,j.Ig)(ie)}ngOnChanges(ie){ie.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(ie){this.datepicker&&!this.disabled&&(this.datepicker.open(),ie.stopPropagation())}_watchStateChanges(){const ie=this.datepicker?this.datepicker.stateChanges:(0,D.of)(),qe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,D.of)(),Mt=this.datepicker?(0,w.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,D.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,w.T)(this._intl.changes,ie,qe,Mt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(et),a.Y36(a.sBO),a.$8M("tabindex"))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-datepicker-toggle"]],contentQueries:function(ie,qe,Mt){if(1&ie&&a.Suo(Mt,yt,5),2&ie){let Vt;a.iGM(Vt=a.CRH())&&(qe._customIcon=Vt.first)}},viewQuery:function(ie,qe){if(1&ie&&a.Gf(n,5),2&ie){let Mt;a.iGM(Mt=a.CRH())&&(qe._button=Mt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(ie,qe){1&ie&&a.NdJ("click",function(Vt){return qe._open(Vt)}),2&ie&&(a.uIk("tabindex",null)("data-mat-calendar",qe.datepicker?qe.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",qe.datepicker&&qe.datepicker.opened)("mat-accent",qe.datepicker&&"accent"===qe.datepicker.color)("mat-warn",qe.datepicker&&"warn"===qe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:N,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(ie,qe){1&ie&&(a.F$t(B),a.TgZ(0,"button",0,1),a.YNc(2,C,2,0,"svg",2),a.Hsn(3),a.qZA()),2&ie&&(a.Q6J("disabled",qe.disabled)("disableRipple",qe.disableRipple),a.uIk("aria-haspopup",qe.datepicker?"dialog":null)("aria-label",qe.ariaLabel||qe._intl.openCalendarLabel)("tabindex",qe.disabled?-1:qe.tabIndex),a.xp6(2),a.Q6J("ngIf",!qe._customIcon))},directives:[b.lW,M.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}),je})(),fe=(()=>{class je{}return je.\u0275fac=function(ie){return new(ie||je)},je.\u0275mod=a.oAB({type:je}),je.\u0275inj=a.cJS({providers:[et,ht],imports:[[M.ez,b.ot,e.U8,t.rt,f.eL,P.BQ],d.ZD]}),je})()},8966:(Fe,Y,p)=>{"use strict";p.d(Y,{Bq:()=>i,Is:()=>ge,WI:()=>x,ZT:()=>C,so:()=>J,uw:()=>I});var t=p(9776),e=p(7429),f=p(5e3),M=p(508),a=p(226),b=p(7579),d=p(9770),P=p(9646),h=p(9300),A=p(5698),w=p(8675),D=p(925),L=p(9808),k=p(1777),S=p(5664),U=p(1159),Z=p(6360);function j(be,Re){}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 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 ee=(()=>{class be extends e.en{constructor(we,Q,Ge,ve,F,De,lt,Ie){super(),this._elementRef=we,this._focusTrapFactory=Q,this._changeDetectorRef=Ge,this._config=F,this._interactivityChecker=De,this._ngZone=lt,this._focusMonitor=Ie,this._animationStateChanged=new f.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ae=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Ae)),this._ariaLabelledBy=F.ariaLabelledBy||null,this._document=ve}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,D.ht)())}attachComponentPortal(we){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(we)}attachTemplatePortal(we){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(we)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(we,Q){this._interactivityChecker.isFocusable(we)||(we.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ge=()=>{we.removeEventListener("blur",Ge),we.removeEventListener("mousedown",Ge),we.removeAttribute("tabindex")};we.addEventListener("blur",Ge),we.addEventListener("mousedown",Ge)})),we.focus(Q)}_focusByCssSelector(we,Q){let Ge=this._elementRef.nativeElement.querySelector(we);Ge&&this._forceFocus(Ge,Q)}_trapFocus(){const we=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||we.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Q=>{Q||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 we=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&we&&"function"==typeof we.focus){const Q=(0,D.ht)(),Ge=this._elementRef.nativeElement;(!Q||Q===this._document.body||Q===Ge||Ge.contains(Q))&&(this._focusMonitor?(this._focusMonitor.focusVia(we,this._closeInteractionType),this._closeInteractionType=null):we.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const we=this._elementRef.nativeElement,Q=(0,D.ht)();return we===Q||we.contains(Q)}}return be.\u0275fac=function(we){return new(we||be)(f.Y36(f.SBq),f.Y36(S.qV),f.Y36(f.sBO),f.Y36(L.K0,8),f.Y36(ne),f.Y36(S.ic),f.Y36(f.R0b),f.Y36(S.tE))},be.\u0275dir=f.lG2({type:be,viewQuery:function(we,Q){if(1&we&&f.Gf(e.Pl,7),2&we){let Ge;f.iGM(Ge=f.CRH())&&(Q._portalOutlet=Ge.first)}},features:[f.qOj]}),be})(),te=(()=>{class be extends ee{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:we,totalTime:Q}){"enter"===we?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Q})):"exit"===we&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Q}))}_onAnimationStart({toState:we,totalTime:Q}){"enter"===we?this._animationStateChanged.next({state:"opening",totalTime:Q}):("exit"===we||"void"===we)&&this._animationStateChanged.next({state:"closing",totalTime:Q})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return be.\u0275fac=function(){let Re;return function(Q){return(Re||(Re=f.n5z(be)))(Q||be)}}(),be.\u0275cmp=f.Xpm({type:be,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(we,Q){1&we&&f.WFA("@dialogContainer.start",function(ve){return Q._onAnimationStart(ve)})("@dialogContainer.done",function(ve){return Q._onAnimationDone(ve)}),2&we&&(f.Ikx("id",Q._id),f.uIk("role",Q._config.role)("aria-labelledby",Q._config.ariaLabel?null:Q._ariaLabelledBy)("aria-label",Q._config.ariaLabel)("aria-describedby",Q._config.ariaDescribedBy||null),f.d8E("@dialogContainer",Q._state))},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(we,Q){1&we&&f.YNc(0,j,0,0,"ng-template",0)},directives:[e.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]}}),be})(),ce=0;class J{constructor(Re,we,Q="mat-dialog-"+ce++){this._overlayRef=Re,this._containerInstance=we,this.id=Q,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new b.x,this._afterClosed=new b.x,this._beforeClosed=new b.x,this._state=0,we._id=Q,we._animationStateChanged.pipe((0,h.h)(Ge=>"opened"===Ge.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),we._animationStateChanged.pipe((0,h.h)(Ge=>"closed"===Ge.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Re.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Re.keydownEvents().pipe((0,h.h)(Ge=>Ge.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Ge))).subscribe(Ge=>{Ge.preventDefault(),me(this,"keyboard")}),Re.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():me(this,"mouse")})}close(Re){this._result=Re,this._containerInstance._animationStateChanged.pipe((0,h.h)(we=>"closing"===we.state),(0,A.q)(1)).subscribe(we=>{this._beforeClosed.next(Re),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),we.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(Re){let we=this._getPositionStrategy();return Re&&(Re.left||Re.right)?Re.left?we.left(Re.left):we.right(Re.right):we.centerHorizontally(),Re&&(Re.top||Re.bottom)?Re.top?we.top(Re.top):we.bottom(Re.bottom):we.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Re="",we=""){return this._overlayRef.updateSize({width:Re,height:we}),this._overlayRef.updatePosition(),this}addPanelClass(Re){return this._overlayRef.addPanelClass(Re),this}removePanelClass(Re){return this._overlayRef.removePanelClass(Re),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function me(be,Re,we){return void 0!==be._containerInstance&&(be._containerInstance._closeInteractionType=Re),be.close(we)}const x=new f.OlP("MatDialogData"),i=new f.OlP("mat-dialog-default-options"),r=new f.OlP("mat-dialog-scroll-strategy"),_={provide:r,deps:[t.aV],useFactory:function c(be){return()=>be.scrollStrategies.block()}};let E=(()=>{class be{constructor(we,Q,Ge,ve,F,De,lt,Ie,Ae,se){this._overlay=we,this._injector=Q,this._defaultOptions=Ge,this._parentDialog=ve,this._overlayContainer=F,this._dialogRefConstructor=lt,this._dialogContainerType=Ie,this._dialogDataToken=Ae,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.x,this._afterOpenedAtThisLevel=new b.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,w.O)(void 0))),this._scrollStrategy=De}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const we=this._parentDialog;return we?we._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(we,Q){Q=function v(be,Re){return Object.assign(Object.assign({},Re),be)}(Q,this._defaultOptions||new ne),Q.id&&this.getDialogById(Q.id);const Ge=this._createOverlay(Q),ve=this._attachDialogContainer(Ge,Q),F=this._attachDialogContent(we,ve,Ge,Q);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(F),F.afterClosed().subscribe(()=>this._removeOpenDialog(F)),this.afterOpened.next(F),ve._initializeWithAttachedContent(),F}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(we){return this.openDialogs.find(Q=>Q.id===we)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(we){const Q=this._getOverlayConfig(we);return this._overlay.create(Q)}_getOverlayConfig(we){const Q=new t.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:we.scrollStrategy||this._scrollStrategy(),panelClass:we.panelClass,hasBackdrop:we.hasBackdrop,direction:we.direction,minWidth:we.minWidth,minHeight:we.minHeight,maxWidth:we.maxWidth,maxHeight:we.maxHeight,disposeOnNavigation:we.closeOnNavigation});return we.backdropClass&&(Q.backdropClass=we.backdropClass),Q}_attachDialogContainer(we,Q){const ve=f.zs3.create({parent:Q&&Q.viewContainerRef&&Q.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:Q}]}),F=new e.C5(this._dialogContainerType,Q.viewContainerRef,ve,Q.componentFactoryResolver);return we.attach(F).instance}_attachDialogContent(we,Q,Ge,ve){const F=new this._dialogRefConstructor(Ge,Q,ve.id);if(we instanceof f.Rgc)Q.attachTemplatePortal(new e.UE(we,null,{$implicit:ve.data,dialogRef:F}));else{const De=this._createInjector(ve,F,Q),lt=Q.attachComponentPortal(new e.C5(we,ve.viewContainerRef,De,ve.componentFactoryResolver));F.componentInstance=lt.instance}return F.updateSize(ve.width,ve.height).updatePosition(ve.position),F}_createInjector(we,Q,Ge){const ve=we&&we.viewContainerRef&&we.viewContainerRef.injector,F=[{provide:this._dialogContainerType,useValue:Ge},{provide:this._dialogDataToken,useValue:we.data},{provide:this._dialogRefConstructor,useValue:Q}];return we.direction&&(!ve||!ve.get(a.Is,null,f.XFs.Optional))&&F.push({provide:a.Is,useValue:{value:we.direction,change:(0,P.of)()}}),f.zs3.create({parent:ve||this._injector,providers:F})}_removeOpenDialog(we){const Q=this.openDialogs.indexOf(we);Q>-1&&(this.openDialogs.splice(Q,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ge,ve)=>{Ge?ve.setAttribute("aria-hidden",Ge):ve.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const we=this._overlayContainer.getContainerElement();if(we.parentElement){const Q=we.parentElement.children;for(let Ge=Q.length-1;Ge>-1;Ge--){let ve=Q[Ge];ve!==we&&"SCRIPT"!==ve.nodeName&&"STYLE"!==ve.nodeName&&!ve.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ve,ve.getAttribute("aria-hidden")),ve.setAttribute("aria-hidden","true"))}}}_closeDialogs(we){let Q=we.length;for(;Q--;)we[Q].close()}}return be.\u0275fac=function(we){f.$Z()},be.\u0275dir=f.lG2({type:be}),be})(),I=(()=>{class be extends E{constructor(we,Q,Ge,ve,F,De,lt,Ie){super(we,Q,ve,De,lt,F,J,te,x,Ie)}}return be.\u0275fac=function(we){return new(we||be)(f.LFG(t.aV),f.LFG(f.zs3),f.LFG(L.Ye,8),f.LFG(i,8),f.LFG(r),f.LFG(be,12),f.LFG(t.Xj),f.LFG(Z.Qb,8))},be.\u0275prov=f.Yz7({token:be,factory:be.\u0275fac}),be})(),C=(()=>{class be{constructor(we,Q,Ge){this.dialogRef=we,this._elementRef=Q,this._dialog=Ge,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function oe(be,Re){let we=be.nativeElement.parentElement;for(;we&&!we.classList.contains("mat-dialog-container");)we=we.parentElement;return we?Re.find(Q=>Q.id===we.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(we){const Q=we._matDialogClose||we._matDialogCloseResult;Q&&(this.dialogResult=Q.currentValue)}_onButtonClick(we){me(this.dialogRef,0===we.screenX&&0===we.screenY?"keyboard":"mouse",this.dialogResult)}}return be.\u0275fac=function(we){return new(we||be)(f.Y36(J,8),f.Y36(f.SBq),f.Y36(I))},be.\u0275dir=f.lG2({type:be,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(we,Q){1&we&&f.NdJ("click",function(ve){return Q._onButtonClick(ve)}),2&we&&f.uIk("aria-label",Q.ariaLabel||null)("type",Q.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[f.TTD]}),be})(),ge=(()=>{class be{}return be.\u0275fac=function(we){return new(we||be)},be.\u0275mod=f.oAB({type:be}),be.\u0275inj=f.cJS({providers:[I,_],imports:[[t.U8,e.eL,M.BQ],M.BQ]}),be})()},4834:(Fe,Y,p)=>{"use strict";p.d(Y,{d:()=>M,t:()=>a});var t=p(5e3),e=p(3191),f=p(508);let M=(()=>{class b{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(P){this._vertical=(0,e.Ig)(P)}get inset(){return this._inset}set inset(P){this._inset=(0,e.Ig)(P)}}return b.\u0275fac=function(P){return new(P||b)},b.\u0275cmp=t.Xpm({type:b,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,h){2&P&&(t.uIk("aria-orientation",h.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",h.vertical)("mat-divider-horizontal",!h.vertical)("mat-divider-inset",h.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(P,h){},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}),b})(),a=(()=>{class b{}return b.\u0275fac=function(P){return new(P||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),b})()},1125:(Fe,Y,p)=>{"use strict";p.d(Y,{pp:()=>we,To:()=>Q,ib:()=>B,u4:()=>be,yz:()=>ge,yK:()=>Re});var t=p(5e3),e=p(3191),f=p(7579),M=p(727),a=p(449);let b=0;const d=new t.OlP("CdkAccordion");let P=(()=>{class Ge{constructor(){this._stateChanges=new f.x,this._openCloseAllActions=new f.x,this.id="cdk-accordion-"+b++,this._multi=!1}get multi(){return this._multi}set multi(F){this._multi=(0,e.Ig)(F)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(F){this._stateChanges.next(F)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:d,useExisting:Ge}]),t.TTD]}),Ge})(),h=0,A=(()=>{class Ge{constructor(F,De,lt){this.accordion=F,this._changeDetectorRef=De,this._expansionDispatcher=lt,this._openCloseAllSubscription=M.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=lt.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(F){F=(0,e.Ig)(F),this._expanded!==F&&(this._expanded=F,this.expandedChange.emit(F),F?(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(F){this._disabled=(0,e.Ig)(F)}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(F=>{this.disabled||(this.expanded=F)})}}return Ge.\u0275fac=function(F){return new(F||Ge)(t.Y36(d,12),t.Y36(t.sBO),t.Y36(a.A8))},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:d,useValue:void 0}])]}),Ge})(),w=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275mod=t.oAB({type:Ge}),Ge.\u0275inj=t.cJS({}),Ge})();var D=p(7429),L=p(9808),k=p(508),S=p(5664),U=p(1884),Z=p(8675),j=p(9300),ne=p(5698),X=p(1159),de=p(6360),ee=p(515),te=p(6451),ce=p(1777);const J=["body"];function me(Ge,ve){}const x=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function r(Ge,ve){if(1&Ge&&t._UZ(0,"span",2),2&Ge){const F=t.oxw();t.Q6J("@indicatorRotate",F._getExpandedState())}}const u=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],c=["mat-panel-title","mat-panel-description","*"],_=new t.OlP("MAT_ACCORDION"),E="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,ce.X$)("indicatorRotate",[(0,ce.SB)("collapsed, void",(0,ce.oB)({transform:"rotate(0deg)"})),(0,ce.SB)("expanded",(0,ce.oB)({transform:"rotate(180deg)"})),(0,ce.eR)("expanded <=> collapsed, void => collapsed",(0,ce.jt)(E))]),bodyExpansion:(0,ce.X$)("bodyExpansion",[(0,ce.SB)("collapsed, void",(0,ce.oB)({height:"0px",visibility:"hidden"})),(0,ce.SB)("expanded",(0,ce.oB)({height:"*",visibility:"visible"})),(0,ce.eR)("expanded <=> collapsed, void => collapsed",(0,ce.jt)(E))])};let v=(()=>{class Ge{constructor(F){this._template=F}}return Ge.\u0275fac=function(F){return new(F||Ge)(t.Y36(t.Rgc))},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ge})(),n=0;const C=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let B=(()=>{class Ge extends A{constructor(F,De,lt,Ie,Ae,se,Te){super(F,De,lt),this._viewContainerRef=Ie,this._animationMode=se,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new f.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new f.x,this.accordion=F,this._document=Ae,this._bodyAnimationDone.pipe((0,U.x)((ye,W)=>ye.fromState===W.fromState&&ye.toState===W.toState)).subscribe(ye=>{"void"!==ye.fromState&&("expanded"===ye.toState?this.afterExpand.emit():"collapsed"===ye.toState&&this.afterCollapse.emit())}),Te&&(this.hideToggle=Te.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(F){this._hideToggle=(0,e.Ig)(F)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(F){this._togglePosition=F}_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,Z.O)(null),(0,j.h)(()=>this.expanded&&!this._portal),(0,ne.q)(1)).subscribe(()=>{this._portal=new D.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(F){this._inputChanges.next(F)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const F=this._document.activeElement,De=this._body.nativeElement;return F===De||De.contains(F)}return!1}}return Ge.\u0275fac=function(F){return new(F||Ge)(t.Y36(_,12),t.Y36(t.sBO),t.Y36(a.A8),t.Y36(t.s_b),t.Y36(L.K0),t.Y36(de.Qb,8),t.Y36(C,8))},Ge.\u0275cmp=t.Xpm({type:Ge,selectors:[["mat-expansion-panel"]],contentQueries:function(F,De,lt){if(1&F&&t.Suo(lt,v,5),2&F){let Ie;t.iGM(Ie=t.CRH())&&(De._lazyContent=Ie.first)}},viewQuery:function(F,De){if(1&F&&t.Gf(J,5),2&F){let lt;t.iGM(lt=t.CRH())&&(De._body=lt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(F,De){2&F&&t.ekj("mat-expanded",De.expanded)("_mat-animation-noopable","NoopAnimations"===De._animationMode)("mat-expansion-panel-spacing",De._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:_,useValue:void 0}]),t.qOj,t.TTD],ngContentSelectors:i,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(F,De){1&F&&(t.F$t(x),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(Ie){return De._bodyAnimationDone.next(Ie)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,me,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&F&&(t.xp6(1),t.Q6J("@bodyExpansion",De._getExpandedState())("id",De.id),t.uIk("aria-labelledby",De._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",De._portal))},directives:[D.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}),Ge})();class z{}const oe=(0,k.sb)(z);let ge=(()=>{class Ge extends oe{constructor(F,De,lt,Ie,Ae,se,Te){super(),this.panel=F,this._element=De,this._focusMonitor=lt,this._changeDetectorRef=Ie,this._animationMode=se,this._parentChangeSubscription=M.w0.EMPTY;const ye=F.accordion?F.accordion._stateChanges.pipe((0,j.h)(W=>!(!W.hideToggle&&!W.togglePosition))):ee.E;this.tabIndex=parseInt(Te||"")||0,this._parentChangeSubscription=(0,te.T)(F.opened,F.closed,ye,F._inputChanges.pipe((0,j.h)(W=>!!(W.hideToggle||W.disabled||W.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),F.closed.pipe((0,j.h)(()=>F._containsFocus())).subscribe(()=>lt.focusVia(De,"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 F=this._isExpanded();return F&&this.expandedHeight?this.expandedHeight:!F&&this.collapsedHeight?this.collapsedHeight:null}_keydown(F){switch(F.keyCode){case X.L_:case X.K5:(0,X.Vb)(F)||(F.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(F))}}focus(F,De){F?this._focusMonitor.focusVia(this._element,F,De):this._element.nativeElement.focus(De)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(F=>{F&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ge.\u0275fac=function(F){return new(F||Ge)(t.Y36(B,1),t.Y36(t.SBq),t.Y36(S.tE),t.Y36(t.sBO),t.Y36(C,8),t.Y36(de.Qb,8),t.$8M("tabindex"))},Ge.\u0275cmp=t.Xpm({type:Ge,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(F,De){1&F&&t.NdJ("click",function(){return De._toggle()})("keydown",function(Ie){return De._keydown(Ie)}),2&F&&(t.uIk("id",De.panel._headerId)("tabindex",De.tabIndex)("aria-controls",De._getPanelId())("aria-expanded",De._isExpanded())("aria-disabled",De.panel.disabled),t.Udp("height",De._getHeaderHeight()),t.ekj("mat-expanded",De._isExpanded())("mat-expansion-toggle-indicator-after","after"===De._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===De._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===De._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:c,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(F,De){1&F&&(t.F$t(u),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,r,1,1,"span",1)),2&F&&(t.xp6(4),t.Q6J("ngIf",De._showToggle()))},directives:[L.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}),Ge})(),be=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ge})(),Re=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ge})(),we=(()=>{class Ge extends P{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(F){this._hideToggle=(0,e.Ig)(F)}ngAfterContentInit(){this._headers.changes.pipe((0,Z.O)(this._headers)).subscribe(F=>{this._ownHeaders.reset(F.filter(De=>De.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new S.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(F){this._keyManager.onKeydown(F)}_handleHeaderFocus(F){this._keyManager.updateActiveItem(F)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ge.\u0275fac=function(){let ve;return function(De){return(ve||(ve=t.n5z(Ge)))(De||Ge)}}(),Ge.\u0275dir=t.lG2({type:Ge,selectors:[["mat-accordion"]],contentQueries:function(F,De,lt){if(1&F&&t.Suo(lt,ge,5),2&F){let Ie;t.iGM(Ie=t.CRH())&&(De._headers=Ie)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(F,De){2&F&&t.ekj("mat-accordion-multi",De.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:_,useExisting:Ge}]),t.qOj]}),Ge})(),Q=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275mod=t.oAB({type:Ge}),Ge.\u0275inj=t.cJS({imports:[[L.ez,k.BQ,w,D.eL]]}),Ge})()},7322:(Fe,Y,p)=>{"use strict";p.d(Y,{Eo:()=>n,G_:()=>se,KE:()=>Te,R9:()=>ve,TO:()=>I,bx:()=>ge,lN:()=>ye});var t=p(7144),e=p(9808),f=p(5e3),M=p(508),a=p(3191),b=p(7579),d=p(6451),P=p(4968),h=p(8675),A=p(2722),w=p(5698),D=p(1777),L=p(6360),k=p(226),S=p(925);const U=["connectionContainer"],Z=["inputContainer"],j=["label"];function ne(W,$){1&W&&(f.ynx(0),f.TgZ(1,"div",14),f._UZ(2,"div",15)(3,"div",16)(4,"div",17),f.qZA(),f.TgZ(5,"div",18),f._UZ(6,"div",15)(7,"div",16)(8,"div",17),f.qZA(),f.BQk())}function X(W,$){if(1&W){const ue=f.EpF();f.TgZ(0,"div",19),f.NdJ("cdkObserveContent",function(){return f.CHM(ue),f.oxw().updateOutlineGap()}),f.Hsn(1,1),f.qZA()}if(2&W){const ue=f.oxw();f.Q6J("cdkObserveContentDisabled","outline"!=ue.appearance)}}function de(W,$){if(1&W&&(f.ynx(0),f.Hsn(1,2),f.TgZ(2,"span"),f._uU(3),f.qZA(),f.BQk()),2&W){const ue=f.oxw(2);f.xp6(3),f.Oqu(ue._control.placeholder)}}function ee(W,$){1&W&&f.Hsn(0,3,["*ngSwitchCase","true"])}function te(W,$){1&W&&(f.TgZ(0,"span",23),f._uU(1," *"),f.qZA())}function ce(W,$){if(1&W){const ue=f.EpF();f.TgZ(0,"label",20,21),f.NdJ("cdkObserveContent",function(){return f.CHM(ue),f.oxw().updateOutlineGap()}),f.YNc(2,de,4,1,"ng-container",12),f.YNc(3,ee,1,0,"ng-content",12),f.YNc(4,te,2,0,"span",22),f.qZA()}if(2&W){const ue=f.oxw();f.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),f.Q6J("cdkObserveContentDisabled","outline"!=ue.appearance)("id",ue._labelId)("ngSwitch",ue._hasLabel()),f.uIk("for",ue._control.id)("aria-owns",ue._control.id),f.xp6(2),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngIf",!ue.hideRequiredMarker&&ue._control.required&&!ue._control.disabled)}}function J(W,$){1&W&&(f.TgZ(0,"div",24),f.Hsn(1,4),f.qZA())}function me(W,$){if(1&W&&(f.TgZ(0,"div",25),f._UZ(1,"span",26),f.qZA()),2&W){const ue=f.oxw();f.xp6(1),f.ekj("mat-accent","accent"==ue.color)("mat-warn","warn"==ue.color)}}function x(W,$){if(1&W&&(f.TgZ(0,"div"),f.Hsn(1,5),f.qZA()),2&W){const ue=f.oxw();f.Q6J("@transitionMessages",ue._subscriptAnimationState)}}function i(W,$){if(1&W&&(f.TgZ(0,"div",30),f._uU(1),f.qZA()),2&W){const ue=f.oxw(2);f.Q6J("id",ue._hintLabelId),f.xp6(1),f.Oqu(ue.hintLabel)}}function r(W,$){if(1&W&&(f.TgZ(0,"div",27),f.YNc(1,i,2,2,"div",28),f.Hsn(2,6),f._UZ(3,"div",29),f.Hsn(4,7),f.qZA()),2&W){const ue=f.oxw();f.Q6J("@transitionMessages",ue._subscriptAnimationState),f.xp6(1),f.Q6J("ngIf",ue.hintLabel)}}const u=["*",[["","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 _=0;const E=new f.OlP("MatError");let I=(()=>{class W{constructor(ue,Ce){this.id="mat-error-"+_++,ue||Ce.nativeElement.setAttribute("aria-live","polite")}}return W.\u0275fac=function(ue){return new(ue||W)(f.$8M("aria-live"),f.Y36(f.SBq))},W.\u0275dir=f.lG2({type:W,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ue,Ce){2&ue&&f.uIk("id",Ce.id)},inputs:{id:"id"},features:[f._Bn([{provide:E,useExisting:W}])]}),W})();const v={transitionMessages:(0,D.X$)("transitionMessages",[(0,D.SB)("enter",(0,D.oB)({opacity:1,transform:"translateY(0%)"})),(0,D.eR)("void => enter",[(0,D.oB)({opacity:0,transform:"translateY(-5px)"}),(0,D.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let n=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W}),W})(),z=0;const oe=new f.OlP("MatHint");let ge=(()=>{class W{constructor(){this.align="start",this.id="mat-hint-"+z++}}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(ue,Ce){2&ue&&(f.uIk("id",Ce.id)("align",null),f.ekj("mat-form-field-hint-end","end"===Ce.align))},inputs:{align:"align",id:"id"},features:[f._Bn([{provide:oe,useExisting:W}])]}),W})(),be=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-label"]]}),W})(),Re=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-placeholder"]]}),W})();const we=new f.OlP("MatPrefix"),Ge=new f.OlP("MatSuffix");let ve=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W,selectors:[["","matSuffix",""]],features:[f._Bn([{provide:Ge,useExisting:W}])]}),W})(),F=0;const Ie=(0,M.pj)(class{constructor(W){this._elementRef=W}},"primary"),Ae=new f.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),se=new f.OlP("MatFormField");let Te=(()=>{class W extends Ie{constructor(ue,Ce,Le,ct,ut,Dt,di){super(ue),this._changeDetectorRef=Ce,this._dir=Le,this._defaults=ct,this._platform=ut,this._ngZone=Dt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new b.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+F++,this._labelId="mat-form-field-label-"+F++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==di,this.appearance=ct&&ct.appearance?ct.appearance:"legacy",this._hideRequiredMarker=!(!ct||null==ct.hideRequiredMarker)&&ct.hideRequiredMarker}get appearance(){return this._appearance}set appearance(ue){const Ce=this._appearance;this._appearance=ue||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Ce!==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,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),ue.ngControl&&ue.ngControl.valueChanges&&ue.ngControl.valueChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,A.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,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,A.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 Ce=this._control?this._control.ngControl:null;return Ce&&Ce[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,w.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 Ce=this._hintChildren?this._hintChildren.find(ct=>"start"===ct.align):null,Le=this._hintChildren?this._hintChildren.find(ct=>"end"===ct.align):null;Ce?ue.push(Ce.id):this._hintLabel&&ue.push(this._hintLabelId),Le&&ue.push(Le.id)}else this._errorChildren&&ue.push(...this._errorChildren.map(Ce=>Ce.id));this._control.setDescribedByIds(ue)}}_validateControlChild(){}updateOutlineGap(){const ue=this._label?this._label.nativeElement:null,Ce=this._connectionContainerRef.nativeElement,Le=".mat-form-field-outline-start",ct=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!ue||!ue.children.length||!ue.textContent.trim()){const Gt=Ce.querySelectorAll(`${Le}, ${ct}`);for(let ui=0;ui0?.75*gt+10:0}for(let Gt=0;Gt{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275mod=f.oAB({type:W}),W.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.Q8],M.BQ]}),W})()},3954:(Fe,Y,p)=>{"use strict";p.d(Y,{DX:()=>D,Il:()=>J,N6:()=>me});var t=p(5e3),e=p(508),f=p(3191),M=p(226);const a=["*"];class h{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,u){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(r),this.tracker.fill(0,0,this.tracker.length),this.positions=u.map(c=>this._trackTile(c))}_trackTile(r){const u=this._findMatchingGap(r.colspan);return this._markTilePosition(u,r),this.columnIndex=u+r.colspan,new A(this.rowIndex,u)}_findMatchingGap(r){let u=-1,c=-1;do{this.columnIndex+r>this.tracker.length?(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)):(u=this.tracker.indexOf(0,this.columnIndex),-1!=u?(c=this._findGapEndIndex(u),this.columnIndex=u+1):(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)))}while(c-u{class i{constructor(u,c){this._element=u,this._gridList=c,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(u){this._rowspan=Math.round((0,f.su)(u))}get colspan(){return this._colspan}set colspan(u){this._colspan=Math.round((0,f.su)(u))}_setStyle(u,c){this._element.nativeElement.style[u]=c}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(w,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(u,c){2&u&&t.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(u,c){1&u&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.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}),i})();const Z=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class j{constructor(){this._rows=0,this._rowspan=0}init(r,u,c,_){this._gutterSize=te(r),this._rows=u.rowCount,this._rowspan=u.rowspan,this._cols=c,this._direction=_}getBaseTileSize(r,u){return`(${r}% - (${this._gutterSize} * ${u}))`}getTilePosition(r,u){return 0===u?"0":ee(`(${r} + ${this._gutterSize}) * ${u}`)}getTileSize(r,u){return`(${r} * ${u}) + (${u-1} * ${this._gutterSize})`}setStyle(r,u,c){let _=100/this._cols,E=(this._cols-1)/this._cols;this.setColStyles(r,c,_,E),this.setRowStyles(r,u,_,E)}setColStyles(r,u,c,_){let E=this.getBaseTileSize(c,_);r._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(E,u)),r._setStyle("width",ee(this.getTileSize(E,r.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(r){return`${this._rowspan} * ${this.getTileSize(r,1)}`}getComputedHeight(){return null}}class ne extends j{constructor(r){super(),this.fixedRowHeight=r}init(r,u,c,_){super.init(r,u,c,_),this.fixedRowHeight=te(this.fixedRowHeight),Z.test(this.fixedRowHeight)}setRowStyles(r,u){r._setStyle("top",this.getTilePosition(this.fixedRowHeight,u)),r._setStyle("height",ee(this.getTileSize(this.fixedRowHeight,r.rowspan)))}getComputedHeight(){return["height",ee(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["height",null]),r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}class X extends j{constructor(r){super(),this._parseRatio(r)}setRowStyles(r,u,c,_){this.baseTileHeight=this.getBaseTileSize(c/this.rowHeightRatio,_),r._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,u)),r._setStyle("paddingTop",ee(this.getTileSize(this.baseTileHeight,r.rowspan)))}getComputedHeight(){return["paddingBottom",ee(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["paddingBottom",null]),r._tiles.forEach(u=>{u._setStyle("marginTop",null),u._setStyle("paddingTop",null)})}_parseRatio(r){const u=r.split(":");this.rowHeightRatio=parseFloat(u[0])/parseFloat(u[1])}}class de extends j{setRowStyles(r,u){let E=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);r._setStyle("top",this.getTilePosition(E,u)),r._setStyle("height",ee(this.getTileSize(E,r.rowspan)))}reset(r){r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}function ee(i){return`calc(${i})`}function te(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let J=(()=>{class i{constructor(u,c){this._element=u,this._dir=c,this._gutter="1px"}get cols(){return this._cols}set cols(u){this._cols=Math.max(1,Math.round((0,f.su)(u)))}get gutterSize(){return this._gutter}set gutterSize(u){this._gutter=`${null==u?"":u}`}get rowHeight(){return this._rowHeight}set rowHeight(u){const c=`${null==u?"":u}`;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(u){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===u?new de:u&&u.indexOf(":")>-1?new X(u):new ne(u)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new h);const u=this._tileCoordinator,c=this._tiles.filter(E=>!E._gridList||E._gridList===this),_=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,c),this._tileStyler.init(this.gutterSize,u,this.cols,_),c.forEach((E,I)=>{const v=u.positions[I];this._tileStyler.setStyle(E,v.row,v.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(u){u&&(this._element.nativeElement.style[u[0]]=u[1])}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(M.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(u,c,_){if(1&u&&t.Suo(_,D,5),2&u){let E;t.iGM(E=t.CRH())&&(c._tiles=E)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(u,c){2&u&&t.uIk("cols",c.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:w,useExisting:i}])],ngContentSelectors:a,decls:2,vars:0,template:function(u,c){1&u&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.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}),i})(),me=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[e.uc,e.BQ],e.uc,e.BQ]}),i})()},5245:(Fe,Y,p)=>{"use strict";p.d(Y,{Hw:()=>B,Ps:()=>N});var t=p(5e3),e=p(508),f=p(3191),M=p(9808),a=p(9646),b=p(2843),d=p(4128),P=p(727),h=p(8505),A=p(4004),w=p(262),D=p(8746),L=p(3099),k=p(5698),S=p(8138),U=p(2313);const Z=["*"];let j;function X(z){var oe;return(null===(oe=function ne(){if(void 0===j&&(j=null,"undefined"!=typeof window)){const z=window;void 0!==z.trustedTypes&&(j=z.trustedTypes.createPolicy("angular#components",{createHTML:oe=>oe}))}return j}())||void 0===oe?void 0:oe.createHTML(z))||z}function de(z){return Error(`Unable to find icon with the name "${z}"`)}function te(z){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${z}".`)}function ce(z){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${z}".`)}class J{constructor(oe,ge,be){this.url=oe,this.svgText=ge,this.options=be}}let me=(()=>{class z{constructor(ge,be,Re,we){this._httpClient=ge,this._sanitizer=be,this._errorHandler=we,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=Re}addSvgIcon(ge,be,Re){return this.addSvgIconInNamespace("",ge,be,Re)}addSvgIconLiteral(ge,be,Re){return this.addSvgIconLiteralInNamespace("",ge,be,Re)}addSvgIconInNamespace(ge,be,Re,we){return this._addSvgIconConfig(ge,be,new J(Re,null,we))}addSvgIconResolver(ge){return this._resolvers.push(ge),this}addSvgIconLiteralInNamespace(ge,be,Re,we){const Q=this._sanitizer.sanitize(t.q3G.HTML,Re);if(!Q)throw ce(Re);const Ge=X(Q);return this._addSvgIconConfig(ge,be,new J("",Ge,we))}addSvgIconSet(ge,be){return this.addSvgIconSetInNamespace("",ge,be)}addSvgIconSetLiteral(ge,be){return this.addSvgIconSetLiteralInNamespace("",ge,be)}addSvgIconSetInNamespace(ge,be,Re){return this._addSvgIconSetConfig(ge,new J(be,null,Re))}addSvgIconSetLiteralInNamespace(ge,be,Re){const we=this._sanitizer.sanitize(t.q3G.HTML,be);if(!we)throw ce(be);const Q=X(we);return this._addSvgIconSetConfig(ge,new J("",Q,Re))}registerFontClassAlias(ge,be=ge){return this._fontCssClassesByAlias.set(ge,be),this}classNameForFontAlias(ge){return this._fontCssClassesByAlias.get(ge)||ge}setDefaultFontSetClass(ge){return this._defaultFontSetClass=ge,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ge){const be=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,ge);if(!be)throw te(ge);const Re=this._cachedIconsByUrl.get(be);return Re?(0,a.of)(r(Re)):this._loadSvgIconFromConfig(new J(ge,null)).pipe((0,h.b)(we=>this._cachedIconsByUrl.set(be,we)),(0,A.U)(we=>r(we)))}getNamedSvgIcon(ge,be=""){const Re=u(be,ge);let we=this._svgIconConfigs.get(Re);if(we)return this._getSvgFromConfig(we);if(we=this._getIconConfigFromResolvers(be,ge),we)return this._svgIconConfigs.set(Re,we),this._getSvgFromConfig(we);const Q=this._iconSetConfigs.get(be);return Q?this._getSvgFromIconSetConfigs(ge,Q):(0,b._)(de(Re))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ge){return ge.svgText?(0,a.of)(r(this._svgElementFromConfig(ge))):this._loadSvgIconFromConfig(ge).pipe((0,A.U)(be=>r(be)))}_getSvgFromIconSetConfigs(ge,be){const Re=this._extractIconWithNameFromAnySet(ge,be);if(Re)return(0,a.of)(Re);const we=be.filter(Q=>!Q.svgText).map(Q=>this._loadSvgIconSetFromConfig(Q).pipe((0,w.K)(Ge=>{const F=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,Q.url)} failed: ${Ge.message}`;return this._errorHandler.handleError(new Error(F)),(0,a.of)(null)})));return(0,d.D)(we).pipe((0,A.U)(()=>{const Q=this._extractIconWithNameFromAnySet(ge,be);if(!Q)throw de(ge);return Q}))}_extractIconWithNameFromAnySet(ge,be){for(let Re=be.length-1;Re>=0;Re--){const we=be[Re];if(we.svgText&&we.svgText.toString().indexOf(ge)>-1){const Q=this._svgElementFromConfig(we),Ge=this._extractSvgIconFromSet(Q,ge,we.options);if(Ge)return Ge}}return null}_loadSvgIconFromConfig(ge){return this._fetchIcon(ge).pipe((0,h.b)(be=>ge.svgText=be),(0,A.U)(()=>this._svgElementFromConfig(ge)))}_loadSvgIconSetFromConfig(ge){return ge.svgText?(0,a.of)(null):this._fetchIcon(ge).pipe((0,h.b)(be=>ge.svgText=be))}_extractSvgIconFromSet(ge,be,Re){const we=ge.querySelector(`[id="${be}"]`);if(!we)return null;const Q=we.cloneNode(!0);if(Q.removeAttribute("id"),"svg"===Q.nodeName.toLowerCase())return this._setSvgAttributes(Q,Re);if("symbol"===Q.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Q),Re);const Ge=this._svgElementFromString(X(""));return Ge.appendChild(Q),this._setSvgAttributes(Ge,Re)}_svgElementFromString(ge){const be=this._document.createElement("DIV");be.innerHTML=ge;const Re=be.querySelector("svg");if(!Re)throw Error(" tag not found");return Re}_toSvgElement(ge){const be=this._svgElementFromString(X("")),Re=ge.attributes;for(let we=0;weX(De)),(0,D.x)(()=>this._inProgressUrlFetches.delete(Ge)),(0,L.B)());return this._inProgressUrlFetches.set(Ge,F),F}_addSvgIconConfig(ge,be,Re){return this._svgIconConfigs.set(u(ge,be),Re),this}_addSvgIconSetConfig(ge,be){const Re=this._iconSetConfigs.get(ge);return Re?Re.push(be):this._iconSetConfigs.set(ge,[be]),this}_svgElementFromConfig(ge){if(!ge.svgElement){const be=this._svgElementFromString(ge.svgText);this._setSvgAttributes(be,ge.options),ge.svgElement=be}return ge.svgElement}_getIconConfigFromResolvers(ge,be){for(let Re=0;Reoe?oe.pathname+oe.search:""}}}),v=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],n=v.map(z=>`[${z}]`).join(", "),C=/^url\(['"]?#(.*?)['"]?\)$/;let B=(()=>{class z extends _{constructor(ge,be,Re,we,Q){super(ge),this._iconRegistry=be,this._location=we,this._errorHandler=Q,this._inline=!1,this._currentIconFetch=P.w0.EMPTY,Re||ge.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ge){this._inline=(0,f.Ig)(ge)}get svgIcon(){return this._svgIcon}set svgIcon(ge){ge!==this._svgIcon&&(ge?this._updateSvgIcon(ge):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ge)}get fontSet(){return this._fontSet}set fontSet(ge){const be=this._cleanupFontValue(ge);be!==this._fontSet&&(this._fontSet=be,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ge){const be=this._cleanupFontValue(ge);be!==this._fontIcon&&(this._fontIcon=be,this._updateFontIconClasses())}_splitIconName(ge){if(!ge)return["",""];const be=ge.split(":");switch(be.length){case 1:return["",be[0]];case 2:return be;default:throw Error(`Invalid icon name: "${ge}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ge=this._elementsWithExternalReferences;if(ge&&ge.size){const be=this._location.getPathname();be!==this._previousPath&&(this._previousPath=be,this._prependPathToReferences(be))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ge){this._clearSvgElement();const be=this._location.getPathname();this._previousPath=be,this._cacheChildrenWithExternalReferences(ge),this._prependPathToReferences(be),this._elementRef.nativeElement.appendChild(ge)}_clearSvgElement(){const ge=this._elementRef.nativeElement;let be=ge.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();be--;){const Re=ge.childNodes[be];(1!==Re.nodeType||"svg"===Re.nodeName.toLowerCase())&&Re.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ge=this._elementRef.nativeElement,be=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();be!=this._previousFontSetClass&&(this._previousFontSetClass&&ge.classList.remove(this._previousFontSetClass),be&&ge.classList.add(be),this._previousFontSetClass=be),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&ge.classList.remove(this._previousFontIconClass),this.fontIcon&&ge.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ge){return"string"==typeof ge?ge.trim().split(" ")[0]:ge}_prependPathToReferences(ge){const be=this._elementsWithExternalReferences;be&&be.forEach((Re,we)=>{Re.forEach(Q=>{we.setAttribute(Q.name,`url('${ge}#${Q.value}')`)})})}_cacheChildrenWithExternalReferences(ge){const be=ge.querySelectorAll(n),Re=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let we=0;we{const Ge=be[we],ve=Ge.getAttribute(Q),F=ve?ve.match(C):null;if(F){let De=Re.get(Ge);De||(De=[],Re.set(Ge,De)),De.push({name:Q,value:F[1]})}})}_updateSvgIcon(ge){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ge){const[be,Re]=this._splitIconName(ge);be&&(this._svgNamespace=be),Re&&(this._svgName=Re),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Re,be).pipe((0,k.q)(1)).subscribe(we=>this._setSvgElement(we),we=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${be}:${Re}! ${we.message}`))})}}}return z.\u0275fac=function(ge){return new(ge||z)(t.Y36(t.SBq),t.Y36(me),t.$8M("aria-hidden"),t.Y36(E),t.Y36(t.qLn))},z.\u0275cmp=t.Xpm({type:z,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(ge,be){2&ge&&(t.uIk("data-mat-icon-type",be._usingFontIcon()?"font":"svg")("data-mat-icon-name",be._svgName||be.fontIcon)("data-mat-icon-namespace",be._svgNamespace||be.fontSet),t.ekj("mat-icon-inline",be.inline)("mat-icon-no-color","primary"!==be.color&&"accent"!==be.color&&"warn"!==be.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:Z,decls:1,vars:0,template:function(ge,be){1&ge&&(t.F$t(),t.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}),z})(),N=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),z})()},7531:(Fe,Y,p)=>{"use strict";p.d(Y,{Jk:()=>S,Nt:()=>ne,c:()=>X});var t=p(3191),e=p(925),f=p(5e3),M=p(3075),a=p(508),b=p(7322),d=p(7579),P=p(515);const h=(0,e.i$)({passive:!0});let A=(()=>{class de{constructor(te,ce){this._platform=te,this._ngZone=ce,this._monitoredElements=new Map}monitor(te){if(!this._platform.isBrowser)return P.E;const ce=(0,t.fI)(te),J=this._monitoredElements.get(ce);if(J)return J.subject;const me=new d.x,x="cdk-text-field-autofilled",i=r=>{"cdk-text-field-autofill-start"!==r.animationName||ce.classList.contains(x)?"cdk-text-field-autofill-end"===r.animationName&&ce.classList.contains(x)&&(ce.classList.remove(x),this._ngZone.run(()=>me.next({target:r.target,isAutofilled:!1}))):(ce.classList.add(x),this._ngZone.run(()=>me.next({target:r.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ce.addEventListener("animationstart",i,h),ce.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ce,{subject:me,unlisten:()=>{ce.removeEventListener("animationstart",i,h)}}),me}stopMonitoring(te){const ce=(0,t.fI)(te),J=this._monitoredElements.get(ce);J&&(J.unlisten(),J.subject.complete(),ce.classList.remove("cdk-text-field-autofill-monitored"),ce.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ce))}ngOnDestroy(){this._monitoredElements.forEach((te,ce)=>this.stopMonitoring(ce))}}return de.\u0275fac=function(te){return new(te||de)(f.LFG(e.t4),f.LFG(f.R0b))},de.\u0275prov=f.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),L=(()=>{class de{}return de.\u0275fac=function(te){return new(te||de)},de.\u0275mod=f.oAB({type:de}),de.\u0275inj=f.cJS({}),de})();const S=new f.OlP("MAT_INPUT_VALUE_ACCESSOR"),U=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Z=0;const j=(0,a.FD)(class{constructor(de,ee,te,ce){this._defaultErrorStateMatcher=de,this._parentForm=ee,this._parentFormGroup=te,this.ngControl=ce}});let ne=(()=>{class de extends j{constructor(te,ce,J,me,x,i,r,u,c,_){super(i,me,x,J),this._elementRef=te,this._platform=ce,this._autofillMonitor=u,this._formField=_,this._uid="mat-input-"+Z++,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(v=>(0,e.qK)().has(v)),this._iOSKeyupListener=v=>{const n=v.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const E=this._elementRef.nativeElement,I=E.nodeName.toLowerCase();this._inputValueAccessor=r||E,this._previousNativeValue=this.value,this.id=this.id,ce.IOS&&c.runOutsideAngular(()=>{te.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=E.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(te){this._disabled=(0,t.Ig)(te),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(te){this._id=te||this._uid}get required(){var te,ce,J,me;return null!==(me=null!==(te=this._required)&&void 0!==te?te:null===(J=null===(ce=this.ngControl)||void 0===ce?void 0:ce.control)||void 0===J?void 0:J.hasValidator(M.kI.required))&&void 0!==me&&me}set required(te){this._required=(0,t.Ig)(te)}get type(){return this._type}set type(te){this._type=te||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(te){te!==this.value&&(this._inputValueAccessor.value=te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(te){this._readonly=(0,t.Ig)(te)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(te=>{this.autofilled=te.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(te){this._elementRef.nativeElement.focus(te)}_focusChanged(te){te!==this.focused&&(this.focused=te,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var te,ce;const J=(null===(ce=null===(te=this._formField)||void 0===te?void 0:te._hideControlPlaceholder)||void 0===ce?void 0:ce.call(te))?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 te=this._elementRef.nativeElement.value;this._previousNativeValue!==te&&(this._previousNativeValue=te,this.stateChanges.next())}_validateType(){U.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let te=this._elementRef.nativeElement.validity;return te&&te.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const te=this._elementRef.nativeElement,ce=te.options[0];return this.focused||te.multiple||!this.empty||!!(te.selectedIndex>-1&&ce&&ce.label)}return this.focused||!this.empty}setDescribedByIds(te){te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const te=this._elementRef.nativeElement;return this._isNativeSelect&&(te.multiple||te.size>1)}}return de.\u0275fac=function(te){return new(te||de)(f.Y36(f.SBq),f.Y36(e.t4),f.Y36(M.a5,10),f.Y36(M.F,8),f.Y36(M.sg,8),f.Y36(a.rD),f.Y36(S,10),f.Y36(A),f.Y36(f.R0b),f.Y36(b.G_,8))},de.\u0275dir=f.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(te,ce){1&te&&f.NdJ("focus",function(){return ce._focusChanged(!0)})("blur",function(){return ce._focusChanged(!1)})("input",function(){return ce._onInput()}),2&te&&(f.Ikx("disabled",ce.disabled)("required",ce.required),f.uIk("id",ce.id)("data-placeholder",ce.placeholder)("name",ce.name||null)("readonly",ce.readonly&&!ce._isNativeSelect||null)("aria-invalid",ce.empty&&ce.required?null:ce.errorState)("aria-required",ce.required),f.ekj("mat-input-server",ce._isServer)("mat-native-select-inline",ce._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:[f._Bn([{provide:b.Eo,useExisting:de}]),f.qOj,f.TTD]}),de})(),X=(()=>{class de{}return de.\u0275fac=function(te){return new(te||de)},de.\u0275mod=f.oAB({type:de}),de.\u0275inj=f.cJS({providers:[a.rD],imports:[[L,b.lN,a.BQ],L,b.lN]}),de})()},4623:(Fe,Y,p)=>{"use strict";p.d(Y,{Tg:()=>u,i$:()=>me,ie:()=>C});var t=p(9808),e=p(5e3),f=p(508),M=p(3191),a=p(7579),b=p(2722),D=(p(8675),p(5664),p(449),p(1159),p(3075),p(4834));const L=["*"],S=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],U=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],de=(0,f.Id)((0,f.Kr)(class{})),ee=(0,f.Kr)(class{}),te=new e.OlP("MatList"),ce=new e.OlP("MatNavList");let me=(()=>{class B extends de{constructor(z){super(),this._elementRef=z,this._stateChanges=new a.x,"action-list"===this._getListType()&&z.nativeElement.classList.add("mat-action-list")}_getListType(){const z=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===z?"list":"mat-action-list"===z?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return B.\u0275fac=function(z){return new(z||B)(e.Y36(e.SBq))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:te,useExisting:B}]),e.qOj,e.TTD],ngContentSelectors:L,decls:1,vars:0,template:function(z,oe){1&z&&(e.F$t(),e.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(z){return new(z||B)},B.\u0275dir=e.lG2({type:B,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),B})(),i=(()=>{class B{}return B.\u0275fac=function(z){return new(z||B)},B.\u0275dir=e.lG2({type:B,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),B})(),u=(()=>{class B extends ee{constructor(z,oe,ge,be){super(),this._element=z,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(ge||be&&"action-list"===be._getListType()),this._list=ge||be;const Re=this._getHostElement();"button"===Re.nodeName.toLowerCase()&&!Re.hasAttribute("type")&&Re.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,b.R)(this._destroyed)).subscribe(()=>{oe.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(z){this._disabled=(0,M.Ig)(z)}ngAfterContentInit(){(0,f.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(z){return new(z||B)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ce,8),e.Y36(te,8))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(z,oe,ge){if(1&z&&(e.Suo(ge,x,5),e.Suo(ge,i,5),e.Suo(ge,f.X2,5)),2&z){let be;e.iGM(be=e.CRH())&&(oe._avatar=be.first),e.iGM(be=e.CRH())&&(oe._icon=be.first),e.iGM(be=e.CRH())&&(oe._lines=be)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(z,oe){2&z&&e.ekj("mat-list-item-disabled",oe.disabled)("mat-list-item-avatar",oe._avatar||oe._icon)("mat-list-item-with-avatar",oe._avatar||oe._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:U,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(z,oe){1&z&&(e.F$t(S),e.TgZ(0,"span",0),e._UZ(1,"span",1),e.Hsn(2),e.TgZ(3,"span",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("matRippleTrigger",oe._getHostElement())("matRippleDisabled",oe._isRippleDisabled()))},directives:[f.wG],encapsulation:2,changeDetection:0}),B})(),C=(()=>{class B{}return B.\u0275fac=function(z){return new(z||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[[f.uc,f.si,f.BQ,f.us,t.ez],f.uc,f.BQ,f.us,D.t]}),B})()},2181:(Fe,Y,p)=>{"use strict";p.d(Y,{OP:()=>z,Tx:()=>Ae,VK:()=>we,p6:()=>Ie});var t=p(5664),e=p(3191),f=p(1159),M=p(5e3),a=p(7579),b=p(727),d=p(6451),P=p(9646),h=p(3101),A=p(8675),w=p(3900),D=p(5698),L=p(2722),k=p(9300),S=p(4086),U=p(1777),Z=p(7429),j=p(9808),ne=p(508),X=p(9776),de=p(925),ee=p(226),te=p(5303);const ce=["mat-menu-item",""];function J(se,Te){1&se&&(M.O4$(),M.TgZ(0,"svg",2),M._UZ(1,"polygon",3),M.qZA())}const me=["*"];function x(se,Te){if(1&se){const ye=M.EpF();M.TgZ(0,"div",0),M.NdJ("keydown",function($){return M.CHM(ye),M.oxw()._handleKeydown($)})("click",function(){return M.CHM(ye),M.oxw().closed.emit("click")})("@transformMenu.start",function($){return M.CHM(ye),M.oxw()._onAnimationStart($)})("@transformMenu.done",function($){return M.CHM(ye),M.oxw()._onAnimationDone($)}),M.TgZ(1,"div",1),M.Hsn(2),M.qZA()()}if(2&se){const ye=M.oxw();M.Q6J("id",ye.panelId)("ngClass",ye._classList)("@transformMenu",ye._panelAnimationState),M.uIk("aria-label",ye.ariaLabel||null)("aria-labelledby",ye.ariaLabelledby||null)("aria-describedby",ye.ariaDescribedby||null)}}const i={transformMenu:(0,U.X$)("transformMenu",[(0,U.SB)("void",(0,U.oB)({opacity:0,transform:"scale(0.8)"})),(0,U.eR)("void => enter",(0,U.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,U.oB)({opacity:1,transform:"scale(1)"}))),(0,U.eR)("* => void",(0,U.jt)("100ms 25ms linear",(0,U.oB)({opacity:0})))]),fadeInItems:(0,U.X$)("fadeInItems",[(0,U.SB)("showing",(0,U.oB)({opacity:1})),(0,U.eR)("void => *",[(0,U.oB)({opacity:0}),(0,U.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},c=new M.OlP("MatMenuContent"),B=new M.OlP("MAT_MENU_PANEL"),N=(0,ne.Kr)((0,ne.Id)(class{}));let z=(()=>{class se extends N{constructor(ye,W,$,ue,Ce){var Le;super(),this._elementRef=ye,this._document=W,this._focusMonitor=$,this._parentMenu=ue,this._changeDetectorRef=Ce,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(ye,W){this._focusMonitor&&ye?this._focusMonitor.focusVia(this._getHostElement(),ye,W):this._getHostElement().focus(W),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(ye){this.disabled&&(ye.preventDefault(),ye.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ye;const W=this._elementRef.nativeElement.cloneNode(!0),$=W.querySelectorAll("mat-icon, .material-icons");for(let ue=0;ue<$.length;ue++)$[ue].remove();return(null===(ye=W.textContent)||void 0===ye?void 0:ye.trim())||""}_setHighlighted(ye){var W;this._highlighted=ye,null===(W=this._changeDetectorRef)||void 0===W||W.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return se.\u0275fac=function(ye){return new(ye||se)(M.Y36(M.SBq),M.Y36(j.K0),M.Y36(t.tE),M.Y36(B,8),M.Y36(M.sBO))},se.\u0275cmp=M.Xpm({type:se,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ye,W){1&ye&&M.NdJ("click",function(ue){return W._checkDisabled(ue)})("mouseenter",function(){return W._handleMouseEnter()}),2&ye&&(M.uIk("role",W.role)("tabindex",W._getTabIndex())("aria-disabled",W.disabled.toString())("disabled",W.disabled||null),M.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",W._highlighted)("mat-menu-item-submenu-trigger",W._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[M.qOj],attrs:ce,ngContentSelectors:me,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ye,W){1&ye&&(M.F$t(),M.Hsn(0),M._UZ(1,"div",0),M.YNc(2,J,2,0,"svg",1)),2&ye&&(M.xp6(1),M.Q6J("matRippleDisabled",W.disableRipple||W.disabled)("matRippleTrigger",W._getHostElement()),M.xp6(1),M.Q6J("ngIf",W._triggersSubmenu))},directives:[ne.wG,j.O5],encapsulation:2,changeDetection:0}),se})();const oe=new M.OlP("mat-menu-default-options",{providedIn:"root",factory:function ge(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let be=0,Re=(()=>{class se{constructor(ye,W,$,ue){this._elementRef=ye,this._ngZone=W,this._defaultOptions=$,this._changeDetectorRef=ue,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new M.n_E,this._tabSubscription=b.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 M.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+be++}get xPosition(){return this._xPosition}set xPosition(ye){this._xPosition=ye,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ye){this._yPosition=ye,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ye){this._overlapTrigger=(0,e.Ig)(ye)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ye){this._hasBackdrop=(0,e.Ig)(ye)}set panelClass(ye){const W=this._previousPanelClass;W&&W.length&&W.split(" ").forEach($=>{this._classList[$]=!1}),this._previousPanelClass=ye,ye&&ye.length&&(ye.split(" ").forEach($=>{this._classList[$]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ye){this.panelClass=ye}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new t.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,A.O)(this._directDescendantItems),(0,w.w)(ye=>(0,d.T)(...ye.map(W=>W._focused)))).subscribe(ye=>this._keyManager.updateActiveItem(ye)),this._directDescendantItems.changes.subscribe(ye=>{var W;const $=this._keyManager;if("enter"===this._panelAnimationState&&(null===(W=$.activeItem)||void 0===W?void 0:W._hasFocus())){const ue=ye.toArray(),Ce=Math.max(0,Math.min(ue.length-1,$.activeItemIndex||0));ue[Ce]&&!ue[Ce].disabled?$.setActiveItem(Ce):$.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,A.O)(this._directDescendantItems),(0,w.w)(W=>(0,d.T)(...W.map($=>$._hovered))))}addItem(ye){}removeItem(ye){}_handleKeydown(ye){const W=ye.keyCode,$=this._keyManager;switch(W){case f.hY:(0,f.Vb)(ye)||(ye.preventDefault(),this.closed.emit("keydown"));break;case f.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case f.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(W===f.LH||W===f.JH)&&$.setFocusOrigin("keyboard"),void $.onKeydown(ye)}ye.stopPropagation()}focusFirstItem(ye="program"){this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{let W=null;if(this._directDescendantItems.length&&(W=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!W||!W.contains(document.activeElement)){const $=this._keyManager;$.setFocusOrigin(ye).setFirstItemActive(),!$.activeItem&&W&&W.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ye){const W=Math.min(this._baseElevation+ye,24),$=`${this._elevationPrefix}${W}`,ue=Object.keys(this._classList).find(Ce=>Ce.startsWith(this._elevationPrefix));(!ue||ue===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[$]=!0,this._previousElevation=$)}setPositionClasses(ye=this.xPosition,W=this.yPosition){var $;const ue=this._classList;ue["mat-menu-before"]="before"===ye,ue["mat-menu-after"]="after"===ye,ue["mat-menu-above"]="above"===W,ue["mat-menu-below"]="below"===W,null===($=this._changeDetectorRef)||void 0===$||$.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ye){this._animationDone.next(ye),this._isAnimating=!1}_onAnimationStart(ye){this._isAnimating=!0,"enter"===ye.toState&&0===this._keyManager.activeItemIndex&&(ye.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,A.O)(this._allItems)).subscribe(ye=>{this._directDescendantItems.reset(ye.filter(W=>W._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return se.\u0275fac=function(ye){return new(ye||se)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(oe),M.Y36(M.sBO))},se.\u0275dir=M.lG2({type:se,contentQueries:function(ye,W,$){if(1&ye&&(M.Suo($,c,5),M.Suo($,z,5),M.Suo($,z,4)),2&ye){let ue;M.iGM(ue=M.CRH())&&(W.lazyContent=ue.first),M.iGM(ue=M.CRH())&&(W._allItems=ue),M.iGM(ue=M.CRH())&&(W.items=ue)}},viewQuery:function(ye,W){if(1&ye&&M.Gf(M.Rgc,5),2&ye){let $;M.iGM($=M.CRH())&&(W.templateRef=$.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"}}),se})(),we=(()=>{class se extends Re{constructor(ye,W,$,ue){super(ye,W,$,ue),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return se.\u0275fac=function(ye){return new(ye||se)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(oe),M.Y36(M.sBO))},se.\u0275cmp=M.Xpm({type:se,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ye,W){2&ye&&M.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[M._Bn([{provide:B,useExisting:se}]),M.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(ye,W){1&ye&&(M.F$t(),M.YNc(0,x,3,6,"ng-template"))},directives:[j.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:[i.transformMenu,i.fadeInItems]},changeDetection:0}),se})();const Q=new M.OlP("mat-menu-scroll-strategy"),ve={provide:Q,deps:[X.aV],useFactory:function Ge(se){return()=>se.scrollStrategies.reposition()}},De=(0,de.i$)({passive:!0});let lt=(()=>{class se{constructor(ye,W,$,ue,Ce,Le,ct,ut,Dt){this._overlay=ye,this._element=W,this._viewContainerRef=$,this._menuItemInstance=Le,this._dir=ct,this._focusMonitor=ut,this._ngZone=Dt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.w0.EMPTY,this._hoverSubscription=b.w0.EMPTY,this._menuCloseSubscription=b.w0.EMPTY,this._handleTouchStart=di=>{(0,t.yG)(di)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new M.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new M.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=ue,this._parentMaterialMenu=Ce instanceof Re?Ce:void 0,W.nativeElement.addEventListener("touchstart",this._handleTouchStart,De),Le&&(Le._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ye){this.menu=ye}get menu(){return this._menu}set menu(ye){ye!==this._menu&&(this._menu=ye,this._menuCloseSubscription.unsubscribe(),ye&&(this._menuCloseSubscription=ye.close.subscribe(W=>{this._destroyMenu(W),("click"===W||"tab"===W)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(W)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,De),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 ye=this._createOverlay(),W=ye.getConfig(),$=W.positionStrategy;this._setPosition($),W.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ye.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Re&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,L.R)(this.menu.close)).subscribe(()=>{$.withLockedPosition(!1).reapplyLastPosition(),$.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(ye,W){this._focusMonitor&&ye?this._focusMonitor.focusVia(this._element,ye,W):this._element.nativeElement.focus(W)}updatePosition(){var ye;null===(ye=this._overlayRef)||void 0===ye||ye.updatePosition()}_destroyMenu(ye){if(!this._overlayRef||!this.menuOpen)return;const W=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ye||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,W instanceof Re?(W._resetAnimation(),W.lazyContent?W._animationDone.pipe((0,k.h)($=>"void"===$.toState),(0,D.q)(1),(0,L.R)(W.lazyContent._attached)).subscribe({next:()=>W.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),W.lazyContent&&W.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 ye=0,W=this.menu.parentMenu;for(;W;)ye++,W=W.parentMenu;this.menu.setElevation(ye)}}_setIsMenuOpen(ye){this._menuOpen=ye,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ye)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ye=this._getOverlayConfig();this._subscribeToPositions(ye.positionStrategy),this._overlayRef=this._overlay.create(ye),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(ye){this.menu.setPositionClasses&&ye.positionChanges.subscribe(W=>{const $="start"===W.connectionPair.overlayX?"after":"before",ue="top"===W.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses($,ue)):this.menu.setPositionClasses($,ue)})}_setPosition(ye){let[W,$]="before"===this.menu.xPosition?["end","start"]:["start","end"],[ue,Ce]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Le,ct]=[ue,Ce],[ut,Dt]=[W,$],di=0;this.triggersSubmenu()?(Dt=W="before"===this.menu.xPosition?"start":"end",$=ut="end"===W?"start":"end",di="bottom"===ue?8:-8):this.menu.overlapTrigger||(Le="top"===ue?"bottom":"top",ct="top"===Ce?"bottom":"top"),ye.withPositions([{originX:W,originY:Le,overlayX:ut,overlayY:ue,offsetY:di},{originX:$,originY:Le,overlayX:Dt,overlayY:ue,offsetY:di},{originX:W,originY:ct,overlayX:ut,overlayY:Ce,offsetY:-di},{originX:$,originY:ct,overlayX:Dt,overlayY:Ce,offsetY:-di}])}_menuClosingActions(){const ye=this._overlayRef.backdropClick(),W=this._overlayRef.detachments(),$=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,P.of)(),ue=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,k.h)(Ce=>Ce!==this._menuItemInstance),(0,k.h)(()=>this._menuOpen)):(0,P.of)();return(0,d.T)(ye,$,ue,W)}_handleMousedown(ye){(0,t.X6)(ye)||(this._openedBy=0===ye.button?"mouse":void 0,this.triggersSubmenu()&&ye.preventDefault())}_handleKeydown(ye){const W=ye.keyCode;(W===f.K5||W===f.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(W===f.SV&&"ltr"===this.dir||W===f.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ye){this.triggersSubmenu()?(ye.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,k.h)(ye=>ye===this._menuItemInstance&&!ye.disabled),(0,S.g)(0,h.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Re&&this.menu._isAnimating?this.menu._animationDone.pipe((0,D.q)(1),(0,S.g)(0,h.E),(0,L.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return se.\u0275fac=function(ye){return new(ye||se)(M.Y36(X.aV),M.Y36(M.SBq),M.Y36(M.s_b),M.Y36(Q),M.Y36(B,8),M.Y36(z,10),M.Y36(ee.Is,8),M.Y36(t.tE),M.Y36(M.R0b))},se.\u0275dir=M.lG2({type:se,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ye,W){1&ye&&M.NdJ("click",function(ue){return W._handleClick(ue)})("mousedown",function(ue){return W._handleMousedown(ue)})("keydown",function(ue){return W._handleKeydown(ue)}),2&ye&&M.uIk("aria-expanded",W.menuOpen||null)("aria-controls",W.menuOpen?W.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"}}),se})(),Ie=(()=>{class se extends lt{}return se.\u0275fac=function(){let Te;return function(W){return(Te||(Te=M.n5z(se)))(W||se)}}(),se.\u0275dir=M.lG2({type:se,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[M.qOj]}),se})(),Ae=(()=>{class se{}return se.\u0275fac=function(ye){return new(ye||se)},se.\u0275mod=M.oAB({type:se}),se.\u0275inj=M.cJS({providers:[ve],imports:[[j.ez,ne.BQ,ne.si,X.U8],te.ZD,ne.BQ]}),se})()},6087:(Fe,Y,p)=>{"use strict";p.d(Y,{NW:()=>ce,TU:()=>J,ye:()=>U});var t=p(9808),e=p(5e3),f=p(508),M=p(7423),a=p(4107),b=p(7238),d=p(3191),P=p(7579),h=p(7322);function A(me,x){if(1&me&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&me){const i=x.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}function w(me,x){if(1&me){const i=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(u){return e.CHM(i),e.oxw(2)._changePageSize(u.value)}),e.YNc(2,A,2,2,"mat-option",18),e.qZA()()}if(2&me){const i=e.oxw(2);e.Q6J("appearance",i._formFieldAppearance)("color",i.color),e.xp6(1),e.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),e.xp6(1),e.Q6J("ngForOf",i._displayedPageSizeOptions)}}function D(me,x){if(1&me&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&me){const i=e.oxw(2);e.xp6(1),e.Oqu(i.pageSize)}}function L(me,x){if(1&me&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,w,3,6,"mat-form-field",14),e.YNc(4,D,2,1,"div",15),e.qZA()),2&me){const i=e.oxw();e.xp6(2),e.hij(" ",i._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function k(me,x){if(1&me){const i=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(i),e.oxw().firstPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&me){const i=e.oxw();e.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.firstPageLabel)}}function S(me,x){if(1&me){const i=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){return e.CHM(i),e.oxw().lastPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&me){const i=e.oxw();e.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.lastPageLabel)}}let U=(()=>{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=(i,r,u)=>{if(0==u||0==r)return`0 of ${u}`;const c=i*r;return`${c+1} \u2013 ${c<(u=Math.max(u,0))?Math.min(c+r,u):c+r} of ${u}`}}}return me.\u0275fac=function(i){return new(i||me)},me.\u0275prov=e.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})();const j={provide:U,deps:[[new e.FiY,new e.tp0,U]],useFactory:function Z(me){return me||new U}},de=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ee=(0,f.Id)((0,f.dB)(class{}));let te=(()=>{class me extends ee{constructor(i,r,u){if(super(),this._intl=i,this._changeDetectorRef=r,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new e.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:c,pageSizeOptions:_,hidePageSize:E,showFirstLastButtons:I}=u;null!=c&&(this._pageSize=c),null!=_&&(this._pageSizeOptions=_),null!=E&&(this._hidePageSize=E),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,d.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,d.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,d.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(r=>(0,d.su)(r)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,d.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,d.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndexi-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return me.\u0275fac=function(i){e.$Z()},me.\u0275dir=e.lG2({type:me,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[e.qOj]}),me})(),ce=(()=>{class me extends te{constructor(i,r,u){super(i,r,u),u&&null!=u.formFieldAppearance&&(this._formFieldAppearance=u.formFieldAppearance)}}return me.\u0275fac=function(i){return new(i||me)(e.Y36(U),e.Y36(e.sBO),e.Y36(de,8))},me.\u0275cmp=e.Xpm({type:me,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.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(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,L,5,3,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,k,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return r.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return r.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,S,3,5,"button",11),e.qZA()()()),2&i&&(e.xp6(2),e.Q6J("ngIf",!r.hidePageSize),e.xp6(3),e.hij(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),e.xp6(1),e.Q6J("ngIf",r.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),e.uIk("aria-label",r._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),e.uIk("aria-label",r._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",r.showFirstLastButtons))},directives:[h.KE,a.gD,f.ey,M.lW,t.O5,t.sg,b.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(i){return new(i||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({providers:[j],imports:[[t.ez,M.ot,a.LD,b.AV,f.BQ]]}),me})()},5899:(Fe,Y,p)=>{"use strict";p.d(Y,{Cv:()=>Z,pW:()=>S});var t=p(5e3),e=p(9808),f=p(508),M=p(3191),a=p(6360),b=p(727),d=p(4968),P=p(9300);const h=["primaryValueBar"],A=(0,f.pj)(class{constructor(j){this._elementRef=j}},"primary"),w=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function D(){const j=(0,t.f3M)(e.K0),ne=j?j.location:null;return{getPathname:()=>ne?ne.pathname+ne.search:""}}}),L=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let k=0,S=(()=>{class j extends A{constructor(X,de,ee,te,ce,J){super(X),this._ngZone=de,this._animationMode=ee,this._changeDetectorRef=J,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._animationEndSubscription=b.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+k++;const me=te?te.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${me}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ee,ce&&(ce.color&&(this.color=this.defaultColor=ce.color),this.mode=ce.mode||this.mode)}get value(){return this._value}set value(X){var de;this._value=U((0,M.su)(X)||0),null===(de=this._changeDetectorRef)||void 0===de||de.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(X){var de;this._bufferValue=U(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,d.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 j.\u0275fac=function(X){return new(X||j)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.Qb,8),t.Y36(w,8),t.Y36(L,8),t.Y36(t.sBO))},j.\u0275cmp=t.Xpm({type:j,selectors:[["mat-progress-bar"]],viewQuery:function(X,de){if(1&X&&t.Gf(h,5),2&X){let ee;t.iGM(ee=t.CRH())&&(de._primaryValueBar=ee.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(X,de){2&X&&(t.uIk("aria-valuenow","indeterminate"===de.mode||"query"===de.mode?null:de.value)("mode",de.mode),t.ekj("_mat-animation-noopable",de._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.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&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&X&&(t.xp6(3),t.Q6J("id",de.progressbarId),t.xp6(2),t.uIk("fill",de._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",de._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",de._primaryTransform()))},directives:[e.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}),j})();function U(j,ne=0,X=100){return Math.max(ne,Math.min(X,j))}let Z=(()=>{class j{}return j.\u0275fac=function(X){return new(X||j)},j.\u0275mod=t.oAB({type:j}),j.\u0275inj=t.cJS({imports:[[e.ez,f.BQ],f.BQ]}),j})()},773:(Fe,Y,p)=>{"use strict";p.d(Y,{Cq:()=>j,Ou:()=>Z});var t=p(3191),e=p(925),f=p(9808),M=p(5e3),a=p(508),b=p(6360),d=p(727),P=p(5303);function h(X,de){if(1&X&&(M.O4$(),M._UZ(0,"circle",4)),2&X){const ee=M.oxw(),te=M.MAs(1);M.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ee._spinnerAnimationLabel)("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(te)),M.uIk("r",ee._getCircleRadius())}}function A(X,de){if(1&X&&(M.O4$(),M._UZ(0,"circle",4)),2&X){const ee=M.oxw(),te=M.MAs(1);M.Udp("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(te)),M.uIk("r",ee._getCircleRadius())}}const L=(0,a.pj)(class{constructor(X){this._elementRef=X}},"primary"),k=new M.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function S(){return{diameter:100}}});class Z extends L{constructor(de,ee,te,ce,J,me,x,i){super(de),this._document=te,this._diameter=100,this._value=0,this._resizeSubscription=d.w0.EMPTY,this.mode="determinate";const r=Z._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(te.head)||r.set(te.head,new Set([100])),this._noopAnimations="NoopAnimations"===ce&&!!J&&!J._forceAnimations,"mat-spinner"===de.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),J&&(J.diameter&&(this.diameter=J.diameter),J.strokeWidth&&(this.strokeWidth=J.strokeWidth)),ee.isBrowser&&ee.SAFARI&&x&&me&&i&&(this._resizeSubscription=x.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>me.markForCheck())}))}get diameter(){return this._diameter}set diameter(de){this._diameter=(0,t.su)(de),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(de){this._strokeWidth=(0,t.su)(de)}get value(){return"determinate"===this.mode?this._value:0}set value(de){this._value=Math.max(0,Math.min(100,(0,t.su)(de)))}ngOnInit(){const de=this._elementRef.nativeElement;this._styleRoot=(0,e.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 ee;const te=50*(null!==(ee=de.currentScale)&&void 0!==ee?ee:1);return`${te}% ${te}%`}_attachStyleNode(){const de=this._styleRoot,ee=this._diameter,te=Z._diameters;let ce=te.get(de);if(!ce||!ce.has(ee)){const J=this._document.createElement("style");J.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),J.textContent=this._getAnimationText(),de.appendChild(J),ce||(ce=new Set,te.set(de,ce)),ce.add(ee)}}_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(".","_")}}Z._diameters=new WeakMap,Z.\u0275fac=function(de){return new(de||Z)(M.Y36(M.SBq),M.Y36(e.t4),M.Y36(f.K0,8),M.Y36(b.Qb,8),M.Y36(k),M.Y36(M.sBO),M.Y36(P.rL),M.Y36(M.R0b))},Z.\u0275cmp=M.Xpm({type:Z,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(de,ee){2&de&&(M.uIk("aria-valuemin","determinate"===ee.mode?0:null)("aria-valuemax","determinate"===ee.mode?100:null)("aria-valuenow","determinate"===ee.mode?ee.value:null)("mode",ee.mode),M.Udp("width",ee.diameter,"px")("height",ee.diameter,"px"),M.ekj("_mat-animation-noopable",ee._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[M.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,ee){1&de&&(M.O4$(),M.TgZ(0,"svg",0,1),M.YNc(2,h,1,11,"circle",2),M.YNc(3,A,1,9,"circle",3),M.qZA()),2&de&&(M.Udp("width",ee.diameter,"px")("height",ee.diameter,"px"),M.Q6J("ngSwitch","indeterminate"===ee.mode),M.uIk("viewBox",ee._getViewBox()),M.xp6(2),M.Q6J("ngSwitchCase",!0),M.xp6(1),M.Q6J("ngSwitchCase",!1))},directives:[f.RF,f.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 j=(()=>{class X{}return X.\u0275fac=function(ee){return new(ee||X)},X.\u0275mod=M.oAB({type:X}),X.\u0275inj=M.cJS({imports:[[a.BQ,f.ez],a.BQ]}),X})()},9814:(Fe,Y,p)=>{"use strict";p.d(Y,{Fk:()=>te,U0:()=>ee,VQ:()=>j});var t=p(5e3),e=p(508),f=p(3191),M=p(3075),a=p(6360),b=p(5664),d=p(449);const P=["input"],h=function(ce){return{enterDuration:ce}},A=["*"],w=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function D(){return{color:"accent"}}});let L=0;const k={provide:M.JU,useExisting:(0,t.Gpc)(()=>j),multi:!0};class S{constructor(J,me){this.source=J,this.value=me}}const U=new t.OlP("MatRadioGroup");let Z=(()=>{class ce{constructor(me){this._changeDetector=me,this._value=null,this._name="mat-radio-group-"+L++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.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,f.Ig)(me),this._markRadiosForCheck()}get required(){return this._required}set required(me){this._required=(0,f.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 S(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 ce.\u0275fac=function(me){return new(me||ce)(t.Y36(t.sBO))},ce.\u0275dir=t.lG2({type:ce,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ce})(),j=(()=>{class ce extends Z{}return ce.\u0275fac=function(){let J;return function(x){return(J||(J=t.n5z(ce)))(x||ce)}}(),ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-radio-group"]],contentQueries:function(me,x,i){if(1&me&&t.Suo(i,ee,5),2&me){let r;t.iGM(r=t.CRH())&&(x._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([k,{provide:U,useExisting:ce}]),t.qOj]}),ce})();class ne{constructor(J){this._elementRef=J}}const X=(0,e.Kr)((0,e.sb)(ne));let de=(()=>{class ce extends X{constructor(me,x,i,r,u,c,_,E){super(x),this._changeDetector=i,this._focusMonitor=r,this._radioDispatcher=u,this._providerOverride=_,this._uniqueId="mat-radio-"+ ++L,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=me,this._noopAnimations="NoopAnimations"===c,E&&(this.tabIndex=(0,f.su)(E,0)),this._removeUniqueSelectionListener=u.listen((I,v)=>{I!==this.id&&v===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(me){const x=(0,f.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,f.Ig)(me))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(me){this._required=(0,f.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 S(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 i;if(i=x&&x.selected&&!this.disabled?x.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const r=null===(me=this._inputElement)||void 0===me?void 0:me.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}}return ce.\u0275fac=function(me){t.$Z()},ce.\u0275dir=t.lG2({type:ce,viewQuery:function(me,x){if(1&me&&t.Gf(P,5),2&me){let i;t.iGM(i=t.CRH())&&(x._inputElement=i.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:[t.qOj]}),ce})(),ee=(()=>{class ce extends de{constructor(me,x,i,r,u,c,_,E){super(me,x,i,r,u,c,_,E)}}return ce.\u0275fac=function(me){return new(me||ce)(t.Y36(U,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(b.tE),t.Y36(d.A8),t.Y36(a.Qb,8),t.Y36(w,8),t.$8M("tabindex"))},ce.\u0275cmp=t.Xpm({type:ce,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(me,x){1&me&&t.NdJ("focus",function(){return x._inputElement.nativeElement.focus()}),2&me&&(t.uIk("tabindex",null)("id",x.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.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:[t.qOj],ngContentSelectors:A,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&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(r){return x._onInputInteraction(r)})("click",function(r){return x._onInputClick(r)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&me){const i=t.MAs(1);t.uIk("for",x.inputId),t.xp6(5),t.Q6J("id",x.inputId)("checked",x.checked)("disabled",x.disabled)("required",x.required),t.uIk("name",x.name)("value",x.value)("aria-label",x.ariaLabel)("aria-labelledby",x.ariaLabelledby)("aria-describedby",x.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",x._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,h,x._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==x.labelPosition)}},directives:[e.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}),ce})(),te=(()=>{class ce{}return ce.\u0275fac=function(me){return new(me||ce)},ce.\u0275mod=t.oAB({type:ce}),ce.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),ce})()},4107:(Fe,Y,p)=>{"use strict";p.d(Y,{$L:()=>lt,LD:()=>se,gD:()=>Ae});var t=p(9776),e=p(9808),f=p(5e3),M=p(508),a=p(7322),b=p(5303),d=p(5664),P=p(3191),h=p(449),A=p(1159),w=p(3075),D=p(7579),L=p(9770),k=p(6451),S=p(8675),U=p(3900),Z=p(5698),j=p(9300),ne=p(4004),X=p(1884),de=p(2722),ee=p(1777),te=p(226);const ce=["trigger"],J=["panel"];function me(Te,ye){if(1&Te&&(f.TgZ(0,"span",8),f._uU(1),f.qZA()),2&Te){const W=f.oxw();f.xp6(1),f.Oqu(W.placeholder)}}function x(Te,ye){if(1&Te&&(f.TgZ(0,"span",12),f._uU(1),f.qZA()),2&Te){const W=f.oxw(2);f.xp6(1),f.Oqu(W.triggerValue)}}function i(Te,ye){1&Te&&f.Hsn(0,0,["*ngSwitchCase","true"])}function r(Te,ye){if(1&Te&&(f.TgZ(0,"span",9),f.YNc(1,x,2,1,"span",10),f.YNc(2,i,1,0,"ng-content",11),f.qZA()),2&Te){const W=f.oxw();f.Q6J("ngSwitch",!!W.customTrigger),f.xp6(2),f.Q6J("ngSwitchCase",!0)}}function u(Te,ye){if(1&Te){const W=f.EpF();f.TgZ(0,"div",13)(1,"div",14,15),f.NdJ("@transformPanel.done",function(ue){return f.CHM(W),f.oxw()._panelDoneAnimatingStream.next(ue.toState)})("keydown",function(ue){return f.CHM(W),f.oxw()._handleKeydown(ue)}),f.Hsn(3,1),f.qZA()()}if(2&Te){const W=f.oxw();f.Q6J("@transformPanelWrap",void 0),f.xp6(1),f.Gre("mat-select-panel ",W._getPanelTheme(),""),f.Udp("transform-origin",W._transformOrigin)("font-size",W._triggerFontSize,"px"),f.Q6J("ngClass",W.panelClass)("@transformPanel",W.multiple?"showing-multiple":"showing"),f.uIk("id",W.id+"-panel")("aria-multiselectable",W.multiple)("aria-label",W.ariaLabel||null)("aria-labelledby",W._getPanelAriaLabelledby())}}const c=[[["mat-select-trigger"]],"*"],_=["mat-select-trigger","*"],E={transformPanelWrap:(0,ee.X$)("transformPanelWrap",[(0,ee.eR)("* => void",(0,ee.IO)("@transformPanel",[(0,ee.pV)()],{optional:!0}))]),transformPanel:(0,ee.X$)("transformPanel",[(0,ee.SB)("void",(0,ee.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ee.SB)("showing",(0,ee.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ee.SB)("showing-multiple",(0,ee.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ee.eR)("void => *",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ee.eR)("* => void",(0,ee.jt)("100ms 25ms linear",(0,ee.oB)({opacity:0})))])};let C=0;const B=256,Re=new f.OlP("mat-select-scroll-strategy"),Q=new f.OlP("MAT_SELECT_CONFIG"),Ge={provide:Re,deps:[t.aV],useFactory:function we(Te){return()=>Te.scrollStrategies.reposition()}};class ve{constructor(ye,W){this.source=ye,this.value=W}}const F=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(Te,ye,W,$,ue){this._elementRef=Te,this._defaultErrorStateMatcher=ye,this._parentForm=W,this._parentFormGroup=$,this.ngControl=ue}})))),De=new f.OlP("MatSelectTrigger");let lt=(()=>{class Te{}return Te.\u0275fac=function(W){return new(W||Te)},Te.\u0275dir=f.lG2({type:Te,selectors:[["mat-select-trigger"]],features:[f._Bn([{provide:De,useExisting:Te}])]}),Te})(),Ie=(()=>{class Te extends F{constructor(W,$,ue,Ce,Le,ct,ut,Dt,di,Yt,Gt,ui,xt,Nt){var gt,et,vt;super(Le,Ce,ut,Dt,Yt),this._viewportRuler=W,this._changeDetectorRef=$,this._ngZone=ue,this._dir=ct,this._parentFormField=di,this._liveAnnouncer=xt,this._defaultOptions=Nt,this._panelOpen=!1,this._compareWith=($t,jt)=>$t===jt,this._uid="mat-select-"+C++,this._triggerAriaLabelledBy=null,this._destroy=new D.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+C++,this._panelDoneAnimatingStream=new D.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!==(vt=null===(et=this._defaultOptions)||void 0===et?void 0:et.disableOptionCentering)&&void 0!==vt&&vt,this.ariaLabel="",this.optionSelectionChanges=(0,L.P)(()=>{const $t=this.options;return $t?$t.changes.pipe((0,S.O)($t),(0,U.w)(()=>(0,k.T)(...$t.map(jt=>jt.onSelectionChange)))):this._ngZone.onStable.pipe((0,Z.q)(1),(0,U.w)(()=>this.optionSelectionChanges))}),this.openedChange=new f.vpe,this._openedStream=this.openedChange.pipe((0,j.h)($t=>$t),(0,ne.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,j.h)($t=>!$t),(0,ne.U)(()=>{})),this.selectionChange=new f.vpe,this.valueChange=new f.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Nt?void 0:Nt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Nt.typeaheadDebounceInterval),this._scrollStrategyFactory=ui,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(W){this._placeholder=W,this.stateChanges.next()}get required(){var W,$,ue,Ce;return null!==(Ce=null!==(W=this._required)&&void 0!==W?W:null===(ue=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===ue?void 0:ue.hasValidator(w.kI.required))&&void 0!==Ce&&Ce}set required(W){this._required=(0,P.Ig)(W),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(W){this._multiple=(0,P.Ig)(W)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(W){this._disableOptionCentering=(0,P.Ig)(W)}get compareWith(){return this._compareWith}set compareWith(W){this._compareWith=W,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(W){this._assignValue(W)&&this._onChange(W)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(W){this._typeaheadDebounceInterval=(0,P.su)(W)}get id(){return this._id}set id(W){this._id=W||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.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(W=>{W.added.forEach($=>$.select()),W.removed.forEach($=>$.deselect())}),this.options.changes.pipe((0,S.O)(null),(0,de.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const W=this._getTriggerAriaLabelledby(),$=this.ngControl;if(W!==this._triggerAriaLabelledBy){const ue=this._elementRef.nativeElement;this._triggerAriaLabelledBy=W,W?ue.setAttribute("aria-labelledby",W):ue.removeAttribute("aria-labelledby")}$&&(this._previousControl!==$.control&&(void 0!==this._previousControl&&null!==$.disabled&&$.disabled!==this.disabled&&(this.disabled=$.disabled),this._previousControl=$.control),this.updateErrorState())}ngOnChanges(W){W.disabled&&this.stateChanges.next(),W.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(W){this._assignValue(W)}registerOnChange(W){this._onChange=W}registerOnTouched(W){this._onTouched=W}setDisabledState(W){this.disabled=W,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var W,$;return this.multiple?(null===(W=this._selectionModel)||void 0===W?void 0:W.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const W=this._selectionModel.selected.map($=>$.viewValue);return this._isRtl()&&W.reverse(),W.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(W){this.disabled||(this.panelOpen?this._handleOpenKeydown(W):this._handleClosedKeydown(W))}_handleClosedKeydown(W){const $=W.keyCode,ue=$===A.JH||$===A.LH||$===A.oh||$===A.SV,Ce=$===A.K5||$===A.L_,Le=this._keyManager;if(!Le.isTyping()&&Ce&&!(0,A.Vb)(W)||(this.multiple||W.altKey)&&ue)W.preventDefault(),this.open();else if(!this.multiple){const ct=this.selected;Le.onKeydown(W);const ut=this.selected;ut&&ct!==ut&&this._liveAnnouncer.announce(ut.viewValue,1e4)}}_handleOpenKeydown(W){const $=this._keyManager,ue=W.keyCode,Ce=ue===A.JH||ue===A.LH,Le=$.isTyping();if(Ce&&W.altKey)W.preventDefault(),this.close();else if(Le||ue!==A.K5&&ue!==A.L_||!$.activeItem||(0,A.Vb)(W))if(!Le&&this._multiple&&ue===A.A&&W.ctrlKey){W.preventDefault();const ct=this.options.some(ut=>!ut.disabled&&!ut.selected);this.options.forEach(ut=>{ut.disabled||(ct?ut.select():ut.deselect())})}else{const ct=$.activeItemIndex;$.onKeydown(W),this._multiple&&Ce&&W.shiftKey&&$.activeItem&&$.activeItemIndex!==ct&&$.activeItem._selectViaInteraction()}else W.preventDefault(),$.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,Z.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(W){if(this._selectionModel.selected.forEach($=>$.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&W)Array.isArray(W),W.forEach($=>this._selectOptionByValue($)),this._sortValues();else{const $=this._selectOptionByValue(W);$?this._keyManager.updateActiveItem($):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(W){const $=this.options.find(ue=>{if(this._selectionModel.isSelected(ue))return!1;try{return null!=ue.value&&this._compareWith(ue.value,W)}catch(Ce){return!1}});return $&&this._selectionModel.select($),$}_assignValue(W){return!!(W!==this._value||this._multiple&&Array.isArray(W))&&(this.options&&this._setSelectionByValue(W),this._value=W,!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,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 W=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,de.R)(W)).subscribe($=>{this._onSelect($.source,$.isUserInput),$.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,k.T)(...this.options.map($=>$._stateChanges)).pipe((0,de.R)(W)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(W,$){const ue=this._selectionModel.isSelected(W);null!=W.value||this._multiple?(ue!==W.selected&&(W.selected?this._selectionModel.select(W):this._selectionModel.deselect(W)),$&&this._keyManager.setActiveItem(W),this.multiple&&(this._sortValues(),$&&this.focus())):(W.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(W.value)),ue!==this._selectionModel.isSelected(W)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const W=this.options.toArray();this._selectionModel.sort(($,ue)=>this.sortComparator?this.sortComparator($,ue,W):W.indexOf($)-W.indexOf(ue)),this.stateChanges.next()}}_propagateChanges(W){let $=null;$=this.multiple?this.selected.map(ue=>ue.value):this.selected?this.selected.value:W,this._value=$,this.valueChange.emit($),this._onChange($),this.selectionChange.emit(this._getChangeEvent($)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var W;return!this._panelOpen&&!this.disabled&&(null===(W=this.options)||void 0===W?void 0:W.length)>0}focus(W){this._elementRef.nativeElement.focus(W)}_getPanelAriaLabelledby(){var W;if(this.ariaLabel)return null;const $=null===(W=this._parentFormField)||void 0===W?void 0:W.getLabelId();return this.ariaLabelledby?($?$+" ":"")+this.ariaLabelledby:$}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var W;if(this.ariaLabel)return null;const $=null===(W=this._parentFormField)||void 0===W?void 0:W.getLabelId();let ue=($?$+" ":"")+this._valueId;return this.ariaLabelledby&&(ue+=" "+this.ariaLabelledby),ue}_panelDoneAnimating(W){this.openedChange.emit(W)}setDescribedByIds(W){this._ariaDescribedby=W.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Te.\u0275fac=function(W){return new(W||Te)(f.Y36(b.rL),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(M.rD),f.Y36(f.SBq),f.Y36(te.Is,8),f.Y36(w.F,8),f.Y36(w.sg,8),f.Y36(a.G_,8),f.Y36(w.a5,10),f.$8M("tabindex"),f.Y36(Re),f.Y36(d.Kd),f.Y36(Q,8))},Te.\u0275dir=f.lG2({type:Te,viewQuery:function(W,$){if(1&W&&(f.Gf(ce,5),f.Gf(J,5),f.Gf(t.pI,5)),2&W){let ue;f.iGM(ue=f.CRH())&&($.trigger=ue.first),f.iGM(ue=f.CRH())&&($.panel=ue.first),f.iGM(ue=f.CRH())&&($._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:[f.qOj,f.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(W,$,ue){const Ce=this._getItemHeight();return Math.min(Math.max(0,Ce*W-$+Ce/2),ue)}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,Z.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(W){const $=(0,M.CB)(W,this.options,this.optionGroups),ue=this._getItemHeight();this.panel.nativeElement.scrollTop=0===W&&1===$?0:(0,M.jH)((W+$)*ue,ue,this.panel.nativeElement.scrollTop,B)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(W){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(W)}_getChangeEvent(W){return new ve(this,W)}_calculateOverlayOffsetX(){const W=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),$=this._viewportRuler.getViewportSize(),ue=this._isRtl(),Ce=this.multiple?56:32;let Le;if(this.multiple)Le=40;else if(this.disableOptionCentering)Le=16;else{let Dt=this._selectionModel.selected[0]||this.options.first;Le=Dt&&Dt.group?32:16}ue||(Le*=-1);const ct=0-(W.left+Le-(ue?Ce:0)),ut=W.right+Le-$.width+(ue?0:Ce);ct>0?Le+=ct+8:ut>0&&(Le-=ut+8),this._overlayDir.offsetX=Math.round(Le),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(W,$,ue){const Ce=this._getItemHeight(),Le=(Ce-this._triggerRect.height)/2,ct=Math.floor(B/Ce);let ut;return this.disableOptionCentering?0:(ut=0===this._scrollTop?W*Ce:this._scrollTop===ue?(W-(this._getItemCount()-ct))*Ce+(Ce-(this._getItemCount()*Ce-B)%Ce):$-Ce/2,Math.round(-1*ut-Le))}_checkOverlayWithinViewport(W){const $=this._getItemHeight(),ue=this._viewportRuler.getViewportSize(),Ce=this._triggerRect.top-8,Le=ue.height-this._triggerRect.bottom-8,ct=Math.abs(this._offsetY),Dt=Math.min(this._getItemCount()*$,B)-ct-this._triggerRect.height;Dt>Le?this._adjustPanelUp(Dt,Le):ct>Ce?this._adjustPanelDown(ct,Ce,W):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(W,$){const ue=Math.round(W-$);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(W,$,ue){const Ce=Math.round(W-$);if(this._scrollTop+=Ce,this._offsetY+=Ce,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=ue)return this._scrollTop=ue,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const W=this._getItemHeight(),$=this._getItemCount(),ue=Math.min($*W,B),Le=$*W-ue;let ct;ct=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ct+=(0,M.CB)(ct,this.options,this.optionGroups);const ut=ue/2;this._scrollTop=this._calculateOverlayScroll(ct,ut,Le),this._offsetY=this._calculateOverlayOffsetY(ct,ut,Le),this._checkOverlayWithinViewport(Le)}_getOriginBasedOnOption(){const W=this._getItemHeight(),$=(W-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-$+W/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Te.\u0275fac=function(){let ye;return function($){return(ye||(ye=f.n5z(Te)))($||Te)}}(),Te.\u0275cmp=f.Xpm({type:Te,selectors:[["mat-select"]],contentQueries:function(W,$,ue){if(1&W&&(f.Suo(ue,De,5),f.Suo(ue,M.ey,5),f.Suo(ue,M.K7,5)),2&W){let Ce;f.iGM(Ce=f.CRH())&&($.customTrigger=Ce.first),f.iGM(Ce=f.CRH())&&($.options=Ce),f.iGM(Ce=f.CRH())&&($.optionGroups=Ce)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(W,$){1&W&&f.NdJ("keydown",function(Ce){return $._handleKeydown(Ce)})("focus",function(){return $._onFocus()})("blur",function(){return $._onBlur()}),2&W&&(f.uIk("id",$.id)("tabindex",$.tabIndex)("aria-controls",$.panelOpen?$.id+"-panel":null)("aria-expanded",$.panelOpen)("aria-label",$.ariaLabel||null)("aria-required",$.required.toString())("aria-disabled",$.disabled.toString())("aria-invalid",$.errorState)("aria-describedby",$._ariaDescribedby||null)("aria-activedescendant",$._getAriaActiveDescendant()),f.ekj("mat-select-disabled",$.disabled)("mat-select-invalid",$.errorState)("mat-select-required",$.required)("mat-select-empty",$.empty)("mat-select-multiple",$.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[f._Bn([{provide:a.Eo,useExisting:Te},{provide:M.HF,useExisting:Te}]),f.qOj],ngContentSelectors:_,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(W,$){if(1&W&&(f.F$t(c),f.TgZ(0,"div",0,1),f.NdJ("click",function(){return $.toggle()}),f.TgZ(3,"div",2),f.YNc(4,me,2,1,"span",3),f.YNc(5,r,3,2,"span",4),f.qZA(),f.TgZ(6,"div",5),f._UZ(7,"div",6),f.qZA()(),f.YNc(8,u,4,14,"ng-template",7),f.NdJ("backdropClick",function(){return $.close()})("attach",function(){return $._onAttached()})("detach",function(){return $.close()})),2&W){const ue=f.MAs(1);f.uIk("aria-owns",$.panelOpen?$.id+"-panel":null),f.xp6(3),f.Q6J("ngSwitch",$.empty),f.uIk("id",$._valueId),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1),f.xp6(3),f.Q6J("cdkConnectedOverlayPanelClass",$._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",$._scrollStrategy)("cdkConnectedOverlayOrigin",ue)("cdkConnectedOverlayOpen",$.panelOpen)("cdkConnectedOverlayPositions",$._positions)("cdkConnectedOverlayMinWidth",null==$._triggerRect?null:$._triggerRect.width)("cdkConnectedOverlayOffsetY",$._offsetY)}},directives:[t.xu,e.RF,e.n9,e.ED,t.pI,e.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:[E.transformPanelWrap,E.transformPanel]},changeDetection:0}),Te})(),se=(()=>{class Te{}return Te.\u0275fac=function(W){return new(W||Te)},Te.\u0275mod=f.oAB({type:Te}),Te.\u0275inj=f.cJS({providers:[Ge],imports:[[e.ez,t.U8,M.Ng,M.BQ],b.ZD,a.lN,M.Ng,M.BQ]}),Te})()},2638:(Fe,Y,p)=>{"use strict";p.d(Y,{JX:()=>be,Rh:()=>ge,SJ:()=>we,TM:()=>Re});var t=p(5303),e=p(9808),f=p(5e3),M=p(508),a=p(3191),b=p(1159),d=p(7579),P=p(4968),h=p(6451),A=p(9300),w=p(4004),D=p(9718),L=p(2722),k=p(1884),S=p(5698),U=p(8675),Z=p(8372),j=p(1777),ne=p(6360),X=p(5664),de=p(925),ee=p(226);const te=["*"],ce=["content"];function J(Q,Ge){if(1&Q){const ve=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(ve),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&Q){const ve=f.oxw();f.ekj("mat-drawer-shown",ve._isShowingBackdrop())}}function me(Q,Ge){1&Q&&(f.TgZ(0,"mat-drawer-content"),f.Hsn(1,2),f.qZA())}const x=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],i=["mat-drawer","mat-drawer-content","*"];function r(Q,Ge){if(1&Q){const ve=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(ve),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&Q){const ve=f.oxw();f.ekj("mat-drawer-shown",ve._isShowingBackdrop())}}function u(Q,Ge){1&Q&&(f.TgZ(0,"mat-sidenav-content"),f.Hsn(1,2),f.qZA())}const c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_=["mat-sidenav","mat-sidenav-content","*"],I={transformDrawer:(0,j.X$)("transform",[(0,j.SB)("open, open-instant",(0,j.oB)({transform:"none",visibility:"visible"})),(0,j.SB)("void",(0,j.oB)({"box-shadow":"none",visibility:"hidden"})),(0,j.eR)("void => open-instant",(0,j.jt)("0ms")),(0,j.eR)("void <=> open, open-instant => void",(0,j.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},n=new f.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function B(){return!1}}),C=new f.OlP("MAT_DRAWER_CONTAINER");let N=(()=>{class Q extends t.PQ{constructor(ve,F,De,lt,Ie){super(De,lt,Ie),this._changeDetectorRef=ve,this._container=F}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Q.\u0275fac=function(ve){return new(ve||Q)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>oe)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(ve,F){2&ve&&f.Udp("margin-left",F._container._contentMargins.left,"px")("margin-right",F._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:Q}]),f.qOj],ngContentSelectors:te,decls:1,vars:0,template:function(ve,F){1&ve&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),Q})(),z=(()=>{class Q{constructor(ve,F,De,lt,Ie,Ae,se,Te){this._elementRef=ve,this._focusTrapFactory=F,this._focusMonitor=De,this._platform=lt,this._ngZone=Ie,this._interactivityChecker=Ae,this._doc=se,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 f.vpe(!0),this._openedStream=this.openedChange.pipe((0,A.h)(ye=>ye),(0,w.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,A.h)(ye=>ye.fromState!==ye.toState&&0===ye.toState.indexOf("open")),(0,D.h)(void 0)),this._closedStream=this.openedChange.pipe((0,A.h)(ye=>!ye),(0,w.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,A.h)(ye=>ye.fromState!==ye.toState&&"void"===ye.toState),(0,D.h)(void 0)),this._destroyed=new d.x,this.onPositionChanged=new f.vpe,this._modeChanged=new d.x,this.openedChange.subscribe(ye=>{ye?(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,A.h)(ye=>ye.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(ye)),(0,L.R)(this._destroyed)).subscribe(ye=>this._ngZone.run(()=>{this.close(),ye.stopPropagation(),ye.preventDefault()}))}),this._animationEnd.pipe((0,k.x)((ye,W)=>ye.fromState===W.fromState&&ye.toState===W.toState)).subscribe(ye=>{const{fromState:W,toState:$}=ye;(0===$.indexOf("open")&&"void"===W||"void"===$&&0===W.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(ve){(ve="end"===ve?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(ve),this._position=ve,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(ve){this._mode=ve,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(ve){this._disableClose=(0,a.Ig)(ve)}get autoFocus(){const ve=this._autoFocus;return null==ve?"side"===this.mode?"dialog":"first-tabbable":ve}set autoFocus(ve){("true"===ve||"false"===ve||null==ve)&&(ve=(0,a.Ig)(ve)),this._autoFocus=ve}get opened(){return this._opened}set opened(ve){this.toggle((0,a.Ig)(ve))}_forceFocus(ve,F){this._interactivityChecker.isFocusable(ve)||(ve.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const De=()=>{ve.removeEventListener("blur",De),ve.removeEventListener("mousedown",De),ve.removeAttribute("tabindex")};ve.addEventListener("blur",De),ve.addEventListener("mousedown",De)})),ve.focus(F)}_focusByCssSelector(ve,F){let De=this._elementRef.nativeElement.querySelector(ve);De&&this._forceFocus(De,F)}_takeFocus(){if(!this._focusTrap)return;const ve=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(F=>{!F&&"function"==typeof this._elementRef.nativeElement.focus&&ve.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(ve){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,ve):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const ve=this._doc.activeElement;return!!ve&&this._elementRef.nativeElement.contains(ve)}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 ve;this._focusTrap&&this._focusTrap.destroy(),null===(ve=this._anchor)||void 0===ve||ve.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(ve){return this.toggle(!0,ve)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ve=!this.opened,F){ve&&F&&(this._openedVia=F);const De=this._setOpen(ve,!ve&&this._isFocusWithinDrawer(),this._openedVia||"program");return ve||(this._openedVia=null),De}_setOpen(ve,F,De){return this._opened=ve,ve?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",F&&this._restoreFocus(De)),this._updateFocusTrapState(),new Promise(lt=>{this.openedChange.pipe((0,S.q)(1)).subscribe(Ie=>lt(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(ve){const F=this._elementRef.nativeElement,De=F.parentNode;"end"===ve?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),De.insertBefore(this._anchor,F)),De.appendChild(F)):this._anchor&&this._anchor.parentNode.insertBefore(F,this._anchor)}}return Q.\u0275fac=function(ve){return new(ve||Q)(f.Y36(f.SBq),f.Y36(X.qV),f.Y36(X.tE),f.Y36(de.t4),f.Y36(f.R0b),f.Y36(X.ic),f.Y36(e.K0,8),f.Y36(C,8))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-drawer"]],viewQuery:function(ve,F){if(1&ve&&f.Gf(ce,5),2&ve){let De;f.iGM(De=f.CRH())&&(F._content=De.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ve,F){1&ve&&f.WFA("@transform.start",function(lt){return F._animationStarted.next(lt)})("@transform.done",function(lt){return F._animationEnd.next(lt)}),2&ve&&(f.uIk("align",null),f.d8E("@transform",F._animationState),f.ekj("mat-drawer-end","end"===F.position)("mat-drawer-over","over"===F.mode)("mat-drawer-push","push"===F.mode)("mat-drawer-side","side"===F.mode)("mat-drawer-opened",F.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:te,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ve,F){1&ve&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),Q})(),oe=(()=>{class Q{constructor(ve,F,De,lt,Ie,Ae=!1,se){this._dir=ve,this._element=F,this._ngZone=De,this._changeDetectorRef=lt,this._animationMode=se,this._drawers=new f.n_E,this.backdropClick=new f.vpe,this._destroyed=new d.x,this._doCheckSubject=new d.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.x,ve&&ve.change.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ie.change().pipe((0,L.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(ve){this._autosize=(0,a.Ig)(ve)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(ve){this._backdropOverride=null==ve?null:(0,a.Ig)(ve)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,U.O)(this._allDrawers),(0,L.R)(this._destroyed)).subscribe(ve=>{this._drawers.reset(ve.filter(F=>!F._container||F._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,U.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(ve=>{this._watchDrawerToggle(ve),this._watchDrawerPosition(ve),this._watchDrawerMode(ve)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Z.b)(10),(0,L.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(ve=>ve.open())}close(){this._drawers.forEach(ve=>ve.close())}updateContentMargins(){let ve=0,F=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ve+=this._left._getWidth();else if("push"==this._left.mode){const De=this._left._getWidth();ve+=De,F-=De}if(this._right&&this._right.opened)if("side"==this._right.mode)F+=this._right._getWidth();else if("push"==this._right.mode){const De=this._right._getWidth();F+=De,ve-=De}ve=ve||null,F=F||null,(ve!==this._contentMargins.left||F!==this._contentMargins.right)&&(this._contentMargins={left:ve,right:F},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(ve){ve._animationStarted.pipe((0,A.h)(F=>F.fromState!==F.toState),(0,L.R)(this._drawers.changes)).subscribe(F=>{"open-instant"!==F.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ve.mode&&ve.openedChange.pipe((0,L.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ve.opened))}_watchDrawerPosition(ve){!ve||ve.onPositionChanged.pipe((0,L.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,S.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(ve){ve&&ve._modeChanged.pipe((0,L.R)((0,h.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ve){const F=this._element.nativeElement.classList,De="mat-drawer-container-has-open";ve?F.add(De):F.remove(De)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(ve=>{"end"==ve.position?this._end=ve:this._start=ve}),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(ve=>ve&&!ve.disableClose&&this._canHaveBackdrop(ve)).forEach(ve=>ve._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(ve){return"side"!==ve.mode||!!this._backdropOverride}_isDrawerOpen(ve){return null!=ve&&ve.opened}}return Q.\u0275fac=function(ve){return new(ve||Q)(f.Y36(ee.Is,8),f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(t.rL),f.Y36(n),f.Y36(ne.Qb,8))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-drawer-container"]],contentQueries:function(ve,F,De){if(1&ve&&(f.Suo(De,N,5),f.Suo(De,z,5)),2&ve){let lt;f.iGM(lt=f.CRH())&&(F._content=lt.first),f.iGM(lt=f.CRH())&&(F._allDrawers=lt)}},viewQuery:function(ve,F){if(1&ve&&f.Gf(N,5),2&ve){let De;f.iGM(De=f.CRH())&&(F._userContent=De.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ve,F){2&ve&&f.ekj("mat-drawer-container-explicit-backdrop",F._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[f._Bn([{provide:C,useExisting:Q}])],ngContentSelectors:i,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(ve,F){1&ve&&(f.F$t(x),f.YNc(0,J,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,me,2,0,"mat-drawer-content",1)),2&ve&&(f.Q6J("ngIf",F.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!F._content))},directives:[N,e.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}),Q})(),ge=(()=>{class Q extends N{constructor(ve,F,De,lt,Ie){super(ve,F,De,lt,Ie)}}return Q.\u0275fac=function(ve){return new(ve||Q)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>Re)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(ve,F){2&ve&&f.Udp("margin-left",F._container._contentMargins.left,"px")("margin-right",F._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:Q}]),f.qOj],ngContentSelectors:te,decls:1,vars:0,template:function(ve,F){1&ve&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),Q})(),be=(()=>{class Q extends z{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(ve){this._fixedInViewport=(0,a.Ig)(ve)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(ve){this._fixedTopGap=(0,a.su)(ve)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(ve){this._fixedBottomGap=(0,a.su)(ve)}}return Q.\u0275fac=function(){let Ge;return function(F){return(Ge||(Ge=f.n5z(Q)))(F||Q)}}(),Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(ve,F){2&ve&&(f.uIk("align",null),f.Udp("top",F.fixedInViewport?F.fixedTopGap:null,"px")("bottom",F.fixedInViewport?F.fixedBottomGap:null,"px"),f.ekj("mat-drawer-end","end"===F.position)("mat-drawer-over","over"===F.mode)("mat-drawer-push","push"===F.mode)("mat-drawer-side","side"===F.mode)("mat-drawer-opened",F.opened)("mat-sidenav-fixed",F.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[f.qOj],ngContentSelectors:te,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ve,F){1&ve&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),Q})(),Re=(()=>{class Q extends oe{}return Q.\u0275fac=function(){let Ge;return function(F){return(Ge||(Ge=f.n5z(Q)))(F||Q)}}(),Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-sidenav-container"]],contentQueries:function(ve,F,De){if(1&ve&&(f.Suo(De,ge,5),f.Suo(De,be,5)),2&ve){let lt;f.iGM(lt=f.CRH())&&(F._content=lt.first),f.iGM(lt=f.CRH())&&(F._allDrawers=lt)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(ve,F){2&ve&&f.ekj("mat-drawer-container-explicit-backdrop",F._backdropOverride)},exportAs:["matSidenavContainer"],features:[f._Bn([{provide:C,useExisting:Q}]),f.qOj],ngContentSelectors:_,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(ve,F){1&ve&&(f.F$t(c),f.YNc(0,r,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,u,2,0,"mat-sidenav-content",1)),2&ve&&(f.Q6J("ngIf",F.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!F._content))},directives:[ge,e.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}),Q})(),we=(()=>{class Q{}return Q.\u0275fac=function(ve){return new(ve||Q)},Q.\u0275mod=f.oAB({type:Q}),Q.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.ZD],t.ZD,M.BQ]}),Q})()},2368:(Fe,Y,p)=>{"use strict";p.d(Y,{Rr:()=>j,rP:()=>ee});var t=p(7144),e=p(5e3),f=p(508),M=p(3191),a=p(3075),b=p(6360),d=p(5664);const P=["thumbContainer"],h=["toggleBar"],A=["input"],w=function(te){return{enterDuration:te}},D=["*"],L=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let k=0;const S={provide:a.JU,useExisting:(0,e.Gpc)(()=>j),multi:!0};class U{constructor(ce,J){this.source=ce,this.checked=J}}const Z=(0,f.sb)((0,f.pj)((0,f.Kr)((0,f.Id)(class{constructor(te){this._elementRef=te}}))));let j=(()=>{class te extends Z{constructor(J,me,x,i,r,u){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 e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===u}get required(){return this._required}set required(J){this._required=(0,M.Ig)(J)}get checked(){return this._checked}set checked(J){this._checked=(0,M.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 U(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return te.\u0275fac=function(J){return new(J||te)(e.Y36(e.SBq),e.Y36(d.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(L),e.Y36(b.Qb,8))},te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-slide-toggle"]],viewQuery:function(J,me){if(1&J&&(e.Gf(P,5),e.Gf(h,5),e.Gf(A,5)),2&J){let x;e.iGM(x=e.CRH())&&(me._thumbEl=x.first),e.iGM(x=e.CRH())&&(me._thumbBarEl=x.first),e.iGM(x=e.CRH())&&(me._inputElement=x.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(J,me){2&J&&(e.Ikx("id",me.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),e.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:[e._Bn([S]),e.qOj],ngContentSelectors:D,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&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),e.NdJ("change",function(i){return me._onChangeEvent(i)})("click",function(i){return me._onInputClick(i)}),e.qZA(),e.TgZ(6,"span",6,7),e._UZ(8,"span",8),e.TgZ(9,"span",9),e._UZ(10,"span",10),e.qZA()()(),e.TgZ(11,"span",11,12),e.NdJ("cdkObserveContent",function(){return me._onLabelTextChange()}),e.TgZ(13,"span",13),e._uU(14,"\xa0"),e.qZA(),e.Hsn(15),e.qZA()()),2&J){const x=e.MAs(1),i=e.MAs(12);e.uIk("for",me.inputId),e.xp6(2),e.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(2),e.Q6J("id",me.inputId)("required",me.required)("tabIndex",me.tabIndex)("checked",me.checked)("disabled",me.disabled),e.uIk("name",me.name)("aria-checked",me.checked)("aria-label",me.ariaLabel)("aria-labelledby",me.ariaLabelledby)("aria-describedby",me.ariaDescribedby),e.xp6(5),e.Q6J("matRippleTrigger",x)("matRippleDisabled",me.disableRipple||me.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,w,me._noopAnimations?0:150))}},directives:[f.wG,t.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}),te})(),de=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({}),te})(),ee=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({imports:[[de,f.si,f.BQ,t.Q8],de,f.BQ]}),te})()},7261:(Fe,Y,p)=>{"use strict";p.d(Y,{Ve:()=>ce,ZX:()=>te,ux:()=>x});var t=p(9776),e=p(7429),f=p(9808),M=p(5e3),a=p(508),b=p(7423),d=p(7579),P=p(5698),h=p(2722),A=p(1777),w=p(925),D=p(5113),L=p(5664);function k(i,r){if(1&i){const u=M.EpF();M.TgZ(0,"div",2)(1,"button",3),M.NdJ("click",function(){return M.CHM(u),M.oxw().action()}),M._uU(2),M.qZA()()}if(2&i){const u=M.oxw();M.xp6(2),M.Oqu(u.data.action)}}function S(i,r){}const U=new M.OlP("MatSnackBarData");class Z{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const j=Math.pow(2,31)-1;class ne{constructor(r,u){this._overlayRef=u,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,j))}_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 i{constructor(u,c){this.snackBarRef=u,this.data=c}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(ne),M.Y36(U))},i.\u0275cmp=M.Xpm({type:i,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(u,c){1&u&&(M.TgZ(0,"span",0),M._uU(1),M.qZA(),M.YNc(2,k,3,1,"div",1)),2&u&&(M.xp6(1),M.Oqu(c.data.message),M.xp6(1),M.Q6J("ngIf",c.hasAction))},directives:[b.lW,f.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}),i})();const de={snackBarState:(0,A.X$)("state",[(0,A.SB)("void, hidden",(0,A.oB)({transform:"scale(0.8)",opacity:0})),(0,A.SB)("visible",(0,A.oB)({transform:"scale(1)",opacity:1})),(0,A.eR)("* => visible",(0,A.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,A.eR)("* => void, * => hidden",(0,A.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,A.oB)({opacity:0})))])};let ee=(()=>{class i extends e.en{constructor(u,c,_,E,I){super(),this._ngZone=u,this._elementRef=c,this._changeDetectorRef=_,this._platform=E,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=v=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(v)),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(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(u)}attachTemplatePortal(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(u)}onAnimationEnd(u){const{fromState:c,toState:_}=u;if(("void"===_&&"void"!==c||"hidden"===_)&&this._completeExit(),"visible"===_){const E=this._onEnter;this._ngZone.run(()=>{E.next(),E.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 u=this._elementRef.nativeElement,c=this.snackBarConfig.panelClass;c&&(Array.isArray(c)?c.forEach(_=>u.classList.add(_)):u.classList.add(c)),"center"===this.snackBarConfig.horizontalPosition&&u.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&u.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const u=this._elementRef.nativeElement.querySelector("[aria-hidden]"),c=this._elementRef.nativeElement.querySelector("[aria-live]");if(u&&c){let _=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&u.contains(document.activeElement)&&(_=document.activeElement),u.removeAttribute("aria-hidden"),c.appendChild(u),null==_||_.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(M.R0b),M.Y36(M.SBq),M.Y36(M.sBO),M.Y36(w.t4),M.Y36(Z))},i.\u0275cmp=M.Xpm({type:i,selectors:[["snack-bar-container"]],viewQuery:function(u,c){if(1&u&&M.Gf(e.Pl,7),2&u){let _;M.iGM(_=M.CRH())&&(c._portalOutlet=_.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(u,c){1&u&&M.WFA("@state.done",function(E){return c.onAnimationEnd(E)}),2&u&&M.d8E("@state",c._animationState)},features:[M.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(u,c){1&u&&(M.TgZ(0,"div",0),M.YNc(1,S,0,0,"ng-template",1),M.qZA(),M._UZ(2,"div")),2&u&&(M.xp6(2),M.uIk("aria-live",c._live)("role",c._role))},directives:[e.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]}}),i})(),te=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=M.oAB({type:i}),i.\u0275inj=M.cJS({imports:[[t.U8,e.eL,f.ez,b.ot,a.BQ],a.BQ]}),i})();const ce=new M.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function J(){return new Z}});let me=(()=>{class i{constructor(u,c,_,E,I,v){this._overlay=u,this._live=c,this._injector=_,this._breakpointObserver=E,this._parentSnackBar=I,this._defaultConfig=v,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}openFromComponent(u,c){return this._attach(u,c)}openFromTemplate(u,c){return this._attach(u,c)}open(u,c="",_){const E=Object.assign(Object.assign({},this._defaultConfig),_);return E.data={message:u,action:c},E.announcementMessage===u&&(E.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,E)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,c){const E=M.zs3.create({parent:c&&c.viewContainerRef&&c.viewContainerRef.injector||this._injector,providers:[{provide:Z,useValue:c}]}),I=new e.C5(this.snackBarContainerComponent,c.viewContainerRef,E),v=u.attach(I);return v.instance.snackBarConfig=c,v.instance}_attach(u,c){const _=Object.assign(Object.assign(Object.assign({},new Z),this._defaultConfig),c),E=this._createOverlay(_),I=this._attachSnackBarContainer(E,_),v=new ne(I,E);if(u instanceof M.Rgc){const n=new e.UE(u,null,{$implicit:_.data,snackBarRef:v});v.instance=I.attachTemplatePortal(n)}else{const n=this._createInjector(_,v),C=new e.C5(u,void 0,n),B=I.attachComponentPortal(C);v.instance=B.instance}return this._breakpointObserver.observe(D.u3.HandsetPortrait).pipe((0,h.R)(E.detachments())).subscribe(n=>{E.overlayElement.classList.toggle(this.handsetCssClass,n.matches)}),_.announcementMessage&&I._onAnnounce.subscribe(()=>{this._live.announce(_.announcementMessage,_.politeness)}),this._animateSnackBar(v,_),this._openedSnackBarRef=v,this._openedSnackBarRef}_animateSnackBar(u,c){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),c.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter(),c.duration&&c.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(c.duration))}_createOverlay(u){const c=new t.X_;c.direction=u.direction;let _=this._overlay.position().global();const E="rtl"===u.direction,I="left"===u.horizontalPosition||"start"===u.horizontalPosition&&!E||"end"===u.horizontalPosition&&E,v=!I&&"center"!==u.horizontalPosition;return I?_.left("0"):v?_.right("0"):_.centerHorizontally(),"top"===u.verticalPosition?_.top("0"):_.bottom("0"),c.positionStrategy=_,this._overlay.create(c)}_createInjector(u,c){return M.zs3.create({parent:u&&u.viewContainerRef&&u.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:c},{provide:U,useValue:u.data}]})}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(L.Kd),M.LFG(M.zs3),M.LFG(D.Yg),M.LFG(i,12),M.LFG(ce))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac}),i})(),x=(()=>{class i extends me{constructor(u,c,_,E,I,v){super(u,c,_,E,I,v),this.simpleSnackBarComponent=X,this.snackBarContainerComponent=ee,this.handsetCssClass="mat-snack-bar-handset"}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(L.Kd),M.LFG(M.zs3),M.LFG(D.Yg),M.LFG(i,12),M.LFG(ce))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac,providedIn:te}),i})()},4847:(Fe,Y,p)=>{"use strict";p.d(Y,{JX:()=>i,YE:()=>ce,nU:()=>x});var t=p(5e3),e=p(3191),f=p(1159),M=p(508),a=p(7579),b=p(6451),d=p(1777),P=p(5664),h=p(9808);const A=["mat-sort-header",""];function w(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!1}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&r){const c=t.oxw();t.Q6J("@arrowOpacity",c._getArrowViewState())("@arrowPosition",c._getArrowViewState())("@allowChildren",c._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",c._getArrowDirectionState())}}const D=["*"],L=M.mZ.ENTERING+" "+M.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)(L))]),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)(L))]),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)(L))]),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)(L))]),arrowPosition:(0,d.X$)("arrowPosition",[(0,d.eR)("* => desc-to-hint, * => desc-to-active",(0,d.jt)(L,(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)(L,(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)(L,(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)(L,(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=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const de={provide:ne,deps:[[new t.FiY,new t.tp0,ne]],useFactory:function X(r){return r||new ne}},ee=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),te=(0,M.dB)((0,M.Id)(class{}));let ce=(()=>{class r extends te{constructor(c){super(),this._defaultOptions=c,this.sortables=new Map,this._stateChanges=new a.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}get direction(){return this._direction}set direction(c){this._direction=c}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,e.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 _,E,I;if(!c)return"";const v=null!==(E=null!==(_=null==c?void 0:c.disableClear)&&void 0!==_?_:this.disableClear)&&void 0!==E?E:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let n=function J(r,u){let c=["asc","desc"];return"desc"==r&&c.reverse(),u||c.push(""),c}(c.start||this.start,v),C=n.indexOf(this.direction)+1;return C>=n.length&&(C=0),n[C]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(c){return new(c||r)(t.Y36(ee,8))},r.\u0275dir=t.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:[t.qOj,t.TTD]}),r})();const me=(0,M.Id)(class{});let x=(()=>{class r extends me{constructor(c,_,E,I,v,n,C){super(),this._intl=c,this._changeDetectorRef=_,this._sort=E,this._columnDef=I,this._focusMonitor=v,this._elementRef=n,this._ariaDescriber=C,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,e.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;_!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_),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===f.L_||c.keyCode===f.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 _,E;this._sortButton&&(null===(_=this._ariaDescriber)||void 0===_||_.removeDescription(this._sortButton,this._sortActionDescription),null===(E=this._ariaDescriber)||void 0===E||E.describe(this._sortButton,c)),this._sortActionDescription=c}_handleStateChanges(){this._rerenderSubscription=(0,b.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)(t.Y36(ne),t.Y36(t.sBO),t.Y36(ce,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(P.tE),t.Y36(t.SBq),t.Y36(P.$s,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(c,_){1&c&&t.NdJ("click",function(){return _._handleClick()})("keydown",function(I){return _._handleKeydown(I)})("mouseenter",function(){return _._setIndicatorHintVisible(!0)})("mouseleave",function(){return _._setIndicatorHintVisible(!1)}),2&c&&(t.uIk("aria-sort",_._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",_._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:A,ngContentSelectors:D,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,_){1&c&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,w,6,6,"div",2),t.qZA()),2&c&&(t.ekj("mat-sort-header-sorted",_._isSorted())("mat-sort-header-position-before","before"==_.arrowPosition),t.uIk("tabindex",_._isDisabled()?null:0)("role",_._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",_._renderArrow()))},directives:[h.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})(),i=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({providers:[de],imports:[[h.ez,M.BQ]]}),r})()},5615:(Fe,Y,p)=>{"use strict";p.d(Y,{C0:()=>ve,Ic:()=>Ae,T5:()=>Te,VY:()=>N,Vq:()=>Ie,fd:()=>se,z9:()=>Q});var t=p(7429),e=p(1555),f=p(9808),M=p(5e3),a=p(7423),b=p(508),d=p(5245),P=p(7579),h=p(727),A=p(5664),w=p(3900),D=p(4004),L=p(8675),k=p(2722),S=p(1884),U=p(1777),Z=p(226);function j(ye,W){if(1&ye&&M.GkF(0,8),2&ye){const $=M.oxw();M.Q6J("ngTemplateOutlet",$.iconOverrides[$.state])("ngTemplateOutletContext",$._getIconContext())}}function ne(ye,W){if(1&ye&&(M.TgZ(0,"span",13),M._uU(1),M.qZA()),2&ye){const $=M.oxw(2);M.xp6(1),M.Oqu($._getDefaultTextForState($.state))}}function X(ye,W){if(1&ye&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&ye){const $=M.oxw(2);M.xp6(1),M.Oqu($._intl.completedLabel)}}function de(ye,W){if(1&ye&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&ye){const $=M.oxw(2);M.xp6(1),M.Oqu($._intl.editableLabel)}}function ee(ye,W){if(1&ye&&(M.TgZ(0,"mat-icon",13),M._uU(1),M.qZA()),2&ye){const $=M.oxw(2);M.xp6(1),M.Oqu($._getDefaultTextForState($.state))}}function te(ye,W){if(1&ye&&(M.ynx(0,9),M.YNc(1,ne,2,1,"span",10),M.YNc(2,X,2,1,"span",11),M.YNc(3,de,2,1,"span",11),M.YNc(4,ee,2,1,"mat-icon",12),M.BQk()),2&ye){const $=M.oxw();M.Q6J("ngSwitch",$.state),M.xp6(1),M.Q6J("ngSwitchCase","number"),M.xp6(1),M.Q6J("ngIf","done"===$.state),M.xp6(1),M.Q6J("ngIf","edit"===$.state)}}function ce(ye,W){if(1&ye&&(M.TgZ(0,"div",15),M.GkF(1,16),M.qZA()),2&ye){const $=M.oxw();M.xp6(1),M.Q6J("ngTemplateOutlet",$._templateLabel().template)}}function J(ye,W){if(1&ye&&(M.TgZ(0,"div",15),M._uU(1),M.qZA()),2&ye){const $=M.oxw();M.xp6(1),M.Oqu($.label)}}function me(ye,W){if(1&ye&&(M.TgZ(0,"div",17),M._uU(1),M.qZA()),2&ye){const $=M.oxw();M.xp6(1),M.Oqu($._intl.optionalLabel)}}function x(ye,W){if(1&ye&&(M.TgZ(0,"div",18),M._uU(1),M.qZA()),2&ye){const $=M.oxw();M.xp6(1),M.Oqu($.errorMessage)}}function i(ye,W){}function r(ye,W){if(1&ye&&(M.Hsn(0),M.YNc(1,i,0,0,"ng-template",0)),2&ye){const $=M.oxw();M.xp6(1),M.Q6J("cdkPortalOutlet",$._portal)}}const u=["*"];function c(ye,W){1&ye&&M._UZ(0,"div",9)}const _=function(ye,W){return{step:ye,i:W}};function E(ye,W){if(1&ye&&(M.ynx(0),M.GkF(1,7),M.YNc(2,c,1,0,"div",8),M.BQk()),2&ye){const $=W.$implicit,ue=W.index,Ce=W.last;M.oxw(2);const Le=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",Le)("ngTemplateOutletContext",M.WLB(3,_,$,ue)),M.xp6(1),M.Q6J("ngIf",!Ce)}}function I(ye,W){if(1&ye){const $=M.EpF();M.TgZ(0,"div",10),M.NdJ("@horizontalStepTransition.done",function(Ce){return M.CHM($),M.oxw(2)._animationDone.next(Ce)}),M.GkF(1,11),M.qZA()}if(2&ye){const $=W.$implicit,ue=W.index,Ce=M.oxw(2);M.Q6J("@horizontalStepTransition",Ce._getAnimationDirection(ue))("id",Ce._getStepContentId(ue)),M.uIk("aria-labelledby",Ce._getStepLabelId(ue))("aria-expanded",Ce.selectedIndex===ue),M.xp6(1),M.Q6J("ngTemplateOutlet",$.content)}}function v(ye,W){if(1&ye&&(M.ynx(0),M.TgZ(1,"div",3),M.YNc(2,E,3,6,"ng-container",4),M.qZA(),M.TgZ(3,"div",5),M.YNc(4,I,2,5,"div",6),M.qZA(),M.BQk()),2&ye){const $=M.oxw();M.xp6(2),M.Q6J("ngForOf",$.steps),M.xp6(2),M.Q6J("ngForOf",$.steps)}}function n(ye,W){if(1&ye){const $=M.EpF();M.TgZ(0,"div",13),M.GkF(1,7),M.TgZ(2,"div",14)(3,"div",15),M.NdJ("@verticalStepTransition.done",function(Ce){return M.CHM($),M.oxw(2)._animationDone.next(Ce)}),M.TgZ(4,"div",16),M.GkF(5,11),M.qZA()()()()}if(2&ye){const $=W.$implicit,ue=W.index,Ce=W.last,Le=M.oxw(2),ct=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",M.WLB(9,_,$,ue)),M.xp6(1),M.ekj("mat-stepper-vertical-line",!Ce),M.xp6(1),M.Q6J("@verticalStepTransition",Le._getAnimationDirection(ue))("id",Le._getStepContentId(ue)),M.uIk("aria-labelledby",Le._getStepLabelId(ue))("aria-expanded",Le.selectedIndex===ue),M.xp6(2),M.Q6J("ngTemplateOutlet",$.content)}}function C(ye,W){if(1&ye&&(M.ynx(0),M.YNc(1,n,6,12,"div",12),M.BQk()),2&ye){const $=M.oxw();M.xp6(1),M.Q6J("ngForOf",$.steps)}}function B(ye,W){if(1&ye){const $=M.EpF();M.TgZ(0,"mat-step-header",17),M.NdJ("click",function(){return M.CHM($).step.select()})("keydown",function(Ce){return M.CHM($),M.oxw()._onKeydown(Ce)}),M.qZA()}if(2&ye){const $=W.step,ue=W.i,Ce=M.oxw();M.ekj("mat-horizontal-stepper-header","horizontal"===Ce.orientation)("mat-vertical-stepper-header","vertical"===Ce.orientation),M.Q6J("tabIndex",Ce._getFocusIndex()===ue?0:-1)("id",Ce._getStepLabelId(ue))("index",ue)("state",Ce._getIndicatorType(ue,$.state))("label",$.stepLabel||$.label)("selected",Ce.selectedIndex===ue)("active",Ce._stepIsNavigable(ue,$))("optional",$.optional)("errorMessage",$.errorMessage)("iconOverrides",Ce._iconOverrides)("disableRipple",Ce.disableRipple||!Ce._stepIsNavigable(ue,$))("color",$.color||Ce.color),M.uIk("aria-posinset",ue+1)("aria-setsize",Ce.steps.length)("aria-controls",Ce._getStepContentId(ue))("aria-selected",Ce.selectedIndex==ue)("aria-label",$.ariaLabel||null)("aria-labelledby",!$.ariaLabel&&$.ariaLabelledby?$.ariaLabelledby:null)("aria-disabled",!Ce._stepIsNavigable(ue,$)||null)}}let N=(()=>{class ye extends e.u6{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["","matStepLabel",""]],features:[M.qOj]}),ye})(),z=(()=>{class ye{constructor(){this.changes=new P.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=M.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const ge={provide:z,deps:[[new M.FiY,new M.tp0,z]],useFactory:function oe(ye){return ye||new z}},be=(0,b.pj)(class extends e.KL{constructor(W){super(W)}},"primary");let Re=(()=>{class ye extends be{constructor($,ue,Ce,Le){super(Ce),this._intl=$,this._focusMonitor=ue,this._intlSubscription=$.changes.subscribe(()=>Le.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus($,ue){$?this._focusMonitor.focusVia(this._elementRef,$,ue):this._elementRef.nativeElement.focus(ue)}_stringLabel(){return this.label instanceof N?null:this.label}_templateLabel(){return this.label instanceof N?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState($){return"number"==$?`${this.index+1}`:"edit"==$?"create":"error"==$?"warning":$}}return ye.\u0275fac=function($){return new($||ye)(M.Y36(z),M.Y36(A.tE),M.Y36(M.SBq),M.Y36(M.sBO))},ye.\u0275cmp=M.Xpm({type:ye,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:[M.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($,ue){1&$&&(M._UZ(0,"div",0),M.TgZ(1,"div")(2,"div",1),M.YNc(3,j,1,2,"ng-container",2),M.YNc(4,te,5,4,"ng-container",3),M.qZA()(),M.TgZ(5,"div",4),M.YNc(6,ce,2,1,"div",5),M.YNc(7,J,2,1,"div",5),M.YNc(8,me,2,1,"div",6),M.YNc(9,x,2,1,"div",7),M.qZA()),2&$&&(M.Q6J("matRippleTrigger",ue._getHostElement())("matRippleDisabled",ue.disableRipple),M.xp6(1),M.Gre("mat-step-icon-state-",ue.state," mat-step-icon"),M.ekj("mat-step-icon-selected",ue.selected),M.xp6(1),M.Q6J("ngSwitch",!(!ue.iconOverrides||!ue.iconOverrides[ue.state])),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(2),M.ekj("mat-step-label-active",ue.active)("mat-step-label-selected",ue.selected)("mat-step-label-error","error"==ue.state),M.xp6(1),M.Q6J("ngIf",ue._templateLabel()),M.xp6(1),M.Q6J("ngIf",ue._stringLabel()),M.xp6(1),M.Q6J("ngIf",ue.optional&&"error"!=ue.state),M.xp6(1),M.Q6J("ngIf","error"==ue.state))},directives:[d.Hw,b.wG,f.RF,f.n9,f.tP,f.ED,f.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}),ye})();const we={horizontalStepTransition:(0,U.X$)("horizontalStepTransition",[(0,U.SB)("previous",(0,U.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,U.SB)("current",(0,U.oB)({transform:"none",visibility:"inherit"})),(0,U.SB)("next",(0,U.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,U.eR)("* => *",(0,U.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,U.X$)("verticalStepTransition",[(0,U.SB)("previous",(0,U.oB)({height:"0px",visibility:"hidden"})),(0,U.SB)("next",(0,U.oB)({height:"0px",visibility:"hidden"})),(0,U.SB)("current",(0,U.oB)({height:"*",visibility:"inherit"})),(0,U.eR)("* <=> current",(0,U.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let Q=(()=>{class ye{constructor($){this.templateRef=$}}return ye.\u0275fac=function($){return new($||ye)(M.Y36(M.Rgc))},ye.\u0275dir=M.lG2({type:ye,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ye})(),Ge=(()=>{class ye{constructor($){this._template=$}}return ye.\u0275fac=function($){return new($||ye)(M.Y36(M.Rgc))},ye.\u0275dir=M.lG2({type:ye,selectors:[["ng-template","matStepContent",""]]}),ye})(),ve=(()=>{class ye extends e.be{constructor($,ue,Ce,Le){super($,Le),this._errorStateMatcher=ue,this._viewContainerRef=Ce,this._isSelected=h.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,w.w)(()=>this._stepper.selectionChange.pipe((0,D.U)($=>$.selectedStep===this),(0,L.O)(this._stepper.selected===this)))).subscribe($=>{$&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState($,ue){return this._errorStateMatcher.isErrorState($,ue)||!!($&&$.invalid&&this.interacted)}}return ye.\u0275fac=function($){return new($||ye)(M.Y36((0,M.Gpc)(()=>Ie)),M.Y36(b.rD,4),M.Y36(M.s_b),M.Y36(e.gx,8))},ye.\u0275cmp=M.Xpm({type:ye,selectors:[["mat-step"]],contentQueries:function($,ue,Ce){if(1&$&&(M.Suo(Ce,N,5),M.Suo(Ce,Ge,5)),2&$){let Le;M.iGM(Le=M.CRH())&&(ue.stepLabel=Le.first),M.iGM(Le=M.CRH())&&(ue._lazyContent=Le.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[M._Bn([{provide:b.rD,useExisting:ye},{provide:e.be,useExisting:ye}]),M.qOj],ngContentSelectors:u,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function($,ue){1&$&&(M.F$t(),M.YNc(0,r,2,1,"ng-template"))},directives:[t.Pl],encapsulation:2,changeDetection:0}),ye})(),F=(()=>{class ye extends e.B8{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,features:[M.qOj]}),ye})(),De=(()=>{class ye extends F{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["mat-horizontal-stepper"]],features:[M.qOj]}),ye})(),lt=(()=>{class ye extends F{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["mat-vertical-stepper"]],features:[M.qOj]}),ye})(),Ie=(()=>{class ye extends e.B8{constructor($,ue,Ce,Le){super($,ue,Ce,Le),this.steps=new M.n_E,this.animationDone=new M.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new P.x;const ct=Ce.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ct?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:$,templateRef:ue})=>this._iconOverrides[$]=ue),this.steps.changes.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,S.x)(($,ue)=>$.fromState===ue.fromState&&$.toState===ue.toState),(0,k.R)(this._destroyed)).subscribe($=>{"current"===$.toState&&this.animationDone.emit()})}_stepIsNavigable($,ue){return ue.completed||this.selectedIndex===$||!this.linear}}return ye.\u0275fac=function($){return new($||ye)(M.Y36(Z.Is,8),M.Y36(M.sBO),M.Y36(M.SBq),M.Y36(f.K0))},ye.\u0275cmp=M.Xpm({type:ye,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function($,ue,Ce){if(1&$&&(M.Suo(Ce,ve,5),M.Suo(Ce,Q,5)),2&$){let Le;M.iGM(Le=M.CRH())&&(ue._steps=Le),M.iGM(Le=M.CRH())&&(ue._icons=Le)}},viewQuery:function($,ue){if(1&$&&M.Gf(Re,5),2&$){let Ce;M.iGM(Ce=M.CRH())&&(ue._stepHeader=Ce)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function($,ue){2&$&&(M.uIk("aria-orientation",ue.orientation),M.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:[M._Bn([{provide:e.B8,useExisting:ye},{provide:De,useExisting:ye},{provide:lt,useExisting:ye}]),M.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($,ue){1&$&&(M.ynx(0,0),M.YNc(1,v,5,2,"ng-container",1),M.YNc(2,C,2,1,"ng-container",1),M.BQk(),M.YNc(3,B,1,23,"ng-template",null,2,M.W1O)),2&$&&(M.Q6J("ngSwitch",ue.orientation),M.xp6(1),M.Q6J("ngSwitchCase","horizontal"),M.xp6(1),M.Q6J("ngSwitchCase","vertical"))},directives:[Re,f.RF,f.n9,f.sg,f.tP,f.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:[we.horizontalStepTransition,we.verticalStepTransition]},changeDetection:0}),ye})(),Ae=(()=>{class ye extends e.st{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function($,ue){2&$&&M.Ikx("type",ue.type)},inputs:{type:"type"},features:[M.qOj]}),ye})(),se=(()=>{class ye extends e.po{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function($,ue){2&$&&M.Ikx("type",ue.type)},inputs:{type:"type"},features:[M.qOj]}),ye})(),Te=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=M.oAB({type:ye}),ye.\u0275inj=M.cJS({providers:[ge,b.rD],imports:[[b.BQ,f.ez,t.eL,a.ot,e.U5,d.Ps,b.si],b.BQ]}),ye})()},2075:(Fe,Y,p)=>{"use strict";p.d(Y,{ev:()=>Ue,Dz:()=>Ht,w1:()=>tt,yh:()=>Se,mD:()=>Ne,Q2:()=>Qt,Ke:()=>at,ge:()=>Je,fO:()=>it,XQ:()=>gi,as:()=>rt,Gk:()=>Jt,nj:()=>yt,BZ:()=>ft,by:()=>Yi,p0:()=>tn});var t=p(5e3),e=p(3191),f=p(449),M=p(9808),a=p(7579),b=p(457),d=p(1135),P=p(5191),h=p(9646),A=p(2722),w=p(5698),D=p(226),L=p(925),k=p(5303);const S=[[["caption"]],[["colgroup"],["col"]]],U=["caption","colgroup, col"];function ne(ze){return class extends ze{constructor(...Lt){super(...Lt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Lt){const fe=this._sticky;this._sticky=(0,e.Ig)(Lt),this._hasStickyChanged=fe!==this._sticky}hasStickyChanged(){const Lt=this._hasStickyChanged;return this._hasStickyChanged=!1,Lt}resetStickyChanged(){this._hasStickyChanged=!1}}}const X=new t.OlP("CDK_TABLE");let ee=(()=>{class ze{constructor(fe){this.template=fe}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkCellDef",""]]}),ze})(),te=(()=>{class ze{constructor(fe){this.template=fe}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkHeaderCellDef",""]]}),ze})(),ce=(()=>{class ze{constructor(fe){this.template=fe}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkFooterCellDef",""]]}),ze})();class J{}const me=ne(J);let x=(()=>{class ze extends me{constructor(fe){super(),this._table=fe,this._stickyEnd=!1}get name(){return this._name}set name(fe){this._setNameInput(fe)}get stickyEnd(){return this._stickyEnd}set stickyEnd(fe){const je=this._stickyEnd;this._stickyEnd=(0,e.Ig)(fe),this._hasStickyChanged=je!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(fe){fe&&(this._name=fe,this.cssClassFriendlyName=fe.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(X,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkColumnDef",""]],contentQueries:function(fe,je,Ct){if(1&fe&&(t.Suo(Ct,ee,5),t.Suo(Ct,te,5),t.Suo(Ct,ce,5)),2&fe){let ie;t.iGM(ie=t.CRH())&&(je.cell=ie.first),t.iGM(ie=t.CRH())&&(je.headerCell=ie.first),t.iGM(ie=t.CRH())&&(je.footerCell=ie.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ze}]),t.qOj]}),ze})();class i{constructor(Lt,fe){fe.nativeElement.classList.add(...Lt._columnCssClassName)}}let r=(()=>{class ze extends i{constructor(fe,je){super(fe,je)}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(x),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),ze})(),u=(()=>{class ze extends i{constructor(fe,je){var Ct;if(super(fe,je),1===(null===(Ct=fe._table)||void 0===Ct?void 0:Ct._elementRef.nativeElement.nodeType)){const ie=fe._table._elementRef.nativeElement.getAttribute("role");je.nativeElement.setAttribute("role","grid"===ie||"treegrid"===ie?"gridcell":"cell")}}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(x),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),ze})(),c=(()=>{class ze extends i{constructor(fe,je){var Ct;if(super(fe,je),1===(null===(Ct=fe._table)||void 0===Ct?void 0:Ct._elementRef.nativeElement.nodeType)){const ie=fe._table._elementRef.nativeElement.getAttribute("role");je.nativeElement.setAttribute("role","grid"===ie||"treegrid"===ie?"gridcell":"cell")}}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(x),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),ze})();class _{constructor(){this.tasks=[],this.endTasks=[]}}const E=new t.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class ze{constructor(fe){this._ngZone=fe,this._currentSchedule=null,this._destroyed=new a.x}schedule(fe){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(fe)}scheduleEnd(fe){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(fe)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _,this._getScheduleObservable().pipe((0,A.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const fe=this._currentSchedule;this._currentSchedule=new _;for(const je of fe.tasks)je();for(const je of fe.endTasks)je()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,b.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,w.q)(1))}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.LFG(t.R0b))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),n=(()=>{class ze{constructor(fe,je){this.template=fe,this._differs=je}ngOnChanges(fe){if(!this._columnsDiffer){const je=fe.columns&&fe.columns.currentValue||[];this._columnsDiffer=this._differs.find(je).create(),this._columnsDiffer.diff(je)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(fe){return this instanceof N?fe.headerCell.template:this instanceof ge?fe.footerCell.template:fe.cell.template}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},ze.\u0275dir=t.lG2({type:ze,features:[t.TTD]}),ze})();class C extends n{}const B=ne(C);let N=(()=>{class ze extends B{constructor(fe,je,Ct){super(fe,je),this._table=Ct}ngOnChanges(fe){super.ngOnChanges(fe)}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(X,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),ze})();class z extends n{}const oe=ne(z);let ge=(()=>{class ze extends oe{constructor(fe,je,Ct){super(fe,je),this._table=Ct}ngOnChanges(fe){super.ngOnChanges(fe)}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(X,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),ze})(),be=(()=>{class ze extends n{constructor(fe,je,Ct){super(fe,je),this._table=Ct}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(X,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),ze})(),Re=(()=>{class ze{constructor(fe){this._viewContainer=fe,ze.mostRecentCellOutlet=this}ngOnDestroy(){ze.mostRecentCellOutlet===this&&(ze.mostRecentCellOutlet=null)}}return ze.mostRecentCellOutlet=null,ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.s_b))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkCellOutlet",""]]}),ze})(),we=(()=>{class ze{}return ze.\u0275fac=function(fe){return new(fe||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(fe,je){1&fe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),Q=(()=>{class ze{}return ze.\u0275fac=function(fe){return new(fe||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(fe,je){1&fe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),Ge=(()=>{class ze{}return ze.\u0275fac=function(fe){return new(fe||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(fe,je){1&fe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),ve=(()=>{class ze{constructor(fe){this.templateRef=fe,this._contentClassName="cdk-no-data-row"}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["ng-template","cdkNoDataRow",""]]}),ze})();const F=["top","bottom","left","right"];class De{constructor(Lt,fe,je,Ct,ie=!0,qe=!0,Mt){this._isNativeHtmlTable=Lt,this._stickCellCss=fe,this.direction=je,this._coalescedStyleScheduler=Ct,this._isBrowser=ie,this._needsPositionStickyOnElement=qe,this._positionListener=Mt,this._cachedCellWidths=[],this._borderCellCss={top:`${fe}-border-elem-top`,bottom:`${fe}-border-elem-bottom`,left:`${fe}-border-elem-left`,right:`${fe}-border-elem-right`}}clearStickyPositioning(Lt,fe){const je=[];for(const Ct of Lt)if(Ct.nodeType===Ct.ELEMENT_NODE){je.push(Ct);for(let ie=0;ie{for(const Ct of je)this._removeStickyStyle(Ct,fe)})}updateStickyColumns(Lt,fe,je,Ct=!0){if(!Lt.length||!this._isBrowser||!fe.some(ji=>ji)&&!je.some(ji=>ji))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const ie=Lt[0],qe=ie.children.length,Mt=this._getCellWidths(ie,Ct),Vt=this._getStickyStartColumnPositions(Mt,fe),Mi=this._getStickyEndColumnPositions(Mt,je),Ei=fe.lastIndexOf(!0),en=je.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const ji="rtl"===this.direction,Kt=ji?"right":"left",Oi=ji?"left":"right";for(const zt of Lt)for(let si=0;sife[si]?zt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===en?[]:Mt.slice(en).map((zt,si)=>je[si+en]?zt:null).reverse()}))})}stickRows(Lt,fe,je){if(!this._isBrowser)return;const Ct="bottom"===je?Lt.slice().reverse():Lt,ie="bottom"===je?fe.slice().reverse():fe,qe=[],Mt=[],Vt=[];for(let Ei=0,en=0;Ei{var Ei,en;for(let ji=0;ji{fe.some(Ct=>!Ct)?this._removeStickyStyle(je,["bottom"]):this._addStickyStyle(je,"bottom",0,!1)})}_removeStickyStyle(Lt,fe){for(const Ct of fe)Lt.style[Ct]="",Lt.classList.remove(this._borderCellCss[Ct]);F.some(Ct=>-1===fe.indexOf(Ct)&&Lt.style[Ct])?Lt.style.zIndex=this._getCalculatedZIndex(Lt):(Lt.style.zIndex="",this._needsPositionStickyOnElement&&(Lt.style.position=""),Lt.classList.remove(this._stickCellCss))}_addStickyStyle(Lt,fe,je,Ct){Lt.classList.add(this._stickCellCss),Ct&&Lt.classList.add(this._borderCellCss[fe]),Lt.style[fe]=`${je}px`,Lt.style.zIndex=this._getCalculatedZIndex(Lt),this._needsPositionStickyOnElement&&(Lt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Lt){const fe={top:100,bottom:10,left:1,right:1};let je=0;for(const Ct of F)Lt.style[Ct]&&(je+=fe[Ct]);return je?`${je}`:""}_getCellWidths(Lt,fe=!0){if(!fe&&this._cachedCellWidths.length)return this._cachedCellWidths;const je=[],Ct=Lt.children;for(let ie=0;ie0;ie--)fe[ie]&&(je[ie]=Ct,Ct+=Lt[ie]);return je}}const ue=new t.OlP("CDK_SPL");let Le=(()=>{class ze{constructor(fe,je){this.viewContainer=fe,this.elementRef=je}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.s_b),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","rowOutlet",""]]}),ze})(),ct=(()=>{class ze{constructor(fe,je){this.viewContainer=fe,this.elementRef=je}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.s_b),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","headerRowOutlet",""]]}),ze})(),ut=(()=>{class ze{constructor(fe,je){this.viewContainer=fe,this.elementRef=je}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.s_b),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","footerRowOutlet",""]]}),ze})(),Dt=(()=>{class ze{constructor(fe,je){this.viewContainer=fe,this.elementRef=je}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.s_b),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","noDataRowOutlet",""]]}),ze})(),Gt=(()=>{class ze{constructor(fe,je,Ct,ie,qe,Mt,Vt,Mi,Ei,en,ji,Kt){this._differs=fe,this._changeDetectorRef=je,this._elementRef=Ct,this._dir=qe,this._platform=Vt,this._viewRepeater=Mi,this._coalescedStyleScheduler=Ei,this._viewportRuler=en,this._stickyPositioningListener=ji,this._ngZone=Kt,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 t.vpe,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),ie||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Mt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(fe){this._trackByFn=fe}get dataSource(){return this._dataSource}set dataSource(fe){this._dataSource!==fe&&this._switchDataSource(fe)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(fe){this._multiTemplateDataRows=(0,e.Ig)(fe),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(fe){this._fixedLayout=(0,e.Ig)(fe),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((fe,je)=>this.trackBy?this.trackBy(je.dataIndex,je.data):je),this._viewportRuler.change().pipe((0,A.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const je=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||je,this._forceRecalculateCellWidths=je,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(fe=>{fe.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const fe=this._dataDiffer.diff(this._renderRows);if(!fe)return this._updateNoDataRow(),void this.contentChanged.next();const je=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(fe,je,(Ct,ie,qe)=>this._getEmbeddedViewArgs(Ct.item,qe),Ct=>Ct.item.data,Ct=>{1===Ct.operation&&Ct.context&&this._renderCellTemplateForItem(Ct.record.item.rowDef,Ct.context)}),this._updateRowIndexContext(),fe.forEachIdentityChange(Ct=>{je.get(Ct.currentIndex).context.$implicit=Ct.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,w.q)(1),(0,A.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(fe){this._customColumnDefs.add(fe)}removeColumnDef(fe){this._customColumnDefs.delete(fe)}addRowDef(fe){this._customRowDefs.add(fe)}removeRowDef(fe){this._customRowDefs.delete(fe)}addHeaderRowDef(fe){this._customHeaderRowDefs.add(fe),this._headerRowDefChanged=!0}removeHeaderRowDef(fe){this._customHeaderRowDefs.delete(fe),this._headerRowDefChanged=!0}addFooterRowDef(fe){this._customFooterRowDefs.add(fe),this._footerRowDefChanged=!0}removeFooterRowDef(fe){this._customFooterRowDefs.delete(fe),this._footerRowDefChanged=!0}setNoDataRow(fe){this._customNoDataRow=fe}updateStickyHeaderRowStyles(){const fe=this._getRenderedRows(this._headerRowOutlet),Ct=this._elementRef.nativeElement.querySelector("thead");Ct&&(Ct.style.display=fe.length?"":"none");const ie=this._headerRowDefs.map(qe=>qe.sticky);this._stickyStyler.clearStickyPositioning(fe,["top"]),this._stickyStyler.stickRows(fe,ie,"top"),this._headerRowDefs.forEach(qe=>qe.resetStickyChanged())}updateStickyFooterRowStyles(){const fe=this._getRenderedRows(this._footerRowOutlet),Ct=this._elementRef.nativeElement.querySelector("tfoot");Ct&&(Ct.style.display=fe.length?"":"none");const ie=this._footerRowDefs.map(qe=>qe.sticky);this._stickyStyler.clearStickyPositioning(fe,["bottom"]),this._stickyStyler.stickRows(fe,ie,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ie),this._footerRowDefs.forEach(qe=>qe.resetStickyChanged())}updateStickyColumnStyles(){const fe=this._getRenderedRows(this._headerRowOutlet),je=this._getRenderedRows(this._rowOutlet),Ct=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...fe,...je,...Ct],["left","right"]),this._stickyColumnStylesNeedReset=!1),fe.forEach((ie,qe)=>{this._addStickyColumnStyles([ie],this._headerRowDefs[qe])}),this._rowDefs.forEach(ie=>{const qe=[];for(let Mt=0;Mt{this._addStickyColumnStyles([ie],this._footerRowDefs[qe])}),Array.from(this._columnDefsByName.values()).forEach(ie=>ie.resetStickyChanged())}_getAllRenderRows(){const fe=[],je=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Ct=0;Ct{const Mt=Ct&&Ct.has(qe)?Ct.get(qe):[];if(Mt.length){const Vt=Mt.shift();return Vt.dataIndex=je,Vt}return{data:fe,rowDef:qe,dataIndex:je}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ui(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(je=>{this._columnDefsByName.has(je.name),this._columnDefsByName.set(je.name,je)})}_cacheRowDefs(){this._headerRowDefs=ui(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ui(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ui(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const fe=this._rowDefs.filter(je=>!je.when);this._defaultRowDef=fe[0]}_renderUpdatedColumns(){const fe=(qe,Mt)=>qe||!!Mt.getColumnsDiff(),je=this._rowDefs.reduce(fe,!1);je&&this._forceRenderDataRows();const Ct=this._headerRowDefs.reduce(fe,!1);Ct&&this._forceRenderHeaderRows();const ie=this._footerRowDefs.reduce(fe,!1);return ie&&this._forceRenderFooterRows(),je||Ct||ie}_switchDataSource(fe){this._data=[],(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),fe||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=fe}_observeRenderChanges(){if(!this.dataSource)return;let fe;(0,f.Z9)(this.dataSource)?fe=this.dataSource.connect(this):(0,P.b)(this.dataSource)?fe=this.dataSource:Array.isArray(this.dataSource)&&(fe=(0,h.of)(this.dataSource)),this._renderChangeSubscription=fe.pipe((0,A.R)(this._onDestroy)).subscribe(je=>{this._data=je||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((fe,je)=>this._renderRow(this._headerRowOutlet,fe,je)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((fe,je)=>this._renderRow(this._footerRowOutlet,fe,je)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(fe,je){const Ct=Array.from(je.columns||[]).map(Mt=>this._columnDefsByName.get(Mt)),ie=Ct.map(Mt=>Mt.sticky),qe=Ct.map(Mt=>Mt.stickyEnd);this._stickyStyler.updateStickyColumns(fe,ie,qe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(fe){const je=[];for(let Ct=0;Ct!ie.when||ie.when(je,fe));else{let ie=this._rowDefs.find(qe=>qe.when&&qe.when(je,fe))||this._defaultRowDef;ie&&Ct.push(ie)}return Ct}_getEmbeddedViewArgs(fe,je){return{templateRef:fe.rowDef.template,context:{$implicit:fe.data},index:je}}_renderRow(fe,je,Ct,ie={}){const qe=fe.viewContainer.createEmbeddedView(je.template,ie,Ct);return this._renderCellTemplateForItem(je,ie),qe}_renderCellTemplateForItem(fe,je){for(let Ct of this._getCellTemplates(fe))Re.mostRecentCellOutlet&&Re.mostRecentCellOutlet._viewContainer.createEmbeddedView(Ct,je);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const fe=this._rowOutlet.viewContainer;for(let je=0,Ct=fe.length;je{const Ct=this._columnDefsByName.get(je);return fe.extractCellTemplate(Ct)}):[]}_applyNativeTableSections(){const fe=this._document.createDocumentFragment(),je=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Ct of je){const ie=this._document.createElement(Ct.tag);ie.setAttribute("role","rowgroup");for(const qe of Ct.outlets)ie.appendChild(qe.elementRef.nativeElement);fe.appendChild(ie)}this._elementRef.nativeElement.appendChild(fe)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const fe=(je,Ct)=>je||Ct.hasStickyChanged();this._headerRowDefs.reduce(fe,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(fe,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(fe,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new De(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,h.of)()).pipe((0,A.R)(this._onDestroy)).subscribe(je=>{this._stickyStyler.direction=je,this.updateStickyColumnStyles()})}_getOwnDefs(fe){return fe.filter(je=>!je._table||je._table===this)}_updateNoDataRow(){const fe=this._customNoDataRow||this._noDataRow;if(!fe)return;const je=0===this._rowOutlet.viewContainer.length;if(je===this._isShowingNoDataRow)return;const Ct=this._noDataRowOutlet.viewContainer;if(je){const ie=Ct.createEmbeddedView(fe.templateRef),qe=ie.rootNodes[0];1===ie.rootNodes.length&&(null==qe?void 0:qe.nodeType)===this._document.ELEMENT_NODE&&(qe.setAttribute("role","row"),qe.classList.add(fe._contentClassName))}else Ct.clear();this._isShowingNoDataRow=je}}return ze.\u0275fac=function(fe){return new(fe||ze)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(D.Is,8),t.Y36(M.K0),t.Y36(L.t4),t.Y36(f.k),t.Y36(E),t.Y36(k.rL),t.Y36(ue,12),t.Y36(t.R0b,8))},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(fe,je,Ct){if(1&fe&&(t.Suo(Ct,ve,5),t.Suo(Ct,x,5),t.Suo(Ct,be,5),t.Suo(Ct,N,5),t.Suo(Ct,ge,5)),2&fe){let ie;t.iGM(ie=t.CRH())&&(je._noDataRow=ie.first),t.iGM(ie=t.CRH())&&(je._contentColumnDefs=ie),t.iGM(ie=t.CRH())&&(je._contentRowDefs=ie),t.iGM(ie=t.CRH())&&(je._contentHeaderRowDefs=ie),t.iGM(ie=t.CRH())&&(je._contentFooterRowDefs=ie)}},viewQuery:function(fe,je){if(1&fe&&(t.Gf(Le,7),t.Gf(ct,7),t.Gf(ut,7),t.Gf(Dt,7)),2&fe){let Ct;t.iGM(Ct=t.CRH())&&(je._rowOutlet=Ct.first),t.iGM(Ct=t.CRH())&&(je._headerRowOutlet=Ct.first),t.iGM(Ct=t.CRH())&&(je._footerRowOutlet=Ct.first),t.iGM(Ct=t.CRH())&&(je._noDataRowOutlet=Ct.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(fe,je){2&fe&&t.ekj("cdk-table-fixed-layout",je.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:X,useExisting:ze},{provide:f.k,useClass:f.yy},{provide:E,useClass:I},{provide:ue,useValue:null}])],ngContentSelectors:U,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(fe,je){1&fe&&(t.F$t(S),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[ct,Le,Dt,ut],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ze})();function ui(ze,Lt){return ze.concat(Array.from(Lt))}let gt=(()=>{class ze{}return ze.\u0275fac=function(fe){return new(fe||ze)},ze.\u0275mod=t.oAB({type:ze}),ze.\u0275inj=t.cJS({imports:[[k.Cl]]}),ze})();var et=p(508),vt=p(6451),$t=p(9841),jt=p(4004);const Pe=[[["caption"]],[["colgroup"],["col"]]],Oe=["caption","colgroup, col"];let ft=(()=>{class ze extends Gt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275cmp=t.Xpm({type:ze,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(fe,je){2&fe&&t.ekj("mat-table-fixed-layout",je.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:f.k,useClass:f.yy},{provide:Gt,useExisting:ze},{provide:X,useExisting:ze},{provide:E,useClass:I},{provide:ue,useValue:null}]),t.qOj],ngContentSelectors:Oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(fe,je){1&fe&&(t.F$t(Pe),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[ct,Le,Dt,ut],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}),ze})(),Ht=(()=>{class ze extends ee{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:ee,useExisting:ze}]),t.qOj]}),ze})(),it=(()=>{class ze extends te{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:te,useExisting:ze}]),t.qOj]}),ze})(),Ne=(()=>{class ze extends ce{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:ce,useExisting:ze}]),t.qOj]}),ze})(),tt=(()=>{class ze extends x{get name(){return this._name}set name(fe){this._setNameInput(fe)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:x,useExisting:ze},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ze}]),t.qOj]}),ze})(),Je=(()=>{class ze extends r{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]}),ze})(),Se=(()=>{class ze extends u{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]}),ze})(),Ue=(()=>{class ze extends c{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]}),ze})(),rt=(()=>{class ze extends N{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:N,useExisting:ze}]),t.qOj]}),ze})(),at=(()=>{class ze extends ge{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:ge,useExisting:ze}]),t.qOj]}),ze})(),yt=(()=>{class ze extends be{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:be,useExisting:ze}]),t.qOj]}),ze})(),gi=(()=>{class ze extends we{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275cmp=t.Xpm({type:ze,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:we,useExisting:ze}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(fe,je){1&fe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),Qt=(()=>{class ze extends Q{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275cmp=t.Xpm({type:ze,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:Q,useExisting:ze}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(fe,je){1&fe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),Jt=(()=>{class ze extends Ge{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275cmp=t.Xpm({type:ze,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:Ge,useExisting:ze}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(fe,je){1&fe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),tn=(()=>{class ze{}return ze.\u0275fac=function(fe){return new(fe||ze)},ze.\u0275mod=t.oAB({type:ze}),ze.\u0275inj=t.cJS({imports:[[gt,et.BQ],et.BQ]}),ze})();class Gi extends f.o2{constructor(Lt=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new a.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(fe,je)=>{const Ct=fe[je];if((0,e.t6)(Ct)){const ie=Number(Ct);return ie<9007199254740991?ie:Ct}return Ct},this.sortData=(fe,je)=>{const Ct=je.active,ie=je.direction;return Ct&&""!=ie?fe.sort((qe,Mt)=>{let Vt=this.sortingDataAccessor(qe,Ct),Mi=this.sortingDataAccessor(Mt,Ct);const Ei=typeof Vt,en=typeof Mi;Ei!==en&&("number"===Ei&&(Vt+=""),"number"===en&&(Mi+=""));let ji=0;return null!=Vt&&null!=Mi?Vt>Mi?ji=1:Vt{const Ct=Object.keys(fe).reduce((qe,Mt)=>qe+fe[Mt]+"\u25ec","").toLowerCase(),ie=je.trim().toLowerCase();return-1!=Ct.indexOf(ie)},this._data=new d.X(Lt),this._updateChangeSubscription()}get data(){return this._data.value}set data(Lt){Lt=Array.isArray(Lt)?Lt:[],this._data.next(Lt),this._renderChangesSubscription||this._filterData(Lt)}get filter(){return this._filter.value}set filter(Lt){this._filter.next(Lt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Lt){this._sort=Lt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Lt){this._paginator=Lt,this._updateChangeSubscription()}_updateChangeSubscription(){var Lt;const fe=this._sort?(0,vt.T)(this._sort.sortChange,this._sort.initialized):(0,h.of)(null),je=this._paginator?(0,vt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,h.of)(null),ie=(0,$t.a)([this._data,this._filter]).pipe((0,jt.U)(([Vt])=>this._filterData(Vt))),qe=(0,$t.a)([ie,fe]).pipe((0,jt.U)(([Vt])=>this._orderData(Vt))),Mt=(0,$t.a)([qe,je]).pipe((0,jt.U)(([Vt])=>this._pageData(Vt)));null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=Mt.subscribe(Vt=>this._renderData.next(Vt))}_filterData(Lt){return this.filteredData=null==this.filter||""===this.filter?Lt:Lt.filter(fe=>this.filterPredicate(fe,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Lt){return this.sort?this.sortData(Lt.slice(),this.sort):Lt}_pageData(Lt){if(!this.paginator)return Lt;const fe=this.paginator.pageIndex*this.paginator.pageSize;return Lt.slice(fe,fe+this.paginator.pageSize)}_updatePaginator(Lt){Promise.resolve().then(()=>{const fe=this.paginator;if(fe&&(fe.length=Lt,fe.pageIndex>0)){const je=Math.ceil(fe.length/fe.pageSize)-1||0,Ct=Math.min(fe.pageIndex,je);Ct!==fe.pageIndex&&(fe.pageIndex=Ct,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Lt;null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=null}}class Yi extends Gi{}},3251:(Fe,Y,p)=>{"use strict";p.d(Y,{BU:()=>le,Nh:()=>it,Nj:()=>ft,SP:()=>jt,uD:()=>Ae,uX:()=>ye});var t=p(5664),e=p(7144),f=p(7429),M=p(9808),a=p(5e3),b=p(508),d=p(6360),P=p(5698),h=p(8675),A=p(1884),w=p(2722),D=p(3900),L=p(5684),k=p(7579),S=p(727),U=p(4968),Z=p(9646),j=p(6451),ne=p(515),X=p(8306),de=p(2805),ee=p(1777),te=p(226),ce=p(3191),J=p(1159),me=p(925),x=p(5303);function i(Ne,tt){1&Ne&&a.Hsn(0)}const r=["*"];function u(Ne,tt){}const c=function(Ne){return{animationDuration:Ne}},_=function(Ne,tt){return{value:Ne,params:tt}},E=["tabListContainer"],I=["tabList"],v=["tabListInner"],n=["nextPaginator"],C=["previousPaginator"],B=["tabBodyWrapper"],N=["tabHeader"];function z(Ne,tt){}function oe(Ne,tt){if(1&Ne&&a.YNc(0,z,0,0,"ng-template",10),2&Ne){const Je=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",Je.templateLabel)}}function ge(Ne,tt){if(1&Ne&&a._uU(0),2&Ne){const Je=a.oxw().$implicit;a.Oqu(Je.textLabel)}}function be(Ne,tt){if(1&Ne){const Je=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const Ue=a.CHM(Je),rt=Ue.$implicit,at=Ue.index,yt=a.oxw(),gi=a.MAs(1);return yt._handleClick(rt,gi,at)})("cdkFocusChange",function(Ue){const at=a.CHM(Je).index;return a.oxw()._tabFocusChanged(Ue,at)}),a.TgZ(1,"div",7),a.YNc(2,oe,1,1,"ng-template",8),a.YNc(3,ge,1,1,"ng-template",null,9,a.W1O),a.qZA()()}if(2&Ne){const Je=tt.$implicit,Se=tt.index,Ue=a.MAs(4),rt=a.oxw();a.ekj("mat-tab-label-active",rt.selectedIndex===Se),a.Q6J("id",rt._getTabLabelId(Se))("ngClass",Je.labelClass)("disabled",Je.disabled)("matRippleDisabled",Je.disabled||rt.disableRipple),a.uIk("tabIndex",rt._getTabIndex(Je,Se))("aria-posinset",Se+1)("aria-setsize",rt._tabs.length)("aria-controls",rt._getTabContentId(Se))("aria-selected",rt.selectedIndex===Se)("aria-label",Je.ariaLabel||null)("aria-labelledby",!Je.ariaLabel&&Je.ariaLabelledby?Je.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",Je.templateLabel)("ngIfElse",Ue)}}function Re(Ne,tt){if(1&Ne){const Je=a.EpF();a.TgZ(0,"mat-tab-body",11),a.NdJ("_onCentered",function(){return a.CHM(Je),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ue){return a.CHM(Je),a.oxw()._setTabBodyWrapperHeight(Ue)}),a.qZA()}if(2&Ne){const Je=tt.$implicit,Se=tt.index,Ue=a.oxw();a.ekj("mat-tab-body-active",Ue.selectedIndex===Se),a.Q6J("id",Ue._getTabContentId(Se))("ngClass",Je.bodyClass)("content",Je.content)("position",Je.position)("origin",Je.origin)("animationDuration",Ue.animationDuration),a.uIk("tabindex",null!=Ue.contentTabIndex&&Ue.selectedIndex===Se?Ue.contentTabIndex:null)("aria-labelledby",Ue._getTabLabelId(Se))}}const we=["mat-tab-nav-bar",""],Q=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ge(){return tt=>({left:tt?(tt.offsetLeft||0)+"px":"0",width:tt?(tt.offsetWidth||0)+"px":"0"})}});let ve=(()=>{class Ne{constructor(Je,Se,Ue,rt){this._elementRef=Je,this._ngZone=Se,this._inkBarPositioner=Ue,this._animationMode=rt}alignToElement(Je){this.show(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{const Se=this._inkBarPositioner(Je),Ue=this._elementRef.nativeElement;Ue.style.left=Se.left,Ue.style.width=Se.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(Q),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Je,Se){2&Je&&a.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode)}}),Ne})();const F=new a.OlP("MatTabContent"),lt=new a.OlP("MatTabLabel"),Ie=new a.OlP("MAT_TAB");let Ae=(()=>{class Ne extends f.ig{constructor(Je,Se,Ue){super(Je,Se),this._closestTab=Ue}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(Ie,8))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:lt,useExisting:Ne}]),a.qOj]}),Ne})();const se=(0,b.Id)(class{}),Te=new a.OlP("MAT_TAB_GROUP");let ye=(()=>{class Ne extends se{constructor(Je,Se){super(),this._viewContainerRef=Je,this._closestTabGroup=Se,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(Je){this._setTemplateLabelInput(Je)}get content(){return this._contentPortal}ngOnChanges(Je){(Je.hasOwnProperty("textLabel")||Je.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new f.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Je){Je&&Je._closestTab===this&&(this._templateLabel=Je)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.s_b),a.Y36(Te,8))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["mat-tab"]],contentQueries:function(Je,Se,Ue){if(1&Je&&(a.Suo(Ue,lt,5),a.Suo(Ue,F,7,a.Rgc)),2&Je){let rt;a.iGM(rt=a.CRH())&&(Se.templateLabel=rt.first),a.iGM(rt=a.CRH())&&(Se._explicitContent=rt.first)}},viewQuery:function(Je,Se){if(1&Je&&a.Gf(a.Rgc,7),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._implicitContent=Ue.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:Ne}]),a.qOj,a.TTD],ngContentSelectors:r,decls:1,vars:0,template:function(Je,Se){1&Je&&(a.F$t(),a.YNc(0,i,1,0,"ng-template"))},encapsulation:2}),Ne})();const W={translateTab:(0,ee.X$)("translateTab",[(0,ee.SB)("center, void, left-origin-center, right-origin-center",(0,ee.oB)({transform:"none"})),(0,ee.SB)("left",(0,ee.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,ee.SB)("right",(0,ee.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,ee.eR)("* => left, * => right, left => center, right => center",(0,ee.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ee.eR)("void => left-origin-center",[(0,ee.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,ee.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ee.eR)("void => right-origin-center",[(0,ee.oB)({transform:"translate3d(100%, 0, 0)"}),(0,ee.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let $=(()=>{class Ne extends f.Pl{constructor(Je,Se,Ue,rt){super(Je,Se,rt),this._host=Ue,this._centeringSub=S.w0.EMPTY,this._leavingSub=S.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,h.O)(this._host._isCenterPosition(this._host._position))).subscribe(Je=>{Je&&!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 Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>Ce)),a.Y36(M.K0))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),Ne})(),ue=(()=>{class Ne{constructor(Je,Se,Ue){this._elementRef=Je,this._dir=Se,this._dirChangeSubscription=S.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",Se&&(this._dirChangeSubscription=Se.change.subscribe(rt=>{this._computePositionAnimationState(rt),Ue.markForCheck()})),this._translateTabComplete.pipe((0,A.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(Je){this._positionIndex=Je,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Je){const Se=this._isCenterPosition(Je.toState);this._beforeCentering.emit(Se),Se&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Je){return"center"==Je||"left-origin-center"==Je||"right-origin-center"==Je}_computePositionAnimationState(Je=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Je?"left":"right":this._positionIndex>0?"ltr"==Je?"right":"left":"center"}_computePositionFromOrigin(Je){const Se=this._getLayoutDirection();return"ltr"==Se&&Je<=0||"rtl"==Se&&Je>0?"left-origin-center":"right-origin-center"}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(te.Is,8),a.Y36(a.sBO))},Ne.\u0275dir=a.lG2({type:Ne,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ne})(),Ce=(()=>{class Ne extends ue{constructor(Je,Se,Ue){super(Je,Se,Ue)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(te.Is,8),a.Y36(a.sBO))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["mat-tab-body"]],viewQuery:function(Je,Se){if(1&Je&&a.Gf(f.Pl,5),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._portalHost=Ue.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Je,Se){1&Je&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(rt){return Se._onTranslateTabStarted(rt)})("@translateTab.done",function(rt){return Se._translateTabComplete.next(rt)}),a.YNc(2,u,0,0,"ng-template",2),a.qZA()),2&Je&&a.Q6J("@translateTab",a.WLB(3,_,Se._position,a.VKq(1,c,Se.animationDuration)))},directives:[$],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:[W.translateTab]}}),Ne})();const Le=new a.OlP("MAT_TABS_CONFIG"),ct=(0,b.Id)(class{});let ut=(()=>{class Ne extends ct{constructor(Je){super(),this.elementRef=Je}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Je,Se){2&Je&&(a.uIk("aria-disabled",!!Se.disabled),a.ekj("mat-tab-disabled",Se.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),Ne})();const Dt=(0,me.i$)({passive:!0});let ui=(()=>{class Ne{constructor(Je,Se,Ue,rt,at,yt,gi){this._elementRef=Je,this._changeDetectorRef=Se,this._viewportRuler=Ue,this._dir=rt,this._ngZone=at,this._platform=yt,this._animationMode=gi,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,U.R)(Je.nativeElement,"mouseleave").pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Je){Je=(0,ce.su)(Je),this._selectedIndex!=Je&&(this._selectedIndexChanged=!0,this._selectedIndex=Je,this._keyManager&&this._keyManager.updateActiveItem(Je))}ngAfterViewInit(){(0,U.R)(this._previousPaginator.nativeElement,"touchstart",Dt).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,U.R)(this._nextPaginator.nativeElement,"touchstart",Dt).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Je=this._dir?this._dir.change:(0,Z.of)("ltr"),Se=this._viewportRuler.change(150),Ue=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new t.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(Ue),(0,j.T)(Je,Se,this._items.changes,this._itemsResized()).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ue()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,w.R)(this._destroyed)).subscribe(rt=>{this.indexFocused.emit(rt),this._setTabFocus(rt)})}_itemsResized(){return"function"!=typeof ResizeObserver?ne.E:this._items.changes.pipe((0,h.O)(this._items),(0,D.w)(Je=>new X.y(Se=>this._ngZone.runOutsideAngular(()=>{const Ue=new ResizeObserver(()=>{Se.next()});return Je.forEach(rt=>{Ue.observe(rt.elementRef.nativeElement)}),()=>{Ue.disconnect()}}))),(0,L.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(Je){if(!(0,J.Vb)(Je))switch(Je.keyCode){case J.K5:case J.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Je));break;default:this._keyManager.onKeydown(Je)}}_onContentChanges(){const Je=this._elementRef.nativeElement.textContent;Je!==this._currentTextContent&&(this._currentTextContent=Je||"",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(Je){!this._isValidIndex(Je)||this.focusIndex===Je||!this._keyManager||this._keyManager.setActiveItem(Je)}_isValidIndex(Je){if(!this._items)return!0;const Se=this._items?this._items.toArray()[Je]:null;return!!Se&&!Se.disabled}_setTabFocus(Je){if(this._showPaginationControls&&this._scrollToLabel(Je),this._items&&this._items.length){this._items.toArray()[Je].focus();const Se=this._tabListContainer.nativeElement;Se.scrollLeft="ltr"==this._getLayoutDirection()?0:Se.scrollWidth-Se.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Je=this.scrollDistance,Se="ltr"===this._getLayoutDirection()?-Je:Je;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Se)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Je){this._scrollTo(Je)}_scrollHeader(Je){return this._scrollTo(this._scrollDistance+("before"==Je?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Je){this._stopInterval(),this._scrollHeader(Je)}_scrollToLabel(Je){if(this.disablePagination)return;const Se=this._items?this._items.toArray()[Je]:null;if(!Se)return;const Ue=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:rt,offsetWidth:at}=Se.elementRef.nativeElement;let yt,gi;"ltr"==this._getLayoutDirection()?(yt=rt,gi=yt+at):(gi=this._tabListInner.nativeElement.offsetWidth-rt,yt=gi-at);const Qt=this.scrollDistance,Jt=this.scrollDistance+Ue;ytJt&&(this.scrollDistance+=gi-Jt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Je=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Je||(this.scrollDistance=0),Je!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Je}}_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 Je=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Se=Je?Je.elementRef.nativeElement:null;Se?this._inkBar.alignToElement(Se):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Je,Se){Se&&null!=Se.button&&0!==Se.button||(this._stopInterval(),(0,de.H)(650,100).pipe((0,w.R)((0,j.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ue,distance:rt}=this._scrollHeader(Je);(0===rt||rt>=Ue)&&this._stopInterval()}))}_scrollTo(Je){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Se=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Se,Je)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Se,distance:this._scrollDistance}}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(te.Is,8),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,inputs:{disablePagination:"disablePagination"}}),Ne})(),xt=(()=>{class Ne extends ui{constructor(Je,Se,Ue,rt,at,yt,gi){super(Je,Se,Ue,rt,at,yt,gi),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Je){this._disableRipple=(0,ce.Ig)(Je)}_itemSelected(Je){Je.preventDefault()}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(te.Is,8),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),Ne})(),Nt=(()=>{class Ne extends xt{constructor(Je,Se,Ue,rt,at,yt,gi){super(Je,Se,Ue,rt,at,yt,gi)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(te.Is,8),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(d.Qb,8))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["mat-tab-header"]],contentQueries:function(Je,Se,Ue){if(1&Je&&a.Suo(Ue,ut,4),2&Je){let rt;a.iGM(rt=a.CRH())&&(Se._items=rt)}},viewQuery:function(Je,Se){if(1&Je&&(a.Gf(ve,7),a.Gf(E,7),a.Gf(I,7),a.Gf(v,7),a.Gf(n,5),a.Gf(C,5)),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._inkBar=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabListContainer=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabList=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabListInner=Ue.first),a.iGM(Ue=a.CRH())&&(Se._nextPaginator=Ue.first),a.iGM(Ue=a.CRH())&&(Se._previousPaginator=Ue.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Je,Se){2&Je&&a.ekj("mat-tab-header-pagination-controls-enabled",Se._showPaginationControls)("mat-tab-header-rtl","rtl"==Se._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(Je,Se){1&Je&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Se._handlePaginatorClick("before")})("mousedown",function(rt){return Se._handlePaginatorPress("before",rt)})("touchend",function(){return Se._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return Se._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Se._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 Se._handlePaginatorPress("after",rt)})("click",function(){return Se._handlePaginatorClick("after")})("touchend",function(){return Se._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Je&&(a.ekj("mat-tab-header-pagination-disabled",Se._disableScrollBefore),a.Q6J("matRippleDisabled",Se._disableScrollBefore||Se.disableRipple)("disabled",Se._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Se._disableScrollAfter),a.Q6J("matRippleDisabled",Se._disableScrollAfter||Se.disableRipple)("disabled",Se._disableScrollAfter||null))},directives:[b.wG,e.wD,ve],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}),Ne})(),gt=0;class et{}const vt=(0,b.pj)((0,b.Kr)(class{constructor(Ne){this._elementRef=Ne}}),"primary");let $t=(()=>{class Ne extends vt{constructor(Je,Se,Ue,rt){var at;super(Je),this._changeDetectorRef=Se,this._animationMode=rt,this._tabs=new a.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=S.w0.EMPTY,this._tabLabelSubscription=S.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=Ue&&Ue.animationDuration?Ue.animationDuration:"500ms",this.disablePagination=!(!Ue||null==Ue.disablePagination)&&Ue.disablePagination,this.dynamicHeight=!(!Ue||null==Ue.dynamicHeight)&&Ue.dynamicHeight,this.contentTabIndex=null!==(at=null==Ue?void 0:Ue.contentTabIndex)&&void 0!==at?at:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Je){this._dynamicHeight=(0,ce.Ig)(Je)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Je){this._indexToSelect=(0,ce.su)(Je,null)}get animationDuration(){return this._animationDuration}set animationDuration(Je){this._animationDuration=/^\d+$/.test(Je+"")?Je+"ms":Je}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Je){this._contentTabIndex=(0,ce.su)(Je,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Je){const Se=this._elementRef.nativeElement;Se.classList.remove(`mat-background-${this.backgroundColor}`),Je&&Se.classList.add(`mat-background-${Je}`),this._backgroundColor=Je}ngAfterContentChecked(){const Je=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Je){const Se=null==this._selectedIndex;if(!Se){this.selectedTabChange.emit(this._createChangeEvent(Je));const Ue=this._tabBodyWrapper.nativeElement;Ue.style.minHeight=Ue.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ue,rt)=>Ue.isActive=rt===Je),Se||(this.selectedIndexChange.emit(Je),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Se,Ue)=>{Se.position=Ue-Je,null!=this._selectedIndex&&0==Se.position&&!Se.origin&&(Se.origin=Je-this._selectedIndex)}),this._selectedIndex!==Je&&(this._selectedIndex=Je,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Je=this._clampTabIndex(this._indexToSelect);if(Je===this._selectedIndex){const Se=this._tabs.toArray();let Ue;for(let rt=0;rt{Se[Je].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Je))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,h.O)(this._allTabs)).subscribe(Je=>{this._tabs.reset(Je.filter(Se=>Se._closestTabGroup===this||!Se._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(Je){const Se=this._tabHeader;Se&&(Se.focusIndex=Je)}_focusChanged(Je){this._lastFocusedTabIndex=Je,this.focusChange.emit(this._createChangeEvent(Je))}_createChangeEvent(Je){const Se=new et;return Se.index=Je,this._tabs&&this._tabs.length&&(Se.tab=this._tabs.toArray()[Je]),Se}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,j.T)(...this._tabs.map(Je=>Je._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Je){return Math.min(this._tabs.length-1,Math.max(Je||0,0))}_getTabLabelId(Je){return`mat-tab-label-${this._groupId}-${Je}`}_getTabContentId(Je){return`mat-tab-content-${this._groupId}-${Je}`}_setTabBodyWrapperHeight(Je){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Se=this._tabBodyWrapper.nativeElement;Se.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Se.style.height=Je+"px")}_removeTabBodyWrapperHeight(){const Je=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Je.clientHeight,Je.style.height="",this.animationDone.emit()}_handleClick(Je,Se,Ue){Je.disabled||(this.selectedIndex=Se.focusIndex=Ue)}_getTabIndex(Je,Se){var Ue;return Je.disabled?null:Se===(null!==(Ue=this._lastFocusedTabIndex)&&void 0!==Ue?Ue:this.selectedIndex)?0:-1}_tabFocusChanged(Je,Se){Je&&"mouse"!==Je&&"touch"!==Je&&(this._tabHeader.focusIndex=Se)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,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]}),Ne})(),jt=(()=>{class Ne extends $t{constructor(Je,Se,Ue,rt){super(Je,Se,Ue,rt)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(d.Qb,8))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["mat-tab-group"]],contentQueries:function(Je,Se,Ue){if(1&Je&&a.Suo(Ue,ye,5),2&Je){let rt;a.iGM(rt=a.CRH())&&(Se._allTabs=rt)}},viewQuery:function(Je,Se){if(1&Je&&(a.Gf(B,5),a.Gf(N,5)),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._tabBodyWrapper=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabHeader=Ue.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Je,Se){2&Je&&a.ekj("mat-tab-group-dynamic-height",Se.dynamicHeight)("mat-tab-group-inverted-header","below"===Se.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:Te,useExisting:Ne}]),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(Je,Se){1&Je&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(rt){return Se._focusChanged(rt)})("selectFocusedIndex",function(rt){return Se.selectedIndex=rt}),a.YNc(2,be,5,15,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,Re,1,10,"mat-tab-body",5),a.qZA()),2&Je&&(a.Q6J("selectedIndex",Se.selectedIndex||0)("disableRipple",Se.disableRipple)("disablePagination",Se.disablePagination),a.xp6(2),a.Q6J("ngForOf",Se._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),a.xp6(2),a.Q6J("ngForOf",Se._tabs))},directives:[Nt,Ce,M.sg,ut,b.wG,t.kH,M.mk,M.O5,f.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}),Ne})(),Pe=0,Oe=(()=>{class Ne extends ui{constructor(Je,Se,Ue,rt,at,yt,gi){super(Je,rt,at,Se,Ue,yt,gi),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Je){const Se=this._elementRef.nativeElement.classList;Se.remove(`mat-background-${this.backgroundColor}`),Je&&Se.add(`mat-background-${Je}`),this._backgroundColor=Je}get disableRipple(){return this._disableRipple}set disableRipple(Je){this._disableRipple=(0,ce.Ig)(Je)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,h.O)(null),(0,w.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Je=this._items.toArray();for(let Se=0;Se{class Ne extends Oe{constructor(Je,Se,Ue,rt,at,yt,gi){super(Je,Se,Ue,rt,at,yt,gi)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(te.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(me.t4),a.Y36(d.Qb,8))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Je,Se,Ue){if(1&Je&&a.Suo(Ue,ft,5),2&Je){let rt;a.iGM(rt=a.CRH())&&(Se._items=rt)}},viewQuery:function(Je,Se){if(1&Je&&(a.Gf(ve,7),a.Gf(E,7),a.Gf(I,7),a.Gf(v,7),a.Gf(n,5),a.Gf(C,5)),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._inkBar=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabListContainer=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabList=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabListInner=Ue.first),a.iGM(Ue=a.CRH())&&(Se._nextPaginator=Ue.first),a.iGM(Ue=a.CRH())&&(Se._previousPaginator=Ue.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(Je,Se){2&Je&&(a.uIk("role",Se._getRole()),a.ekj("mat-tab-header-pagination-controls-enabled",Se._showPaginationControls)("mat-tab-header-rtl","rtl"==Se._getLayoutDirection())("mat-primary","warn"!==Se.color&&"accent"!==Se.color)("mat-accent","accent"===Se.color)("mat-warn","warn"===Se.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:we,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(Je,Se){1&Je&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Se._handlePaginatorClick("before")})("mousedown",function(rt){return Se._handlePaginatorPress("before",rt)})("touchend",function(){return Se._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return Se._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Se._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 Se._handlePaginatorPress("after",rt)})("click",function(){return Se._handlePaginatorClick("after")})("touchend",function(){return Se._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Je&&(a.ekj("mat-tab-header-pagination-disabled",Se._disableScrollBefore),a.Q6J("matRippleDisabled",Se._disableScrollBefore||Se.disableRipple)("disabled",Se._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Se._disableScrollAfter),a.Q6J("matRippleDisabled",Se._disableScrollAfter||Se.disableRipple)("disabled",Se._disableScrollAfter||null))},directives:[b.wG,e.wD,ve],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}),Ne})();const xe=(0,b.sb)((0,b.Kr)((0,b.Id)(class{})));let ht=(()=>{class Ne extends xe{constructor(Je,Se,Ue,rt,at,yt){super(),this._tabNavBar=Je,this.elementRef=Se,this._focusMonitor=at,this._isActive=!1,this.id="mat-tab-link-"+Pe++,this.rippleConfig=Ue||{},this.tabIndex=parseInt(rt)||0,"NoopAnimations"===yt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Je){const Se=(0,ce.Ig)(Je);Se!==this._isActive&&(this._isActive=Se,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(Je){this._tabNavBar.tabPanel&&Je.keyCode===J.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var Je;return this._tabNavBar.tabPanel?null===(Je=this._tabNavBar.tabPanel)||void 0===Je?void 0:Je.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 Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(Oe),a.Y36(a.SBq),a.Y36(b.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,inputs:{active:"active",id:"id"},features:[a.qOj]}),Ne})(),ft=(()=>{class Ne extends ht{constructor(Je,Se,Ue,rt,at,yt,gi,Qt){super(Je,Se,at,yt,gi,Qt),this._tabLinkRipple=new b.IR(this,Ue,Se,rt),this._tabLinkRipple.setupTriggerEvents(Se.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(le),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(b.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Je,Se){1&Je&&a.NdJ("focus",function(){return Se._handleFocus()})("keydown",function(rt){return Se._handleKeydown(rt)}),2&Je&&(a.uIk("aria-controls",Se._getAriaControls())("aria-current",Se._getAriaCurrent())("aria-disabled",Se.disabled)("aria-selected",Se._getAriaSelected())("id",Se.id)("tabIndex",Se._getTabIndex())("role",Se._getRole()),a.ekj("mat-tab-disabled",Se.disabled)("mat-tab-label-active",Se.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),Ne})(),it=(()=>{class Ne{}return Ne.\u0275fac=function(Je){return new(Je||Ne)},Ne.\u0275mod=a.oAB({type:Ne}),Ne.\u0275inj=a.cJS({imports:[[M.ez,b.BQ,f.eL,b.si,e.Q8,t.rt],b.BQ]}),Ne})()},4594:(Fe,Y,p)=>{"use strict";p.d(Y,{Ye:()=>h,g0:()=>w});var t=p(5e3),e=p(508),f=p(9808),M=p(925);const a=["*",[["mat-toolbar-row"]]],b=["*","mat-toolbar-row"],d=(0,e.pj)(class{constructor(D){this._elementRef=D}});let P=(()=>{class D{}return D.\u0275fac=function(k){return new(k||D)},D.\u0275dir=t.lG2({type:D,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),D})(),h=(()=>{class D extends d{constructor(k,S,U){super(k),this._platform=S,this._document=U}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return D.\u0275fac=function(k){return new(k||D)(t.Y36(t.SBq),t.Y36(M.t4),t.Y36(f.K0))},D.\u0275cmp=t.Xpm({type:D,selectors:[["mat-toolbar"]],contentQueries:function(k,S,U){if(1&k&&t.Suo(U,P,5),2&k){let Z;t.iGM(Z=t.CRH())&&(S._toolbarRows=Z)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(k,S){2&k&&t.ekj("mat-toolbar-multiple-rows",S._toolbarRows.length>0)("mat-toolbar-single-row",0===S._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:b,decls:2,vars:0,template:function(k,S){1&k&&(t.F$t(a),t.Hsn(0),t.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}),D})(),w=(()=>{class D{}return D.\u0275fac=function(k){return new(k||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),D})()},7238:(Fe,Y,p)=>{"use strict";p.d(Y,{AV:()=>I,gM:()=>c});var t=p(9776),e=p(5664),f=p(9808),M=p(5e3),a=p(508),b=p(5303),d=p(3191),P=p(1159),h=p(5113),A=p(925),w=p(7429),D=p(6360),L=p(7579),k=p(2722),S=p(5698),U=p(226);p(1777);const j=["tooltip"],de="tooltip-panel",ee=(0,A.i$)({passive:!0}),J=new M.OlP("mat-tooltip-scroll-strategy"),x={provide:J,deps:[t.aV],useFactory:function me(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},i=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function r(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let u=(()=>{class n{constructor(B,N,z,oe,ge,be,Re,we,Q,Ge,ve,F){this._overlay=B,this._elementRef=N,this._scrollDispatcher=z,this._viewContainerRef=oe,this._ngZone=ge,this._platform=be,this._ariaDescriber=Re,this._focusMonitor=we,this._dir=Ge,this._defaultOptions=ve,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 L.x,this._scrollStrategy=Q,this._document=F,ve&&(ve.position&&(this.position=ve.position),ve.touchGestures&&(this.touchGestures=ve.touchGestures)),Ge.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(B){var N;B!==this._position&&(this._position=B,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(N=this._tooltipInstance)||void 0===N||N.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(B){this._disabled=(0,d.Ig)(B),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(B){this._showDelay=(0,d.su)(B)}get hideDelay(){return this._hideDelay}set hideDelay(B){this._hideDelay=(0,d.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(([N,z])=>{B.removeEventListener(N,z,ee)}),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 N=this._createOverlay();this._detach(),this._portal=this._portal||new w.C5(this._tooltipComponent,this._viewContainerRef);const z=this._tooltipInstance=N.attach(this._portal).instance;z._triggerElement=this._elementRef.nativeElement,z._mouseLeaveHideDelay=this._hideDelay,z.afterHidden().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),z.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 N=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),z=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(N);return z.positionChanges.pipe((0,k.R)(this._destroyed)).subscribe(oe=>{this._updateCurrentPositionClass(oe.connectionPair),this._tooltipInstance&&oe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:z,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 oe;return null===(oe=this._tooltipInstance)||void 0===oe?void 0:oe._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,k.R)(this._destroyed)).subscribe(oe=>{this._isTooltipVisible()&&oe.keyCode===P.hY&&!(0,P.Vb)(oe)&&(oe.preventDefault(),oe.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 N=B.getConfig().positionStrategy,z=this._getOrigin(),oe=this._getOverlayPosition();N.withPositions([this._addOffset(Object.assign(Object.assign({},z.main),oe.main)),this._addOffset(Object.assign(Object.assign({},z.fallback),oe.fallback))])}_addOffset(B){return B}_getOrigin(){const B=!this._dir||"ltr"==this._dir.value,N=this.position;let z;"above"==N||"below"==N?z={originX:"center",originY:"above"==N?"top":"bottom"}:"before"==N||"left"==N&&B||"right"==N&&!B?z={originX:"start",originY:"center"}:("after"==N||"right"==N&&B||"left"==N&&!B)&&(z={originX:"end",originY:"center"});const{x:oe,y:ge}=this._invertPosition(z.originX,z.originY);return{main:z,fallback:{originX:oe,originY:ge}}}_getOverlayPosition(){const B=!this._dir||"ltr"==this._dir.value,N=this.position;let z;"above"==N?z={overlayX:"center",overlayY:"bottom"}:"below"==N?z={overlayX:"center",overlayY:"top"}:"before"==N||"left"==N&&B||"right"==N&&!B?z={overlayX:"end",overlayY:"center"}:("after"==N||"right"==N&&B||"left"==N&&!B)&&(z={overlayX:"start",overlayY:"center"});const{x:oe,y:ge}=this._invertPosition(z.overlayX,z.overlayY);return{main:z,fallback:{overlayX:oe,overlayY:ge}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,S.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,N){return"above"===this.position||"below"===this.position?"top"===N?N="bottom":"bottom"===N&&(N="top"):"end"===B?B="start":"start"===B&&(B="end"),{x:B,y:N}}_updateCurrentPositionClass(B){const{overlayY:N,originX:z,originY:oe}=B;let ge;if(ge="center"===N?this._dir&&"rtl"===this._dir.value?"end"===z?"left":"right":"start"===z?"left":"right":"bottom"===N&&"top"===oe?"above":"below",ge!==this._currentPosition){const be=this._overlayRef;if(be){const Re=`${this._cssClassPrefix}-${de}-`;be.removePanelClass(Re+this._currentPosition),be.addPanelClass(Re+ge)}this._currentPosition=ge}}_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",N=>{var z;const oe=N.relatedTarget;(!oe||!(null===(z=this._overlayRef)||void 0===z?void 0:z.overlayElement.contains(oe)))&&this.hide()}],["wheel",N=>this._wheelListener(N)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const N=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};B.push(["touchend",N],["touchcancel",N])}this._addListeners(B),this._passiveListeners.push(...B)}_addListeners(B){B.forEach(([N,z])=>{this._elementRef.nativeElement.addEventListener(N,z,ee)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(B){if(this._isTooltipVisible()){const N=this._document.elementFromPoint(B.clientX,B.clientY),z=this._elementRef.nativeElement;N!==z&&!z.contains(N)&&this.hide()}}_disableNativeGesturesIfNecessary(){const B=this.touchGestures;if("off"!==B){const N=this._elementRef.nativeElement,z=N.style;("on"===B||"INPUT"!==N.nodeName&&"TEXTAREA"!==N.nodeName)&&(z.userSelect=z.msUserSelect=z.webkitUserSelect=z.MozUserSelect="none"),("on"===B||!N.draggable)&&(z.webkitUserDrag="none"),z.touchAction="none",z.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(B){M.$Z()},n.\u0275dir=M.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 u{constructor(B,N,z,oe,ge,be,Re,we,Q,Ge,ve,F){super(B,N,z,oe,ge,be,Re,we,Q,Ge,ve,F),this._tooltipComponent=E}}return n.\u0275fac=function(B){return new(B||n)(M.Y36(t.aV),M.Y36(M.SBq),M.Y36(b.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(A.t4),M.Y36(e.$s),M.Y36(e.tE),M.Y36(J),M.Y36(U.Is,8),M.Y36(i,8),M.Y36(f.K0))},n.\u0275dir=M.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),n})(),_=(()=>{class n{constructor(B,N){this._changeDetectorRef=B,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new L.x,this._animationsDisabled="NoopAnimations"===N}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 N=this._tooltip.nativeElement,z=this._showAnimation,oe=this._hideAnimation;if(N.classList.remove(B?oe:z),N.classList.add(B?z:oe),this._isVisible=B,B&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ge=getComputedStyle(N);("0s"===ge.getPropertyValue("animation-duration")||"none"===ge.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}B&&this._onShow(),this._animationsDisabled&&(N.classList.add("_mat-animation-noopable"),this._finalizeAnimation(B))}}return n.\u0275fac=function(B){return new(B||n)(M.Y36(M.sBO),M.Y36(D.Qb,8))},n.\u0275dir=M.lG2({type:n}),n})(),E=(()=>{class n extends _{constructor(B,N,z){super(B,z),this._breakpointObserver=N,this._isHandset=this._breakpointObserver.observe(h.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(B){return new(B||n)(M.Y36(M.sBO),M.Y36(h.Yg),M.Y36(D.Qb,8))},n.\u0275cmp=M.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(B,N){if(1&B&&M.Gf(j,7),2&B){let z;M.iGM(z=M.CRH())&&(N._tooltip=z.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(B,N){1&B&&M.NdJ("mouseleave",function(oe){return N._handleMouseLeave(oe)}),2&B&&M.Udp("zoom",N.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(B,N){if(1&B&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(oe){return N._handleAnimationEnd(oe)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&B){let z;M.ekj("mat-tooltip-handset",null==(z=M.lcZ(2,4,N._isHandset))?null:z.matches),M.Q6J("ngClass",N.tooltipClass),M.xp6(3),M.Oqu(N.message)}},directives:[f.mk],pipes:[f.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=M.oAB({type:n}),n.\u0275inj=M.cJS({providers:[x],imports:[[e.rt,f.ez,t.U8,a.BQ],a.BQ,b.ZD]}),n})()},149:(Fe,Y,p)=>{"use strict";p.d(Y,{Ar:()=>k,GZ:()=>D,WX:()=>de,dp:()=>j,eu:()=>U,fQ:()=>w,gi:()=>S,uo:()=>A});var t=p(8258),e=p(5e3),f=p(508),M=p(3191),a=p(449),b=p(1135),d=p(6451),P=p(4004);const h=(0,f.sb)((0,f.Id)(t.Hs));let A=(()=>{class ee extends h{constructor(ce,J,me){super(ce,J),this.tabIndex=Number(me)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return ee.\u0275fac=function(ce){return new(ce||ee)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[e._Bn([{provide:t.Hs,useExisting:ee}]),e.qOj]}),ee})(),w=(()=>{class ee extends t.rO{}return ee.\u0275fac=function(){let te;return function(J){return(te||(te=e.n5z(ee)))(J||ee)}}(),ee.\u0275dir=e.lG2({type:ee,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:ee}]),e.qOj]}),ee})(),D=(()=>{class ee extends t.Xx{constructor(ce,J,me,x){super(ce,J,me),this._disabled=!1,this.tabIndex=Number(x)||0}get disabled(){return this._disabled}set disabled(ce){this._disabled=(0,M.Ig)(ce)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ce){this._tabIndex=null!=ce?ce:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return ee.\u0275fac=function(ce){return new(ce||ee)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[e._Bn([{provide:t.Xx,useExisting:ee},{provide:t.Hs,useExisting:ee},{provide:t.HI,useExisting:ee}]),e.qOj]}),ee})(),k=(()=>{class ee{constructor(ce,J){this.viewContainer=ce,this._node=J}}return ee.\u0275fac=function(ce){return new(ce||ee)(e.Y36(e.s_b),e.Y36(t.HI,8))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:ee}])]}),ee})(),S=(()=>{class ee extends t._0{}return ee.\u0275fac=function(){let te;return function(J){return(te||(te=e.n5z(ee)))(J||ee)}}(),ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-tree"]],viewQuery:function(ce,J){if(1&ce&&e.Gf(k,7),2&ce){let me;e.iGM(me=e.CRH())&&(J._nodeOutlet=me.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:ee}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ce,J){1&ce&&e.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}),ee})(),U=(()=>{class ee extends t.Ud{}return ee.\u0275fac=function(){let te;return function(J){return(te||(te=e.n5z(ee)))(J||ee)}}(),ee.\u0275dir=e.lG2({type:ee,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:ee}]),e.qOj]}),ee})(),j=(()=>{class ee{}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({imports:[[t.nZ,f.BQ],f.BQ]}),ee})();class de extends a.o2{constructor(){super(...arguments),this._data=new b.X([])}get data(){return this._data.value}set data(te){this._data.next(te)}connect(te){return(0,d.T)(te.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},6360:(Fe,Y,p)=>{"use strict";p.d(Y,{Qb:()=>Zs,PW:()=>Vr});var t=p(5e3),e=p(2313),f=p(1777);const M=!1;function b(_t){return new t.vHH(3e3,M)}function ge(){return"undefined"!=typeof window&&void 0!==window.document}function be(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Re(_t){switch(_t.length){case 0:return new f.ZN;case 1:return _t[0];default:return new f.ZE(_t)}}function we(_t,re,he,Ye,wt={},Ft={}){const ii=[],ni=[];let yi=-1,Pi=null;if(Ye.forEach(nn=>{const un=nn.offset,Sn=un==yi,Pn=Sn&&Pi||{};Object.keys(nn).forEach(yn=>{let Tn=yn,qn=nn[yn];if("offset"!==yn)switch(Tn=re.normalizePropertyName(Tn,ii),qn){case f.k1:qn=wt[yn];break;case f.l3:qn=Ft[yn];break;default:qn=re.normalizeStyleValue(yn,Tn,qn,ii)}Pn[Tn]=qn}),Sn||ni.push(Pn),Pi=Pn,yi=un}),ii.length)throw function u(_t){return new t.vHH(3502,M)}();return ni}function Q(_t,re,he,Ye){switch(re){case"start":_t.onStart(()=>Ye(he&&Ge(he,"start",_t)));break;case"done":_t.onDone(()=>Ye(he&&Ge(he,"done",_t)));break;case"destroy":_t.onDestroy(()=>Ye(he&&Ge(he,"destroy",_t)))}}function Ge(_t,re,he){const Ye=he.totalTime,Ft=ve(_t.element,_t.triggerName,_t.fromState,_t.toState,re||_t.phaseName,null==Ye?_t.totalTime:Ye,!!he.disabled),ii=_t._data;return null!=ii&&(Ft._data=ii),Ft}function ve(_t,re,he,Ye,wt="",Ft=0,ii){return{element:_t,triggerName:re,fromState:he,toState:Ye,phaseName:wt,totalTime:Ft,disabled:!!ii}}function F(_t,re,he){let Ye;return _t instanceof Map?(Ye=_t.get(re),Ye||_t.set(re,Ye=he)):(Ye=_t[re],Ye||(Ye=_t[re]=he)),Ye}function De(_t){const re=_t.indexOf(":");return[_t.substring(1,re),_t.substr(re+1)]}let lt=(_t,re)=>!1,Ie=(_t,re,he)=>[],Ae=null;function se(_t){const re=_t.parentNode||_t.host;return re===Ae?null:re}(be()||"undefined"!=typeof Element)&&(ge()?(Ae=(()=>document.documentElement)(),lt=(_t,re)=>{for(;re;){if(re===_t)return!0;re=se(re)}return!1}):lt=(_t,re)=>_t.contains(re),Ie=(_t,re,he)=>{if(he)return Array.from(_t.querySelectorAll(re));const Ye=_t.querySelector(re);return Ye?[Ye]:[]});let W=null,$=!1;function ue(_t){W||(W=function Ce(){return"undefined"!=typeof document?document.body:null}()||{},$=!!W.style&&"WebkitAppearance"in W.style);let re=!0;return W.style&&!function ye(_t){return"ebkit"==_t.substring(1,6)}(_t)&&(re=_t in W.style,!re&&$&&(re="Webkit"+_t.charAt(0).toUpperCase()+_t.substr(1)in W.style)),re}const Le=lt,ct=Ie;let Dt=(()=>{class _t{validateStyleProperty(he){return ue(he)}matchesElement(he,Ye){return!1}containsElement(he,Ye){return Le(he,Ye)}getParentElement(he){return se(he)}query(he,Ye,wt){return ct(he,Ye,wt)}computeStyle(he,Ye,wt){return wt||""}animate(he,Ye,wt,Ft,ii,ni=[],yi){return new f.ZN(wt,Ft)}}return _t.\u0275fac=function(he){return new(he||_t)},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})(),di=(()=>{class _t{}return _t.NOOP=new Dt,_t})();const xt="ng-enter",Nt="ng-leave",gt="ng-trigger",et=".ng-trigger",vt="ng-animating",$t=".ng-animating";function jt(_t){if("number"==typeof _t)return _t;const re=_t.match(/^(-?[\.\d]+)(m?s)/);return!re||re.length<2?0:Pe(parseFloat(re[1]),re[2])}function Pe(_t,re){return"s"===re?1e3*_t:_t}function Oe(_t,re,he){return _t.hasOwnProperty("duration")?_t:function le(_t,re,he){let wt,Ft=0,ii="";if("string"==typeof _t){const ni=_t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ni)return re.push(b()),{duration:0,delay:0,easing:""};wt=Pe(parseFloat(ni[1]),ni[2]);const yi=ni[3];null!=yi&&(Ft=Pe(parseFloat(yi),ni[4]));const Pi=ni[5];Pi&&(ii=Pi)}else wt=_t;if(!he){let ni=!1,yi=re.length;wt<0&&(re.push(function d(){return new t.vHH(3100,M)}()),ni=!0),Ft<0&&(re.push(function P(){return new t.vHH(3101,M)}()),ni=!0),ni&&re.splice(yi,0,b())}return{duration:wt,delay:Ft,easing:ii}}(_t,re,he)}function xe(_t,re={}){return Object.keys(_t).forEach(he=>{re[he]=_t[he]}),re}function ft(_t,re,he={}){if(re)for(let Ye in _t)he[Ye]=_t[Ye];else xe(_t,he);return he}function Ht(_t,re,he){return he?re+":"+he+";":""}function it(_t){let re="";for(let he=0;he<_t.style.length;he++){const Ye=_t.style.item(he);re+=Ht(0,Ye,_t.style.getPropertyValue(Ye))}for(const he in _t.style)_t.style.hasOwnProperty(he)&&!he.startsWith("_")&&(re+=Ht(0,Jt(he),_t.style[he]));_t.setAttribute("style",re)}function Ne(_t,re,he){_t.style&&(Object.keys(re).forEach(Ye=>{const wt=Qt(Ye);he&&!he.hasOwnProperty(Ye)&&(he[Ye]=_t.style[wt]),_t.style[wt]=re[Ye]}),be()&&it(_t))}function tt(_t,re){_t.style&&(Object.keys(re).forEach(he=>{const Ye=Qt(he);_t.style[Ye]=""}),be()&&it(_t))}function Je(_t){return Array.isArray(_t)?1==_t.length?_t[0]:(0,f.vP)(_t):_t}const Ue=new RegExp("{{\\s*(.+?)\\s*}}","g");function rt(_t){let re=[];if("string"==typeof _t){let he;for(;he=Ue.exec(_t);)re.push(he[1]);Ue.lastIndex=0}return re}function at(_t,re,he){const Ye=_t.toString(),wt=Ye.replace(Ue,(Ft,ii)=>{let ni=re[ii];return re.hasOwnProperty(ii)||(he.push(function A(_t){return new t.vHH(3003,M)}()),ni=""),ni.toString()});return wt==Ye?_t:wt}function yt(_t){const re=[];let he=_t.next();for(;!he.done;)re.push(he.value),he=_t.next();return re}const gi=/-+([a-z0-9])/g;function Qt(_t){return _t.replace(gi,(...re)=>re[1].toUpperCase())}function Jt(_t){return _t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ai(_t,re,he){switch(re.type){case 7:return _t.visitTrigger(re,he);case 0:return _t.visitState(re,he);case 1:return _t.visitTransition(re,he);case 2:return _t.visitSequence(re,he);case 3:return _t.visitGroup(re,he);case 4:return _t.visitAnimate(re,he);case 5:return _t.visitKeyframes(re,he);case 6:return _t.visitStyle(re,he);case 8:return _t.visitReference(re,he);case 9:return _t.visitAnimateChild(re,he);case 10:return _t.visitAnimateRef(re,he);case 11:return _t.visitQuery(re,he);case 12:return _t.visitStagger(re,he);default:throw function w(_t){return new t.vHH(3004,M)}()}}function tn(_t,re){return window.getComputedStyle(_t)[re]}function ie(_t,re){const he=[];return"string"==typeof _t?_t.split(/\s*,\s*/).forEach(Ye=>function qe(_t,re,he){if(":"==_t[0]){const yi=function Mt(_t,re){switch(_t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(he,Ye)=>parseFloat(Ye)>parseFloat(he);case":decrement":return(he,Ye)=>parseFloat(Ye) *"}}(_t,he);if("function"==typeof yi)return void re.push(yi);_t=yi}const Ye=_t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Ye||Ye.length<4)return he.push(function J(_t){return new t.vHH(3015,M)}()),re;const wt=Ye[1],Ft=Ye[2],ii=Ye[3];re.push(Ei(wt,ii));"<"==Ft[0]&&!("*"==wt&&"*"==ii)&&re.push(Ei(ii,wt))}(Ye,he,re)):he.push(_t),he}const Vt=new Set(["true","1"]),Mi=new Set(["false","0"]);function Ei(_t,re){const he=Vt.has(_t)||Mi.has(_t),Ye=Vt.has(re)||Mi.has(re);return(wt,Ft)=>{let ii="*"==_t||_t==wt,ni="*"==re||re==Ft;return!ii&&he&&"boolean"==typeof wt&&(ii=wt?Vt.has(_t):Mi.has(_t)),!ni&&Ye&&"boolean"==typeof Ft&&(ni=Ft?Vt.has(re):Mi.has(re)),ii&&ni}}const ji=new RegExp("s*:selfs*,?","g");function Kt(_t,re,he,Ye){return new zt(_t).build(re,he,Ye)}class zt{constructor(re){this._driver=re}build(re,he,Ye){const wt=new mi(he);this._resetContextStyleTimingState(wt);const Ft=ai(this,Je(re),wt);return wt.unsupportedCSSPropertiesFound.size&&wt.unsupportedCSSPropertiesFound.keys(),Ft}_resetContextStyleTimingState(re){re.currentQuerySelector="",re.collectedStyles={},re.collectedStyles[""]={},re.currentTime=0}visitTrigger(re,he){let Ye=he.queryCount=0,wt=he.depCount=0;const Ft=[],ii=[];return"@"==re.name.charAt(0)&&he.errors.push(function L(){return new t.vHH(3006,M)}()),re.definitions.forEach(ni=>{if(this._resetContextStyleTimingState(he),0==ni.type){const yi=ni,Pi=yi.name;Pi.toString().split(/\s*,\s*/).forEach(nn=>{yi.name=nn,Ft.push(this.visitState(yi,he))}),yi.name=Pi}else if(1==ni.type){const yi=this.visitTransition(ni,he);Ye+=yi.queryCount,wt+=yi.depCount,ii.push(yi)}else he.errors.push(function k(){return new t.vHH(3007,M)}())}),{type:7,name:re.name,states:Ft,transitions:ii,queryCount:Ye,depCount:wt,options:null}}visitState(re,he){const Ye=this.visitStyle(re.styles,he),wt=re.options&&re.options.params||null;if(Ye.containsDynamicStyles){const Ft=new Set,ii=wt||{};Ye.styles.forEach(ni=>{if(vi(ni)){const yi=ni;Object.keys(yi).forEach(Pi=>{rt(yi[Pi]).forEach(nn=>{ii.hasOwnProperty(nn)||Ft.add(nn)})})}}),Ft.size&&(yt(Ft.values()),he.errors.push(function S(_t,re){return new t.vHH(3008,M)}()))}return{type:0,name:re.name,style:Ye,options:wt?{params:wt}:null}}visitTransition(re,he){he.queryCount=0,he.depCount=0;const Ye=ai(this,Je(re.animation),he);return{type:1,matchers:ie(re.expr,he.errors),animation:Ye,queryCount:he.queryCount,depCount:he.depCount,options:Fi(re.options)}}visitSequence(re,he){return{type:2,steps:re.steps.map(Ye=>ai(this,Ye,he)),options:Fi(re.options)}}visitGroup(re,he){const Ye=he.currentTime;let wt=0;const Ft=re.steps.map(ii=>{he.currentTime=Ye;const ni=ai(this,ii,he);return wt=Math.max(wt,he.currentTime),ni});return he.currentTime=wt,{type:3,steps:Ft,options:Fi(re.options)}}visitAnimate(re,he){const Ye=function Bi(_t,re){if(_t.hasOwnProperty("duration"))return _t;if("number"==typeof _t)return pn(Oe(_t,re).duration,0,"");const he=_t;if(he.split(/\s+/).some(Ft=>"{"==Ft.charAt(0)&&"{"==Ft.charAt(1))){const Ft=pn(0,0,"");return Ft.dynamic=!0,Ft.strValue=he,Ft}const wt=Oe(he,re);return pn(wt.duration,wt.delay,wt.easing)}(re.timings,he.errors);he.currentAnimateTimings=Ye;let wt,Ft=re.styles?re.styles:(0,f.oB)({});if(5==Ft.type)wt=this.visitKeyframes(Ft,he);else{let ii=re.styles,ni=!1;if(!ii){ni=!0;const Pi={};Ye.easing&&(Pi.easing=Ye.easing),ii=(0,f.oB)(Pi)}he.currentTime+=Ye.duration+Ye.delay;const yi=this.visitStyle(ii,he);yi.isEmptyStep=ni,wt=yi}return he.currentAnimateTimings=null,{type:4,timings:Ye,style:wt,options:null}}visitStyle(re,he){const Ye=this._makeStyleAst(re,he);return this._validateStyleAst(Ye,he),Ye}_makeStyleAst(re,he){const Ye=[];Array.isArray(re.styles)?re.styles.forEach(ii=>{"string"==typeof ii?ii==f.l3?Ye.push(ii):he.errors.push(function U(_t){return new t.vHH(3002,M)}()):Ye.push(ii)}):Ye.push(re.styles);let wt=!1,Ft=null;return Ye.forEach(ii=>{if(vi(ii)){const ni=ii,yi=ni.easing;if(yi&&(Ft=yi,delete ni.easing),!wt)for(let Pi in ni)if(ni[Pi].toString().indexOf("{{")>=0){wt=!0;break}}}),{type:6,styles:Ye,easing:Ft,offset:re.offset,containsDynamicStyles:wt,options:null}}_validateStyleAst(re,he){const Ye=he.currentAnimateTimings;let wt=he.currentTime,Ft=he.currentTime;Ye&&Ft>0&&(Ft-=Ye.duration+Ye.delay),re.styles.forEach(ii=>{"string"!=typeof ii&&Object.keys(ii).forEach(ni=>{if(!this._driver.validateStyleProperty(ni))return delete ii[ni],void he.unsupportedCSSPropertiesFound.add(ni);const yi=he.collectedStyles[he.currentQuerySelector],Pi=yi[ni];let nn=!0;Pi&&(Ft!=wt&&Ft>=Pi.startTime&&wt<=Pi.endTime&&(he.errors.push(function j(_t,re,he,Ye,wt){return new t.vHH(3010,M)}()),nn=!1),Ft=Pi.startTime),nn&&(yi[ni]={startTime:Ft,endTime:wt}),he.options&&function Se(_t,re,he){const Ye=re.params||{},wt=rt(_t);wt.length&&wt.forEach(Ft=>{Ye.hasOwnProperty(Ft)||he.push(function h(_t){return new t.vHH(3001,M)}())})}(ii[ni],he.options,he.errors)})})}visitKeyframes(re,he){const Ye={type:5,styles:[],options:null};if(!he.currentAnimateTimings)return he.errors.push(function ne(){return new t.vHH(3011,M)}()),Ye;let Ft=0;const ii=[];let ni=!1,yi=!1,Pi=0;const nn=re.steps.map(xr=>{const cr=this._makeStyleAst(xr,he);let Xr=null!=cr.offset?cr.offset:function ti(_t){if("string"==typeof _t)return null;let re=null;if(Array.isArray(_t))_t.forEach(he=>{if(vi(he)&&he.hasOwnProperty("offset")){const Ye=he;re=parseFloat(Ye.offset),delete Ye.offset}});else if(vi(_t)&&_t.hasOwnProperty("offset")){const he=_t;re=parseFloat(he.offset),delete he.offset}return re}(cr.styles),Yr=0;return null!=Xr&&(Ft++,Yr=cr.offset=Xr),yi=yi||Yr<0||Yr>1,ni=ni||Yr0&&Ft{const Xr=Sn>0?cr==Pn?1:Sn*cr:ii[cr],Yr=Xr*qn;he.currentTime=yn+Tn.delay+Yr,Tn.duration=Yr,this._validateStyleAst(xr,he),xr.offset=Xr,Ye.styles.push(xr)}),Ye}visitReference(re,he){return{type:8,animation:ai(this,Je(re.animation),he),options:Fi(re.options)}}visitAnimateChild(re,he){return he.depCount++,{type:9,options:Fi(re.options)}}visitAnimateRef(re,he){return{type:10,animation:this.visitReference(re.animation,he),options:Fi(re.options)}}visitQuery(re,he){const Ye=he.currentQuerySelector,wt=re.options||{};he.queryCount++,he.currentQuery=re;const[Ft,ii]=function si(_t){const re=!!_t.split(/\s*,\s*/).find(he=>":self"==he);return re&&(_t=_t.replace(ji,"")),_t=_t.replace(/@\*/g,et).replace(/@\w+/g,he=>et+"-"+he.substr(1)).replace(/:animating/g,$t),[_t,re]}(re.selector);he.currentQuerySelector=Ye.length?Ye+" "+Ft:Ft,F(he.collectedStyles,he.currentQuerySelector,{});const ni=ai(this,Je(re.animation),he);return he.currentQuery=null,he.currentQuerySelector=Ye,{type:11,selector:Ft,limit:wt.limit||0,optional:!!wt.optional,includeSelf:ii,animation:ni,originalSelector:re.selector,options:Fi(re.options)}}visitStagger(re,he){he.currentQuery||he.errors.push(function te(){return new t.vHH(3013,M)}());const Ye="full"===re.timings?{duration:0,delay:0,easing:"full"}:Oe(re.timings,he.errors,!0);return{type:12,animation:ai(this,Je(re.animation),he),timings:Ye,options:null}}}class mi{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 vi(_t){return!Array.isArray(_t)&&"object"==typeof _t}function Fi(_t){return _t?(_t=xe(_t)).params&&(_t.params=function Pt(_t){return _t?xe(_t):null}(_t.params)):_t={},_t}function pn(_t,re,he){return{duration:_t,delay:re,easing:he}}function Fn(_t,re,he,Ye,wt,Ft,ii=null,ni=!1){return{type:1,element:_t,keyframes:re,preStyleProps:he,postStyleProps:Ye,duration:wt,delay:Ft,totalTime:wt+Ft,easing:ii,subTimeline:ni}}class Dn{constructor(){this._map=new Map}get(re){return this._map.get(re)||[]}append(re,he){let Ye=this._map.get(re);Ye||this._map.set(re,Ye=[]),Ye.push(...he)}has(re){return this._map.has(re)}clear(){this._map.clear()}}const cn=new RegExp(":enter","g"),Br=new RegExp(":leave","g");function Jn(_t,re,he,Ye,wt,Ft={},ii={},ni,yi,Pi=[]){return(new mr).buildKeyframes(_t,re,he,Ye,wt,Ft,ii,ni,yi,Pi)}class mr{buildKeyframes(re,he,Ye,wt,Ft,ii,ni,yi,Pi,nn=[]){Pi=Pi||new Dn;const un=new Nr(re,he,Pi,wt,Ft,nn,[]);un.options=yi,un.currentTimeline.setStyles([ii],null,un.errors,yi),ai(this,Ye,un);const Sn=un.timelines.filter(Pn=>Pn.containsAnimation());if(Object.keys(ni).length){let Pn;for(let yn=Sn.length-1;yn>=0;yn--){const Tn=Sn[yn];if(Tn.element===he){Pn=Tn;break}}Pn&&!Pn.allowOnlyTimelineStyles()&&Pn.setStyles([ni],null,un.errors,yi)}return Sn.length?Sn.map(Pn=>Pn.buildKeyframes()):[Fn(he,[],[],[],0,0,"",!1)]}visitTrigger(re,he){}visitState(re,he){}visitTransition(re,he){}visitAnimateChild(re,he){const Ye=he.subInstructions.get(he.element);if(Ye){const wt=he.createSubContext(re.options),Ft=he.currentTimeline.currentTime,ii=this._visitSubInstructions(Ye,wt,wt.options);Ft!=ii&&he.transformIntoNewTimeline(ii)}he.previousNode=re}visitAnimateRef(re,he){const Ye=he.createSubContext(re.options);Ye.transformIntoNewTimeline(),this.visitReference(re.animation,Ye),he.transformIntoNewTimeline(Ye.currentTimeline.currentTime),he.previousNode=re}_visitSubInstructions(re,he,Ye){let Ft=he.currentTimeline.currentTime;const ii=null!=Ye.duration?jt(Ye.duration):null,ni=null!=Ye.delay?jt(Ye.delay):null;return 0!==ii&&re.forEach(yi=>{const Pi=he.appendInstructionToTimeline(yi,ii,ni);Ft=Math.max(Ft,Pi.duration+Pi.delay)}),Ft}visitReference(re,he){he.updateOptions(re.options,!0),ai(this,re.animation,he),he.previousNode=re}visitSequence(re,he){const Ye=he.subContextCount;let wt=he;const Ft=re.options;if(Ft&&(Ft.params||Ft.delay)&&(wt=he.createSubContext(Ft),wt.transformIntoNewTimeline(),null!=Ft.delay)){6==wt.previousNode.type&&(wt.currentTimeline.snapshotCurrentStyles(),wt.previousNode=Pr);const ii=jt(Ft.delay);wt.delayNextStep(ii)}re.steps.length&&(re.steps.forEach(ii=>ai(this,ii,wt)),wt.currentTimeline.applyStylesToKeyframe(),wt.subContextCount>Ye&&wt.transformIntoNewTimeline()),he.previousNode=re}visitGroup(re,he){const Ye=[];let wt=he.currentTimeline.currentTime;const Ft=re.options&&re.options.delay?jt(re.options.delay):0;re.steps.forEach(ii=>{const ni=he.createSubContext(re.options);Ft&&ni.delayNextStep(Ft),ai(this,ii,ni),wt=Math.max(wt,ni.currentTimeline.currentTime),Ye.push(ni.currentTimeline)}),Ye.forEach(ii=>he.currentTimeline.mergeTimelineCollectedStyles(ii)),he.transformIntoNewTimeline(wt),he.previousNode=re}_visitTiming(re,he){if(re.dynamic){const Ye=re.strValue;return Oe(he.params?at(Ye,he.params,he.errors):Ye,he.errors)}return{duration:re.duration,delay:re.delay,easing:re.easing}}visitAnimate(re,he){const Ye=he.currentAnimateTimings=this._visitTiming(re.timings,he),wt=he.currentTimeline;Ye.delay&&(he.incrementTime(Ye.delay),wt.snapshotCurrentStyles());const Ft=re.style;5==Ft.type?this.visitKeyframes(Ft,he):(he.incrementTime(Ye.duration),this.visitStyle(Ft,he),wt.applyStylesToKeyframe()),he.currentAnimateTimings=null,he.previousNode=re}visitStyle(re,he){const Ye=he.currentTimeline,wt=he.currentAnimateTimings;!wt&&Ye.getCurrentStyleProperties().length&&Ye.forwardFrame();const Ft=wt&&wt.easing||re.easing;re.isEmptyStep?Ye.applyEmptyStep(Ft):Ye.setStyles(re.styles,Ft,he.errors,he.options),he.previousNode=re}visitKeyframes(re,he){const Ye=he.currentAnimateTimings,wt=he.currentTimeline.duration,Ft=Ye.duration,ni=he.createSubContext().currentTimeline;ni.easing=Ye.easing,re.styles.forEach(yi=>{ni.forwardTime((yi.offset||0)*Ft),ni.setStyles(yi.styles,yi.easing,he.errors,he.options),ni.applyStylesToKeyframe()}),he.currentTimeline.mergeTimelineCollectedStyles(ni),he.transformIntoNewTimeline(wt+Ft),he.previousNode=re}visitQuery(re,he){const Ye=he.currentTimeline.currentTime,wt=re.options||{},Ft=wt.delay?jt(wt.delay):0;Ft&&(6===he.previousNode.type||0==Ye&&he.currentTimeline.getCurrentStyleProperties().length)&&(he.currentTimeline.snapshotCurrentStyles(),he.previousNode=Pr);let ii=Ye;const ni=he.invokeQuery(re.selector,re.originalSelector,re.limit,re.includeSelf,!!wt.optional,he.errors);he.currentQueryTotal=ni.length;let yi=null;ni.forEach((Pi,nn)=>{he.currentQueryIndex=nn;const un=he.createSubContext(re.options,Pi);Ft&&un.delayNextStep(Ft),Pi===he.element&&(yi=un.currentTimeline),ai(this,re.animation,un),un.currentTimeline.applyStylesToKeyframe(),ii=Math.max(ii,un.currentTimeline.currentTime)}),he.currentQueryIndex=0,he.currentQueryTotal=0,he.transformIntoNewTimeline(ii),yi&&(he.currentTimeline.mergeTimelineCollectedStyles(yi),he.currentTimeline.snapshotCurrentStyles()),he.previousNode=re}visitStagger(re,he){const Ye=he.parentContext,wt=he.currentTimeline,Ft=re.timings,ii=Math.abs(Ft.duration),ni=ii*(he.currentQueryTotal-1);let yi=ii*he.currentQueryIndex;switch(Ft.duration<0?"reverse":Ft.easing){case"reverse":yi=ni-yi;break;case"full":yi=Ye.currentStaggerTime}const nn=he.currentTimeline;yi&&nn.delayNextStep(yi);const un=nn.currentTime;ai(this,re.animation,he),he.previousNode=re,Ye.currentStaggerTime=wt.currentTime-un+(wt.startTime-Ye.currentTimeline.startTime)}}const Pr={};class Nr{constructor(re,he,Ye,wt,Ft,ii,ni,yi){this._driver=re,this.element=he,this.subInstructions=Ye,this._enterClassName=wt,this._leaveClassName=Ft,this.errors=ii,this.timelines=ni,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Pr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=yi||new ca(this._driver,he,0),ni.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(re,he){if(!re)return;const Ye=re;let wt=this.options;null!=Ye.duration&&(wt.duration=jt(Ye.duration)),null!=Ye.delay&&(wt.delay=jt(Ye.delay));const Ft=Ye.params;if(Ft){let ii=wt.params;ii||(ii=this.options.params={}),Object.keys(Ft).forEach(ni=>{(!he||!ii.hasOwnProperty(ni))&&(ii[ni]=at(Ft[ni],ii,this.errors))})}}_copyOptions(){const re={};if(this.options){const he=this.options.params;if(he){const Ye=re.params={};Object.keys(he).forEach(wt=>{Ye[wt]=he[wt]})}}return re}createSubContext(re=null,he,Ye){const wt=he||this.element,Ft=new Nr(this._driver,wt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(wt,Ye||0));return Ft.previousNode=this.previousNode,Ft.currentAnimateTimings=this.currentAnimateTimings,Ft.options=this._copyOptions(),Ft.updateOptions(re),Ft.currentQueryIndex=this.currentQueryIndex,Ft.currentQueryTotal=this.currentQueryTotal,Ft.parentContext=this,this.subContextCount++,Ft}transformIntoNewTimeline(re){return this.previousNode=Pr,this.currentTimeline=this.currentTimeline.fork(this.element,re),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(re,he,Ye){const wt={duration:null!=he?he:re.duration,delay:this.currentTimeline.currentTime+(null!=Ye?Ye:0)+re.delay,easing:""},Ft=new ga(this._driver,re.element,re.keyframes,re.preStyleProps,re.postStyleProps,wt,re.stretchStartingKeyframe);return this.timelines.push(Ft),wt}incrementTime(re){this.currentTimeline.forwardTime(this.currentTimeline.duration+re)}delayNextStep(re){re>0&&this.currentTimeline.delayNextStep(re)}invokeQuery(re,he,Ye,wt,Ft,ii){let ni=[];if(wt&&ni.push(this.element),re.length>0){re=(re=re.replace(cn,"."+this._enterClassName)).replace(Br,"."+this._leaveClassName);let Pi=this._driver.query(this.element,re,1!=Ye);0!==Ye&&(Pi=Ye<0?Pi.slice(Pi.length+Ye,Pi.length):Pi.slice(0,Ye)),ni.push(...Pi)}return!Ft&&0==ni.length&&ii.push(function ce(_t){return new t.vHH(3014,M)}()),ni}}class ca{constructor(re,he,Ye,wt){this._driver=re,this.element=he,this.startTime=Ye,this._elementTimelineStylesLookup=wt,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(he),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(he,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 he=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||he?(this.forwardTime(this.currentTime+re),he&&this.snapshotCurrentStyles()):this.startTime+=re}fork(re,he){return this.applyStylesToKeyframe(),new ca(this._driver,re,he||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,he){this._localTimelineStyles[re]=he,this._globalTimelineStyles[re]=he,this._styleSummary[re]={time:this.currentTime,value:he}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(re){re&&(this._previousKeyframe.easing=re),Object.keys(this._globalTimelineStyles).forEach(he=>{this._backFill[he]=this._globalTimelineStyles[he]||f.l3,this._currentKeyframe[he]=f.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(re,he,Ye,wt){he&&(this._previousKeyframe.easing=he);const Ft=wt&&wt.params||{},ii=function Na(_t,re){const he={};let Ye;return _t.forEach(wt=>{"*"===wt?(Ye=Ye||Object.keys(re),Ye.forEach(Ft=>{he[Ft]=f.l3})):ft(wt,!1,he)}),he}(re,this._globalTimelineStyles);Object.keys(ii).forEach(ni=>{const yi=at(ii[ni],Ft,Ye);this._pendingStyles[ni]=yi,this._localTimelineStyles.hasOwnProperty(ni)||(this._backFill[ni]=this._globalTimelineStyles.hasOwnProperty(ni)?this._globalTimelineStyles[ni]:f.l3),this._updateStyle(ni,yi)})}applyStylesToKeyframe(){const re=this._pendingStyles,he=Object.keys(re);0!=he.length&&(this._pendingStyles={},he.forEach(Ye=>{this._currentKeyframe[Ye]=re[Ye]}),Object.keys(this._localTimelineStyles).forEach(Ye=>{this._currentKeyframe.hasOwnProperty(Ye)||(this._currentKeyframe[Ye]=this._localTimelineStyles[Ye])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(re=>{const he=this._localTimelineStyles[re];this._pendingStyles[re]=he,this._updateStyle(re,he)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const re=[];for(let he in this._currentKeyframe)re.push(he);return re}mergeTimelineCollectedStyles(re){Object.keys(re._styleSummary).forEach(he=>{const Ye=this._styleSummary[he],wt=re._styleSummary[he];(!Ye||wt.time>Ye.time)&&this._updateStyle(he,wt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const re=new Set,he=new Set,Ye=1===this._keyframes.size&&0===this.duration;let wt=[];this._keyframes.forEach((ni,yi)=>{const Pi=ft(ni,!0);Object.keys(Pi).forEach(nn=>{const un=Pi[nn];un==f.k1?re.add(nn):un==f.l3&&he.add(nn)}),Ye||(Pi.offset=yi/this.duration),wt.push(Pi)});const Ft=re.size?yt(re.values()):[],ii=he.size?yt(he.values()):[];if(Ye){const ni=wt[0],yi=xe(ni);ni.offset=0,yi.offset=1,wt=[ni,yi]}return Fn(this.element,wt,Ft,ii,this.duration,this.startTime,this.easing,!1)}}class ga extends ca{constructor(re,he,Ye,wt,Ft,ii,ni=!1){super(re,he,ii.delay),this.keyframes=Ye,this.preStyleProps=wt,this.postStyleProps=Ft,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:he,duration:Ye,easing:wt}=this.timings;if(this._stretchStartingKeyframe&&he){const Ft=[],ii=Ye+he,ni=he/ii,yi=ft(re[0],!1);yi.offset=0,Ft.push(yi);const Pi=ft(re[0],!1);Pi.offset=Ca(ni),Ft.push(Pi);const nn=re.length-1;for(let un=1;un<=nn;un++){let Sn=ft(re[un],!1);Sn.offset=Ca((he+Sn.offset*Ye)/ii),Ft.push(Sn)}Ye=ii,he=0,wt="",re=Ft}return Fn(this.element,re,this.preStyleProps,this.postStyleProps,Ye,he,wt,!0)}}function Ca(_t,re=3){const he=Math.pow(10,re-1);return Math.round(_t*he)/he}class nr{}class da extends nr{normalizePropertyName(re,he){return Qt(re)}normalizeStyleValue(re,he,Ye,wt){let Ft="";const ii=Ye.toString().trim();if(Ha[he]&&0!==Ye&&"0"!==Ye)if("number"==typeof Ye)Ft="px";else{const ni=Ye.match(/^[+-]?[\d\.]+([a-z]*)$/);ni&&0==ni[1].length&&wt.push(function D(_t,re){return new t.vHH(3005,M)}())}return ii+Ft}}const Ha=(()=>function Ur(_t){const re={};return _t.forEach(he=>re[he]=!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 Gr(_t,re,he,Ye,wt,Ft,ii,ni,yi,Pi,nn,un,Sn){return{type:0,element:_t,triggerName:re,isRemovalTransition:wt,fromState:he,fromStyles:Ft,toState:Ye,toStyles:ii,timelines:ni,queriedElements:yi,preStyleProps:Pi,postStyleProps:nn,totalTime:un,errors:Sn}}const lr={};class fn{constructor(re,he,Ye){this._triggerName=re,this.ast=he,this._stateStyles=Ye}match(re,he,Ye,wt){return function qr(_t,re,he,Ye,wt){return _t.some(Ft=>Ft(re,he,Ye,wt))}(this.ast.matchers,re,he,Ye,wt)}buildStyles(re,he,Ye){const wt=this._stateStyles["*"],Ft=this._stateStyles[re],ii=wt?wt.buildStyles(he,Ye):{};return Ft?Ft.buildStyles(he,Ye):ii}build(re,he,Ye,wt,Ft,ii,ni,yi,Pi,nn){const un=[],Sn=this.ast.options&&this.ast.options.params||lr,yn=this.buildStyles(Ye,ni&&ni.params||lr,un),Tn=yi&&yi.params||lr,qn=this.buildStyles(wt,Tn,un),xr=new Set,cr=new Map,Xr=new Map,Yr="void"===wt,dr={params:Object.assign(Object.assign({},Sn),Tn)},zr=nn?[]:Jn(re,he,this.ast.animation,Ft,ii,yn,qn,dr,Pi,un);let Bn=0;if(zr.forEach(za=>{Bn=Math.max(za.duration+za.delay,Bn)}),un.length)return Gr(he,this._triggerName,Ye,wt,Yr,yn,qn,[],[],cr,Xr,Bn,un);zr.forEach(za=>{const nt=za.element,Et=F(cr,nt,{});za.preStyleProps.forEach(Rt=>Et[Rt]=!0);const At=F(Xr,nt,{});za.postStyleProps.forEach(Rt=>At[Rt]=!0),nt!==he&&xr.add(nt)});const ur=yt(xr.values());return Gr(he,this._triggerName,Ye,wt,Yr,yn,qn,zr,ur,cr,Xr,Bn)}}class Xn{constructor(re,he,Ye){this.styles=re,this.defaultParams=he,this.normalizer=Ye}buildStyles(re,he){const Ye={},wt=xe(this.defaultParams);return Object.keys(re).forEach(Ft=>{const ii=re[Ft];null!=ii&&(wt[Ft]=ii)}),this.styles.styles.forEach(Ft=>{if("string"!=typeof Ft){const ii=Ft;Object.keys(ii).forEach(ni=>{let yi=ii[ni];yi.length>1&&(yi=at(yi,wt,he));const Pi=this.normalizer.normalizePropertyName(ni,he);yi=this.normalizer.normalizeStyleValue(ni,Pi,yi,he),Ye[Pi]=yi})}}),Ye}}class Zr{constructor(re,he,Ye){this.name=re,this.ast=he,this._normalizer=Ye,this.transitionFactories=[],this.states={},he.states.forEach(wt=>{this.states[wt.name]=new Xn(wt.style,wt.options&&wt.options.params||{},Ye)}),Jr(this.states,"true","1"),Jr(this.states,"false","0"),he.transitions.forEach(wt=>{this.transitionFactories.push(new fn(re,wt,this.states))}),this.fallbackTransition=function Ea(_t,re,he){return new fn(_t,{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,he,Ye,wt){return this.transitionFactories.find(ii=>ii.match(re,he,Ye,wt))||null}matchStyles(re,he,Ye){return this.fallbackTransition.buildStyles(re,he,Ye)}}function Jr(_t,re,he){_t.hasOwnProperty(re)?_t.hasOwnProperty(he)||(_t[he]=_t[re]):_t.hasOwnProperty(he)&&(_t[re]=_t[he])}const Dr=new Dn;class Rr{constructor(re,he,Ye){this.bodyNode=re,this._driver=he,this._normalizer=Ye,this._animations={},this._playersById={},this.players=[]}register(re,he){const Ye=[],Ft=Kt(this._driver,he,Ye,[]);if(Ye.length)throw function c(_t){return new t.vHH(3503,M)}();this._animations[re]=Ft}_buildPlayer(re,he,Ye){const wt=re.element,Ft=we(0,this._normalizer,0,re.keyframes,he,Ye);return this._driver.animate(wt,Ft,re.duration,re.delay,re.easing,[],!0)}create(re,he,Ye={}){const wt=[],Ft=this._animations[re];let ii;const ni=new Map;if(Ft?(ii=Jn(this._driver,he,Ft,xt,Nt,{},{},Ye,Dr,wt),ii.forEach(nn=>{const un=F(ni,nn.element,{});nn.postStyleProps.forEach(Sn=>un[Sn]=null)})):(wt.push(function _(){return new t.vHH(3300,M)}()),ii=[]),wt.length)throw function E(_t){return new t.vHH(3504,M)}();ni.forEach((nn,un)=>{Object.keys(nn).forEach(Sn=>{nn[Sn]=this._driver.computeStyle(un,Sn,f.l3)})});const Pi=Re(ii.map(nn=>{const un=ni.get(nn.element);return this._buildPlayer(nn,{},un)}));return this._playersById[re]=Pi,Pi.onDestroy(()=>this.destroy(re)),this.players.push(Pi),Pi}destroy(re){const he=this._getPlayer(re);he.destroy(),delete this._playersById[re];const Ye=this.players.indexOf(he);Ye>=0&&this.players.splice(Ye,1)}_getPlayer(re){const he=this._playersById[re];if(!he)throw function I(_t){return new t.vHH(3301,M)}();return he}listen(re,he,Ye,wt){const Ft=ve(he,"","","");return Q(this._getPlayer(re),Ye,Ft,wt),()=>{}}command(re,he,Ye,wt){if("register"==Ye)return void this.register(re,wt[0]);if("create"==Ye)return void this.create(re,he,wt[0]||{});const Ft=this._getPlayer(re);switch(Ye){case"play":Ft.play();break;case"pause":Ft.pause();break;case"reset":Ft.reset();break;case"restart":Ft.restart();break;case"finish":Ft.finish();break;case"init":Ft.init();break;case"setPosition":Ft.setPosition(parseFloat(wt[0]));break;case"destroy":this.destroy(re)}}}const Wr="ng-animate-queued",Ir="ng-animate-disabled",$n=[],Ta={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ia={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Kn="__ng_removed";class ra{constructor(re,he=""){this.namespaceId=he;const Ye=re&&re.hasOwnProperty("value");if(this.value=function Xe(_t){return null!=_t?_t:null}(Ye?re.value:re),Ye){const Ft=xe(re);delete Ft.value,this.options=Ft}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(re){const he=re.params;if(he){const Ye=this.options.params;Object.keys(he).forEach(wt=>{null==Ye[wt]&&(Ye[wt]=he[wt])})}}}const Hr="void",Sr=new ra(Hr);class Fr{constructor(re,he,Ye){this.id=re,this.hostElement=he,this._engine=Ye,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+re,ki(he,this._hostClassName)}listen(re,he,Ye,wt){if(!this._triggers.hasOwnProperty(he))throw function v(_t,re){return new t.vHH(3302,M)}();if(null==Ye||0==Ye.length)throw function n(_t){return new t.vHH(3303,M)}();if(!function Ke(_t){return"start"==_t||"done"==_t}(Ye))throw function C(_t,re){return new t.vHH(3400,M)}();const Ft=F(this._elementListeners,re,[]),ii={name:he,phase:Ye,callback:wt};Ft.push(ii);const ni=F(this._engine.statesByElement,re,{});return ni.hasOwnProperty(he)||(ki(re,gt),ki(re,gt+"-"+he),ni[he]=Sr),()=>{this._engine.afterFlush(()=>{const yi=Ft.indexOf(ii);yi>=0&&Ft.splice(yi,1),this._triggers[he]||delete ni[he]})}}register(re,he){return!this._triggers[re]&&(this._triggers[re]=he,!0)}_getTrigger(re){const he=this._triggers[re];if(!he)throw function B(_t){return new t.vHH(3401,M)}();return he}trigger(re,he,Ye,wt=!0){const Ft=this._getTrigger(he),ii=new Fa(this.id,he,re);let ni=this._engine.statesByElement.get(re);ni||(ki(re,gt),ki(re,gt+"-"+he),this._engine.statesByElement.set(re,ni={}));let yi=ni[he];const Pi=new ra(Ye,this.id);if(!(Ye&&Ye.hasOwnProperty("value"))&&yi&&Pi.absorbOptions(yi.options),ni[he]=Pi,yi||(yi=Sr),Pi.value!==Hr&&yi.value===Pi.value){if(!function Zt(_t,re){const he=Object.keys(_t),Ye=Object.keys(re);if(he.length!=Ye.length)return!1;for(let wt=0;wt{tt(re,qn),Ne(re,xr)})}return}const Sn=F(this._engine.playersByElement,re,[]);Sn.forEach(Tn=>{Tn.namespaceId==this.id&&Tn.triggerName==he&&Tn.queued&&Tn.destroy()});let Pn=Ft.matchTransition(yi.value,Pi.value,re,Pi.params),yn=!1;if(!Pn){if(!wt)return;Pn=Ft.fallbackTransition,yn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:he,transition:Pn,fromState:yi,toState:Pi,player:ii,isFallbackTransition:yn}),yn||(ki(re,Wr),ii.onStart(()=>{an(re,Wr)})),ii.onDone(()=>{let Tn=this.players.indexOf(ii);Tn>=0&&this.players.splice(Tn,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),Sn.push(ii),ii}deregister(re){delete this._triggers[re],this._engine.statesByElement.forEach((he,Ye)=>{delete he[re]}),this._elementListeners.forEach((he,Ye)=>{this._elementListeners.set(Ye,he.filter(wt=>wt.name!=re))})}clearElementCache(re){this._engine.statesByElement.delete(re),this._elementListeners.delete(re);const he=this._engine.playersByElement.get(re);he&&(he.forEach(Ye=>Ye.destroy()),this._engine.playersByElement.delete(re))}_signalRemovalForInnerTriggers(re,he){const Ye=this._engine.driver.query(re,et,!0);Ye.forEach(wt=>{if(wt[Kn])return;const Ft=this._engine.fetchNamespacesByElement(wt);Ft.size?Ft.forEach(ii=>ii.triggerLeaveAnimation(wt,he,!1,!0)):this.clearElementCache(wt)}),this._engine.afterFlushAnimationsDone(()=>Ye.forEach(wt=>this.clearElementCache(wt)))}triggerLeaveAnimation(re,he,Ye,wt){const Ft=this._engine.statesByElement.get(re),ii=new Map;if(Ft){const ni=[];if(Object.keys(Ft).forEach(yi=>{if(ii.set(yi,Ft[yi].value),this._triggers[yi]){const Pi=this.trigger(re,yi,Hr,wt);Pi&&ni.push(Pi)}}),ni.length)return this._engine.markElementAsRemoved(this.id,re,!0,he,ii),Ye&&Re(ni).onDone(()=>this._engine.processLeaveNode(re)),!0}return!1}prepareLeaveAnimationListeners(re){const he=this._elementListeners.get(re),Ye=this._engine.statesByElement.get(re);if(he&&Ye){const wt=new Set;he.forEach(Ft=>{const ii=Ft.name;if(wt.has(ii))return;wt.add(ii);const yi=this._triggers[ii].fallbackTransition,Pi=Ye[ii]||Sr,nn=new ra(Hr),un=new Fa(this.id,ii,re);this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:ii,transition:yi,fromState:Pi,toState:nn,player:un,isFallbackTransition:!0})})}}removeNode(re,he){const Ye=this._engine;if(re.childElementCount&&this._signalRemovalForInnerTriggers(re,he),this.triggerLeaveAnimation(re,he,!0))return;let wt=!1;if(Ye.totalAnimations){const Ft=Ye.players.length?Ye.playersByQueriedElement.get(re):[];if(Ft&&Ft.length)wt=!0;else{let ii=re;for(;ii=ii.parentNode;)if(Ye.statesByElement.get(ii)){wt=!0;break}}}if(this.prepareLeaveAnimationListeners(re),wt)Ye.markElementAsRemoved(this.id,re,!1,he);else{const Ft=re[Kn];(!Ft||Ft===Ta)&&(Ye.afterFlush(()=>this.clearElementCache(re)),Ye.destroyInnerAnimations(re),Ye._onRemovalComplete(re,he))}}insertNode(re,he){ki(re,this._hostClassName)}drainQueuedTransitions(re){const he=[];return this._queue.forEach(Ye=>{const wt=Ye.player;if(wt.destroyed)return;const Ft=Ye.element,ii=this._elementListeners.get(Ft);ii&&ii.forEach(ni=>{if(ni.name==Ye.triggerName){const yi=ve(Ft,Ye.triggerName,Ye.fromState.value,Ye.toState.value);yi._data=re,Q(Ye.player,ni.phase,yi,ni.callback)}}),wt.markedForDestroy?this._engine.afterFlush(()=>{wt.destroy()}):he.push(Ye)}),this._queue=[],he.sort((Ye,wt)=>{const Ft=Ye.transition.ast.depCount,ii=wt.transition.ast.depCount;return 0==Ft||0==ii?Ft-ii:this._engine.driver.containsElement(Ye.element,wt.element)?1:-1})}destroy(re){this.players.forEach(he=>he.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,re)}elementContainsData(re){let he=!1;return this._elementListeners.has(re)&&(he=!0),he=!!this._queue.find(Ye=>Ye.element===re)||he,he}}class ya{constructor(re,he,Ye){this.bodyNode=re,this.driver=he,this._normalizer=Ye,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=(wt,Ft)=>{}}_onRemovalComplete(re,he){this.onRemovalComplete(re,he)}get queuedPlayers(){const re=[];return this._namespaceList.forEach(he=>{he.players.forEach(Ye=>{Ye.queued&&re.push(Ye)})}),re}createNamespace(re,he){const Ye=new Fr(re,he,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,he)?this._balanceNamespaceList(Ye,he):(this.newHostElements.set(he,Ye),this.collectEnterElement(he)),this._namespaceLookup[re]=Ye}_balanceNamespaceList(re,he){const Ye=this._namespaceList,wt=this.namespacesByHostElement,Ft=Ye.length-1;if(Ft>=0){let ii=!1;if(void 0!==this.driver.getParentElement){let ni=this.driver.getParentElement(he);for(;ni;){const yi=wt.get(ni);if(yi){const Pi=Ye.indexOf(yi);Ye.splice(Pi+1,0,re),ii=!0;break}ni=this.driver.getParentElement(ni)}}else for(let ni=Ft;ni>=0;ni--)if(this.driver.containsElement(Ye[ni].hostElement,he)){Ye.splice(ni+1,0,re),ii=!0;break}ii||Ye.unshift(re)}else Ye.push(re);return wt.set(he,re),re}register(re,he){let Ye=this._namespaceLookup[re];return Ye||(Ye=this.createNamespace(re,he)),Ye}registerTrigger(re,he,Ye){let wt=this._namespaceLookup[re];wt&&wt.register(he,Ye)&&this.totalAnimations++}destroy(re,he){if(!re)return;const Ye=this._fetchNamespace(re);this.afterFlush(()=>{this.namespacesByHostElement.delete(Ye.hostElement),delete this._namespaceLookup[re];const wt=this._namespaceList.indexOf(Ye);wt>=0&&this._namespaceList.splice(wt,1)}),this.afterFlushAnimationsDone(()=>Ye.destroy(he))}_fetchNamespace(re){return this._namespaceLookup[re]}fetchNamespacesByElement(re){const he=new Set,Ye=this.statesByElement.get(re);if(Ye){const wt=Object.keys(Ye);for(let Ft=0;Ft=0&&this.collectedLeaveElements.splice(ii,1)}if(re){const ii=this._fetchNamespace(re);ii&&ii.insertNode(he,Ye)}wt&&this.collectEnterElement(he)}collectEnterElement(re){this.collectedEnterElements.push(re)}markElementAsDisabled(re,he){he?this.disabledNodes.has(re)||(this.disabledNodes.add(re),ki(re,Ir)):this.disabledNodes.has(re)&&(this.disabledNodes.delete(re),an(re,Ir))}removeNode(re,he,Ye,wt){if(St(he)){const Ft=re?this._fetchNamespace(re):null;if(Ft?Ft.removeNode(he,wt):this.markElementAsRemoved(re,he,!1,wt),Ye){const ii=this.namespacesByHostElement.get(he);ii&&ii.id!==re&&ii.removeNode(he,wt)}}else this._onRemovalComplete(he,wt)}markElementAsRemoved(re,he,Ye,wt,Ft){this.collectedLeaveElements.push(he),he[Kn]={namespaceId:re,setForRemoval:wt,hasAnimation:Ye,removedBeforeQueried:!1,previousTriggersValues:Ft}}listen(re,he,Ye,wt,Ft){return St(he)?this._fetchNamespace(re).listen(he,Ye,wt,Ft):()=>{}}_buildInstruction(re,he,Ye,wt,Ft){return re.transition.build(this.driver,re.element,re.fromState.value,re.toState.value,Ye,wt,re.fromState.options,re.toState.options,he,Ft)}destroyInnerAnimations(re){let he=this.driver.query(re,et,!0);he.forEach(Ye=>this.destroyActiveAnimationsForElement(Ye)),0!=this.playersByQueriedElement.size&&(he=this.driver.query(re,$t,!0),he.forEach(Ye=>this.finishActiveQueriedAnimationOnElement(Ye)))}destroyActiveAnimationsForElement(re){const he=this.playersByElement.get(re);he&&he.forEach(Ye=>{Ye.queued?Ye.markedForDestroy=!0:Ye.destroy()})}finishActiveQueriedAnimationOnElement(re){const he=this.playersByQueriedElement.get(re);he&&he.forEach(Ye=>Ye.finish())}whenRenderingDone(){return new Promise(re=>{if(this.players.length)return Re(this.players).onDone(()=>re());re()})}processLeaveNode(re){var he;const Ye=re[Kn];if(Ye&&Ye.setForRemoval){if(re[Kn]=Ta,Ye.namespaceId){this.destroyInnerAnimations(re);const wt=this._fetchNamespace(Ye.namespaceId);wt&&wt.clearElementCache(re)}this._onRemovalComplete(re,Ye.setForRemoval)}(null===(he=re.classList)||void 0===he?void 0:he.contains(Ir))&&this.markElementAsDisabled(re,!1),this.driver.query(re,".ng-animate-disabled",!0).forEach(wt=>{this.markElementAsDisabled(wt,!1)})}flush(re=-1){let he=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ye,wt)=>this._balanceNamespaceList(Ye,wt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ye=0;YeYe()),this._flushFns=[],this._whenQuietFns.length){const Ye=this._whenQuietFns;this._whenQuietFns=[],he.length?Re(he).onDone(()=>{Ye.forEach(wt=>wt())}):Ye.forEach(wt=>wt())}}reportError(re){throw function N(_t){return new t.vHH(3402,M)}()}_flushAnimations(re,he){const Ye=new Dn,wt=[],Ft=new Map,ii=[],ni=new Map,yi=new Map,Pi=new Map,nn=new Set;this.disabledNodes.forEach(ei=>{nn.add(ei);const pi=this.driver.query(ei,".ng-animate-queued",!0);for(let Li=0;Li{const Li=xt+Tn++;yn.set(pi,Li),ei.forEach(qi=>ki(qi,Li))});const qn=[],xr=new Set,cr=new Set;for(let ei=0;eixr.add(qi)):cr.add(pi))}const Xr=new Map,Yr=Ti(Sn,Array.from(xr));Yr.forEach((ei,pi)=>{const Li=Nt+Tn++;Xr.set(pi,Li),ei.forEach(qi=>ki(qi,Li))}),re.push(()=>{Pn.forEach((ei,pi)=>{const Li=yn.get(pi);ei.forEach(qi=>an(qi,Li))}),Yr.forEach((ei,pi)=>{const Li=Xr.get(pi);ei.forEach(qi=>an(qi,Li))}),qn.forEach(ei=>{this.processLeaveNode(ei)})});const dr=[],zr=[];for(let ei=this._namespaceList.length-1;ei>=0;ei--)this._namespaceList[ei].drainQueuedTransitions(he).forEach(Li=>{const qi=Li.player,$i=Li.element;if(dr.push(qi),this.collectedEnterElements.length){const tr=$i[Kn];if(tr&&tr.setForMove){if(tr.previousTriggersValues&&tr.previousTriggersValues.has(Li.triggerName)){const br=tr.previousTriggersValues.get(Li.triggerName),hr=this.statesByElement.get(Li.element);hr&&hr[Li.triggerName]&&(hr[Li.triggerName].value=br)}return void qi.destroy()}}const on=!un||!this.driver.containsElement(un,$i),bn=Xr.get($i),Qn=yn.get($i),kn=this._buildInstruction(Li,Ye,Qn,bn,on);if(kn.errors&&kn.errors.length)return void zr.push(kn);if(on)return qi.onStart(()=>tt($i,kn.fromStyles)),qi.onDestroy(()=>Ne($i,kn.toStyles)),void wt.push(qi);if(Li.isFallbackTransition)return qi.onStart(()=>tt($i,kn.fromStyles)),qi.onDestroy(()=>Ne($i,kn.toStyles)),void wt.push(qi);const aa=[];kn.timelines.forEach(tr=>{tr.stretchStartingKeyframe=!0,this.disabledNodes.has(tr.element)||aa.push(tr)}),kn.timelines=aa,Ye.append($i,kn.timelines),ii.push({instruction:kn,player:qi,element:$i}),kn.queriedElements.forEach(tr=>F(ni,tr,[]).push(qi)),kn.preStyleProps.forEach((tr,br)=>{const hr=Object.keys(tr);if(hr.length){let kr=yi.get(br);kr||yi.set(br,kr=new Set),hr.forEach(jr=>kr.add(jr))}}),kn.postStyleProps.forEach((tr,br)=>{const hr=Object.keys(tr);let kr=Pi.get(br);kr||Pi.set(br,kr=new Set),hr.forEach(jr=>kr.add(jr))})});if(zr.length){const ei=[];zr.forEach(pi=>{ei.push(function oe(_t,re){return new t.vHH(3505,M)}())}),dr.forEach(pi=>pi.destroy()),this.reportError(ei)}const Bn=new Map,ur=new Map;ii.forEach(ei=>{const pi=ei.element;Ye.has(pi)&&(ur.set(pi,pi),this._beforeAnimationBuild(ei.player.namespaceId,ei.instruction,Bn))}),wt.forEach(ei=>{const pi=ei.element;this._getPreviousPlayers(pi,!1,ei.namespaceId,ei.triggerName,null).forEach(qi=>{F(Bn,pi,[]).push(qi),qi.destroy()})});const za=qn.filter(ei=>Hi(ei,yi,Pi)),nt=new Map;ri(nt,this.driver,cr,Pi,f.l3).forEach(ei=>{Hi(ei,yi,Pi)&&za.push(ei)});const At=new Map;Pn.forEach((ei,pi)=>{ri(At,this.driver,new Set(ei),yi,f.k1)}),za.forEach(ei=>{const pi=nt.get(ei),Li=At.get(ei);nt.set(ei,Object.assign(Object.assign({},pi),Li))});const Rt=[],qt=[],_i={};ii.forEach(ei=>{const{element:pi,player:Li,instruction:qi}=ei;if(Ye.has(pi)){if(nn.has(pi))return Li.onDestroy(()=>Ne(pi,qi.toStyles)),Li.disabled=!0,Li.overrideTotalTime(qi.totalTime),void wt.push(Li);let $i=_i;if(ur.size>1){let bn=pi;const Qn=[];for(;bn=bn.parentNode;){const kn=ur.get(bn);if(kn){$i=kn;break}Qn.push(bn)}Qn.forEach(kn=>ur.set(kn,$i))}const on=this._buildAnimation(Li.namespaceId,qi,Bn,Ft,At,nt);if(Li.setRealPlayer(on),$i===_i)Rt.push(Li);else{const bn=this.playersByElement.get($i);bn&&bn.length&&(Li.parentPlayer=Re(bn)),wt.push(Li)}}else tt(pi,qi.fromStyles),Li.onDestroy(()=>Ne(pi,qi.toStyles)),qt.push(Li),nn.has(pi)&&wt.push(Li)}),qt.forEach(ei=>{const pi=Ft.get(ei.element);if(pi&&pi.length){const Li=Re(pi);ei.setRealPlayer(Li)}}),wt.forEach(ei=>{ei.parentPlayer?ei.syncPlayerEvents(ei.parentPlayer):ei.destroy()});for(let ei=0;ei!on.destroyed);$i.length?It(this,pi,$i):this.processLeaveNode(pi)}return qn.length=0,Rt.forEach(ei=>{this.players.push(ei),ei.onDone(()=>{ei.destroy();const pi=this.players.indexOf(ei);this.players.splice(pi,1)}),ei.play()}),Rt}elementContainsData(re,he){let Ye=!1;const wt=he[Kn];return wt&&wt.setForRemoval&&(Ye=!0),this.playersByElement.has(he)&&(Ye=!0),this.playersByQueriedElement.has(he)&&(Ye=!0),this.statesByElement.has(he)&&(Ye=!0),this._fetchNamespace(re).elementContainsData(he)||Ye}afterFlush(re){this._flushFns.push(re)}afterFlushAnimationsDone(re){this._whenQuietFns.push(re)}_getPreviousPlayers(re,he,Ye,wt,Ft){let ii=[];if(he){const ni=this.playersByQueriedElement.get(re);ni&&(ii=ni)}else{const ni=this.playersByElement.get(re);if(ni){const yi=!Ft||Ft==Hr;ni.forEach(Pi=>{Pi.queued||!yi&&Pi.triggerName!=wt||ii.push(Pi)})}}return(Ye||wt)&&(ii=ii.filter(ni=>!(Ye&&Ye!=ni.namespaceId||wt&&wt!=ni.triggerName))),ii}_beforeAnimationBuild(re,he,Ye){const Ft=he.element,ii=he.isRemovalTransition?void 0:re,ni=he.isRemovalTransition?void 0:he.triggerName;for(const yi of he.timelines){const Pi=yi.element,nn=Pi!==Ft,un=F(Ye,Pi,[]);this._getPreviousPlayers(Pi,nn,ii,ni,he.toState).forEach(Pn=>{const yn=Pn.getRealPlayer();yn.beforeDestroy&&yn.beforeDestroy(),Pn.destroy(),un.push(Pn)})}tt(Ft,he.fromStyles)}_buildAnimation(re,he,Ye,wt,Ft,ii){const ni=he.triggerName,yi=he.element,Pi=[],nn=new Set,un=new Set,Sn=he.timelines.map(yn=>{const Tn=yn.element;nn.add(Tn);const qn=Tn[Kn];if(qn&&qn.removedBeforeQueried)return new f.ZN(yn.duration,yn.delay);const xr=Tn!==yi,cr=function hi(_t){const re=[];return mt(_t,re),re}((Ye.get(Tn)||$n).map(Bn=>Bn.getRealPlayer())).filter(Bn=>!!Bn.element&&Bn.element===Tn),Xr=Ft.get(Tn),Yr=ii.get(Tn),dr=we(0,this._normalizer,0,yn.keyframes,Xr,Yr),zr=this._buildPlayer(yn,dr,cr);if(yn.subTimeline&&wt&&un.add(Tn),xr){const Bn=new Fa(re,ni,Tn);Bn.setRealPlayer(zr),Pi.push(Bn)}return zr});Pi.forEach(yn=>{F(this.playersByQueriedElement,yn.element,[]).push(yn),yn.onDone(()=>function Wn(_t,re,he){let Ye;if(_t instanceof Map){if(Ye=_t.get(re),Ye){if(Ye.length){const wt=Ye.indexOf(he);Ye.splice(wt,1)}0==Ye.length&&_t.delete(re)}}else if(Ye=_t[re],Ye){if(Ye.length){const wt=Ye.indexOf(he);Ye.splice(wt,1)}0==Ye.length&&delete _t[re]}return Ye}(this.playersByQueriedElement,yn.element,yn))}),nn.forEach(yn=>ki(yn,vt));const Pn=Re(Sn);return Pn.onDestroy(()=>{nn.forEach(yn=>an(yn,vt)),Ne(yi,he.toStyles)}),un.forEach(yn=>{F(wt,yn,[]).push(Pn)}),Pn}_buildPlayer(re,he,Ye){return he.length>0?this.driver.animate(re.element,he,re.duration,re.delay,re.easing,Ye):new f.ZN(re.duration,re.delay)}}class Fa{constructor(re,he,Ye){this.namespaceId=re,this.triggerName=he,this.element=Ye,this._player=new f.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(he=>{this._queuedCallbacks[he].forEach(Ye=>Q(re,he,void 0,Ye))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(re.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(re){this.totalTime=re}syncPlayerEvents(re){const he=this._player;he.triggerCallback&&re.onStart(()=>he.triggerCallback("start")),re.onDone(()=>this.finish()),re.onDestroy(()=>this.destroy())}_queueEvent(re,he){F(this._queuedCallbacks,re,[]).push(he)}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 he=this._player;he.triggerCallback&&he.triggerCallback(re)}}function St(_t){return _t&&1===_t.nodeType}function Ot(_t,re){const he=_t.style.display;return _t.style.display=null!=re?re:"none",he}function ri(_t,re,he,Ye,wt){const Ft=[];he.forEach(yi=>Ft.push(Ot(yi)));const ii=[];Ye.forEach((yi,Pi)=>{const nn={};yi.forEach(un=>{const Sn=nn[un]=re.computeStyle(Pi,un,wt);(!Sn||0==Sn.length)&&(Pi[Kn]=Ia,ii.push(Pi))}),_t.set(Pi,nn)});let ni=0;return he.forEach(yi=>Ot(yi,Ft[ni++])),ii}function Ti(_t,re){const he=new Map;if(_t.forEach(ni=>he.set(ni,[])),0==re.length)return he;const wt=new Set(re),Ft=new Map;function ii(ni){if(!ni)return 1;let yi=Ft.get(ni);if(yi)return yi;const Pi=ni.parentNode;return yi=he.has(Pi)?Pi:wt.has(Pi)?1:ii(Pi),Ft.set(ni,yi),yi}return re.forEach(ni=>{const yi=ii(ni);1!==yi&&he.get(yi).push(ni)}),he}function ki(_t,re){var he;null===(he=_t.classList)||void 0===he||he.add(re)}function an(_t,re){var he;null===(he=_t.classList)||void 0===he||he.remove(re)}function It(_t,re,he){Re(he).onDone(()=>_t.processLeaveNode(re))}function mt(_t,re){for(let he=0;he<_t.length;he++){const Ye=_t[he];Ye instanceof f.ZE?mt(Ye.players,re):re.push(Ye)}}function Hi(_t,re,he){const Ye=he.get(_t);if(!Ye)return!1;let wt=re.get(_t);return wt?Ye.forEach(Ft=>wt.add(Ft)):re.set(_t,Ye),he.delete(_t),!0}class Zi{constructor(re,he,Ye){this.bodyNode=re,this._driver=he,this._normalizer=Ye,this._triggerCache={},this.onRemovalComplete=(wt,Ft)=>{},this._transitionEngine=new ya(re,he,Ye),this._timelineEngine=new Rr(re,he,Ye),this._transitionEngine.onRemovalComplete=(wt,Ft)=>this.onRemovalComplete(wt,Ft)}registerTrigger(re,he,Ye,wt,Ft){const ii=re+"-"+wt;let ni=this._triggerCache[ii];if(!ni){const yi=[],nn=Kt(this._driver,Ft,yi,[]);if(yi.length)throw function r(_t,re){return new t.vHH(3404,M)}();ni=function Za(_t,re,he){return new Zr(_t,re,he)}(wt,nn,this._normalizer),this._triggerCache[ii]=ni}this._transitionEngine.registerTrigger(he,wt,ni)}register(re,he){this._transitionEngine.register(re,he)}destroy(re,he){this._transitionEngine.destroy(re,he)}onInsert(re,he,Ye,wt){this._transitionEngine.insertNode(re,he,Ye,wt)}onRemove(re,he,Ye,wt){this._transitionEngine.removeNode(re,he,wt||!1,Ye)}disableAnimations(re,he){this._transitionEngine.markElementAsDisabled(re,he)}process(re,he,Ye,wt){if("@"==Ye.charAt(0)){const[Ft,ii]=De(Ye);this._timelineEngine.command(Ft,he,ii,wt)}else this._transitionEngine.trigger(re,he,Ye,wt)}listen(re,he,Ye,wt,Ft){if("@"==Ye.charAt(0)){const[ii,ni]=De(Ye);return this._timelineEngine.listen(ii,he,ni,Ft)}return this._transitionEngine.listen(re,he,Ye,wt,Ft)}flush(re=-1){this._transitionEngine.flush(re)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Qe=(()=>{class _t{constructor(he,Ye,wt){this._element=he,this._startStyles=Ye,this._endStyles=wt,this._state=0;let Ft=_t.initialStylesByElement.get(he);Ft||_t.initialStylesByElement.set(he,Ft={}),this._initialStyles=Ft}start(){this._state<1&&(this._startStyles&&Ne(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ne(this._element,this._initialStyles),this._endStyles&&(Ne(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_t.initialStylesByElement.delete(this._element),this._startStyles&&(tt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(tt(this._element,this._endStyles),this._endStyles=null),Ne(this._element,this._initialStyles),this._state=3)}}return _t.initialStylesByElement=new WeakMap,_t})();function We(_t){let re=null;const he=Object.keys(_t);for(let Ye=0;Yere()),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,he,Ye){return re.animate(he,Ye)}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 he=this._finalKeyframe;Object.keys(he).forEach(Ye=>{"offset"!=Ye&&(re[Ye]=this._finished?he[Ye]:tn(this.element,Ye))})}this.currentSnapshot=re}triggerCallback(re){const he="start"==re?this._onStartFns:this._onDoneFns;he.forEach(Ye=>Ye()),he.length=0}}class Si{validateStyleProperty(re){return ue(re)}matchesElement(re,he){return!1}containsElement(re,he){return Le(re,he)}getParentElement(re){return se(re)}query(re,he,Ye){return ct(re,he,Ye)}computeStyle(re,he,Ye){return window.getComputedStyle(re)[he]}animate(re,he,Ye,wt,Ft,ii=[]){const yi={duration:Ye,delay:wt,fill:0==wt?"both":"forwards"};Ft&&(yi.easing=Ft);const Pi={},nn=ii.filter(Sn=>Sn instanceof bt);(function Xi(_t,re){return 0===_t||0===re})(Ye,wt)&&nn.forEach(Sn=>{let Pn=Sn.currentSnapshot;Object.keys(Pn).forEach(yn=>Pi[yn]=Pn[yn])}),he=function fi(_t,re,he){const Ye=Object.keys(he);if(Ye.length&&re.length){let Ft=re[0],ii=[];if(Ye.forEach(ni=>{Ft.hasOwnProperty(ni)||ii.push(ni),Ft[ni]=he[ni]}),ii.length)for(var wt=1;wtft(Sn,!1)),Pi);const un=function Ln(_t,re){let he=null,Ye=null;return Array.isArray(re)&&re.length?(he=We(re[0]),re.length>1&&(Ye=We(re[re.length-1]))):re&&(he=We(re)),he||Ye?new Qe(_t,he,Ye):null}(re,he);return new bt(re,he,yi,un)}}var Qi=p(9808);let Yn=(()=>{class _t extends f._j{constructor(he,Ye){super(),this._nextAnimationId=0,this._renderer=he.createRenderer(Ye.body,{id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}})}build(he){const Ye=this._nextAnimationId.toString();this._nextAnimationId++;const wt=Array.isArray(he)?(0,f.vP)(he):he;return xa(this._renderer,null,Ye,"register",[wt]),new Or(Ye,this._renderer)}}return _t.\u0275fac=function(he){return new(he||_t)(t.LFG(t.FYo),t.LFG(Qi.K0))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();class Or extends f.LC{constructor(re,he){super(),this._id=re,this._renderer=he}create(re,he){return new Wa(this._id,re,he||{},this._renderer)}}class Wa{constructor(re,he,Ye,wt){this.id=re,this.element=he,this._renderer=wt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ye)}_listen(re,he){return this._renderer.listen(this.element,`@@${this.id}:${re}`,he)}_command(re,...he){return xa(this._renderer,this.element,this.id,re,he)}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,he;return null!==(he=null===(re=this._renderer.engine.players[+this.id])||void 0===re?void 0:re.getPosition())&&void 0!==he?he:0}}function xa(_t,re,he,Ye,wt){return _t.setProperty(re,`@@${he}:${Ye}`,wt)}const zi="@.disabled";let zn=(()=>{class _t{constructor(he,Ye,wt){this.delegate=he,this.engine=Ye,this._zone=wt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Ye.onRemovalComplete=(Ft,ii)=>{const ni=null==ii?void 0:ii.parentNode(Ft);ni&&ii.removeChild(ni,Ft)}}createRenderer(he,Ye){const Ft=this.delegate.createRenderer(he,Ye);if(!(he&&Ye&&Ye.data&&Ye.data.animation)){let nn=this._rendererCache.get(Ft);return nn||(nn=new Ja("",Ft,this.engine),this._rendererCache.set(Ft,nn)),nn}const ii=Ye.id,ni=Ye.id+"-"+this._currentId;this._currentId++,this.engine.register(ni,he);const yi=nn=>{Array.isArray(nn)?nn.forEach(yi):this.engine.registerTrigger(ii,ni,he,nn.name,nn)};return Ye.data.animation.forEach(yi),new Cr(this,ni,Ft,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(he,Ye,wt){he>=0&&heYe(wt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ft=>{const[ii,ni]=Ft;ii(ni)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Ye,wt]))}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 _t.\u0275fac=function(he){return new(he||_t)(t.LFG(t.FYo),t.LFG(Zi),t.LFG(t.R0b))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();class Ja{constructor(re,he,Ye){this.namespaceId=re,this.delegate=he,this.engine=Ye,this.destroyNode=this.delegate.destroyNode?wt=>he.destroyNode(wt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(re,he){return this.delegate.createElement(re,he)}createComment(re){return this.delegate.createComment(re)}createText(re){return this.delegate.createText(re)}appendChild(re,he){this.delegate.appendChild(re,he),this.engine.onInsert(this.namespaceId,he,re,!1)}insertBefore(re,he,Ye,wt=!0){this.delegate.insertBefore(re,he,Ye),this.engine.onInsert(this.namespaceId,he,re,wt)}removeChild(re,he,Ye){this.engine.onRemove(this.namespaceId,he,this.delegate,Ye)}selectRootElement(re,he){return this.delegate.selectRootElement(re,he)}parentNode(re){return this.delegate.parentNode(re)}nextSibling(re){return this.delegate.nextSibling(re)}setAttribute(re,he,Ye,wt){this.delegate.setAttribute(re,he,Ye,wt)}removeAttribute(re,he,Ye){this.delegate.removeAttribute(re,he,Ye)}addClass(re,he){this.delegate.addClass(re,he)}removeClass(re,he){this.delegate.removeClass(re,he)}setStyle(re,he,Ye,wt){this.delegate.setStyle(re,he,Ye,wt)}removeStyle(re,he,Ye){this.delegate.removeStyle(re,he,Ye)}setProperty(re,he,Ye){"@"==he.charAt(0)&&he==zi?this.disableAnimations(re,!!Ye):this.delegate.setProperty(re,he,Ye)}setValue(re,he){this.delegate.setValue(re,he)}listen(re,he,Ye){return this.delegate.listen(re,he,Ye)}disableAnimations(re,he){this.engine.disableAnimations(re,he)}}class Cr extends Ja{constructor(re,he,Ye,wt){super(he,Ye,wt),this.factory=re,this.namespaceId=he}setProperty(re,he,Ye){"@"==he.charAt(0)?"."==he.charAt(1)&&he==zi?this.disableAnimations(re,Ye=void 0===Ye||!!Ye):this.engine.process(this.namespaceId,re,he.substr(1),Ye):this.delegate.setProperty(re,he,Ye)}listen(re,he,Ye){if("@"==he.charAt(0)){const wt=function Gs(_t){switch(_t){case"body":return document.body;case"document":return document;case"window":return window;default:return _t}}(re);let Ft=he.substr(1),ii="";return"@"!=Ft.charAt(0)&&([Ft,ii]=function Xa(_t){const re=_t.indexOf(".");return[_t.substring(0,re),_t.substr(re+1)]}(Ft)),this.engine.listen(this.namespaceId,wt,Ft,ii,ni=>{this.factory.scheduleListenerCallback(ni._data||-1,Ye,ni)})}return this.delegate.listen(re,he,Ye)}}let ha=(()=>{class _t extends Zi{constructor(he,Ye,wt){super(he.body,Ye,wt)}ngOnDestroy(){this.flush()}}return _t.\u0275fac=function(he){return new(he||_t)(t.LFG(Qi.K0),t.LFG(di),t.LFG(nr))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();const Zs=new t.OlP("AnimationModuleType"),$a=[{provide:f._j,useClass:Yn},{provide:nr,useFactory:function xs(){return new da}},{provide:Zi,useClass:ha},{provide:t.FYo,useFactory:function bs(_t,re,he){return new zn(_t,re,he)},deps:[e.se,Zi,t.R0b]}],Ms=[{provide:di,useFactory:()=>new Si},{provide:Zs,useValue:"BrowserAnimations"},...$a],gs=[{provide:di,useClass:Dt},{provide:Zs,useValue:"NoopAnimations"},...$a];let Vr=(()=>{class _t{static withConfig(he){return{ngModule:_t,providers:he.disableAnimations?gs:Ms}}}return _t.\u0275fac=function(he){return new(he||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({providers:Ms,imports:[e.b2]}),_t})()},2313:(Fe,Y,p)=>{"use strict";p.d(Y,{H7:()=>it,b2:()=>lt,q6:()=>F,se:()=>c,t6:()=>Ht});var t=p(9808),e=p(5e3);class f extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends f{static makeCurrent(){(0,t.HT)(new M)}onAndCancel(Ue,rt,at){return Ue.addEventListener(rt,at,!1),()=>{Ue.removeEventListener(rt,at,!1)}}dispatchEvent(Ue,rt){Ue.dispatchEvent(rt)}remove(Ue){Ue.parentNode&&Ue.parentNode.removeChild(Ue)}createElement(Ue,rt){return(rt=rt||this.getDefaultDocument()).createElement(Ue)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ue){return Ue.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ue){return Ue instanceof DocumentFragment}getGlobalEventTarget(Ue,rt){return"window"===rt?window:"document"===rt?Ue:"body"===rt?Ue.body:null}getBaseHref(Ue){const rt=function b(){return a=a||document.querySelector("base"),a?a.getAttribute("href"):null}();return null==rt?null:function P(Se){d=d||document.createElement("a"),d.setAttribute("href",Se);const Ue=d.pathname;return"/"===Ue.charAt(0)?Ue:`/${Ue}`}(rt)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ue){return(0,t.Mx)(document.cookie,Ue)}}let d,a=null;const h=new e.OlP("TRANSITION_ID"),w=[{provide:e.ip1,useFactory:function A(Se,Ue,rt){return()=>{rt.get(e.CZH).donePromise.then(()=>{const at=(0,t.q)(),yt=Ue.querySelectorAll(`style[ng-transition="${Se}"]`);for(let gi=0;gi{const gi=Ue.findTestabilityInTree(at,yt);if(null==gi)throw new Error("Could not find testability for element.");return gi},e.dqk.getAllAngularTestabilities=()=>Ue.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>Ue.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(at=>{const yt=e.dqk.getAllAngularTestabilities();let gi=yt.length,Qt=!1;const Jt=function(Xi){Qt=Qt||Xi,gi--,0==gi&&at(Qt)};yt.forEach(function(Xi){Xi.whenStable(Jt)})})}findTestabilityInTree(Ue,rt,at){if(null==rt)return null;const yt=Ue.getTestability(rt);return null!=yt?yt:at?(0,t.q)().isShadowRoot(rt)?this.findTestabilityInTree(Ue,rt.host,!0):this.findTestabilityInTree(Ue,rt.parentElement,!0):null}}let L=(()=>{class Se{build(){return new XMLHttpRequest}}return Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const k=new e.OlP("EventManagerPlugins");let S=(()=>{class Se{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 gi=0;gi{class Se{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 Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),j=(()=>{class Se extends Z{constructor(rt){super(),this._doc=rt,this._hostNodes=new Map,this._hostNodes.set(rt.head,[])}_addStylesToHost(rt,at,yt){rt.forEach(gi=>{const Qt=this._doc.createElement("style");Qt.textContent=gi,yt.push(at.appendChild(Qt))})}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 Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();function ne(Se){(0,t.q)().remove(Se)}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 i(Se,Ue,rt){for(let at=0;at{if("__ngUnwrap__"===Ue)return Se;!1===Se(Ue)&&(Ue.preventDefault(),Ue.returnValue=!1)}}let c=(()=>{class Se{constructor(rt,at,yt){this.eventManager=rt,this.sharedStylesHost=at,this.appId=yt,this.rendererByCompId=new Map,this.defaultRenderer=new _(rt)}createRenderer(rt,at){if(!rt||!at)return this.defaultRenderer;switch(at.encapsulation){case e.ifc.Emulated:{let yt=this.rendererByCompId.get(at.id);return yt||(yt=new v(this.eventManager,this.sharedStylesHost,at,this.appId),this.rendererByCompId.set(at.id,yt)),yt.applyToHost(rt),yt}case 1:case e.ifc.ShadowDom:return new n(this.eventManager,this.sharedStylesHost,rt,at);default:if(!this.rendererByCompId.has(at.id)){const yt=i(at.id,at.styles,[]);this.sharedStylesHost.addStyles(yt),this.rendererByCompId.set(at.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(S),e.LFG(j),e.LFG(e.AFp))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();class _{constructor(Ue){this.eventManager=Ue,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ue,rt){return rt?document.createElementNS(X[rt]||rt,Ue):document.createElement(Ue)}createComment(Ue){return document.createComment(Ue)}createText(Ue){return document.createTextNode(Ue)}appendChild(Ue,rt){Ue.appendChild(rt)}insertBefore(Ue,rt,at){Ue&&Ue.insertBefore(rt,at)}removeChild(Ue,rt){Ue&&Ue.removeChild(rt)}selectRootElement(Ue,rt){let at="string"==typeof Ue?document.querySelector(Ue):Ue;if(!at)throw new Error(`The selector "${Ue}" did not match any elements`);return rt||(at.textContent=""),at}parentNode(Ue){return Ue.parentNode}nextSibling(Ue){return Ue.nextSibling}setAttribute(Ue,rt,at,yt){if(yt){rt=yt+":"+rt;const gi=X[yt];gi?Ue.setAttributeNS(gi,rt,at):Ue.setAttribute(rt,at)}else Ue.setAttribute(rt,at)}removeAttribute(Ue,rt,at){if(at){const yt=X[at];yt?Ue.removeAttributeNS(yt,rt):Ue.removeAttribute(`${at}:${rt}`)}else Ue.removeAttribute(rt)}addClass(Ue,rt){Ue.classList.add(rt)}removeClass(Ue,rt){Ue.classList.remove(rt)}setStyle(Ue,rt,at,yt){yt&(e.JOm.DashCase|e.JOm.Important)?Ue.style.setProperty(rt,at,yt&e.JOm.Important?"important":""):Ue.style[rt]=at}removeStyle(Ue,rt,at){at&e.JOm.DashCase?Ue.style.removeProperty(rt):Ue.style[rt]=""}setProperty(Ue,rt,at){Ue[rt]=at}setValue(Ue,rt){Ue.nodeValue=rt}listen(Ue,rt,at){return"string"==typeof Ue?this.eventManager.addGlobalEventListener(Ue,rt,r(at)):this.eventManager.addEventListener(Ue,rt,r(at))}}class v extends _{constructor(Ue,rt,at,yt){super(Ue),this.component=at;const gi=i(yt+"-"+at.id,at.styles,[]);rt.addStyles(gi),this.contentAttr=function me(Se){return"_ngcontent-%COMP%".replace(de,Se)}(yt+"-"+at.id),this.hostAttr=function x(Se){return"_nghost-%COMP%".replace(de,Se)}(yt+"-"+at.id)}applyToHost(Ue){super.setAttribute(Ue,this.hostAttr,"")}createElement(Ue,rt){const at=super.createElement(Ue,rt);return super.setAttribute(at,this.contentAttr,""),at}}class n extends _{constructor(Ue,rt,at,yt){super(Ue),this.sharedStylesHost=rt,this.hostEl=at,this.shadowRoot=at.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const gi=i(yt.id,yt.styles,[]);for(let Qt=0;Qt{class Se extends U{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 Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const B=["alt","control","meta","shift"],z={"\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"},oe={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"},ge={alt:Se=>Se.altKey,control:Se=>Se.ctrlKey,meta:Se=>Se.metaKey,shift:Se=>Se.shiftKey};let be=(()=>{class Se extends U{constructor(rt){super(rt)}supports(rt){return null!=Se.parseEventName(rt)}addEventListener(rt,at,yt){const gi=Se.parseEventName(at),Qt=Se.eventCallback(gi.fullKey,yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(rt,gi.domEventName,Qt))}static parseEventName(rt){const at=rt.toLowerCase().split("."),yt=at.shift();if(0===at.length||"keydown"!==yt&&"keyup"!==yt)return null;const gi=Se._normalizeKey(at.pop());let Qt="";if(B.forEach(Xi=>{const fi=at.indexOf(Xi);fi>-1&&(at.splice(fi,1),Qt+=Xi+".")}),Qt+=gi,0!=at.length||0===gi.length)return null;const Jt={};return Jt.domEventName=yt,Jt.fullKey=Qt,Jt}static getEventFullKey(rt){let at="",yt=function Re(Se){let Ue=Se.key;if(null==Ue){if(Ue=Se.keyIdentifier,null==Ue)return"Unidentified";Ue.startsWith("U+")&&(Ue=String.fromCharCode(parseInt(Ue.substring(2),16)),3===Se.location&&oe.hasOwnProperty(Ue)&&(Ue=oe[Ue]))}return z[Ue]||Ue}(rt);return yt=yt.toLowerCase()," "===yt?yt="space":"."===yt&&(yt="dot"),B.forEach(gi=>{gi!=yt&&ge[gi](rt)&&(at+=gi+".")}),at+=yt,at}static eventCallback(rt,at,yt){return gi=>{Se.getEventFullKey(gi)===rt&&yt.runGuarded(()=>at(gi))}}static _normalizeKey(rt){return"esc"===rt?"escape":rt}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const F=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function we(){M.makeCurrent(),D.init()},multi:!0},{provide:t.K0,useFactory:function Ge(){return(0,e.RDi)(document),document},deps:[]}]),De=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Q(){return new e.qLn},deps:[]},{provide:k,useClass:C,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:k,useClass:be,multi:!0,deps:[t.K0]},{provide:c,useClass:c,deps:[S,j,e.AFp]},{provide:e.FYo,useExisting:c},{provide:Z,useExisting:j},{provide:j,useClass:j,deps:[t.K0]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b]},{provide:S,useClass:S,deps:[k,e.R0b]},{provide:t.JF,useClass:L,deps:[]}];let lt=(()=>{class Se{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:Se,providers:[{provide:e.AFp,useValue:rt.appId},{provide:h,useExisting:e.AFp},w]}}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(Se,12))},Se.\u0275mod=e.oAB({type:Se}),Se.\u0275inj=e.cJS({providers:De,imports:[t.ez,e.hGG]}),Se})();"undefined"!=typeof window&&window;const Oe={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},le=new e.OlP("HammerGestureConfig"),xe=new e.OlP("HammerLoader");let ht=(()=>{class Se{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 Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),ft=(()=>{class Se extends U{constructor(rt,at,yt,gi){super(rt),this._config=at,this.console=yt,this.loader=gi,this._loaderPromise=null}supports(rt){return!(!Oe.hasOwnProperty(rt.toLowerCase())&&!this.isCustomEvent(rt)||!window.Hammer&&!this.loader)}addEventListener(rt,at,yt){const gi=this.manager.getZone();if(at=at.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Qt=!1,Jt=()=>{Qt=!0};return this._loaderPromise.then(()=>{window.Hammer?Qt||(Jt=this.addEventListener(rt,at,yt)):Jt=()=>{}}).catch(()=>{Jt=()=>{}}),()=>{Jt()}}return gi.runOutsideAngular(()=>{const Qt=this._config.buildHammer(rt),Jt=function(Xi){gi.runGuarded(function(){yt(Xi)})};return Qt.on(at,Jt),()=>{Qt.off(at,Jt),"function"==typeof Qt.destroy&&Qt.destroy()}})}isCustomEvent(rt){return this._config.events.indexOf(rt)>-1}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0),e.LFG(le),e.LFG(e.c2e),e.LFG(xe,8))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),Ht=(()=>{class Se{}return Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275mod=e.oAB({type:Se}),Se.\u0275inj=e.cJS({providers:[{provide:k,useClass:ft,multi:!0,deps:[t.K0,le,e.c2e,[new e.FiY,xe]]},{provide:le,useClass:ht,deps:[]}]}),Se})(),it=(()=>{class Se{}return Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:function(rt){let at=null;return at=rt?new(rt||Se):e.LFG(tt),at},providedIn:"root"}),Se})(),tt=(()=>{class Se extends it{constructor(rt){super(),this._doc=rt}sanitize(rt,at){if(null==at)return null;switch(rt){case e.q3G.NONE:return at;case e.q3G.HTML:return(0,e.qzn)(at,"HTML")?(0,e.z3N)(at):(0,e.EiD)(this._doc,String(at)).toString();case e.q3G.STYLE:return(0,e.qzn)(at,"Style")?(0,e.z3N)(at):at;case e.q3G.SCRIPT:if((0,e.qzn)(at,"Script"))return(0,e.z3N)(at);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.yhl)(at),(0,e.qzn)(at,"URL")?(0,e.z3N)(at):(0,e.mCW)(String(at));case e.q3G.RESOURCE_URL:if((0,e.qzn)(at,"ResourceURL"))return(0,e.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,e.JVY)(rt)}bypassSecurityTrustStyle(rt){return(0,e.L6k)(rt)}bypassSecurityTrustScript(rt){return(0,e.eBb)(rt)}bypassSecurityTrustUrl(rt){return(0,e.LAX)(rt)}bypassSecurityTrustResourceUrl(rt){return(0,e.pB0)(rt)}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0))},Se.\u0275prov=e.Yz7({token:Se,factory:function(rt){let at=null;return at=rt?new rt:function Ne(Se){return new tt(Se.get(t.K0))}(e.LFG(e.zs3)),at},providedIn:"root"}),Se})()},1402:(Fe,Y,p)=>{"use strict";p.d(Y,{gz:()=>ji,gk:()=>z,m2:()=>N,Q3:()=>oe,OD:()=>B,Av:()=>Q,F0:()=>ur,rH:()=>Et,Od:()=>qt,yS:()=>At,Bz:()=>Aa,lC:()=>Ir});var t=p(5e3),e=p(8306),f=p(727),M=p(4482),a=p(5403);function b(){return(0,M.e)((Be,Me)=>{let pe=null;Be._refCount++;const $e=(0,a.x)(Me,void 0,void 0,void 0,()=>{if(!Be||Be._refCount<=0||0<--Be._refCount)return void(pe=null);const ot=Be._connection,kt=pe;pe=null,ot&&(!kt||ot===kt)&&ot.unsubscribe(),Me.unsubscribe()});Be.subscribe($e),$e.closed||(pe=Be.connect())})}class d extends e.y{constructor(Me,pe){super(),this.source=Me,this.subjectFactory=pe,this._subject=null,this._refCount=0,this._connection=null,(0,M.A)(Me)&&(this.lift=Me.lift)}_subscribe(Me){return this.getSubject().subscribe(Me)}getSubject(){const Me=this._subject;return(!Me||Me.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Me}=this;this._subject=this._connection=null,null==Me||Me.unsubscribe()}connect(){let Me=this._connection;if(!Me){Me=this._connection=new f.w0;const pe=this.getSubject();Me.add(this.source.subscribe((0,a.x)(pe,void 0,()=>{this._teardown(),pe.complete()},$e=>{this._teardown(),pe.error($e)},()=>this._teardown()))),Me.closed&&(this._connection=null,Me=f.w0.EMPTY)}return Me}refCount(){return b()(this)}}var P=p(457),h=p(9646),A=p(1135),w=p(9841),D=p(2843),L=p(6805),k=p(7272),S=p(9770),U=p(515),Z=p(7579),j=p(9300);function ne(Be){return Be<=0?()=>U.E:(0,M.e)((Me,pe)=>{let $e=[];Me.subscribe((0,a.x)(pe,ot=>{$e.push(ot),Be<$e.length&&$e.shift()},()=>{for(const ot of $e)pe.next(ot);pe.complete()},void 0,()=>{$e=null}))})}var X=p(8068),de=p(6590),ee=p(4671),ce=p(4004),J=p(3900),me=p(5698),x=p(8675),i=p(5026),r=p(262),u=p(4351),c=p(590),_=p(5577),E=p(8505),I=p(8746),v=p(8189),n=p(9808);class C{constructor(Me,pe){this.id=Me,this.url=pe}}class B extends C{constructor(Me,pe,$e="imperative",ot=null){super(Me,pe),this.navigationTrigger=$e,this.restoredState=ot}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class N extends C{constructor(Me,pe,$e){super(Me,pe),this.urlAfterRedirects=$e}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class z extends C{constructor(Me,pe,$e){super(Me,pe),this.reason=$e}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class oe extends C{constructor(Me,pe,$e){super(Me,pe),this.error=$e}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ge extends C{constructor(Me,pe,$e,ot){super(Me,pe),this.urlAfterRedirects=$e,this.state=ot}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class be extends C{constructor(Me,pe,$e,ot){super(Me,pe),this.urlAfterRedirects=$e,this.state=ot}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Re extends C{constructor(Me,pe,$e,ot,kt){super(Me,pe),this.urlAfterRedirects=$e,this.state=ot,this.shouldActivate=kt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class we extends C{constructor(Me,pe,$e,ot){super(Me,pe),this.urlAfterRedirects=$e,this.state=ot}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q extends C{constructor(Me,pe,$e,ot){super(Me,pe),this.urlAfterRedirects=$e,this.state=ot}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ge{constructor(Me){this.route=Me}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ve{constructor(Me){this.route=Me}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class F{constructor(Me){this.snapshot=Me}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class De{constructor(Me){this.snapshot=Me}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lt{constructor(Me){this.snapshot=Me}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ie{constructor(Me){this.snapshot=Me}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ae{constructor(Me,pe,$e){this.routerEvent=Me,this.position=pe,this.anchor=$e}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const se="primary";class Te{constructor(Me){this.params=Me||{}}has(Me){return Object.prototype.hasOwnProperty.call(this.params,Me)}get(Me){if(this.has(Me)){const pe=this.params[Me];return Array.isArray(pe)?pe[0]:pe}return null}getAll(Me){if(this.has(Me)){const pe=this.params[Me];return Array.isArray(pe)?pe:[pe]}return[]}get keys(){return Object.keys(this.params)}}function ye(Be){return new Te(Be)}const W="ngNavigationCancelingError";function $(Be){const Me=Error("NavigationCancelingError: "+Be);return Me[W]=!0,Me}function Ce(Be,Me,pe){const $e=pe.path.split("/");if($e.length>Be.length||"full"===pe.pathMatch&&(Me.hasChildren()||$e.length$e[kt]===ot)}return Be===Me}function Dt(Be){return Array.prototype.concat.apply([],Be)}function di(Be){return Be.length>0?Be[Be.length-1]:null}function Gt(Be,Me){for(const pe in Be)Be.hasOwnProperty(pe)&&Me(Be[pe],pe)}function ui(Be){return(0,t.CqO)(Be)?Be:(0,t.QGY)(Be)?(0,P.D)(Promise.resolve(Be)):(0,h.of)(Be)}const Nt={exact:function $t(Be,Me,pe){if(!it(Be.segments,Me.segments)||!le(Be.segments,Me.segments,pe)||Be.numberOfChildren!==Me.numberOfChildren)return!1;for(const $e in Me.children)if(!Be.children[$e]||!$t(Be.children[$e],Me.children[$e],pe))return!1;return!0},subset:Pe},gt={exact:function vt(Be,Me){return ct(Be,Me)},subset:function jt(Be,Me){return Object.keys(Me).length<=Object.keys(Be).length&&Object.keys(Me).every(pe=>ut(Be[pe],Me[pe]))},ignored:()=>!0};function et(Be,Me,pe){return Nt[pe.paths](Be.root,Me.root,pe.matrixParams)&>[pe.queryParams](Be.queryParams,Me.queryParams)&&!("exact"===pe.fragment&&Be.fragment!==Me.fragment)}function Pe(Be,Me,pe){return Oe(Be,Me,Me.segments,pe)}function Oe(Be,Me,pe,$e){if(Be.segments.length>pe.length){const ot=Be.segments.slice(0,pe.length);return!(!it(ot,pe)||Me.hasChildren()||!le(ot,pe,$e))}if(Be.segments.length===pe.length){if(!it(Be.segments,pe)||!le(Be.segments,pe,$e))return!1;for(const ot in Me.children)if(!Be.children[ot]||!Pe(Be.children[ot],Me.children[ot],$e))return!1;return!0}{const ot=pe.slice(0,Be.segments.length),kt=pe.slice(Be.segments.length);return!!(it(Be.segments,ot)&&le(Be.segments,ot,$e)&&Be.children[se])&&Oe(Be.children[se],Me,kt,$e)}}function le(Be,Me,pe){return Me.every(($e,ot)=>gt[pe](Be[ot].parameters,$e.parameters))}class xe{constructor(Me,pe,$e){this.root=Me,this.queryParams=pe,this.fragment=$e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return Se.serialize(this)}}class ht{constructor(Me,pe){this.segments=Me,this.children=pe,this.parent=null,Gt(pe,($e,ot)=>$e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ue(this)}}class ft{constructor(Me,pe){this.path=Me,this.parameters=pe}get parameterMap(){return this._parameterMap||(this._parameterMap=ye(this.parameters)),this._parameterMap}toString(){return fi(this)}}function it(Be,Me){return Be.length===Me.length&&Be.every((pe,$e)=>pe.path===Me[$e].path)}class tt{}class Je{parse(Me){const pe=new je(Me);return new xe(pe.parseRootSegment(),pe.parseQueryParams(),pe.parseFragment())}serialize(Me){const pe=`/${rt(Me.root,!0)}`,$e=function tn(Be){const Me=Object.keys(Be).map(pe=>{const $e=Be[pe];return Array.isArray($e)?$e.map(ot=>`${yt(pe)}=${yt(ot)}`).join("&"):`${yt(pe)}=${yt($e)}`}).filter(pe=>!!pe);return Me.length?`?${Me.join("&")}`:""}(Me.queryParams);return`${pe}${$e}${"string"==typeof Me.fragment?`#${function gi(Be){return encodeURI(Be)}(Me.fragment)}`:""}`}}const Se=new Je;function Ue(Be){return Be.segments.map(Me=>fi(Me)).join("/")}function rt(Be,Me){if(!Be.hasChildren())return Ue(Be);if(Me){const pe=Be.children[se]?rt(Be.children[se],!1):"",$e=[];return Gt(Be.children,(ot,kt)=>{kt!==se&&$e.push(`${kt}:${rt(ot,!1)}`)}),$e.length>0?`${pe}(${$e.join("//")})`:pe}{const pe=function Ne(Be,Me){let pe=[];return Gt(Be.children,($e,ot)=>{ot===se&&(pe=pe.concat(Me($e,ot)))}),Gt(Be.children,($e,ot)=>{ot!==se&&(pe=pe.concat(Me($e,ot)))}),pe}(Be,($e,ot)=>ot===se?[rt(Be.children[se],!1)]:[`${ot}:${rt($e,!1)}`]);return 1===Object.keys(Be.children).length&&null!=Be.children[se]?`${Ue(Be)}/${pe[0]}`:`${Ue(Be)}/(${pe.join("//")})`}}function at(Be){return encodeURIComponent(Be).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yt(Be){return at(Be).replace(/%3B/gi,";")}function Qt(Be){return at(Be).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jt(Be){return decodeURIComponent(Be)}function Xi(Be){return Jt(Be.replace(/\+/g,"%20"))}function fi(Be){return`${Qt(Be.path)}${function ai(Be){return Object.keys(Be).map(Me=>`;${Qt(Me)}=${Qt(Be[Me])}`).join("")}(Be.parameters)}`}const Wi=/^[^\/()?;=#]+/;function Gi(Be){const Me=Be.match(Wi);return Me?Me[0]:""}const Yi=/^[^=?&#]+/,Lt=/^[^&#]+/;class je{constructor(Me){this.url=Me,this.remaining=Me}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],this.parseChildren())}parseQueryParams(){const Me={};if(this.consumeOptional("?"))do{this.parseQueryParam(Me)}while(this.consumeOptional("&"));return Me}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Me=[];for(this.peekStartsWith("(")||Me.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Me.push(this.parseSegment());let pe={};this.peekStartsWith("/(")&&(this.capture("/"),pe=this.parseParens(!0));let $e={};return this.peekStartsWith("(")&&($e=this.parseParens(!1)),(Me.length>0||Object.keys(pe).length>0)&&($e[se]=new ht(Me,pe)),$e}parseSegment(){const Me=Gi(this.remaining);if(""===Me&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Me),new ft(Jt(Me),this.parseMatrixParams())}parseMatrixParams(){const Me={};for(;this.consumeOptional(";");)this.parseParam(Me);return Me}parseParam(Me){const pe=Gi(this.remaining);if(!pe)return;this.capture(pe);let $e="";if(this.consumeOptional("=")){const ot=Gi(this.remaining);ot&&($e=ot,this.capture($e))}Me[Jt(pe)]=Jt($e)}parseQueryParam(Me){const pe=function ze(Be){const Me=Be.match(Yi);return Me?Me[0]:""}(this.remaining);if(!pe)return;this.capture(pe);let $e="";if(this.consumeOptional("=")){const Xt=function fe(Be){const Me=Be.match(Lt);return Me?Me[0]:""}(this.remaining);Xt&&($e=Xt,this.capture($e))}const ot=Xi(pe),kt=Xi($e);if(Me.hasOwnProperty(ot)){let Xt=Me[ot];Array.isArray(Xt)||(Xt=[Xt],Me[ot]=Xt),Xt.push(kt)}else Me[ot]=kt}parseParens(Me){const pe={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const $e=Gi(this.remaining),ot=this.remaining[$e.length];if("/"!==ot&&")"!==ot&&";"!==ot)throw new Error(`Cannot parse url '${this.url}'`);let kt;$e.indexOf(":")>-1?(kt=$e.substr(0,$e.indexOf(":")),this.capture(kt),this.capture(":")):Me&&(kt=se);const Xt=this.parseChildren();pe[kt]=1===Object.keys(Xt).length?Xt[se]:new ht([],Xt),this.consumeOptional("//")}return pe}peekStartsWith(Me){return this.remaining.startsWith(Me)}consumeOptional(Me){return!!this.peekStartsWith(Me)&&(this.remaining=this.remaining.substring(Me.length),!0)}capture(Me){if(!this.consumeOptional(Me))throw new Error(`Expected "${Me}".`)}}class Ct{constructor(Me){this._root=Me}get root(){return this._root.value}parent(Me){const pe=this.pathFromRoot(Me);return pe.length>1?pe[pe.length-2]:null}children(Me){const pe=ie(Me,this._root);return pe?pe.children.map($e=>$e.value):[]}firstChild(Me){const pe=ie(Me,this._root);return pe&&pe.children.length>0?pe.children[0].value:null}siblings(Me){const pe=qe(Me,this._root);return pe.length<2?[]:pe[pe.length-2].children.map(ot=>ot.value).filter(ot=>ot!==Me)}pathFromRoot(Me){return qe(Me,this._root).map(pe=>pe.value)}}function ie(Be,Me){if(Be===Me.value)return Me;for(const pe of Me.children){const $e=ie(Be,pe);if($e)return $e}return null}function qe(Be,Me){if(Be===Me.value)return[Me];for(const pe of Me.children){const $e=qe(Be,pe);if($e.length)return $e.unshift(Me),$e}return[]}class Mt{constructor(Me,pe){this.value=Me,this.children=pe}toString(){return`TreeNode(${this.value})`}}function Vt(Be){const Me={};return Be&&Be.children.forEach(pe=>Me[pe.value.outlet]=pe),Me}class Mi extends Ct{constructor(Me,pe){super(Me),this.snapshot=pe,Pt(this,Me)}toString(){return this.snapshot.toString()}}function Ei(Be,Me){const pe=function en(Be,Me){const Xt=new zt([],{},{},"",{},se,Me,null,Be.root,-1,{});return new si("",new Mt(Xt,[]))}(Be,Me),$e=new A.X([new ft("",{})]),ot=new A.X({}),kt=new A.X({}),Xt=new A.X({}),oi=new A.X(""),Ni=new ji($e,ot,Xt,oi,kt,se,Me,pe.root);return Ni.snapshot=pe.root,new Mi(new Mt(Ni,[]),pe)}class ji{constructor(Me,pe,$e,ot,kt,Xt,oi,Ni){this.url=Me,this.params=pe,this.queryParams=$e,this.fragment=ot,this.data=kt,this.outlet=Xt,this.component=oi,this._futureSnapshot=Ni}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,ce.U)(Me=>ye(Me)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ce.U)(Me=>ye(Me)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Kt(Be,Me="emptyOnly"){const pe=Be.pathFromRoot;let $e=0;if("always"!==Me)for($e=pe.length-1;$e>=1;){const ot=pe[$e],kt=pe[$e-1];if(ot.routeConfig&&""===ot.routeConfig.path)$e--;else{if(kt.component)break;$e--}}return function Oi(Be){return Be.reduce((Me,pe)=>({params:Object.assign(Object.assign({},Me.params),pe.params),data:Object.assign(Object.assign({},Me.data),pe.data),resolve:Object.assign(Object.assign({},Me.resolve),pe._resolvedData)}),{params:{},data:{},resolve:{}})}(pe.slice($e))}class zt{constructor(Me,pe,$e,ot,kt,Xt,oi,Ni,dn,Rn,Mn){this.url=Me,this.params=pe,this.queryParams=$e,this.fragment=ot,this.data=kt,this.outlet=Xt,this.component=oi,this.routeConfig=Ni,this._urlSegment=dn,this._lastPathIndex=Rn,this._resolve=Mn}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=ye(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map($e=>$e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class si extends Ct{constructor(Me,pe){super(pe),this.url=Me,Pt(this,pe)}toString(){return mi(this._root)}}function Pt(Be,Me){Me.value._routerState=Be,Me.children.forEach(pe=>Pt(Be,pe))}function mi(Be){const Me=Be.children.length>0?` { ${Be.children.map(mi).join(", ")} } `:"";return`${Be.value}${Me}`}function ti(Be){if(Be.snapshot){const Me=Be.snapshot,pe=Be._futureSnapshot;Be.snapshot=pe,ct(Me.queryParams,pe.queryParams)||Be.queryParams.next(pe.queryParams),Me.fragment!==pe.fragment&&Be.fragment.next(pe.fragment),ct(Me.params,pe.params)||Be.params.next(pe.params),function Le(Be,Me){if(Be.length!==Me.length)return!1;for(let pe=0;pect(pe.parameters,Me[$e].parameters))}(Be.url,Me.url);return pe&&!(!Be.parent!=!Me.parent)&&(!Be.parent||vi(Be.parent,Me.parent))}function Fi(Be,Me,pe){if(pe&&Be.shouldReuseRoute(Me.value,pe.value.snapshot)){const $e=pe.value;$e._futureSnapshot=Me.value;const ot=function pn(Be,Me,pe){return Me.children.map($e=>{for(const ot of pe.children)if(Be.shouldReuseRoute($e.value,ot.value.snapshot))return Fi(Be,$e,ot);return Fi(Be,$e)})}(Be,Me,pe);return new Mt($e,ot)}{if(Be.shouldAttach(Me.value)){const kt=Be.retrieve(Me.value);if(null!==kt){const Xt=kt.route;return Xt.value._futureSnapshot=Me.value,Xt.children=Me.children.map(oi=>Fi(Be,oi)),Xt}}const $e=function Fn(Be){return new ji(new A.X(Be.url),new A.X(Be.params),new A.X(Be.queryParams),new A.X(Be.fragment),new A.X(Be.data),Be.outlet,Be.component,Be)}(Me.value),ot=Me.children.map(kt=>Fi(Be,kt));return new Mt($e,ot)}}function Ai(Be){return"object"==typeof Be&&null!=Be&&!Be.outlets&&!Be.segmentPath}function Ri(Be){return"object"==typeof Be&&null!=Be&&Be.outlets}function cn(Be,Me,pe,$e,ot){let kt={};if($e&&Gt($e,(oi,Ni)=>{kt[Ni]=Array.isArray(oi)?oi.map(dn=>`${dn}`):`${oi}`}),Be===Me)return new xe(pe,kt,ot);const Xt=pr(Be,Me,pe);return new xe(Xt,kt,ot)}function pr(Be,Me,pe){const $e={};return Gt(Be.children,(ot,kt)=>{$e[kt]=ot===Me?pe:pr(ot,Me,pe)}),new ht(Be.segments,$e)}class Br{constructor(Me,pe,$e){if(this.isAbsolute=Me,this.numberOfDoubleDots=pe,this.commands=$e,Me&&$e.length>0&&Ai($e[0]))throw new Error("Root segment cannot have matrix parameters");const ot=$e.find(Ri);if(ot&&ot!==di($e))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class mr{constructor(Me,pe,$e){this.segmentGroup=Me,this.processChildren=pe,this.index=$e}}function ga(Be,Me,pe){if(Be||(Be=new ht([],{})),0===Be.segments.length&&Be.hasChildren())return Ca(Be,Me,pe);const $e=function Na(Be,Me,pe){let $e=0,ot=Me;const kt={match:!1,pathIndex:0,commandIndex:0};for(;ot=pe.length)return kt;const Xt=Be.segments[ot],oi=pe[$e];if(Ri(oi))break;const Ni=`${oi}`,dn=$e0&&void 0===Ni)break;if(Ni&&dn&&"object"==typeof dn&&void 0===dn.outlets){if(!da(Ni,dn,Xt))return kt;$e+=2}else{if(!da(Ni,{},Xt))return kt;$e++}ot++}return{match:!0,pathIndex:ot,commandIndex:$e}}(Be,Me,pe),ot=pe.slice($e.commandIndex);if($e.match&&$e.pathIndex{"string"==typeof kt&&(kt=[kt]),null!==kt&&(ot[Xt]=ga(Be.children[Xt],Me,kt))}),Gt(Be.children,(kt,Xt)=>{void 0===$e[Xt]&&(ot[Xt]=kt)}),new ht(Be.segments,ot)}}function Ra(Be,Me,pe){const $e=Be.segments.slice(0,Me);let ot=0;for(;ot{"string"==typeof pe&&(pe=[pe]),null!==pe&&(Me[$e]=Ra(new ht([],{}),0,pe))}),Me}function Qr(Be){const Me={};return Gt(Be,(pe,$e)=>Me[$e]=`${pe}`),Me}function da(Be,Me,pe){return Be==pe.path&&ct(Me,pe.parameters)}class Ur{constructor(Me,pe,$e,ot){this.routeReuseStrategy=Me,this.futureState=pe,this.currState=$e,this.forwardEvent=ot}activate(Me){const pe=this.futureState._root,$e=this.currState?this.currState._root:null;this.deactivateChildRoutes(pe,$e,Me),ti(this.futureState.root),this.activateChildRoutes(pe,$e,Me)}deactivateChildRoutes(Me,pe,$e){const ot=Vt(pe);Me.children.forEach(kt=>{const Xt=kt.value.outlet;this.deactivateRoutes(kt,ot[Xt],$e),delete ot[Xt]}),Gt(ot,(kt,Xt)=>{this.deactivateRouteAndItsChildren(kt,$e)})}deactivateRoutes(Me,pe,$e){const ot=Me.value,kt=pe?pe.value:null;if(ot===kt)if(ot.component){const Xt=$e.getContext(ot.outlet);Xt&&this.deactivateChildRoutes(Me,pe,Xt.children)}else this.deactivateChildRoutes(Me,pe,$e);else kt&&this.deactivateRouteAndItsChildren(pe,$e)}deactivateRouteAndItsChildren(Me,pe){Me.value.component&&this.routeReuseStrategy.shouldDetach(Me.value.snapshot)?this.detachAndStoreRouteSubtree(Me,pe):this.deactivateRouteAndOutlet(Me,pe)}detachAndStoreRouteSubtree(Me,pe){const $e=pe.getContext(Me.value.outlet),ot=$e&&Me.value.component?$e.children:pe,kt=Vt(Me);for(const Xt of Object.keys(kt))this.deactivateRouteAndItsChildren(kt[Xt],ot);if($e&&$e.outlet){const Xt=$e.outlet.detach(),oi=$e.children.onOutletDeactivated();this.routeReuseStrategy.store(Me.value.snapshot,{componentRef:Xt,route:Me,contexts:oi})}}deactivateRouteAndOutlet(Me,pe){const $e=pe.getContext(Me.value.outlet),ot=$e&&Me.value.component?$e.children:pe,kt=Vt(Me);for(const Xt of Object.keys(kt))this.deactivateRouteAndItsChildren(kt[Xt],ot);$e&&$e.outlet&&($e.outlet.deactivate(),$e.children.onOutletDeactivated(),$e.attachRef=null,$e.resolver=null,$e.route=null)}activateChildRoutes(Me,pe,$e){const ot=Vt(pe);Me.children.forEach(kt=>{this.activateRoutes(kt,ot[kt.value.outlet],$e),this.forwardEvent(new Ie(kt.value.snapshot))}),Me.children.length&&this.forwardEvent(new De(Me.value.snapshot))}activateRoutes(Me,pe,$e){const ot=Me.value,kt=pe?pe.value:null;if(ti(ot),ot===kt)if(ot.component){const Xt=$e.getOrCreateContext(ot.outlet);this.activateChildRoutes(Me,pe,Xt.children)}else this.activateChildRoutes(Me,pe,$e);else if(ot.component){const Xt=$e.getOrCreateContext(ot.outlet);if(this.routeReuseStrategy.shouldAttach(ot.snapshot)){const oi=this.routeReuseStrategy.retrieve(ot.snapshot);this.routeReuseStrategy.store(ot.snapshot,null),Xt.children.onOutletReAttached(oi.contexts),Xt.attachRef=oi.componentRef,Xt.route=oi.route.value,Xt.outlet&&Xt.outlet.attach(oi.componentRef,oi.route.value),ti(oi.route.value),this.activateChildRoutes(Me,null,Xt.children)}else{const oi=function Gr(Be){for(let Me=Be.parent;Me;Me=Me.parent){const pe=Me.routeConfig;if(pe&&pe._loadedConfig)return pe._loadedConfig;if(pe&&pe.component)return null}return null}(ot.snapshot),Ni=oi?oi.module.componentFactoryResolver:null;Xt.attachRef=null,Xt.route=ot,Xt.resolver=Ni,Xt.outlet&&Xt.outlet.activateWith(ot,Ni),this.activateChildRoutes(Me,null,Xt.children)}}else this.activateChildRoutes(Me,null,$e)}}class lr{constructor(Me,pe){this.routes=Me,this.module=pe}}function fn(Be){return"function"==typeof Be}function Xn(Be){return Be instanceof xe}const Dr=Symbol("INITIAL_VALUE");function Rr(){return(0,J.w)(Be=>(0,w.a)(Be.map(Me=>Me.pipe((0,me.q)(1),(0,x.O)(Dr)))).pipe((0,i.R)((Me,pe)=>{let $e=!1;return pe.reduce((ot,kt,Xt)=>ot!==Dr?ot:(kt===Dr&&($e=!0),$e||!1!==kt&&Xt!==pe.length-1&&!Xn(kt)?ot:kt),Me)},Dr),(0,j.h)(Me=>Me!==Dr),(0,ce.U)(Me=>Xn(Me)?Me:!0===Me),(0,me.q)(1)))}class Wr{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(Me,pe){const $e=this.getOrCreateContext(Me);$e.outlet=pe,this.contexts.set(Me,$e)}onChildOutletDestroyed(Me){const pe=this.getContext(Me);pe&&(pe.outlet=null,pe.attachRef=null)}onOutletDeactivated(){const Me=this.contexts;return this.contexts=new Map,Me}onOutletReAttached(Me){this.contexts=Me}getOrCreateContext(Me){let pe=this.getContext(Me);return pe||(pe=new Wr,this.contexts.set(Me,pe)),pe}getContext(Me){return this.contexts.get(Me)||null}}let Ir=(()=>{class Be{constructor(pe,$e,ot,kt,Xt){this.parentContexts=pe,this.location=$e,this.resolver=ot,this.changeDetector=Xt,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=kt||se,pe.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const pe=this.parentContexts.getContext(this.name);pe&&pe.route&&(pe.attachRef?this.attach(pe.attachRef,pe.route):this.activateWith(pe.route,pe.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 pe=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(pe.instance),pe}attach(pe,$e){this.activated=pe,this._activatedRoute=$e,this.location.insert(pe.hostView),this.attachEvents.emit(pe.instance)}deactivate(){if(this.activated){const pe=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(pe)}}activateWith(pe,$e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=pe;const Xt=($e=$e||this.resolver).resolveComponentFactory(pe._futureSnapshot.routeConfig.component),oi=this.parentContexts.getOrCreateContext(this.name).children,Ni=new ua(pe,oi,this.location.injector);this.activated=this.location.createComponent(Xt,this.location.length,Ni),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Be.\u0275fac=function(pe){return new(pe||Be)(t.Y36(gr),t.Y36(t.s_b),t.Y36(t._Vd),t.$8M("name"),t.Y36(t.sBO))},Be.\u0275dir=t.lG2({type:Be,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Be})();class ua{constructor(Me,pe,$e){this.route=Me,this.childContexts=pe,this.parent=$e}get(Me,pe){return Me===ji?this.route:Me===gr?this.childContexts:this.parent.get(Me,pe)}}let _a=(()=>{class Be{}return Be.\u0275fac=function(pe){return new(pe||Be)},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["ng-component"]],decls:1,vars:0,template:function(pe,$e){1&pe&&t._UZ(0,"router-outlet")},directives:[Ir],encapsulation:2}),Be})();function va(Be,Me=""){for(let pe=0;peKn($e)===Me);return pe.push(...Be.filter($e=>Kn($e)!==Me)),pe}const Hr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Sr(Be,Me,pe){var $e;if(""===Me.path)return"full"===Me.pathMatch&&(Be.hasChildren()||pe.length>0)?Object.assign({},Hr):{matched:!0,consumedSegments:[],remainingSegments:pe,parameters:{},positionalParamSegments:{}};const kt=(Me.matcher||Ce)(pe,Be,Me);if(!kt)return Object.assign({},Hr);const Xt={};Gt(kt.posParams,(Ni,dn)=>{Xt[dn]=Ni.path});const oi=kt.consumed.length>0?Object.assign(Object.assign({},Xt),kt.consumed[kt.consumed.length-1].parameters):Xt;return{matched:!0,consumedSegments:kt.consumed,remainingSegments:pe.slice(kt.consumed.length),parameters:oi,positionalParamSegments:null!==($e=kt.posParams)&&void 0!==$e?$e:{}}}function Fr(Be,Me,pe,$e,ot="corrected"){if(pe.length>0&&function Wn(Be,Me,pe){return pe.some($e=>St(Be,Me,$e)&&Kn($e)!==se)}(Be,pe,$e)){const Xt=new ht(Me,function Fa(Be,Me,pe,$e){const ot={};ot[se]=$e,$e._sourceSegment=Be,$e._segmentIndexShift=Me.length;for(const kt of pe)if(""===kt.path&&Kn(kt)!==se){const Xt=new ht([],{});Xt._sourceSegment=Be,Xt._segmentIndexShift=Me.length,ot[Kn(kt)]=Xt}return ot}(Be,Me,$e,new ht(pe,Be.children)));return Xt._sourceSegment=Be,Xt._segmentIndexShift=Me.length,{segmentGroup:Xt,slicedSegments:[]}}if(0===pe.length&&function Xe(Be,Me,pe){return pe.some($e=>St(Be,Me,$e))}(Be,pe,$e)){const Xt=new ht(Be.segments,function ya(Be,Me,pe,$e,ot,kt){const Xt={};for(const oi of $e)if(St(Be,pe,oi)&&!ot[Kn(oi)]){const Ni=new ht([],{});Ni._sourceSegment=Be,Ni._segmentIndexShift="legacy"===kt?Be.segments.length:Me.length,Xt[Kn(oi)]=Ni}return Object.assign(Object.assign({},ot),Xt)}(Be,Me,pe,$e,Be.children,ot));return Xt._sourceSegment=Be,Xt._segmentIndexShift=Me.length,{segmentGroup:Xt,slicedSegments:pe}}const kt=new ht(Be.segments,Be.children);return kt._sourceSegment=Be,kt._segmentIndexShift=Me.length,{segmentGroup:kt,slicedSegments:pe}}function St(Be,Me,pe){return(!(Be.hasChildren()||Me.length>0)||"full"!==pe.pathMatch)&&""===pe.path}function Ke(Be,Me,pe,$e){return!!(Kn(Be)===$e||$e!==se&&St(Me,pe,Be))&&("**"===Be.path||Sr(Me,Be,pe).matched)}function Ot(Be,Me,pe){return 0===Me.length&&!Be.children[pe]}class ri{constructor(Me){this.segmentGroup=Me||null}}class Ti{constructor(Me){this.urlTree=Me}}function ki(Be){return(0,D._)(new ri(Be))}function an(Be){return(0,D._)(new Ti(Be))}class Zt{constructor(Me,pe,$e,ot,kt){this.configLoader=pe,this.urlSerializer=$e,this.urlTree=ot,this.config=kt,this.allowRedirects=!0,this.ngModule=Me.get(t.h0i)}apply(){const Me=Fr(this.urlTree.root,[],[],this.config).segmentGroup,pe=new ht(Me.segments,Me.children);return this.expandSegmentGroup(this.ngModule,this.config,pe,se).pipe((0,ce.U)(kt=>this.createUrlTree(Zi(kt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,r.K)(kt=>{if(kt instanceof Ti)return this.allowRedirects=!1,this.match(kt.urlTree);throw kt instanceof ri?this.noMatchError(kt):kt}))}match(Me){return this.expandSegmentGroup(this.ngModule,this.config,Me.root,se).pipe((0,ce.U)(ot=>this.createUrlTree(Zi(ot),Me.queryParams,Me.fragment))).pipe((0,r.K)(ot=>{throw ot instanceof ri?this.noMatchError(ot):ot}))}noMatchError(Me){return new Error(`Cannot match any routes. URL Segment: '${Me.segmentGroup}'`)}createUrlTree(Me,pe,$e){const ot=Me.segments.length>0?new ht([],{[se]:Me}):Me;return new xe(ot,pe,$e)}expandSegmentGroup(Me,pe,$e,ot){return 0===$e.segments.length&&$e.hasChildren()?this.expandChildren(Me,pe,$e).pipe((0,ce.U)(kt=>new ht([],kt))):this.expandSegment(Me,$e,pe,$e.segments,ot,!0)}expandChildren(Me,pe,$e){const ot=[];for(const kt of Object.keys($e.children))"primary"===kt?ot.unshift(kt):ot.push(kt);return(0,P.D)(ot).pipe((0,u.b)(kt=>{const Xt=$e.children[kt],oi=ra(pe,kt);return this.expandSegmentGroup(Me,oi,Xt,kt).pipe((0,ce.U)(Ni=>({segment:Ni,outlet:kt})))}),(0,i.R)((kt,Xt)=>(kt[Xt.outlet]=Xt.segment,kt),{}),function te(Be,Me){const pe=arguments.length>=2;return $e=>$e.pipe(Be?(0,j.h)((ot,kt)=>Be(ot,kt,$e)):ee.y,ne(1),pe?(0,de.d)(Me):(0,X.T)(()=>new L.K))}())}expandSegment(Me,pe,$e,ot,kt,Xt){return(0,P.D)($e).pipe((0,u.b)(oi=>this.expandSegmentAgainstRoute(Me,pe,$e,oi,ot,kt,Xt).pipe((0,r.K)(dn=>{if(dn instanceof ri)return(0,h.of)(null);throw dn}))),(0,c.P)(oi=>!!oi),(0,r.K)((oi,Ni)=>{if(oi instanceof L.K||"EmptyError"===oi.name)return Ot(pe,ot,kt)?(0,h.of)(new ht([],{})):ki(pe);throw oi}))}expandSegmentAgainstRoute(Me,pe,$e,ot,kt,Xt,oi){return Ke(ot,pe,kt,Xt)?void 0===ot.redirectTo?this.matchSegmentAgainstRoute(Me,pe,ot,kt,Xt):oi&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Me,pe,$e,ot,kt,Xt):ki(pe):ki(pe)}expandSegmentAgainstRouteUsingRedirect(Me,pe,$e,ot,kt,Xt){return"**"===ot.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Me,$e,ot,Xt):this.expandRegularSegmentAgainstRouteUsingRedirect(Me,pe,$e,ot,kt,Xt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Me,pe,$e,ot){const kt=this.applyRedirectCommands([],$e.redirectTo,{});return $e.redirectTo.startsWith("/")?an(kt):this.lineralizeSegments($e,kt).pipe((0,_.z)(Xt=>{const oi=new ht(Xt,{});return this.expandSegment(Me,oi,pe,Xt,ot,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Me,pe,$e,ot,kt,Xt){const{matched:oi,consumedSegments:Ni,remainingSegments:dn,positionalParamSegments:Rn}=Sr(pe,ot,kt);if(!oi)return ki(pe);const Mn=this.applyRedirectCommands(Ni,ot.redirectTo,Rn);return ot.redirectTo.startsWith("/")?an(Mn):this.lineralizeSegments(ot,Mn).pipe((0,_.z)(rr=>this.expandSegment(Me,pe,$e,rr.concat(dn),Xt,!1)))}matchSegmentAgainstRoute(Me,pe,$e,ot,kt){if("**"===$e.path)return $e.loadChildren?($e._loadedConfig?(0,h.of)($e._loadedConfig):this.configLoader.load(Me.injector,$e)).pipe((0,ce.U)(Mn=>($e._loadedConfig=Mn,new ht(ot,{})))):(0,h.of)(new ht(ot,{}));const{matched:Xt,consumedSegments:oi,remainingSegments:Ni}=Sr(pe,$e,ot);return Xt?this.getChildConfig(Me,$e,ot).pipe((0,_.z)(Rn=>{const Mn=Rn.module,rr=Rn.routes,{segmentGroup:Hn,slicedSegments:es}=Fr(pe,oi,Ni,rr),ws=new ht(Hn.segments,Hn.children);if(0===es.length&&ws.hasChildren())return this.expandChildren(Mn,rr,ws).pipe((0,ce.U)(io=>new ht(oi,io)));if(0===rr.length&&0===es.length)return(0,h.of)(new ht(oi,{}));const Fo=Kn($e)===kt;return this.expandSegment(Mn,ws,rr,es,Fo?se:kt,!0).pipe((0,ce.U)(ba=>new ht(oi.concat(ba.segments),ba.children)))})):ki(pe)}getChildConfig(Me,pe,$e){return pe.children?(0,h.of)(new lr(pe.children,Me)):pe.loadChildren?void 0!==pe._loadedConfig?(0,h.of)(pe._loadedConfig):this.runCanLoadGuards(Me.injector,pe,$e).pipe((0,_.z)(ot=>ot?this.configLoader.load(Me.injector,pe).pipe((0,ce.U)(kt=>(pe._loadedConfig=kt,kt))):function hi(Be){return(0,D._)($(`Cannot load children because the guard of the route "path: '${Be.path}'" returned false`))}(pe))):(0,h.of)(new lr([],Me))}runCanLoadGuards(Me,pe,$e){const ot=pe.canLoad;if(!ot||0===ot.length)return(0,h.of)(!0);const kt=ot.map(Xt=>{const oi=Me.get(Xt);let Ni;if(function Za(Be){return Be&&fn(Be.canLoad)}(oi))Ni=oi.canLoad(pe,$e);else{if(!fn(oi))throw new Error("Invalid CanLoad guard");Ni=oi(pe,$e)}return ui(Ni)});return(0,h.of)(kt).pipe(Rr(),(0,E.b)(Xt=>{if(!Xn(Xt))return;const oi=$(`Redirecting to "${this.urlSerializer.serialize(Xt)}"`);throw oi.url=Xt,oi}),(0,ce.U)(Xt=>!0===Xt))}lineralizeSegments(Me,pe){let $e=[],ot=pe.root;for(;;){if($e=$e.concat(ot.segments),0===ot.numberOfChildren)return(0,h.of)($e);if(ot.numberOfChildren>1||!ot.children[se])return(0,D._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Me.redirectTo}'`));ot=ot.children[se]}}applyRedirectCommands(Me,pe,$e){return this.applyRedirectCreatreUrlTree(pe,this.urlSerializer.parse(pe),Me,$e)}applyRedirectCreatreUrlTree(Me,pe,$e,ot){const kt=this.createSegmentGroup(Me,pe.root,$e,ot);return new xe(kt,this.createQueryParams(pe.queryParams,this.urlTree.queryParams),pe.fragment)}createQueryParams(Me,pe){const $e={};return Gt(Me,(ot,kt)=>{if("string"==typeof ot&&ot.startsWith(":")){const oi=ot.substring(1);$e[kt]=pe[oi]}else $e[kt]=ot}),$e}createSegmentGroup(Me,pe,$e,ot){const kt=this.createSegments(Me,pe.segments,$e,ot);let Xt={};return Gt(pe.children,(oi,Ni)=>{Xt[Ni]=this.createSegmentGroup(Me,oi,$e,ot)}),new ht(kt,Xt)}createSegments(Me,pe,$e,ot){return pe.map(kt=>kt.path.startsWith(":")?this.findPosParam(Me,kt,ot):this.findOrReturn(kt,$e))}findPosParam(Me,pe,$e){const ot=$e[pe.path.substring(1)];if(!ot)throw new Error(`Cannot redirect to '${Me}'. Cannot find '${pe.path}'.`);return ot}findOrReturn(Me,pe){let $e=0;for(const ot of pe){if(ot.path===Me.path)return pe.splice($e),ot;$e++}return Me}}function Zi(Be){const Me={};for(const $e of Object.keys(Be.children)){const kt=Zi(Be.children[$e]);(kt.segments.length>0||kt.hasChildren())&&(Me[$e]=kt)}return function Hi(Be){if(1===Be.numberOfChildren&&Be.children[se]){const Me=Be.children[se];return new ht(Be.segments.concat(Me.segments),Me.children)}return Be}(new ht(Be.segments,Me))}class Qe{constructor(Me){this.path=Me,this.route=this.path[this.path.length-1]}}class We{constructor(Me,pe){this.component=Me,this.route=pe}}function He(Be,Me,pe){const $e=Be._root;return Yn($e,Me?Me._root:null,pe,[$e.value])}function Si(Be,Me,pe){const $e=function Qi(Be){if(!Be)return null;for(let Me=Be.parent;Me;Me=Me.parent){const pe=Me.routeConfig;if(pe&&pe._loadedConfig)return pe._loadedConfig}return null}(Me);return($e?$e.module.injector:pe).get(Be)}function Yn(Be,Me,pe,$e,ot={canDeactivateChecks:[],canActivateChecks:[]}){const kt=Vt(Me);return Be.children.forEach(Xt=>{(function Or(Be,Me,pe,$e,ot={canDeactivateChecks:[],canActivateChecks:[]}){const kt=Be.value,Xt=Me?Me.value:null,oi=pe?pe.getContext(Be.value.outlet):null;if(Xt&&kt.routeConfig===Xt.routeConfig){const Ni=function Wa(Be,Me,pe){if("function"==typeof pe)return pe(Be,Me);switch(pe){case"pathParamsChange":return!it(Be.url,Me.url);case"pathParamsOrQueryParamsChange":return!it(Be.url,Me.url)||!ct(Be.queryParams,Me.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vi(Be,Me)||!ct(Be.queryParams,Me.queryParams);default:return!vi(Be,Me)}}(Xt,kt,kt.routeConfig.runGuardsAndResolvers);Ni?ot.canActivateChecks.push(new Qe($e)):(kt.data=Xt.data,kt._resolvedData=Xt._resolvedData),Yn(Be,Me,kt.component?oi?oi.children:null:pe,$e,ot),Ni&&oi&&oi.outlet&&oi.outlet.isActivated&&ot.canDeactivateChecks.push(new We(oi.outlet.component,Xt))}else Xt&&xa(Me,oi,ot),ot.canActivateChecks.push(new Qe($e)),Yn(Be,null,kt.component?oi?oi.children:null:pe,$e,ot)})(Xt,kt[Xt.value.outlet],pe,$e.concat([Xt.value]),ot),delete kt[Xt.value.outlet]}),Gt(kt,(Xt,oi)=>xa(Xt,pe.getContext(oi),ot)),ot}function xa(Be,Me,pe){const $e=Vt(Be),ot=Be.value;Gt($e,(kt,Xt)=>{xa(kt,ot.component?Me?Me.children.getContext(Xt):null:Me,pe)}),pe.canDeactivateChecks.push(new We(ot.component&&Me&&Me.outlet&&Me.outlet.isActivated?Me.outlet.component:null,ot))}class xs{}function bs(Be){return new e.y(Me=>Me.error(Be))}class $a{constructor(Me,pe,$e,ot,kt,Xt){this.rootComponentType=Me,this.config=pe,this.urlTree=$e,this.url=ot,this.paramsInheritanceStrategy=kt,this.relativeLinkResolution=Xt}recognize(){const Me=Fr(this.urlTree.root,[],[],this.config.filter(Xt=>void 0===Xt.redirectTo),this.relativeLinkResolution).segmentGroup,pe=this.processSegmentGroup(this.config,Me,se);if(null===pe)return null;const $e=new zt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},se,this.rootComponentType,null,this.urlTree.root,-1,{}),ot=new Mt($e,pe),kt=new si(this.url,ot);return this.inheritParamsAndData(kt._root),kt}inheritParamsAndData(Me){const pe=Me.value,$e=Kt(pe,this.paramsInheritanceStrategy);pe.params=Object.freeze($e.params),pe.data=Object.freeze($e.data),Me.children.forEach(ot=>this.inheritParamsAndData(ot))}processSegmentGroup(Me,pe,$e){return 0===pe.segments.length&&pe.hasChildren()?this.processChildren(Me,pe):this.processSegment(Me,pe,pe.segments,$e)}processChildren(Me,pe){const $e=[];for(const kt of Object.keys(pe.children)){const Xt=pe.children[kt],oi=ra(Me,kt),Ni=this.processSegmentGroup(oi,Xt,kt);if(null===Ni)return null;$e.push(...Ni)}const ot=Va($e);return function Ms(Be){Be.sort((Me,pe)=>Me.value.outlet===se?-1:pe.value.outlet===se?1:Me.value.outlet.localeCompare(pe.value.outlet))}(ot),ot}processSegment(Me,pe,$e,ot){for(const kt of Me){const Xt=this.processSegmentAgainstRoute(kt,pe,$e,ot);if(null!==Xt)return Xt}return Ot(pe,$e,ot)?[]:null}processSegmentAgainstRoute(Me,pe,$e,ot){if(Me.redirectTo||!Ke(Me,pe,$e,ot))return null;let kt,Xt=[],oi=[];if("**"===Me.path){const Hn=$e.length>0?di($e).parameters:{};kt=new zt($e,Hn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ye(Me),Kn(Me),Me.component,Me,re(pe),he(pe)+$e.length,wt(Me))}else{const Hn=Sr(pe,Me,$e);if(!Hn.matched)return null;Xt=Hn.consumedSegments,oi=Hn.remainingSegments,kt=new zt(Xt,Hn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ye(Me),Kn(Me),Me.component,Me,re(pe),he(pe)+Xt.length,wt(Me))}const Ni=function gs(Be){return Be.children?Be.children:Be.loadChildren?Be._loadedConfig.routes:[]}(Me),{segmentGroup:dn,slicedSegments:Rn}=Fr(pe,Xt,oi,Ni.filter(Hn=>void 0===Hn.redirectTo),this.relativeLinkResolution);if(0===Rn.length&&dn.hasChildren()){const Hn=this.processChildren(Ni,dn);return null===Hn?null:[new Mt(kt,Hn)]}if(0===Ni.length&&0===Rn.length)return[new Mt(kt,[])];const Mn=Kn(Me)===ot,rr=this.processSegment(Ni,dn,Rn,Mn?se:ot);return null===rr?null:[new Mt(kt,rr)]}}function Vr(Be){const Me=Be.value.routeConfig;return Me&&""===Me.path&&void 0===Me.redirectTo}function Va(Be){const Me=[],pe=new Set;for(const $e of Be){if(!Vr($e)){Me.push($e);continue}const ot=Me.find(kt=>$e.value.routeConfig===kt.value.routeConfig);void 0!==ot?(ot.children.push(...$e.children),pe.add(ot)):Me.push($e)}for(const $e of pe){const ot=Va($e.children);Me.push(new Mt($e.value,ot))}return Me.filter($e=>!pe.has($e))}function re(Be){let Me=Be;for(;Me._sourceSegment;)Me=Me._sourceSegment;return Me}function he(Be){let Me=Be,pe=Me._segmentIndexShift?Me._segmentIndexShift:0;for(;Me._sourceSegment;)Me=Me._sourceSegment,pe+=Me._segmentIndexShift?Me._segmentIndexShift:0;return pe-1}function Ye(Be){return Be.data||{}}function wt(Be){return Be.resolve||{}}function Pi(Be){return[...Object.keys(Be),...Object.getOwnPropertySymbols(Be)]}function un(Be){return(0,J.w)(Me=>{const pe=Be(Me);return pe?(0,P.D)(pe).pipe((0,ce.U)(()=>Me)):(0,h.of)(Me)})}class yn extends class Pn{shouldDetach(Me){return!1}store(Me,pe){}shouldAttach(Me){return!1}retrieve(Me){return null}shouldReuseRoute(Me,pe){return Me.routeConfig===pe.routeConfig}}{}const Tn=new t.OlP("ROUTES");class qn{constructor(Me,pe,$e,ot){this.injector=Me,this.compiler=pe,this.onLoadStartListener=$e,this.onLoadEndListener=ot}load(Me,pe){if(pe._loader$)return pe._loader$;this.onLoadStartListener&&this.onLoadStartListener(pe);const ot=this.loadModuleFactory(pe.loadChildren).pipe((0,ce.U)(kt=>{this.onLoadEndListener&&this.onLoadEndListener(pe);const Xt=kt.create(Me);return new lr(Dt(Xt.injector.get(Tn,void 0,t.XFs.Self|t.XFs.Optional)).map(Ia),Xt)}),(0,r.K)(kt=>{throw pe._loader$=void 0,kt}));return pe._loader$=new d(ot,()=>new Z.x).pipe(b()),pe._loader$}loadModuleFactory(Me){return ui(Me()).pipe((0,_.z)(pe=>pe instanceof t.YKP?(0,h.of)(pe):(0,P.D)(this.compiler.compileModuleAsync(pe))))}}class cr{shouldProcessUrl(Me){return!0}extract(Me){return Me}merge(Me,pe){return Me}}function Xr(Be){throw Be}function Yr(Be,Me,pe){return Me.parse("/")}function dr(Be,Me){return(0,h.of)(null)}const zr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Bn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ur=(()=>{class Be{constructor(pe,$e,ot,kt,Xt,oi,Ni){this.rootComponentType=pe,this.urlSerializer=$e,this.rootContexts=ot,this.location=kt,this.config=Ni,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Z.x,this.errorHandler=Xr,this.malformedUriErrorHandler=Yr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:dr,afterPreactivation:dr},this.urlHandlingStrategy=new cr,this.routeReuseStrategy=new yn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Xt.get(t.h0i),this.console=Xt.get(t.c2e);const Mn=Xt.get(t.R0b);this.isNgZoneEnabled=Mn instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(Ni),this.currentUrlTree=function xt(){return new xe(new ht([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qn(Xt,oi,rr=>this.triggerEvent(new Ge(rr)),rr=>this.triggerEvent(new ve(rr))),this.routerState=Ei(this.currentUrlTree,this.rootComponentType),this.transitions=new A.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 pe;return null===(pe=this.location.getState())||void 0===pe?void 0:pe.\u0275routerPageId}setupNavigations(pe){const $e=this.events;return pe.pipe((0,j.h)(ot=>0!==ot.id),(0,ce.U)(ot=>Object.assign(Object.assign({},ot),{extractedUrl:this.urlHandlingStrategy.extract(ot.rawUrl)})),(0,J.w)(ot=>{let kt=!1,Xt=!1;return(0,h.of)(ot).pipe((0,E.b)(oi=>{this.currentNavigation={id:oi.id,initialUrl:oi.currentRawUrl,extractedUrl:oi.extractedUrl,trigger:oi.source,extras:oi.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,J.w)(oi=>{const Ni=this.browserUrlTree.toString(),dn=!this.navigated||oi.extractedUrl.toString()!==Ni||Ni!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||dn)&&this.urlHandlingStrategy.shouldProcessUrl(oi.rawUrl))return nt(oi.source)&&(this.browserUrlTree=oi.extractedUrl),(0,h.of)(oi).pipe((0,J.w)(Mn=>{const rr=this.transitions.getValue();return $e.next(new B(Mn.id,this.serializeUrl(Mn.extractedUrl),Mn.source,Mn.restoredState)),rr!==this.transitions.getValue()?U.E:Promise.resolve(Mn)}),function Ln(Be,Me,pe,$e){return(0,J.w)(ot=>function mt(Be,Me,pe,$e,ot){return new Zt(Be,Me,pe,$e,ot).apply()}(Be,Me,pe,ot.extractedUrl,$e).pipe((0,ce.U)(kt=>Object.assign(Object.assign({},ot),{urlAfterRedirects:kt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,E.b)(Mn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Mn.urlAfterRedirects})}),function Ft(Be,Me,pe,$e,ot){return(0,_.z)(kt=>function Zs(Be,Me,pe,$e,ot="emptyOnly",kt="legacy"){try{const Xt=new $a(Be,Me,pe,$e,ot,kt).recognize();return null===Xt?bs(new xs):(0,h.of)(Xt)}catch(Xt){return bs(Xt)}}(Be,Me,kt.urlAfterRedirects,pe(kt.urlAfterRedirects),$e,ot).pipe((0,ce.U)(Xt=>Object.assign(Object.assign({},kt),{targetSnapshot:Xt}))))}(this.rootComponentType,this.config,Mn=>this.serializeUrl(Mn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,E.b)(Mn=>{if("eager"===this.urlUpdateStrategy){if(!Mn.extras.skipLocationChange){const Hn=this.urlHandlingStrategy.merge(Mn.urlAfterRedirects,Mn.rawUrl);this.setBrowserUrl(Hn,Mn)}this.browserUrlTree=Mn.urlAfterRedirects}const rr=new ge(Mn.id,this.serializeUrl(Mn.extractedUrl),this.serializeUrl(Mn.urlAfterRedirects),Mn.targetSnapshot);$e.next(rr)}));if(dn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:rr,extractedUrl:Hn,source:es,restoredState:ws,extras:Fo}=oi,n1=new B(rr,this.serializeUrl(Hn),es,ws);$e.next(n1);const ba=Ei(Hn,this.rootComponentType).snapshot;return(0,h.of)(Object.assign(Object.assign({},oi),{targetSnapshot:ba,urlAfterRedirects:Hn,extras:Object.assign(Object.assign({},Fo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=oi.rawUrl,oi.resolve(null),U.E}),un(oi=>{const{targetSnapshot:Ni,id:dn,extractedUrl:Rn,rawUrl:Mn,extras:{skipLocationChange:rr,replaceUrl:Hn}}=oi;return this.hooks.beforePreactivation(Ni,{navigationId:dn,appliedUrlTree:Rn,rawUrlTree:Mn,skipLocationChange:!!rr,replaceUrl:!!Hn})}),(0,E.b)(oi=>{const Ni=new be(oi.id,this.serializeUrl(oi.extractedUrl),this.serializeUrl(oi.urlAfterRedirects),oi.targetSnapshot);this.triggerEvent(Ni)}),(0,ce.U)(oi=>Object.assign(Object.assign({},oi),{guards:He(oi.targetSnapshot,oi.currentSnapshot,this.rootContexts)})),function os(Be,Me){return(0,_.z)(pe=>{const{targetSnapshot:$e,currentSnapshot:ot,guards:{canActivateChecks:kt,canDeactivateChecks:Xt}}=pe;return 0===Xt.length&&0===kt.length?(0,h.of)(Object.assign(Object.assign({},pe),{guardsResult:!0})):function zi(Be,Me,pe,$e){return(0,P.D)(Be).pipe((0,_.z)(ot=>function ha(Be,Me,pe,$e,ot){const kt=Me&&Me.routeConfig?Me.routeConfig.canDeactivate:null;if(!kt||0===kt.length)return(0,h.of)(!0);const Xt=kt.map(oi=>{const Ni=Si(oi,Me,ot);let dn;if(function Jr(Be){return Be&&fn(Be.canDeactivate)}(Ni))dn=ui(Ni.canDeactivate(Be,Me,pe,$e));else{if(!fn(Ni))throw new Error("Invalid CanDeactivate guard");dn=ui(Ni(Be,Me,pe,$e))}return dn.pipe((0,c.P)())});return(0,h.of)(Xt).pipe(Rr())}(ot.component,ot.route,pe,Me,$e)),(0,c.P)(ot=>!0!==ot,!0))}(Xt,$e,ot,Be).pipe((0,_.z)(oi=>oi&&function qr(Be){return"boolean"==typeof Be}(oi)?function zn(Be,Me,pe,$e){return(0,P.D)(Me).pipe((0,u.b)(ot=>(0,k.z)(function Cr(Be,Me){return null!==Be&&Me&&Me(new F(Be)),(0,h.of)(!0)}(ot.route.parent,$e),function Ja(Be,Me){return null!==Be&&Me&&Me(new lt(Be)),(0,h.of)(!0)}(ot.route,$e),function Xa(Be,Me,pe){const $e=Me[Me.length-1],kt=Me.slice(0,Me.length-1).reverse().map(Xt=>function bt(Be){const Me=Be.routeConfig?Be.routeConfig.canActivateChild:null;return Me&&0!==Me.length?{node:Be,guards:Me}:null}(Xt)).filter(Xt=>null!==Xt).map(Xt=>(0,S.P)(()=>{const oi=Xt.guards.map(Ni=>{const dn=Si(Ni,Xt.node,pe);let Rn;if(function Ea(Be){return Be&&fn(Be.canActivateChild)}(dn))Rn=ui(dn.canActivateChild($e,Be));else{if(!fn(dn))throw new Error("Invalid CanActivateChild guard");Rn=ui(dn($e,Be))}return Rn.pipe((0,c.P)())});return(0,h.of)(oi).pipe(Rr())}));return(0,h.of)(kt).pipe(Rr())}(Be,ot.path,pe),function Gs(Be,Me,pe){const $e=Me.routeConfig?Me.routeConfig.canActivate:null;if(!$e||0===$e.length)return(0,h.of)(!0);const ot=$e.map(kt=>(0,S.P)(()=>{const Xt=Si(kt,Me,pe);let oi;if(function Zr(Be){return Be&&fn(Be.canActivate)}(Xt))oi=ui(Xt.canActivate(Me,Be));else{if(!fn(Xt))throw new Error("Invalid CanActivate guard");oi=ui(Xt(Me,Be))}return oi.pipe((0,c.P)())}));return(0,h.of)(ot).pipe(Rr())}(Be,ot.route,pe))),(0,c.P)(ot=>!0!==ot,!0))}($e,kt,Be,Me):(0,h.of)(oi)),(0,ce.U)(oi=>Object.assign(Object.assign({},pe),{guardsResult:oi})))})}(this.ngModule.injector,oi=>this.triggerEvent(oi)),(0,E.b)(oi=>{if(Xn(oi.guardsResult)){const dn=$(`Redirecting to "${this.serializeUrl(oi.guardsResult)}"`);throw dn.url=oi.guardsResult,dn}const Ni=new Re(oi.id,this.serializeUrl(oi.extractedUrl),this.serializeUrl(oi.urlAfterRedirects),oi.targetSnapshot,!!oi.guardsResult);this.triggerEvent(Ni)}),(0,j.h)(oi=>!!oi.guardsResult||(this.restoreHistory(oi),this.cancelNavigationTransition(oi,""),!1)),un(oi=>{if(oi.guards.canActivateChecks.length)return(0,h.of)(oi).pipe((0,E.b)(Ni=>{const dn=new we(Ni.id,this.serializeUrl(Ni.extractedUrl),this.serializeUrl(Ni.urlAfterRedirects),Ni.targetSnapshot);this.triggerEvent(dn)}),(0,J.w)(Ni=>{let dn=!1;return(0,h.of)(Ni).pipe(function ii(Be,Me){return(0,_.z)(pe=>{const{targetSnapshot:$e,guards:{canActivateChecks:ot}}=pe;if(!ot.length)return(0,h.of)(pe);let kt=0;return(0,P.D)(ot).pipe((0,u.b)(Xt=>function ni(Be,Me,pe,$e){return function yi(Be,Me,pe,$e){const ot=Pi(Be);if(0===ot.length)return(0,h.of)({});const kt={};return(0,P.D)(ot).pipe((0,_.z)(Xt=>function nn(Be,Me,pe,$e){const ot=Si(Be,Me,$e);return ui(ot.resolve?ot.resolve(Me,pe):ot(Me,pe))}(Be[Xt],Me,pe,$e).pipe((0,E.b)(oi=>{kt[Xt]=oi}))),ne(1),(0,_.z)(()=>Pi(kt).length===ot.length?(0,h.of)(kt):U.E))}(Be._resolve,Be,Me,$e).pipe((0,ce.U)(kt=>(Be._resolvedData=kt,Be.data=Object.assign(Object.assign({},Be.data),Kt(Be,pe).resolve),null)))}(Xt.route,$e,Be,Me)),(0,E.b)(()=>kt++),ne(1),(0,_.z)(Xt=>kt===ot.length?(0,h.of)(pe):U.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,E.b)({next:()=>dn=!0,complete:()=>{dn||(this.restoreHistory(Ni),this.cancelNavigationTransition(Ni,"At least one route resolver didn't emit any value."))}}))}),(0,E.b)(Ni=>{const dn=new Q(Ni.id,this.serializeUrl(Ni.extractedUrl),this.serializeUrl(Ni.urlAfterRedirects),Ni.targetSnapshot);this.triggerEvent(dn)}))}),un(oi=>{const{targetSnapshot:Ni,id:dn,extractedUrl:Rn,rawUrl:Mn,extras:{skipLocationChange:rr,replaceUrl:Hn}}=oi;return this.hooks.afterPreactivation(Ni,{navigationId:dn,appliedUrlTree:Rn,rawUrlTree:Mn,skipLocationChange:!!rr,replaceUrl:!!Hn})}),(0,ce.U)(oi=>{const Ni=function Bi(Be,Me,pe){const $e=Fi(Be,Me._root,pe?pe._root:void 0);return new Mi($e,Me)}(this.routeReuseStrategy,oi.targetSnapshot,oi.currentRouterState);return Object.assign(Object.assign({},oi),{targetRouterState:Ni})}),(0,E.b)(oi=>{this.currentUrlTree=oi.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(oi.urlAfterRedirects,oi.rawUrl),this.routerState=oi.targetRouterState,"deferred"===this.urlUpdateStrategy&&(oi.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,oi),this.browserUrlTree=oi.urlAfterRedirects)}),((Be,Me,pe)=>(0,ce.U)($e=>(new Ur(Me,$e.targetRouterState,$e.currentRouterState,pe).activate(Be),$e)))(this.rootContexts,this.routeReuseStrategy,oi=>this.triggerEvent(oi)),(0,E.b)({next(){kt=!0},complete(){kt=!0}}),(0,I.x)(()=>{var oi;kt||Xt||this.cancelNavigationTransition(ot,`Navigation ID ${ot.id} is not equal to the current navigation id ${this.navigationId}`),(null===(oi=this.currentNavigation)||void 0===oi?void 0:oi.id)===ot.id&&(this.currentNavigation=null)}),(0,r.K)(oi=>{if(Xt=!0,function ue(Be){return Be&&Be[W]}(oi)){const Ni=Xn(oi.url);Ni||(this.navigated=!0,this.restoreHistory(ot,!0));const dn=new z(ot.id,this.serializeUrl(ot.extractedUrl),oi.message);$e.next(dn),Ni?setTimeout(()=>{const Rn=this.urlHandlingStrategy.merge(oi.url,this.rawUrlTree),Mn={skipLocationChange:ot.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||nt(ot.source)};this.scheduleNavigation(Rn,"imperative",null,Mn,{resolve:ot.resolve,reject:ot.reject,promise:ot.promise})},0):ot.resolve(!1)}else{this.restoreHistory(ot,!0);const Ni=new oe(ot.id,this.serializeUrl(ot.extractedUrl),oi);$e.next(Ni);try{ot.resolve(this.errorHandler(oi))}catch(dn){ot.reject(dn)}}return U.E}))}))}resetRootComponentType(pe){this.rootComponentType=pe,this.routerState.root.component=this.rootComponentType}setTransition(pe){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),pe))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(pe=>{const $e="popstate"===pe.type?"popstate":"hashchange";"popstate"===$e&&setTimeout(()=>{var ot;const kt={replaceUrl:!0},Xt=(null===(ot=pe.state)||void 0===ot?void 0:ot.navigationId)?pe.state:null;if(Xt){const Ni=Object.assign({},Xt);delete Ni.navigationId,delete Ni.\u0275routerPageId,0!==Object.keys(Ni).length&&(kt.state=Ni)}const oi=this.parseUrl(pe.url);this.scheduleNavigation(oi,$e,Xt,kt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(pe){this.events.next(pe)}resetConfig(pe){va(pe),this.config=pe.map(Ia),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(pe,$e={}){const{relativeTo:ot,queryParams:kt,fragment:Xt,queryParamsHandling:oi,preserveFragment:Ni}=$e,dn=ot||this.routerState.root,Rn=Ni?this.currentUrlTree.fragment:Xt;let Mn=null;switch(oi){case"merge":Mn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),kt);break;case"preserve":Mn=this.currentUrlTree.queryParams;break;default:Mn=kt||null}return null!==Mn&&(Mn=this.removeEmptyProps(Mn)),function Dn(Be,Me,pe,$e,ot){if(0===pe.length)return cn(Me.root,Me.root,Me.root,$e,ot);const kt=function Jn(Be){if("string"==typeof Be[0]&&1===Be.length&&"/"===Be[0])return new Br(!0,0,Be);let Me=0,pe=!1;const $e=Be.reduce((ot,kt,Xt)=>{if("object"==typeof kt&&null!=kt){if(kt.outlets){const oi={};return Gt(kt.outlets,(Ni,dn)=>{oi[dn]="string"==typeof Ni?Ni.split("/"):Ni}),[...ot,{outlets:oi}]}if(kt.segmentPath)return[...ot,kt.segmentPath]}return"string"!=typeof kt?[...ot,kt]:0===Xt?(kt.split("/").forEach((oi,Ni)=>{0==Ni&&"."===oi||(0==Ni&&""===oi?pe=!0:".."===oi?Me++:""!=oi&&ot.push(oi))}),ot):[...ot,kt]},[]);return new Br(pe,Me,$e)}(pe);if(kt.toRoot())return cn(Me.root,Me.root,new ht([],{}),$e,ot);const Xt=function Pr(Be,Me,pe){if(Be.isAbsolute)return new mr(Me.root,!0,0);if(-1===pe.snapshot._lastPathIndex){const kt=pe.snapshot._urlSegment;return new mr(kt,kt===Me.root,0)}const $e=Ai(Be.commands[0])?0:1;return function Nr(Be,Me,pe){let $e=Be,ot=Me,kt=pe;for(;kt>ot;){if(kt-=ot,$e=$e.parent,!$e)throw new Error("Invalid number of '../'");ot=$e.segments.length}return new mr($e,!1,ot-kt)}(pe.snapshot._urlSegment,pe.snapshot._lastPathIndex+$e,Be.numberOfDoubleDots)}(kt,Me,Be),oi=Xt.processChildren?Ca(Xt.segmentGroup,Xt.index,kt.commands):ga(Xt.segmentGroup,Xt.index,kt.commands);return cn(Me.root,Xt.segmentGroup,oi,$e,ot)}(dn,this.currentUrlTree,pe,Mn,null!=Rn?Rn:null)}navigateByUrl(pe,$e={skipLocationChange:!1}){const ot=Xn(pe)?pe:this.parseUrl(pe),kt=this.urlHandlingStrategy.merge(ot,this.rawUrlTree);return this.scheduleNavigation(kt,"imperative",null,$e)}navigate(pe,$e={skipLocationChange:!1}){return function za(Be){for(let Me=0;Me{const kt=pe[ot];return null!=kt&&($e[ot]=kt),$e},{})}processNavigations(){this.navigations.subscribe(pe=>{this.navigated=!0,this.lastSuccessfulId=pe.id,this.currentPageId=pe.targetPageId,this.events.next(new N(pe.id,this.serializeUrl(pe.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,pe.resolve(!0)},pe=>{this.console.warn(`Unhandled Navigation Error: ${pe}`)})}scheduleNavigation(pe,$e,ot,kt,Xt){var oi,Ni;if(this.disposed)return Promise.resolve(!1);let dn,Rn,Mn;Xt?(dn=Xt.resolve,Rn=Xt.reject,Mn=Xt.promise):Mn=new Promise((es,ws)=>{dn=es,Rn=ws});const rr=++this.navigationId;let Hn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ot=this.location.getState()),Hn=ot&&ot.\u0275routerPageId?ot.\u0275routerPageId:kt.replaceUrl||kt.skipLocationChange?null!==(oi=this.browserPageId)&&void 0!==oi?oi:0:(null!==(Ni=this.browserPageId)&&void 0!==Ni?Ni:0)+1):Hn=0,this.setTransition({id:rr,targetPageId:Hn,source:$e,restoredState:ot,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:pe,extras:kt,resolve:dn,reject:Rn,promise:Mn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Mn.catch(es=>Promise.reject(es))}setBrowserUrl(pe,$e){const ot=this.urlSerializer.serialize(pe),kt=Object.assign(Object.assign({},$e.extras.state),this.generateNgRouterState($e.id,$e.targetPageId));this.location.isCurrentPathEqualTo(ot)||$e.extras.replaceUrl?this.location.replaceState(ot,"",kt):this.location.go(ot,"",kt)}restoreHistory(pe,$e=!1){var ot,kt;if("computed"===this.canceledNavigationResolution){const Xt=this.currentPageId-pe.targetPageId;"popstate"!==pe.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(ot=this.currentNavigation)||void 0===ot?void 0:ot.finalUrl)||0===Xt?this.currentUrlTree===(null===(kt=this.currentNavigation)||void 0===kt?void 0:kt.finalUrl)&&0===Xt&&(this.resetState(pe),this.browserUrlTree=pe.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Xt)}else"replace"===this.canceledNavigationResolution&&($e&&this.resetState(pe),this.resetUrlToCurrentUrlTree())}resetState(pe){this.routerState=pe.currentRouterState,this.currentUrlTree=pe.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,pe.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(pe,$e){const ot=new z(pe.id,this.serializeUrl(pe.extractedUrl),$e);this.triggerEvent(ot),pe.resolve(!1)}generateNgRouterState(pe,$e){return"computed"===this.canceledNavigationResolution?{navigationId:pe,\u0275routerPageId:$e}:{navigationId:pe}}}return Be.\u0275fac=function(pe){t.$Z()},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})();function nt(Be){return"imperative"!==Be}let Et=(()=>{class Be{constructor(pe,$e,ot,kt,Xt){this.router=pe,this.route=$e,this.tabIndexAttribute=ot,this.renderer=kt,this.el=Xt,this.commands=null,this.onChanges=new Z.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(pe){if(null!=this.tabIndexAttribute)return;const $e=this.renderer,ot=this.el.nativeElement;null!==pe?$e.setAttribute(ot,"tabindex",pe):$e.removeAttribute(ot,"tabindex")}ngOnChanges(pe){this.onChanges.next(this)}set routerLink(pe){null!=pe?(this.commands=Array.isArray(pe)?pe:[pe],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const pe={skipLocationChange:Rt(this.skipLocationChange),replaceUrl:Rt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,pe),!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:Rt(this.preserveFragment)})}}return Be.\u0275fac=function(pe){return new(pe||Be)(t.Y36(ur),t.Y36(ji),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(pe,$e){1&pe&&t.NdJ("click",function(){return $e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),Be})(),At=(()=>{class Be{constructor(pe,$e,ot){this.router=pe,this.route=$e,this.locationStrategy=ot,this.commands=null,this.href=null,this.onChanges=new Z.x,this.subscription=pe.events.subscribe(kt=>{kt instanceof N&&this.updateTargetUrlAndHref()})}set routerLink(pe){this.commands=null!=pe?Array.isArray(pe)?pe:[pe]:null}ngOnChanges(pe){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(pe,$e,ot,kt,Xt){if(0!==pe||$e||ot||kt||Xt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const oi={skipLocationChange:Rt(this.skipLocationChange),replaceUrl:Rt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,oi),!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:Rt(this.preserveFragment)})}}return Be.\u0275fac=function(pe){return new(pe||Be)(t.Y36(ur),t.Y36(ji),t.Y36(n.S$))},Be.\u0275dir=t.lG2({type:Be,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(pe,$e){1&pe&&t.NdJ("click",function(kt){return $e.onClick(kt.button,kt.ctrlKey,kt.shiftKey,kt.altKey,kt.metaKey)}),2&pe&&t.uIk("target",$e.target)("href",$e.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),Be})();function Rt(Be){return""===Be||!!Be}let qt=(()=>{class Be{constructor(pe,$e,ot,kt,Xt,oi){this.router=pe,this.element=$e,this.renderer=ot,this.cdr=kt,this.link=Xt,this.linkWithHref=oi,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=pe.events.subscribe(Ni=>{Ni instanceof N&&this.update()})}ngAfterContentInit(){(0,h.of)(this.links.changes,this.linksWithHrefs.changes,(0,h.of)(null)).pipe((0,v.J)()).subscribe(pe=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var pe;null===(pe=this.linkInputChangesSubscription)||void 0===pe||pe.unsubscribe();const $e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(ot=>!!ot).map(ot=>ot.onChanges);this.linkInputChangesSubscription=(0,P.D)($e).pipe((0,v.J)()).subscribe(ot=>{this.isActive!==this.isLinkActive(this.router)(ot)&&this.update()})}set routerLinkActive(pe){const $e=Array.isArray(pe)?pe:pe.split(" ");this.classes=$e.filter(ot=>!!ot)}ngOnChanges(pe){this.update()}ngOnDestroy(){var pe;this.routerEventsSubscription.unsubscribe(),null===(pe=this.linkInputChangesSubscription)||void 0===pe||pe.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const pe=this.hasActiveLinks();this.isActive!==pe&&(this.isActive=pe,this.cdr.markForCheck(),this.classes.forEach($e=>{pe?this.renderer.addClass(this.element.nativeElement,$e):this.renderer.removeClass(this.element.nativeElement,$e)}),this.isActiveChange.emit(pe))})}isLinkActive(pe){const $e=function _i(Be){return!!Be.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ot=>!!ot.urlTree&&pe.isActive(ot.urlTree,$e)}hasActiveLinks(){const pe=this.isLinkActive(this.router);return this.link&&pe(this.link)||this.linkWithHref&&pe(this.linkWithHref)||this.links.some(pe)||this.linksWithHrefs.some(pe)}}return Be.\u0275fac=function(pe){return new(pe||Be)(t.Y36(ur),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Et,8),t.Y36(At,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","routerLinkActive",""]],contentQueries:function(pe,$e,ot){if(1&pe&&(t.Suo(ot,Et,5),t.Suo(ot,At,5)),2&pe){let kt;t.iGM(kt=t.CRH())&&($e.links=kt),t.iGM(kt=t.CRH())&&($e.linksWithHrefs=kt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[t.TTD]}),Be})();class ei{}class Li{preload(Me,pe){return(0,h.of)(null)}}let qi=(()=>{class Be{constructor(pe,$e,ot,kt){this.router=pe,this.injector=ot,this.preloadingStrategy=kt,this.loader=new qn(ot,$e,Ni=>pe.triggerEvent(new Ge(Ni)),Ni=>pe.triggerEvent(new ve(Ni)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.h)(pe=>pe instanceof N),(0,u.b)(()=>this.preload())).subscribe(()=>{})}preload(){const pe=this.injector.get(t.h0i);return this.processRoutes(pe,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(pe,$e){const ot=[];for(const kt of $e)if(kt.loadChildren&&!kt.canLoad&&kt._loadedConfig){const Xt=kt._loadedConfig;ot.push(this.processRoutes(Xt.module,Xt.routes))}else kt.loadChildren&&!kt.canLoad?ot.push(this.preloadConfig(pe,kt)):kt.children&&ot.push(this.processRoutes(pe,kt.children));return(0,P.D)(ot).pipe((0,v.J)(),(0,ce.U)(kt=>{}))}preloadConfig(pe,$e){return this.preloadingStrategy.preload($e,()=>($e._loadedConfig?(0,h.of)($e._loadedConfig):this.loader.load(pe.injector,$e)).pipe((0,_.z)(kt=>($e._loadedConfig=kt,this.processRoutes(kt.module,kt.routes)))))}}return Be.\u0275fac=function(pe){return new(pe||Be)(t.LFG(ur),t.LFG(t.Sil),t.LFG(t.zs3),t.LFG(ei))},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),$i=(()=>{class Be{constructor(pe,$e,ot={}){this.router=pe,this.viewportScroller=$e,this.options=ot,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ot.scrollPositionRestoration=ot.scrollPositionRestoration||"disabled",ot.anchorScrolling=ot.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(pe=>{pe instanceof B?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=pe.navigationTrigger,this.restoredId=pe.restoredState?pe.restoredState.navigationId:0):pe instanceof N&&(this.lastId=pe.id,this.scheduleScrollEvent(pe,this.router.parseUrl(pe.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(pe=>{pe instanceof Ae&&(pe.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(pe.position):pe.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(pe.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(pe,$e){this.router.triggerEvent(new Ae(pe,"popstate"===this.lastSource?this.store[this.restoredId]:null,$e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Be.\u0275fac=function(pe){t.$Z()},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})();const bn=new t.OlP("ROUTER_CONFIGURATION"),Qn=new t.OlP("ROUTER_FORROOT_GUARD"),kn=[n.Ye,{provide:tt,useClass:Je},{provide:ur,useFactory:function jr(Be,Me,pe,$e,ot,kt,Xt={},oi,Ni){const dn=new ur(null,Be,Me,pe,$e,ot,Dt(kt));return oi&&(dn.urlHandlingStrategy=oi),Ni&&(dn.routeReuseStrategy=Ni),function Ya(Be,Me){Be.errorHandler&&(Me.errorHandler=Be.errorHandler),Be.malformedUriErrorHandler&&(Me.malformedUriErrorHandler=Be.malformedUriErrorHandler),Be.onSameUrlNavigation&&(Me.onSameUrlNavigation=Be.onSameUrlNavigation),Be.paramsInheritanceStrategy&&(Me.paramsInheritanceStrategy=Be.paramsInheritanceStrategy),Be.relativeLinkResolution&&(Me.relativeLinkResolution=Be.relativeLinkResolution),Be.urlUpdateStrategy&&(Me.urlUpdateStrategy=Be.urlUpdateStrategy),Be.canceledNavigationResolution&&(Me.canceledNavigationResolution=Be.canceledNavigationResolution)}(Xt,dn),Xt.enableTracing&&dn.events.subscribe(Rn=>{var Mn,rr;null===(Mn=console.group)||void 0===Mn||Mn.call(console,`Router Event: ${Rn.constructor.name}`),console.log(Rn.toString()),console.log(Rn),null===(rr=console.groupEnd)||void 0===rr||rr.call(console)}),dn},deps:[tt,gr,n.Ye,t.zs3,t.Sil,Tn,bn,[class xr{},new t.FiY],[class Sn{},new t.FiY]]},gr,{provide:ji,useFactory:function ls(Be){return Be.routerState.root},deps:[ur]},qi,Li,class pi{preload(Me,pe){return pe().pipe((0,r.K)(()=>(0,h.of)(null)))}},{provide:bn,useValue:{enableTracing:!1}}];function aa(){return new t.PXZ("Router",ur)}let Aa=(()=>{class Be{constructor(pe,$e){}static forRoot(pe,$e){return{ngModule:Be,providers:[kn,kr(pe),{provide:Qn,useFactory:hr,deps:[[ur,new t.FiY,new t.tp0]]},{provide:bn,useValue:$e||{}},{provide:n.S$,useFactory:br,deps:[n.lw,[new t.tBr(n.mr),new t.FiY],bn]},{provide:$i,useFactory:tr,deps:[ur,n.EM,bn]},{provide:ei,useExisting:$e&&$e.preloadingStrategy?$e.preloadingStrategy:Li},{provide:t.PXZ,multi:!0,useFactory:aa},[cs,{provide:t.ip1,multi:!0,useFactory:Cs,deps:[cs]},{provide:Mo,useFactory:Ws,deps:[cs]},{provide:t.tb,multi:!0,useExisting:Mo}]]}}static forChild(pe){return{ngModule:Be,providers:[kr(pe)]}}}return Be.\u0275fac=function(pe){return new(pe||Be)(t.LFG(Qn,8),t.LFG(ur,8))},Be.\u0275mod=t.oAB({type:Be}),Be.\u0275inj=t.cJS({}),Be})();function tr(Be,Me,pe){return pe.scrollOffset&&Me.setOffset(pe.scrollOffset),new $i(Be,Me,pe)}function br(Be,Me,pe={}){return pe.useHash?new n.Do(Be,Me):new n.b0(Be,Me)}function hr(Be){return"guarded"}function kr(Be){return[{provide:t.deG,multi:!0,useValue:Be},{provide:Tn,multi:!0,useValue:Be}]}let cs=(()=>{class Be{constructor(pe){this.injector=pe,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Z.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let $e=null;const ot=new Promise(oi=>$e=oi),kt=this.injector.get(ur),Xt=this.injector.get(bn);return"disabled"===Xt.initialNavigation?(kt.setUpLocationChangeListener(),$e(!0)):"enabled"===Xt.initialNavigation||"enabledBlocking"===Xt.initialNavigation?(kt.hooks.afterPreactivation=()=>this.initNavigation?(0,h.of)(null):(this.initNavigation=!0,$e(!0),this.resultOfPreactivationDone),kt.initialNavigation()):$e(!0),ot})}bootstrapListener(pe){const $e=this.injector.get(bn),ot=this.injector.get(qi),kt=this.injector.get($i),Xt=this.injector.get(ur),oi=this.injector.get(t.z2F);pe===oi.components[0]&&(("enabledNonBlocking"===$e.initialNavigation||void 0===$e.initialNavigation)&&Xt.initialNavigation(),ot.setUpPreloading(),kt.init(),Xt.resetRootComponentType(oi.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Be.\u0275fac=function(pe){return new(pe||Be)(t.LFG(t.zs3))},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})();function Cs(Be){return Be.appInitializer.bind(Be)}function Ws(Be){return Be.bootstrapListener.bind(Be)}const Mo=new t.OlP("Router Initializer")},9444:(Fe,Y,p)=>{"use strict";p.d(Y,{BN:()=>Xr,uH:()=>za});var t=p(5e3);function e(nt,Et){var At=Object.keys(nt);if(Object.getOwnPropertySymbols){var Rt=Object.getOwnPropertySymbols(nt);Et&&(Rt=Rt.filter(function(qt){return Object.getOwnPropertyDescriptor(nt,qt).enumerable})),At.push.apply(At,Rt)}return At}function f(nt){for(var Et=1;Etnt.length)&&(Et=nt.length);for(var At=0,Rt=new Array(Et);At0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function Oe(nt){for(var Et=[],At=(nt||[]).length>>>0;At--;)Et[At]=nt[At];return Et}function le(nt){return nt.classList?Oe(nt.classList):(nt.getAttribute("class")||"").split(" ").filter(function(Et){return Et})}function xe(nt){return"".concat(nt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ft(nt){return Object.keys(nt||{}).reduce(function(Et,At){return Et+"".concat(At,": ").concat(nt[At].trim(),";")},"")}function Ht(nt){return nt.size!==vt.size||nt.x!==vt.x||nt.y!==vt.y||nt.rotate!==vt.rotate||nt.flipX||nt.flipY}function Je(){var Et=z,At=xt.familyPrefix,Rt=xt.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"!==At||Rt!==Et){var _i=new RegExp("\\.".concat("fa","\\-"),"g"),ei=new RegExp("\\--".concat("fa","\\-"),"g"),pi=new RegExp("\\.".concat(Et),"g");qt=qt.replace(_i,".".concat(At,"-")).replace(ei,"--".concat(At,"-")).replace(pi,".".concat(Rt))}return qt}var Se=!1;function Ue(){xt.autoAddCss&&!Se&&(function $t(nt){if(nt&&v){var Et=c.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=nt;for(var At=c.head.childNodes,Rt=null,qt=At.length-1;qt>-1;qt--){var _i=At[qt],ei=(_i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ei)>-1&&(Rt=_i)}c.head.insertBefore(Et,Rt)}}(Je()),Se=!0)}var rt={mixout:function(){return{dom:{css:Je,insertCss:Ue}}},hooks:function(){return{beforeDOMElementCreation:function(){Ue()},beforeI2svg:function(){Ue()}}}},at=u||{};at[C]||(at[C]={}),at[C].styles||(at[C].styles={}),at[C].hooks||(at[C].hooks={}),at[C].shims||(at[C].shims=[]);var yt=at[C],gi=[],Jt=!1;function Xi(nt){!v||(Jt?setTimeout(nt,0):gi.push(nt))}function fi(nt){var Et=nt.tag,At=nt.attributes,Rt=void 0===At?{}:At,qt=nt.children,_i=void 0===qt?[]:qt;return"string"==typeof nt?xe(nt):"<".concat(Et," ").concat(function ht(nt){return Object.keys(nt||{}).reduce(function(Et,At){return Et+"".concat(At,'="').concat(xe(nt[At]),'" ')},"").trim()}(Rt),">").concat(_i.map(fi).join(""),"")}function ai(nt,Et,At){if(nt&&nt[Et]&&nt[Et][At])return{prefix:Et,iconName:At,icon:nt[Et][At]}}v&&((Jt=(c.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState))||c.addEventListener("DOMContentLoaded",function nt(){c.removeEventListener("DOMContentLoaded",nt),Jt=1,gi.map(function(Et){return Et()})}));var Wi=function(Et,At,Rt,qt){var Li,qi,$i,_i=Object.keys(Et),ei=_i.length,pi=void 0!==qt?function(Et,At){return function(Rt,qt,_i,ei){return Et.call(At,Rt,qt,_i,ei)}}(At,qt):At;for(void 0===Rt?(Li=1,$i=Et[_i[0]]):(Li=0,$i=Rt);Li=55296&&qt<=56319&&At2&&void 0!==arguments[2]?arguments[2]:{},Rt=At.skipHooks,qt=void 0!==Rt&&Rt,_i=Lt(Et);"function"!=typeof yt.hooks.addPack||qt?yt.styles[nt]=f(f({},yt.styles[nt]||{}),_i):yt.hooks.addPack(nt,Lt(Et)),"fas"===nt&&fe("fa",Et)}var Ct=yt.styles,ie=yt.shims,qe=Object.values(Ie),Mt=null,Vt={},Mi={},Ei={},en={},ji={},Kt=Object.keys(De);function zt(nt,Et){var At=Et.split("-"),Rt=At[0],qt=At.slice(1).join("-");return Rt!==nt||""===qt||function Oi(nt){return~ct.indexOf(nt)}(qt)?null:qt}var si=function(){var Et=function(_i){return Wi(Ct,function(ei,pi,Li){return ei[Li]=Wi(pi,_i,{}),ei},{})};Vt=Et(function(qt,_i,ei){return _i[3]&&(qt[_i[3]]=ei),_i[2]&&_i[2].filter(function(Li){return"number"==typeof Li}).forEach(function(Li){qt[Li.toString(16)]=ei}),qt}),Mi=Et(function(qt,_i,ei){return qt[ei]=ei,_i[2]&&_i[2].filter(function(Li){return"string"==typeof Li}).forEach(function(Li){qt[Li]=ei}),qt}),ji=Et(function(qt,_i,ei){var pi=_i[2];return qt[ei]=ei,pi.forEach(function(Li){qt[Li]=ei}),qt});var At="far"in Ct||xt.autoFetchSvg,Rt=Wi(ie,function(qt,_i){var ei=_i[0],pi=_i[1],Li=_i[2];return"far"===pi&&!At&&(pi="fas"),"string"==typeof ei&&(qt.names[ei]={prefix:pi,iconName:Li}),"number"==typeof ei&&(qt.unicodes[ei.toString(16)]={prefix:pi,iconName:Li}),qt},{names:{},unicodes:{}});Ei=Rt.names,en=Rt.unicodes,Mt=Fn(xt.styleDefault)};function Pt(nt,Et){return(Vt[nt]||{})[Et]}function ti(nt,Et){return(ji[nt]||{})[Et]}function vi(nt){return Ei[nt]||{prefix:null,iconName:null}}function Fi(){return Mt}function Fn(nt){return lt[nt]||lt[De[nt]]||(nt in yt.styles?nt:null)||null}function Dn(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},At=Et.skipLookups,Rt=void 0!==At&&At,qt=null,_i=nt.reduce(function(ei,pi){var Li=zt(xt.familyPrefix,pi);if(Ct[pi]?(pi=qe.includes(pi)?Ae[pi]:pi,qt=pi,ei.prefix=pi):Kt.indexOf(pi)>-1?(qt=pi,ei.prefix=Fn(pi)):Li?ei.iconName=Li:pi!==xt.replacementClass&&ei.rest.push(pi),!Rt&&ei.prefix&&ei.iconName){var qi="fa"===qt?vi(ei.iconName):{},$i=ti(ei.prefix,ei.iconName);qi.prefix&&(qt=null),ei.iconName=qi.iconName||$i||ei.iconName,ei.prefix=qi.prefix||ei.prefix,"far"===ei.prefix&&!Ct.far&&Ct.fas&&!xt.autoFetchSvg&&(ei.prefix="fas")}return ei},{prefix:null,iconName:null,rest:[]});return("fa"===_i.prefix||"fa"===qt)&&(_i.prefix=Fi()||"fas"),_i}(function gt(nt){Nt.push(nt)})(function(nt){Mt=Fn(nt.styleDefault)}),si();var Ai=function(){function nt(){(function b(nt,Et){if(!(nt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,nt),this.definitions={}}return function P(nt,Et,At){Et&&d(nt.prototype,Et),At&&d(nt,At),Object.defineProperty(nt,"prototype",{writable:!1})}(nt,[{key:"add",value:function(){for(var At=this,Rt=arguments.length,qt=new Array(Rt),_i=0;_i0&&$i.forEach(function(on){"string"==typeof on&&(At[pi][on]=qi)}),At[pi][Li]=qi}),At}}]),nt}(),Ri=[],cn={},pr={},Br=Object.keys(pr);function mr(nt,Et){for(var At=arguments.length,Rt=new Array(At>2?At-2:0),qt=2;qt1?Et-1:0),Rt=1;Rt0&&void 0!==arguments[0]?arguments[0]:{};return v?(Pr("beforeI2svg",Et),Nr("pseudoElements2svg",Et),Nr("i2svg",Et)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},At=Et.autoReplaceSvgRoot;!1===xt.autoReplaceSvg&&(xt.autoReplaceSvg=!0),xt.observeMutations=!0,Xi(function(){Qr({autoReplaceSvgRoot:At}),Pr("watch",Et)})}},nr={noAuto:function(){xt.autoReplaceSvg=!1,xt.observeMutations=!1,Pr("noAuto")},config:xt,dom:Na,parse:{icon:function(Et){if(null===Et)return null;if("object"===M(Et)&&Et.prefix&&Et.iconName)return{prefix:Et.prefix,iconName:ti(Et.prefix,Et.iconName)||Et.iconName};if(Array.isArray(Et)&&2===Et.length){var At=0===Et[1].indexOf("fa-")?Et[1].slice(3):Et[1],Rt=Fn(Et[0]);return{prefix:Rt,iconName:ti(Rt,At)||At}}if("string"==typeof Et&&(Et.indexOf("".concat(xt.familyPrefix,"-"))>-1||Et.match(se))){var qt=Dn(Et.split(" "),{skipLookups:!0});return{prefix:qt.prefix||Fi(),iconName:ti(qt.prefix,qt.iconName)||qt.iconName}}if("string"==typeof Et){var _i=Fi();return{prefix:_i,iconName:ti(_i,Et)||Et}}}},library:ga,findIconDefinition:ca,toHtml:fi},Qr=function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},At=Et.autoReplaceSvgRoot,Rt=void 0===At?c:At;(Object.keys(yt.styles).length>0||xt.autoFetchSvg)&&v&&xt.autoReplaceSvg&&nr.dom.i2svg({node:Rt})};function da(nt,Et){return Object.defineProperty(nt,"abstract",{get:Et}),Object.defineProperty(nt,"html",{get:function(){return nt.abstract.map(function(Rt){return fi(Rt)})}}),Object.defineProperty(nt,"node",{get:function(){if(v){var Rt=c.createElement("div");return Rt.innerHTML=nt.html,Rt.children}}}),nt}function Gr(nt){var Et=nt.icons,At=Et.main,Rt=Et.mask,qt=nt.prefix,_i=nt.iconName,ei=nt.transform,pi=nt.symbol,Li=nt.title,qi=nt.maskId,$i=nt.titleId,on=nt.extra,bn=nt.watchable,Qn=void 0!==bn&&bn,kn=Rt.found?Rt:At,aa=kn.width,Aa=kn.height,tr="fak"===qt,br=[xt.replacementClass,_i?"".concat(xt.familyPrefix,"-").concat(_i):""].filter(function(Cs){return-1===on.classes.indexOf(Cs)}).filter(function(Cs){return""!==Cs||!!Cs}).concat(on.classes).join(" "),hr={children:[],attributes:f(f({},on.attributes),{},{"data-prefix":qt,"data-icon":_i,class:br,role:on.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(aa," ").concat(Aa)})},kr=tr&&!~on.classes.indexOf("fa-fw")?{width:"".concat(aa/Aa*16*.0625,"em")}:{};Qn&&(hr.attributes[oe]=""),Li&&(hr.children.push({tag:"title",attributes:{id:hr.attributes["aria-labelledby"]||"title-".concat($i||Pe())},children:[Li]}),delete hr.attributes.title);var jr=f(f({},hr),{},{prefix:qt,iconName:_i,main:At,mask:Rt,maskId:qi,transform:ei,symbol:pi,styles:f(f({},kr),on.styles)}),Ya=Rt.found&&At.found?Nr("generateAbstractMask",jr)||{children:[],attributes:{}}:Nr("generateAbstractIcon",jr)||{children:[],attributes:{}},cs=Ya.attributes;return jr.children=Ya.children,jr.attributes=cs,pi?function Ur(nt){var At=nt.iconName,Rt=nt.children,qt=nt.attributes,_i=nt.symbol,ei=!0===_i?"".concat(nt.prefix,"-").concat(xt.familyPrefix,"-").concat(At):_i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:f(f({},qt),{},{id:ei}),children:Rt}]}]}(jr):function Ha(nt){var Et=nt.children,At=nt.main,Rt=nt.mask,qt=nt.attributes,_i=nt.styles,ei=nt.transform;if(Ht(ei)&&At.found&&!Rt.found){var qi={x:At.width/At.height/2,y:.5};qt.style=ft(f(f({},_i),{},{"transform-origin":"".concat(qi.x+ei.x/16,"em ").concat(qi.y+ei.y/16,"em")}))}return[{tag:"svg",attributes:qt,children:Et}]}(jr)}function lr(nt){var Et=nt.content,At=nt.width,Rt=nt.height,qt=nt.transform,_i=nt.title,ei=nt.extra,pi=nt.watchable,Li=void 0!==pi&&pi,qi=f(f(f({},ei.attributes),_i?{title:_i}:{}),{},{class:ei.classes.join(" ")});Li&&(qi[oe]="");var $i=f({},ei.styles);Ht(qt)&&($i.transform=function Ne(nt){var Et=nt.transform,At=nt.width,qt=nt.height,_i=void 0===qt?16:qt,ei=nt.startCentered,pi=void 0!==ei&&ei,Li="";return Li+=pi&&n?"translate(".concat(Et.x/16-(void 0===At?16:At)/2,"em, ").concat(Et.y/16-_i/2,"em) "):pi?"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) "),(Li+="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:At,height:Rt}),$i["-webkit-transform"]=$i.transform);var on=ft($i);on.length>0&&(qi.style=on);var bn=[];return bn.push({tag:"span",attributes:qi,children:[Et]}),_i&&bn.push({tag:"span",attributes:{class:"sr-only"},children:[_i]}),bn}function fn(nt){var Et=nt.content,At=nt.title,Rt=nt.extra,qt=f(f(f({},Rt.attributes),At?{title:At}:{}),{},{class:Rt.classes.join(" ")}),_i=ft(Rt.styles);_i.length>0&&(qt.style=_i);var ei=[];return ei.push({tag:"span",attributes:qt,children:[Et]}),At&&ei.push({tag:"span",attributes:{class:"sr-only"},children:[At]}),ei}var qr=yt.styles;function Xn(nt){var Et=nt[0],At=nt[1],_i=D(nt.slice(4),1)[0];return{found:!0,width:Et,height:At,icon:Array.isArray(_i)?{tag:"g",attributes:{class:"".concat(xt.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(xt.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:_i[0]}},{tag:"path",attributes:{class:"".concat(xt.familyPrefix,"-").concat("primary"),fill:"currentColor",d:_i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:_i}}}}var Za={found:!1,width:512,height:512};function Ea(nt,Et){var At=Et;return"fa"===Et&&null!==xt.styleDefault&&(Et=Fi()),new Promise(function(Rt,qt){if(Nr("missingIconAbstract"),"fa"===At){var ei=vi(nt)||{};nt=ei.iconName||nt,Et=ei.prefix||Et}if(nt&&Et&&qr[Et]&&qr[Et][nt])return Rt(Xn(qr[Et][nt]));(function Zr(nt,Et){!F&&!xt.showMissingIcons&&nt&&console.error('Icon with name "'.concat(nt,'" and prefix "').concat(Et,'" is missing.'))})(nt,Et),Rt(f(f({},Za),{},{icon:xt.showMissingIcons&&nt&&Nr("missingIconAbstract")||{}}))})}var Jr=function(){},Dr=xt.measurePerformance&&E&&E.mark&&E.measure?E:{mark:Jr,measure:Jr},Rr='FA "6.1.2"',Ir_begin=function(Et){return Dr.mark("".concat(Rr," ").concat(Et," begins")),function(){return function(Et){Dr.mark("".concat(Rr," ").concat(Et," ends")),Dr.measure("".concat(Rr," ").concat(Et),"".concat(Rr," ").concat(Et," begins"),"".concat(Rr," ").concat(Et," ends"))}(Et)}},ua=function(){};function _a(nt){return"string"==typeof(nt.getAttribute?nt.getAttribute(oe):null)}function Ia(nt){return c.createElementNS("http://www.w3.org/2000/svg",nt)}function Kn(nt){return c.createElement(nt)}function ra(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},At=Et.ceFn,Rt=void 0===At?"svg"===nt.tag?Ia:Kn:At;if("string"==typeof nt)return c.createTextNode(nt);var qt=Rt(nt.tag);Object.keys(nt.attributes||[]).forEach(function(ei){qt.setAttribute(ei,nt.attributes[ei])});var _i=nt.children||[];return _i.forEach(function(ei){qt.appendChild(ra(ei,{ceFn:Rt}))}),qt}var Sr={replace:function(Et){var At=Et[0];if(At.parentNode)if(Et[1].forEach(function(qt){At.parentNode.insertBefore(ra(qt),At)}),null===At.getAttribute(oe)&&xt.keepOriginalSource){var Rt=c.createComment(function Hr(nt){var Et=" ".concat(nt.outerHTML," ");return"".concat(Et,"Font Awesome fontawesome.com ")}(At));At.parentNode.replaceChild(Rt,At)}else At.remove()},nest:function(Et){var At=Et[0],Rt=Et[1];if(~le(At).indexOf(xt.replacementClass))return Sr.replace(Et);var qt=new RegExp("".concat(xt.familyPrefix,"-.*"));if(delete Rt[0].attributes.id,Rt[0].attributes.class){var _i=Rt[0].attributes.class.split(" ").reduce(function(pi,Li){return Li===xt.replacementClass||Li.match(qt)?pi.toSvg.push(Li):pi.toNode.push(Li),pi},{toNode:[],toSvg:[]});Rt[0].attributes.class=_i.toSvg.join(" "),0===_i.toNode.length?At.removeAttribute("class"):At.setAttribute("class",_i.toNode.join(" "))}var ei=Rt.map(function(pi){return fi(pi)}).join("\n");At.setAttribute(oe,""),At.innerHTML=ei}};function Fr(nt){nt()}function ya(nt,Et){var At="function"==typeof Et?Et:ua;if(0===nt.length)At();else{var Rt=Fr;"async"===xt.mutateApproach&&(Rt=u.requestAnimationFrame||Fr),Rt(function(){var qt=function Ta(){return!0===xt.autoReplaceSvg?Sr.replace:Sr[xt.autoReplaceSvg]||Sr.replace}(),_i=Ir_begin("mutate");nt.map(qt),_i(),At()})}}var Fa=!1;function Wn(){Fa=!0}function Xe(){Fa=!1}var St=null;function Ke(nt){if(_&&xt.observeMutations){var Et=nt.treeCallback,At=void 0===Et?ua:Et,Rt=nt.nodeCallback,qt=void 0===Rt?ua:Rt,_i=nt.pseudoElementsCallback,ei=void 0===_i?ua:_i,pi=nt.observeMutationsRoot,Li=void 0===pi?c:pi;St=new _(function(qi){if(!Fa){var $i=Fi();Oe(qi).forEach(function(on){if("childList"===on.type&&on.addedNodes.length>0&&!_a(on.addedNodes[0])&&(xt.searchPseudoElements&&ei(on.target),At(on.target)),"attributes"===on.type&&on.target.parentNode&&xt.searchPseudoElements&&ei(on.target.parentNode),"attributes"===on.type&&_a(on.target)&&~Ce.indexOf(on.attributeName))if("class"===on.attributeName&&function va(nt){var Et=nt.getAttribute?nt.getAttribute(Re):null,At=nt.getAttribute?nt.getAttribute(we):null;return Et&&At}(on.target)){var bn=Dn(le(on.target)),kn=bn.iconName;on.target.setAttribute(Re,bn.prefix||$i),kn&&on.target.setAttribute(we,kn)}else(function $n(nt){return nt&&nt.classList&&nt.classList.contains&&nt.classList.contains(xt.replacementClass)})(on.target)&&qt(on.target)})}}),v&&St.observe(Li,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ri(nt){var Et=nt.getAttribute("style"),At=[];return Et&&(At=Et.split(";").reduce(function(Rt,qt){var _i=qt.split(":"),ei=_i[0],pi=_i.slice(1);return ei&&pi.length>0&&(Rt[ei]=pi.join(":").trim()),Rt},{})),At}function Ti(nt){var Et=nt.getAttribute("data-prefix"),At=nt.getAttribute("data-icon"),Rt=void 0!==nt.innerText?nt.innerText.trim():"",qt=Dn(le(nt));return qt.prefix||(qt.prefix=Fi()),Et&&At&&(qt.prefix=Et,qt.iconName=At),qt.iconName&&qt.prefix||(qt.prefix&&Rt.length>0&&(qt.iconName=function mi(nt,Et){return(Mi[nt]||{})[Et]}(qt.prefix,nt.innerText)||Pt(qt.prefix,Yi(nt.innerText))),!qt.iconName&&xt.autoFetchSvg&&nt.firstChild&&nt.firstChild.nodeType===Node.TEXT_NODE&&(qt.iconName=nt.firstChild.data)),qt}function ki(nt){var Et=Oe(nt.attributes).reduce(function(qt,_i){return"class"!==qt.name&&"style"!==qt.name&&(qt[_i.name]=_i.value),qt},{}),At=nt.getAttribute("title"),Rt=nt.getAttribute("data-fa-title-id");return xt.autoA11y&&(At?Et["aria-labelledby"]="".concat(xt.replacementClass,"-title-").concat(Rt||Pe()):(Et["aria-hidden"]="true",Et.focusable="false")),Et}function It(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},At=Ti(nt),Rt=At.iconName,qt=At.prefix,_i=At.rest,ei=ki(nt),pi=mr("parseNodeAttributes",{},nt),Li=Et.styleParser?ri(nt):[];return f({iconName:Rt,title:nt.getAttribute("title"),titleId:nt.getAttribute("data-fa-title-id"),prefix:qt,transform:vt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:_i,styles:Li,attributes:ei}},pi)}var hi=yt.styles;function mt(nt){var Et="nest"===xt.autoReplaceSvg?It(nt,{styleParser:!1}):It(nt);return~Et.extra.classes.indexOf(Te)?Nr("generateLayersText",nt,Et):Nr("generateSvgReplacementMutation",nt,Et)}function Zt(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!v)return Promise.resolve();var At=c.documentElement.classList,Rt=function(on){return At.add("".concat(Q,"-").concat(on))},qt=function(on){return At.remove("".concat(Q,"-").concat(on))},_i=Object.keys(xt.autoFetchSvg?De:hi);_i.includes("fa")||_i.push("fa");var ei=[".".concat(Te,":not([").concat(oe,"])")].concat(_i.map(function($i){return".".concat($i,":not([").concat(oe,"])")})).join(", ");if(0===ei.length)return Promise.resolve();var pi=[];try{pi=Oe(nt.querySelectorAll(ei))}catch($i){}if(!(pi.length>0))return Promise.resolve();Rt("pending"),qt("complete");var Li=Ir_begin("onTree"),qi=pi.reduce(function($i,on){try{var bn=mt(on);bn&&$i.push(bn)}catch(Qn){F||"MissingIcon"===Qn.name&&console.error(Qn)}return $i},[]);return new Promise(function($i,on){Promise.all(qi).then(function(bn){ya(bn,function(){Rt("active"),Rt("complete"),qt("pending"),"function"==typeof Et&&Et(),Li(),$i()})}).catch(function(bn){Li(),on(bn)})})}function Hi(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;mt(nt).then(function(At){At&&ya([At],Et)})}var Ln=function(Et){var At=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Rt=At.transform,qt=void 0===Rt?vt:Rt,_i=At.symbol,ei=void 0!==_i&&_i,pi=At.mask,Li=void 0===pi?null:pi,qi=At.maskId,$i=void 0===qi?null:qi,on=At.title,bn=void 0===on?null:on,Qn=At.titleId,kn=void 0===Qn?null:Qn,aa=At.classes,Aa=void 0===aa?[]:aa,tr=At.attributes,br=void 0===tr?{}:tr,hr=At.styles,kr=void 0===hr?{}:hr;if(Et){var jr=Et.prefix,Ya=Et.iconName,ls=Et.icon;return da(f({type:"icon"},Et),function(){return Pr("beforeDOMElementCreation",{iconDefinition:Et,params:At}),xt.autoA11y&&(bn?br["aria-labelledby"]="".concat(xt.replacementClass,"-title-").concat(kn||Pe()):(br["aria-hidden"]="true",br.focusable="false")),Gr({icons:{main:Xn(ls),mask:Li?Xn(Li.icon):{found:!1,width:null,height:null,icon:{}}},prefix:jr,iconName:Ya,transform:f(f({},vt),qt),symbol:ei,title:bn,maskId:$i,titleId:kn,extra:{attributes:br,styles:kr,classes:Aa}})})}},Qe={mixout:function(){return{icon:(nt=Ln,function(Et){var At=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Rt=(Et||{}).icon?Et:ca(Et||{}),qt=At.mask;return qt&&(qt=(qt||{}).icon?qt:ca(qt||{})),nt(Rt,f(f({},At),{},{mask:qt}))})};var nt},hooks:function(){return{mutationObserverCallbacks:function(At){return At.treeCallback=Zt,At.nodeCallback=Hi,At}}},provides:function(Et){Et.i2svg=function(At){var Rt=At.node,_i=At.callback;return Zt(void 0===Rt?c:Rt,void 0===_i?function(){}:_i)},Et.generateSvgReplacementMutation=function(At,Rt){var qt=Rt.iconName,_i=Rt.title,ei=Rt.titleId,pi=Rt.prefix,Li=Rt.transform,qi=Rt.symbol,$i=Rt.mask,on=Rt.maskId,bn=Rt.extra;return new Promise(function(Qn,kn){Promise.all([Ea(qt,pi),$i.iconName?Ea($i.iconName,$i.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(aa){var Aa=D(aa,2);Qn([At,Gr({icons:{main:Aa[0],mask:Aa[1]},prefix:pi,iconName:qt,transform:Li,symbol:qi,maskId:on,title:_i,titleId:ei,extra:bn,watchable:!0})])}).catch(kn)})},Et.generateAbstractIcon=function(At){var qi,Rt=At.children,qt=At.attributes,_i=At.main,ei=At.transform,Li=ft(At.styles);return Li.length>0&&(qt.style=Li),Ht(ei)&&(qi=Nr("generateAbstractTransformGrouping",{main:_i,transform:ei,containerWidth:_i.width,iconWidth:_i.width})),Rt.push(qi||_i.icon),{children:Rt,attributes:qt}}}},We={mixout:function(){return{layer:function(At){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Rt.classes,_i=void 0===qt?[]:qt;return da({type:"layer"},function(){Pr("beforeDOMElementCreation",{assembler:At,params:Rt});var ei=[];return At(function(pi){Array.isArray(pi)?pi.map(function(Li){ei=ei.concat(Li.abstract)}):ei=ei.concat(pi.abstract)}),[{tag:"span",attributes:{class:["".concat(xt.familyPrefix,"-layers")].concat(L(_i)).join(" ")},children:ei}]})}}}},He={mixout:function(){return{counter:function(At){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Rt.title,_i=void 0===qt?null:qt,ei=Rt.classes,pi=void 0===ei?[]:ei,Li=Rt.attributes,qi=void 0===Li?{}:Li,$i=Rt.styles,on=void 0===$i?{}:$i;return da({type:"counter",content:At},function(){return Pr("beforeDOMElementCreation",{content:At,params:Rt}),fn({content:At.toString(),title:_i,extra:{attributes:qi,styles:on,classes:["".concat(xt.familyPrefix,"-layers-counter")].concat(L(pi))}})})}}}},bt={mixout:function(){return{text:function(At){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Rt.transform,_i=void 0===qt?vt:qt,ei=Rt.title,pi=void 0===ei?null:ei,Li=Rt.classes,qi=void 0===Li?[]:Li,$i=Rt.attributes,on=void 0===$i?{}:$i,bn=Rt.styles,Qn=void 0===bn?{}:bn;return da({type:"text",content:At},function(){return Pr("beforeDOMElementCreation",{content:At,params:Rt}),lr({content:At,transform:f(f({},vt),_i),title:pi,extra:{attributes:on,styles:Qn,classes:["".concat(xt.familyPrefix,"-layers-text")].concat(L(qi))}})})}}},provides:function(Et){Et.generateLayersText=function(At,Rt){var qt=Rt.title,_i=Rt.transform,ei=Rt.extra,pi=null,Li=null;if(n){var qi=parseInt(getComputedStyle(At).fontSize,10),$i=At.getBoundingClientRect();pi=$i.width/qi,Li=$i.height/qi}return xt.autoA11y&&!qt&&(ei.attributes["aria-hidden"]="true"),Promise.resolve([At,lr({content:At.innerHTML,width:pi,height:Li,transform:_i,title:qt,extra:ei,watchable:!0})])}}},Si=new RegExp('"',"ug"),Qi=[1105920,1112319];function Or(nt,Et){var At="".concat("data-fa-pseudo-element-pending").concat(Et.replace(":","-"));return new Promise(function(Rt,qt){if(null!==nt.getAttribute(At))return Rt();var ei=Oe(nt.children).filter(function(Ya){return Ya.getAttribute(ge)===Et})[0],pi=u.getComputedStyle(nt,Et),Li=pi.getPropertyValue("font-family").match(ye),qi=pi.getPropertyValue("font-weight"),$i=pi.getPropertyValue("content");if(ei&&!Li)return nt.removeChild(ei),Rt();if(Li&&"none"!==$i&&""!==$i){var on=pi.getPropertyValue("content"),bn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Li[2])?lt[Li[2].toLowerCase()]:W[qi],Qn=function Yn(nt){var Et=nt.replace(Si,""),At=function ze(nt,Et){var qt,At=nt.length,Rt=nt.charCodeAt(Et);return Rt>=55296&&Rt<=56319&&At>Et+1&&(qt=nt.charCodeAt(Et+1))>=56320&&qt<=57343?1024*(Rt-55296)+qt-56320+65536:Rt}(Et,0),Rt=At>=Qi[0]&&At<=Qi[1],qt=2===Et.length&&Et[0]===Et[1];return{value:Yi(qt?Et[0]:Et),isSecondary:Rt||qt}}(on),kn=Qn.value,aa=Qn.isSecondary,Aa=Li[0].startsWith("FontAwesome"),tr=Pt(bn,kn),br=tr;if(Aa){var hr=function Bi(nt){var Et=en[nt],At=Pt("fas",nt);return Et||(At?{prefix:"fas",iconName:At}:null)||{prefix:null,iconName:null}}(kn);hr.iconName&&hr.prefix&&(tr=hr.iconName,bn=hr.prefix)}if(!tr||aa||ei&&ei.getAttribute(Re)===bn&&ei.getAttribute(we)===br)Rt();else{nt.setAttribute(At,br),ei&&nt.removeChild(ei);var kr=function an(){return{iconName:null,title:null,titleId:null,prefix:null,transform:vt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),jr=kr.extra;jr.attributes[ge]=Et,Ea(tr,bn).then(function(Ya){var ls=Gr(f(f({},kr),{},{icons:{main:Ya,mask:{prefix:null,iconName:null,rest:[]}},prefix:bn,iconName:br,extra:jr,watchable:!0})),cs=c.createElement("svg");"::before"===Et?nt.insertBefore(cs,nt.firstChild):nt.appendChild(cs),cs.outerHTML=ls.map(function(Cs){return fi(Cs)}).join("\n"),nt.removeAttribute(At),Rt()}).catch(qt)}}else Rt()})}function Wa(nt){return Promise.all([Or(nt,"::before"),Or(nt,"::after")])}function xa(nt){return!(nt.parentNode===document.head||~ve.indexOf(nt.tagName.toUpperCase())||nt.getAttribute(ge)||nt.parentNode&&"svg"===nt.parentNode.tagName)}function os(nt){if(v)return new Promise(function(Et,At){var Rt=Oe(nt.querySelectorAll("*")).filter(xa).map(Wa),qt=Ir_begin("searchPseudoElements");Wn(),Promise.all(Rt).then(function(){qt(),Xe(),Et()}).catch(function(){qt(),Xe(),At()})})}var zn=!1,Cr=function(Et){return Et.toLowerCase().split(" ").reduce(function(Rt,qt){var _i=qt.toLowerCase().split("-"),ei=_i[0],pi=_i.slice(1).join("-");if(ei&&"h"===pi)return Rt.flipX=!0,Rt;if(ei&&"v"===pi)return Rt.flipY=!0,Rt;if(pi=parseFloat(pi),isNaN(pi))return Rt;switch(ei){case"grow":Rt.size=Rt.size+pi;break;case"shrink":Rt.size=Rt.size-pi;break;case"left":Rt.x=Rt.x-pi;break;case"right":Rt.x=Rt.x+pi;break;case"up":Rt.y=Rt.y-pi;break;case"down":Rt.y=Rt.y+pi;break;case"rotate":Rt.rotate=Rt.rotate+pi}return Rt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Xa={x:0,y:0,width:"100%",height:"100%"};function ha(nt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return nt.attributes&&(nt.attributes.fill||Et)&&(nt.attributes.fill="black"),nt}!function Jn(nt,Et){var At=Et.mixoutsTo;Ri=nt,cn={},Object.keys(pr).forEach(function(Rt){-1===Br.indexOf(Rt)&&delete pr[Rt]}),Ri.forEach(function(Rt){var qt=Rt.mixout?Rt.mixout():{};if(Object.keys(qt).forEach(function(ei){"function"==typeof qt[ei]&&(At[ei]=qt[ei]),"object"===M(qt[ei])&&Object.keys(qt[ei]).forEach(function(pi){At[ei]||(At[ei]={}),At[ei][pi]=qt[ei][pi]})}),Rt.hooks){var _i=Rt.hooks();Object.keys(_i).forEach(function(ei){cn[ei]||(cn[ei]=[]),cn[ei].push(_i[ei])})}Rt.provides&&Rt.provides(pr)})}([rt,Qe,We,He,bt,{hooks:function(){return{mutationObserverCallbacks:function(At){return At.pseudoElementsCallback=os,At}}},provides:function(Et){Et.pseudoElements2svg=function(At){var Rt=At.node;xt.searchPseudoElements&&os(void 0===Rt?c:Rt)}}},{mixout:function(){return{dom:{unwatch:function(){Wn(),zn=!0}}}},hooks:function(){return{bootstrap:function(){Ke(mr("mutationObserverCallbacks",{}))},noAuto:function(){!function Ot(){!St||St.disconnect()}()},watch:function(At){var Rt=At.observeMutationsRoot;zn?Xe():Ke(mr("mutationObserverCallbacks",{observeMutationsRoot:Rt}))}}}},{mixout:function(){return{parse:{transform:function(At){return Cr(At)}}}},hooks:function(){return{parseNodeAttributes:function(At,Rt){var qt=Rt.getAttribute("data-fa-transform");return qt&&(At.transform=Cr(qt)),At}}},provides:function(Et){Et.generateAbstractTransformGrouping=function(At){var Rt=At.main,qt=At.transform,ei=At.iconWidth,pi={transform:"translate(".concat(At.containerWidth/2," 256)")},Li="translate(".concat(32*qt.x,", ").concat(32*qt.y,") "),qi="scale(".concat(qt.size/16*(qt.flipX?-1:1),", ").concat(qt.size/16*(qt.flipY?-1:1),") "),$i="rotate(".concat(qt.rotate," 0 0)"),Qn={outer:pi,inner:{transform:"".concat(Li," ").concat(qi," ").concat($i)},path:{transform:"translate(".concat(ei/2*-1," -256)")}};return{tag:"g",attributes:f({},Qn.outer),children:[{tag:"g",attributes:f({},Qn.inner),children:[{tag:Rt.icon.tag,children:Rt.icon.children,attributes:f(f({},Rt.icon.attributes),Qn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(At,Rt){var qt=Rt.getAttribute("data-fa-mask"),_i=qt?Dn(qt.split(" ").map(function(ei){return ei.trim()})):{prefix:null,iconName:null,rest:[]};return _i.prefix||(_i.prefix=Fi()),At.mask=_i,At.maskId=Rt.getAttribute("data-fa-mask-id"),At}}},provides:function(Et){Et.generateAbstractMask=function(At){var nt,Rt=At.children,qt=At.attributes,_i=At.main,ei=At.mask,pi=At.maskId,$i=_i.icon,bn=ei.icon,Qn=function it(nt){var Et=nt.transform,Rt=nt.iconWidth,qt={transform:"translate(".concat(nt.containerWidth/2," 256)")},_i="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),ei="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),pi="rotate(".concat(Et.rotate," 0 0)");return{outer:qt,inner:{transform:"".concat(_i," ").concat(ei," ").concat(pi)},path:{transform:"translate(".concat(Rt/2*-1," -256)")}}}({transform:At.transform,containerWidth:ei.width,iconWidth:_i.width}),kn={tag:"rect",attributes:f(f({},Xa),{},{fill:"white"})},aa=$i.children?{children:$i.children.map(ha)}:{},Aa={tag:"g",attributes:f({},Qn.inner),children:[ha(f({tag:$i.tag,attributes:f(f({},$i.attributes),Qn.path)},aa))]},tr={tag:"g",attributes:f({},Qn.outer),children:[Aa]},br="mask-".concat(pi||Pe()),hr="clip-".concat(pi||Pe()),kr={tag:"mask",attributes:f(f({},Xa),{},{id:br,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[kn,tr]},jr={tag:"defs",children:[{tag:"clipPath",attributes:{id:hr},children:(nt=bn,"g"===nt.tag?nt.children:[nt])},kr]};return Rt.push(jr,{tag:"rect",attributes:f({fill:"currentColor","clip-path":"url(#".concat(hr,")"),mask:"url(#".concat(br,")")},Xa)}),{children:Rt,attributes:qt}}}},{provides:function(Et){var At=!1;u.matchMedia&&(At=u.matchMedia("(prefers-reduced-motion: reduce)").matches),Et.missingIconAbstract=function(){var Rt=[],qt={fill:"currentColor"},_i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Rt.push({tag:"path",attributes:f(f({},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 ei=f(f({},_i),{},{attributeName:"opacity"}),pi={tag:"circle",attributes:f(f({},qt),{},{cx:"256",cy:"364",r:"28"}),children:[]};return At||pi.children.push({tag:"animate",attributes:f(f({},_i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:f(f({},ei),{},{values:"1;0;1;1;0;1;"})}),Rt.push(pi),Rt.push({tag:"path",attributes:f(f({},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:At?[]:[{tag:"animate",attributes:f(f({},ei),{},{values:"1;0;0;0;0;1;"})}]}),At||Rt.push({tag:"path",attributes:f(f({},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:f(f({},ei),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Rt}}}},{hooks:function(){return{parseNodeAttributes:function(At,Rt){var qt=Rt.getAttribute("data-fa-symbol");return At.symbol=null!==qt&&(""===qt||qt),At}}}}],{mixoutsTo:nr});var re=nr.parse,wt=nr.icon,yi=p(2313);const Pi=["*"],Sn=nt=>{const Et={"fa-spin":nt.spin,"fa-pulse":nt.pulse,"fa-fw":nt.fixedWidth,"fa-border":nt.border,"fa-inverse":nt.inverse,"fa-layers-counter":nt.counter,"fa-flip-horizontal":"horizontal"===nt.flip||"both"===nt.flip,"fa-flip-vertical":"vertical"===nt.flip||"both"===nt.flip,[`fa-${nt.size}`]:null!==nt.size,[`fa-rotate-${nt.rotate}`]:null!==nt.rotate,[`fa-pull-${nt.pull}`]:null!==nt.pull,[`fa-stack-${nt.stackItemSize}`]:null!=nt.stackItemSize};return Object.keys(Et).map(At=>Et[At]?At:null).filter(At=>At)};let Tn=(()=>{class nt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275prov=t.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),qn=(()=>{class nt{constructor(){this.definitions={}}addIcons(...At){for(const Rt of At){Rt.prefix in this.definitions||(this.definitions[Rt.prefix]={}),this.definitions[Rt.prefix][Rt.iconName]=Rt;for(const qt of Rt.icon[2])"string"==typeof qt&&(this.definitions[Rt.prefix][qt]=Rt)}}addIconPacks(...At){for(const Rt of At){const qt=Object.keys(Rt).map(_i=>Rt[_i]);this.addIcons(...qt)}}getIconDefinition(At,Rt){return At in this.definitions&&Rt in this.definitions[At]?this.definitions[At][Rt]:null}}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275prov=t.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),xr=(()=>{class nt{constructor(){this.stackItemSize="1x"}ngOnChanges(At){if("size"in At)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 nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275dir=t.lG2({type:nt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),nt})(),cr=(()=>{class nt{constructor(At,Rt){this.renderer=At,this.elementRef=Rt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(At){"size"in At&&(null!=At.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${At.size.currentValue}`),null!=At.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${At.size.previousValue}`))}}return nt.\u0275fac=function(At){return new(At||nt)(t.Y36(t.Qsj),t.Y36(t.SBq))},nt.\u0275cmp=t.Xpm({type:nt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:Pi,decls:1,vars:0,template:function(At,Rt){1&At&&(t.F$t(),t.Hsn(0))},encapsulation:2}),nt})(),Xr=(()=>{class nt{constructor(At,Rt,qt,_i,ei){this.sanitizer=At,this.config=Rt,this.iconLibrary=qt,this.stackItem=_i,this.classes=[],null!=ei&&null==_i&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(At){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Rt=null;if(Rt=null==this.icon?this.config.fallbackIcon:this.icon,At){const qt=this.findIconDefinition(Rt);if(null!=qt){const _i=this.buildParams();this.renderIcon(qt,_i)}}}render(){this.ngOnChanges({})}findIconDefinition(At){const Rt=((nt,Et)=>(nt=>void 0!==nt.prefix&&void 0!==nt.iconName)(nt)?nt:Array.isArray(nt)&&2===nt.length?{prefix:nt[0],iconName:nt[1]}:"string"==typeof nt?{prefix:Et,iconName:nt}:void 0)(At,this.config.defaultPrefix);if("icon"in Rt)return Rt;const qt=this.iconLibrary.getIconDefinition(Rt.prefix,Rt.iconName);return null!=qt?qt:((nt=>{throw new Error(`Could not find icon with iconName=${nt.iconName} and prefix=${nt.prefix} in the icon library.`)})(Rt),null)}buildParams(){const At={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},Rt="string"==typeof this.transform?re.transform(this.transform):this.transform;return{title:this.title,transform:Rt,classes:[...Sn(At),...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(At,Rt){const qt=wt(At,Rt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(qt.html.join("\n"))}}return nt.\u0275fac=function(At){return new(At||nt)(t.Y36(yi.H7),t.Y36(Tn),t.Y36(qn),t.Y36(xr,8),t.Y36(cr,8))},nt.\u0275cmp=t.Xpm({type:nt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(At,Rt){2&At&&(t.Ikx("innerHTML",Rt.renderedIconHTML,t.oJD),t.uIk("title",Rt.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:[t.TTD],decls:0,vars:0,template:function(At,Rt){},encapsulation:2}),nt})(),za=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=t.oAB({type:nt}),nt.\u0275inj=t.cJS({}),nt})()},6642:(Fe,Y,p)=>{"use strict";p.d(Y,{eX:()=>ge,sQ:()=>Nt,GW:()=>i,l4:()=>be});var t=p(5620),e=p(6451),f=p(8306),M=p(7579),a=p(515),b=p(9646),d=p(2843),P=p(576);class A{constructor(Oe,le,xe){this.kind=Oe,this.value=le,this.error=xe,this.hasValue="N"===Oe}observe(Oe){return w(this,Oe)}do(Oe,le,xe){const{kind:ht,value:ft,error:Ht}=this;return"N"===ht?null==Oe?void 0:Oe(ft):"E"===ht?null==le?void 0:le(Ht):null==xe?void 0:xe()}accept(Oe,le,xe){var ht;return(0,P.m)(null===(ht=Oe)||void 0===ht?void 0:ht.next)?this.observe(Oe):this.do(Oe,le,xe)}toObservable(){const{kind:Oe,value:le,error:xe}=this,ht="N"===Oe?(0,b.of)(le):"E"===Oe?(0,d._)(()=>xe):"C"===Oe?a.E:0;if(!ht)throw new TypeError(`Unexpected notification kind ${Oe}`);return ht}static createNext(Oe){return new A("N",Oe)}static createError(Oe){return new A("E",void 0,Oe)}static createComplete(){return A.completeNotification}}function w(Pe,Oe){var le,xe,ht;const{kind:ft,value:Ht,error:it}=Pe;if("string"!=typeof ft)throw new TypeError('Invalid notification, missing "kind"');"N"===ft?null===(le=Oe.next)||void 0===le||le.call(Oe,Ht):"E"===ft?null===(xe=Oe.error)||void 0===xe||xe.call(Oe,it):null===(ht=Oe.complete)||void 0===ht||ht.call(Oe)}A.completeNotification=new A("C");var D=p(4482),L=p(5403),S=p(8421);function U(Pe,Oe,le,xe){return(0,D.e)((ht,ft)=>{let Ht;Oe&&"function"!=typeof Oe?({duration:le,element:Ht,connector:xe}=Oe):Ht=Oe;const it=new Map,Ne=at=>{it.forEach(at),at(ft)},tt=at=>Ne(yt=>yt.error(at));let Je=0,Se=!1;const Ue=new L.Q(ft,at=>{try{const yt=Pe(at);let gi=it.get(yt);if(!gi){it.set(yt,gi=xe?xe():new M.x);const Qt=function rt(at,yt){const gi=new f.y(Qt=>{Je++;const Jt=yt.subscribe(Qt);return()=>{Jt.unsubscribe(),0==--Je&&Se&&Ue.unsubscribe()}});return gi.key=at,gi}(yt,gi);if(ft.next(Qt),le){const Jt=(0,L.x)(gi,()=>{gi.complete(),null==Jt||Jt.unsubscribe()},void 0,void 0,()=>it.delete(yt));Ue.add((0,S.Xf)(le(Qt)).subscribe(Jt))}}gi.next(Ht?Ht(at):at)}catch(yt){tt(yt)}},()=>Ne(at=>at.complete()),tt,()=>it.clear(),()=>(Se=!0,0===Je));ht.subscribe(Ue)})}var Z=p(4004);function j(Pe,Oe){return Oe?le=>le.pipe(j((xe,ht)=>(0,S.Xf)(Pe(xe,ht)).pipe((0,Z.U)((ft,Ht)=>Oe(xe,ft,ht,Ht))))):(0,D.e)((le,xe)=>{let ht=0,ft=null,Ht=!1;le.subscribe((0,L.x)(xe,it=>{ft||(ft=(0,L.x)(xe,void 0,()=>{ft=null,Ht&&xe.complete()}),(0,S.Xf)(Pe(it,ht++)).subscribe(ft))},()=>{Ht=!0,!ft&&xe.complete()}))})}var X=p(8502),de=p(262),ee=p(9300),te=p(5577),ce=p(5698),J=p(5e3);const me={dispatch:!0,useEffectsErrorHandler:!0},x="__@ngrx/effects_create__";function i(Pe,Oe){const le=Pe(),xe=Object.assign(Object.assign({},me),Oe);return Object.defineProperty(le,x,{value:xe}),le}function r(Pe){return Object.getOwnPropertyNames(Pe).filter(xe=>!(!Pe[xe]||!Pe[xe].hasOwnProperty(x))&&Pe[xe][x].hasOwnProperty("dispatch")).map(xe=>Object.assign({propertyName:xe},Pe[xe][x]))}function u(Pe){return Object.getPrototypeOf(Pe)}const c="__@ngrx/effects__";function E(Pe){return(0,t.qC)(n,u)(Pe)}function n(Pe){return function I(Pe){return Pe.constructor.hasOwnProperty(c)}(Pe)?Pe.constructor[c]:[]}function N(Pe,Oe,le){const xe=u(Pe).constructor.name,ht=function B(Pe){return[E,r].reduce((le,xe)=>le.concat(xe(Pe)),[])}(Pe).map(({propertyName:ft,dispatch:Ht,useEffectsErrorHandler:it})=>{const Ne="function"==typeof Pe[ft]?Pe[ft]():Pe[ft],tt=it?le(Ne,Oe):Ne;return!1===Ht?tt.pipe((0,X.l)()):tt.pipe(function k(){return(0,D.e)((Pe,Oe)=>{Pe.subscribe((0,L.x)(Oe,le=>{Oe.next(A.createNext(le))},()=>{Oe.next(A.createComplete()),Oe.complete()},le=>{Oe.next(A.createError(le)),Oe.complete()}))})}()).pipe((0,Z.U)(Se=>({effect:Pe[ft],notification:Se,propertyName:ft,sourceName:xe,sourceInstance:Pe})))});return(0,e.T)(...ht)}function oe(Pe,Oe,le=10){return Pe.pipe((0,de.K)(xe=>(Oe&&Oe.handleError(xe),le<=1?Pe:oe(Pe,Oe,le-1))))}let ge=(()=>{class Pe extends f.y{constructor(le){super(),le&&(this.source=le)}lift(le){const xe=new Pe;return xe.source=this,xe.operator=le,xe}}return Pe.\u0275fac=function(le){return new(le||Pe)(J.LFG(t.Y$))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function be(...Pe){return(0,ee.h)(Oe=>Pe.some(le=>"string"==typeof le?le===Oe.type:le.type===Oe.type))}function Ae(Pe){return se(Pe,"ngrxOnInitEffects")}function se(Pe,Oe){return Pe&&Oe in Pe&&"function"==typeof Pe[Oe]}const Te=new J.OlP("@ngrx/effects Internal Root Guard"),ye=new J.OlP("@ngrx/effects User Provided Effects"),W=new J.OlP("@ngrx/effects Internal Root Effects"),$=new J.OlP("@ngrx/effects Root Effects"),ue=new J.OlP("@ngrx/effects Internal Feature Effects"),Ce=new J.OlP("@ngrx/effects Feature Effects"),Le=new J.OlP("@ngrx/effects Effects Error Handler");let ct=(()=>{class Pe extends M.x{constructor(le,xe){super(),this.errorHandler=le,this.effectsErrorHandler=xe}addEffects(le){this.next(le)}toActions(){return this.pipe(U(u),(0,te.z)(le=>le.pipe(U(ut))),(0,te.z)(le=>{const xe=le.pipe(j(ft=>function Dt(Pe,Oe){return le=>{const xe=N(le,Pe,Oe);return function lt(Pe){return se(Pe,"ngrxOnRunEffects")}(le)?le.ngrxOnRunEffects(xe):xe}}(this.errorHandler,this.effectsErrorHandler)(ft)),(0,Z.U)(ft=>(function Re(Pe,Oe){if("N"===Pe.notification.kind){const le=Pe.notification.value;!function we(Pe){return"function"!=typeof Pe&&Pe&&Pe.type&&"string"==typeof Pe.type}(le)&&Oe.handleError(new Error(`Effect ${function Q({propertyName:Pe,sourceInstance:Oe,sourceName:le}){const xe="function"==typeof Oe[Pe];return`"${le}.${String(Pe)}${xe?"()":""}"`}(Pe)} dispatched an invalid action: ${function Ge(Pe){try{return JSON.stringify(Pe)}catch(Oe){return Pe}}(le)}`))}}(ft,this.errorHandler),ft.notification)),(0,ee.h)(ft=>"N"===ft.kind&&null!=ft.value),function ne(){return(0,D.e)((Pe,Oe)=>{Pe.subscribe((0,L.x)(Oe,le=>w(le,Oe)))})}()),ht=le.pipe((0,ce.q)(1),(0,ee.h)(Ae),(0,Z.U)(ft=>ft.ngrxOnInitEffects()));return(0,e.T)(xe,ht)}))}}return Pe.\u0275fac=function(le){return new(le||Pe)(J.LFG(J.qLn),J.LFG(Le))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function ut(Pe){return function F(Pe){return se(Pe,"ngrxOnIdentifyEffects")}(Pe)?Pe.ngrxOnIdentifyEffects():""}let di=(()=>{class Pe{constructor(le,xe){this.effectSources=le,this.store=xe,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(le){return new(le||Pe)(J.LFG(ct),J.LFG(t.yh))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const Yt="@ngrx/effects/init";(0,t.PH)(Yt);let ui=(()=>{class Pe{constructor(le,xe,ht,ft,Ht,it,Ne){this.sources=le,xe.start(),ft.forEach(tt=>le.addEffects(tt)),ht.dispatch({type:Yt})}addEffects(le){this.sources.addEffects(le)}}return Pe.\u0275fac=function(le){return new(le||Pe)(J.LFG(ct),J.LFG(di),J.LFG(t.yh),J.LFG($),J.LFG(t.cr,8),J.LFG(t.CK,8),J.LFG(Te,8))},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})(),xt=(()=>{class Pe{constructor(le,xe,ht,ft){xe.forEach(Ht=>Ht.forEach(it=>le.addEffects(it)))}}return Pe.\u0275fac=function(le){return new(le||Pe)(J.LFG(ui),J.LFG(Ce),J.LFG(t.cr,8),J.LFG(t.CK,8))},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})(),Nt=(()=>{class Pe{static forFeature(le=[]){return{ngModule:xt,providers:[le,{provide:ue,multi:!0,useValue:le},{provide:ye,multi:!0,useValue:[]},{provide:Ce,multi:!0,useFactory:gt,deps:[J.zs3,ue,ye]}]}}static forRoot(le=[]){return{ngModule:ui,providers:[{provide:Le,useValue:oe},di,ct,ge,le,{provide:W,useValue:[le]},{provide:Te,useFactory:vt,deps:[[di,new J.FiY,new J.tp0],[W,new J.PiD]]},{provide:ye,multi:!0,useValue:[]},{provide:$,useFactory:gt,deps:[J.zs3,W,ye]}]}}}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})();function gt(Pe,Oe,le){const xe=[];for(const ht of Oe)xe.push(...ht);for(const ht of le)xe.push(...ht);return function et(Pe,Oe){return Oe.map(le=>Pe.get(le))}(Pe,xe)}function vt(Pe,Oe){if((1!==Oe.length||0!==Oe[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(Fe){const Y={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 Fe?Fe():Fe,f=Object.assign({},Y,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||Y.features},p);if(f.maxAge&&f.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${f.maxAge}`);return f}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(Y,p){if(this.action=Y,this.timestamp=p,this.type=PERFORM_ACTION,void 0===Y.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(Y){this.timestamp=Y,this.type=RESET}}class Rollback{constructor(Y){this.timestamp=Y,this.type=ROLLBACK}}class Commit{constructor(Y){this.timestamp=Y,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(Y){this.id=Y,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(Y,p,t=!0){this.start=Y,this.end=p,this.active=t,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(Y){this.index=Y,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(Y){this.actionId=Y,this.type=JUMP_TO_ACTION}}class ImportState{constructor(Y){this.nextLiftedState=Y,this.type=IMPORT_STATE}}class LockChanges{constructor(Y){this.status=Y,this.type=LOCK_CHANGES}}class PauseRecording{constructor(Y){this.status=Y,this.type=PAUSE_RECORDING}}function difference(Fe,Y){return Fe.filter(p=>Y.indexOf(p)<0)}function unliftState(Fe){const{computedStates:Y,currentStateIndex:p}=Fe;if(p>=Y.length){const{state:e}=Y[Y.length-1];return e}const{state:t}=Y[p];return t}function unliftAction(Fe){return Fe.actionsById[Fe.nextActionId-1]}function liftAction(Fe){return new PerformAction(Fe,+Date.now())}function sanitizeActions(Fe,Y){return Object.keys(Y).reduce((p,t)=>{const e=Number(t);return p[e]=sanitizeAction(Fe,Y[e],e),p},{})}function sanitizeAction(Fe,Y,p){return Object.assign(Object.assign({},Y),{action:Fe(Y.action,p)})}function sanitizeStates(Fe,Y){return Y.map((p,t)=>({state:sanitizeState(Fe,p.state,t),error:p.error}))}function sanitizeState(Fe,Y,p){return Fe(Y,p)}function shouldFilterActions(Fe){return Fe.predicate||Fe.actionsSafelist||Fe.actionsBlocklist}function filterLiftedState(Fe,Y,p,t){const e=[],f={},M=[];return Fe.stagedActionIds.forEach((a,b)=>{const d=Fe.actionsById[a];!d||b&&isActionFiltered(Fe.computedStates[b],d,Y,p,t)||(f[a]=d,e.push(a),M.push(Fe.computedStates[b]))}),Object.assign(Object.assign({},Fe),{stagedActionIds:e,actionsById:f,computedStates:M})}function isActionFiltered(Fe,Y,p,t,e){const f=p&&!p(Fe,Y.action),M=t&&!Y.action.type.match(t.map(b=>escapeRegExp(b)).join("|")),a=e&&Y.action.type.match(e.map(b=>escapeRegExp(b)).join("|"));return f||M||a}function escapeRegExp(Fe){return Fe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Fe,Y,p,t,e){if(t)return{state:p,error:"Interrupted by an error up the chain"};let M,f=p;try{f=Fe(p,Y)}catch(a){M=a.toString(),e.handleError(a)}return{state:f,error:M}}function recomputeStates(Fe,Y,p,t,e,f,M,a,b){if(Y>=Fe.length&&Fe.length===f.length)return Fe;const d=Fe.slice(0,Y),P=f.length-(b?1:0);for(let h=Y;h-1?D:computeNextEntry(p,w,L,k,a);d.push(U)}return b&&d.push(Fe[Fe.length-1]),d}function liftInitialState(Fe,Y){return{monitorState:Y(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Fe,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Fe,Y,p,t,e={}){return f=>(M,a)=>{let{monitorState:b,actionsById:d,nextActionId:P,stagedActionIds:h,skippedActionIds:A,committedState:w,currentStateIndex:D,computedStates:L,isLocked:k,isPaused:S}=M||Y;function U(ne){let X=ne,de=h.slice(1,X+1);for(let ee=0;ee-1===de.indexOf(ee)),h=[0,...h.slice(X+1)],w=L[X].state,L=L.slice(X),D=D>X?D-X:0}function Z(){d={0:liftAction(INIT_ACTION)},P=1,h=[0],A=[],w=L[D].state,D=0,L=[]}M||(d=Object.create(d));let j=0;switch(a.type){case LOCK_CHANGES:k=a.status,j=1/0;break;case PAUSE_RECORDING:S=a.status,S?(h=[...h,P],d[P]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),P++,j=h.length-1,L=L.concat(L[L.length-1]),D===h.length-2&&D++,j=1/0):Z();break;case RESET:d={0:liftAction(INIT_ACTION)},P=1,h=[0],A=[],w=Fe,D=0,L=[];break;case COMMIT:Z();break;case ROLLBACK:d={0:liftAction(INIT_ACTION)},P=1,h=[0],A=[],D=0,L=[];break;case TOGGLE_ACTION:{const{id:ne}=a;A=-1===A.indexOf(ne)?[ne,...A]:A.filter(de=>de!==ne),j=h.indexOf(ne);break}case SET_ACTIONS_ACTIVE:{const{start:ne,end:X,active:de}=a,ee=[];for(let te=ne;tee.maxAge&&(L=recomputeStates(L,j,f,w,d,h,A,p,S),U(h.length-e.maxAge),j=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(L.filter(X=>X.error).length>0)j=0,e.maxAge&&h.length>e.maxAge&&(L=recomputeStates(L,j,f,w,d,h,A,p,S),U(h.length-e.maxAge),j=1/0);else{if(!S&&!k){D===h.length-1&&D++;const X=P++;d[X]=new PerformAction(a,+Date.now()),h=[...h,X],j=h.length-1,L=recomputeStates(L,j,f,w,d,h,A,p,S)}L=L.map(X=>Object.assign(Object.assign({},X),{state:f(X.state,RECOMPUTE_ACTION)})),D=h.length-1,e.maxAge&&h.length>e.maxAge&&U(h.length-e.maxAge),j=1/0}break;default:j=1/0}return L=recomputeStates(L,j,f,w,d,h,A,p,S),b=t(b,a),{monitorState:b,actionsById:d,nextActionId:P,stagedActionIds:h,skippedActionIds:A,committedState:w,currentStateIndex:D,computedStates:L,isLocked:k,isPaused:S}}}let DevtoolsDispatcher=(()=>{class Fe extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Fe.\u0275fac=function(){let Y;return function(t){return(Y||(Y=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Fe)))(t||Fe)}}(),Fe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Fe,factory:Fe.\u0275fac}),Fe})();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(Fe,Y,p){this.config=Y,this.dispatcher=p,this.devtoolsExtension=Fe,this.createActionStreams()}notify(Fe,Y){if(this.devtoolsExtension)if(Fe.type===PERFORM_ACTION){if(Y.isLocked||Y.isPaused)return;const p=unliftState(Y);if(shouldFilterActions(this.config)&&isActionFiltered(p,Fe,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,Y.currentStateIndex):p,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Fe,Y.nextActionId):Fe;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const p=Object.assign(Object.assign({},Y),{stagedActionIds:Y.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,Y.actionsById):Y.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,Y.computedStates):Y.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Fe=>{const Y=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=Y,Y.init(),Y.subscribe(p=>Fe.next(p)),Y.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Fe=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),Y=Fe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.START)),p=Fe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.STOP)),t=Fe.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)(b=>b.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))),f=Fe.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)),M=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>f)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>M))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Fe){var Y;const p={name:Fe.name,features:Fe.features,serialize:Fe.serialize,autoPause:null!==(Y=Fe.autoPause)&&void 0!==Y&&Y};return!1!==Fe.maxAge&&(p.maxAge=Fe.maxAge),p}sendToReduxDevtools(Fe){try{Fe()}catch(Y){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",Y)}}}return DevtoolsExtension.\u0275fac=function Fe(Y){return new(Y||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 Fe{constructor(p,t,e,f,M,a,b,d){const P=liftInitialState(b,d.monitor),h=liftReducerWith(b,P,a,d.monitor,d),A=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),f.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,f.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),w=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(h)),D=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),L=A.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(w),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:Z},[j,ne])=>{let X=ne(Z,j);return j.type!==PERFORM_ACTION&&shouldFilterActions(d)&&(X=filterLiftedState(X,d.predicate,d.actionsSafelist,d.actionsBlocklist)),f.notify(j,X),{state:X,action:j}},{state:P,action:null})).subscribe(({state:Z,action:j})=>{D.next(Z),j.type===PERFORM_ACTION&&M.next(j.action)}),k=f.start$.subscribe(()=>{this.refresh()}),S=D.asObservable(),U=S.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=k,this.stateSubscription=L,this.dispatcher=p,this.liftedState=S,this.state=U}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 Fe.\u0275fac=function(p){return new(p||Fe)(_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))},Fe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Fe,factory:Fe.\u0275fac}),Fe})();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(Fe,Y){return Boolean(Fe)||Y.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Fe="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Fe]?window[Fe]:null}function createStateObservable(Fe){return Fe.state}let StoreDevtoolsModule=(()=>{class Fe{static instrument(p={}){return{ngModule:Fe,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 Fe.\u0275fac=function(p){return new(p||Fe)},Fe.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Fe}),Fe.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Fe})()},5620:(Fe,Y,p)=>{"use strict";p.d(Y,{UO:()=>ce,qg:()=>te,Y6:()=>i,mK:()=>Ae,n$:()=>Ie,Y$:()=>W,FR:()=>ue,yh:()=>ut,CK:()=>Mt,Aw:()=>Vt,cr:()=>qe,wb:()=>se,qC:()=>F,PH:()=>k,ZF:()=>rt,Lq:()=>si,P1:()=>Je,on:()=>zt,Ky:()=>S});var t=p(5e3),e=p(1135),f=p(8306),M=p(7579),a=p(233),b=p(4004),P=p(5363),h=p(1365),A=p(5026),w=p(1884);const D={};function k(Pt,mi){if(D[Pt]=(D[Pt]||0)+1,"function"==typeof mi)return Z(Pt,(...vi)=>Object.assign(Object.assign({},mi(...vi)),{type:Pt}));switch(mi?mi._as:"empty"){case"empty":return Z(Pt,()=>({type:Pt}));case"props":return Z(Pt,vi=>Object.assign(Object.assign({},vi),{type:Pt}));default:throw new Error("Unexpected config.")}}function S(){return{_as:"props",_p:void 0}}function Z(Pt,mi){return Object.defineProperty(mi,"type",{value:Pt,writable:!1})}const te="@ngrx/store/init";let ce=(()=>{class Pt extends e.X{constructor(){super({type:te})}next(ti){if("function"==typeof ti)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===ti)throw new TypeError("Actions must be objects");if(void 0===ti.type)throw new TypeError("Actions must have a type property");super.next(ti)}complete(){}ngOnDestroy(){super.complete()}}return Pt.\u0275fac=function(ti){return new(ti||Pt)},Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const J=[ce],me=new t.OlP("@ngrx/store Internal Root Guard"),x=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),r=new t.OlP("@ngrx/store Reducer Factory"),u=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),c=new t.OlP("@ngrx/store Initial Reducers"),_=new t.OlP("@ngrx/store Internal Initial Reducers"),E=new t.OlP("@ngrx/store Store Features"),I=new t.OlP("@ngrx/store Internal Store Reducers"),v=new t.OlP("@ngrx/store Internal Feature Reducers"),n=new t.OlP("@ngrx/store Internal Feature Configs"),C=new t.OlP("@ngrx/store Internal Store Features"),B=new t.OlP("@ngrx/store Internal Feature Reducers Token"),N=new t.OlP("@ngrx/store Feature Reducers"),z=new t.OlP("@ngrx/store User Provided Meta Reducers"),oe=new t.OlP("@ngrx/store Meta Reducers"),ge=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),be=new t.OlP("@ngrx/store User Runtime Checks Config"),Re=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),we=new t.OlP("@ngrx/store Internal Runtime Checks"),Q=new t.OlP("@ngrx/store Check if Action types are unique");function Ge(Pt,mi={}){const ti=Object.keys(Pt),vi={};for(let Fi=0;FiFi(Bi),ti(mi))}}function De(Pt,mi){return Array.isArray(mi)&&mi.length>0&&(Pt=F.apply(null,[...mi,Pt])),(ti,vi)=>{const Bi=Pt(ti);return(Fi,pn)=>Bi(Fi=void 0===Fi?vi:Fi,pn)}}class Ie extends f.y{}class Ae extends ce{}const se="@ngrx/store/update-reducers";let Te=(()=>{class Pt extends e.X{constructor(ti,vi,Bi,Fi){super(Fi(Bi,vi)),this.dispatcher=ti,this.initialState=vi,this.reducers=Bi,this.reducerFactory=Fi}get currentReducers(){return this.reducers}addFeature(ti){this.addFeatures([ti])}addFeatures(ti){const vi=ti.reduce((Bi,{reducers:Fi,reducerFactory:pn,metaReducers:Fn,initialState:Dn,key:Ai})=>{const Ri="function"==typeof Fi?function lt(Pt){const mi=Array.isArray(Pt)&&Pt.length>0?F(...Pt):ti=>ti;return(ti,vi)=>(ti=mi(ti),(Bi,Fi)=>ti(Bi=void 0===Bi?vi:Bi,Fi))}(Fn)(Fi,Dn):De(pn,Fn)(Fi,Dn);return Bi[Ai]=Ri,Bi},{});this.addReducers(vi)}removeFeature(ti){this.removeFeatures([ti])}removeFeatures(ti){this.removeReducers(ti.map(vi=>vi.key))}addReducer(ti,vi){this.addReducers({[ti]:vi})}addReducers(ti){this.reducers=Object.assign(Object.assign({},this.reducers),ti),this.updateReducers(Object.keys(ti))}removeReducer(ti){this.removeReducers([ti])}removeReducers(ti){ti.forEach(vi=>{this.reducers=function ve(Pt,mi){return Object.keys(Pt).filter(ti=>ti!==mi).reduce((ti,vi)=>Object.assign(ti,{[vi]:Pt[vi]}),{})}(this.reducers,vi)}),this.updateReducers(ti)}updateReducers(ti){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:se,features:ti})}ngOnDestroy(){this.complete()}}return Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(Ae),t.LFG(i),t.LFG(c),t.LFG(r))},Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const ye=[Te,{provide:Ie,useExisting:Te},{provide:Ae,useExisting:ce}];let W=(()=>{class Pt extends M.x{ngOnDestroy(){this.complete()}}return Pt.\u0275fac=function(){let mi;return function(vi){return(mi||(mi=t.n5z(Pt)))(vi||Pt)}}(),Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const $=[W];class ue extends f.y{}let Ce=(()=>{class Pt extends e.X{constructor(ti,vi,Bi,Fi){super(Fi);const Ai=ti.pipe((0,P.Q)(a.N)).pipe((0,h.M)(vi)).pipe((0,A.R)(Le,{state:Fi}));this.stateSubscription=Ai.subscribe(({state:Ri,action:cn})=>{this.next(Ri),Bi.next(cn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return Pt.INIT=te,Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(ce),t.LFG(Ie),t.LFG(W),t.LFG(i))},Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();function Le(Pt={state:void 0},[mi,ti]){const{state:vi}=Pt;return{state:ti(vi,mi),action:mi}}const ct=[Ce,{provide:ue,useExisting:Ce}];let ut=(()=>{class Pt extends f.y{constructor(ti,vi,Bi){super(),this.actionsObserver=vi,this.reducerManager=Bi,this.source=ti}select(ti,...vi){return di.call(null,ti,...vi)(this)}lift(ti){const vi=new Pt(this,this.actionsObserver,this.reducerManager);return vi.operator=ti,vi}dispatch(ti){this.actionsObserver.next(ti)}next(ti){this.actionsObserver.next(ti)}error(ti){this.actionsObserver.error(ti)}complete(){this.actionsObserver.complete()}addReducer(ti,vi){this.reducerManager.addReducer(ti,vi)}removeReducer(ti){this.reducerManager.removeReducer(ti)}}return Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(ue),t.LFG(ce),t.LFG(Te))},Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const Dt=[ut];function di(Pt,mi,...ti){return function(Bi){let Fi;if("string"==typeof Pt){const pn=[mi,...ti].filter(Boolean);Fi=Bi.pipe(function d(...Pt){const mi=Pt.length;if(0===mi)throw new Error("list of properties cannot be empty.");return(0,b.U)(ti=>{let vi=ti;for(let Bi=0;BiPt(pn,mi)))}return Fi.pipe((0,w.x)())}}const Yt="https://ngrx.io/guide/store/configuration/runtime-checks";function Gt(Pt){return void 0===Pt}function ui(Pt){return null===Pt}function xt(Pt){return Array.isArray(Pt)}function vt(Pt){return"object"==typeof Pt&&null!==Pt}function Pe(Pt){return"function"==typeof Pt}function Ht(Pt,mi){return Pt===mi}function it(Pt,mi,ti){for(let vi=0;viRi.release&&"function"==typeof Ri.release),Fn=Pt(function(...Ri){return Fi.apply(null,Ri)}),Dn=tt(function(Ri,cn){return mi.stateFn.apply(null,[Ri,Bi,cn,Fn])});return Object.assign(Dn.memoized,{release:function Ai(){Dn.reset(),Fn.reset(),pn.forEach(Ri=>Ri.release())},projector:Fn.memoized,setResult:Dn.setResult,clearResult:Dn.clearResult})}}(tt)(...Pt)}function Se(Pt,mi,ti,vi){if(void 0===ti){const Fi=mi.map(pn=>pn(Pt));return vi.memoized.apply(null,Fi)}const Bi=mi.map(Fi=>Fi(Pt,ti));return vi.memoized.apply(null,[...Bi,ti])}function rt(Pt){return Je(mi=>{const ti=mi[Pt];return(0,t.X6Q)()&&!(Pt in mi)&&console.warn(`@ngrx/store: The feature name "${Pt}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${Pt}', ...) or StoreModule.forFeature('${Pt}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),ti},mi=>mi)}function Jt(Pt){Object.freeze(Pt);const mi=Pe(Pt);return Object.getOwnPropertyNames(Pt).forEach(ti=>{if(!ti.startsWith("\u0275")&&function le(Pt,mi){return Object.prototype.hasOwnProperty.call(Pt,mi)}(Pt,ti)&&(!mi||"caller"!==ti&&"callee"!==ti&&"arguments"!==ti)){const vi=Pt[ti];(vt(vi)||Pe(vi))&&!Object.isFrozen(vi)&&Jt(vi)}}),Pt}function fi(Pt,mi=[]){return(Gt(Pt)||ui(Pt))&&0===mi.length?{path:["root"],value:Pt}:Object.keys(Pt).reduce((vi,Bi)=>{if(vi)return vi;const Fi=Pt[Bi];return function Oe(Pt){return Pe(Pt)&&Pt.hasOwnProperty("\u0275cmp")}(Fi)?vi:!(Gt(Fi)||ui(Fi)||function et(Pt){return"number"==typeof Pt}(Fi)||function gt(Pt){return"boolean"==typeof Pt}(Fi)||function Nt(Pt){return"string"==typeof Pt}(Fi)||xt(Fi))&&(function jt(Pt){if(!function $t(Pt){return vt(Pt)&&!xt(Pt)}(Pt))return!1;const mi=Object.getPrototypeOf(Pt);return mi===Object.prototype||null===mi}(Fi)?fi(Fi,[...mi,Bi]):{path:[...mi,Bi],value:Fi})},!1)}function ai(Pt,mi){if(!1===Pt)return;const ti=Pt.path.join("."),vi=new Error(`Detected unserializable ${mi} at "${ti}". ${Yt}#strict${mi}serializability`);throw vi.value=Pt.value,vi.unserializablePath=ti,vi}function Wi(Pt){return(0,t.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},Pt):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Gi({strictActionSerializability:Pt,strictStateSerializability:mi}){return ti=>Pt||mi?function Xi(Pt,mi){return function(ti,vi){mi.action(vi)&&ai(fi(vi),"action");const Bi=Pt(ti,vi);return mi.state()&&ai(fi(Bi),"state"),Bi}}(ti,{action:vi=>Pt&&!ze(vi),state:()=>mi}):ti}function Yi({strictActionImmutability:Pt,strictStateImmutability:mi}){return ti=>Pt||mi?function Qt(Pt,mi){return function(ti,vi){const Bi=mi.action(vi)?Jt(vi):vi,Fi=Pt(ti,Bi);return mi.state()?Jt(Fi):Fi}}(ti,{action:vi=>Pt&&!ze(vi),state:()=>mi}):ti}function ze(Pt){return Pt.type.startsWith("@ngrx")}function Lt({strictActionWithinNgZone:Pt}){return mi=>Pt?function tn(Pt,mi){return function(ti,vi){if(mi.action(vi)&&!t.R0b.isInAngularZone())throw new Error(`Action '${vi.type}' running outside NgZone. ${Yt}#strictactionwithinngzone`);return Pt(ti,vi)}}(mi,{action:ti=>Pt&&!ze(ti)}):mi}function fe(Pt){return[{provide:Re,useValue:Pt},{provide:be,useFactory:Ct,deps:[Re]},{provide:we,deps:[be],useFactory:Wi},{provide:oe,multi:!0,deps:[we],useFactory:Yi},{provide:oe,multi:!0,deps:[we],useFactory:Gi},{provide:oe,multi:!0,deps:[we],useFactory:Lt}]}function je(){return[{provide:Q,multi:!0,deps:[we],useFactory:ie}]}function Ct(Pt){return Pt}function ie(Pt){if(!Pt.strictActionTypeUniqueness)return;const mi=Object.entries(D).filter(([,ti])=>ti>1).map(([ti])=>ti);if(mi.length)throw new Error(`Action types are registered more than once, ${mi.map(ti=>`"${ti}"`).join(", ")}. ${Yt}#strictactiontypeuniqueness`)}let qe=(()=>{class Pt{constructor(ti,vi,Bi,Fi,pn,Fn){}}return Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(ce),t.LFG(Ie),t.LFG(W),t.LFG(ut),t.LFG(me,8),t.LFG(Q,8))},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({}),Pt})(),Mt=(()=>{class Pt{constructor(ti,vi,Bi,Fi,pn){this.features=ti,this.featureReducers=vi,this.reducerManager=Bi;const Fn=ti.map((Dn,Ai)=>{const cn=vi.shift()[Ai];return Object.assign(Object.assign({},Dn),{reducers:cn,initialState:ji(Dn.initialState)})});Bi.addFeatures(Fn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(C),t.LFG(N),t.LFG(Te),t.LFG(qe),t.LFG(Q,8))},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({}),Pt})(),Vt=(()=>{class Pt{static forRoot(ti,vi={}){return{ngModule:qe,providers:[{provide:me,useFactory:Oi,deps:[[ut,new t.FiY,new t.tp0]]},{provide:x,useValue:vi.initialState},{provide:i,useFactory:ji,deps:[x]},{provide:_,useValue:ti},{provide:I,useExisting:ti instanceof t.OlP?ti:_},{provide:c,deps:[t.zs3,_,[new t.tBr(I)]],useFactory:Mi},{provide:z,useValue:vi.metaReducers?vi.metaReducers:[]},{provide:ge,deps:[oe,z],useFactory:Kt},{provide:u,useValue:vi.reducerFactory?vi.reducerFactory:Ge},{provide:r,deps:[u,ge],useFactory:De},J,ye,$,ct,Dt,fe(vi.runtimeChecks),je()]}}static forFeature(ti,vi,Bi={}){return{ngModule:Mt,providers:[{provide:n,multi:!0,useValue:ti instanceof Object?{}:Bi},{provide:E,multi:!0,useValue:{key:ti instanceof Object?ti.name:ti,reducerFactory:Bi instanceof t.OlP||!Bi.reducerFactory?Ge:Bi.reducerFactory,metaReducers:Bi instanceof t.OlP||!Bi.metaReducers?[]:Bi.metaReducers,initialState:Bi instanceof t.OlP||!Bi.initialState?void 0:Bi.initialState}},{provide:C,deps:[t.zs3,n,E],useFactory:Ei},{provide:v,multi:!0,useValue:ti instanceof Object?ti.reducer:vi},{provide:B,multi:!0,useExisting:vi instanceof t.OlP?vi:v},{provide:N,multi:!0,deps:[t.zs3,v,[new t.tBr(B)]],useFactory:en},je()]}}}return Pt.\u0275fac=function(ti){return new(ti||Pt)},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({}),Pt})();function Mi(Pt,mi){return mi instanceof t.OlP?Pt.get(mi):mi}function Ei(Pt,mi,ti){return ti.map((vi,Bi)=>{if(mi[Bi]instanceof t.OlP){const Fi=Pt.get(mi[Bi]);return{key:vi.key,reducerFactory:Fi.reducerFactory?Fi.reducerFactory:Ge,metaReducers:Fi.metaReducers?Fi.metaReducers:[],initialState:Fi.initialState}}return vi})}function en(Pt,mi){return mi.map(vi=>vi instanceof t.OlP?Pt.get(vi):vi)}function ji(Pt){return"function"==typeof Pt?Pt():Pt}function Kt(Pt,mi){return Pt.concat(mi)}function Oi(Pt){if(Pt)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function zt(...Pt){return{reducer:Pt.pop(),types:Pt.map(vi=>vi.type)}}function si(Pt,...mi){const ti=new Map;for(const vi of mi)for(const Bi of vi.types){const Fi=ti.get(Bi);ti.set(Bi,Fi?(Fn,Dn)=>vi.reducer(Fi(Fn,Dn),Dn):vi.reducer)}return function(vi=Pt,Bi){const Fi=ti.get(Bi.type);return Fi?Fi(vi,Bi):vi}}},1210:(Fe,Y,p)=>{"use strict";p.d(Y,{H5:()=>zc,K$:()=>Dd,a4:()=>jd});var t=p(5e3),e=p(9808),f=p(655),M=p(7429),a=p(4968),b=p(8372),d=p(1777);function P(){}function h(m){return null==m?P:function(){return this.querySelector(m)}}function w(m){return"object"==typeof m&&"length"in m?m:Array.from(m)}function D(){return[]}function L(m){return null==m?D:function(){return this.querySelectorAll(m)}}function U(m){return function(){return this.matches(m)}}function Z(m){return function(O){return O.matches(m)}}var j=Array.prototype.find;function X(){return this.firstElementChild}var ee=Array.prototype.filter;function te(){return this.children}function x(m){return new Array(m.length)}function r(m,O){this.ownerDocument=m.ownerDocument,this.namespaceURI=m.namespaceURI,this._next=null,this._parent=m,this.__data__=O}function u(m){return function(){return m}}function c(m,O,o,y,V,q){for(var st,ke=0,Ut=O.length,Bt=q.length;keO?1:m>=O?0:NaN}r.prototype={constructor:r,appendChild:function(m){return this._parent.insertBefore(m,this._next)},insertBefore:function(m,O){return this._parent.insertBefore(m,O)},querySelector:function(m){return this._parent.querySelector(m)},querySelectorAll:function(m){return this._parent.querySelectorAll(m)}};var Ge="http://www.w3.org/1999/xhtml";const ve={svg:"http://www.w3.org/2000/svg",xhtml:Ge,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function F(m){var O=m+="",o=O.indexOf(":");return o>=0&&"xmlns"!==(O=m.slice(0,o))&&(m=m.slice(o+1)),ve.hasOwnProperty(O)?{space:ve[O],local:m}:m}function De(m){return function(){this.removeAttribute(m)}}function lt(m){return function(){this.removeAttributeNS(m.space,m.local)}}function Ie(m,O){return function(){this.setAttribute(m,O)}}function Ae(m,O){return function(){this.setAttributeNS(m.space,m.local,O)}}function se(m,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttribute(m):this.setAttribute(m,o)}}function Te(m,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,o)}}function W(m){return m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView}function $(m){return function(){this.style.removeProperty(m)}}function ue(m,O,o){return function(){this.style.setProperty(m,O,o)}}function Ce(m,O,o){return function(){var y=O.apply(this,arguments);null==y?this.style.removeProperty(m):this.style.setProperty(m,y,o)}}function ct(m,O){return m.style.getPropertyValue(O)||W(m).getComputedStyle(m,null).getPropertyValue(O)}function ut(m){return function(){delete this[m]}}function Dt(m,O){return function(){this[m]=O}}function di(m,O){return function(){var o=O.apply(this,arguments);null==o?delete this[m]:this[m]=o}}function Gt(m){return m.trim().split(/^|\s+/)}function ui(m){return m.classList||new xt(m)}function xt(m){this._node=m,this._names=Gt(m.getAttribute("class")||"")}function Nt(m,O){for(var o=ui(m),y=-1,V=O.length;++y=0&&(o=O.slice(y+1),O=O.slice(0,y)),{type:O,name:o}})}function ze(m){return function(){var O=this.__on;if(O){for(var q,o=0,y=-1,V=O.length;o=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(m){return this._names.indexOf(m)>=0}};var Vt=[null];function Mi(m,O){this._groups=m,this._parents=O}function Ei(){return new Mi([[document.documentElement]],Vt)}Mi.prototype=Ei.prototype={constructor:Mi,select:function A(m){"function"!=typeof m&&(m=h(m));for(var O=this._groups,o=O.length,y=new Array(o),V=0;V=gn&&(gn=_n+1);!(In=Ii[gn])&&++gn=0;)(ke=y[V])&&(q&&4^ke.compareDocumentPosition(q)&&q.parentNode.insertBefore(ke,q),q=ke);return this},sort:function N(m){function O(bi,wi){return bi&&wi?m(bi.__data__,wi.__data__):!bi-!wi}m||(m=z);for(var o=this._groups,y=o.length,V=new Array(y),q=0;q1?this.each((null==O?$:"function"==typeof O?Ce:ue)(m,O,null==o?"":o)):ct(this.node(),m)},property:function Yt(m,O){return arguments.length>1?this.each((null==O?ut:"function"==typeof O?di:Dt)(m,O)):this.node()[m]},classed:function jt(m,O){var o=Gt(m+"");if(arguments.length<2){for(var y=ui(this.node()),V=-1,q=o.length;++V{}};function zt(){for(var y,m=0,O=arguments.length,o={};m=0&&(y=o.slice(V+1),o=o.slice(0,V)),o&&!O.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:y}})}function mi(m,O){for(var V,o=0,y=m.length;o0)for(var V,q,o=new Array(V),y=0;y>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===o?lr(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===o?lr(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=Nr.exec(m))?new Xn(O[1],O[2],O[3],1):(O=ca.exec(m))?new Xn(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=ga.exec(m))?lr(O[1],O[2],O[3],O[4]):(O=Ca.exec(m))?lr(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=Na.exec(m))?Jr(O[1],O[2]/100,O[3]/100,1):(O=Ra.exec(m))?Jr(O[1],O[2]/100,O[3]/100,O[4]):nr.hasOwnProperty(m)?Gr(nr[m]):"transparent"===m?new Xn(NaN,NaN,NaN,0):null}function Gr(m){return new Xn(m>>16&255,m>>8&255,255&m,1)}function lr(m,O,o,y){return y<=0&&(m=O=o=NaN),new Xn(m,O,o,y)}function fn(m){return m instanceof Ri||(m=Ur(m)),m?new Xn((m=m.rgb()).r,m.g,m.b,m.opacity):new Xn}function qr(m,O,o,y){return 1===arguments.length?fn(m):new Xn(m,O,o,null==y?1:y)}function Xn(m,O,o,y){this.r=+m,this.g=+O,this.b=+o,this.opacity=+y}function Za(){return"#"+Ea(this.r)+Ea(this.g)+Ea(this.b)}function Zr(){var m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"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===m?")":", "+m+")")}function Ea(m){return((m=Math.max(0,Math.min(255,Math.round(m)||0)))<16?"0":"")+m.toString(16)}function Jr(m,O,o,y){return y<=0?m=O=o=NaN:o<=0||o>=1?m=O=NaN:O<=0&&(m=NaN),new Wr(m,O,o,y)}function Dr(m){if(m instanceof Wr)return new Wr(m.h,m.s,m.l,m.opacity);if(m instanceof Ri||(m=Ur(m)),!m)return new Wr;if(m instanceof Wr)return m;var O=(m=m.rgb()).r/255,o=m.g/255,y=m.b/255,V=Math.min(O,o,y),q=Math.max(O,o,y),ke=NaN,st=q-V,Ut=(q+V)/2;return st?(ke=O===q?(o-y)/st+6*(o0&&Ut<1?0:ke,new Wr(ke,st,Ut,m.opacity)}function Wr(m,O,o,y){this.h=+m,this.s=+O,this.l=+o,this.opacity=+y}function gr(m,O,o){return 255*(m<60?O+(o-O)*m/60:m<180?o:m<240?O+(o-O)*(240-m)/60:O)}function Ir(m,O,o,y,V){var q=m*m,ke=q*m;return((1-3*m+3*q-ke)*O+(4-6*q+3*ke)*o+(1+3*m+3*q-3*ke)*y+ke*V)/6}Dn(Ri,Ur,{copy:function(m){return Object.assign(new this.constructor,this,m)},displayable:function(){return this.rgb().displayable()},hex:Qr,formatHex:Qr,formatHsl:function da(){return Dr(this).formatHsl()},formatRgb:Ha,toString:Ha}),Dn(Xn,qr,Ai(Ri,{brighter:function(m){return m=null==m?pr:Math.pow(pr,m),new Xn(this.r*m,this.g*m,this.b*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new Xn(this.r*m,this.g*m,this.b*m,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:Za,formatHex:Za,formatRgb:Zr,toString:Zr})),Dn(Wr,function Rr(m,O,o,y){return 1===arguments.length?Dr(m):new Wr(m,O,o,null==y?1:y)},Ai(Ri,{brighter:function(m){return m=null==m?pr:Math.pow(pr,m),new Wr(this.h,this.s,this.l*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new Wr(this.h,this.s,this.l*m,this.opacity)},rgb:function(){var m=this.h%360+360*(this.h<0),O=isNaN(m)||isNaN(this.s)?0:this.s,o=this.l,y=o+(o<.5?o:1-o)*O,V=2*o-y;return new Xn(gr(m>=240?m-240:m+120,V,y),gr(m,V,y),gr(m<120?m+240:m-120,V,y),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 m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===m?")":", "+m+")")}}));const va=m=>()=>m;function ra(m,O){var o=O-m;return o?function $n(m,O){return function(o){return m+o*O}}(m,o):va(isNaN(m)?O:m)}const Hr=function m(O){var o=function Kn(m){return 1==(m=+m)?ra:function(O,o){return o-O?function Ta(m,O,o){return m=Math.pow(m,o),O=Math.pow(O,o)-m,o=1/o,function(y){return Math.pow(m+y*O,o)}}(O,o,m):va(isNaN(O)?o:O)}}(O);function y(V,q){var ke=o((V=qr(V)).r,(q=qr(q)).r),st=o(V.g,q.g),Ut=o(V.b,q.b),Bt=ra(V.opacity,q.opacity);return function(li){return V.r=ke(li),V.g=st(li),V.b=Ut(li),V.opacity=Bt(li),V+""}}return y.gamma=m,y}(1);function Sr(m){return function(O){var ke,st,o=O.length,y=new Array(o),V=new Array(o),q=new Array(o);for(ke=0;ke=1?(o=1,O-1):Math.floor(o*O),V=m[y],q=m[y+1];return Ir((o-y/O)*O,y>0?m[y-1]:2*V-q,V,q,yo&&(q=O.slice(o,q),st[ke]?st[ke]+=q:st[++ke]=q),(y=y[0])===(V=V[0])?st[ke]?st[ke]+=V:st[++ke]=V:(st[++ke]=null,Ut.push({i:ke,x:St(y,V)})),o=ri.lastIndex;return o=0&&m._call.call(null,O),m=m._next;--Zi}()}finally{Zi=0,function Xa(){for(var m,o,O=He,y=1/0;O;)O._call?(y>O._time&&(y=O._time),m=O,O=O._next):(o=O._next,O._next=null,O=m?m._next=o:He=o);bt=m,ha(y)}(),Qi=0}}function Gs(){var m=Or.now(),O=m-Si;O>1e3&&(Yn-=O,Si=m)}function ha(m){Zi||(Ln&&(Ln=clearTimeout(Ln)),m-Qi>24?(m<1/0&&(Ln=setTimeout(Cr,m-Or.now()-Yn)),Qe&&(Qe=clearInterval(Qe))):(Qe||(Si=Or.now(),Qe=setInterval(Gs,1e3)),Zi=1,Wa(Cr)))}function xs(m,O,o){var y=new zi;return y.restart(V=>{y.stop(),m(V+O)},O=null==O?0:+O,o),y}zi.prototype=zn.prototype={constructor:zi,restart:function(m,O,o){if("function"!=typeof m)throw new TypeError("callback is not a function");o=(null==o?xa():+o)+(null==O?0:+O),!this._next&&bt!==this&&(bt?bt._next=this:He=this,bt=this),this._call=m,this._time=o,ha()},stop:function(){this._call&&(this._call=null,this._time=1/0,ha())}};var bs=vi("start","end","cancel","interrupt"),Zs=[];function he(m,O,o,y,V,q){var ke=m.__transition;if(ke){if(o in ke)return}else m.__transition={};!function ii(m,O,o){var V,y=m.__transition;function ke(Bt){var li,bi,wi,Di;if(1!==o.state)return Ut();for(li in y)if((Di=y[li]).name===o.name){if(3===Di.state)return xs(ke);4===Di.state?(Di.state=6,Di.timer.stop(),Di.on.call("interrupt",m,m.__data__,Di.index,Di.group),delete y[li]):+li0)throw new Error("too late; already scheduled");return o}function wt(m,O){var o=Ft(m,O);if(o.state>3)throw new Error("too late; already running");return o}function Ft(m,O){var o=m.__transition;if(!o||!(o=o[O]))throw new Error("transition not found");return o}var Sn,Pi=180/Math.PI,nn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function un(m,O,o,y,V,q){var ke,st,Ut;return(ke=Math.sqrt(m*m+O*O))&&(m/=ke,O/=ke),(Ut=m*o+O*y)&&(o-=m*Ut,y-=O*Ut),(st=Math.sqrt(o*o+y*y))&&(o/=st,y/=st,Ut/=st),m*y180?li+=360:li-Bt>180&&(Bt+=360),wi.push({i:bi.push(V(bi)+"rotate(",null,y)-2,x:St(Bt,li)})):li&&bi.push(V(bi)+"rotate("+li+y)}(Bt.rotate,li.rotate,bi,wi),function st(Bt,li,bi,wi){Bt!==li?wi.push({i:bi.push(V(bi)+"skewX(",null,y)-2,x:St(Bt,li)}):li&&bi.push(V(bi)+"skewX("+li+y)}(Bt.skewX,li.skewX,bi,wi),function Ut(Bt,li,bi,wi,Di,rn){if(Bt!==bi||li!==wi){var vn=Di.push(V(Di)+"scale(",null,",",null,")");rn.push({i:vn-4,x:St(Bt,bi)},{i:vn-2,x:St(li,wi)})}else(1!==bi||1!==wi)&&Di.push(V(Di)+"scale("+bi+","+wi+")")}(Bt.scaleX,Bt.scaleY,li.scaleX,li.scaleY,bi,wi),Bt=li=null,function(Di){for(var Ii,rn=-1,vn=wi.length;++rn=0&&(O=O.slice(0,o)),!O||"start"===O})}(O)?Ye:wt;return function(){var ke=q(this,m),st=ke.on;st!==y&&(V=(y=st).copy()).on(O,o),ke.on=V}}var Ys=ji.prototype.constructor;function Me(m){return function(){this.style.removeProperty(m)}}function Xt(m,O,o){return function(y){this.style.setProperty(m,O.call(this,y),o)}}function oi(m,O,o){var y,V;function q(){var ke=O.apply(this,arguments);return ke!==V&&(y=(V=ke)&&Xt(m,ke,o)),y}return q._value=O,q}function rr(m){return function(O){this.textContent=m.call(this,O)}}function Hn(m){var O,o;function y(){var V=m.apply(this,arguments);return V!==o&&(O=(o=V)&&rr(V)),O}return y._value=m,y}var n1=0;function ba(m,O,o,y){this._groups=m,this._parents=O,this._name=o,this._id=y}function A2(){return++n1}var js=ji.prototype;ba.prototype=function io(m){return ji().transition(m)}.prototype={constructor:ba,select:function Ws(m){var O=this._name,o=this._id;"function"!=typeof m&&(m=h(m));for(var y=this._groups,V=y.length,q=new Array(V),ke=0;ke2&&y.state<5,y.state=6,y.timer.stop(),y.on.call(V?"interrupt":"cancel",m,m.__data__,y.index,y.group),delete o[ke]):q=!1;q&&delete m.__transition}}(this,m)})},ji.prototype.transition=function $r(m){var O,o;m instanceof ba?(O=m._id,m=m._name):(O=A2(),(o=E1).time=xa(),m=null==m?null:m+"");for(var y=this._groups,V=y.length,q=0;qO?1:m>=O?0:NaN}function so(m){let O=m,o=m;function y(ke,st,Ut,Bt){for(null==Ut&&(Ut=0),null==Bt&&(Bt=ke.length);Ut>>1;o(ke[li],st)<0?Ut=li+1:Bt=li}return Ut}return 1===m.length&&(O=(ke,st)=>m(ke)-st,o=function K4(m){return(O,o)=>Ka(m(O),o)}(m)),{left:y,center:function q(ke,st,Ut,Bt){null==Ut&&(Ut=0),null==Bt&&(Bt=ke.length);const li=y(ke,st,Ut,Bt-1);return li>Ut&&O(ke[li-1],st)>-O(ke[li],st)?li-1:li},right:function V(ke,st,Ut,Bt){for(null==Ut&&(Ut=0),null==Bt&&(Bt=ke.length);Ut>>1;o(ke[li],st)>0?Bt=li:Ut=li+1}return Ut}}}["w","e"].map(ja),["n","s"].map(ja),["n","w","e","s","nw","ne","sw","se"].map(ja);var Ls=Math.sqrt(50),P1=Math.sqrt(10),N1=Math.sqrt(2);function P2(m,O,o){var y=(O-m)/Math.max(0,o),V=Math.floor(Math.log(y)/Math.LN10),q=y/Math.pow(10,V);return V>=0?(q>=Ls?10:q>=P1?5:q>=N1?2:1)*Math.pow(10,V):-Math.pow(10,-V)/(q>=Ls?10:q>=P1?5:q>=N1?2:1)}function R1(m,O,o){var y=Math.abs(O-m)/Math.max(0,o),V=Math.pow(10,Math.floor(Math.log(y)/Math.LN10)),q=y/V;return q>=Ls?V*=10:q>=P1?V*=5:q>=N1&&(V*=2),O0))return Ut;do{Ut.push(Bt=new Date(+q)),O(q,st),m(q)}while(Bt=ke)for(;m(ke),!q(ke);)ke.setTime(ke-1)},function(ke,st){if(ke>=ke)if(st<0)for(;++st<=0;)for(;O(ke,-1),!q(ke););else for(;--st>=0;)for(;O(ke,1),!q(ke););})},o&&(V.count=function(q,ke){return H1.setTime(+q),F1.setTime(+ke),m(H1),m(F1),Math.floor(o(H1,F1))},V.every=function(q){return q=Math.floor(q),isFinite(q)&&q>0?q>1?V.filter(y?function(ke){return y(ke)%q==0}:function(ke){return V.count(0,ke)%q==0}):V:null}),V}var Go=pa(function(){},function(m,O){m.setTime(+m+O)},function(m,O){return O-m});Go.every=function(m){return m=Math.floor(m),isFinite(m)&&m>0?m>1?pa(function(O){O.setTime(Math.floor(O/m)*m)},function(O,o){O.setTime(+O+o*m)},function(O,o){return(o-O)/m}):Go:null};const $l=Go;const Zo=pa(function(m){m.setTime(m-m.getMilliseconds())},function(m,O){m.setTime(+m+O*Ss)},function(m,O){return(O-m)/Ss},function(m){return m.getUTCSeconds()});const o1=pa(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Ss)},function(m,O){m.setTime(+m+O*Qa)},function(m,O){return(O-m)/Qa},function(m){return m.getMinutes()});const R2=pa(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Ss-m.getMinutes()*Qa)},function(m,O){m.setTime(+m+O*us)},function(m,O){return(O-m)/us},function(m){return m.getHours()});const co=pa(m=>m.setHours(0,0,0,0),(m,O)=>m.setDate(m.getDate()+O),(m,O)=>(O-m-(O.getTimezoneOffset()-m.getTimezoneOffset())*Qa)/Eo,m=>m.getDate()-1);function Ns(m){return pa(function(O){O.setDate(O.getDate()-(O.getDay()+7-m)%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 Es=Ns(0),l1=Ns(1),Ts=(Ns(2),Ns(3),Ns(4));const B2=(Ns(5),Ns(6),pa(function(m){m.setDate(1),m.setHours(0,0,0,0)},function(m,O){m.setMonth(m.getMonth()+O)},function(m,O){return O.getMonth()-m.getMonth()+12*(O.getFullYear()-m.getFullYear())},function(m){return m.getMonth()}));var G1=pa(function(m){m.setMonth(0,1),m.setHours(0,0,0,0)},function(m,O){m.setFullYear(m.getFullYear()+O)},function(m,O){return O.getFullYear()-m.getFullYear()},function(m){return m.getFullYear()});G1.every=function(m){return isFinite(m=Math.floor(m))&&m>0?pa(function(O){O.setFullYear(Math.floor(O.getFullYear()/m)*m),O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,o){O.setFullYear(O.getFullYear()+o*m)}):null};const As=G1;const U2=pa(function(m){m.setUTCSeconds(0,0)},function(m,O){m.setTime(+m+O*Qa)},function(m,O){return(O-m)/Qa},function(m){return m.getUTCMinutes()});const Ve=pa(function(m){m.setUTCMinutes(0,0,0)},function(m,O){m.setTime(+m+O*us)},function(m,O){return(O-m)/us},function(m){return m.getUTCHours()});const pt=pa(function(m){m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCDate(m.getUTCDate()+O)},function(m,O){return(O-m)/Eo},function(m){return m.getUTCDate()-1});function xn(m){return pa(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-m)%7),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCDate(O.getUTCDate()+7*o)},function(O,o){return(o-O)/Qs})}var _r=xn(0),Un=xn(1),ar=(xn(2),xn(3),xn(4));const $4=(xn(5),xn(6),pa(function(m){m.setUTCDate(1),m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCMonth(m.getUTCMonth()+O)},function(m,O){return O.getUTCMonth()-m.getUTCMonth()+12*(O.getUTCFullYear()-m.getUTCFullYear())},function(m){return m.getUTCMonth()}));var G2=pa(function(m){m.setUTCMonth(0,1),m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCFullYear(m.getUTCFullYear()+O)},function(m,O){return O.getUTCFullYear()-m.getUTCFullYear()},function(m){return m.getUTCFullYear()});G2.every=function(m){return isFinite(m=Math.floor(m))&&m>0?pa(function(O){O.setUTCFullYear(Math.floor(O.getUTCFullYear()/m)*m),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCFullYear(O.getUTCFullYear()+o*m)}):null};const Y1=G2;function c1(m,O,o,y,V,q){const ke=[[Zo,1,Ss],[Zo,5,5e3],[Zo,15,15e3],[Zo,30,3e4],[q,1,Qa],[q,5,5*Qa],[q,15,15*Qa],[q,30,30*Qa],[V,1,us],[V,3,3*us],[V,6,6*us],[V,12,12*us],[y,1,Eo],[y,2,2*Eo],[o,1,Qs],[O,1,a1],[O,3,3*a1],[m,1,oo]];function Ut(Bt,li,bi){const wi=Math.abs(li-Bt)/bi,Di=so(([,,Ii])=>Ii).right(ke,wi);if(Di===ke.length)return m.every(R1(Bt/oo,li/oo,bi));if(0===Di)return $l.every(Math.max(R1(Bt,li,bi),1));const[rn,vn]=ke[wi/ke[Di-1][2][O.toLowerCase(),o]))}function r0(m,O,o){var y=wa.exec(O.slice(o,o+1));return y?(m.w=+y[0],o+y[0].length):-1}function w6(m,O,o){var y=wa.exec(O.slice(o,o+1));return y?(m.u=+y[0],o+y[0].length):-1}function L6(m,O,o){var y=wa.exec(O.slice(o,o+2));return y?(m.U=+y[0],o+y[0].length):-1}function a0(m,O,o){var y=wa.exec(O.slice(o,o+2));return y?(m.V=+y[0],o+y[0].length):-1}function q1(m,O,o){var y=wa.exec(O.slice(o,o+2));return y?(m.W=+y[0],o+y[0].length):-1}function l3(m,O,o){var y=wa.exec(O.slice(o,o+4));return y?(m.y=+y[0],o+y[0].length):-1}function J1(m,O,o){var y=wa.exec(O.slice(o,o+2));return y?(m.y=+y[0]+(+y[0]>68?1900:2e3),o+y[0].length):-1}function S6(m,O,o){var y=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(o,o+6));return y?(m.Z=y[1]?0:-(y[2]+(y[3]||"00")),o+y[0].length):-1}function oa(m,O,o){var y=wa.exec(O.slice(o,o+1));return y?(m.q=3*y[0]-3,o+y[0].length):-1}function s0(m,O,o){var y=wa.exec(O.slice(o,o+2));return y?(m.m=y[0]-1,o+y[0].length):-1}function c3(m,O,o){var y=wa.exec(O.slice(o,o+2));return y?(m.d=+y[0],o+y[0].length):-1}function d3(m,O,o){var y=wa.exec(O.slice(o,o+3));return y?(m.m=0,m.d=+y[0],o+y[0].length):-1}function Y2(m,O,o){var y=wa.exec(O.slice(o,o+2));return y?(m.H=+y[0],o+y[0].length):-1}function E6(m,O,o){var y=wa.exec(O.slice(o,o+2));return y?(m.M=+y[0],o+y[0].length):-1}function o0(m,O,o){var y=wa.exec(O.slice(o,o+2));return y?(m.S=+y[0],o+y[0].length):-1}function T6(m,O,o){var y=wa.exec(O.slice(o,o+3));return y?(m.L=+y[0],o+y[0].length):-1}function l0(m,O,o){var y=wa.exec(O.slice(o,o+6));return y?(m.L=Math.floor(y[0]/1e3),o+y[0].length):-1}function A6(m,O,o){var y=W2.exec(O.slice(o,o+1));return y?o+y[0].length:-1}function D6(m,O,o){var y=wa.exec(O.slice(o));return y?(m.Q=+y[0],o+y[0].length):-1}function o8(m,O,o){var y=wa.exec(O.slice(o));return y?(m.s=+y[0],o+y[0].length):-1}function Ko(m,O){return sr(m.getDate(),O,2)}function ts(m,O){return sr(m.getHours(),O,2)}function X1(m,O){return sr(m.getHours()%12||12,O,2)}function c0(m,O){return sr(1+co.count(As(m),m),O,3)}function u3(m,O){return sr(m.getMilliseconds(),O,3)}function qa(m,O){return u3(m,O)+"000"}function $1(m,O){return sr(m.getMonth()+1,O,2)}function h3(m,O){return sr(m.getMinutes(),O,2)}function I6(m,O){return sr(m.getSeconds(),O,2)}function O6(m){var O=m.getDay();return 0===O?7:O}function d0(m,O){return sr(Es.count(As(m)-1,m),O,2)}function u0(m){var O=m.getDay();return O>=4||0===O?Ts(m):Ts.ceil(m)}function f3(m,O){return m=u0(m),sr(Ts.count(As(m),m)+(4===As(m).getDay()),O,2)}function k6(m){return m.getDay()}function p3(m,O){return sr(l1.count(As(m)-1,m),O,2)}function h0(m,O){return sr(m.getFullYear()%100,O,2)}function P6(m,O){return sr((m=u0(m)).getFullYear()%100,O,2)}function m3(m,O){return sr(m.getFullYear()%1e4,O,4)}function N6(m,O){var o=m.getDay();return sr((m=o>=4||0===o?Ts(m):Ts.ceil(m)).getFullYear()%1e4,O,4)}function g3(m){var O=m.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+sr(O/60|0,"0",2)+sr(O%60,"0",2)}function j2(m,O){return sr(m.getUTCDate(),O,2)}function R6(m,O){return sr(m.getUTCHours(),O,2)}function C3(m,O){return sr(m.getUTCHours()%12||12,O,2)}function K2(m,O){return sr(1+pt.count(Y1(m),m),O,3)}function f0(m,O){return sr(m.getUTCMilliseconds(),O,3)}function p0(m,O){return f0(m,O)+"000"}function H6(m,O){return sr(m.getUTCMonth()+1,O,2)}function F6(m,O){return sr(m.getUTCMinutes(),O,2)}function V6(m,O){return sr(m.getUTCSeconds(),O,2)}function m0(m){var O=m.getUTCDay();return 0===O?7:O}function z6(m,O){return sr(_r.count(Y1(m)-1,m),O,2)}function g0(m){var O=m.getUTCDay();return O>=4||0===O?ar(m):ar.ceil(m)}function B6(m,O){return m=g0(m),sr(ar.count(Y1(m),m)+(4===Y1(m).getUTCDay()),O,2)}function U6(m){return m.getUTCDay()}function G6(m,O){return sr(Un.count(Y1(m)-1,m),O,2)}function C0(m,O){return sr(m.getUTCFullYear()%100,O,2)}function _0(m,O){return sr((m=g0(m)).getUTCFullYear()%100,O,2)}function v0(m,O){return sr(m.getUTCFullYear()%1e4,O,4)}function u1(m,O){var o=m.getUTCDay();return sr((m=o>=4||0===o?ar(m):ar.ceil(m)).getUTCFullYear()%1e4,O,4)}function qs(){return"+0000"}function Z6(){return"%"}function W6(m){return+m}function _3(m){return Math.floor(+m/1e3)}function h1(m){return null===m?NaN:+m}!function x0(m){(function s8(m){var O=m.dateTime,o=m.date,y=m.time,V=m.periods,q=m.days,ke=m.shortDays,st=m.months,Ut=m.shortMonths,Bt=jo(V),li=Q1(V),bi=jo(q),wi=Q1(q),Di=jo(ke),rn=Q1(ke),vn=jo(st),Ii=Q1(st),mn=jo(Ut),_n=Q1(Ut),gn={a:function ln(hn){return ke[hn.getDay()]},A:function rs(hn){return q[hn.getDay()]},b:function vr(hn){return Ut[hn.getMonth()]},B:function Da(hn){return st[hn.getMonth()]},c:null,d:Ko,e:Ko,f:qa,g:P6,G:N6,H:ts,I:X1,j:c0,L:u3,m:$1,M:h3,p:function Kr(hn){return V[+(hn.getHours()>=12)]},q:function ma(hn){return 1+~~(hn.getMonth()/3)},Q:W6,s:_3,S:I6,u:O6,U:d0,V:f3,w:k6,W:p3,x:null,X:null,y:h0,Y:m3,Z:g3,"%":Z6},Vn={a:function No(hn){return ke[hn.getUTCDay()]},A:function xo(hn){return q[hn.getUTCDay()]},b:function Ar(hn){return Ut[hn.getUTCMonth()]},B:function L2(hn){return st[hn.getUTCMonth()]},c:null,d:j2,e:j2,f:p0,g:_0,G:u1,H:R6,I:C3,j:K2,L:f0,m:H6,M:F6,p:function Ga(hn){return V[+(hn.getUTCHours()>=12)]},q:function Vl(hn){return 1+~~(hn.getUTCMonth()/3)},Q:W6,s:_3,S:V6,u:m0,U:z6,V:B6,w:U6,W:G6,x:null,X:null,y:C0,Y:v0,Z:qs,"%":Z6},In={a:function Er(hn,Zn,er){var Ki=Di.exec(Zn.slice(er));return Ki?(hn.w=rn.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},A:function On(hn,Zn,er){var Ki=bi.exec(Zn.slice(er));return Ki?(hn.w=wi.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},b:function Sa(hn,Zn,er){var Ki=mn.exec(Zn.slice(er));return Ki?(hn.m=_n.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},B:function or(hn,Zn,er){var Ki=vn.exec(Zn.slice(er));return Ki?(hn.m=Ii.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},c:function Tr(hn,Zn,er){return wr(hn,O,Zn,er)},d:c3,e:c3,f:l0,g:J1,G:l3,H:Y2,I:Y2,j:d3,L:T6,m:s0,M:E6,p:function Pa(hn,Zn,er){var Ki=Bt.exec(Zn.slice(er));return Ki?(hn.p=li.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},q:oa,Q:D6,s:o8,S:o0,u:w6,U:L6,V:a0,w:r0,W:q1,x:function ns(hn,Zn,er){return wr(hn,o,Zn,er)},X:function ia(hn,Zn,er){return wr(hn,y,Zn,er)},y:J1,Y:l3,Z:S6,"%":A6};function wn(hn,Zn){return function(er){var ss,Nn,la,Ki=[],na=-1,yr=0,as=hn.length;for(er instanceof Date||(er=new Date(+er));++na53)return null;"w"in Ki||(Ki.w=1),"Z"in Ki?(as=(yr=Z2(K1(Ki.y,0,1))).getUTCDay(),yr=as>4||0===as?Un.ceil(yr):Un(yr),yr=pt.offset(yr,7*(Ki.V-1)),Ki.y=yr.getUTCFullYear(),Ki.m=yr.getUTCMonth(),Ki.d=yr.getUTCDate()+(Ki.w+6)%7):(as=(yr=j1(K1(Ki.y,0,1))).getDay(),yr=as>4||0===as?l1.ceil(yr):l1(yr),yr=co.offset(yr,7*(Ki.V-1)),Ki.y=yr.getFullYear(),Ki.m=yr.getMonth(),Ki.d=yr.getDate()+(Ki.w+6)%7)}else("W"in Ki||"U"in Ki)&&("w"in Ki||(Ki.w="u"in Ki?Ki.u%7:"W"in Ki?1:0),as="Z"in Ki?Z2(K1(Ki.y,0,1)).getUTCDay():j1(K1(Ki.y,0,1)).getDay(),Ki.m=0,Ki.d="W"in Ki?(Ki.w+6)%7+7*Ki.W-(as+5)%7:Ki.w+7*Ki.U-(as+6)%7);return"Z"in Ki?(Ki.H+=Ki.Z/100|0,Ki.M+=Ki.Z%100,Z2(Ki)):j1(Ki)}}function wr(hn,Zn,er,Ki){for(var ss,Nn,na=0,yr=Zn.length,as=er.length;na=as)return-1;if(37===(ss=Zn.charCodeAt(na++))){if(ss=Zn.charAt(na++),!(Nn=In[ss in n0?Zn.charAt(na++):ss])||(Ki=Nn(hn,er,Ki))<0)return-1}else if(ss!=er.charCodeAt(Ki++))return-1}return Ki}return gn.x=wn(o,gn),gn.X=wn(y,gn),gn.c=wn(O,gn),Vn.x=wn(o,Vn),Vn.X=wn(y,Vn),Vn.c=wn(O,Vn),{format:function(hn){var Zn=wn(hn+="",gn);return Zn.toString=function(){return hn},Zn},parse:function(hn){var Zn=fr(hn+="",!1);return Zn.toString=function(){return hn},Zn},utcFormat:function(hn){var Zn=wn(hn+="",Vn);return Zn.toString=function(){return hn},Zn},utcParse:function(hn){var Zn=fr(hn+="",!0);return Zn.toString=function(){return hn},Zn}}})(m)}({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 x3=so(Ka).right,K6=(so(h1),x3);function f1(m,O){return m=+m,O=+O,function(o){return Math.round(m*(1-o)+O*o)}}function M0(m){return+m}var w0=[0,1];function Ao(m){return m}function J2(m,O){return(O-=m=+m)?function(o){return(o-m)/O}:function q2(m){return function(){return m}}(isNaN(O)?NaN:.5)}function q6(m,O,o){var y=m[0],V=m[1],q=O[0],ke=O[1];return VO&&(o=m,m=O,O=o),function(y){return Math.max(m,Math.min(O,y))}}(m[0],m[wi-1])),st=wi>2?J6:q6,Ut=Bt=null,bi}function bi(wi){return null==wi||isNaN(wi=+wi)?q:(Ut||(Ut=st(m.map(y),O,o)))(y(ke(wi)))}return bi.invert=function(wi){return ke(V((Bt||(Bt=st(O,m.map(y),St)))(wi)))},bi.domain=function(wi){return arguments.length?(m=Array.from(wi,M0),li()):m.slice()},bi.range=function(wi){return arguments.length?(O=Array.from(wi),li()):O.slice()},bi.rangeRound=function(wi){return O=Array.from(wi),o=f1,li()},bi.clamp=function(wi){return arguments.length?(ke=!!wi||Ao,li()):ke!==Ao},bi.interpolate=function(wi){return arguments.length?(o=wi,li()):o},bi.unknown=function(wi){return arguments.length?(q=wi,bi):q},function(wi,Di){return y=wi,V=Di,li()}}()(Ao,Ao)}function Qo(m,O){switch(arguments.length){case 0:break;case 1:this.range(m);break;default:this.range(O).domain(m)}return this}var $2,qo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function t2(m){if(!(O=qo.exec(m)))throw new Error("invalid format: "+m);var O;return new X2({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 X2(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}function Jo(m,O){if((o=(m=O?m.toExponential(O-1):m.toExponential()).indexOf("e"))<0)return null;var o,y=m.slice(0,o);return[y.length>1?y[0]+y.slice(2):y,+m.slice(o+1)]}function p1(m){return(m=Jo(Math.abs(m)))?m[1]:NaN}function n2(m,O){var o=Jo(m,O);if(!o)return m+"";var y=o[0],V=o[1];return V<0?"0."+new Array(-V).join("0")+y:y.length>V+1?y.slice(0,V+1)+"."+y.slice(V+1):y+new Array(V-y.length+2).join("0")}t2.prototype=X2.prototype,X2.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 tl={"%":(m,O)=>(100*m).toFixed(O),b:m=>Math.round(m).toString(2),c:m=>m+"",d:function e5(m){return Math.abs(m=Math.round(m))>=1e21?m.toLocaleString("en").replace(/,/g,""):m.toString(10)},e:(m,O)=>m.toExponential(O),f:(m,O)=>m.toFixed(O),g:(m,O)=>m.toPrecision(O),o:m=>Math.round(m).toString(8),p:(m,O)=>n2(100*m,O),r:n2,s:function el(m,O){var o=Jo(m,O);if(!o)return m+"";var y=o[0],V=o[1],q=V-($2=3*Math.max(-8,Math.min(8,Math.floor(V/3))))+1,ke=y.length;return q===ke?y:q>ke?y+new Array(q-ke+1).join("0"):q>0?y.slice(0,q)+"."+y.slice(q):"0."+new Array(1-q).join("0")+Jo(m,Math.max(0,O+q-1))[0]},X:m=>Math.round(m).toString(16).toUpperCase(),x:m=>Math.round(m).toString(16)};function il(m){return m}var a2,rl,I0,E3=Array.prototype.map,nl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function l8(m){var O=m.domain;return m.ticks=function(o){var y=O();return function Xl(m,O,o){var y,q,ke,st,V=-1;if(o=+o,(m=+m)==(O=+O)&&o>0)return[m];if((y=O0){let Ut=Math.round(m/st),Bt=Math.round(O/st);for(Ut*stO&&--Bt,ke=new Array(q=Bt-Ut+1);++VO&&--Bt,ke=new Array(q=Bt-Ut+1);++V0;){if((Bt=P2(ke,st,o))===Ut)return y[V]=ke,y[q]=st,O(y);if(Bt>0)ke=Math.floor(ke/Bt)*Bt,st=Math.ceil(st/Bt)*Bt;else{if(!(Bt<0))break;ke=Math.ceil(ke*Bt)/Bt,st=Math.floor(st*Bt)/Bt}Ut=Bt}return m},m}function Do(){var m=M3();return m.copy=function(){return b3(m,Do())},Qo.apply(m,arguments),l8(m)}function k0(m,O,o){m=+m,O=+O,o=(V=arguments.length)<2?(O=m,m=0,1):V<3?1:+o;for(var y=-1,V=0|Math.max(0,Math.ceil((O-m)/o)),q=new Array(V);++y0&&st>0&&(Ut+st+1>y&&(st=Math.max(1,y-Ut)),q.push(o.substring(V-=st,V+st)),!((Ut+=st+1)>y));)st=m[ke=(ke+1)%m.length];return q.reverse().join(O)}}(E3.call(m.grouping,Number),m.thousands+""),o=void 0===m.currency?"":m.currency[0]+"",y=void 0===m.currency?"":m.currency[1]+"",V=void 0===m.decimal?".":m.decimal+"",q=void 0===m.numerals?il:function D0(m){return function(O){return O.replace(/[0-9]/g,function(o){return m[+o]})}}(E3.call(m.numerals,String)),ke=void 0===m.percent?"%":m.percent+"",st=void 0===m.minus?"\u2212":m.minus+"",Ut=void 0===m.nan?"NaN":m.nan+"";function Bt(bi){var wi=(bi=t2(bi)).fill,Di=bi.align,rn=bi.sign,vn=bi.symbol,Ii=bi.zero,mn=bi.width,_n=bi.comma,gn=bi.precision,Vn=bi.trim,In=bi.type;"n"===In?(_n=!0,In="g"):tl[In]||(void 0===gn&&(gn=12),Vn=!0,In="g"),(Ii||"0"===wi&&"="===Di)&&(Ii=!0,wi="0",Di="=");var wn="$"===vn?o:"#"===vn&&/[boxX]/.test(In)?"0"+In.toLowerCase():"",fr="$"===vn?y:/[%p]/.test(In)?ke:"",wr=tl[In],Pa=/[defgprs%]/.test(In);function Er(On){var Tr,ns,ia,Sa=wn,or=fr;if("c"===In)or=wr(On)+or,On="";else{var ln=(On=+On)<0||1/On<0;if(On=isNaN(On)?Ut:wr(Math.abs(On),gn),Vn&&(On=function S3(m){e:for(var V,O=m.length,o=1,y=-1;o0&&(y=0)}return y>0?m.slice(0,y)+m.slice(V+1):m}(On)),ln&&0==+On&&"+"!==rn&&(ln=!1),Sa=(ln?"("===rn?rn:st:"-"===rn||"("===rn?"":rn)+Sa,or=("s"===In?nl[8+$2/3]:"")+or+(ln&&"("===rn?")":""),Pa)for(Tr=-1,ns=On.length;++Tr(ia=On.charCodeAt(Tr))||ia>57){or=(46===ia?V+On.slice(Tr+1):On.slice(Tr))+or,On=On.slice(0,Tr);break}}_n&&!Ii&&(On=O(On,1/0));var rs=Sa.length+On.length+or.length,vr=rs>1)+Sa+On+or+vr.slice(rs);break;default:On=vr+Sa+On+or}return q(On)}return gn=void 0===gn?6:/[gprs]/.test(In)?Math.max(1,Math.min(21,gn)):Math.max(0,Math.min(20,gn)),Er.toString=function(){return bi+""},Er}return{format:Bt,formatPrefix:function li(bi,wi){var Di=Bt(((bi=t2(bi)).type="f",bi)),rn=3*Math.max(-8,Math.min(8,Math.floor(p1(wi)/3))),vn=Math.pow(10,-rn),Ii=nl[8+rn/3];return function(mn){return Di(vn*mn)+Ii}}}}(m),rl=a2.format,I0=a2.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const D3=Symbol("implicit");function I3(){var m=new Map,O=[],o=[],y=D3;function V(q){var ke=q+"",st=m.get(ke);if(!st){if(y!==D3)return y;m.set(ke,st=O.push(q))}return o[(st-1)%o.length]}return V.domain=function(q){if(!arguments.length)return O.slice();O=[],m=new Map;for(const ke of q){const st=ke+"";m.has(st)||m.set(st,O.push(ke))}return V},V.range=function(q){return arguments.length?(o=Array.from(q),V):o.slice()},V.unknown=function(q){return arguments.length?(y=q,V):y},V.copy=function(){return I3(O,o).unknown(y)},Qo.apply(V,arguments),V}function m1(){var q,ke,m=I3().unknown(void 0),O=m.domain,o=m.range,y=0,V=1,st=!1,Ut=0,Bt=0,li=.5;function bi(){var wi=O().length,Di=V=1)return+o(m[y-1],y-1,m);var y,V=(y-1)*O,q=Math.floor(V),ke=+o(m[q],q,m);return ke+(+o(m[q+1],q+1,m)-ke)*(V-q)}}function P0(){var y,m=[],O=[],o=[];function V(){var ke=0,st=Math.max(1,O.length);for(o=new Array(st-1);++ke0?o[st-1]:m[0],st{return(m=jn||(jn={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",m.Center="center",jn;var m})();function s4(m,O,o){return o===jn.Top?m.top-7:o===jn.Bottom?m.top+m.height-O.height+7:o===jn.Center?m.top+m.height/2-O.height/2:void 0}function o4(m,O,o){return o===jn.Left?m.left-7:o===jn.Right?m.left+m.width-O.width+7:o===jn.Center?m.left+m.width/2-O.width/2:void 0}class ps{static calculateVerticalAlignment(O,o,y){let V=s4(O,o,y);return V+o.height>window.innerHeight&&(V=window.innerHeight-o.height),V}static calculateVerticalCaret(O,o,y,V){let q;V===jn.Top&&(q=O.height/2-y.height/2+7),V===jn.Bottom&&(q=o.height-O.height/2-y.height/2-7),V===jn.Center&&(q=o.height/2-y.height/2);const ke=s4(O,o,V);return ke+o.height>window.innerHeight&&(q+=ke+o.height-window.innerHeight),q}static calculateHorizontalAlignment(O,o,y){let V=o4(O,o,y);return V+o.width>window.innerWidth&&(V=window.innerWidth-o.width),V}static calculateHorizontalCaret(O,o,y,V){let q;V===jn.Left&&(q=O.width/2-y.width/2+7),V===jn.Right&&(q=o.width-O.width/2-y.width/2-7),V===jn.Center&&(q=o.width/2-y.width/2);const ke=o4(O,o,V);return ke+o.width>window.innerWidth&&(q+=ke+o.width-window.innerWidth),q}static shouldFlip(O,o,y,V){let q=!1;return y===jn.Right&&O.left+O.width+o.width+V>window.innerWidth&&(q=!0),y===jn.Left&&O.left-o.width-V<0&&(q=!0),y===jn.Top&&O.top-o.height-V<0&&(q=!0),y===jn.Bottom&&O.top+O.height+o.height+V>window.innerHeight&&(q=!0),q}static positionCaret(O,o,y,V,q){let ke=0,st=0;return O===jn.Right?(st=-7,ke=ps.calculateVerticalCaret(y,o,V,q)):O===jn.Left?(st=o.width,ke=ps.calculateVerticalCaret(y,o,V,q)):O===jn.Top?(ke=o.height,st=ps.calculateHorizontalCaret(y,o,V,q)):O===jn.Bottom&&(ke=-7,st=ps.calculateHorizontalCaret(y,o,V,q)),{top:ke,left:st}}static positionContent(O,o,y,V,q){let ke=0,st=0;return O===jn.Right?(st=y.left+y.width+V,ke=ps.calculateVerticalAlignment(y,o,q)):O===jn.Left?(st=y.left-o.width-V,ke=ps.calculateVerticalAlignment(y,o,q)):O===jn.Top?(ke=y.top-o.height-V,st=ps.calculateHorizontalAlignment(y,o,q)):O===jn.Bottom&&(ke=y.top+y.height+V,st=ps.calculateHorizontalAlignment(y,o,q)),{top:ke,left:st}}static determinePlacement(O,o,y,V){if(ps.shouldFlip(y,o,O,V)){if(O===jn.Right)return jn.Left;if(O===jn.Left)return jn.Right;if(O===jn.Top)return jn.Bottom;if(O===jn.Bottom)return jn.Top}return O}}let Sc=(()=>{class m{constructor(o,y,V){this.element=o,this.renderer=y,this.platformId=V}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,e.NF)(this.platformId))return;const o=this.element.nativeElement,y=this.host.nativeElement.getBoundingClientRect();if(!y.height&&!y.width)return;const V=o.getBoundingClientRect();this.checkFlip(y,V),this.positionContent(o,y,V),this.showCaret&&this.positionCaret(y,V),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,y,V){const{top:q,left:ke}=ps.positionContent(this.placement,V,y,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${q}px`),this.renderer.setStyle(o,"left",`${ke}px`)}positionCaret(o,y){const V=this.caretElm.nativeElement,q=V.getBoundingClientRect(),{top:ke,left:st}=ps.positionCaret(this.placement,y,o,q,this.alignment);this.renderer.setStyle(V,"top",`${ke}px`),this.renderer.setStyle(V,"left",`${st}px`)}checkFlip(o,y){this.placement=ps.determinePlacement(this.placement,y,o,this.spacing)}onWindowResize(){this.position()}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,y){if(1&o&&t.Gf(a5,5),2&o){let V;t.iGM(V=t.CRH())&&(y.caretElm=V.first)}},hostVars:2,hostBindings:function(o,y){1&o&&t.NdJ("resize",function(){return y.onWindowResize()},!1,t.Jf7),2&o&&t.Tol(y.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,y){1&o&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,o5,2,4,"span",3),t.YNc(5,N0,1,1,"span",4),t.qZA()()),2&o&&(t.xp6(1),t.Gre("tooltip-caret position-",y.placement,""),t.Q6J("hidden",!y.showCaret),t.xp6(3),t.Q6J("ngIf",!y.title),t.xp6(1),t.Q6J("ngIf",y.title))},directives:[e.O5,e.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,f.gn)([Lc(100)],m.prototype,"onWindowResize",null),m})(),c4=(()=>{class m{constructor(o,y,V){this.applicationRef=o,this.componentFactoryResolver=y,this.injector=V}static setGlobalRootViewContainer(o){m.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(m.globalRootViewContainer)return m.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 l4(m){return m.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,y){if(y){if(void 0!==y.inputs){const V=Object.getOwnPropertyNames(y.inputs);for(const q of V)o.instance[q]=y.inputs[q]}if(void 0!==y.outputs){const V=Object.getOwnPropertyNames(y.outputs);for(const q of V)o.instance[q]=y.outputs[q]}}return o}appendComponent(o,y={},V){V||(V=this.getRootViewContainer());const q=this.getComponentRootNode(V),ke=new M.u0(q,this.componentFactoryResolver,this.applicationRef,this.injector),st=new M.C5(o),Ut=ke.attach(st);return this.projectComponentBindings(Ut,y),Ut}}return m.globalRootViewContainer=null,m.\u0275fac=function(o){return new(o||m)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})(),d4=(()=>{class m extends class Cd{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 y=this.injectComponent(O,o);return this.register(O,y),y}destroy(O){const o=this.components.get(O.componentType);if(o&&o.length){const y=o.indexOf(O);y>-1&&(o[y].destroy(),o.splice(y,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const o=this.components.get(O);if(o&&o.length){let y=o.length-1;for(;y>=0;)this.destroy(o[y--])}}injectComponent(O,o){return this.injectionService.appendComponent(O,o)}assignDefaults(O){const o=Object.assign({},this.defaults.inputs),y=Object.assign({},this.defaults.outputs);return!O.inputs&&!O.outputs&&(O={inputs:O}),o&&(O.inputs=Object.assign(Object.assign({},o),O.inputs)),y&&(O.outputs=Object.assign(Object.assign({},y),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=Sc}}return m.\u0275fac=function(o){return new(o||m)(t.LFG(c4))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})();var Vs=(()=>{return(m=Vs||(Vs={})).Right="right",m.Below="below",Vs;var m})(),$o=(()=>{return(m=$o||($o={})).ScaleLegend="scaleLegend",m.Legend="legend",$o;var m})(),En=(()=>{return(m=En||(En={})).Time="time",m.Linear="linear",m.Ordinal="ordinal",m.Quantile="quantile",En;var m})();let Sl=(()=>{class m{constructor(){this.horizontal=!1}ngOnChanges(o){const y=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${y})`}gradientString(o,y){y.push(1);const V=[];return o.reverse().forEach((q,ke)=>{V.push(`${q} ${Math.round(100*y[ke])}%`)}),V.join(", ")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(o,y){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&o&&(t.Udp("height",y.horizontal?void 0:y.height,"px")("width",y.width,"px"),t.ekj("horizontal-legend",y.horizontal),t.xp6(3),t.Oqu(y.valueRange[1].toLocaleString()),t.xp6(1),t.Udp("background",y.gradient),t.xp6(3),t.Oqu(y.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}),m})();function g2(m){return m instanceof Date?m.toLocaleDateString():m.toLocaleString()}let El=(()=>{class m{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,y){1&o&&t.NdJ("mouseenter",function(){return y.onMouseEnter()})("mouseleave",function(){return y.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,y){1&o&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return y.select.emit(y.formattedLabel)}),t.TgZ(1,"span",1),t.NdJ("click",function(){return y.toggle.emit(y.formattedLabel)}),t.qZA(),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&o&&(t.ekj("active",y.isActive),t.Q6J("title",y.formattedLabel),t.xp6(1),t.Udp("background-color",y.color),t.xp6(2),t.hij(" ",y.trimmedLabel," "))},encapsulation:2,changeDetection:0}),m})(),Tl=(()=>{class m{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const y of this.data){const V=g2(y);-1===o.findIndex(ke=>ke.label===V)&&o.push({label:y,formattedLabel:V,color:this.colors.getColor(y)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(V=>o.label===V.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,y){return y.label}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.sBO))},m.\u0275cmp=t.Xpm({type:m,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:[t.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,y){1&o&&(t.TgZ(0,"div"),t.YNc(1,Gn,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,R0,2,4,"li",3),t.qZA()()()),2&o&&(t.Udp("width",y.width,"px"),t.xp6(1),t.Q6J("ngIf",(null==y.title?null:y.title.length)>0),t.xp6(2),t.Udp("max-height",y.height-45,"px"),t.ekj("horizontal-legend",y.horizontal),t.xp6(1),t.Q6J("ngForOf",y.legendEntries)("ngForTrackBy",y.trackBy))},directives:[El,e.O5,e.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}),m})(),u4=(()=>{class m{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=Vs,this.LegendType=$o}ngOnChanges(o){this.update()}update(){let o=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Vs.Right)&&(o=this.legendType===$o.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Vs.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===En.Linear?$o.ScaleLegend:$o.Legend}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,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:[t._Bn([d4]),t.TTD],ngContentSelectors:s2,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,y){1&o&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,H0,1,5,"ngx-charts-scale-legend",2),t.YNc(4,F0,1,7,"ngx-charts-legend",3),t.qZA()),2&o&&(t.Udp("width",y.view[0],"px"),t.xp6(1),t.uIk("width",y.chartWidth)("height",y.view[1]),t.xp6(2),t.Q6J("ngIf",y.showLegend&&y.legendType===y.LegendType.ScaleLegend),t.xp6(1),t.Q6J("ngIf",y.showLegend&&y.legendType===y.LegendType.Legend))},directives:[Sl,Tl,e.O5],encapsulation:2,changeDetection:0}),m})(),Y8=(()=>{class m{constructor(o,y){this.element=o,this.zone=y,this.visible=new t.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:y,offsetWidth:V}=this.element.nativeElement;y&&V?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b))},m.\u0275dir=t.lG2({type:m,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),m})();function h4(m){return"[object Date]"===toString.call(m)}let Al=(()=>{class m{constructor(o,y,V,q){this.chartElement=o,this.zone=y,this.cd=V,this.platformId=q,this.scheme="cool",this.schemeType=En.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Y8(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,y;const V=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==V.parentNode){const q=V.parentNode.getBoundingClientRect();o=q.width,y=q.height}return o&&y?{width:o,height:y}:null}formatDates(){for(let o=0;o{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=y}cloneData(o){const y=[];for(const V of o){const q={name:V.name};if(void 0!==V.value&&(q.value=V.value),void 0!==V.series){q.series=[];for(const ke of V.series){const st=Object.assign({},ke);q.series.push(st)}}void 0!==V.extra&&(q.extra=JSON.parse(JSON.stringify(V.extra))),y.push(q)}return y}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(o,y){1&o&&t._UZ(0,"div")},encapsulation:2}),m})();var La=(()=>{return(m=La||(La={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",La;var m})();let Ec=(()=>{class m{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 La.Top:case La.Bottom:this.y=this.offset,this.x=this.width/2;break;case La.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case La.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:Is,decls:2,vars:6,template:function(o,y){1&o&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&o&&(t.uIk("stroke-width",y.strokeWidth)("x",y.x)("y",y.y)("text-anchor",y.textAnchor)("transform",y.transform),t.xp6(1),t.hij(" ",y.label," "))},encapsulation:2,changeDetection:0}),m})();function ko(m,O=16){return"string"!=typeof m?"number"==typeof m?m+"":"":(m=m.trim()).length<=O?m:`${m.slice(0,O)}...`}function f4(m,O){if(m.length>O){const o=[],y=Math.floor(m.length/O);for(let V=0;V{return(m=ks||(ks={})).Start="start",m.Middle="middle",m.End="end",ks;var m})();let p4=(()=>{class m{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 t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=ks.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.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(V){return"Date"===V.constructor.name?V.toLocaleDateString():V.toLocaleString()};const y=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(V){return this.scale(V)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",y&&0!==y?(this.textTransform=`rotate(${y})`,this.textAnchor=ks.End,this.verticalSpacing=10):this.textAnchor=ks.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(o){let y=0;this.maxTicksLength=0;for(let Bt=0;Btthis.maxTicksLength&&(this.maxTicksLength=bi)}const ke=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let st=ke;const Ut=Math.floor(this.width/o.length);for(;st>Ut&&y>-90;)y-=30,st=Math.cos(y*(Math.PI/180))*ke;return this.approxHeight=Math.max(Math.abs(Math.sin(y*(Math.PI/180))*ke),10),y}getTicks(){let o;const y=this.getMaxTicks(20),V=this.getMaxTicks(100);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[V]):(o=this.scale.domain(),o=f4(o,y)),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?ko(o,this.maxTickLength):o}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(o,y){if(1&o&&t.Gf(O3,5),2&o){let V;t.iGM(V=t.CRH())&&(y.ticksElement=V.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:[t.TTD],attrs:V0,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,y){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,k3,5,7,"g",1),t.qZA(),t.YNc(3,P3,2,2,"g",2)),2&o&&(t.xp6(2),t.Q6J("ngForOf",y.ticks),t.xp6(1),t.Q6J("ngForOf",y.ticks))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),Dl=(()=>{class m{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=La.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new t.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=La}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 y=o+25+5;y!==this.labelOffset&&(this.labelOffset=y,setTimeout(()=>{this.dimensionsChanged.emit({height:o})},0))}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(o,y){if(1&o&&t.Gf(p4,5),2&o){let V;t.iGM(V=t.CRH())&&(y.ticksComponent=V.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:[t.TTD],attrs:z0,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,y){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,sl,1,12,"g",0),t.YNc(2,d8,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",y.xAxisClassName)("transform",y.transform),t.xp6(1),t.Q6J("ngIf",y.xScale),t.xp6(1),t.Q6J("ngIf",y.showLabel))},directives:[p4,Ec,e.O5],encapsulation:2,changeDetection:0}),m})();function Ps(m,O,o,y,V,[q,ke,st,Ut]){let Bt="";return Bt=`M${[m+V,O]}`,Bt+="h"+((o=0===(o=Math.floor(o))?1:o)-2*V),Bt+=ke?`a${[V,V]} 0 0 1 ${[V,V]}`:`h${V}v${V}`,Bt+="v"+((y=0===(y=Math.floor(y))?1:y)-2*V),Bt+=Ut?`a${[V,V]} 0 0 1 ${[-V,V]}`:`v${V}h${-V}`,Bt+="h"+(2*V-o),Bt+=st?`a${[V,V]} 0 0 1 ${[-V,-V]}`:`h${-V}v${-V}`,Bt+="v"+(2*V-y),Bt+=q?`a${[V,V]} 0 0 1 ${[V,-V]}`:`v${-V}h${V}`,Bt+="z",Bt}let Tc=(()=>{class m{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 t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=ks.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=La}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.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 y=this.orient===La.Top||this.orient===La.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(V){return"Date"===V.constructor.name?V.toLocaleDateString():V.toLocaleString()},this.adjustedScale=o.bandwidth?function(V){return o(V)+.5*o.bandwidth()}:o,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case La.Top:case La.Bottom:this.transform=function(V){return"translate("+this.adjustedScale(V)+",0)"},this.textAnchor=ks.Middle,this.y2=this.innerTickSize*y,this.y1=this.tickSpacing*y,this.dy=y<0?"0em":".71em";break;case La.Left:this.transform=function(V){return"translate(0,"+this.adjustedScale(V)+")"},this.textAnchor=ks.End,this.x2=this.innerTickSize*-y,this.x1=this.tickSpacing*-y,this.dy=".32em";break;case La.Right:this.transform=function(V){return"translate(0,"+this.adjustedScale(V)+")"},this.textAnchor=ks.Start,this.x2=this.innerTickSize*-y,this.x1=this.tickSpacing*-y,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 y=this.getMaxTicks(20),V=this.getMaxTicks(50);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[V]):(o=this.scale.domain(),o=f4(o,y)),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?ko(o,this.maxTickLength):o}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(V=>this.tickTrim(this.tickFormat(V)).length))}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(o,y){if(1&o&&t.Gf(O3,5),2&o){let V;t.iGM(V=t.CRH())&&(y.ticksElement=V.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:[t.TTD],attrs:N3,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,y){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,u8,5,9,"g",1),t.qZA(),t.YNc(3,ol,1,2,"path",2),t.YNc(4,H3,2,2,"g",3),t.YNc(5,c5,2,1,"g",3)),2&o&&(t.xp6(2),t.Q6J("ngForOf",y.ticks),t.xp6(1),t.Q6J("ngIf",y.referenceLineLength>1&&y.refMax&&y.refMin&&y.showRefLines),t.xp6(1),t.Q6J("ngForOf",y.ticks),t.xp6(1),t.Q6J("ngForOf",y.referenceLines))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),m4=(()=>{class m{constructor(){this.showGridLines=!1,this.yOrient=La.Left,this.yAxisOffset=0,this.dimensionsChanged=new t.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===La.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===La.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 m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(o,y){if(1&o&&t.Gf(Tc,5),2&o){let V;t.iGM(V=t.CRH())&&(y.ticksComponent=V.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:[t.TTD],attrs:dl,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,y){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,d5,1,14,"g",0),t.YNc(2,B0,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",y.yAxisClassName)("transform",y.transform),t.xp6(1),t.Q6J("ngIf",y.yScale),t.xp6(1),t.Q6J("ngIf",y.showLabel))},directives:[Tc,Ec,e.O5],encapsulation:2,changeDetection:0}),m})(),Ac=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez]]}),m})();var e1=(()=>{return(m=e1||(e1={})).popover="popover",m.tooltip="tooltip",e1;var m})(),Po=(()=>{return(m=Po||(Po={}))[m.all="all"]="all",m[m.focus="focus"]="focus",m[m.mouseover="mouseover"]="mouseover",Po;var m})();let g4=(()=>{class m{constructor(o,y,V){this.tooltipService=o,this.viewContainerRef=y,this.renderer=V,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=jn.Top,this.tooltipAlignment=jn.Center,this.tooltipType=e1.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Po.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Po.all||this.tooltipShowEvent===Po.focus}get listensForHover(){return this.tooltipShowEvent===Po.all||this.tooltipShowEvent===Po.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 y=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 V=this.createBoundOptions();this.component=this.tooltipService.create(V),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},y)}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",y=>{o.contains(y.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const y=()=>{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?y():this.timeout=setTimeout(y,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 m.\u0275fac=function(o){return new(o||m)(t.Y36(d4),t.Y36(t.s_b),t.Y36(t.Qsj))},m.\u0275dir=t.lG2({type:m,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,y){1&o&&t.NdJ("focusin",function(){return y.onFocus()})("blur",function(){return y.onBlur()})("mouseenter",function(){return y.onMouseEnter()})("mouseleave",function(q){return y.onMouseLeave(q.target)})("click",function(){return y.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"}}),m})(),Dc=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({providers:[c4,d4],imports:[[e.ez]]}),m})();const C4={};function _2(){let m=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return m=`a${m}`,C4[m]?_2():(C4[m]=!0,m)}var ta=(()=>{return(m=ta||(ta={})).Vertical="vertical",m.Horizontal="horizontal",ta;var m})();let b1=(()=>{class m{constructor(){this.orientation=ta.Vertical}ngOnChanges(o){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===ta.Horizontal?this.x2="100%":this.orientation===ta.Vertical&&(this.y1="100%")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:f8,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,y){1&o&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,U0,1,5,"stop",1),t.qZA()),2&o&&(t.Q6J("id",y.name),t.uIk("x1",y.x1)("y1",y.y1)("x2",y.x2)("y2",y.y2),t.xp6(1),t.Q6J("ngForOf",y.stops))},directives:[e.sg],encapsulation:2,changeDetection:0}),m})(),Ic=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:g8,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(o,y){1&o&&(t.O4$(),t._UZ(0,"rect",0)),2&o&&t.uIk("height",y.height)("width",y.width)("x",y.x)("y",y.y)},encapsulation:2,changeDetection:0}),m})();var y2=(()=>{return(m=y2||(y2={})).Odd="odd",m.Even="even",y2;var m})();let b2,M1=(()=>{class m{ngOnChanges(o){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(o=>{let y,V,q,ke,st,Ut=y2.Odd;if(this.orient===ta.Vertical){const Bt=this.xScale(o.name);Number.parseInt((Bt/this.xScale.step()).toString(),10)%2==1&&(Ut=y2.Even),y=this.xScale.bandwidth()*this.xScale.paddingInner(),V=this.xScale.bandwidth()+y,q=this.dims.height,ke=this.xScale(o.name)-y/2,st=0}else if(this.orient===ta.Horizontal){const Bt=this.yScale(o.name);Number.parseInt((Bt/this.yScale.step()).toString(),10)%2==1&&(Ut=y2.Even),y=this.yScale.bandwidth()*this.yScale.paddingInner(),V=this.dims.width,q=this.yScale.bandwidth()+y,ke=0,st=this.yScale(o.name)-y/2}return{name:o.name,class:Ut,height:q,width:V,x:ke,y:st}})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:u5,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,y){1&o&&t.YNc(0,C8,1,10,"g",0),2&o&&t.Q6J("ngForOf",y.gridPanels)},directives:[Ic,e.sg],encapsulation:2,changeDetection:0}),m})();"undefined"!=typeof window?b2=window:"undefined"!=typeof global&&(b2=global);let ms=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez,Ac,Dc],e.ez,Ac,Dc]}),m})();function Nl({width:m,height:O,margins:o,showXAxis:y=!1,showYAxis:V=!1,xAxisHeight:q=0,yAxisWidth:ke=0,showXLabel:st=!1,showYLabel:Ut=!1,showLegend:Bt=!1,legendType:li=En.Ordinal,legendPosition:bi=Vs.Right,columns:wi=12}){let Di=o[3],rn=m,vn=O-o[0]-o[2];return Bt&&bi===Vs.Right&&(wi-=li===En.Ordinal?2:1),rn=rn*wi/12,rn=rn-o[1]-o[3],y&&(vn-=5,vn-=q,st&&(vn-=30)),V&&(rn-=5,rn-=ke,Di+=ke,Di+=10,Ut&&(rn-=30,Di+=30)),rn=Math.max(0,rn),vn=Math.max(0,vn),{width:Math.floor(rn),height:Math.floor(vn),xOffset:Math.floor(Di)}}let M4=[{name:"vivid",selectable:!0,group:En.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:En.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:En.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:En.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:En.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:En.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:En.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:En.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:En.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:En.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:En.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:En.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:En.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:En.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:En.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class M2{constructor(O,o,y,V){"string"==typeof O&&(O=M4.find(q=>q.name===O)),this.colorDomain=O.domain,this.scaleType=o,this.domain=y,this.customColors=V,this.scale=this.generateColorScheme(O,o,this.domain)}generateColorScheme(O,o,y){let V;switch("string"==typeof O&&(O=M4.find(q=>q.name===O)),o){case En.Quantile:V=P0().range(O.domain).domain(y);break;case En.Ordinal:V=I3().range(O.domain).domain(y);break;case En.Linear:{const q=[...O.domain];1===q.length&&(q.push(q[0]),this.colorDomain=q);const ke=k0(0,1,1/q.length);V=Do().range(q).domain(ke)}}return V}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===En.Linear){const o=Do().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 y;return this.customColors&&this.customColors.length>0&&(y=this.customColors.find(V=>V.name.toLowerCase()===o.toLowerCase())),y?y.value:this.scale(O)}}getLinearGradientStops(O,o){void 0===o&&(o=this.domain[0]);const y=Do().domain(this.domain).range([0,1]),V=m1().domain(this.colorDomain).range([0,1]),q=this.getColor(O),ke=y(o),st=this.getColor(o),Ut=y(O);let Bt=1,li=ke;const bi=[];for(bi.push({color:st,offset:ke,originalOffset:ke,opacity:1});li=(Ut-V.bandwidth()).toFixed(4))break;bi.push({color:wi,offset:Di,opacity:1}),li=Di,Bt++}}if(bi[bi.length-1].offset<100&&bi.push({color:q,offset:Ut,opacity:1}),Ut===ke)bi[0].offset=0,bi[1].offset=100;else if(100!==bi[bi.length-1].offset)for(const wi of bi)wi.offset=(wi.offset-ke)/(Ut-ke)*100;return bi}}let Rl=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Hc=(()=>{class m{constructor(o){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=o.nativeElement}ngOnChanges(o){o.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+_2().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 Kt(m){return"string"==typeof m?new Mi([[document.querySelector(m)]],[document.documentElement]):new Mi([[m]],Vt)}(this.element).select(".bar"),y=this.getPath();this.animations?o.transition().duration(500).attr("d",y):o.attr("d",y)}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 y,o=this.getRadius();return this.roundEdges?this.orientation===ta.Vertical?(o=Math.min(this.height,o),y=Ps(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===ta.Horizontal&&(o=Math.min(this.width,o),y=Ps(this.x,this.y,1,this.height,0,this.edges)):this.orientation===ta.Vertical?y=Ps(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===ta.Horizontal&&(y=Ps(this.x,this.y,1,this.height,0,this.edges)),y}getPath(){let y,o=this.getRadius();return this.roundEdges?this.orientation===ta.Vertical?(o=Math.min(this.height,o),y=Ps(this.x,this.y,this.width,this.height,o,this.edges)):this.orientation===ta.Horizontal&&(o=Math.min(this.width,o),y=Ps(this.x,this.y,this.width,this.height,o,this.edges)):y=Ps(this.x,this.y,this.width,this.height,o,this.edges),y}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===ta.Vertical?o=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===ta.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===ta.Vertical&&0===this.height||this.orientation===ta.Horizontal&&0===this.width)}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(o,y){1&o&&t.NdJ("mouseenter",function(){return y.onMouseEnter()})("mouseleave",function(){return y.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:[t.TTD],attrs:b5,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,y){1&o&&(t.YNc(0,fs,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return y.select.emit(y.data)}),t.qZA()),2&o&&(t.Q6J("ngIf",y.hasGradient),t.xp6(1),t.ekj("active",y.isActive)("hidden",y.hideBar),t.uIk("d",y.path)("aria-label",y.ariaLabel)("fill",y.hasGradient?y.gradientFill:y.fill))},directives:[b1,e.O5],encapsulation:2,changeDetection:0}),m})();var zs=(()=>{return(m=zs||(zs={})).Standard="standard",m.Normalized="normalized",m.Stacked="stacked",zs;var m})(),vo=(()=>{return(m=vo||(vo={})).positive="positive",m.negative="negative",vo;var m})();let Fc=(()=>{class m{constructor(o){this.dimensionsChanged=new t.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):g2(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 m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,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:[t.TTD],attrs:M5,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(o,y){1&o&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&o&&(t.uIk("text-anchor",y.textAnchor)("transform",y.transform)("x",y.x)("y",y.y),t.xp6(1),t.hij(" ",y.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),m})(),Vc=(()=>{class m{constructor(o){this.platformId=o,this.type=zs.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.dataLabelHeightChanged=new t.vpe,this.barsForDataLabels=[],this.barOrientation=ta,this.isSSR=!1}ngOnInit(){(0,e.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 y=Math.max(this.yScale.domain()[0],0),V={[vo.positive]:0,[vo.negative]:0};let ke,q=vo.positive;this.type===zs.Normalized&&(ke=this.series.map(st=>st.value).reduce((st,Ut)=>st+Ut,0)),this.bars=this.series.map((st,Ut)=>{let Bt=st.value;const li=this.getLabel(st),bi=g2(li);q=Bt>0?vo.positive:vo.negative;const Di={value:Bt,label:li,roundEdges:this.roundEdges,data:st,width:o,formattedLabel:bi,height:0,x:0,y:0};if(this.type===zs.Standard)Di.height=Math.abs(this.yScale(Bt)-this.yScale(y)),Di.x=this.xScale(li),Di.y=this.yScale(Bt<0?0:Bt);else if(this.type===zs.Stacked){const vn=V[q],Ii=vn+Bt;V[q]+=Bt,Di.height=this.yScale(vn)-this.yScale(Ii),Di.x=0,Di.y=this.yScale(Ii),Di.offset0=vn,Di.offset1=Ii}else if(this.type===zs.Normalized){let vn=V[q],Ii=vn+Bt;V[q]+=Bt,ke>0?(vn=100*vn/ke,Ii=100*Ii/ke):(vn=0,Ii=0),Di.height=this.yScale(vn)-this.yScale(Ii),Di.x=0,Di.y=this.yScale(Ii),Di.offset0=vn,Di.offset1=Ii,Bt=(Ii-vn).toFixed(2)+"%"}this.colors.scaleType===En.Ordinal?Di.color=this.colors.getColor(li):this.type===zs.Standard?(Di.color=this.colors.getColor(Bt),Di.gradientStops=this.colors.getLinearGradientStops(Bt)):(Di.color=this.colors.getColor(Di.offset1),Di.gradientStops=this.colors.getLinearGradientStops(Di.offset1,Di.offset0));let rn=bi;return Di.ariaLabel=bi+" "+Bt.toLocaleString(),null!=this.seriesName&&(rn=`${this.seriesName} \u2022 ${bi}`,Di.data.series=this.seriesName,Di.ariaLabel=this.seriesName+" "+Di.ariaLabel),Di.tooltipText=this.tooltipDisabled?void 0:`\n ${function C2(m){return m.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[O]))}(rn)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(Bt):Bt.toLocaleString()}\n `,Di}),this.updateDataLabels()}updateDataLabels(){if(this.type===zs.Stacked){this.barsForDataLabels=[];const o={};o.series=this.seriesName;const y=this.series.map(q=>q.value).reduce((q,ke)=>ke>0?q+ke:q,0),V=this.series.map(q=>q.value).reduce((q,ke)=>ke<0?q+ke:q,0);o.total=y+V,o.x=0,o.y=0,o.height=this.yScale(o.total>0?y:V),o.width=this.xScale.bandwidth(),this.barsForDataLabels.push(o)}else this.barsForDataLabels=this.series.map(o=>{var y;const V={};return V.series=null!==(y=this.seriesName)&&void 0!==y?y:o.label,V.total=o.value,V.x=this.xScale(o.label),V.y=this.yScale(0),V.height=this.yScale(V.total)-this.yScale(0),V.width=this.xScale.bandwidth(),V})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:jn.Top,this.tooltipType=this.tooltipDisabled?void 0:e1.tooltip}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(V=>o.name===V.name&&o.value===V.value)}onClick(o){this.select.emit(o)}getLabel(o){return o.label?o.label:o.name}trackBy(o,y){return y.label}trackDataLabelBy(o,y){return o+"#"+y.series+"#"+y.total}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,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:[t.TTD],attrs:K3,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,y){1&o&&(t.YNc(0,sc,2,2,"g",0),t.YNc(1,gl,2,2,"g",0),t.YNc(2,oc,2,2,"g",0)),2&o&&(t.Q6J("ngIf",!y.isSSR),t.xp6(1),t.Q6J("ngIf",y.isSSR),t.xp6(1),t.Q6J("ngIf",y.showDataLabel))},directives:[Hc,Fc,e.O5,e.sg,g4],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}),m})(),Dd=(()=>{class m extends Al{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Vs.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 t.vpe,this.deactivate=new t.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=Nl({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 m1().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const o=Do().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(q=>q.value);let y=this.yScaleMin?Math.min(this.yScaleMin,...o):Math.min(0,...o);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(y=Math.min(y,...this.yAxisTicks));let V=this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(V=Math.max(V,...this.yAxisTicks)),[y,V]}onClick(o){this.select.emit(o)}setColors(){let o;o=this.schemeType===En.Ordinal?this.xDomain:this.yDomain,this.colors=new M2(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===En.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,y=!1){o=this.results.find(q=>y?q.label===o.name:q.name===o.name),!(this.activeEntries.findIndex(q=>q.name===o.name&&q.value===o.value&&q.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,y=!1){o=this.results.find(q=>y?q.label===o.name:q.name===o.name);const V=this.activeEntries.findIndex(q=>q.name===o.name&&q.value===o.value&&q.series===o.series);this.activeEntries.splice(V,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}}return m.\u0275fac=function(){let O;return function(y){return(O||(O=t.n5z(m)))(y||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(o,y,V){if(1&o&&t.Suo(V,Y0,5),2&o){let q;t.iGM(q=t.CRH())&&(y.tooltipTemplate=q.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:[t.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,y){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function(q){return y.onClick(q)})("legendLabelActivate",function(q){return y.onActivate(q,!0)})("legendLabelDeactivate",function(q){return y.onDeactivate(q,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,Cl,1,11,"g",2),t.YNc(3,_l,1,9,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function(q){return y.onActivate(q)})("deactivate",function(q){return y.onDeactivate(q)})("select",function(q){return y.onClick(q)})("dataLabelHeightChanged",function(q){return y.onDataLabelMaxHeightChanged(q)}),t.qZA()()()),2&o&&(t.Q6J("view",t.WLB(22,Fs,y.width,y.height))("showLegend",y.legend)("legendOptions",y.legendOptions)("activeEntries",y.activeEntries)("animations",y.animations),t.xp6(1),t.uIk("transform",y.transform),t.xp6(1),t.Q6J("ngIf",y.xAxis),t.xp6(1),t.Q6J("ngIf",y.yAxis),t.xp6(1),t.Q6J("xScale",y.xScale)("yScale",y.yScale)("colors",y.colors)("series",y.results)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("activeEntries",y.activeEntries)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero))},directives:[u4,Dl,m4,Vc,e.O5],styles:[J0],encapsulation:2,changeDetection:0}),m})(),zc=(()=>{class m extends Al{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Vs.Right,this.tooltipDisabled=!1,this.scaleType=En.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 t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=ta,this.trackBy=(o,y)=>y.name}ngOnInit(){(0,e.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=Nl({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,y){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),y===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return m1().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)}getInnerScale(){const o=this.groupScale.bandwidth(),y=this.innerDomain.length/(o/this.barPadding+1);return m1().rangeRound([0,o]).paddingInner(y).domain(this.innerDomain)}getValueScale(){const o=Do().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o}getGroupDomain(){const o=[];for(const y of this.results)o.includes(y.label)||o.push(y.label);return o}getInnerDomain(){const o=[];for(const y of this.results)for(const V of y.series)o.includes(V.label)||o.push(V.label);return o}getValueDomain(){const o=[];for(const q of this.results)for(const ke of q.series)o.includes(ke.value)||o.push(ke.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,y){y&&(o.series=y.name),this.select.emit(o)}setColors(){let o;o=this.schemeType===En.Ordinal?this.innerDomain:this.valueDomain,this.colors=new M2(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===En.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,y,V=!1){const q=Object.assign({},o);y&&(q.series=y.name);const ke=this.results.map(st=>st.series).flat().filter(st=>V?st.label===q.name:st.name===q.name&&st.series===q.series);this.activeEntries=[...ke],this.activate.emit({value:q,entries:this.activeEntries})}onDeactivate(o,y,V=!1){const q=Object.assign({},o);y&&(q.series=y.name),this.activeEntries=this.activeEntries.filter(ke=>V?ke.label!==q.name:!(ke.name===q.name&&ke.series===q.series)),this.deactivate.emit({value:q,entries:this.activeEntries})}}return m.\u0275fac=function(){let O;return function(y){return(O||(O=t.n5z(m)))(y||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(o,y,V){if(1&o&&t.Suo(V,Y0,5),2&o){let q;t.iGM(q=t.CRH())&&(y.tooltipTemplate=q.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:[t.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,y){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function(q){return y.onActivate(q,void 0,!0)})("legendLabelDeactivate",function(q){return y.onDeactivate(q,void 0,!0)})("legendLabelClick",function(q){return y.onClick(q)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,R5,1,10,"g",3),t.YNc(4,vl,1,9,"g",4),t.YNc(5,q3,2,2,"g",5),t.qZA(),t.YNc(6,H5,2,2,"g",5),t.qZA()),2&o&&(t.Q6J("view",t.WLB(15,Fs,y.width,y.height))("showLegend",y.legend)("legendOptions",y.legendOptions)("activeEntries",y.activeEntries)("animations",y.animations),t.xp6(1),t.uIk("transform",y.transform),t.xp6(1),t.Q6J("xScale",y.groupScale)("yScale",y.valueScale)("data",y.results)("dims",y.dims)("orient",y.barOrientation.Vertical),t.xp6(1),t.Q6J("ngIf",y.xAxis),t.xp6(1),t.Q6J("ngIf",y.yAxis),t.xp6(1),t.Q6J("ngIf",!y.isSSR),t.xp6(1),t.Q6J("ngIf",y.isSSR))},directives:[u4,M1,Dl,m4,Vc,e.O5,e.sg],styles:[J0],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}),m})(),L4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Od=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Pd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),J8=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),T4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})();Math;let Fl=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Vd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms,Fl,T4]]}),m})(),O4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Jc=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Yd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms,Fl,L4]]}),m})(),jd=(()=>{class m{constructor(){!function k4(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[ms,Rl,L4,Od,Pd,J8,T4,Vd,O4,Fl,Jc,Yd]}),m})()},159:(Fe,Y,p)=>{"use strict";p.d(Y,{OF:()=>A,uU:()=>h});var t=p(5e3),e=p(9808),f=p(655),M=p(3259);function a(w,D){if(1&w&&t._UZ(0,"canvas",1),2&w){const L=t.oxw();t.Q6J("qrCode",L.value)("qrCodeErrorCorrectionLevel",L.errorCorrectionLevel)("qrCodeCenterImageSrc",L.centerImageSrc)("qrCodeCenterImageWidth",L.centerImageSize)("qrCodeCenterImageHeight",L.centerImageSize)("qrCodeMargin",L.margin)("width",L.size)("height",L.size)("darkColor",L.darkColor)("lightColor",L.lightColor)}}const b=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let d=(()=>{class w{constructor(L){this.viewContainerRef=L,this.errorCorrectionLevel=w.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var L,k;return(0,f.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 S=this.viewContainerRef.element.nativeElement;if(!S)return;const U=S.getContext("2d");U&&U.clearRect(0,0,U.canvas.width,U.canvas.height);const Z=null!==(L=this.errorCorrectionLevel)&&void 0!==L?L:w.DEFAULT_ERROR_CORRECTION_LEVEL,j=b.test(this.darkColor)?this.darkColor:void 0,ne=b.test(this.lightColor)?this.lightColor:void 0;(0,t.X6Q)()&&(!j&&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 M.toCanvas(S,this.value,{version:this.version,errorCorrectionLevel:Z,width:this.width,margin:this.margin,color:{dark:j,light:ne}});const X=this.centerImageSrc,de=P(this.centerImageWidth,w.DEFAULT_CENTER_IMAGE_SIZE),ee=P(this.centerImageHeight,w.DEFAULT_CENTER_IMAGE_SIZE);if(X&&U){this.centerImage||(this.centerImage=new Image(de,ee)),X!==(null===(k=this.centerImage)||void 0===k?void 0:k.src)&&(this.centerImage.src=X),de!==this.centerImage.width&&(this.centerImage.width=de),ee!==this.centerImage.height&&(this.centerImage.height=ee);const te=this.centerImage;te.onload=()=>{U.drawImage(te,S.width/2-de/2,S.height/2-ee/2,de,ee)}}})}}return w.DEFAULT_ERROR_CORRECTION_LEVEL="M",w.DEFAULT_CENTER_IMAGE_SIZE=40,w.\u0275fac=function(L){return new(L||w)(t.Y36(t.s_b))},w.\u0275dir=t.lG2({type:w,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:[t.TTD]}),w})();function P(w,D){return void 0===w||""===w?D:"string"==typeof w?parseInt(w,10):w}let h=(()=>{class w{}return w.\u0275fac=function(L){return new(L||w)},w.\u0275cmp=t.Xpm({type:w,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(L,k){1&L&&t.YNc(0,a,1,10,"canvas",0),2&L&&t.Q6J("ngIf",k.value)},directives:[e.O5,d],encapsulation:2}),w})(),A=(()=>{class w{}return w.\u0275fac=function(L){return new(L||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[e.ez]]}),w})()},8129:(Fe,Y,p)=>{"use strict";p.d(Y,{op:()=>$t,$V:()=>xe,Xd:()=>Ht});var t=p(7579),e=p(4968),f=p(3601),M=p(2722),a=p(5e3),b=p(9808);function d(it){return getComputedStyle(it)}function P(it,Ne){for(var tt in Ne){var Je=Ne[tt];"number"==typeof Je&&(Je+="px"),it.style[tt]=Je}return it}function h(it){var Ne=document.createElement("div");return Ne.className=it,Ne}var A="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function w(it,Ne){if(!A)throw new Error("No element matching method supported");return A.call(it,Ne)}function D(it){it.remove?it.remove():it.parentNode&&it.parentNode.removeChild(it)}function L(it,Ne){return Array.prototype.filter.call(it.children,function(tt){return w(tt,Ne)})}var k_element_thumb=function(it){return"ps__thumb-"+it},k_element_rail=function(it){return"ps__rail-"+it},k_element_consuming="ps__child--consume",k_state_focus="ps--focus",k_state_clicking="ps--clicking",k_state_active=function(it){return"ps--active-"+it},k_state_scrolling=function(it){return"ps--scrolling-"+it},S={x:null,y:null};function U(it,Ne){var tt=it.element.classList,Je=k_state_scrolling(Ne);tt.contains(Je)?clearTimeout(S[Ne]):tt.add(Je)}function Z(it,Ne){S[Ne]=setTimeout(function(){return it.isAlive&&it.element.classList.remove(k_state_scrolling(Ne))},it.settings.scrollingThreshold)}var ne=function(Ne){this.element=Ne,this.handlers={}},X={isEmpty:{configurable:!0}};ne.prototype.bind=function(Ne,tt){void 0===this.handlers[Ne]&&(this.handlers[Ne]=[]),this.handlers[Ne].push(tt),this.element.addEventListener(Ne,tt,!1)},ne.prototype.unbind=function(Ne,tt){var Je=this;this.handlers[Ne]=this.handlers[Ne].filter(function(Se){return!(!tt||Se===tt)||(Je.element.removeEventListener(Ne,Se,!1),!1)})},ne.prototype.unbindAll=function(){for(var Ne in this.handlers)this.unbind(Ne)},X.isEmpty.get=function(){var it=this;return Object.keys(this.handlers).every(function(Ne){return 0===it.handlers[Ne].length})},Object.defineProperties(ne.prototype,X);var de=function(){this.eventElements=[]};function ee(it){if("function"==typeof window.CustomEvent)return new CustomEvent(it);var Ne=document.createEvent("CustomEvent");return Ne.initCustomEvent(it,!1,!1,void 0),Ne}function te(it,Ne,tt,Je,Se){var Ue;if(void 0===Je&&(Je=!0),void 0===Se&&(Se=!1),"top"===Ne)Ue=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Ne)throw new Error("A proper axis should be provided");Ue=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function ce(it,Ne,tt,Je,Se){var Ue=tt[0],rt=tt[1],at=tt[2],yt=tt[3],gi=tt[4],Qt=tt[5];void 0===Je&&(Je=!0),void 0===Se&&(Se=!1);var Jt=it.element;it.reach[yt]=null,Jt[at]<1&&(it.reach[yt]="start"),Jt[at]>it[Ue]-it[rt]-1&&(it.reach[yt]="end"),Ne&&(Jt.dispatchEvent(ee("ps-scroll-"+yt)),Ne<0?Jt.dispatchEvent(ee("ps-scroll-"+gi)):Ne>0&&Jt.dispatchEvent(ee("ps-scroll-"+Qt)),Je&&function j(it,Ne){U(it,Ne),Z(it,Ne)}(it,yt)),it.reach[yt]&&(Ne||Se)&&Jt.dispatchEvent(ee("ps-"+yt+"-reach-"+it.reach[yt]))}(it,tt,Ue,Je,Se)}function J(it){return parseInt(it,10)||0}de.prototype.eventElement=function(Ne){var tt=this.eventElements.filter(function(Je){return Je.element===Ne})[0];return tt||(tt=new ne(Ne),this.eventElements.push(tt)),tt},de.prototype.bind=function(Ne,tt,Je){this.eventElement(Ne).bind(tt,Je)},de.prototype.unbind=function(Ne,tt,Je){var Se=this.eventElement(Ne);Se.unbind(tt,Je),Se.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Se),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(Ne){return Ne.unbindAll()}),this.eventElements=[]},de.prototype.once=function(Ne,tt,Je){var Se=this.eventElement(Ne),Ue=function(rt){Se.unbind(tt,Ue),Je(rt)};Se.bind(tt,Ue)};var i={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(it){var Ne=it.element,tt=Math.floor(Ne.scrollTop),Je=Ne.getBoundingClientRect();it.containerWidth=Math.round(Je.width),it.containerHeight=Math.round(Je.height),it.contentWidth=Ne.scrollWidth,it.contentHeight=Ne.scrollHeight,Ne.contains(it.scrollbarXRail)||(L(Ne,k_element_rail("x")).forEach(function(Se){return D(Se)}),Ne.appendChild(it.scrollbarXRail)),Ne.contains(it.scrollbarYRail)||(L(Ne,k_element_rail("y")).forEach(function(Se){return D(Se)}),Ne.appendChild(it.scrollbarYRail)),!it.settings.suppressScrollX&&it.containerWidth+it.settings.scrollXMarginOffset=it.railXWidth-it.scrollbarXWidth&&(it.scrollbarXLeft=it.railXWidth-it.scrollbarXWidth),it.scrollbarYTop>=it.railYHeight-it.scrollbarYHeight&&(it.scrollbarYTop=it.railYHeight-it.scrollbarYHeight),function c(it,Ne){var tt={width:Ne.railXWidth},Je=Math.floor(it.scrollTop);tt.left=Ne.isRtl?Ne.negativeScrollAdjustment+it.scrollLeft+Ne.containerWidth-Ne.contentWidth:it.scrollLeft,Ne.isScrollbarXUsingBottom?tt.bottom=Ne.scrollbarXBottom-Je:tt.top=Ne.scrollbarXTop+Je,P(Ne.scrollbarXRail,tt);var Se={top:Je,height:Ne.railYHeight};Ne.isScrollbarYUsingRight?Se.right=Ne.isRtl?Ne.contentWidth-(Ne.negativeScrollAdjustment+it.scrollLeft)-Ne.scrollbarYRight-Ne.scrollbarYOuterWidth-9:Ne.scrollbarYRight-it.scrollLeft:Se.left=Ne.isRtl?Ne.negativeScrollAdjustment+it.scrollLeft+2*Ne.containerWidth-Ne.contentWidth-Ne.scrollbarYLeft-Ne.scrollbarYOuterWidth:Ne.scrollbarYLeft+it.scrollLeft,P(Ne.scrollbarYRail,Se),P(Ne.scrollbarX,{left:Ne.scrollbarXLeft,width:Ne.scrollbarXWidth-Ne.railBorderXWidth}),P(Ne.scrollbarY,{top:Ne.scrollbarYTop,height:Ne.scrollbarYHeight-Ne.railBorderYWidth})}(Ne,it),it.scrollbarXActive?Ne.classList.add(k_state_active("x")):(Ne.classList.remove(k_state_active("x")),it.scrollbarXWidth=0,it.scrollbarXLeft=0,Ne.scrollLeft=!0===it.isRtl?it.contentWidth:0),it.scrollbarYActive?Ne.classList.add(k_state_active("y")):(Ne.classList.remove(k_state_active("y")),it.scrollbarYHeight=0,it.scrollbarYTop=0,Ne.scrollTop=0)}function u(it,Ne){return it.settings.minScrollbarLength&&(Ne=Math.max(Ne,it.settings.minScrollbarLength)),it.settings.maxScrollbarLength&&(Ne=Math.min(Ne,it.settings.maxScrollbarLength)),Ne}function I(it,Ne){var tt=Ne[0],Je=Ne[1],Se=Ne[2],Ue=Ne[3],rt=Ne[4],at=Ne[5],yt=Ne[6],gi=Ne[7],Qt=Ne[8],Jt=it.element,Xi=null,fi=null,ai=null;function tn(Yi){Yi.touches&&Yi.touches[0]&&(Yi[Se]=Yi.touches[0].pageY),Jt[yt]=Xi+ai*(Yi[Se]-fi),U(it,gi),r(it),Yi.stopPropagation(),Yi.type.startsWith("touch")&&Yi.changedTouches.length>1&&Yi.preventDefault()}function Wi(){Z(it,gi),it[Qt].classList.remove(k_state_clicking),it.event.unbind(it.ownerDocument,"mousemove",tn)}function Gi(Yi,ze){Xi=Jt[yt],ze&&Yi.touches&&(Yi[Se]=Yi.touches[0].pageY),fi=Yi[Se],ai=(it[Je]-it[tt])/(it[Ue]-it[at]),ze?it.event.bind(it.ownerDocument,"touchmove",tn):(it.event.bind(it.ownerDocument,"mousemove",tn),it.event.once(it.ownerDocument,"mouseup",Wi),Yi.preventDefault()),it[Qt].classList.add(k_state_clicking),Yi.stopPropagation()}it.event.bind(it[rt],"mousedown",function(Yi){Gi(Yi)}),it.event.bind(it[rt],"touchstart",function(Yi){Gi(Yi,!0)})}var N={"click-rail":function _(it){it.event.bind(it.scrollbarY,"mousedown",function(tt){return tt.stopPropagation()}),it.event.bind(it.scrollbarYRail,"mousedown",function(tt){var Je=tt.pageY-window.pageYOffset-it.scrollbarYRail.getBoundingClientRect().top;it.element.scrollTop+=(Je>it.scrollbarYTop?1:-1)*it.containerHeight,r(it),tt.stopPropagation()}),it.event.bind(it.scrollbarX,"mousedown",function(tt){return tt.stopPropagation()}),it.event.bind(it.scrollbarXRail,"mousedown",function(tt){var Je=tt.pageX-window.pageXOffset-it.scrollbarXRail.getBoundingClientRect().left;it.element.scrollLeft+=(Je>it.scrollbarXLeft?1:-1)*it.containerWidth,r(it),tt.stopPropagation()})},"drag-thumb":function E(it){I(it,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I(it,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function v(it){var Ne=it.element;it.event.bind(it.ownerDocument,"keydown",function(Ue){if(!(Ue.isDefaultPrevented&&Ue.isDefaultPrevented()||Ue.defaultPrevented)&&(w(Ne,":hover")||w(it.scrollbarX,":focus")||w(it.scrollbarY,":focus"))){var rt=document.activeElement?document.activeElement:it.ownerDocument.activeElement;if(rt){if("IFRAME"===rt.tagName)rt=rt.contentDocument.activeElement;else for(;rt.shadowRoot;)rt=rt.shadowRoot.activeElement;if(function me(it){return w(it,"input,[contenteditable]")||w(it,"select,[contenteditable]")||w(it,"textarea,[contenteditable]")||w(it,"button,[contenteditable]")}(rt))return}var at=0,yt=0;switch(Ue.which){case 37:at=Ue.metaKey?-it.contentWidth:Ue.altKey?-it.containerWidth:-30;break;case 38:yt=Ue.metaKey?it.contentHeight:Ue.altKey?it.containerHeight:30;break;case 39:at=Ue.metaKey?it.contentWidth:Ue.altKey?it.containerWidth:30;break;case 40:yt=Ue.metaKey?-it.contentHeight:Ue.altKey?-it.containerHeight:-30;break;case 32:yt=Ue.shiftKey?it.containerHeight:-it.containerHeight;break;case 33:yt=it.containerHeight;break;case 34:yt=-it.containerHeight;break;case 36:yt=it.contentHeight;break;case 35:yt=-it.contentHeight;break;default:return}it.settings.suppressScrollX&&0!==at||it.settings.suppressScrollY&&0!==yt||(Ne.scrollTop-=yt,Ne.scrollLeft+=at,r(it),function Se(Ue,rt){var at=Math.floor(Ne.scrollTop);if(0===Ue){if(!it.scrollbarYActive)return!1;if(0===at&&rt>0||at>=it.contentHeight-it.containerHeight&&rt<0)return!it.settings.wheelPropagation}var yt=Ne.scrollLeft;if(0===rt){if(!it.scrollbarXActive)return!1;if(0===yt&&Ue<0||yt>=it.contentWidth-it.containerWidth&&Ue>0)return!it.settings.wheelPropagation}return!0}(at,yt)&&Ue.preventDefault())}})},wheel:function n(it){var Ne=it.element;function Ue(rt){var at=function Je(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],gi=at[1];if(!function Se(rt,at,yt){if(!i.isWebKit&&Ne.querySelector("select:focus"))return!0;if(!Ne.contains(rt))return!1;for(var gi=rt;gi&&gi!==Ne;){if(gi.classList.contains(k_element_consuming))return!0;var Qt=d(gi);if(yt&&Qt.overflowY.match(/(scroll|auto)/)){var Jt=gi.scrollHeight-gi.clientHeight;if(Jt>0&&(gi.scrollTop>0&&yt<0||gi.scrollTop0))return!0}if(at&&Qt.overflowX.match(/(scroll|auto)/)){var Xi=gi.scrollWidth-gi.clientWidth;if(Xi>0&&(gi.scrollLeft>0&&at<0||gi.scrollLeft0))return!0}gi=gi.parentNode}return!1}(rt.target,yt,gi)){var Qt=!1;it.settings.useBothWheelAxes?it.scrollbarYActive&&!it.scrollbarXActive?(gi?Ne.scrollTop-=gi*it.settings.wheelSpeed:Ne.scrollTop+=yt*it.settings.wheelSpeed,Qt=!0):it.scrollbarXActive&&!it.scrollbarYActive&&(yt?Ne.scrollLeft+=yt*it.settings.wheelSpeed:Ne.scrollLeft-=gi*it.settings.wheelSpeed,Qt=!0):(Ne.scrollTop-=gi*it.settings.wheelSpeed,Ne.scrollLeft+=yt*it.settings.wheelSpeed),r(it),Qt=Qt||function tt(rt,at){var yt=Math.floor(Ne.scrollTop),gi=0===Ne.scrollTop,Qt=yt+Ne.offsetHeight===Ne.scrollHeight,Jt=0===Ne.scrollLeft,Xi=Ne.scrollLeft+Ne.offsetWidth===Ne.scrollWidth;return!(Math.abs(at)>Math.abs(rt)?gi||Qt:Jt||Xi)||!it.settings.wheelPropagation}(yt,gi),Qt&&!rt.ctrlKey&&(rt.stopPropagation(),rt.preventDefault())}}void 0!==window.onwheel?it.event.bind(Ne,"wheel",Ue):void 0!==window.onmousewheel&&it.event.bind(Ne,"mousewheel",Ue)},touch:function C(it){if(i.supportsTouch||i.supportsIePointer){var Ne=it.element,Se={},Ue=0,rt={},at=null;i.supportsTouch?(it.event.bind(Ne,"touchstart",Qt),it.event.bind(Ne,"touchmove",Xi),it.event.bind(Ne,"touchend",fi)):i.supportsIePointer&&(window.PointerEvent?(it.event.bind(Ne,"pointerdown",Qt),it.event.bind(Ne,"pointermove",Xi),it.event.bind(Ne,"pointerup",fi)):window.MSPointerEvent&&(it.event.bind(Ne,"MSPointerDown",Qt),it.event.bind(Ne,"MSPointerMove",Xi),it.event.bind(Ne,"MSPointerUp",fi)))}function Je(ai,tn){Ne.scrollTop-=tn,Ne.scrollLeft-=ai,r(it)}function yt(ai){return ai.targetTouches?ai.targetTouches[0]:ai}function gi(ai){return!(ai.pointerType&&"pen"===ai.pointerType&&0===ai.buttons||!(ai.targetTouches&&1===ai.targetTouches.length||ai.pointerType&&"mouse"!==ai.pointerType&&ai.pointerType!==ai.MSPOINTER_TYPE_MOUSE))}function Qt(ai){if(gi(ai)){var tn=yt(ai);Se.pageX=tn.pageX,Se.pageY=tn.pageY,Ue=(new Date).getTime(),null!==at&&clearInterval(at)}}function Xi(ai){if(gi(ai)){var tn=yt(ai),Wi={pageX:tn.pageX,pageY:tn.pageY},Gi=Wi.pageX-Se.pageX,Yi=Wi.pageY-Se.pageY;if(function Jt(ai,tn,Wi){if(!Ne.contains(ai))return!1;for(var Gi=ai;Gi&&Gi!==Ne;){if(Gi.classList.contains(k_element_consuming))return!0;var Yi=d(Gi);if(Wi&&Yi.overflowY.match(/(scroll|auto)/)){var ze=Gi.scrollHeight-Gi.clientHeight;if(ze>0&&(Gi.scrollTop>0&&Wi<0||Gi.scrollTop0))return!0}if(tn&&Yi.overflowX.match(/(scroll|auto)/)){var Lt=Gi.scrollWidth-Gi.clientWidth;if(Lt>0&&(Gi.scrollLeft>0&&tn<0||Gi.scrollLeft0))return!0}Gi=Gi.parentNode}return!1}(ai.target,Gi,Yi))return;Je(Gi,Yi),Se=Wi;var ze=(new Date).getTime(),Lt=ze-Ue;Lt>0&&(rt.x=Gi/Lt,rt.y=Yi/Lt,Ue=ze),function tt(ai,tn){var Wi=Math.floor(Ne.scrollTop),Gi=Ne.scrollLeft,Yi=Math.abs(ai),ze=Math.abs(tn);if(ze>Yi){if(tn<0&&Wi===it.contentHeight-it.containerHeight||tn>0&&0===Wi)return 0===window.scrollY&&tn>0&&i.isChrome}else if(Yi>ze&&(ai<0&&Gi===it.contentWidth-it.containerWidth||ai>0&&0===Gi))return!0;return!0}(Gi,Yi)&&ai.preventDefault()}}function fi(){it.settings.swipeEasing&&(clearInterval(at),at=setInterval(function(){it.isInitialized?clearInterval(at):rt.x||rt.y?Math.abs(rt.x)<.01&&Math.abs(rt.y)<.01?clearInterval(at):it.element?(Je(30*rt.x,30*rt.y),rt.x*=.8,rt.y*=.8):clearInterval(at):clearInterval(at)},10))}}},z=function(Ne,tt){var Je=this;if(void 0===tt&&(tt={}),"string"==typeof Ne&&(Ne=document.querySelector(Ne)),!Ne||!Ne.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Se in this.element=Ne,Ne.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},tt)this.settings[Se]=tt[Se];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Qt,gi,Ue=function(){return Ne.classList.add(k_state_focus)},rt=function(){return Ne.classList.remove(k_state_focus)};this.isRtl="rtl"===d(Ne).direction,!0===this.isRtl&&Ne.classList.add("ps__rtl"),this.isNegativeScroll=(gi=Ne.scrollLeft,Ne.scrollLeft=-1,Qt=Ne.scrollLeft<0,Ne.scrollLeft=gi,Qt),this.negativeScrollAdjustment=this.isNegativeScroll?Ne.scrollWidth-Ne.clientWidth:0,this.event=new de,this.ownerDocument=Ne.ownerDocument||document,this.scrollbarXRail=h(k_element_rail("x")),Ne.appendChild(this.scrollbarXRail),this.scrollbarX=h(k_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Ue),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=h(k_element_rail("y")),Ne.appendChild(this.scrollbarYRail),this.scrollbarY=h(k_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Ue),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(it){var Ne=d(it);return J(Ne.width)+J(Ne.paddingLeft)+J(Ne.paddingRight)+J(Ne.borderLeftWidth)+J(Ne.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:Ne.scrollLeft<=0?"start":Ne.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Ne.scrollTop<=0?"start":Ne.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(gi){return N[gi](Je)}),this.lastScrollTop=Math.floor(Ne.scrollTop),this.lastScrollLeft=Ne.scrollLeft,this.event.bind(this.element,"scroll",function(gi){return Je.onScroll(gi)}),r(this)};z.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),te(this,"top",0,!1,!0),te(this,"left",0,!1,!0),P(this.scrollbarXRail,{display:""}),P(this.scrollbarYRail,{display:""}))},z.prototype.onScroll=function(Ne){!this.isAlive||(r(this),te(this,"top",this.element.scrollTop-this.lastScrollTop),te(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},z.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),D(this.scrollbarX),D(this.scrollbarY),D(this.scrollbarXRail),D(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},z.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Ne){return!Ne.match(/^ps([-_].+|)$/)}).join(" ")};const oe=z;var ge=function(){if("undefined"!=typeof Map)return Map;function it(Ne,tt){var Je=-1;return Ne.some(function(Se,Ue){return Se[0]===tt&&(Je=Ue,!0)}),Je}return function(){function Ne(){this.__entries__=[]}return Object.defineProperty(Ne.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Ne.prototype.get=function(tt){var Je=it(this.__entries__,tt),Se=this.__entries__[Je];return Se&&Se[1]},Ne.prototype.set=function(tt,Je){var Se=it(this.__entries__,tt);~Se?this.__entries__[Se][1]=Je:this.__entries__.push([tt,Je])},Ne.prototype.delete=function(tt){var Je=this.__entries__,Se=it(Je,tt);~Se&&Je.splice(Se,1)},Ne.prototype.has=function(tt){return!!~it(this.__entries__,tt)},Ne.prototype.clear=function(){this.__entries__.splice(0)},Ne.prototype.forEach=function(tt,Je){void 0===Je&&(Je=null);for(var Se=0,Ue=this.__entries__;Se0},it.prototype.connect_=function(){!be||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),De?(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)},it.prototype.disconnect_=function(){!be||!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)},it.prototype.onTransitionEnd_=function(Ne){var tt=Ne.propertyName,Je=void 0===tt?"":tt;F.some(function(Ue){return!!~Je.indexOf(Ue)})&&this.refresh()},it.getInstance=function(){return this.instance_||(this.instance_=new it),this.instance_},it.instance_=null,it}(),Ie=function(it,Ne){for(var tt=0,Je=Object.keys(Ne);tt0},it}(),ui="undefined"!=typeof WeakMap?new WeakMap:new ge,xt=function it(Ne){if(!(this instanceof it))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var tt=lt.getInstance(),Je=new Gt(Ne,tt,this);ui.set(this,Je)};["observe","unobserve","disconnect"].forEach(function(it){xt.prototype[it]=function(){var Ne;return(Ne=ui.get(this))[it].apply(Ne,arguments)}});const gt=void 0!==Re.ResizeObserver?Re.ResizeObserver:xt,$t=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class jt{constructor(Ne,tt,Je,Se){this.x=Ne,this.y=tt,this.w=Je,this.h=Se}}class Pe{constructor(Ne,tt){this.x=Ne,this.y=tt}}const Oe=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class le{constructor(Ne={}){this.assign(Ne)}assign(Ne={}){for(const tt in Ne)this[tt]=Ne[tt]}}let xe=(()=>{class it{constructor(tt,Je,Se,Ue,rt){this.zone=tt,this.differs=Je,this.elementRef=Se,this.platformId=Ue,this.defaults=rt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new t.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,b.NF)(this.platformId)){const tt=new le(this.defaults);tt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new oe(this.elementRef.nativeElement,tt)}),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(()=>{Oe.forEach(Je=>{const Se=Je.replace(/([A-Z])/g,Ue=>`-${Ue.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,Se).pipe((0,f.e)(20),(0,M.R)(this.ngDestroy)).subscribe(Ue=>{this[Je].emit(Ue)})})})}}ngOnDestroy(){(0,b.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,b.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(tt){tt.disabled&&!tt.disabled.isFirstChange()&&(0,b.NF)(this.platformId)&&tt.disabled.currentValue!==tt.disabled.previousValue&&(!0===tt.disabled.currentValue?this.ngOnDestroy():!1===tt.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(tt){}},0))}geometry(tt="scroll"){return new jt(this.elementRef.nativeElement[tt+"Left"],this.elementRef.nativeElement[tt+"Top"],this.elementRef.nativeElement[tt+"Width"],this.elementRef.nativeElement[tt+"Height"])}position(tt=!1){return!tt&&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(tt="any"){const Je=this.elementRef.nativeElement;return"any"===tt?Je.classList.contains("ps--active-x")||Je.classList.contains("ps--active-y"):"both"===tt?Je.classList.contains("ps--active-x")&&Je.classList.contains("ps--active-y"):Je.classList.contains("ps--active-"+tt)}scrollTo(tt,Je,Se){this.disabled||(null==Je&&null==Se?this.animateScrolling("scrollTop",tt,Se):(null!=tt&&this.animateScrolling("scrollLeft",tt,Se),null!=Je&&this.animateScrolling("scrollTop",Je,Se)))}scrollToX(tt,Je){this.animateScrolling("scrollLeft",tt,Je)}scrollToY(tt,Je){this.animateScrolling("scrollTop",tt,Je)}scrollToTop(tt,Je){this.animateScrolling("scrollTop",tt||0,Je)}scrollToLeft(tt,Je){this.animateScrolling("scrollLeft",tt||0,Je)}scrollToRight(tt,Je){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(tt||0),Je)}scrollToBottom(tt,Je){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(tt||0),Je)}scrollToElement(tt,Je,Se){if("string"==typeof tt&&(tt=this.elementRef.nativeElement.querySelector(tt)),tt){const Ue=tt.getBoundingClientRect(),rt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",Ue.left-rt.left+this.elementRef.nativeElement.scrollLeft+(Je||0),Se),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",Ue.top-rt.top+this.elementRef.nativeElement.scrollTop+(Je||0),Se)}}animateScrolling(tt,Je,Se){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),Se&&"undefined"!=typeof window){if(Je!==this.elementRef.nativeElement[tt]){let Ue=0,rt=0,at=performance.now(),yt=this.elementRef.nativeElement[tt];const gi=(yt-Je)/2,Qt=Jt=>{rt+=Math.PI/(Se/(Jt-at)),Ue=Math.round(Je+gi+gi*Math.cos(rt)),this.elementRef.nativeElement[tt]===yt&&(rt>=Math.PI?this.animateScrolling(tt,Je,0):(this.elementRef.nativeElement[tt]=Ue,yt=this.elementRef.nativeElement[tt],at=Jt,this.animation=window.requestAnimationFrame(Qt)))};window.requestAnimationFrame(Qt)}}else this.elementRef.nativeElement[tt]=Je}}return it.\u0275fac=function(tt){return new(tt||it)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36($t,8))},it.\u0275dir=a.lG2({type:it,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]}),it})(),Ht=(()=>{class it{}return it.\u0275fac=function(tt){return new(tt||it)},it.\u0275mod=a.oAB({type:it}),it.\u0275inj=a.cJS({imports:[[b.ez],b.ez]}),it})()},4946:Fe=>{"use strict";Fe.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:Fe=>{"use strict";Fe.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:Fe=>{"use strict";Fe.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:Fe=>{"use strict";Fe.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:Fe=>{"use strict";Fe.exports={i8:"6.5.4"}},2562:Fe=>{"use strict";Fe.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"}')}},Fe=>{Fe(Fe.s=4886)}]); \ No newline at end of file diff --git a/frontend/main.bb5386d8aa345a5a.js b/frontend/main.bb5386d8aa345a5a.js deleted file mode 100644 index 0684b3c8..00000000 --- a/frontend/main.bb5386d8aa345a5a.js +++ /dev/null @@ -1 +0,0 @@ -var wL=Object.defineProperty,LL=Object.defineProperties,SL=Object.getOwnPropertyDescriptors,JC=Object.getOwnPropertySymbols,EL=Object.prototype.hasOwnProperty,TL=Object.prototype.propertyIsEnumerable,XC=(Fe,Y,p)=>Y in Fe?wL(Fe,Y,{enumerable:!0,configurable:!0,writable:!0,value:p}):Fe[Y]=p,Us=(Fe,Y)=>{for(var p in Y||(Y={}))EL.call(Y,p)&&XC(Fe,p,Y[p]);if(JC)for(var p of JC(Y))TL.call(Y,p)&&XC(Fe,p,Y[p]);return Fe},$C=(Fe,Y)=>LL(Fe,SL(Y));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(Fe,Y,p)=>{"use strict";p.d(Y,{Acd:()=>D2,Aq:()=>W3,B$L:()=>gC,BDt:()=>Ms,CgH:()=>Xm,DL8:()=>jm,FJU:()=>DC,FVb:()=>kC,FlN:()=>cl,FpQ:()=>Gm,HLz:()=>u4,KOR:()=>p5,Krp:()=>Ch,Mdf:()=>Fs,N2j:()=>pi,NBC:()=>qC,OS1:()=>U1,Psp:()=>xi,Sbq:()=>C,Ssp:()=>Vm,SuH:()=>fg,TmZ:()=>rl,USL:()=>Tf,Vfw:()=>B,X5K:()=>BC,XsY:()=>Du,aj4:()=>lf,b7W:()=>Dl,byT:()=>kh,co4:()=>bu,dLy:()=>L1,dT$:()=>_0,eHv:()=>lC,gNZ:()=>SC,hkK:()=>bC,hnx:()=>MC,kXW:()=>Eu,kZ_:()=>b3,koM:()=>Es,mh3:()=>v0,nNP:()=>r6,q7m:()=>Js,qO$:()=>h0,r8p:()=>Jf,sqG:()=>M6,uli:()=>xh,vqe:()=>qd,wn1:()=>Hh,wyP:()=>KC,xf3:()=>tg});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"]},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"]},Ms={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"]},pi={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"]},D2={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"]},Es={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"]},U1={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"]},M6={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"]},h0={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"]},_0={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"]},v0={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"]},b3={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"]},rl={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"]},Js={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"]},cl={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"]},p5={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"]},Fs={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"]},W3={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"]},u4={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"]},Dl={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"]},qd={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"]},Ch={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"]},xh={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"]},r6={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"]},kh={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"]},Hh={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"]},bu={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"]},lf={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"]},Eu={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"]},Du={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"]},Tf={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"]},Jf={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"]},xi={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"]},L1={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"]},Vm={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"]},Gm={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"]},jm={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"]},Xm={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"]},bC={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:(Fe,Y,p)=>{"use strict";p.d(Y,{$A:()=>B,$W:()=>j,BL:()=>_,CN:()=>b,CX:()=>d,EG:()=>w,EK:()=>ce,El:()=>X,HI:()=>ge,HJ:()=>A,I8:()=>D,JK:()=>Ce,Lu:()=>S,Ly:()=>lt,Ni:()=>f,Nr:()=>Re,OG:()=>n,QJ:()=>fe,RX:()=>h,Rd:()=>we,SN:()=>N,Sf:()=>v,TM:()=>i,UH:()=>Ie,UR:()=>c,VD:()=>oe,WM:()=>xe,WO:()=>r,Wi:()=>F,X3:()=>ee,YP:()=>Q,YX:()=>O,Z8:()=>ne,ZH:()=>$,Zu:()=>ye,_9:()=>Dt,_E:()=>U,aL:()=>Ge,as:()=>C,cQ:()=>J,d7:()=>ct,dh:()=>W,e9:()=>ut,eM:()=>De,en:()=>di,g3:()=>I,g6:()=>ve,i9:()=>ue,kL:()=>u,n7:()=>P,oV:()=>y,oo:()=>a,pW:()=>E,u0:()=>se,uT:()=>Le,v_:()=>z,xH:()=>M,xS:()=>L,yl:()=>Te,z:()=>te});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),M=(0,t.PH)(e.AB.RESET_CLN_STORE,(0,t.Ky)()),a=(0,t.PH)(e.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,t.Ky)()),b=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),d=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),N=(0,t.PH)(e.AB.FETCH_FEES_CLN),h=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),A=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),D=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.FETCH_BALANCE_CLN),S=(0,t.PH)(e.AB.SET_BALANCE_CLN,(0,t.Ky)()),I=(0,t.PH)(e.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),L=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),U=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),j=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),ne=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),X=(0,t.PH)(e.AB.SAVE_NEW_PEER_CLN,(0,t.Ky)()),ee=((0,t.PH)(e.AB.NEWLY_ADDED_PEER_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.ADD_PEER_CLN,(0,t.Ky)())),te=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),ce=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),J=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),ge=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),y=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),r=(0,t.PH)(e.AB.GET_QUERY_ROUTES_CLN,(0,t.Ky)()),u=(0,t.PH)(e.AB.SET_QUERY_ROUTES_CLN,(0,t.Ky)()),c=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),C=(0,t.PH)(e.AB.SET_CHANNELS_CLN,(0,t.Ky)()),E=(0,t.PH)(e.AB.UPDATE_CHANNEL_CLN,(0,t.Ky)()),O=(0,t.PH)(e.AB.SAVE_NEW_CHANNEL_CLN,(0,t.Ky)()),_=(0,t.PH)(e.AB.CLOSE_CHANNEL_CLN,(0,t.Ky)()),n=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),v=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),B=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),P=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),z=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),se=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),fe=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),xe=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),Re=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),we=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),Q=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),Ge=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),ve=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),F=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),lt=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),Ie=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),De=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),oe=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),Te=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),ye=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),W=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),$=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),ue=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),Ce=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),Le=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),ct=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),ut=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),Dt=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),di=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)())},4947:(Fe,Y,p)=>{"use strict";p.d(Y,{J:()=>ge});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),b=p(4004),d=p(262),N=p(1365),h=p(2340),A=p(1786),D=p(5566),w=p(7731),S=p(7861),I=p(429),L=p(9828),U=p(1462),Z=p(5e3),j=p(8138),ne=p(5620),X=p(5986),de=p(62),ee=p(5043),te=p(1402),ce=p(7998),J=p(9808);let ge=(()=>{class y{constructor(r,u,c,C,E,O,_,n,v){this.actions=r,this.httpClient=u,this.store=c,this.sessionService=C,this.commonService=E,this.logger=O,this.router=_,this.wsService=n,this.location=v,this.CHILD_API_URL=h.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INFO_CLN),(0,M.z)(B=>(this.flgInitialized=!1,this.store.dispatch((0,S.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,I.Ni)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.store.dispatch((0,S.ac)({payload:w.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+h.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,b.U)(P=>(this.logger.info(P),P.chains&&P.chains.length&&P.chains[0]&&"object"==typeof P.chains[0]&&P.chains[0].hasOwnProperty("chain")&&(null==P?void 0:P.chains[0].chain)&&(null==P?void 0:P.chains[0].chain.toLowerCase().indexOf("bitcoin"))<0?(this.store.dispatch((0,I.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,S.ts)()),setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.pg.LOGOUT}):(this.initializeRemainingData(P,B.payload.loadPage),this.store.dispatch((0,I.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.GET_NODE_INFO})),{type:w.AB.SET_INFO_CLN,payload:P||{}}))),(0,d.K)(P=>{const z=this.commonService.extractErrorCode(P),se="ETIMEDOUT"===z?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(P);return this.router.navigate(["/error"],{state:{errorCode:z,errorMessage:se}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:z,error:se}),(0,f.of)({type:w.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEES_CLN),(0,M.z)(()=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.FEES_API))),(0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,I.Ni)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEES_CLN,payload:B||{}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",B),(0,f.of)({type:w.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEE_RATES_CLN),(0,M.z)(B=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchFeeRates"+B.payload,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/feeRates/"+B.payload).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"FetchFeeRates"+B.payload,status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEE_RATES_CLN,payload:P||{}})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchFeeRates"+B.payload,w.m6.NO_SPINNER,"Fetching Fee Rates Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.BALANCE_API))),(0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,I.Ni)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_BALANCE_CLN,payload:B||{}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",B),(0,f.of)({type:w.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,I.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:B||{}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",B),(0,f.of)({type:w.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_NEW_ADDRESS_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+h.NZ.ON_CHAIN_API+"?type="+B.payload.addressCode).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,S.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.AB.SET_NEW_ADDRESS_CLN,payload:P&&P.address?P.address:{}})),(0,d.K)(P=>(this.handleErrorWithAlert("GenerateNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+h.NZ.ON_CHAIN_API+"?type="+B.payload.addressId,P),(0,f.of)({type:w.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_NEW_ADDRESS_CLN),(0,b.U)(B=>(this.logger.info(B.payload),B.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PEERS_CLN),(0,M.z)(()=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PEERS_API).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,I.Ni)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PEERS_CLN,payload:B||[]})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_PEER_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,I.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.PEERS_API,{id:B.payload.id}).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,I.Z8)({payload:P||[]})),{type:w.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:P.find(z=>0===B.payload.id.indexOf(z.id?z.id:""))}})),(0,d.K)(P=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DETACH_PEER_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.PEERS_API+"/"+B.payload.id+"?force="+B.payload.force).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,S.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,S.jW)({payload:"Peer Disconnected Successfully!"})),{type:w.AB.REMOVE_PEER_CLN,payload:{id:B.payload.id}})),(0,d.K)(P=>(this.handleErrorWithAlert("PeerDisconnect",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+h.NZ.PEERS_API+"/"+B.payload.id,P),(0,f.of)({type:w.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_CHANNELS_CLN),(0,M.z)(()=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/listChannels"))),(0,b.U)(B=>{this.logger.info(B),this.store.dispatch((0,I.Ni)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}})),this.store.dispatch((0,I.u0)({payload:{status:w.OO.SETTLED,maxLen:10,offset:0}}));const P={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return B.forEach(z=>{"CHANNELD_NORMAL"===z.state?z.connected?P.activeChannels.push(z):P.inactiveChannels.push(z):P.pendingChannels.push(z)}),{type:w.AB.SET_CHANNELS_CLN,payload:P}}),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",B),(0,f.of)({type:w.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_CHANNEL_CLN),(0,M.z)(B=>{this.store.dispatch((0,S.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,I.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}}));const P={id:B.payload.peerId,satoshis:B.payload.satoshis,feeRate:B.payload.feeRate,announce:B.payload.announce};return B.payload.minconf&&(P.minconf=B.payload.minconf),B.payload.utxos&&(P.utxos=B.payload.utxos),B.payload.requestAmount&&(P.request_amt=B.payload.requestAmount),B.payload.compactLease&&(P.compact_lease=B.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API,P).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,I.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,I.EG)()),this.store.dispatch((0,I.Ly)()),{type:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(z=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",z),(0,f.of)({type:w.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.UPDATE_CHANNEL_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/setChannelFee",{id:B.payload.channelId,base:B.payload.baseFeeMsat,ppm:B.payload.feeRate}).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,S.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,S.jW)("all"===B.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:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(P=>(this.handleErrorWithAlert("UpdateChannel",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API,P),(0,f.of)({type:w.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CLOSE_CHANNEL_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:B.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+B.payload.channelId+(B.payload.force?"?force="+B.payload.force:"")).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:B.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,I.UR)()),this.store.dispatch((0,I.g3)()),this.store.dispatch((0,S.jW)({payload:"Channel Closed Successfully!"})),{type:w.AB.REMOVE_CHANNEL_CLN,payload:B.payload})),(0,d.K)(z=>(this.handleErrorWithAlert("CloseChannel",B.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_API,z),(0,f.of)({type:w.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAYMENTS_CLN),(0,M.z)(()=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API))),(0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,I.Ni)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAYMENTS_CLN,payload:B||[]})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",B),(0,f.of)({type:w.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_INVOICE_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,I.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.OFFERS_API+"/fetchOfferInvoice",B.payload).pipe((0,b.U)(P=>{this.logger.info(P),setTimeout(()=>{this.store.dispatch((0,I.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,I.VD)({payload:P||{}}))},500)}),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",P),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_OFFER_INVOICE_CLN),(0,b.U)(B=>(this.logger.info(B.payload),B.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SEND_PAYMENT_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:B.payload.uiMessage})),this.store.dispatch((0,I.Ni)({payload:{action:"SendPayment",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.PAYMENTS_API,B.payload).pipe((0,b.U)(P=>{this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}}));let z="Payment Sent Successfully!";P.saveToDBError&&(z="Payment Sent Successfully but Offer Saving to Database Failed."),P.saveToDBResponse&&"NA"!==P.saveToDBResponse&&(this.store.dispatch((0,I.e9)({payload:P.saveToDBResponse})),z="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,I.UR)()),this.store.dispatch((0,I.EG)()),this.store.dispatch((0,I.cQ)()),this.store.dispatch((0,S.uO)({payload:B.payload.uiMessage})),this.store.dispatch((0,S.jW)({payload:z})),this.store.dispatch((0,I.TM)({payload:P.paymentResponse}))},1e3)}),(0,d.K)(P=>(this.logger.error("Error: "+JSON.stringify(P)),B.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",B.payload.uiMessage,"Send Payment Failed.",P):this.handleErrorWithAlert("SendPayment",B.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.PAYMENTS_API,P),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_QUERY_ROUTES_CLN),(0,M.z)(B=>(this.store.dispatch((0,I.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/getRoute/"+B.payload.destPubkey+"/"+B.payload.amount).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.COMPLETED}})),{type:w.AB.SET_QUERY_ROUTES_CLN,payload:P})),(0,d.K)(P=>(this.store.dispatch((0,I.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/getRoute/"+B.payload.destPubkey+"/"+B.payload.amount,P),(0,f.of)({type:w.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_QUERY_ROUTES_CLN),(0,b.U)(B=>B.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.PEER_LOOKUP_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,I.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/listNode/"+B.payload).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.SEARCHING_NODE})),{type:w.AB.SET_LOOKUP_CLN,payload:P})),(0,d.K)(P=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/listNode/"+B.payload,P),(0,f.of)({type:w.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CHANNEL_LOOKUP_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:B.payload.uiMessage})),this.store.dispatch((0,I.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/listChannel/"+B.payload.shortChannelID).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:B.payload.uiMessage})),{type:w.AB.SET_LOOKUP_CLN,payload:P})),(0,d.K)(P=>(B.payload.showError?this.handleErrorWithAlert("Lookup",B.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/listChannel/"+B.payload.shortChannelID,P):this.store.dispatch((0,S.uO)({payload:B.payload.uiMessage})),this.store.dispatch((0,I.v_)({payload:[]})),(0,f.of)({type:w.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.INVOICE_LOOKUP_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,I.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.INVOICES_API+"?label="+B.payload).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.SEARCHING_INVOICE})),P.invoices&&P.invoices.length&&P.invoices.length>0&&this.store.dispatch((0,I.aL)({payload:P.invoices[0]})),{type:w.AB.SET_LOOKUP_CLN,payload:P.invoices&&P.invoices.length&&P.invoices.length>0?P.invoices[0]:P})),(0,d.K)(P=>(this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",P),this.store.dispatch((0,S.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:w.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_LOOKUP_CLN),(0,b.U)(B=>(this.logger.info(B.payload),B.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_FORWARDING_HISTORY_CLN),(0,N.M)(this.store.select(L.ey)),(0,M.z)(([B,P])=>{const z=B.payload.status?B.payload.status:"settled",se=B.payload.maxLen?B.payload.maxLen:10,fe=B.payload.offset?B.payload.offset:0,xe=z.charAt(0).toUpperCase();this.store.dispatch((0,I.Ni)({payload:{action:"FetchForwardingHistory"+xe,status:w.Bn.INITIATED}}));const Re=!!P.api_version&&this.commonService.isVersionCompatible(P.api_version,"0.7.3");let we="";return we=Re?this.CHILD_API_URL+h.NZ.CHANNELS_API+"/listForwardsPaginated?status="+z+"&maxLen="+se+"&offset="+fe:this.CHILD_API_URL+h.NZ.CHANNELS_API+"/listForwards?status="+z,this.httpClient.get(we).pipe((0,b.U)(Q=>{if(this.logger.info(Q),this.store.dispatch((0,I.Ni)({payload:{action:"FetchForwardingHistory"+xe,status:w.Bn.COMPLETED}})),Re)return{type:w.AB.SET_FORWARDING_HISTORY_CLN,payload:Q};{const Ge=[],ve=[],F=[];return Q.forEach(Ae=>{Ae.status===w.OO.SETTLED?F.push(Ae):Ae.status===w.OO.FAILED?ve.push(Ae):Ae.status===w.OO.LOCAL_FAILED&&Ge.push(Ae)}),B.payload.status===w.OO.FAILED?this.store.dispatch((0,I.QJ)({payload:{status:w.OO.FAILED,offset:fe,maxLen:se,totalForwards:ve.length,listForwards:ve}})):B.payload.status===w.OO.LOCAL_FAILED?this.store.dispatch((0,I.QJ)({payload:{status:w.OO.LOCAL_FAILED,offset:fe,maxLen:se,totalForwards:Ge.length,listForwards:Ge}})):B.payload.status===w.OO.SETTLED&&this.store.dispatch((0,I.QJ)({payload:{status:w.OO.SETTLED,offset:fe,maxLen:se,totalForwards:F.length,listForwards:F}})),{type:w.pg.VOID}}}),(0,d.K)(Q=>(this.handleErrorWithAlert("FetchForwardingHistory"+xe,w.m6.NO_SPINNER,"Get "+z+" Forwarding History Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/listForwardsPaginated?status="+z,Q),(0,f.of)({type:w.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_EXPIRED_INVOICE_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.INVOICES_API+(B.payload?"?maxexpiry="+B.payload:"")).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:w.m6.DELETE_INVOICE})),this.store.dispatch((0,S.jW)({payload:"Invoices Deleted Successfully!"})),{type:w.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(z=>(this.handleErrorWithAlert("DeleteInvoices",w.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+h.NZ.INVOICES_API,z),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_INVOICE_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.ADD_INVOICE})),this.store.dispatch((0,I.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.INVOICES_API,{label:B.payload.label,amount:B.payload.amount,description:B.payload.description,expiry:B.payload.expiry,private:B.payload.private}).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.ADD_INVOICE})),P.msatoshi=B.payload.amount,P.label=B.payload.label,P.expires_at=Math.round((new Date).getTime()/1e3+B.payload.expiry),P.description=B.payload.description,P.status="unpaid",setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{invoice:P,newlyAdded:!0,component:D.y}}}))},100),{type:w.AB.ADD_INVOICE_CLN,payload:P})),(0,d.K)(P=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.m6.ADD_INVOICE,"Add Invoice Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_OFFER_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.CREATE_OFFER})),this.store.dispatch((0,I.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.OFFERS_API,{amount:B.payload.amount,description:B.payload.description,vendor:B.payload.vendor}).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{offer:P,newlyAdded:!0,component:U.k}}}))},100),{type:w.AB.ADD_OFFER_CLN,payload:P})),(0,d.K)(P=>(this.handleErrorWithoutAlert("SaveNewOffer",w.m6.CREATE_OFFER,"Create Offer Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INVOICES_CLN),(0,M.z)(B=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.INVOICES_API+"?num_max_invoices="+(B.payload.num_max_invoices?B.payload.num_max_invoices:1e6)+"&index_offset="+(B.payload.index_offset?B.payload.index_offset:0)+"&reversed="+(!B.payload.reversed||B.payload.reversed)).pipe((0,b.U)(fe=>(this.logger.info(fe),this.store.dispatch((0,I.Ni)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),{type:w.AB.SET_INVOICES_CLN,payload:fe})),(0,d.K)(fe=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",fe),(0,f.of)({type:w.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFERS_CLN),(0,M.z)(B=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchOffers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.OFFERS_API).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"FetchOffers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFERS_CLN,payload:P.offers?P.offers:[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchOffers",w.m6.NO_SPINNER,"Fetching Offers Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DISABLE_OFFER_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,I.Ni)({payload:{action:"DisableOffer",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.OFFERS_API+"/"+B.payload.offer_id).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"DisableOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,S.jW)({payload:"Offer Disabled Successfully!"})),{type:w.AB.UPDATE_OFFER_CLN,payload:{offer:P}})),(0,d.K)(P=>(this.handleErrorWithoutAlert("DisableOffer",w.m6.DISABLE_OFFER,"Disabling Offer Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,M.z)(B=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.OFFERS_API+"/offerbookmarks").pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFER_BOOKMARKS_CLN,payload:P||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_OFFER_BOOKMARK_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,I.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.OFFERS_API+"/offerbookmark/"+B.payload.bolt12).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,S.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:B.payload.bolt12}})),(0,d.K)(P=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+h.NZ.OFFERS_API+"/offerbookmark/"+B.payload.bolt12,P),(0,f.of)({type:w.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_CHANNEL_TRANSACTION_CLN),(0,M.z)(B=>(this.store.dispatch((0,S.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,I.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.ON_CHAIN_API,B.payload).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,I.EG)()),this.store.dispatch((0,I.Ly)()),{type:w.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:P})),(0,d.K)(P=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_UTXOS_CLN),(0,M.z)(()=>(this.store.dispatch((0,I.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.ON_CHAIN_API+"/utxos"))),(0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,I.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),{type:w.AB.SET_UTXOS_CLN,payload:B.outputs||[]})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",B),(0,f.of)({type:w.pg.VOID}))))),this.store.select(L.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(B=>{B.FetchInfo.status!==w.Bn.COMPLETED&&B.FetchInfo.status!==w.Bn.ERROR||B.FetchFees.status!==w.Bn.COMPLETED&&B.FetchFees.status!==w.Bn.ERROR||B.FetchChannels.status!==w.Bn.COMPLETED&&B.FetchChannels.status!==w.Bn.ERROR||B.FetchBalance.status!==w.Bn.COMPLETED&&B.FetchBalance.status!==w.Bn.ERROR||B.FetchLocalRemoteBalance.status!==w.Bn.COMPLETED&&B.FetchLocalRemoteBalance.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,S.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(B=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(B)),B)switch(B.event){case w.nM.INVOICE:this.logger.info(B),B&&B.data&&B.data.label&&this.store.dispatch((0,I.aL)({payload:B.data}));break;case w.nM.SEND_PAYMENT:case w.nM.BLOCK_HEIGHT:this.logger.info(B);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(B))}})}initializeRemainingData(r,u){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,S.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,S._V)({payload:c}));let C=this.location.path();C.includes("/lnd/")?C=C.replace("/lnd/","/cln/"):C.includes("/ecl/")&&(C=C.replace("/ecl/","/cln/")),(C.includes("/login")||C.includes("/error")||""===C||"HOME"===u||C.includes("?access-key="))&&(C="/cln/home"),this.router.navigate([C]),this.store.dispatch((0,I.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,I.SN)()),this.store.dispatch((0,I.UR)()),this.store.dispatch((0,I.EG)()),this.store.dispatch((0,I.g3)()),this.store.dispatch((0,I.HJ)({payload:"perkw"})),this.store.dispatch((0,I.HJ)({payload:"perkb"})),this.store.dispatch((0,I.$W)()),this.store.dispatch((0,I.Ly)()),this.store.dispatch((0,I.cQ)())}handleErrorWithoutAlert(r,u,c,C){if(this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(C)),401===C.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,S.uO)({payload:u}));const E=this.commonService.extractErrorMessage(C,c);this.store.dispatch((0,I.Ni)({payload:{action:r,status:w.Bn.ERROR,statusCode:C.status.toString(),message:E}}))}}handleErrorWithAlert(r,u,c,C,E){if(this.logger.error(E),401===E.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,S.uO)({payload:u}));const O=this.commonService.extractErrorMessage(E);this.store.dispatch((0,S.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:E.status,message:O,URL:C},component:A.H}}})),this.store.dispatch((0,I.Ni)({payload:{action:r,status:w.Bn.ERROR,statusCode:E.status.toString(),message:O,URL:C}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return y.\u0275fac=function(r){return new(r||y)(Z.LFG(t.eX),Z.LFG(j.eN),Z.LFG(ne.yh),Z.LFG(X.m),Z.LFG(de.v),Z.LFG(ee.mQ),Z.LFG(te.F0),Z.LFG(ce.d),Z.LFG(J.Ye))},y.\u0275prov=Z.Yz7({token:y,factory:y.\u0275fac}),y})()},9828:(Fe,Y,p)=>{"use strict";p.d(Y,{Ao:()=>ee,Bo:()=>Z,EQ:()=>J,Hz:()=>te,JG:()=>h,OL:()=>X,PP:()=>d,Rn:()=>L,T4:()=>S,Wi:()=>N,Wj:()=>U,Y_:()=>ce,ZW:()=>I,ey:()=>M,gc:()=>w,hx:()=>D,jK:()=>de,lK:()=>ne,lw:()=>f,xQ:()=>j,yA:()=>b,zm:()=>A});var t=p(5620);const e=(0,t.ZF)("cln"),f=(0,t.P1)(e,y=>y.nodeSettings),M=(0,t.P1)(e,y=>y.information),b=((0,t.P1)(e,y=>y.apisCallStatus.FetchInfo),(0,t.P1)(e,y=>y.apisCallStatus)),d=(0,t.P1)(e,y=>({payments:y.payments,apiCallStatus:y.apisCallStatus.FetchPayments})),N=(0,t.P1)(e,y=>({peers:y.peers,apiCallStatus:y.apisCallStatus.FetchPeers})),h=(0,t.P1)(e,y=>({fees:y.fees,apiCallStatus:y.apisCallStatus.FetchFees})),A=(0,t.P1)(e,y=>({feeRatesPerKB:y.feeRatesPerKB,apiCallStatus:y.apisCallStatus.FetchFeeRatesperkb})),D=(0,t.P1)(e,y=>({feeRatesPerKW:y.feeRatesPerKW,apiCallStatus:y.apisCallStatus.FetchFeeRatesperkw})),w=(0,t.P1)(e,y=>({listInvoices:y.invoices,apiCallStatus:y.apisCallStatus.FetchInvoices})),S=(0,t.P1)(e,y=>({utxos:y.utxos,apiCallStatus:y.apisCallStatus.FetchUTXOs})),I=(0,t.P1)(e,y=>({activeChannels:y.activeChannels,pendingChannels:y.pendingChannels,inactiveChannels:y.inactiveChannels,apiCallStatus:y.apisCallStatus.FetchChannels})),L=(0,t.P1)(e,y=>({balance:y.balance,apiCallStatus:y.apisCallStatus.FetchBalance})),U=(0,t.P1)(e,y=>({localRemoteBalance:y.localRemoteBalance,apiCallStatus:y.apisCallStatus.FetchLocalRemoteBalance})),Z=(0,t.P1)(e,y=>({forwardingHistory:y.forwardingHistory,apiCallStatus:y.apisCallStatus.FetchForwardingHistoryS})),j=(0,t.P1)(e,y=>({failedForwardingHistory:y.failedForwardingHistory,apiCallStatus:y.apisCallStatus.FetchForwardingHistoryF})),ne=(0,t.P1)(e,y=>({localFailedForwardingHistory:y.localFailedForwardingHistory,apiCallStatus:y.apisCallStatus.FetchForwardingHistoryL})),X=(0,t.P1)(e,y=>({information:y.information,nodeSettings:y.nodeSettings,balance:y.balance})),de=(0,t.P1)(e,y=>({information:y.information,balance:y.balance,numPeers:y.peers.length})),ee=(0,t.P1)(e,y=>({information:y.information,balance:y.balance})),te=(0,t.P1)(e,y=>({information:y.information,nodeSettings:y.nodeSettings,apisCallStatus:[y.apisCallStatus.FetchInfo,y.apisCallStatus.FetchForwardingHistoryS]})),ce=(0,t.P1)(e,y=>({offers:y.offers,apiCallStatus:y.apisCallStatus.FetchOffers})),J=(0,t.P1)(e,y=>({offersBookmarks:y.offersBookmarks,apiCallStatus:y.apisCallStatus.FetchOfferBookmarks}))},5566:(Fe,Y,p)=>{"use strict";p.d(Y,{y:()=>lt});var t=p(8966),e=p(801),f=p(7579),M=p(2722),a=p(7731),b=p(9828),d=p(5e3),N=p(5043),h=p(62),A=p(7261),D=p(5620),w=p(7093),S=p(9808),I=p(3322),L=p(159),U=p(9224),Z=p(9444),j=p(7238),ne=p(7423),X=p(4834),de=p(773),ee=p(3390),te=p(6895);function ce(Ie,De){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const oe=d.oxw();d.Q6J("value",(null==oe.invoice?null:oe.invoice.bolt11)||(null==oe.invoice?null:oe.invoice.bolt12))("size",oe.qrWidth)("errorCorrectionLevel","L")}}function J(Ie,De){1&Ie&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}const ge=function(Ie){return{"mr-0":Ie}};function y(Ie,De){if(1&Ie&&d._UZ(0,"span",35),2&Ie){const oe=d.oxw();d.Q6J("ngClass",d.VKq(1,ge,oe.screenSize===oe.screenSizeEnum.XS))}}function i(Ie,De){if(1&Ie&&d._UZ(0,"span",36),2&Ie){const oe=d.oxw();d.Q6J("ngClass",d.VKq(1,ge,oe.screenSize===oe.screenSizeEnum.XS))}}function r(Ie,De){if(1&Ie&&d._UZ(0,"span",37),2&Ie){const oe=d.oxw();d.Q6J("ngClass",d.VKq(1,ge,oe.screenSize===oe.screenSizeEnum.XS))}}function u(Ie,De){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const oe=d.oxw();d.Q6J("value",(null==oe.invoice?null:oe.invoice.bolt11)||(null==oe.invoice?null:oe.invoice.bolt12))("size",oe.qrWidth)("errorCorrectionLevel","L")}}function c(Ie,De){1&Ie&&(d.TgZ(0,"span",38),d._uU(1,"QR Code Not Applicable"),d.qZA())}function C(Ie,De){1&Ie&&d._UZ(0,"mat-divider",39),2&Ie&&d.Q6J("inset",!0)}function E(Ie,De){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 oe=d.oxw();d.xp6(2),d.Q6J("icon",oe.faExclamationTriangle),d.xp6(2),d.Oqu(null==oe.invoice?null:oe.invoice.warning_capacity)}}function O(Ie,De){1&Ie&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function _(Ie,De){1&Ie&&d._UZ(0,"span",47)}const n=function(){return[]};function v(Ie,De){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 oe=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,(null==oe.invoice?null:oe.invoice.msatoshi_received)/1e3)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,n).constructor(35))}}function B(Ie,De){if(1&Ie&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Ie){const oe=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,(null==oe.invoice?null:oe.invoice.msatoshi_received)/1e3)," Sats")}}function P(Ie,De){if(1&Ie&&(d.ynx(0),d.YNc(1,v,6,5,"div",42),d.YNc(2,B,3,3,"div",23),d.BQk()),2&Ie){const oe=d.oxw();d.xp6(1),d.Q6J("ngIf",oe.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!oe.flgInvoicePaid)}}function z(Ie,De){1&Ie&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function se(Ie,De){1&Ie&&d._UZ(0,"mat-spinner",49),2&Ie&&d.Q6J("diameter",20)}function fe(Ie,De){if(1&Ie&&(d.ynx(0),d.YNc(1,z,2,0,"span",23),d.YNc(2,se,1,1,"mat-spinner",48),d.BQk()),2&Ie){const oe=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==oe.invoice?null:oe.invoice.status)||!oe.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==oe.invoice?null:oe.invoice.status)&&oe.flgVersionCompatible)}}function xe(Ie,De){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 oe=d.oxw();d.xp6(7),d.Oqu(null==oe.invoice?null:oe.invoice.payment_hash),d.xp6(7),d.Oqu(null==oe.invoice?null:oe.invoice.label)}}function Re(Ie,De){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function we(Ie,De){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function Q(Ie,De){if(1&Ie){const oe=d.EpF();d.TgZ(0,"button",50),d.NdJ("copied",function(ye){return d.CHM(oe),d.oxw().onCopyPayment(ye)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Ie){const oe=d.oxw();d.Q6J("payload",(null==oe.invoice?null:oe.invoice.bolt11)||(null==oe.invoice?null:oe.invoice.bolt12))}}function Ge(Ie,De){if(1&Ie){const oe=d.EpF();d.TgZ(0,"button",51),d.NdJ("click",function(){return d.CHM(oe),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const ve=function(Ie){return{"display-none":Ie}},F=function(Ie){return{"xs-scroll-y":Ie}},Ae=function(Ie,De){return{"mt-2":Ie,"mt-1":De}};let lt=(()=>{class Ie{constructor(oe,Te,ye,W,$,ue){this.dialogRef=oe,this.data=Te,this.logger=ye,this.commonService=W,this.snackBar=$,this.store=ue,this.faReceipt=e.dLy,this.faExclamationTriangle=e.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 f.x,new f.x,new f.x,new f.x,new f.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(b.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(oe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(oe.api_version,"0.6.0")}),this.store.select(b.gc).pipe((0,M.R)(this.unSubs[1])).subscribe(oe=>{const Te=this.invoice.status;this.invoice=(oe.listInvoices.invoices||[]).find(W=>W.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(oe)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(oe){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+oe)}ngOnDestroy(){this.unSubs.forEach(oe=>{oe.next(null),oe.complete()})}}return Ie.\u0275fac=function(oe){return new(oe||Ie)(d.Y36(t.so),d.Y36(t.WI),d.Y36(N.mQ),d.Y36(h.v),d.Y36(A.ux),d.Y36(D.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(oe,Te){if(1&oe&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ce,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,y,1,3,"span",9),d.YNc(11,i,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,u,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,E,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,O,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,P,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,xe,16,2,"div",23),d.TgZ(65,"div",27)(66,"button",28),d.NdJ("click",function(){return Te.onShowAdvanced()}),d.YNc(67,Re,2,0,"p",29),d.YNc(68,we,2,0,"ng-template",null,30,d.W1O),d.qZA(),d.YNc(70,Q,2,1,"button",31),d.YNc(71,Ge,2,0,"button",32),d.qZA()()()()()),2&oe){const ye=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,ve,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,F,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,ve,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,Ae,!Te.showAdvanced,Te.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Te.showAdvanced)("ngIfElse",ye),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:[w.xw,w.Wh,w.yH,S.mk,I.oO,S.O5,L.uU,U.dk,Z.BN,j.gM,ne.lW,U.dn,X.d,S.sg,de.Ou,ee.h,te.y],pipes:[S.JJ,S.uU],styles:[""]}),Ie})()},1462:(Fe,Y,p)=>{"use strict";p.d(Y,{k:()=>z});var t=p(8966),e=p(801),f=p(7579),M=p(2722),a=p(7731),b=p(9828),d=p(5e3),N=p(5043),h=p(62),A=p(7261),D=p(5620),w=p(8104),S=p(7093),I=p(9808),L=p(3322),U=p(159),Z=p(9224),j=p(9444),ne=p(7423),X=p(4834),de=p(3390),ee=p(6895);function te(se,fe){if(1&se&&d._UZ(0,"qr-code",28),2&se){const xe=d.oxw();d.Q6J("value",null==xe.offer?null:xe.offer.bolt12)("size",xe.qrWidth)("errorCorrectionLevel","L")}}function ce(se,fe){1&se&&(d.TgZ(0,"span",29),d._uU(1,"N/A"),d.qZA())}function J(se,fe){if(1&se&&d._UZ(0,"qr-code",28),2&se){const xe=d.oxw();d.Q6J("value",null==xe.offer?null:xe.offer.bolt12)("size",xe.qrWidth)("errorCorrectionLevel","L")}}function ge(se,fe){1&se&&(d.TgZ(0,"span",30),d._uU(1,"QR Code Not Applicable"),d.qZA())}function y(se,fe){1&se&&d._UZ(0,"mat-divider",31),2&se&&d.Q6J("inset",!0)}function i(se,fe){1&se&&d._UZ(0,"mat-divider",19)}function r(se,fe){if(1&se&&(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&se){const xe=d.oxw(2);d.xp6(5),d.hij(" ",null!=xe.offer&&xe.offer.used?null!=xe.offer&&xe.offer.used?"Yes":"No":"N/K"," "),d.xp6(5),d.hij(" ",null!=xe.offer&&xe.offer.single_use?null!=xe.offer&&xe.offer.single_use?"Yes":"No":"N/K"," ")}}function u(se,fe){1&se&&d._UZ(0,"mat-divider",19)}function c(se,fe){if(1&se&&(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&se){const xe=d.oxw(2);d.xp6(5),d.Oqu((null==xe.offerDecoded?null:xe.offerDecoded.vendor)||(null==xe.offerDecoded?null:xe.offerDecoded.issuer))}}function C(se,fe){if(1&se&&(d.TgZ(0,"div"),d.YNc(1,i,1,0,"mat-divider",32),d.YNc(2,r,11,2,"div",33),d.YNc(3,u,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&se){const xe=d.oxw();d.xp6(1),d.Q6J("ngIf",(null==xe.offer?null:xe.offer.used)||(null==xe.offer?null:xe.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==xe.offer?null:xe.offer.used)||(null==xe.offer?null:xe.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==xe.offerDecoded?null:xe.offerDecoded.vendor)||(null==xe.offerDecoded?null:xe.offerDecoded.issuer)),d.xp6(1),d.Q6J("ngIf",(null==xe.offerDecoded?null:xe.offerDecoded.vendor)||(null==xe.offerDecoded?null:xe.offerDecoded.issuer)),d.xp6(7),d.Oqu(xe.offerDecoded.offer_id)}}function E(se,fe){1&se&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function O(se,fe){1&se&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function _(se,fe){if(1&se){const xe=d.EpF();d.TgZ(0,"button",35),d.NdJ("copied",function(we){return d.CHM(xe),d.oxw().onCopyOffer(we)}),d._uU(1,"Copy Offer"),d.qZA()}if(2&se){const xe=d.oxw();d.Q6J("payload",null==xe.offer?null:xe.offer.bolt12)}}function n(se,fe){if(1&se){const xe=d.EpF();d.TgZ(0,"button",36),d.NdJ("click",function(){return d.CHM(xe),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const v=function(se){return{"display-none":se}},B=function(se){return{"xs-scroll-y":se}},P=function(se,fe){return{"mt-2":se,"mt-1":fe}};let z=(()=>{class se{constructor(xe,Re,we,Q,Ge,ve,F){this.dialogRef=xe,this.data=Re,this.logger=we,this.commonService=Q,this.snackBar=Ge,this.store=ve,this.dataService=F,this.faReceipt=e.dLy,this.faExclamationTriangle=e.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 f.x,new f.x,new f.x,new f.x,new f.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(b.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(xe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(xe.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,M.R)(this.unSubs[1])).subscribe(xe=>{this.offerDecoded=xe,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_msat.slice(0,-4))})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(xe){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+xe)}ngOnDestroy(){this.unSubs.forEach(xe=>{xe.next(null),xe.complete()})}}return se.\u0275fac=function(xe){return new(xe||se)(d.Y36(t.so),d.Y36(t.WI),d.Y36(N.mQ),d.Y36(h.v),d.Y36(A.ux),d.Y36(D.yh),d.Y36(w.D))},se.\u0275cmp=d.Xpm({type:se,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(xe,Re){if(1&xe&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,te,1,3,"qr-code",2),d.YNc(3,ce,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 Re.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,ge,2,0,"span",13),d.qZA(),d.YNc(17,y,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 Re.onShowAdvanced()}),d.YNc(47,E,2,0,"p",24),d.YNc(48,O,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&xe){const we=d.MAs(49);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(24,v,Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),d.xp6(4),d.Q6J("icon",Re.faReceipt),d.xp6(2),d.Oqu(Re.screenSize===Re.screenSizeEnum.XS?Re.newlyAdded?"Created":"Offer":Re.newlyAdded?"Offer Created":"Offer Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(26,B,Re.screenSize===Re.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(28,v,Re.screenSize!==Re.screenSizeEnum.XS&&Re.screenSize!==Re.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM),d.xp6(6),d.hij(" ",null!=Re.offerDecoded&&Re.offerDecoded.amount_msat&&0!==(null==Re.offerDecoded?null:Re.offerDecoded.amount)?d.lcZ(24,22,(null==Re.offerDecoded?null:Re.offerDecoded.amount)/1e3):"Open Offer"," "),d.xp6(6),d.hij(" ",null!=Re.offer&&Re.offer.active?null!=Re.offer&&Re.offer.active?"Active":"Inactive":"N/K"," "),d.xp6(7),d.hij(" ",null==Re.offerDecoded?null:Re.offerDecoded.description," "),d.xp6(7),d.Oqu(null==Re.offer?null:Re.offer.bolt12),d.xp6(1),d.Q6J("ngIf",Re.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(30,P,!Re.showAdvanced,Re.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Re.showAdvanced)("ngIfElse",we),d.xp6(3),d.Q6J("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12))}},directives:[S.xw,S.Wh,S.yH,I.mk,L.oO,I.O5,U.uU,Z.dk,j.BN,ne.lW,Z.dn,X.d,de.h,ee.y],pipes:[I.JJ],styles:[""]}),se})()},2994:(Fe,Y,p)=>{"use strict";p.d(Y,{$W:()=>j,BL:()=>r,Bw:()=>L,CX:()=>d,DJ:()=>F,EK:()=>ce,El:()=>X,Fd:()=>M,GD:()=>te,HG:()=>Z,HI:()=>C,Iy:()=>P,Lf:()=>B,Nr:()=>fe,OG:()=>u,On:()=>U,QZ:()=>f,RX:()=>h,SN:()=>N,Sf:()=>Q,TM:()=>n,TW:()=>w,UR:()=>A,WM:()=>se,WO:()=>E,YP:()=>Re,YX:()=>y,Z$:()=>xe,Z8:()=>ne,Zr:()=>a,_E:()=>J,aL:()=>we,cQ:()=>c,eN:()=>D,i:()=>S,iL:()=>I,iz:()=>b,kL:()=>O,mC:()=>v,n7:()=>Ge,oV:()=>_,pW:()=>i,ti:()=>Ae});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),M=(0,t.PH)(e.lr.RESET_ECL_STORE,(0,t.Ky)()),a=(0,t.PH)(e.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,t.Ky)()),b=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),d=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),N=(0,t.PH)(e.lr.FETCH_FEES_ECL),h=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),A=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),D=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),S=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),I=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),L=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),U=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),Z=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),j=(0,t.PH)(e.lr.FETCH_PEERS_ECL),ne=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),X=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),te=((0,t.PH)(e.lr.NEWLY_ADDED_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.ADD_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.DETACH_PEER_ECL,(0,t.Ky)())),ce=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),J=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),y=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),i=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),r=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),u=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),c=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),C=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),E=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),O=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),_=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),v=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),B=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),P=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),se=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),fe=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),xe=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),Re=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),we=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),Q=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),Ge=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),F=((0,t.PH)(e.lr.SET_LOOKUP_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.UPDATE_CHANNEL_STATE_ECL,(0,t.Ky)())),Ae=(0,t.PH)(e.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,t.Ky)())},3289:(Fe,Y,p)=>{"use strict";p.d(Y,{o:()=>ce});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),b=p(4004),d=p(262),N=p(2340),h=p(1786),A=p(7731),D=p(7861),w=p(7766),S=p(2994),I=p(2501),L=p(5e3),U=p(8138),Z=p(5620),j=p(5986),ne=p(62),X=p(5043),de=p(1402),ee=p(7998),te=p(9808);let ce=(()=>{class J{constructor(y,i,r,u,c,C,E,O,_){this.actions=y,this.httpClient=i,this.store=r,this.sessionService=u,this.commonService=c,this.logger=C,this.router=E,this.wsService=O,this.location=_,this.CHILD_API_URL=N.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchECL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_INFO_ECL),(0,M.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,D.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,D.ac)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(A.pg.SET_SELECTED_NODE))),(0,b.U)(v=>(this.logger.info(v),this.initializeRemainingData(v,n.payload.loadPage),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:A.m6.GET_NODE_INFO})),{type:A.lr.SET_INFO_ECL,payload:v||{}})),(0,d.K)(v=>{const B=this.commonService.extractErrorCode(v),P=503===B?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(v);return this.router.navigate(["/error"],{state:{errorCode:B,errorMessage:P}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:B,error:P}),(0,f.of)({type:A.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_FEES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API+"/fees").pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),{type:A.lr.SET_FEES_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,f.of)({type:A.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_PAYMENTS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API+"/payments").pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,f.of)({type:A.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_CHANNELS_ECL),(0,M.z)(n=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API).pipe((0,b.U)(v=>(this.logger.info(v),this.rawChannelsList=v,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,S.cQ)()),{type:A.pg.VOID})),(0,d.K)(v=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",v),(0,f.of)({type:A.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/balance"))),(0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:A.Bn.COMPLETED}})),{type:A.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",A.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,f.of)({type:A.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_PEERS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.PEERS_API).pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.lr.SET_PEERS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,f.of)({type:A.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.GET_NEW_ADDRESS_ECL),(0,M.z)(()=>(this.store.dispatch((0,D.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API).pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,D.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithAlert("GetNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+N.NZ.ON_CHAIN_API,n),(0,f.of)({type:A.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SET_NEW_ADDRESS_ECL),(0,b.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SAVE_NEW_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,D.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,b.U)(v=>(this.logger.info(v),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),v=v||[],this.store.dispatch((0,D.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,S.Z8)({payload:v})),{type:A.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:v.find(B=>B.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,d.K)(v=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",v),(0,f.of)({type:A.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.DETACH_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,D.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.PEERS_API+"/"+n.payload.nodeId).pipe((0,b.U)(v=>(this.logger.info(v),this.store.dispatch((0,D.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,D.jW)({payload:"Disconnecting Peer!"})),{type:A.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,d.K)(v=>(this.handleErrorWithAlert("DisconnectPeer",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+N.NZ.PEERS_API+"/"+n.payload.nodeId,v),(0,f.of)({type:A.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SAVE_NEW_CHANNEL_ECL),(0,M.z)(n=>(this.store.dispatch((0,D.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.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,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,S.$W)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,D.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.jW)({payload:"Channel Added Successfully!"})),{type:A.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",B),(0,f.of)({type:A.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.UPDATE_CHANNEL_ECL),(0,M.z)(n=>{this.store.dispatch((0,D.ac)({payload:A.m6.UPDATE_CHAN_POLICY}));let v="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return v=n.payload.nodeIds?v+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?v+"&nodeId="+n.payload.nodeId:n.payload.channelIds?v+"&channelIds="+n.payload.channelIds:v+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/updateRelayFee"+v,{}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,D.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:A.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(B=>(this.handleErrorWithAlert("UpdateChannels",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+N.NZ.CHANNELS_API,B),(0,f.of)({type:A.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.CLOSE_CHANNEL_ECL),(0,M.z)(n=>(this.store.dispatch((0,D.ac)({payload:n.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,b.U)(v=>(this.logger.info(v),setTimeout(()=>{this.store.dispatch((0,D.uO)({payload:n.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,D.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:A.pg.VOID})),(0,d.K)(v=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+N.NZ.CHANNELS_API,v),(0,f.of)({type:A.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.GET_QUERY_ROUTES_ECL),(0,M.z)(n=>this.httpClient.get(this.CHILD_API_URL+N.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,b.U)(v=>(this.logger.info(v),{type:A.lr.SET_QUERY_ROUTES_ECL,payload:v})),(0,d.K)(v=>(this.store.dispatch((0,S.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,v),(0,f.of)({type:A.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SET_QUERY_ROUTES_ECL),(0,b.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SEND_PAYMENT_ECL),(0,M.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,D.ac)({payload:A.m6.SEND_PAYMENT})),this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PAYMENTS_API,n.payload).pipe((0,b.U)(v=>(this.logger.info(v),this.latestPaymentRes=v,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:A.pg.VOID})),(0,d.K)(v=>(this.logger.error("Error: "+JSON.stringify(v)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",A.m6.SEND_PAYMENT,"Send Payment Failed.",v):this.handleErrorWithAlert("SendPayment",A.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API,v),(0,f.of)({type:A.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_TRANSACTIONS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:A.Bn.COMPLETED}})),{type:A.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",A.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,f.of)({type:A.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SEND_ONCHAIN_FUNDS_ECL),(0,M.z)(n=>(this.store.dispatch((0,D.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.ON_CHAIN_API,n.payload).pipe((0,b.U)(v=>(this.logger.info(v),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:A.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,S.iL)()),{type:A.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:v})),(0,d.K)(v=>(this.handleErrorWithoutAlert("SendOnchainFunds",A.m6.SEND_FUNDS,"Sending Fund Failed.",v),(0,f.of)({type:A.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.CREATE_INVOICE_ECL),(0,M.z)(n=>(this.store.dispatch((0,D.ac)({payload:A.m6.CREATE_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.INVOICES_API,n.payload).pipe((0,b.U)(v=>(this.logger.info(v),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:A.m6.CREATE_INVOICE})),v.timestamp=Math.round((new Date).getTime()/1e3),v.expiresAt=Math.round(v.timestamp+n.payload.expireIn),v.description=n.payload.description,v.status="unpaid",setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{invoice:v,newlyAdded:!0,component:w.R}}}))},100),{type:A.lr.ADD_INVOICE_ECL,payload:v})),(0,d.K)(v=>(this.handleErrorWithoutAlert("CreateInvoice",A.m6.CREATE_INVOICE,"Create Invoice Failed.",v),(0,f.of)({type:A.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.FETCH_INVOICES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API).pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),{type:A.lr.SET_INVOICES_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,f.of)({type:A.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.PEER_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,D.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/nodes/"+n.payload).pipe((0,b.U)(v=>(this.logger.info(v),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:A.m6.SEARCHING_NODE})),{type:A.lr.SET_LOOKUP_ECL,payload:v})),(0,d.K)(v=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/nodes/"+n.payload,v),(0,f.of)({type:A.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.INVOICE_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,D.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API+"/"+n.payload).pipe((0,b.U)(v=>(this.logger.info(v),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.aL)({payload:v})),{type:A.lr.SET_LOOKUP_ECL,payload:v})),(0,d.K)(v=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",v),this.store.dispatch((0,D.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:A.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(A.lr.SET_LOOKUP_ECL),(0,b.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:A.m6.SEND_PAYMENT})),this.store.dispatch((0,S.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,D.jW)({payload:n}))},this.store.select(I.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==A.Bn.COMPLETED&&n.FetchInfo.status!==A.Bn.ERROR||n.FetchFees.status!==A.Bn.COMPLETED&&n.FetchFees.status!==A.Bn.ERROR||n.FetchOnchainBalance.status!==A.Bn.COMPLETED&&n.FetchOnchainBalance.status!==A.Bn.ERROR||n.FetchChannels.status!==A.Bn.COMPLETED&&n.FetchChannels.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,D.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(n=>{this.logger.info("Received new message from the service: "+JSON.stringify(n));let v="";if(n)switch(n.type){case A.$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 A.$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 A.$v.PAYMENT_RECEIVED:this.store.dispatch((0,S.aL)({payload:n}));break;case A.$v.PAYMENT_RELAYED:delete n.source,this.store.dispatch((0,S.ti)({payload:n}));break;case A.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=this.rawChannelsList.map(B=>(B.channelId===n.channelId&&B.nodeId===n.remoteNodeId&&(B.state=n.currentState),B)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,S.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let y=0,i=0,r=0,u={localBalance:0,remoteBalance:0},c=[];const C=[],E=[],O={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((_,n)=>{_&&("NORMAL"===_.state?(y=_.toLocal+_.toRemote,i+=_.toLocal,r+=_.toRemote,_.balancedness=0===y?1:+(1-Math.abs((_.toLocal-_.toRemote)/y)).toFixed(3),c.push(_),O.active.channels=O.active.channels+1,O.active.capacity=O.active.capacity+_.toLocal):_.state.includes("WAIT")||_.state.includes("CLOSING")||_.state.includes("SYNCING")?(_.state=_.state.replace(/_/g," "),C.push(_),O.pending.channels=O.pending.channels+1,O.pending.capacity=O.pending.capacity+_.toLocal):(_.state=_.state.replace(/_/g," "),E.push(_),O.inactive.channels=O.inactive.channels+1,O.inactive.capacity=O.inactive.capacity+_.toLocal))}),u={localBalance:i,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(E)),this.logger.info("Lightning Balances: "+JSON.stringify(u)),this.logger.info("Channels Status: "+JSON.stringify(O)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:c,pending:C,inactive:E,balances:u,status:O})),this.store.dispatch((0,S.eN)({payload:c})),this.store.dispatch((0,S.TW)({payload:C})),this.store.dispatch((0,S.i)({payload:E})),this.store.dispatch((0,S.On)({payload:u})),this.store.dispatch((0,S.HG)({payload:O}))}initializeRemainingData(y,i){this.sessionService.setItem("eclUnlocked","true");const r={identity_pubkey:y.nodeId,alias:y.alias,testnet:"testnet"===y.network,chains:y.publicAddresses,uris:y.uris,version:y.version,numberOfPendingChannels:0};this.store.dispatch((0,D.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,D._V)({payload:r}));let u=this.location.path();u.includes("/lnd/")?u=u.replace("/lnd/","/ecl/"):u.includes("/cln/")&&(u=u.replace("/cln/","/ecl/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===i||u.includes("?access-key="))&&(u="/ecl/home"),this.router.navigate([u]),this.store.dispatch((0,S.WM)()),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,S.SN)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,S.$W)())}handleErrorWithoutAlert(y,i,r,u){this.logger.error("ERROR IN: "+y+"\n"+JSON.stringify(u)),401===u.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,D.uO)({payload:i})),this.store.dispatch((0,S.QZ)({payload:{action:y,status:A.Bn.ERROR,statusCode:u.status.toString(),message:this.commonService.extractErrorMessage(u,r)}})))}handleErrorWithAlert(y,i,r,u,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,D.uO)({payload:i}));const C=this.commonService.extractErrorMessage(c);this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status,message:C,URL:u},component:h.H}}})),this.store.dispatch((0,S.QZ)({payload:{action:y,status:A.Bn.ERROR,statusCode:c.status.toString(),message:C,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(y=>{y.next(null),y.complete()})}}return J.\u0275fac=function(y){return new(y||J)(L.LFG(t.eX),L.LFG(U.eN),L.LFG(Z.yh),L.LFG(j.m),L.LFG(ne.v),L.LFG(X.mQ),L.LFG(de.F0),L.LFG(ee.d),L.LFG(te.Ye))},J.\u0275prov=L.Yz7({token:J,factory:J.\u0275fac}),J})()},2501:(Fe,Y,p)=>{"use strict";p.d(Y,{Bo:()=>S,Ef:()=>w,JG:()=>h,PP:()=>N,T$:()=>a,Xz:()=>A,dx:()=>D,kY:()=>I,pg:()=>f,yA:()=>d,yD:()=>M});var t=p(5620);const e=(0,t.ZF)("ecl"),f=(0,t.P1)(e,L=>L.nodeSettings),M=(0,t.P1)(e,L=>L.information),a=(0,t.P1)(e,L=>({information:L.information,apiCallStatus:L.apisCallStatus.FetchInfo})),d=((0,t.P1)(e,L=>L.apisCallStatus.FetchInfo),(0,t.P1)(e,L=>L.apisCallStatus)),N=(0,t.P1)(e,L=>({payments:L.payments,apiCallStatus:L.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,L=>({fees:L.fees,apiCallStatus:L.apisCallStatus.FetchFees})),A=(0,t.P1)(e,L=>({activeChannels:L.activeChannels,pendingChannels:L.pendingChannels,inactiveChannels:L.inactiveChannels,lightningBalance:L.lightningBalance,channelsStatus:L.channelsStatus,apiCallStatus:L.apisCallStatus.FetchChannels})),D=(0,t.P1)(e,L=>({transactions:L.transactions,apiCallStatus:L.apisCallStatus.FetchTransactions})),w=(0,t.P1)(e,L=>({invoices:L.invoices,apiCallStatus:L.apisCallStatus.FetchInvoices})),S=(0,t.P1)(e,L=>({peers:L.peers,apiCallStatus:L.apisCallStatus.FetchPeers})),I=(0,t.P1)(e,L=>({onchainBalance:L.onchainBalance,apiCallStatus:L.apisCallStatus.FetchOnchainBalance}))},7766:(Fe,Y,p)=>{"use strict";p.d(Y,{R:()=>we});var t=p(8966),e=p(801),f=p(7579),M=p(2722),a=p(7731),b=p(2501),d=p(5e3),N=p(5043),h=p(62),A=p(7261),D=p(5620),w=p(7093),S=p(9808),I=p(3322),L=p(159),U=p(9224),Z=p(9444),j=p(7423),ne=p(4834),X=p(773),de=p(3390),ee=p(6895);function te(Q,Ge){if(1&Q&&d._UZ(0,"qr-code",29),2&Q){const ve=d.oxw();d.Q6J("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)("errorCorrectionLevel","L")}}function ce(Q,Ge){1&Q&&(d.TgZ(0,"span",30),d._uU(1,"N/A"),d.qZA())}function J(Q,Ge){if(1&Q&&d._UZ(0,"qr-code",29),2&Q){const ve=d.oxw();d.Q6J("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)("errorCorrectionLevel","L")}}function ge(Q,Ge){1&Q&&(d.TgZ(0,"span",31),d._uU(1,"QR Code Not Applicable"),d.qZA())}function y(Q,Ge){1&Q&&d._UZ(0,"mat-divider",32),2&Q&&d.Q6J("inset",!0)}function i(Q,Ge){1&Q&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function r(Q,Ge){1&Q&&d._UZ(0,"span",38)}const u=function(){return[]};function c(Q,Ge){if(1&Q&&(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&Q){const ve=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==ve.invoice?null:ve.invoice.amountSettled)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,u).constructor(35))}}function C(Q,Ge){if(1&Q&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Q){const ve=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==ve.invoice?null:ve.invoice.amountSettled)," Sats")}}function E(Q,Ge){if(1&Q&&(d.ynx(0),d.YNc(1,c,6,5,"div",33),d.YNc(2,C,3,3,"div",19),d.BQk()),2&Q){const ve=d.oxw();d.xp6(1),d.Q6J("ngIf",ve.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!ve.flgInvoicePaid)}}function O(Q,Ge){1&Q&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function _(Q,Ge){1&Q&&d._UZ(0,"mat-spinner",40),2&Q&&d.Q6J("diameter",20)}function n(Q,Ge){if(1&Q&&(d.ynx(0),d.YNc(1,O,2,0,"span",19),d.YNc(2,_,1,1,"mat-spinner",39),d.BQk()),2&Q){const ve=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==ve.invoice?null:ve.invoice.status)||!ve.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==ve.invoice?null:ve.invoice.status)&&ve.flgVersionCompatible)}}function v(Q,Ge){if(1&Q&&(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&Q){const ve=d.oxw();d.xp6(7),d.Oqu(d.xi3(8,4,1e3*(null==ve.invoice?null:ve.invoice.expiresAt),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(14,7,1e3*(null==ve.invoice?null:ve.invoice.receivedAt),"dd/MMM/y HH:mm")),d.xp6(8),d.Oqu(null==ve.invoice?null:ve.invoice.paymentHash),d.xp6(7),d.Oqu(null==ve.invoice?null:ve.invoice.nodeId)}}function B(Q,Ge){1&Q&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function P(Q,Ge){1&Q&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function z(Q,Ge){if(1&Q){const ve=d.EpF();d.TgZ(0,"button",43),d.NdJ("copied",function(Ae){return d.CHM(ve),d.oxw().onCopyPayment(Ae)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Q){const ve=d.oxw();d.Q6J("payload",null==ve.invoice?null:ve.invoice.serialized)}}function se(Q,Ge){if(1&Q){const ve=d.EpF();d.TgZ(0,"button",44),d.NdJ("click",function(){return d.CHM(ve),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const fe=function(Q){return{"display-none":Q}},xe=function(Q){return{"xs-scroll-y":Q}},Re=function(Q,Ge){return{"mt-2":Q,"mt-1":Ge}};let we=(()=>{class Q{constructor(ve,F,Ae,lt,Ie,De){this.dialogRef=ve,this.data=F,this.logger=Ae,this.commonService=lt,this.snackBar=Ie,this.store=De,this.faReceipt=e.dLy,this.faExclamationTriangle=e.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 f.x,new f.x,new f.x,new f.x,new f.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(b.yD).pipe((0,M.R)(this.unSubs[0])).subscribe(ve=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ve.version,"0.5.0")}),this.store.select(b.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(ve=>{const F=this.invoice.status;this.invoice=(ve.invoices&&ve.invoices.length>0?ve.invoices:[]).find(lt=>lt.paymentHash===this.invoice.paymentHash),F!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ve)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ve){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ve)}ngOnDestroy(){this.unSubs.forEach(ve=>{ve.next(null),ve.complete()})}}return Q.\u0275fac=function(ve){return new(ve||Q)(d.Y36(t.so),d.Y36(t.WI),d.Y36(N.mQ),d.Y36(h.v),d.Y36(A.ux),d.Y36(D.yh))},Q.\u0275cmp=d.Xpm({type:Q,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(ve,F){if(1&ve&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,te,1,3,"qr-code",2),d.YNc(3,ce,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 F.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,ge,2,0,"span",13),d.qZA(),d.YNc(17,y,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,i,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,E,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,v,30,10,"div",19),d.TgZ(61,"div",23)(62,"button",24),d.NdJ("click",function(){return F.onShowAdvanced()}),d.YNc(63,B,2,0,"p",25),d.YNc(64,P,2,0,"ng-template",null,26,d.W1O),d.qZA(),d.YNc(66,z,2,1,"button",27),d.YNc(67,se,2,0,"button",28),d.qZA()()()()()),2&ve){const Ae=d.MAs(65);d.xp6(1),d.Q6J("fxLayoutAlign",null!=F.invoice&&F.invoice.serialized&&""!==(null==F.invoice?null:F.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(33,fe,F.screenSize===F.screenSizeEnum.XS||F.screenSize===F.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==F.invoice?null:F.invoice.serialized)&&""!==(null==F.invoice?null:F.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.serialized)||""===(null==F.invoice?null:F.invoice.serialized)),d.xp6(4),d.Q6J("icon",F.faReceipt),d.xp6(2),d.Oqu(F.screenSize===F.screenSizeEnum.XS?F.newlyAdded?"Created":"Invoice":F.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(35,xe,F.screenSize===F.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=F.invoice&&F.invoice.serialized&&""!==(null==F.invoice?null:F.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(37,fe,F.screenSize!==F.screenSizeEnum.XS&&F.screenSize!==F.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==F.invoice?null:F.invoice.serialized)&&""!==(null==F.invoice?null:F.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.serialized)||""===(null==F.invoice?null:F.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",F.screenSize===F.screenSizeEnum.XS||F.screenSize===F.screenSizeEnum.SM),d.xp6(6),d.hij("",d.lcZ(24,26,(null==F.invoice?null:F.invoice.amount)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.amount)||"0"===(null==F.invoice?null:F.invoice.amount)),d.xp6(5),d.Q6J("ngIf",null==F.invoice?null:F.invoice.amountSettled),d.xp6(1),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.amountSettled)),d.xp6(7),d.Oqu(d.xi3(39,28,1e3*(null==F.invoice?null:F.invoice.timestamp),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.lcZ(45,31,null==F.invoice?null:F.invoice.status)),d.xp6(8),d.Oqu((null==F.invoice?null:F.invoice.description)||"-"),d.xp6(7),d.Oqu((null==F.invoice?null:F.invoice.serialized)||"N/A"),d.xp6(1),d.Q6J("ngIf",F.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(39,Re,!F.showAdvanced,F.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!F.showAdvanced)("ngIfElse",Ae),d.xp6(3),d.Q6J("ngIf",(null==F.invoice?null:F.invoice.serialized)&&""!==(null==F.invoice?null:F.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=F.invoice&&F.invoice.serialized)||""===(null==F.invoice?null:F.invoice.serialized))}},directives:[w.xw,w.Wh,w.yH,S.mk,I.oO,S.O5,L.uU,U.dk,Z.BN,j.lW,U.dn,ne.d,S.sg,X.Ou,de.h,ee.y],pipes:[S.JJ,S.uU,S.rS],styles:[""]}),Q})()},6523:(Fe,Y,p)=>{"use strict";p.d(Y,{$A:()=>di,$W:()=>N,BL:()=>c,B_:()=>B,Bl:()=>ne,CX:()=>d,Cp:()=>O,EK:()=>S,El:()=>A,Fr:()=>$t,HI:()=>Ae,JT:()=>a,Jl:()=>X,Jo:()=>vt,Lf:()=>Q,Ll:()=>M,Ly:()=>Ge,Nr:()=>fe,OG:()=>C,PC:()=>f,QJ:()=>Nt,RX:()=>j,Rd:()=>I,Rv:()=>de,SN:()=>Z,Sf:()=>Dt,TW:()=>ge,UH:()=>ve,UR:()=>te,Vv:()=>E,WM:()=>se,WO:()=>gt,Wi:()=>W,YP:()=>U,YX:()=>u,Z7:()=>J,Z8:()=>h,Zh:()=>y,_E:()=>Te,_L:()=>i,aL:()=>xe,as:()=>ce,cQ:()=>F,dV:()=>De,fu:()=>ue,kL:()=>et,ks:()=>ee,mC:()=>we,n7:()=>Yt,oV:()=>lt,pW:()=>r,qY:()=>Re,sQ:()=>b,tb:()=>v,u0:()=>xt,vV:()=>P,xG:()=>ut,y2:()=>Le,yZ:()=>Gt,z:()=>w});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),M=(0,t.PH)(e.uR.RESET_LND_STORE,(0,t.Ky)()),a=(0,t.PH)(e.uR.SET_CHILD_NODE_SETTINGS_LND,(0,t.Ky)()),b=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),d=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),N=(0,t.PH)(e.uR.FETCH_PEERS_LND),h=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),A=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),w=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),S=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),I=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),U=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),Z=(0,t.PH)(e.uR.FETCH_FEES_LND),j=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),ne=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),X=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),de=(0,t.PH)(e.uR.FETCH_NETWORK_LND),ee=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),te=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),ce=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),J=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),ge=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),y=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),i=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),r=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),u=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),c=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),C=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),E=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),O=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),v=((0,t.PH)(e.uR.BACKUP_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.VERIFY_CHANNEL_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.RESTORE_CHANNELS_LIST_LND)),B=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),P=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),se=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),fe=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),xe=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),Re=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),we=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),Q=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),Ge=(0,t.PH)(e.uR.FETCH_UTXOS_LND),ve=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),F=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),Ae=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),lt=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),De=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),Te=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),W=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),ue=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),Le=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),ut=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),Dt=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),di=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),Yt=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),Gt=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),xt=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),Nt=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),gt=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),et=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),vt=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),$t=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(Fe,Y,p)=>{"use strict";p.d(Y,{l:()=>ge});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),b=p(4004),d=p(262),N=p(1365),h=p(2340),A=p(8627),D=p(1786),w=p(7731),S=p(7861),I=p(6523),L=p(6529),U=p(5e3),Z=p(8138),j=p(5620),ne=p(5043),X=p(62),de=p(5986),ee=p(8966),te=p(1402),ce=p(7998),J=p(9808);let ge=(()=>{class y{constructor(r,u,c,C,E,O,_,n,v,B){this.actions=r,this.httpClient=u,this.store=c,this.logger=C,this.commonService=E,this.sessionService=O,this.dialog=_,this.router=n,this.wsService=v,this.location=B,this.CHILD_API_URL=h.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_INFO_LND),(0,M.z)(P=>(this.flgInitialized=!1,this.store.dispatch((0,S.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.ac)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,I.PC)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,b.U)(z=>(this.logger.info(z),z.chains&&z.chains.length&&z.chains[0]&&("string"==typeof z.chains[0]&&z.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof z.chains[0]&&z.chains[0].hasOwnProperty("chain")&&z.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,I.PC)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:w.pg.LOGOUT}):z.identity_pubkey?(z.lnImplementation="LND",this.initializeRemainingData(z,P.payload.loadPage),this.store.dispatch((0,I.PC)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),{type:w.uR.SET_INFO_LND,payload:z||{}}):(this.store.dispatch((0,I.PC)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:w.uR.SET_INFO_LND,payload:{}}))),(0,d.K)(z=>{if("string"==typeof z.error.error&&z.error.error.includes("Not Found")||"string"==typeof z.error.error&&z.error.error.includes("wallet locked")||502===z.status&&!z.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",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",z);else if("string"==typeof z.error.error&&z.error.error.includes("starting up")&&500===z.status)setTimeout(()=>{this.store.dispatch((0,I.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const se=this.commonService.extractErrorCode(z),fe=503===se?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(z);this.router.navigate(["/error"],{state:{errorCode:se,errorMessage:fe}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:se,error:fe})}return(0,f.of)({type:w.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PEERS_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PEERS_API).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.uR.SET_PEERS_LND,payload:P||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_NEW_PEER_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,I.PC)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.PEERS_API,{pubkey:P.payload.pubkey,host:P.payload.host,perm:P.payload.perm}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,I.PC)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,I.Z8)({payload:z||[]})),{type:w.uR.NEWLY_ADDED_PEER_LND,payload:{peer:z[0]}})),(0,d.K)(z=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",z),(0,f.of)({type:w.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.DETACH_PEER_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.PEERS_API+"/"+P.payload.pubkey).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,S.jW)({payload:"Peer Disconnected Successfully."})),{type:w.uR.REMOVE_PEER_LND,payload:{pubkey:P.payload.pubkey}})),(0,d.K)(z=>(this.handleErrorWithAlert("DetachPeer",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+h.NZ.PEERS_API+"/"+P.payload.pubkey,z),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_NEW_INVOICE_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,I.PC)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.INVOICES_API,{memo:P.payload.memo,amount:P.payload.invoiceValue,private:P.payload.private,expiry:P.payload.expiry}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,I.PC)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,I.WM)({payload:{num_max_invoices:P.payload.pageSize,reversed:!0}})),P.payload.openModal?(z.memo=P.payload.memo,z.value=P.payload.invoiceValue,z.expiry=P.payload.expiry,z.cltv_expiry="144",z.private=P.payload.private,z.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{invoice:z,newlyAdded:!0,component:A.v}}}))},100),{type:w.pg.CLOSE_SPINNER,payload:P.payload.uiMessage}):{type:w.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:z.payment_request}})),(0,d.K)(z=>(this.handleErrorWithoutAlert("SaveNewInvoice",P.payload.uiMessage,"Add Invoice Failed.",z),(0,f.of)({type:w.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_NEW_CHANNEL_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,I.PC)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API,{node_pubkey:P.payload.selectedPeerPubkey,local_funding_amount:P.payload.fundingAmount,private:P.payload.private,trans_type:P.payload.transType,trans_type_value:P.payload.transTypeValue,spend_unconfirmed:P.payload.spendUnconfirmed}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,I.PC)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,I.Bl)()),this.store.dispatch((0,I.UR)()),this.store.dispatch((0,I.Vv)({payload:{uiMessage:w.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:w.uR.FETCH_PENDING_CHANNELS_LND})),(0,d.K)(z=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",z),(0,f.of)({type:w.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.UPDATE_CHANNEL_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:P.payload.baseFeeMsat,feeRate:P.payload.feeRate,timeLockDelta:P.payload.timeLockDelta,chanPoint:P.payload.chanPoint}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,S.jW)("all"===P.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:w.uR.FETCH_CHANNELS_LND})),(0,d.K)(z=>(this.handleErrorWithAlert("UpdateChannels",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",z),(0,f.of)({type:w.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.CLOSE_CHANNEL_LND),(0,M.z)(P=>{this.store.dispatch((0,S.ac)({payload:P.payload.forcibly?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL}));let z=this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+P.payload.channelPoint+"?force="+P.payload.forcibly;return P.payload.targetConf&&(z=z+"&target_conf="+P.payload.targetConf),P.payload.satPerByte&&(z=z+"&sat_per_byte="+P.payload.satPerByte),this.httpClient.delete(z).pipe((0,b.U)(se=>(this.logger.info(se),this.store.dispatch((0,S.uO)({payload:P.payload.forcibly?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,I.UR)()),this.store.dispatch((0,I.Z7)()),this.store.dispatch((0,I.Vv)({payload:{uiMessage:w.m6.NO_SPINNER,channelPoint:"ALL",showMessage:se.message}})),{type:w.pg.VOID})),(0,d.K)(se=>(this.handleErrorWithAlert("CloseChannel",P.payload.forcibly?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+P.payload.channelPoint+"?force="+P.payload.forcibly,se),(0,f.of)({type:w.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.BACKUP_CHANNELS_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,I.PC)({payload:{action:"BackupChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+P.payload.channelPoint).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,I.PC)({payload:{action:"BackupChannels",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,S.jW)({payload:P.payload.showMessage+" "+z.message})),{type:w.uR.BACKUP_CHANNELS_RES_LND,payload:z.message})),(0,d.K)(z=>(this.handleErrorWithAlert("BackupChannels",P.payload.uiMessage,P.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+P.payload.channelPoint,z),(0,f.of)({type:w.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.VERIFY_CHANNEL_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.VERIFY_CHANNEL})),this.store.dispatch((0,I.PC)({payload:{action:"VerifyChannel",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+P.payload.channelPoint,{}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,I.PC)({payload:{action:"VerifyChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.VERIFY_CHANNEL})),this.store.dispatch((0,S.jW)({payload:z.message})),{type:w.uR.VERIFY_CHANNEL_RES_LND,payload:z.message})),(0,d.K)(z=>(this.handleErrorWithAlert("VerifyChannel",w.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+P.payload.channelPoint,z),(0,f.of)({type:w.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.RESTORE_CHANNELS_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.RESTORE_CHANNEL})),this.store.dispatch((0,I.PC)({payload:{action:"RestoreChannels",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+P.payload.channelPoint,{}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,I.PC)({payload:{action:"RestoreChannels",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.RESTORE_CHANNEL})),this.store.dispatch((0,S.jW)({payload:z.message})),this.store.dispatch((0,I.B_)({payload:z.list})),{type:w.uR.RESTORE_CHANNELS_RES_LND,payload:z.message})),(0,d.K)(z=>(this.handleErrorWithAlert("RestoreChannels",w.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+P.payload.channelPoint,z),(0,f.of)({type:w.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_FEES_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.FEES_API))),(0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),P.forwarding_events_history&&(this.store.dispatch((0,I.QJ)({payload:P.forwarding_events_history})),delete P.forwarding_events_history),{type:w.uR.SET_FEES_LND,payload:P||{}})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",P),(0,f.of)({type:w.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.BALANCE_API))),(0,b.U)(P=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),this.logger.info(P),{type:w.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:P||{total_balance:""}})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",P),(0,f.of)({type:w.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_NETWORK_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchNetwork",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/info"))),(0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"FetchNetwork",status:w.Bn.COMPLETED}})),{type:w.uR.SET_NETWORK_LND,payload:P||{}})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchNetwork",w.m6.NO_SPINNER,"Fetching Network Failed.",P),(0,f.of)({type:w.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API).pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}})),{type:w.uR.SET_CHANNELS_LND,payload:P.channels||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PENDING_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchPendingChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/pending").pipe((0,b.U)(P=>{this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"FetchPendingChannels",status:w.Bn.COMPLETED}}));const z={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 P&&(z.total_limbo_balance=P.total_limbo_balance,P.pending_closing_channels&&(z.closing.num_channels=P.pending_closing_channels.length,z.total_channels=z.total_channels+P.pending_closing_channels.length,P.pending_closing_channels.forEach(se=>{z.closing.limbo_balance=+z.closing.limbo_balance+(se.channel.local_balance?+se.channel.local_balance:0)})),P.pending_force_closing_channels&&(z.force_closing.num_channels=P.pending_force_closing_channels.length,z.total_channels=z.total_channels+P.pending_force_closing_channels.length,P.pending_force_closing_channels.forEach(se=>{z.force_closing.limbo_balance=+z.force_closing.limbo_balance+(se.channel.local_balance?+se.channel.local_balance:0)})),P.pending_open_channels&&(z.open.num_channels=P.pending_open_channels.length,z.total_channels=z.total_channels+P.pending_open_channels.length,P.pending_open_channels.forEach(se=>{z.open.limbo_balance=+z.open.limbo_balance+(se.channel.local_balance?+se.channel.local_balance:0)})),P.waiting_close_channels&&(z.waiting_close.num_channels=P.waiting_close_channels.length,z.total_channels=z.total_channels+P.waiting_close_channels.length,P.waiting_close_channels.forEach(se=>{z.waiting_close.limbo_balance=+z.waiting_close.limbo_balance+(se.channel.local_balance?+se.channel.local_balance:0)}))),{type:w.uR.SET_PENDING_CHANNELS_LND,payload:P?{pendingChannels:P,pendingChannelsSummary:z}:{pendingChannels:{},pendingChannelsSummary:z}}}),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchPendingChannels",w.m6.NO_SPINNER,"Fetching Pending Channels Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_CLOSED_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchClosedChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/closed").pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"FetchClosedChannels",status:w.Bn.COMPLETED}})),{type:w.uR.SET_CLOSED_CHANNELS_LND,payload:P.channels||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchClosedChannels",w.m6.NO_SPINNER,"Fetching Closed Channels Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_INVOICES_LND),(0,M.z)(P=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.INVOICES_API+"?num_max_invoices="+(P.payload.num_max_invoices?P.payload.num_max_invoices:100)+"&index_offset="+(P.payload.index_offset?P.payload.index_offset:0)+"&reversed="+(!!P.payload.reversed&&P.payload.reversed)).pipe((0,b.U)(xe=>(this.logger.info(xe),this.store.dispatch((0,I.PC)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),P.payload.reversed&&!P.payload.index_offset&&(xe.total_invoices=+xe.last_index_offset),{type:w.uR.SET_INVOICES_LND,payload:xe})),(0,d.K)(xe=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",xe),(0,f.of)({type:w.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_TRANSACTIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchTransactions",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API))),(0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"FetchTransactions",status:w.Bn.COMPLETED}})),{type:w.uR.SET_TRANSACTIONS_LND,payload:P||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchTransactions",w.m6.NO_SPINNER,"Fetching Transactions Failed.",P),(0,f.of)({type:w.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_UTXOS_LND),(0,N.M)(this.store.select(L.Q5)),(0,M.z)(([P,z])=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/getUTXOs?max_confs="+(z&&z.block_height?z.block_height:1e9)))),(0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),{type:w.uR.SET_UTXOS_LND,payload:P||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",P),(0,f.of)({type:w.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PAYMENTS_LND),(0,M.z)(P=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"?max_payments="+(P.payload.max_payments?P.payload.max_payments:100)+"&index_offset="+(P.payload.index_offset?P.payload.index_offset:0)+"&reversed="+(!!P.payload.reversed&&P.payload.reversed)).pipe((0,b.U)(xe=>(this.logger.info(xe),this.store.dispatch((0,I.PC)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.uR.SET_PAYMENTS_LND,payload:xe})),(0,d.K)(xe=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",xe),(0,f.of)({type:w.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SEND_PAYMENT_LND),(0,M.z)(P=>{this.store.dispatch((0,S.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,I.PC)({payload:{action:"SendPayment",status:w.Bn.INITIATED}}));const z={};return z.paymentReq=P.payload.paymentReq,P.payload.paymentAmount&&(z.paymentAmount=P.payload.paymentAmount),P.payload.outgoingChannel&&(z.outgoingChannel=P.payload.outgoingChannel.chan_id),P.payload.allowSelfPayment&&(z.allowSelfPayment=P.payload.allowSelfPayment),P.payload.lastHopPubkey&&(z.lastHopPubkey=P.payload.lastHopPubkey),P.payload.feeLimitType&&P.payload.feeLimitType!==w.Vc[0].id&&(z.feeLimit={},z.feeLimit[P.payload.feeLimitType]=P.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",z).pipe((0,b.U)(se=>{if(this.logger.info(se),this.store.dispatch((0,S.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,I.PC)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}})),se.payment_error)return P.payload.allowSelfPayment?(this.store.dispatch((0,I.WM)({payload:{num_max_invoices:w.IV,reversed:!0}})),{type:w.uR.SEND_PAYMENT_STATUS_LND,payload:se}):(P.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",se.payment_error):this.handleErrorWithAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",se.payment_error),{type:w.pg.VOID});if(this.store.dispatch((0,S.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,I.PC)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}})),this.store.dispatch((0,I.UR)()),this.store.dispatch((0,I.cQ)({payload:{max_payments:w.IV,reversed:!0}})),P.payload.allowSelfPayment)this.store.dispatch((0,I.WM)({payload:{num_max_invoices:w.IV,reversed:!0}}));else{let fe="Payment Sent Successfully.";se.payment_route&&se.payment_route.total_fees_msat&&(fe="Payment sent successfully with the total fee "+se.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,S.jW)({payload:fe}))}return{type:w.uR.SEND_PAYMENT_STATUS_LND,payload:se}}),(0,d.K)(se=>(this.logger.error("Error: "+JSON.stringify(se)),P.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",se),this.store.dispatch((0,I.WM)({payload:{num_max_invoices:w.IV,reversed:!0}})),(0,f.of)({type:w.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(se)}})):(P.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",se):this.handleErrorWithAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",se),(0,f.of)({type:w.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_GRAPH_NODE_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,I.PC)({payload:{action:"FetchGraphNode",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+P.payload.pubkey).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:w.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,I.PC)({payload:{action:"FetchGraphNode",status:w.Bn.COMPLETED}})),{type:w.uR.SET_GRAPH_NODE_LND,payload:z&&z.node?{node:z.node}:{node:null}})),(0,d.K)(z=>(this.handleErrorWithoutAlert("FetchGraphNode",w.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",z),(0,f.of)({type:w.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_GRAPH_NODE_LND),(0,b.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_NEW_ADDRESS_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+P.payload.addressId).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.uR.SET_NEW_ADDRESS_LND,payload:z&&z.address?z.address:{}})),(0,d.K)(z=>(this.handleErrorWithAlert("GetNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+P.payload.addressId,z),(0,f.of)({type:w.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_NEW_ADDRESS_LND),(0,b.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_CHANNEL_TRANSACTION_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,I.PC)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API,{amount:P.payload.amount,address:P.payload.address,sendAll:P.payload.sendAll,fees:P.payload.fees,blocks:P.payload.blocks}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,I.PC)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,I.mC)()),this.store.dispatch((0,I.Bl)()),this.store.dispatch((0,I.UR)()),{type:w.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:z})),(0,d.K)(z=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",z),(0,f.of)({type:w.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_FORWARDING_HISTORY_LND),(0,M.z)(P=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchForwardingHistory",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.SWITCH_API,{num_max_events:P.payload.num_max_events,index_offset:P.payload.index_offset,end_time:P.payload.end_time,start_time:P.payload.start_time}).pipe((0,b.U)(se=>(this.logger.info(se),this.store.dispatch((0,I.PC)({payload:{action:"FetchForwardingHistory",status:w.Bn.COMPLETED}})),{type:w.uR.SET_FORWARDING_HISTORY_LND,payload:se})),(0,d.K)(se=>(this.handleErrorWithAlert("FetchForwardingHistory",w.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+h.NZ.SWITCH_API,se),(0,f.of)({type:w.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_QUERY_ROUTES_LND),(0,M.z)(P=>{let z=this.CHILD_API_URL+h.NZ.NETWORK_API+"/routes/"+P.payload.destPubkey+"/"+P.payload.amount;return P.payload.outgoingChanId&&(z=z+"?outgoing_chan_id="+P.payload.outgoingChanId),this.httpClient.get(z).pipe((0,b.U)(se=>(this.logger.info(se),{type:w.uR.SET_QUERY_ROUTES_LND,payload:se})),(0,d.K)(se=>(this.store.dispatch((0,I.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+h.NZ.NETWORK_API,se),(0,f.of)({type:w.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_QUERY_ROUTES_LND),(0,b.U)(P=>P.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GEN_SEED_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+P.payload).pipe((0,b.U)(z=>(this.logger.info("Generated GenSeed!"),this.logger.info(z),this.store.dispatch((0,S.uO)({payload:w.m6.GEN_SEED})),{type:w.uR.GEN_SEED_RESPONSE_LND,payload:z.cipher_seed_mnemonic})),(0,d.K)(z=>(this.handleErrorWithAlert("GenSeed",w.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+P.payload,z),(0,f.of)({type:w.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,M.z)(()=>this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,b.U)(P=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(P),{type:w.pg.VOID})),(0,d.K)(P=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",w.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",P),(0,f.of)({type:w.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GEN_SEED_RESPONSE_LND),(0,b.U)(P=>P.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.INIT_WALLET_RESPONSE_LND),(0,b.U)(P=>P.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.INIT_WALLET_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:P.payload.pwd,cipher_seed_mnemonic:P.payload.cipher?P.payload.cipher:"",aezeed_passphrase:P.payload.passphrase?P.payload.passphrase:""}).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:w.m6.INITIALIZE_WALLET})),{type:w.uR.INIT_WALLET_RESPONSE_LND,payload:z})),(0,d.K)(z=>(this.handleErrorWithAlert("InitWallet",w.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/initwallet",z),(0,f.of)({type:w.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.UNLOCK_WALLET_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:P.payload.pwd}).pipe((0,b.U)(z=>(this.logger.info(z),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,S.uO)({payload:w.m6.UNLOCK_WALLET})),this.store.dispatch((0,S.ac)({payload:w.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,S.uO)({payload:w.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,I.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:w.pg.VOID})),(0,d.K)(z=>(this.handleErrorWithAlert("UnlockWallet",w.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/unlockwallet",z),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.PEER_LOOKUP_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+P.payload).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),{type:w.uR.SET_LOOKUP_LND,payload:z})),(0,d.K)(z=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+P.payload,z),(0,f.of)({type:w.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.CHANNEL_LOOKUP_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+P.payload.channelID).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),{type:w.uR.SET_LOOKUP_LND,payload:z})),(0,d.K)(z=>(this.handleErrorWithAlert("Lookup",P.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+P.payload.channelID,z),(0,f.of)({type:w.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.INVOICE_LOOKUP_LND),(0,M.z)(P=>{this.store.dispatch((0,S.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}}));let z=this.CHILD_API_URL+h.NZ.INVOICES_API+"/lookup";return z=P.payload.paymentAddress&&""!==P.payload.paymentAddress?z+"?payment_addr="+P.payload.paymentAddress:z+"?payment_hash="+P.payload.paymentHash,this.httpClient.get(z).pipe((0,b.U)(se=>(this.logger.info(se),this.store.dispatch((0,S.uO)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,I.aL)({payload:se})),{type:w.uR.SET_LOOKUP_LND,payload:se})),(0,d.K)(se=>(this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",se),P.payload.openSnackBar&&this.store.dispatch((0,S.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:w.uR.SET_LOOKUP_LND,payload:{error:se}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.PAYMENT_LOOKUP_LND),(0,M.z)(P=>(this.store.dispatch((0,S.ac)({payload:w.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/lookup/"+P.payload).pipe((0,b.U)(z=>(this.logger.info(z),this.store.dispatch((0,S.uO)({payload:w.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,I.qY)({payload:z})),{type:w.uR.SET_LOOKUP_LND,payload:z})),(0,d.K)(z=>(this.store.dispatch((0,I.PC)({payload:{action:"Lookup",status:w.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",z),(0,f.of)({type:w.uR.SET_LOOKUP_LND,payload:{error:z}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_LOOKUP_LND),(0,b.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.RESTORE_CHANNELS_LIST_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"RestoreChannelsList",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"RestoreChannelsList",status:w.Bn.COMPLETED}})),{type:w.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:P||{all_restore_exists:!1,files:[]}})),(0,d.K)(P=>(this.handleErrorWithAlert("RestoreChannelsList",w.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API,P),(0,f.of)({type:w.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,b.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,I.PC)({payload:{action:"FetchLightningTransactions",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/alltransactions").pipe((0,b.U)(P=>(this.logger.info(P),this.store.dispatch((0,I.PC)({payload:{action:"FetchLightningTransactions",status:w.Bn.COMPLETED}})),{type:w.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:P})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchLightningTransactions",w.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",P),(0,f.of)({type:w.pg.VOID})))))))),this.store.select(L.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(P=>{P.FetchInfo.status!==w.Bn.COMPLETED&&P.FetchInfo.status!==w.Bn.ERROR||P.FetchFees.status!==w.Bn.COMPLETED&&P.FetchFees.status!==w.Bn.ERROR||P.FetchBalanceBlockchain.status!==w.Bn.COMPLETED&&P.FetchBalanceBlockchain.status!==w.Bn.ERROR||P.FetchAllChannels.status!==w.Bn.COMPLETED&&P.FetchAllChannels.status!==w.Bn.ERROR||P.FetchPendingChannels.status!==w.Bn.COMPLETED&&P.FetchPendingChannels.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,S.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(P=>{this.logger.info("Received new message from the service: "+JSON.stringify(P)),P&&(P.type===w.g8.INVOICE?(this.logger.info(P),P&&P.result&&P.result.payment_request&&this.store.dispatch((0,I.aL)({payload:P.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(P)))})}initializeRemainingData(r,u){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,S.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,S._V)({payload:c}));let C=this.location.path();C.includes("/cln/")?C=C.replace("/cln/","/lnd/"):C.includes("/ecl/")&&(C=C.replace("/ecl/","/lnd/")),(C.includes("/unlock")||C.includes("/login")||C.includes("/error")||""===C||"HOME"===u||C.includes("?access-key="))&&(C="/lnd/home"),this.router.navigate([C]),this.store.dispatch((0,I.Bl)()),this.store.dispatch((0,I.UR)()),this.store.dispatch((0,I.Z7)()),this.store.dispatch((0,I.Zh)()),this.store.dispatch((0,I.$W)()),this.store.dispatch((0,I.Rv)()),this.store.dispatch((0,I.SN)()),this.store.dispatch((0,I.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,I.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(r,u,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,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,S.uO)({payload:u})),this.store.dispatch((0,I.PC)({payload:{action:r,status:w.Bn.ERROR,statusCode:C.status.toString(),message:this.commonService.extractErrorMessage(C,c)}})))}handleErrorWithAlert(r,u,c,C,E){if(this.logger.error(E),401===E.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,S.uO)({payload:u}));const O=this.commonService.extractErrorMessage(E);this.store.dispatch((0,S.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:E.status,message:O,URL:C},component:D.H}}})),this.store.dispatch((0,I.PC)({payload:{action:r,status:w.Bn.ERROR,statusCode:E.status.toString(),message:O,URL:C}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return y.\u0275fac=function(r){return new(r||y)(U.LFG(t.eX),U.LFG(Z.eN),U.LFG(j.yh),U.LFG(ne.mQ),U.LFG(X.v),U.LFG(de.m),U.LFG(ee.uw),U.LFG(te.F0),U.LFG(ce.d),U.LFG(J.Ye))},y.\u0275prov=U.Yz7({token:y,factory:y.\u0275fac}),y})()},6529:(Fe,Y,p)=>{"use strict";p.d(Y,{$k:()=>f,Bo:()=>d,Ef:()=>w,JG:()=>h,N7:()=>X,P2:()=>U,PP:()=>N,Q5:()=>M,T4:()=>ne,Wi:()=>A,ZW:()=>S,_f:()=>ee,bx:()=>te,dx:()=>D,l5:()=>de,ni:()=>L,qU:()=>Z,yA:()=>b});var t=p(5620);const e=(0,t.ZF)("lnd"),f=(0,t.P1)(e,ce=>ce.nodeSettings),M=(0,t.P1)(e,ce=>ce.information),b=((0,t.P1)(e,ce=>({information:ce.information,apiCallStatus:ce.apisCallStatus.FetchInfo})),(0,t.P1)(e,ce=>ce.apisCallStatus)),d=(0,t.P1)(e,ce=>({forwardingHistory:ce.forwardingHistory,apiCallStatus:ce.apisCallStatus.FetchForwardingHistory})),N=(0,t.P1)(e,ce=>({listPayments:ce.listPayments,apiCallStatus:ce.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,ce=>({fees:ce.fees,apiCallStatus:ce.apisCallStatus.FetchFees})),A=(0,t.P1)(e,ce=>({peers:ce.peers,apiCallStatus:ce.apisCallStatus.FetchPeers})),D=(0,t.P1)(e,ce=>({transactions:ce.transactions,apiCallStatus:ce.apisCallStatus.FetchTransactions})),w=(0,t.P1)(e,ce=>({listInvoices:ce.listInvoices,apiCallStatus:ce.apisCallStatus.FetchInvoices})),S=(0,t.P1)(e,ce=>({channels:ce.channels,channelsSummary:ce.channelsSummary,lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),L=((0,t.P1)(e,ce=>({channelsSummary:ce.channelsSummary,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({pendingChannels:ce.pendingChannels,pendingChannelsSummary:ce.pendingChannelsSummary,apiCallStatus:ce.apisCallStatus.FetchPendingChannels}))),U=(0,t.P1)(e,ce=>({closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchClosedChannels})),Z=(0,t.P1)(e,ce=>({blockchainBalance:ce.blockchainBalance,apiCallStatus:ce.apisCallStatus.FetchBalanceBlockchain})),ne=((0,t.P1)(e,ce=>({lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({utxos:ce.utxos,apiCallStatus:ce.apisCallStatus.FetchUTXOs}))),X=(0,t.P1)(e,ce=>({networkInfo:ce.networkInfo,apiCallStatus:ce.apisCallStatus.FetchNetwork})),de=(0,t.P1)(e,ce=>({allLightningTransactions:ce.allLightningTransactions,apiCallStatus:ce.apisCallStatus.FetchLightningTransactions})),ee=(0,t.P1)(e,ce=>({channels:ce.channels,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels})),te=(0,t.P1)(e,ce=>({information:ce.information,nodeSettings:ce.nodeSettings,apiCallStatus:ce.apisCallStatus.FetchInfo}))},8627:(Fe,Y,p)=>{"use strict";p.d(Y,{v:()=>$});var t=p(8966),e=p(801),f=p(7579),M=p(2722),a=p(7731),b=p(6529),d=p(5e3),N=p(5043),h=p(62),A=p(7261),D=p(5620),w=p(7093),S=p(9808),I=p(3322),L=p(159),U=p(9224),Z=p(9444),j=p(7423),ne=p(4834),X=p(8129),de=p(773),ee=p(1125),te=p(7238),ce=p(5245),J=p(3390),ge=p(6895);const y=["scrollContainer"];function i(ue,Ce){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,Ce){1&ue&&(d.TgZ(0,"span",33),d._uU(1,"N/A"),d.qZA())}function u(ue,Ce){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,Ce){1&ue&&(d.TgZ(0,"span",34),d._uU(1,"QR Code Not Applicable"),d.qZA())}function C(ue,Ce){1&ue&&d._UZ(0,"mat-divider",22),2&ue&&d.Q6J("inset",!0)}function E(ue,Ce){1&ue&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function O(ue,Ce){1&ue&&d._UZ(0,"span",40)}const _=function(){return[]};function n(ue,Ce){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,O,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 v(ue,Ce){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 B(ue,Ce){if(1&ue&&(d.ynx(0),d.YNc(1,n,6,5,"div",35),d.YNc(2,v,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 P(ue,Ce){1&ue&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function z(ue,Ce){1&ue&&d._UZ(0,"mat-spinner",42),2&ue&&d.Q6J("diameter",20)}function se(ue,Ce){if(1&ue&&(d.ynx(0),d.YNc(1,P,2,0,"span",21),d.YNc(2,z,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 xe(ue,Ce){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 Re(ue,Ce){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 we(ue,Ce){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 Q(ue,Ce){if(1&ue&&(d.TgZ(0,"div",48)(1,"div",53)(2,"span",54),d.YNc(3,xe,1,3,"span",55),d.YNc(4,Re,1,3,"span",56),d.YNc(5,we,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=Ce.$implicit,ct=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,ct.getDecimalFormat(Le))),d.xp6(2),d.Q6J("inset",!0)}}function Ge(ue,Ce){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,Q,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 ve(ue,Ce){1&ue&&d._UZ(0,"mat-divider",22),2&ue&&d.Q6J("inset",!0)}function F(ue,Ce){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,Ge,14,2,"div",45),d.YNc(27,ve,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 Ae(ue,Ce){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 lt(ue,Ce){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ie(ue,Ce){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function De(ue,Ce){if(1&ue){const Le=d.EpF();d.TgZ(0,"button",65),d.NdJ("copied",function(ut){return d.CHM(Le),d.oxw().onCopyPayment(ut)}),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 oe(ue,Ce){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}},ye=function(ue){return{"xs-scroll-y":ue}},W=function(ue){return{"h-50":ue}};let $=(()=>{class ue{constructor(Le,ct,ut,Dt,di,Yt){this.dialogRef=Le,this.data=ct,this.logger=ut,this.commonService=Dt,this.snackBar=di,this.store=Yt,this.faReceipt=e.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.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(b.Q5).pipe((0,M.R)(this.unSubs[0])).subscribe(ct=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ct.version,"0.11.0")});const Le=JSON.parse(JSON.stringify(this.invoice));this.store.select(b.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(ct=>{const ut=this.invoice.state,di=(ct.listInvoices.invoices||[]).find(Yt=>Yt.r_hash===Le.r_hash);this.invoice=di,ut!==this.invoice.state&&"SETTLED"===this.invoice.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ct)})}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(t.so),d.Y36(t.WI),d.Y36(N.mQ),d.Y36(h.v),d.Y36(A.ux),d.Y36(D.yh))},ue.\u0275cmp=d.Xpm({type:ue,selectors:[["rtl-invoice-information"]],viewQuery:function(Le,ct){if(1&Le&&d.Gf(y,5),2&Le){let ut;d.iGM(ut=d.CRH())&&(ct.container=ut.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,ct){if(1&Le&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,i,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 ct.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,u,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,E,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,B,3,2,"ng-container",21),d.YNc(33,se,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,F,28,9,"div",21),d.qZA()()(),d.YNc(70,Ae,4,0,"div",25),d.TgZ(71,"div",26)(72,"button",27),d.NdJ("click",function(){return ct.onShowAdvanced()}),d.YNc(73,lt,2,0,"p",28),d.YNc(74,Ie,2,0,"ng-template",null,29,d.W1O),d.qZA(),d.YNc(76,De,2,2,"button",30),d.YNc(77,oe,2,0,"button",31),d.qZA()()()),2&Le){const ut=d.MAs(75);d.xp6(1),d.Q6J("fxLayoutAlign",null!=ct.invoice&&ct.invoice.payment_request&&""!==(null==ct.invoice?null:ct.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(41,Te,ct.screenSize===ct.screenSizeEnum.XS||ct.screenSize===ct.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.payment_request)&&""!==(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.payment_request)||""===(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(4),d.Q6J("icon",ct.faReceipt),d.xp6(2),d.Oqu(ct.screenSize===ct.screenSizeEnum.XS?ct.newlyAdded?"Created":"Invoice":ct.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(43,ye,ct.screenSize===ct.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=ct.invoice&&ct.invoice.payment_request&&""!==(null==ct.invoice?null:ct.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(45,Te,ct.screenSize!==ct.screenSizeEnum.XS&&ct.screenSize!==ct.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.payment_request)&&""!==(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.payment_request)||""===(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",ct.screenSize===ct.screenSizeEnum.XS||ct.screenSize===ct.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngClass",d.VKq(47,W,(null==ct.invoice?null:ct.invoice.htlcs)&&(null==ct.invoice?null:ct.invoice.htlcs.length)>0&&ct.showAdvanced)),d.xp6(5),d.Oqu(ct.screenSize===ct.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij("",d.lcZ(26,33,(null==ct.invoice?null:ct.invoice.value)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.value)||"0"===(null==ct.invoice?null:ct.invoice.value)),d.xp6(5),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.amt_paid_sat)&&"OPEN"!==(null==ct.invoice?null:ct.invoice.state)),d.xp6(1),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.amt_paid_sat)||"0"===(null==ct.invoice?null:ct.invoice.amt_paid_sat)),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(d.xi3(41,35,1e3*(null==ct.invoice?null:ct.invoice.creation_date),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(0!=+(null==ct.invoice?null:ct.invoice.settle_date)?d.xi3(47,38,1e3*+(null==ct.invoice?null:ct.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),d.xp6(2),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==ct.invoice?null:ct.invoice.memo),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==ct.invoice?null:ct.invoice.payment_request)||"N/A"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==ct.invoice?null:ct.invoice.r_hash)||""),d.xp6(1),d.Q6J("ngIf",ct.showAdvanced),d.xp6(1),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.htlcs)&&(null==ct.invoice?null:ct.invoice.htlcs.length)>0&&ct.showAdvanced&&ct.flgOpened),d.xp6(3),d.Q6J("ngIf",!ct.showAdvanced)("ngIfElse",ut),d.xp6(3),d.Q6J("ngIf",(null==ct.invoice?null:ct.invoice.payment_request)&&""!==(null==ct.invoice?null:ct.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=ct.invoice&&ct.invoice.payment_request)||""===(null==ct.invoice?null:ct.invoice.payment_request))}},directives:[w.xw,w.Wh,w.yH,S.mk,I.oO,S.O5,L.uU,U.dk,Z.BN,j.lW,U.dn,ne.d,X.$V,S.sg,de.Ou,ee.ib,ee.yz,ee.yK,te.gM,ce.Hw,J.h,ge.y],pipes:[S.JJ,S.uU],styles:[""]}),ue})()},7772:(Fe,Y,p)=>{"use strict";p.d(Y,{J:()=>f,_:()=>e});var t=p(1777);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],f=[(0,t.X$)("fadeIn",[(0,t.eR)("void => *",[]),(0,t.eR)("* => void",[]),(0,t.eR)("* => *",[(0,t.jt)(800,(0,t.F4)([(0,t.oB)({opacity:0,transform:"translateY(100%)"}),(0,t.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Fe,Y,p)=>{"use strict";p.d(Y,{g:()=>e});var t=p(1777);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Fe,Y,p)=>{"use strict";p.d(Y,{l:()=>e});var t=p(1777);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(Fe,Y,p)=>{"use strict";p.d(Y,{H:()=>D});var t=p(8966),e=p(5e3),f=p(5043),M=p(7093),a=p(9224),b=p(7423),d=p(9808),N=p(4834),h=p(3390);function A(w,S){if(1&w&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&w){const I=e.oxw();e.xp6(1),e.Oqu(I.data.titleMessage)}}let D=(()=>{class w{constructor(I,L,U){this.dialogRef=I,this.data=L,this.logger=U,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(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 w.\u0275fac=function(I){return new(I||w)(e.Y36(t.so),e.Y36(t.WI),e.Y36(f.mQ))},w.\u0275cmp=e.Xpm({type:w,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(I,L){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return L.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,A,2,1,"p",8),e.TgZ(11,"h4",9),e._uU(12,"Error Code"),e.qZA(),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"h4",9),e._uU(17,"Error Message"),e.qZA(),e.TgZ(18,"span",11),e._uU(19),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"h4",9),e._uU(22,"API URL"),e.qZA(),e.TgZ(23,"span",11),e._uU(24),e.qZA(),e._UZ(25,"mat-divider",10),e.TgZ(26,"div",12)(27,"button",13),e._uU(28,"OK"),e.qZA()()()()()()),2&I&&(e.xp6(5),e.Oqu(L.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",L.data.titleMessage),e.xp6(4),e.Oqu(L.data.message.code),e.xp6(5),e.Oqu(L.errorMessage),e.xp6(5),e.Oqu(L.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},directives:[M.xw,M.yH,a.dk,M.Wh,b.lW,a.dn,d.O5,N.d,h.h,t.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),w})()},9442:(Fe,Y,p)=>{"use strict";p.d(Y,{w:()=>N});var t=p(801),e=p(5e3),f=p(1402),M=p(7093),a=p(9444),b=p(9224),d=p(7423);let N=(()=>{class h{constructor(D){this.router=D,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}return h.\u0275fac=function(D){return new(D||h)(e.Y36(f.F0))},h.\u0275cmp=e.Xpm({type:h,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(D,w){1&D&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return w.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&D&&(e.xp6(1),e.Q6J("icon",w.faTimes))},directives:[M.xw,M.Wh,a.BN,b.a8,b.dn,M.yH,d.lW],encapsulation:2}),h})()},8213:(Fe,Y,p)=>{"use strict";p.d(Y,{a:()=>Yi});var t=p(3075),e=p(7579),f=p(2722),M=p(8966),a=p(801),b=p(7772),d=p(7731),N=p(6529),h=p(5e3),A=p(5620),D=p(9107),w=p(9808),S=p(5043),I=p(1402),L=p(62),U=p(7093),Z=p(9224),j=p(7423),ne=p(5615),X=p(1125),de=p(3322),ee=p(5245),te=p(7238),ce=p(4834);function J(ze,Lt){1&ze&&h.GkF(0)}function ge(ze,Lt){1&ze&&h.GkF(0)}const y=function(ze){return{"h-5":ze}};function i(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),h._uU(4),h.ALo(5,"number"),h.qZA()()(),h.YNc(6,ge,1,0,"ng-container",0),h.qZA()),2&ze){const pe=h.oxw(),je=h.MAs(4);h.Q6J("expanded",pe.panelExpanded)("ngClass",h.VKq(7,y,!pe.flgShowPanel)),h.xp6(4),h.AsE("Quote for ",pe.termCaption," amount (",h.lcZ(5,5,pe.quote.amount)," Sats)"),h.xp6(2),h.Q6J("ngTemplateOutlet",je)}}function r(ze,Lt){if(1&ze&&(h.TgZ(0,"div",19)(1,"h4",8),h._uU(2," Prepay Amount (Sats) "),h.TgZ(3,"mat-icon",20),h._uU(4,"info_outline"),h.qZA()(),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"number"),h.qZA()()),2&ze){const pe=h.oxw(2);h.xp6(6),h.Oqu(h.lcZ(7,1,null==pe.quote?null:pe.quote.prepay_amt_sat))}}function u(ze,Lt){1&ze&&h._UZ(0,"mat-divider",13)}function c(ze,Lt){if(1&ze&&(h.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),h._uU(3," Swap Server Node Pubkey "),h.TgZ(4,"mat-icon",22),h._uU(5,"info_outline"),h.qZA()(),h.TgZ(6,"span",10),h._uU(7),h.qZA()()()),2&ze){const pe=h.oxw(2);h.xp6(7),h.Oqu(null==pe.quote?null:pe.quote.swap_payment_dest)}}function C(ze,Lt){if(1&ze&&(h.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),h._uU(4," Swap Fee (Sats) "),h.TgZ(5,"mat-icon",9),h._uU(6,"info_outline"),h.qZA()(),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"number"),h.qZA()(),h.TgZ(10,"div",7)(11,"h4",8),h._uU(12),h.TgZ(13,"mat-icon",11),h._uU(14,"info_outline"),h.qZA()(),h.TgZ(15,"span",10),h._uU(16),h.ALo(17,"number"),h.qZA()(),h.YNc(18,r,8,3,"div",12),h.qZA(),h._UZ(19,"mat-divider",13),h.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),h._uU(23," Max Off-chain Swap Routing Fee (Sats) "),h.TgZ(24,"mat-icon",15),h._uU(25,"info_outline"),h.qZA()(),h.TgZ(26,"span",10),h._uU(27),h.ALo(28,"number"),h.qZA()(),h.TgZ(29,"div",14)(30,"h4",8),h._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),h.TgZ(32,"mat-icon",16),h._uU(33,"info_outline"),h.qZA()(),h.TgZ(34,"span",10),h._uU(35,"36"),h.qZA()()(),h.YNc(36,u,1,0,"mat-divider",17),h.YNc(37,c,8,1,"div",18),h.qZA()),2&ze){const pe=h.oxw();h.xp6(2),h.Q6J("fxFlex",null!=pe.quote&&pe.quote.prepay_amt_sat?"30":"50"),h.xp6(6),h.Oqu(h.lcZ(9,9,null==pe.quote?null:pe.quote.swap_fee_sat)),h.xp6(2),h.Q6J("fxFlex",null!=pe.quote&&pe.quote.prepay_amt_sat?"35":"50"),h.xp6(2),h.hij(" ",null!=pe.quote&&pe.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=pe.quote&&pe.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),h.xp6(4),h.Oqu(h.lcZ(17,11,null!=pe.quote&&pe.quote.htlc_sweep_fee_sat?pe.quote.htlc_sweep_fee_sat:null!=pe.quote&&pe.quote.htlc_publish_fee_sat?pe.quote.htlc_publish_fee_sat:0)),h.xp6(2),h.Q6J("ngIf",null==pe.quote?null:pe.quote.prepay_amt_sat),h.xp6(9),h.Oqu(h.lcZ(28,13,(null==pe.quote?null:pe.quote.amount)*((null!=pe.quote&&pe.quote.off_chain_swap_routing_fee_percentage?null==pe.quote?null:pe.quote.off_chain_swap_routing_fee_percentage:2)/100))),h.xp6(9),h.Q6J("ngIf",""!==(null==pe.quote?null:pe.quote.swap_payment_dest)),h.xp6(1),h.Q6J("ngIf",""!==(null==pe.quote?null:pe.quote.swap_payment_dest))}}let E=(()=>{class ze{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return ze.\u0275fac=function(pe){return new(pe||ze)},ze.\u0275cmp=h.Xpm({type:ze,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(pe,je){if(1&pe&&(h.YNc(0,J,1,0,"ng-container",0),h.YNc(1,i,7,9,"ng-template",null,1,h.W1O),h.YNc(3,C,38,15,"ng-template",null,2,h.W1O)),2&pe){const Ct=h.MAs(2),ie=h.MAs(4);h.Q6J("ngTemplateOutlet",je.showPanel?Ct:ie)}},directives:[w.tP,X.ib,U.yH,w.mk,de.oO,X.yz,X.yK,U.Wh,U.xw,ee.Hw,te.gM,w.O5,ce.d],pipes:[w.JJ],styles:[""]}),ze})();var O=p(7322),_=p(7531),n=p(3390),v=p(2368),B=p(9814),P=p(5899);function z(ze,Lt){1&ze&&h.GkF(0)}function se(ze,Lt){if(1&ze&&(h.TgZ(0,"div",3)(1,"span",4),h._uU(2),h.qZA()()),2&ze){const pe=h.oxw();h.xp6(2),h.Oqu(null!=pe.loopStatus&&pe.loopStatus.error?null==pe.loopStatus?null:pe.loopStatus.error:"Unknown Error.")}}function fe(ze,Lt){if(1&ze&&(h.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),h._uU(4,"ID"),h.qZA(),h.TgZ(5,"span",4),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",8),h.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),h._uU(11,"HTLC Address"),h.qZA(),h.TgZ(12,"span",4),h._uU(13),h.qZA()()()()),2&ze){const pe=h.oxw();h.xp6(6),h.Oqu(null==pe.loopStatus?null:pe.loopStatus.id_bytes),h.xp6(7),h.Oqu(null==pe.loopStatus?null:pe.loopStatus.htlc_address)}}let xe=(()=>{class ze{constructor(){}}return ze.\u0275fac=function(pe){return new(pe||ze)},ze.\u0275cmp=h.Xpm({type:ze,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(pe,je){if(1&pe&&(h.YNc(0,z,1,0,"ng-container",0),h.YNc(1,se,3,1,"ng-template",null,1,h.W1O),h.YNc(3,fe,14,2,"ng-template",null,2,h.W1O)),2&pe){const Ct=h.MAs(2),ie=h.MAs(4);h.Q6J("ngTemplateOutlet",null!=je.loopStatus&&je.loopStatus.error?Ct:ie)}},directives:[w.tP,U.xw,U.yH,U.Wh,ce.d],styles:[""]}),ze})();var Re=p(113);function we(ze,Lt){1&ze&&h.GkF(0)}const Q=function(ze,Lt){return{"small-svg":ze,"large-svg":Lt}};function Ge(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._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),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop Out explained."),h.qZA()(),h.TgZ(29,"div",31)(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}function ve(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),h._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),h.qZA(),h.TgZ(28,"g",56),h._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),h.qZA(),h._UZ(43,"path",71),h.qZA()(),h._UZ(44,"circle",72),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Step 1: Deciding to Loop Out"),h.qZA()(),h.TgZ(48,"div",31)(49,"mat-card-subtitle",32),h._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}function F(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",73)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",74),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",75)(11,"g",76),h._UZ(12,"circle",77)(13,"path",78),h.TgZ(14,"g",79),h._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),h.qZA(),h.TgZ(18,"g",83),h._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),h.TgZ(29,"g",94)(30,"g",95),h._UZ(31,"g",96),h.qZA(),h._UZ(32,"g",97),h.qZA(),h._UZ(33,"path",98),h.qZA(),h.TgZ(34,"g",99)(35,"g",41)(36,"g",42),h._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),h.qZA(),h.TgZ(52,"g",56),h._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),h.qZA(),h._UZ(67,"path",111),h.qZA()()()()()(),h.kcU(),h.TgZ(68,"div",30)(69,"mat-card-title"),h._uU(70,"Step 2: Send lightning payment"),h.qZA()(),h.TgZ(71,"div",31)(72,"mat-card-subtitle",32),h._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. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}function Ae(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",112)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),h._UZ(9,"circle",12)(10,"path",117),h.qZA(),h.TgZ(11,"g",14),h._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),h.qZA()(),h.TgZ(27,"g",119),h._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),h.qZA(),h.TgZ(31,"g",121),h._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),h.TgZ(42,"g",94)(43,"g",95),h._UZ(44,"g",96),h.qZA(),h._UZ(45,"g",97),h.qZA(),h._UZ(46,"path",123),h.qZA()()()()(),h.kcU(),h.TgZ(47,"div",30)(48,"mat-card-title"),h._uU(49,"Step 3: Receive funds back"),h.qZA()(),h.TgZ(50,"div",31)(51,"mat-card-subtitle",32),h._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}function lt(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",124)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),h._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),h.qZA(),h.TgZ(28,"g",142)(29,"g",143)(30,"g",144),h._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),h.TgZ(34,"g",148),h._UZ(35,"path",149),h.qZA(),h._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),h.qZA(),h.TgZ(45,"g",159),h._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),h.qZA(),h._UZ(59,"path",173),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Done!"),h.qZA()(),h.TgZ(63,"div",31)(64,"mat-card-subtitle",32),h._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. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}let Ie=(()=>{class ze{constructor(pe){this.commonService=pe,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(pe){2===pe.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===pe.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return ze.\u0275fac=function(pe){return new(pe||ze)(h.Y36(L.v))},ze.\u0275cmp=h.Xpm({type:ze,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(pe,je){if(1&pe&&(h.YNc(0,we,1,0,"ng-container",0),h.YNc(1,Ge,32,5,"ng-template",null,1,h.W1O),h.YNc(3,ve,51,5,"ng-template",null,2,h.W1O),h.YNc(5,F,74,5,"ng-template",null,3,h.W1O),h.YNc(7,Ae,53,5,"ng-template",null,4,h.W1O),h.YNc(9,lt,66,5,"ng-template",null,5,h.W1O)),2&pe){const Ct=h.MAs(2),ie=h.MAs(4),qe=h.MAs(6),Mt=h.MAs(8),Vt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===je.stepNumber?Ct:2===je.stepNumber?ie:3===je.stepNumber?qe:4===je.stepNumber?Mt:Vt)}},directives:[w.tP,U.xw,U.yH,U.Wh,w.mk,de.oO,Z.n5,Z.$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:[Re.l]}}),ze})();function De(ze,Lt){1&ze&&h.GkF(0)}const oe=function(ze,Lt){return{"small-svg":ze,"large-svg":Lt}};function Te(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._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),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop In explained."),h.qZA()(),h.TgZ(29,"div",31)(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,oe,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}function ye(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),h._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),h.qZA(),h.TgZ(28,"g",56)(29,"g",57)(30,"g",58),h._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),h.TgZ(34,"g",62),h._UZ(35,"path",63),h.qZA(),h._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),h.qZA(),h.TgZ(45,"g",73),h._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),h.qZA(),h._UZ(59,"path",87),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Step 1: Deciding to Loop In"),h.qZA()(),h.TgZ(63,"div",31)(64,"mat-card-subtitle",32),h._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,oe,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}function W(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",88)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",89),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),h._UZ(14,"circle",95)(15,"path",96),h.TgZ(16,"g",97),h._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),h.qZA(),h.TgZ(20,"g",101),h._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),h.TgZ(31,"g",112)(32,"g",113),h._UZ(33,"g",114),h.qZA(),h._UZ(34,"g",115),h.qZA()()(),h.TgZ(35,"g",116)(36,"g",40),h._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),h.qZA(),h.TgZ(53,"g",56)(54,"g",57)(55,"g",58),h._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),h.TgZ(59,"g",122),h._UZ(60,"path",63),h.qZA(),h._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),h.qZA(),h.TgZ(70,"g",73),h._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),h.qZA(),h._UZ(84,"path",139),h.qZA()()()(),h._UZ(85,"path",140)(86,"path",141),h.qZA()()()(),h.kcU(),h.TgZ(87,"div",30)(88,"mat-card-title"),h._uU(89,"Step 2: Send payment out"),h.qZA()(),h.TgZ(90,"div",31)(91,"mat-card-subtitle",32),h._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,oe,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}function $(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",142)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),h._UZ(10,"circle",12)(11,"path",147),h.qZA(),h.TgZ(12,"g",14),h._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),h.qZA()(),h.TgZ(28,"g",149),h._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),h.qZA(),h.TgZ(32,"g",152),h._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),h.TgZ(43,"g",112)(44,"g",113),h._UZ(45,"g",114),h.qZA(),h._UZ(46,"g",115),h.qZA()()(),h._UZ(47,"path",153),h.qZA()()()(),h.kcU(),h.TgZ(48,"div",30)(49,"mat-card-title"),h._uU(50,"Step 3: Recieve Funds Off-chain"),h.qZA()(),h.TgZ(51,"div",31)(52,"mat-card-subtitle",32),h._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,oe,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}function ue(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(Ct){return h.CHM(pe),h.oxw().onSwipe(Ct)}),h.O4$(),h.TgZ(1,"svg",154)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),h._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),h.qZA(),h.TgZ(28,"g",172),h._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),h.qZA(),h._UZ(43,"path",187),h.qZA()(),h._UZ(44,"circle",188),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Done!"),h.qZA()(),h.TgZ(48,"div",31)(49,"mat-card-subtitle",32),h._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. "),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@sliderAnimation",pe.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,oe,pe.screenSize===pe.screenSizeEnum.XS,pe.screenSize!==pe.screenSizeEnum.XS))}}let Ce=(()=>{class ze{constructor(pe){this.commonService=pe,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(pe){2===pe.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===pe.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return ze.\u0275fac=function(pe){return new(pe||ze)(h.Y36(L.v))},ze.\u0275cmp=h.Xpm({type:ze,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(pe,je){if(1&pe&&(h.YNc(0,De,1,0,"ng-container",0),h.YNc(1,Te,32,5,"ng-template",null,1,h.W1O),h.YNc(3,ye,66,5,"ng-template",null,2,h.W1O),h.YNc(5,W,93,5,"ng-template",null,3,h.W1O),h.YNc(7,$,54,5,"ng-template",null,4,h.W1O),h.YNc(9,ue,51,5,"ng-template",null,5,h.W1O)),2&pe){const Ct=h.MAs(2),ie=h.MAs(4),qe=h.MAs(6),Mt=h.MAs(8),Vt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===je.stepNumber?Ct:2===je.stepNumber?ie:3===je.stepNumber?qe:4===je.stepNumber?Mt:Vt)}},directives:[w.tP,U.xw,U.yH,U.Wh,w.mk,de.oO,Z.n5,Z.$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:[Re.l]}}),ze})();const Le=["stepper"];function ct(ze,Lt){if(1&ze&&(h.TgZ(0,"div",48)(1,"p",49)(2,"strong"),h._uU(3,"Channel Peer:\xa0"),h.qZA(),h._uU(4),h.ALo(5,"titlecase"),h.qZA(),h.TgZ(6,"p",50)(7,"strong"),h._uU(8,"Channel ID:\xa0"),h.qZA(),h._uU(9),h.qZA(),h._UZ(10,"p",50),h.qZA()),2&ze){const pe=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,2,pe.channel.remote_alias)),h.xp6(5),h.Oqu(pe.channel.chan_id)}}function ut(ze,Lt){if(1&ze&&h._uU(0),2&ze){const pe=h.oxw(2);h.Oqu(pe.inputFormLabel)}}function Dt(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Amount is required."),h.qZA())}function di(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&ze){const pe=h.oxw(2);h.xp6(1),h.hij("Amount must be greater than or equal to ",h.lcZ(2,1,pe.minQuote.amount),".")}}function Yt(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&ze){const pe=h.oxw(2);h.xp6(1),h.hij("Amount must be less than or equal to ",h.lcZ(2,1,pe.maxQuote.amount),".")}}function Gt(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target is required."),h.qZA())}function ui(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target must be a positive number."),h.qZA())}function xt(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage is required."),h.qZA())}function Nt(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage must be a positive number."),h.qZA())}function gt(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-form-field",50),h._UZ(1,"input",51),h.YNc(2,xt,2,0,"mat-error",25),h.YNc(3,Nt,2,0,"mat-error",25),h.qZA()),2&ze){const pe=h.oxw(2);h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==pe.inputFormGroup.controls.routingFeePercent.errors?null:pe.inputFormGroup.controls.routingFeePercent.errors.required),h.xp6(1),h.Q6J("ngIf",null==pe.inputFormGroup.controls.routingFeePercent.errors?null:pe.inputFormGroup.controls.routingFeePercent.errors.min)}}function et(ze,Lt){1&ze&&(h.TgZ(0,"div",52)(1,"mat-slide-toggle",53),h._uU(2,"Fast"),h.qZA(),h.TgZ(3,"mat-icon",54),h._uU(4,"info_outline"),h.qZA()())}function vt(ze,Lt){if(1&ze&&h._uU(0),2&ze){const pe=h.oxw(2);h.Oqu(pe.quoteFormLabel)}}function $t(ze,Lt){1&ze&&(h.TgZ(0,"p",55)(1,"mat-icon",56),h._uU(2,"close"),h.qZA(),h._uU(3,"Local balance amount is insufficient for swap."),h.qZA())}function jt(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",57),h.NdJ("click",function(){return h.CHM(pe),h.oxw(2).onValidateAmount()}),h._uU(1,"Next"),h.qZA()}}function Pe(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",58),h.NdJ("click",function(){return h.CHM(pe),h.oxw(2).onLoop()}),h._uU(1),h.qZA()}if(2&ze){const pe=h.oxw(2);h.xp6(1),h.hij("Initiate ",pe.loopDirectionCaption,"")}}function Oe(ze,Lt){if(1&ze&&h._uU(0),2&ze){const pe=h.oxw(3);h.Oqu(pe.addressFormLabel)}}function le(ze,Lt){1&ze&&(h.TgZ(0,"mat-error"),h._uU(1,"Address is required."),h.qZA())}function be(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"mat-step",16)(1,"form",17),h.YNc(2,Oe,1,1,"ng-template",18),h.TgZ(3,"div",59)(4,"mat-radio-group",60),h.NdJ("change",function(Ct){return h.CHM(pe),h.oxw(2).onAddressTypeChange(Ct)}),h.TgZ(5,"mat-radio-button",61),h._uU(6,"Node Local Address"),h.qZA(),h.TgZ(7,"mat-radio-button",62),h._uU(8,"External Address"),h.qZA()(),h.TgZ(9,"mat-form-field",63),h._UZ(10,"input",64),h.YNc(11,le,2,0,"mat-error",25),h.qZA()(),h.TgZ(12,"div",29)(13,"button",65),h.NdJ("click",function(){return h.CHM(pe),h.oxw(2).onLoop()}),h._uU(14),h.qZA()()()()}if(2&ze){const pe=h.oxw(2);h.Q6J("stepControl",pe.addressFormGroup)("editable",pe.flgEditable),h.xp6(1),h.Q6J("formGroup",pe.addressFormGroup),h.xp6(9),h.Q6J("required","external"===pe.addressFormGroup.controls.addressType.value),h.xp6(1),h.Q6J("ngIf",null==pe.addressFormGroup.controls.address.errors?null:pe.addressFormGroup.controls.address.errors.required),h.xp6(3),h.hij("Initiate ",pe.loopDirectionCaption,"")}}function ht(ze,Lt){if(1&ze&&h._uU(0),2&ze){const pe=h.oxw(2);h.hij("",pe.loopDirectionCaption," Status")}}function ft(ze,Lt){if(1&ze&&(h.TgZ(0,"mat-icon",66),h._uU(1),h.qZA()),2&ze){const pe=h.oxw(2);h.xp6(1),h.Oqu(pe.loopStatus&&null!=pe.loopStatus&&pe.loopStatus.id_bytes?"check":"close")}}function Ht(ze,Lt){1&ze&&h._UZ(0,"div")}function it(ze,Lt){1&ze&&h._UZ(0,"mat-progress-bar",67)}function Ne(ze,Lt){if(1&ze&&(h.TgZ(0,"h4",68),h._uU(1),h.qZA()),2&ze){const pe=h.oxw(2);h.xp6(1),h.Oqu(pe.loopStatus&&pe.loopStatus.error?pe.loopDirectionCaption+" failed.":pe.loopStatus&&pe.loopStatus.id_bytes&&pe.channel?pe.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":pe.loopDirectionCaption+" request placed successfully.")}}function tt(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",69),h.NdJ("click",function(){return h.CHM(pe),h.oxw(2).goToLoop()}),h._uU(1,"Check Status"),h.qZA()}}function Je(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",70),h.NdJ("click",function(){return h.CHM(pe),h.oxw(2).onRestart()}),h._uU(1,"Start Again"),h.qZA()}}function Se(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),h._uU(5),h.qZA()(),h.TgZ(6,"div",8)(7,"button",9),h.NdJ("click",function(){return h.CHM(pe),h.oxw().showInfo()}),h._uU(8,"?"),h.qZA(),h.TgZ(9,"button",10),h.NdJ("click",function(){return h.CHM(pe),h.oxw().onClose()}),h._uU(10,"X"),h.qZA()()(),h.TgZ(11,"mat-card-content",11)(12,"div",12),h.YNc(13,ct,11,4,"div",13),h.TgZ(14,"mat-vertical-stepper",14,15),h.NdJ("selectionChange",function(Ct){return h.CHM(pe),h.oxw().stepSelectionChanged(Ct)}),h.TgZ(16,"mat-step",16)(17,"form",17),h.YNc(18,ut,1,1,"ng-template",18),h.TgZ(19,"div",19),h._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),h.qZA(),h.TgZ(22,"div",21)(23,"mat-form-field",22),h._UZ(24,"input",23),h.TgZ(25,"mat-hint"),h._uU(26),h.ALo(27,"number"),h.ALo(28,"number"),h.qZA(),h.TgZ(29,"span",24),h._uU(30,"Sats"),h.qZA(),h.YNc(31,Dt,2,0,"mat-error",25),h.YNc(32,di,3,3,"mat-error",25),h.YNc(33,Yt,3,3,"mat-error",25),h.qZA(),h.TgZ(34,"mat-form-field",22),h._UZ(35,"input",26),h.YNc(36,Gt,2,0,"mat-error",25),h.YNc(37,ui,2,0,"mat-error",25),h.qZA(),h.YNc(38,gt,4,3,"mat-form-field",27),h.qZA(),h.YNc(39,et,5,0,"div",28),h.TgZ(40,"div",29)(41,"button",30),h.NdJ("click",function(){return h.CHM(pe),h.oxw().onEstimateQuote()}),h._uU(42,"Estimate Quote"),h.qZA()()()(),h.TgZ(43,"mat-step",16)(44,"form",17),h.YNc(45,vt,1,1,"ng-template",18),h._UZ(46,"rtl-loop-quote",31),h.YNc(47,$t,4,0,"p",32),h.TgZ(48,"div",29),h.YNc(49,jt,2,0,"button",33),h.YNc(50,Pe,2,1,"button",34),h.qZA()()(),h.YNc(51,be,15,6,"mat-step",35),h.TgZ(52,"mat-step",36)(53,"form",17),h.YNc(54,ht,1,1,"ng-template",18),h.TgZ(55,"div",37)(56,"mat-expansion-panel",38)(57,"mat-expansion-panel-header")(58,"mat-panel-title")(59,"span",39),h._uU(60),h.YNc(61,ft,2,1,"mat-icon",40),h.qZA()()(),h.YNc(62,Ht,1,0,"div",41),h.qZA(),h.YNc(63,it,1,0,"mat-progress-bar",42),h.qZA(),h.YNc(64,Ne,2,1,"h4",43),h.TgZ(65,"div",29),h.YNc(66,tt,2,0,"button",44),h.YNc(67,Je,2,0,"button",45),h.qZA()()()(),h.TgZ(68,"div",46)(69,"button",47),h._uU(70,"Close"),h.qZA()()()()()()}if(2&ze){const pe=h.oxw(),je=h.MAs(2);h.Q6J("@opacityAnimation",void 0),h.xp6(3),h.Q6J("fxFlex",pe.screenSize===pe.screenSizeEnum.XS||pe.screenSize===pe.screenSizeEnum.SM?"83":"91"),h.xp6(2),h.Oqu(pe.channel?"Channel "+pe.loopDirectionCaption:pe.loopDirectionCaption),h.xp6(1),h.Q6J("fxFlex",pe.screenSize===pe.screenSizeEnum.XS||pe.screenSize===pe.screenSizeEnum.SM?"17":"9"),h.xp6(7),h.Q6J("ngIf",pe.channel),h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",pe.inputFormGroup)("editable",pe.flgEditable),h.xp6(1),h.Q6J("formGroup",pe.inputFormGroup),h.xp6(3),h.Q6J("quote",pe.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),h.xp6(1),h.Q6J("quote",pe.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),h.xp6(2),h.Q6J("fxFlex",pe.direction===pe.LoopTypeEnum.LOOP_OUT?"35":"48"),h.xp6(1),h.Q6J("step",1e3),h.xp6(2),h.AsE("Range: ",h.lcZ(27,51,pe.minQuote.amount),"-",h.lcZ(28,53,pe.maxQuote.amount),""),h.xp6(5),h.Q6J("ngIf",null==pe.inputFormGroup.controls.amount.errors?null:pe.inputFormGroup.controls.amount.errors.required),h.xp6(1),h.Q6J("ngIf",null==pe.inputFormGroup.controls.amount.errors?null:pe.inputFormGroup.controls.amount.errors.min),h.xp6(1),h.Q6J("ngIf",null==pe.inputFormGroup.controls.amount.errors?null:pe.inputFormGroup.controls.amount.errors.max),h.xp6(1),h.Q6J("fxFlex",pe.direction===pe.LoopTypeEnum.LOOP_OUT?"30":"48"),h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==pe.inputFormGroup.controls.sweepConfTarget.errors?null:pe.inputFormGroup.controls.sweepConfTarget.errors.required),h.xp6(1),h.Q6J("ngIf",null==pe.inputFormGroup.controls.sweepConfTarget.errors?null:pe.inputFormGroup.controls.sweepConfTarget.errors.min),h.xp6(1),h.Q6J("ngIf",pe.direction===pe.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",pe.direction===pe.LoopTypeEnum.LOOP_OUT),h.xp6(4),h.Q6J("stepControl",pe.quoteFormGroup)("editable",pe.flgEditable),h.xp6(1),h.Q6J("formGroup",pe.quoteFormGroup),h.xp6(2),h.Q6J("quote",pe.quote)("showPanel",!1),h.xp6(1),h.Q6J("ngIf",pe.inputFormGroup.controls.amount.value>pe.localBalanceToCompare),h.xp6(2),h.Q6J("ngIf",pe.direction===pe.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",pe.direction===pe.LoopTypeEnum.LOOP_IN),h.xp6(1),h.Q6J("ngIf",pe.direction===pe.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("stepControl",pe.statusFormGroup),h.xp6(1),h.Q6J("formGroup",pe.statusFormGroup),h.xp6(3),h.Q6J("expanded",!!pe.loopStatus),h.xp6(4),h.Oqu(pe.loopStatus?pe.loopStatus.id_bytes?pe.loopDirectionCaption+" request details":pe.loopDirectionCaption+" error details":"Waiting for "+pe.loopDirectionCaption+" request..."),h.xp6(1),h.Q6J("ngIf",pe.loopStatus),h.xp6(1),h.Q6J("ngIf",!pe.loopStatus)("ngIfElse",je),h.xp6(1),h.Q6J("ngIf",!pe.loopStatus),h.xp6(1),h.Q6J("ngIf",pe.loopStatus),h.xp6(2),h.Q6J("ngIf",pe.loopStatus&&pe.loopStatus.id_bytes&&pe.channel),h.xp6(1),h.Q6J("ngIf",pe.loopStatus&&(pe.loopStatus.error||!pe.loopStatus.id_bytes)),h.xp6(2),h.Q6J("mat-dialog-close",!1)}}function Ue(ze,Lt){if(1&ze&&h._UZ(0,"rtl-loop-status",71),2&ze){const pe=h.oxw();h.Q6J("loopStatus",pe.loopStatus)}}function rt(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"rtl-loop-out-info-graphics",88),h.NdJ("stepNumberChange",function(Ct){return h.CHM(pe),h.oxw(2).stepNumber=Ct}),h.qZA()}if(2&ze){const pe=h.oxw(2);h.Q6J("stepNumber",pe.stepNumber)("animationDirection",pe.animationDirection)}}function at(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"rtl-loop-in-info-graphics",88),h.NdJ("stepNumberChange",function(Ct){return h.CHM(pe),h.oxw(2).stepNumber=Ct}),h.qZA()}if(2&ze){const pe=h.oxw(2);h.Q6J("stepNumber",pe.stepNumber)("animationDirection",pe.animationDirection)}}const yt=function(ze,Lt){return{"dot-primary":ze,"dot-primary-lighter":Lt}};function gi(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"span",89),h.NdJ("click",function(){const ie=h.CHM(pe).$implicit;return h.oxw(2).onStepChanged(ie)}),h._UZ(1,"p",90),h.qZA()}if(2&ze){const pe=Lt.$implicit,je=h.oxw(2);h.xp6(1),h.Q6J("ngClass",h.WLB(1,yt,je.stepNumber===pe,je.stepNumber!==pe))}}function Qt(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",91),h.NdJ("click",function(){return h.CHM(pe),h.oxw(2).onReadMore()}),h._uU(1,"Read More"),h.qZA()}}function Jt(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",92),h.NdJ("click",function(){return h.CHM(pe),h.oxw(2).onStepChanged(4)}),h._uU(1,"Back"),h.qZA()}}function Xi(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",93),h.NdJ("click",function(){h.CHM(pe);const Ct=h.oxw(2);return Ct.flgShowInfo=!1,Ct.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function fi(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",94),h.NdJ("click",function(){h.CHM(pe);const Ct=h.oxw(2);return Ct.flgShowInfo=!1,Ct.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function ai(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",95),h.NdJ("click",function(){h.CHM(pe);const Ct=h.oxw(2);return Ct.onStepChanged(Ct.stepNumber-1)}),h._uU(1,"Back"),h.qZA()}}function tn(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"button",96),h.NdJ("click",function(){h.CHM(pe);const Ct=h.oxw(2);return Ct.onStepChanged(Ct.stepNumber+1)}),h._uU(1,"Next"),h.qZA()}}const Wi=function(){return[1,2,3,4,5]};function Gi(ze,Lt){if(1&ze){const pe=h.EpF();h.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),h._UZ(4,"span",7),h.qZA(),h.TgZ(5,"div",75)(6,"button",76),h.NdJ("click",function(){h.CHM(pe);const Ct=h.oxw();return Ct.flgShowInfo=!1,Ct.stepNumber=1}),h._uU(7,"X"),h.qZA()()(),h.TgZ(8,"mat-card-content",77),h.YNc(9,rt,1,2,"rtl-loop-out-info-graphics",78),h.YNc(10,at,1,2,"rtl-loop-in-info-graphics",78),h.qZA(),h.TgZ(11,"div",79),h.YNc(12,gi,2,4,"span",80),h.qZA(),h.TgZ(13,"div",81),h.YNc(14,Qt,2,0,"button",82),h.YNc(15,Jt,2,0,"button",83),h.YNc(16,Xi,2,0,"button",84),h.YNc(17,fi,2,0,"button",85),h.YNc(18,ai,2,0,"button",86),h.YNc(19,tn,2,0,"button",87),h.qZA()()()}if(2&ze){const pe=h.oxw();h.Q6J("@opacityAnimation",void 0),h.xp6(9),h.Q6J("ngIf",pe.direction===pe.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",pe.direction===pe.LoopTypeEnum.LOOP_IN),h.xp6(2),h.Q6J("ngForOf",h.DdM(10,Wi)),h.xp6(2),h.Q6J("ngIf",5===pe.stepNumber),h.xp6(1),h.Q6J("ngIf",5===pe.stepNumber),h.xp6(1),h.Q6J("ngIf",5===pe.stepNumber),h.xp6(1),h.Q6J("ngIf",pe.stepNumber<5),h.xp6(1),h.Q6J("ngIf",pe.stepNumber>1&&pe.stepNumber<5),h.xp6(1),h.Q6J("ngIf",pe.stepNumber<5)}}let Yi=(()=>{class ze{constructor(pe,je,Ct,ie,qe,Mt,Vt,Mi,Ei){this.dialogRef=pe,this.data=je,this.store=Ct,this.loopService=ie,this.formBuilder=qe,this.decimalPipe=Mt,this.logger=Vt,this.router=Mi,this.commonService=Ei,this.faInfoCircle=a.sqG,this.LoopTypeEnum=d.$I,this.direction=d.$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=d.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.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,this.loopDirectionCaption=this.direction===d.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount),t.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[t.kI.required,t.kI.min(1)]],routingFeePercent:[2,[t.kI.required,t.kI.min(0)]],fast:[!1,[t.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(N.ZW).pipe((0,f.R)(this.unSubs[6])).subscribe(pe=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+pe.lightningBalance.local})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[4])).subscribe(pe=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[5])).subscribe(pe=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(pe){"external"===pe.value?(this.addressFormGroup.controls.address.setValidators([t.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.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===d.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===d.$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,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===d.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe((0,f.R)(this.unSubs[0])).subscribe({next:pe=>{this.loopStatus=pe,this.loopService.listSwaps(),this.flgEditable=!0},error:pe=>{this.loopStatus={error:pe},this.flgEditable=!0,this.logger.error(pe)}});else{const pe=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),je="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",Ct=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,pe,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,Ct,je).pipe((0,f.R)(this.unSubs[1])).subscribe({next:ie=>{this.loopStatus=ie,this.loopService.listSwaps(),this.flgEditable=!0},error:ie=>{this.loopStatus={error:ie},this.flgEditable=!0,this.logger.error(ie)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const pe=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===d.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,pe).pipe((0,f.R)(this.unSubs[2])).subscribe(je=>{this.quote=je,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,pe).pipe((0,f.R)(this.unSubs[3])).subscribe(je=>{this.quote=je,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(pe){switch(pe.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===d.$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===d.$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===d.$I.LOOP_OUT&&1!==pe.selectedIndex&&pe.selectedIndex{pe.next(null),pe.complete()})}}return ze.\u0275fac=function(pe){return new(pe||ze)(h.Y36(M.so),h.Y36(M.WI),h.Y36(A.yh),h.Y36(D.W),h.Y36(t.qu),h.Y36(w.JJ),h.Y36(S.mQ),h.Y36(I.F0),h.Y36(L.v))},ze.\u0275cmp=h.Xpm({type:ze,selectors:[["rtl-loop-modal"]],viewQuery:function(pe,je){if(1&pe&&h.Gf(Le,5),2&pe){let Ct;h.iGM(Ct=h.CRH())&&(je.stepper=Ct.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(pe,je){1&pe&&(h.YNc(0,Se,71,55,"div",0),h.YNc(1,Ue,1,1,"ng-template",null,1,h.W1O),h.YNc(3,Gi,20,11,"div",2)),2&pe&&(h.Q6J("ngIf",!je.flgShowInfo),h.xp6(3),h.Q6J("ngIf",je.flgShowInfo))},directives:[w.O5,U.xw,U.yH,U.Wh,Z.dk,j.lW,Z.dn,ne.Vq,ne.C0,t._Y,t.JL,t.sg,ne.VY,E,O.KE,_.Nt,t.wV,t.Fj,n.h,t.JJ,t.u,t.Q7,O.bx,O.R9,O.TO,v.Rr,ee.Hw,te.gM,B.VQ,B.U0,X.ib,X.yz,X.yK,P.pW,M.ZT,xe,Ie,Ce,w.sg,w.mk,de.oO],pipes:[w.rS,w.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[b._]}}),ze})()},3390:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(a){this.el=a}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return f.\u0275fac=function(a){return new(a||f)(t.Y36(t.SBq))},f.\u0275dir=t.lG2({type:f,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),f})()},6895:(Fe,Y,p)=>{"use strict";p.d(Y,{y:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(){this.copied=new t.vpe}onClick(a){a.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},b=>{this.copied.emit("Error could not copy text: "+JSON.stringify(b))})}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275dir=t.lG2({type:f,selectors:[["","rtlClipboard",""]],hostBindings:function(a,b){1&a&&t.NdJ("click",function(N){return b.onClick(N)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),f})()},9843:(Fe,Y,p)=>{"use strict";p.d(Y,{F:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(b){return this.max?t.kI.max(+this.max)(b):null}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},6534:(Fe,Y,p)=>{"use strict";p.d(Y,{q:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(b){return this.min?t.kI.min(+this.min)(b):null}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},1643:(Fe,Y,p)=>{"use strict";p.d(Y,{QM:()=>b,a1:()=>a,eQ:()=>d,fY:()=>N});var t=p(4004),e=p(5e3),f=p(1402),M=p(5986);let a=(()=>{class h{constructor(D,w){this.router=D,this.sessionService=w}canActivate(D){return!(!this.sessionService.getItem("token")||"settings"!==D.url[0].path&&"auth"!==D.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return h.\u0275fac=function(D){return new(D||h)(e.LFG(f.F0),e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),b=(()=>{class h{constructor(D){this.sessionService=D}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(D=>D.lndUnlocked))}}return h.\u0275fac=function(D){return new(D||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),d=(()=>{class h{constructor(D){this.sessionService=D}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(D=>D.clUnlocked))}}return h.\u0275fac=function(D){return new(D||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),N=(()=>{class h{constructor(D){this.sessionService=D}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(D=>D.eclUnlocked))}}return h.\u0275fac=function(D){return new(D||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})()},62:(Fe,Y,p)=>{"use strict";p.d(Y,{v:()=>D});var t=p(1135),e=p(9646),f=p(2843),M=p(5698),a=p(4004),b=p(262),d=p(7731),N=p(5e3),h=p(8104),A=p(5043);let D=(()=>{class w{constructor(I,L){this.dataService=I,this.logger=L,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 t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(I){this.screenSize=I}getContainerSize(){return this.containerSize}setContainerSize(I,L){this.containerSize={width:I,height:L},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(I,L,U,Z="asc"){return I.sort("number"===U?"desc"===Z?(j,ne)=>+j[L]>+ne[L]?-1:1:(j,ne)=>+j[L]>+ne[L]?1:-1:"desc"===Z?(j,ne)=>j[L]>ne[L]?-1:1:(j,ne)=>j[L]>ne[L]?1:-1)}sortDescByKey(I,L){return I.sort((U,Z)=>{const j=+U[L],ne=+Z[L];return j>ne?-1:j{const j=+U[L],ne=+Z[L];return jne?1:0})}camelCase(I){return I.replace(/(?:^\w|[A-Z]|\b\w)/g,(L,U)=>L.toUpperCase()).replace(/\s+/g,"").replace(/-/g," ")}titleCase(I,L,U){return L&&U&&""!==L&&""!==U&&(I=I.replace(new RegExp(L,"g"),U)),I.indexOf("!\n")>0||I.indexOf(".\n")>0?I.split("\n").reduce((Z,j)=>Z+j.charAt(0).toUpperCase()+j.substring(1).toLowerCase()+"\n",""):I.indexOf(" ")>0?I.split(" ").reduce((Z,j)=>Z+j.charAt(0).toUpperCase()+j.substring(1).toLowerCase()+" ",""):I.charAt(0).toUpperCase()+I.substring(1).toLowerCase()}convertCurrency(I,L,U,Z,j){const ne=(new Date).valueOf();return j&&Z&&this.ratesAPIStatus!==d.Bn.INITIATED&&(L===d.NT.OTHER||U===d.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ne(this.ratesAPIStatus=d.Bn.COMPLETED,this.conversionData.data=X&&"object"==typeof X?X:X&&"string"==typeof X?JSON.parse(X):{},this.conversionData.last_fetched=ne,this.convertWithFiat(I,L,Z))),(0,b.K)(X=>(this.ratesAPIStatus=d.Bn.ERROR,(0,f._)(()=>this.extractErrorMessage(X,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(I,L))}convertWithoutFiat(I,L){const U={};switch(U[d.NT.SATS]=0,U[d.NT.BTC]=0,L){case d.NT.SATS:U[d.NT.SATS]=I,U[d.NT.BTC]=1e-8*I;break;case d.NT.BTC:U[d.NT.SATS]=1e8*I,U[d.NT.BTC]=I}return U}convertWithFiat(I,L,U){const Z={unit:U,symbol:this.conversionData.data[U].symbol};switch(Z[d.NT.SATS]=0,Z[d.NT.BTC]=0,Z[d.NT.OTHER]=0,L){case d.NT.SATS:Z[d.NT.SATS]=I,Z[d.NT.BTC]=1e-8*I,Z[d.NT.OTHER]=1e-8*I*this.conversionData.data[U].last;break;case d.NT.BTC:Z[d.NT.SATS]=1e8*I,Z[d.NT.BTC]=I,Z[d.NT.OTHER]=I*this.conversionData.data[U].last;break;case d.NT.OTHER:Z[d.NT.SATS]=I/this.conversionData.data[U].last*1e8,Z[d.NT.BTC]=I/this.conversionData.data[U].last,Z[d.NT.OTHER]=I}return Z}convertTime(I,L,U){switch(L){case d.Qk.SECS:switch(U){case d.Qk.MINS:I/=60;break;case d.Qk.HOURS:I/=3600;break;case d.Qk.DAYS:I/=86400}break;case d.Qk.MINS:switch(U){case d.Qk.SECS:I*=60;break;case d.Qk.HOURS:I/=60;break;case d.Qk.DAYS:I/=1440}break;case d.Qk.HOURS:switch(U){case d.Qk.SECS:I*=3600;break;case d.Qk.MINS:I*=60;break;case d.Qk.DAYS:I/=24}break;case d.Qk.DAYS:switch(U){case d.Qk.SECS:I=3600*I*24;break;case d.Qk.MINS:I=60*I*24;break;case d.Qk.HOURS:I*=24}}return I}downloadFile(I,L,U=".json",Z=".csv"){let j=new Blob;j=".json"===U?new Blob(["\ufeff"+this.convertToCSV(I)],{type:"text/csv;charset=utf-8;"}):new Blob([I.toString()],{type:"text/plain;charset=utf-8"});const ne=document.createElement("a"),X=URL.createObjectURL(j);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ne.setAttribute("target","_blank"),ne.setAttribute("href",X),ne.setAttribute("download",L+Z),ne.style.visibility="hidden",document.body.appendChild(ne),ne.click(),document.body.removeChild(ne)}convertToCSV(I){const L=[];let U="",Z="",j="";return"object"!=typeof I&&(I=JSON.parse(I)),I.forEach((X,de)=>{for(const ee in X)L.findIndex(te=>te===ee)<0&&L.push(ee)}),j=L.join(",")+"\r\n",I.forEach(X=>{U="",L.forEach(de=>{X.hasOwnProperty(de)?Array.isArray(X[de])?(Z="",X[de].forEach((ee,te)=>{Z+="object"==typeof ee?"("+JSON.stringify(ee).replace(/\,/g,";")+")":"("+ee+")"}),U+=Z+","):U+="object"==typeof X[de]?JSON.stringify(X[de]).replace(/\,/g,";")+",":X[de]+",":U+=","}),j+=U.slice(0,-1)+"\r\n"}),j}isVersionCompatible(I,L){if(I){const U=I.trim().replace("v","").split("-")[0].split(".")||[],Z=L.split(".");return+U[0]>+Z[0]||+U[0]==+Z[0]&&+U[1]>+Z[1]||+U[0]==+Z[0]&&+U[1]==+Z[1]&&+U[2]>=+Z[2]}return!1}extractErrorMessage(I,L="Unknown Error."){const U=this.titleCase(I.error&&I.error.text&&"string"==typeof I.error.text&&I.error.text.includes('')?"API Route Does Not Exist.":I.error&&I.error.error&&I.error.error.error&&I.error.error.error.error&&I.error.error.error.error.error&&"string"==typeof I.error.error.error.error.error?I.error.error.error.error.error:I.error&&I.error.error&&I.error.error.error&&I.error.error.error.error&&"string"==typeof I.error.error.error.error?I.error.error.error.error:I.error&&I.error.error&&I.error.error.error&&"string"==typeof I.error.error.error?I.error.error.error:I.error&&I.error.error&&"string"==typeof I.error.error?I.error.error:I.error&&"string"==typeof I.error?I.error:I.error&&I.error.error&&I.error.error.error&&I.error.error.error.error&&I.error.error.error.error.message&&"string"==typeof I.error.error.error.error.message?I.error.error.error.error.message:I.error&&I.error.error&&I.error.error.error&&I.error.error.error.message&&"string"==typeof I.error.error.error.message?I.error.error.error.message:I.error&&I.error.error&&I.error.error.message&&"string"==typeof I.error.error.message?I.error.error.message:I.error&&I.error.message&&"string"==typeof I.error.message?I.error.message:I.message&&"string"==typeof I.message?I.message:L);return this.logger.info("Error Message: "+U),U}extractErrorCode(I,L=500){const U=I.error&&I.error.error&&I.error.error.message&&I.error.error.message.code?I.error.error.message.code:I.error&&I.error.error&&I.error.error.code?I.error.error.code:I.error&&I.error.code?I.error.code:I.code?I.code:I.status?I.status:L;return this.logger.info("Error Code: "+U),U}extractErrorNumber(I,L=500){const U=I.error&&I.error.error&&I.error.error.errno?I.error.error.errno:I.error&&I.error.errno?I.error.errno:I.errno?I.errno:I.status?I.status:L;return this.logger.info("Error Number: "+U),U}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return w.\u0275fac=function(I){return new(I||w)(N.LFG(h.D),N.LFG(A.mQ))},w.\u0275prov=N.Yz7({token:w,factory:w.\u0275fac}),w})()},7731:(Fe,Y,p)=>{"use strict";p.d(Y,{$I:()=>r,$v:()=>I,AB:()=>fe,Bn:()=>n,Df:()=>Re,Dr:()=>A,Er:()=>a,Fq:()=>i,Gi:()=>ee,HW:()=>ce,H_:()=>we,IV:()=>d,IX:()=>B,JX:()=>O,LO:()=>b,NT:()=>de,OJ:()=>ne,OO:()=>ve,Qk:()=>X,Qw:()=>c,TJ:()=>N,Vc:()=>D,Xr:()=>P,Xz:()=>M,Zs:()=>y,_t:()=>h,cu:()=>te,g8:()=>U,gB:()=>Ge,gg:()=>C,hZ:()=>Q,hc:()=>u,kO:()=>_,lr:()=>xe,m6:()=>v,nM:()=>L,n_:()=>j,ol:()=>Z,op:()=>E,p7:()=>ge,pg:()=>z,pt:()=>e,uA:()=>f,uR:()=>se,vn:()=>w,wZ:()=>S,x$:()=>J});var t=p(6087);function e(F){const Ae=new t.ye;return Ae.itemsPerPageLabel=F+" per page:",Ae}const f=["Sats","BTC"],M={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"}],b=["SECS","MINS","HOURS","DAYS"],d=10,N=[5,10,25,100],h=[{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)"}],A=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],D=[{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"}],w=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],S={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 I=(()=>{return(F=I||(I={})).PAYMENT_RECEIVED="payment-received",F.PAYMENT_RELAYED="payment-relayed",F.PAYMENT_SENT="payment-sent",F.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",F.PAYMENT_FAILED="payment-failed",F.CHANNEL_OPENED="channel-opened",F.CHANNEL_STATE_CHANGED="channel-state-changed",F.CHANNEL_CLOSED="channel-closed",I;var F})(),L=(()=>{return(F=L||(L={})).INVOICE="invoice",F.BLOCK_HEIGHT="block-height",F.SEND_PAYMENT="send-payment",L;var F})(),U=(()=>((U||(U={})).INVOICE="invoice",U))(),Z=(()=>{return(F=Z||(Z={})).OPERATOR="OPERATOR",F.MERCHANT="MERCHANT",F.ALL="ALL",Z;var F})(),j=(()=>{return(F=j||(j={})).INFORMATION="Information",F.WARNING="Warning",F.ERROR="Error",F.SUCCESS="Success",F.CONFIRM="Confirm",j;var F})(),ne=(()=>{return(F=ne||(ne={})).JWT="JWT",F.PASSWORD="PASSWORD",ne;var F})(),X=(()=>{return(F=X||(X={})).SECS="SECS",F.MINS="MINS",F.HOURS="HOURS",F.DAYS="DAYS",X;var F})(),de=(()=>{return(F=de||(de={})).SATS="Sats",F.BTC="BTC",F.OTHER="OTHER",de;var F})(),ee=(()=>{return(F=ee||(ee={})).ARRAY="ARRAY",F.NUMBER="NUMBER",F.STRING="STRING",F.BOOLEAN="BOOLEAN",F.PASSWORD="PASSWORD",F.DATE="DATE",F.DATE_TIME="DATE_TIME",ee;var F})(),te=(()=>{return(F=te||(te={})).XS="XS",F.SM="SM",F.MD="MD",F.LG="LG",F.XL="XL",te;var F})();const ce={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 ge=(()=>{return(F=ge||(ge={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",F.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",F.WIRE_INVALID_ONION_KEY="Invalid Onion Key",F.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",F.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",F.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",F.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",F.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",F.WIRE_FEE_INSUFFICIENT="Insufficient Fee",F.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",F.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",F.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",F.WIRE_CHANNEL_DISABLED="Channel Disabled",F.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",F.WIRE_INVALID_REALM="Invalid Realm",F.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",F.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",F.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",F.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",F.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",F.WIRE_MPP_TIMEOUT="MPP Timeout",F.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",F.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",ge;var F})(),y=(()=>{return(F=y||(y={})).CHANNELD_NORMAL="Active",F.OPENINGD="Opening",F.CHANNELD_AWAITING_LOCKIN="Pending Open",F.CHANNELD_SHUTTING_DOWN="Shutting Down",F.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",F.CLOSINGD_COMPLETE="Closed",F.AWAITING_UNILATERAL="Awaiting Unilateral Close",F.FUNDING_SPEND_SEEN="Funding Spend Seen",F.ONCHAIN="Onchain",F.DUALOPEND_OPEN_INIT="Dual Open Initialized",F.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",y;var F})(),i=(()=>{return(F=i||(i={})).INITIATED="Initiated",F.PREIMAGE_REVEALED="Preimage Revealed",F.HTLC_PUBLISHED="HTLC Published",F.SUCCESS="Successful",F.FAILED="Failed",F.INVOICE_SETTLED="Invoice Settled",i;var F})(),r=(()=>{return(F=r||(r={})).LOOP_OUT="LOOP_OUT",F.LOOP_IN="LOOP_IN",r;var F})(),u=(()=>{return(F=u||(u={})).SWAP_OUT="SWAP_OUT",F.SWAP_IN="SWAP_IN",u;var F})(),c=(()=>{return(F=c||(c={}))["swap.created"]="Swap Created",F["swap.expired"]="Swap Expired",F["invoice.set"]="Invoice Set",F["invoice.paid"]="Invoice Paid",F["invoice.pending"]="Invoice Pending",F["invoice.settled"]="Invoice Settled",F["invoice.failedToPay"]="Invoice Failed To Pay",F["channel.created"]="Channel Created",F["transaction.failed"]="Transaction Failed",F["transaction.mempool"]="Transaction Mempool",F["transaction.claimed"]="Transaction Claimed",F["transaction.refunded"]="Transaction Refunded",F["transaction.confirmed"]="Transaction Confirmed",F["swap.refunded"]="Swap Refunded",F["swap.abandoned"]="Swap Abandoned",c;var F})();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}],E=["MONTHLY","YEARLY"];var O=(()=>{return(F=O||(O={})).LOOP="LOOP",F.BOLTZ="BOLTZ",F.OFFERS="OFFERS",O;var F})();const _=["password","changeme","moneyprintergobrrr"];var n=(()=>{return(F=n||(n={})).UN_INITIATED="UN_INITIATED",F.INITIATED="INITIATED",F.COMPLETED="COMPLETED",F.ERROR="ERROR",n;var F})();const v={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_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...",LOG_OUT:"Logging Out..."};var B=(()=>{return(F=B||(B={})).INVOICE="INVOICE",F.OFFER="OFFER",F.KEYSEND="KEYSEND",B;var F})(),P=(()=>{return(F=P||(P={})).FEES="FEES",F.EVENTS="EVENTS",P;var F})(),z=(()=>{return(F=z||(z={})).VOID="VOID",F.SET_API_URL_ECL="SET_API_URL_ECL",F.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",F.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",F.RESET_ROOT_STORE="RESET_ROOT_STORE",F.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",F.OPEN_SNACK_BAR="OPEN_SNACKBAR",F.OPEN_SPINNER="OPEN_SPINNER",F.CLOSE_SPINNER="CLOSE_SPINNER",F.OPEN_ALERT="OPEN_ALERT",F.CLOSE_ALERT="CLOSE_ALERT",F.OPEN_CONFIRMATION="OPEN_CONFIRMATION",F.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",F.SHOW_PUBKEY="SHOW_PUBKEY",F.FETCH_CONFIG="FETCH_CONFIG",F.SHOW_CONFIG="SHOW_CONFIG",F.FETCH_STORE="FETCH_STORE",F.SET_STORE="SET_STORE",F.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",F.SET_RTL_CONFIG="SET_RTL_CONFIG",F.SAVE_SSO="SAVE_SSO",F.SAVE_SETTINGS="SAVE_SETTINGS",F.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",F.SET_SELECTED_NODE="SET_SELECTED_NODE",F.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",F.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",F.SET_NODE_DATA="SET_NODE_DATA",F.IS_AUTHORIZED="IS_AUTHORIZED",F.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",F.LOGIN="LOGIN",F.VERIFY_TWO_FA="VERIFY_TWO_FA",F.LOGOUT="LOGOUT",F.RESET_PASSWORD="RESET_PASSWORD",F.RESET_PASSWORD_RES="RESET_PASSWORD_RES",F.FETCH_FILE="FETCH_FILE",F.SHOW_FILE="SHOW_FILE",z;var F})(),se=(()=>{return(F=se||(se={})).RESET_LND_STORE="RESET_LND_STORE",F.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",F.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",F.FETCH_INFO_LND="FETCH_INFO_LND",F.SET_INFO_LND="SET_INFO_LND",F.FETCH_PEERS_LND="FETCH_PEERS_LND",F.SET_PEERS_LND="SET_PEERS_LND",F.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",F.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",F.DETACH_PEER_LND="DETACH_PEER_LND",F.REMOVE_PEER_LND="REMOVE_PEER_LND",F.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",F.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",F.ADD_INVOICE_LND="ADD_INVOICE_LND",F.FETCH_FEES_LND="FETCH_FEES_LND",F.SET_FEES_LND="SET_FEES_LND",F.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",F.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",F.FETCH_NETWORK_LND="FETCH_NETWORK_LND",F.SET_NETWORK_LND="SET_NETWORK_LND",F.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",F.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",F.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",F.SET_CHANNELS_LND="SET_CHANNELS_LND",F.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",F.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",F.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",F.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",F.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",F.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",F.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",F.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",F.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",F.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",F.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",F.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",F.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",F.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",F.FETCH_INVOICES_LND="FETCH_INVOICES_LND",F.SET_INVOICES_LND="SET_INVOICES_LND",F.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",F.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",F.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",F.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",F.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",F.FETCH_UTXOS_LND="FETCH_UTXOS_LND",F.SET_UTXOS_LND="SET_UTXOS_LND",F.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",F.SET_PAYMENTS_LND="SET_PAYMENTS_LND",F.SEND_PAYMENT_LND="SEND_PAYMENT_LND",F.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",F.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",F.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",F.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",F.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",F.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",F.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",F.GEN_SEED_LND="GEN_SEED_LND",F.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",F.INIT_WALLET_LND="INIT_WALLET_LND",F.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",F.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",F.PEER_LOOKUP_LND="PEER_LOOKUP_LND",F.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",F.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",F.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",F.SET_LOOKUP_LND="SET_LOOKUP_LND",F.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",F.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",F.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",F.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",F.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",F.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",se;var F})(),fe=(()=>{return(F=fe||(fe={})).RESET_CLN_STORE="RESET_CLN_STORE",F.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",F.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",F.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",F.SET_INFO_CLN="SET_INFO_CLN",F.FETCH_FEES_CLN="FETCH_FEES_CLN",F.SET_FEES_CLN="SET_FEES_CLN",F.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",F.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",F.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",F.SET_BALANCE_CLN="SET_BALANCE_CLN",F.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",F.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",F.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",F.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",F.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",F.SET_UTXOS_CLN="SET_UTXOS_CLN",F.FETCH_PEERS_CLN="FETCH_PEERS_CLN",F.SET_PEERS_CLN="SET_PEERS_CLN",F.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",F.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",F.ADD_PEER_CLN="ADD_PEER_CLN",F.DETACH_PEER_CLN="DETACH_PEER_CLN",F.REMOVE_PEER_CLN="REMOVE_PEER_CLN",F.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",F.SET_CHANNELS_CLN="SET_CHANNELS_CLN",F.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",F.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",F.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",F.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",F.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",F.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",F.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",F.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",F.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",F.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",F.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",F.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",F.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",F.SET_LOOKUP_CLN="SET_LOOKUP_CLN",F.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",F.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",F.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",F.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",F.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",F.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",F.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",F.SET_INVOICES_CLN="SET_INVOICES_CLN",F.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",F.ADD_INVOICE_CLN="ADD_INVOICE_CLN",F.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",F.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",F.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",F.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",F.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",F.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",F.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",F.SET_OFFERS_CLN="SET_OFFERS_CLN",F.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",F.ADD_OFFER_CLN="ADD_OFFER_CLN",F.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",F.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",F.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",F.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",F.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",F.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",F.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",fe;var F})(),xe=(()=>{return(F=xe||(xe={})).RESET_ECL_STORE="RESET_ECL_STORE",F.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",F.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",F.FETCH_INFO_ECL="FETCH_INFO_ECL",F.SET_INFO_ECL="SET_INFO_ECL",F.FETCH_FEES_ECL="FETCH_FEES_ECL",F.SET_FEES_ECL="SET_FEES_ECL",F.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",F.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",F.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",F.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",F.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",F.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",F.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",F.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",F.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",F.FETCH_PEERS_ECL="FETCH_PEERS_ECL",F.SET_PEERS_ECL="SET_PEERS_ECL",F.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",F.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",F.ADD_PEER_ECL="ADD_PEER_ECL",F.DETACH_PEER_ECL="DETACH_PEER_ECL",F.REMOVE_PEER_ECL="REMOVE_PEER_ECL",F.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",F.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",F.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",F.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",F.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",F.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",F.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",F.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",F.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",F.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",F.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",F.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",F.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",F.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",F.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",F.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",F.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",F.SET_INVOICES_ECL="SET_INVOICES_ECL",F.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",F.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",F.ADD_INVOICE_ECL="ADD_INVOICE_ECL",F.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",F.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",F.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",F.SET_LOOKUP_ECL="SET_LOOKUP_ECL",F.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",F.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",xe;var F})();const Re=[{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 we=(()=>{return(F=we||(we={})).gossip_queries_ex="Gossip queries including additional information",F.option_anchor_outputs="Anchor outputs",F.option_data_loss_protect="Extra channel re-establish fields",F.var_onion_optin="Variable-length routing onion payloads",F.option_static_remotekey="Static key for remote output",F.option_support_large_channel="Create large channels",F.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",F.payment_secret="Payment secret field",F.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",F.basic_mpp="Basic multi-part payments",F.gossip_queries="More sophisticated gossip control",F.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",F.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",F.amp="AMP",we;var F})(),Q=(()=>{return(F=Q||(Q={}))["data-loss-protect"]="Extra channel re-establish fields",F["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",F["gossip-queries"]="More sophisticated gossip control",F["tlv-onion"]="Variable-length routing onion payloads",F["ext-gossip-queries"]="Gossip queries can include additional information",F["static-remote-key"]="Static key for remote output",F["payment-addr"]="Payment secret field",F["multi-path-payments"]="Basic multi-part payments",F["wumbo-channels"]="Wumbo Channels",F.anchors="Anchor outputs",F["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",F.amp="AMP",Q;var F})();const Ge=[{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 ve=(()=>{return(F=ve||(ve={})).OFFERED="offered",F.SETTLED="settled",F.FAILED="failed",F.LOCAL_FAILED="local_failed",ve;var F})()},8104:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>ce});var t=p(8138),e=p(1135),f=p(7579),M=p(2843),a=p(9646),b=p(590),d=p(5577),N=p(2722),h=p(4004),A=p(262),D=p(1365),w=p(2340),S=p(7731),I=p(1786),L=p(7861),U=p(6523),Z=p(6529),j=p(9828),ne=p(5e3),X=p(5620),de=p(5043),ee=p(7261),te=p(9808);let ce=(()=>{class J{constructor(y,i,r,u,c){this.httpClient=y,this.store=i,this.logger=r,this.snackBar=u,this.titleCasePipe=c,this.APIUrl=w.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x],this.mapAliases=(C,E)=>(C&&C.length>0?C.forEach((O,_)=>{if(E&&E.length>0)for(let n=0;nnull!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+w.NZ.PAYMENTS_API+"/decode/"+y;return"cln"===r&&(u=this.APIUrl+"/"+r+w.NZ.UTILITY_API+"/decode/"+y),this.store.dispatch((0,L.ac)({payload:S.m6.DECODE_PAYMENT})),this.httpClient.get(u).pipe((0,N.R)(this.unSubs[0]),(0,h.U)(c=>(this.store.dispatch((0,L.uO)({payload:S.m6.DECODE_PAYMENT})),c)),(0,A.K)(c=>(i?this.handleErrorWithoutAlert("Decode Payment",S.m6.DECODE_PAYMENT,c):this.handleErrorWithAlert("decodePaymentData",S.m6.DECODE_PAYMENT,"Decode Payment Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}decodePayments(y){return this.lnImplementationUpdated.pipe((0,b.P)(i=>null!==i),(0,d.z)(i=>{let r="",u="";return"ecl"===i?(r=this.APIUrl+"/"+i+w.NZ.PAYMENTS_API+"/getsentinfos",u=S.m6.GET_SENT_PAYMENTS):"cln"===i?(r=this.APIUrl+"/"+i+w.NZ.UTILITY_API,u=S.m6.DECODE_PAYMENTS):(r=this.APIUrl+"/"+i+w.NZ.PAYMENTS_API,u=S.m6.DECODE_PAYMENTS),this.store.dispatch((0,L.ac)({payload:u})),this.httpClient.post(r,{payments:y}).pipe((0,N.R)(this.unSubs[1]),(0,h.U)(c=>(this.store.dispatch((0,L.uO)({payload:u})),c)),(0,A.K)(c=>(this.handleErrorWithAlert("decodePaymentsData",u,u+" Failed",r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getAliasesFromPubkeys(y,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{if(i){const u=(new t.LE).set("pubkeys",y);return this.httpClient.get(this.APIUrl+"/"+r+w.NZ.NETWORK_API+"/nodes",{params:u})}return this.httpClient.get(this.APIUrl+"/"+r+w.NZ.NETWORK_API+"/node/"+y)}))}signMessage(y){return this.lnImplementationUpdated.pipe((0,b.P)(i=>null!==i),(0,d.z)(i=>{let r=this.APIUrl+"/"+i+w.NZ.MESSAGE_API+"/sign";return"cln"===i&&(r=this.APIUrl+"/"+i+w.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,L.ac)({payload:S.m6.SIGN_MESSAGE})),this.httpClient.post(r,{message:y}).pipe((0,N.R)(this.unSubs[2]),(0,h.U)(u=>(this.store.dispatch((0,L.uO)({payload:S.m6.SIGN_MESSAGE})),u)),(0,A.K)(u=>(this.handleErrorWithAlert("signMessageData",S.m6.SIGN_MESSAGE,"Sign Message Failed",r,u),(0,M._)(()=>new Error(this.extractErrorMessage(u))))))}))}verifyMessage(y,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+w.NZ.MESSAGE_API+"/verify";return"cln"===r&&(u=this.APIUrl+"/"+r+w.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,L.ac)({payload:S.m6.VERIFY_MESSAGE})),this.httpClient.post(u,{message:y,signature:i}).pipe((0,N.R)(this.unSubs[3]),(0,h.U)(c=>(this.store.dispatch((0,L.uO)({payload:S.m6.VERIFY_MESSAGE})),c)),(0,A.K)(c=>(this.handleErrorWithAlert("verifyMessageData",S.m6.VERIFY_MESSAGE,"Verify Message Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}bumpFee(y,i,r,u){return this.lnImplementationUpdated.pipe((0,b.P)(c=>null!==c),(0,d.z)(c=>{const C={txid:y,outputIndex:i};return r&&(C.targetConf=r),u&&(C.satPerByte=u),this.store.dispatch((0,L.ac)({payload:S.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+c+w.NZ.WALLET_API+"/bumpfee",C).pipe((0,N.R)(this.unSubs[4]),(0,h.U)(E=>(this.store.dispatch((0,L.uO)({payload:S.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),E)),(0,A.K)(E=>(this.handleErrorWithoutAlert("Bump Fee",S.m6.BUMP_FEE,E),(0,M._)(()=>new Error(this.extractErrorMessage(E))))))}))}labelUTXO(y,i,r=!0){return this.lnImplementationUpdated.pipe((0,b.P)(u=>null!==u),(0,d.z)(u=>{const c={txid:y,label:i,overwrite:r};return this.store.dispatch((0,L.ac)({payload:S.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+u+w.NZ.WALLET_API+"/label",c).pipe((0,N.R)(this.unSubs[5]),(0,h.U)(C=>(this.store.dispatch((0,L.uO)({payload:S.m6.LABEL_UTXO})),C)),(0,A.K)(C=>(this.handleErrorWithoutAlert("Lease UTXO",S.m6.LABEL_UTXO,C),(0,M._)(()=>new Error(this.extractErrorMessage(C))))))}))}leaseUTXO(y,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{const u={txid:y,outputIndex:i};return this.store.dispatch((0,L.ac)({payload:S.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+r+w.NZ.WALLET_API+"/lease",u).pipe((0,N.R)(this.unSubs[6]),(0,h.U)(c=>{this.store.dispatch((0,L.uO)({payload:S.m6.LEASE_UTXO})),this.store.dispatch((0,U.mC)()),this.store.dispatch((0,U.Ly)());const C=new Date(1e3*c.expiration),E=Math.round(C.getTime())-60*C.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(E).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,A.K)(c=>(this.handleErrorWithoutAlert("Lease UTXO",S.m6.LEASE_UTXO,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getForwardingHistory(y,i,r,u){if("LND"===y){const c={end_time:r,start_time:i};return this.store.dispatch((0,L.ac)({payload:S.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+w.NZ.SWITCH_API,c).pipe((0,N.R)(this.unSubs[7]),(0,D.M)(this.store.select(Z._f)),(0,d.z)(([C,E])=>{if(C.forwarding_events){const O=[...E.channels,...E.closedChannels];C.forwarding_events.forEach(_=>{if(O&&O.length>0)for(let n=0;n(this.handleErrorWithAlert("getForwardingHistoryData",S.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+w.NZ.SWITCH_API,C),(0,M._)(()=>new Error(this.extractErrorMessage(C))))))}return"CLN"===y?(this.store.dispatch((0,L.ac)({payload:S.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+w.NZ.CHANNELS_API+"/listForwards?status="+u).pipe((0,N.R)(this.unSubs[8]),(0,D.M)(this.store.select(j.ZW)),(0,d.z)(([c,C])=>{const E=this.mapAliases(c,[...C.activeChannels,...C.pendingChannels,...C.inactiveChannels]);return this.store.dispatch((0,L.uO)({payload:S.m6.GET_FORWARDING_HISTORY})),(0,a.of)(E)}),(0,A.K)(c=>(this.handleErrorWithAlert("getForwardingHistoryData",S.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+w.NZ.CHANNELS_API+"/listForwards?status="+u+"&start="+i+"&end="+r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))):(0,a.of)({})}listNetworkNodes(y=""){return this.lnImplementationUpdated.pipe((0,b.P)(i=>null!==i),(0,d.z)(i=>(this.store.dispatch((0,L.ac)({payload:S.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+w.NZ.NETWORK_API+"/listNodes"+y).pipe((0,N.R)(this.unSubs[9]),(0,d.z)(r=>(this.store.dispatch((0,L.uO)({payload:S.m6.LIST_NETWORK_NODES})),(0,a.of)(r))),(0,A.K)(r=>(this.handleErrorWithoutAlert("List Network Nodes",S.m6.LIST_NETWORK_NODES,r),(0,M._)(()=>this.extractErrorMessage(r))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,b.P)(y=>null!==y),(0,d.z)(y=>(this.store.dispatch((0,L.ac)({payload:S.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+y+w.NZ.UTILITY_API+"/listConfigs").pipe((0,N.R)(this.unSubs[10]),(0,d.z)(i=>(this.store.dispatch((0,L.uO)({payload:S.m6.GET_LIST_CONFIGS})),(0,a.of)(i))),(0,A.K)(i=>(this.handleErrorWithoutAlert("List Configurations",S.m6.GET_LIST_CONFIGS,i),(0,M._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(y,i,r,u,c,C){return this.lnImplementationUpdated.pipe((0,b.P)(E=>null!==E),(0,d.z)(E=>{const O=y?{policy:y,policy_mod:i,lease_fee_base_msat:r,lease_fee_basis:u,channel_fee_max_base_msat:c,channel_fee_max_proportional_thousandths:C}:null;return this.store.dispatch((0,L.ac)({payload:S.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+E+w.NZ.CHANNELS_API+"/funderUpdate",O).pipe((0,N.R)(this.unSubs[11]),(0,h.U)(_=>(this.store.dispatch((0,L.uO)({payload:S.m6.GET_FUNDER_POLICY})),O&&this.store.dispatch((0,L.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+_.compact_lease+"!"})),_)),(0,A.K)(_=>(this.handleErrorWithoutAlert("Funder Policy",S.m6.GET_FUNDER_POLICY,_),(0,M._)(()=>new Error(this.extractErrorMessage(_))))))}))}extractErrorMessage(y,i="Unknown Error."){return this.titleCasePipe.transform(y.error.text&&"string"==typeof y.error.text&&y.error.text.includes('')?"API Route Does Not Exist.":y.error&&y.error.error&&y.error.error.error&&y.error.error.error.error&&y.error.error.error.error.error&&"string"==typeof y.error.error.error.error.error?y.error.error.error.error.error:y.error&&y.error.error&&y.error.error.error&&y.error.error.error.error&&"string"==typeof y.error.error.error.error?y.error.error.error.error:y.error&&y.error.error&&y.error.error.error&&"string"==typeof y.error.error.error?y.error.error.error:y.error&&y.error.error&&"string"==typeof y.error.error?y.error.error:y.error&&"string"==typeof y.error?y.error:y.error&&y.error.error&&y.error.error.error&&y.error.error.error.error&&y.error.error.error.error.message&&"string"==typeof y.error.error.error.error.message?y.error.error.error.error.message:y.error&&y.error.error&&y.error.error.error&&y.error.error.error.message&&"string"==typeof y.error.error.error.message?y.error.error.error.message:y.error&&y.error.error&&y.error.error.message&&"string"==typeof y.error.error.message?y.error.error.message:y.error&&y.error.message&&"string"==typeof y.error.message?y.error.message:y.message&&"string"==typeof y.message?y.message:i)}handleErrorWithoutAlert(y,i,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: "+y+"\n"+JSON.stringify(r)),401===r.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,L.uO)({payload:i})),this.store.dispatch((0,L.qi)({payload:{action:y,status:S.Bn.ERROR,statusCode:r.status.toString(),message:this.extractErrorMessage(r)}})))}handleErrorWithAlert(y,i,r,u,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,L.uO)({payload:i}));const C=this.extractErrorMessage(c);this.store.dispatch((0,L.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status?c.status:"Unknown Error",message:C,URL:u},component:I.H}}})),this.store.dispatch((0,L.qi)({payload:{action:y,status:S.Bn.ERROR,statusCode:c.status.toString(),message:C,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(y=>{y.next(null),y.complete()})}}return J.\u0275fac=function(y){return new(y||J)(ne.LFG(t.eN),ne.LFG(X.yh),ne.LFG(de.mQ),ne.LFG(ee.ux),ne.LFG(te.rS))},J.\u0275prov=ne.Yz7({token:J,factory:J.\u0275fac}),J})()},5043:(Fe,Y,p)=>{"use strict";p.d(Y,{LG:()=>d,mQ:()=>b});var t=p(2340),e=p(5e3);const{isDebugMode:f}=t.NZ,M=()=>null;let b=(()=>{class N{invokeConsoleMethod(A,D){}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=e.Yz7({token:N,factory:N.\u0275fac}),N})(),d=(()=>{class N{get info(){return f?console.log.bind(console):M}get warn(){return f?console.warn.bind(console):M}get error(){return f?console.error.bind(console):M}invokeConsoleMethod(A,D){(console[A]||console.log||M).apply(console,[D])}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=e.Yz7({token:N,factory:N.\u0275fac}),N})()},9107:(Fe,Y,p)=>{"use strict";p.d(Y,{W:()=>Z});var t=p(8138),e=p(1135),f=p(7579),M=p(9646),a=p(2843),b=p(2722),d=p(262),N=p(4004),h=p(2340),A=p(7731),D=p(1786),w=p(7861),S=p(5e3),I=p(5043),L=p(5620),U=p(62);let Z=(()=>{class j{constructor(X,de,ee,te){this.httpClient=X,this.logger=de,this.store=ee,this.commonService=te,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,w.ac)({payload:A.m6.GET_LOOP_SWAPS})),this.loopUrl=h.T5+h.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,b.R)(this.unSubs[0])).subscribe({next:X=>{this.store.dispatch((0,w.uO)({payload:A.m6.GET_LOOP_SWAPS})),this.swaps=X,this.swapsChanged.next(this.swaps)},error:X=>this.swapsChanged.error(this.handleErrorWithAlert(A.m6.GET_LOOP_SWAPS,this.loopUrl,X))})}loopOut(X,de,ee,te,ce,J,ge,y,i,r){const u={amount:X,targetConf:ee,swapRoutingFee:te,minerFee:ce,prepayRoutingFee:J,prepayAmt:ge,swapFee:y,swapPublicationDeadline:i,destAddress:r};return""!==de&&(u.chanId=de),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,u).pipe((0,d.K)(c=>this.handleErrorWithoutAlert("Loop Out for Channel: "+de,A.m6.NO_SPINNER,c)))}getLoopOutTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(X=>this.handleErrorWithoutAlert("Loop Out Terms",A.m6.NO_SPINNER,X)))}getLoopOutQuote(X,de,ee){let te=new t.LE;return te=te.append("targetConf",de.toString()),te=te.append("swapPublicationDeadline",ee.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/quote/"+X,this.store.dispatch((0,w.ac)({payload:A.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:te}).pipe((0,b.R)(this.unSubs[1]),(0,N.U)(ce=>(this.store.dispatch((0,w.uO)({payload:A.m6.GET_QUOTE})),ce)),(0,d.K)(ce=>this.handleErrorWithoutAlert("Loop Out Quote",A.m6.GET_QUOTE,ce)))}getLoopOutTermsAndQuotes(X){let de=new t.LE;return de=de.append("targetConf",X.toString()),de=de.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,w.ac)({payload:A.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:de}).pipe((0,b.R)(this.unSubs[2]),(0,N.U)(ee=>(this.store.dispatch((0,w.uO)({payload:A.m6.GET_TERMS_QUOTES})),ee)),(0,d.K)(ee=>(0,M.of)(this.handleErrorWithAlert(A.m6.GET_TERMS_QUOTES,this.loopUrl,ee))))}loopIn(X,de,ee,te,ce){const J={amount:X,swapFee:de,minerFee:ee,lastHop:te,externalHtlc:ce};return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,J).pipe((0,d.K)(ge=>this.handleErrorWithoutAlert("Loop In",A.m6.NO_SPINNER,ge)))}getLoopInTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(X=>this.handleErrorWithoutAlert("Loop In Terms",A.m6.NO_SPINNER,X)))}getLoopInQuote(X,de,ee){let te=new t.LE;return te=te.append("targetConf",de.toString()),te=te.append("swapPublicationDeadline",ee.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/quote/"+X,this.store.dispatch((0,w.ac)({payload:A.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:te}).pipe((0,b.R)(this.unSubs[3]),(0,N.U)(ce=>(this.store.dispatch((0,w.uO)({payload:A.m6.GET_QUOTE})),ce)),(0,d.K)(ce=>this.handleErrorWithoutAlert("Loop In Qoute",A.m6.GET_QUOTE,ce)))}getLoopInTermsAndQuotes(X){let de=new t.LE;return de=de.append("targetConf",X.toString()),de=de.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,w.ac)({payload:A.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:de}).pipe((0,b.R)(this.unSubs[4]),(0,N.U)(ee=>(this.store.dispatch((0,w.uO)({payload:A.m6.GET_TERMS_QUOTES})),ee)),(0,d.K)(ee=>(0,M.of)(this.handleErrorWithAlert(A.m6.GET_TERMS_QUOTES,this.loopUrl,ee))))}getSwap(X){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/swap/"+X,this.httpClient.get(this.loopUrl).pipe((0,d.K)(de=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+X,A.m6.NO_SPINNER,de)))}handleErrorWithoutAlert(X,de,ee){let te="";return this.logger.error("ERROR IN: "+X+"\n"+JSON.stringify(ee)),this.store.dispatch((0,w.uO)({payload:de})),401===ee.status?(te="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.kS)())):503===ee.status?(te="Unable to Connect to Loop Server.",this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ee.status,message:"Unable to Connect to Loop Server",URL:X},component:D.H}}}))):te=this.commonService.extractErrorMessage(ee),(0,a._)(()=>new Error(te))}handleErrorWithAlert(X,de,ee){let te="";if(this.logger.error(ee),this.store.dispatch((0,w.uO)({payload:X})),401===ee.status)te="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.kS)());else if(503===ee.status)te="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ee.status,message:"Unable to Connect to Loop Server",URL:de},component:D.H}}}))},100);else{te=this.commonService.extractErrorMessage(ee);const ce=ee.error&&ee.error.error&&ee.error.error.code?ee.error.error.code:ee.error&&ee.error.code?ee.error.code:ee.code?ee.code:ee.status;setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"ERROR",message:{code:ce,message:te,URL:de},component:D.H}}}))},100)}return{message:te}}ngOnDestroy(){this.unSubs.forEach(X=>{X.next(null),X.complete()})}}return j.\u0275fac=function(X){return new(X||j)(S.LFG(t.eN),S.LFG(I.mQ),S.LFG(L.yh),S.LFG(U.v))},j.\u0275prov=S.Yz7({token:j,factory:j.\u0275fac}),j})()},5986:(Fe,Y,p)=>{"use strict";p.d(Y,{m:()=>f});var t=p(7579),e=p(5e3);let f=(()=>{class M{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(b){return sessionStorage.getItem(b)}getAllItems(){return sessionStorage}setItem(b,d){sessionStorage.setItem(b,d),this.sessionSub.next(sessionStorage)}removeItem(b){sessionStorage.removeItem(b),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})()},7998:(Fe,Y,p)=>{"use strict";p.d(Y,{d:()=>I});var t=p(1135),e=p(7579),f=p(2722),M=p(930),a=p(8306),b=p(727),d=p(4707);const N={url:"",deserializer:L=>JSON.parse(L.data),serializer:L=>JSON.stringify(L)};class A extends e.u{constructor(U,Z){if(super(),this._socket=null,U instanceof a.y)this.destination=Z,this.source=U;else{const j=this._config=Object.assign({},N);if(this._output=new e.x,"string"==typeof U)j.url=U;else for(const ne in U)U.hasOwnProperty(ne)&&(j[ne]=U[ne]);if(!j.WebSocketCtor&&WebSocket)j.WebSocketCtor=WebSocket;else if(!j.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new d.t}}lift(U){const Z=new A(this._config,this.destination);return Z.operator=U,Z.source=this,Z}_resetState(){this._socket=null,this.source||(this.destination=new d.t),this._output=new e.x}multiplex(U,Z,j){const ne=this;return new a.y(X=>{try{ne.next(U())}catch(ee){X.error(ee)}const de=ne.subscribe({next:ee=>{try{j(ee)&&X.next(ee)}catch(te){X.error(te)}},error:ee=>X.error(ee),complete:()=>X.complete()});return()=>{try{ne.next(Z())}catch(ee){X.error(ee)}de.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:U,protocol:Z,url:j,binaryType:ne}=this._config,X=this._output;let de=null;try{de=Z?new U(j,Z):new U(j),this._socket=de,ne&&(this._socket.binaryType=ne)}catch(te){return void X.error(te)}const ee=new b.w0(()=>{this._socket=null,de&&1===de.readyState&&de.close()});de.onopen=te=>{const{_socket:ce}=this;if(!ce)return de.close(),void this._resetState();const{openObserver:J}=this._config;J&&J.next(te);const ge=this.destination;this.destination=M.Lv.create(y=>{if(1===de.readyState)try{const{serializer:i}=this._config;de.send(i(y))}catch(i){this.destination.error(i)}},y=>{const{closingObserver:i}=this._config;i&&i.next(void 0),y&&y.code?de.close(y.code,y.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:y}=this._config;y&&y.next(void 0),de.close(),this._resetState()}),ge&&ge instanceof d.t&&ee.add(ge.subscribe(this.destination))},de.onerror=te=>{this._resetState(),X.error(te)},de.onclose=te=>{de===this._socket&&this._resetState();const{closeObserver:ce}=this._config;ce&&ce.next(te),te.wasClean?X.complete():X.error(te)},de.onmessage=te=>{try{const{deserializer:ce}=this._config;X.next(ce(te))}catch(ce){X.error(ce)}}}_subscribe(U){const{source:Z}=this;return Z?Z.subscribe(U):(this._socket||this._connectSocket(),this._output.subscribe(U),U.add(()=>{const{_socket:j}=this;0===this._output.observers.length&&(j&&(1===j.readyState||0===j.readyState)&&j.close(),this._resetState())}),U)}unsubscribe(){const{_socket:U}=this;U&&(1===U.readyState||0===U.readyState)&&U.close(),this._resetState(),super.unsubscribe()}}var D=p(5e3),w=p(5043),S=p(5986);let I=(()=>{class L{constructor(Z,j){this.logger=Z,this.sessionService=j,this.clWSMessages=new t.X(null),this.eclWSMessages=new t.X(null),this.lndWSMessages=new t.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}connectWebSocket(Z,j){(!this.socket||this.socket.closed)&&(this.wsUrl=Z,this.nodeIndex=j,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new A({url:Z,protocol:[this.sessionService.getItem("token"),j]}),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(){this.socket.pipe((0,f.R)(this.unSubs[1])).subscribe({next:Z=>{if((Z="string"==typeof Z?JSON.parse(Z):Z).error)this.handleError(Z.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(Z)),Z.source){case"LND":this.lndWSMessages.next(Z);break;case"CLN":this.clWSMessages.next(Z);break;case"ECL":this.eclWSMessages.next(Z)}},error:Z=>this.handleError(Z),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(Z){this.logger.error(Z),this.clWSMessages.error(Z),this.eclWSMessages.error(Z),this.lndWSMessages.error(Z),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 L.\u0275fac=function(Z){return new(Z||L)(D.LFG(w.mQ),D.LFG(S.m))},L.\u0275prov=D.Yz7({token:L,factory:L.\u0275fac}),L})()},8750:(Fe,Y,p)=>{"use strict";p.d(Y,{m:()=>an});var t=p(9808),e=p(1402),f=p(3075),M=p(8138),a=p(9444),b=p(5e3),d=p(3270),N=p(3322),h=p(7093);p(3191);let je=(()=>{class It{}return It.\u0275fac=function(mt){return new(mt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[d.IR]]}),It})(),ie=(()=>{class It{constructor(mt,Zt){(0,t.PM)(Zt)&&!mt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(mt,Zt=[]){return{ngModule:It,providers:mt.serverLoaded?[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),mt)},{provide:d.Bs,useValue:Zt,multi:!0},{provide:d.wY,useValue:!0}]:[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),mt)},{provide:d.Bs,useValue:Zt,multi:!0}]}}}return It.\u0275fac=function(mt){return new(mt||It)(b.LFG(d.wY),b.LFG(b.Lbi))},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[h.ae,N.aT,je],h.ae,N.aT,je]}),It})();var qe=p(5113),Mt=p(508),Vt=p(8966),Mi=p(1079),Ei=p(7544),en=p(7423);p(449),p(5664);let Fn=(()=>{class It{}return It.\u0275fac=function(mt){return new(mt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[Mt.BQ,Mt.si],Mt.BQ]}),It})();var Dn=p(9224),Ai=p(7446),Ri=p(6856),cn=p(1125),pr=p(3954),Br=p(5245),Jn=p(7531),mr=p(4623),Pr=p(2181),Nr=p(6087),ca=p(5899),ga=p(773),Ca=p(9814),Na=p(4107),Ra=p(2638),nr=p(2368);p(1159),p(6360),p(925),p(727),p(226);let va=(()=>{class It{}return It.\u0275fac=function(mt){return new(mt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[t.ez,Mt.BQ],Mt.BQ]}),It})();var $n=p(7261),Ta=p(4847),Ia=p(5615),Kn=p(2075),ra=p(3251),Hr=p(4594),Sr=p(7238),Fr=p(149),ya=p(1210),Fa=p(159),Wn=p(8129),Xe=p(9776);let St=(()=>{class It extends Xe.Xj{_createContainer(){const mt=document.createElement("div");mt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(mt),this._containerElement=mt}}return It.\u0275fac=function(){let hi;return function(Zt){return(hi||(hi=b.n5z(It)))(Zt||It)}}(),It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();var Ke=p(5043),Ot=p(7731);const ri={suppressScrollX:!1,suppressScrollY:!1};let Ti=(()=>{class It extends Mt.LF{format(mt,Zt){if("input"===Zt){let Hi=mt.getDate().toString();return Hi=+Hi<10?"0"+Hi:Hi,Hi+"/"+Ot.gg[mt.getMonth()].name.toUpperCase()+"/"+mt.getFullYear()}return Ot.gg[mt.getMonth()].name.toUpperCase()+" "+mt.getFullYear()}}return It.\u0275fac=function(){let hi;return function(Zt){return(hi||(hi=b.n5z(It)))(Zt||It)}}(),It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const ki={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 an=(()=>{class It{}return It.\u0275fac=function(mt){return new(mt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({providers:[{provide:Ke.mQ,useClass:Ke.LG},{provide:Wn.op,useValue:ri},{provide:$n.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:Mt._A,useClass:Ti},{provide:Mt.sG,useValue:ki},{provide:Xe.Xj,useClass:St},t.JJ,t.rS,t.uU],imports:[[t.ez,f.u5,f.UX,a.uH,ie,qe.xu,Vt.Is,en.ot,Fn,Dn.QW,Ai.p9,cn.To,pr.N6,Ri.FA,Mt.XK,Br.Ps,Jn.c,mr.ie,Pr.Tx,ca.Cv,ga.Cq,Ca.Fk,Fr.dp,Na.LD,Ra.SJ,nr.rP,Ta.JX,Kn.p0,Hr.g0,Sr.AV,Ei.g,Nr.TU,Ia.T5,va,ra.Nh,$n.ZX,Mi.Bb,ya.a4,Fa.OF,e.Bz,M.JF,Wn.Xd],f.u5,f.UX,a.uH,ie,qe.xu,Vt.Is,en.ot,Fn,Dn.QW,Ai.p9,cn.To,pr.N6,Ri.FA,Mt.XK,Br.Ps,Jn.c,mr.ie,Pr.Tx,ca.Cv,ga.Cq,Ca.Fk,Fr.dp,Na.LD,Ra.SJ,nr.rP,Ta.JX,Kn.p0,Hr.g0,Sr.AV,Ei.g,Nr.TU,Ia.T5,va,ra.Nh,$n.ZX,Mi.Bb,ya.a4,Fa.OF,Wn.Xd]}),It})()},7861:(Fe,Y,p)=>{"use strict";p.d(Y,{M6:()=>D,Q2:()=>L,QO:()=>c,Tm:()=>ce,Uy:()=>ee,XT:()=>X,_V:()=>ge,ac:()=>N,c0:()=>r,c1:()=>w,dc:()=>_,ey:()=>ne,fk:()=>te,jS:()=>J,jW:()=>d,kS:()=>i,lC:()=>M,qR:()=>A,qi:()=>a,tj:()=>I,ts:()=>b,tw:()=>Z,uO:()=>h,vI:()=>j,x4:()=>E,yb:()=>S,zQ:()=>de});var t=p(5620),e=p(7731);(0,t.PH)(e.pg.VOID);const M=(0,t.PH)(e.pg.SET_API_URL_ECL,(0,t.Ky)()),a=(0,t.PH)(e.pg.UPDATE_API_CALL_STATUS_ROOT,(0,t.Ky)()),b=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),d=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),N=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),h=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),A=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),D=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),w=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),S=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),I=(0,t.PH)(e.pg.SHOW_PUBKEY),L=(0,t.PH)(e.pg.FETCH_CONFIG,(0,t.Ky)()),Z=((0,t.PH)(e.pg.SHOW_CONFIG,(0,t.Ky)()),(0,t.PH)(e.pg.UPDATE_SELECTED_NODE_OPTIONS)),j=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),ne=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),X=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),de=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),ee=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),te=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),ce=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),J=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),ge=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),r=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),c=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),E=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),_=((0,t.PH)(e.pg.VERIFY_TWO_FA,(0,t.Ky)()),(0,t.PH)(e.pg.FETCH_FILE,(0,t.Ky)()));(0,t.PH)(e.pg.SHOW_FILE,(0,t.Ky)())},3093:(Fe,Y,p)=>{"use strict";p.d(Y,{V:()=>ji});var t=p(6642),e=p(7579),f=p(9646),M=p(8306),a=p(4128),b=p(4004),d=p(5698),N=p(1365),h=p(5577),A=p(262),D=p(2722),w=p(2340),S=p(7731),I=p(8966),L=p(5e3),U=p(7093),Z=p(773);let j=(()=>{class Kt{constructor(zt,si){this.dialogRef=zt,this.data=si}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(L.Y36(I.so),L.Y36(I.WI))},Kt.\u0275cmp=L.Xpm({type:Kt,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(zt,si){1&zt&&(L.TgZ(0,"div",0)(1,"div",1),L._UZ(2,"mat-spinner"),L.TgZ(3,"h1"),L._uU(4),L.qZA()()()),2&zt&&(L.xp6(4),L.Oqu(si.data.titleMessage))},directives:[U.xw,U.Wh,Z.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),Kt})();var ne=p(5043),X=p(7261),de=p(62),ee=p(9808),te=p(3322),ce=p(159),J=p(9224),ge=p(7423),y=p(8129),i=p(5245),r=p(3390),u=p(6895),c=p(4834);const C=["scrollContainer"];function E(Kt,Oi){if(1&Kt&&L._UZ(0,"qr-code",15),2&Kt){const zt=L.oxw();L.Q6J("value",zt.showQRField)("size",200)("errorCorrectionLevel","L")}}function O(Kt,Oi){1&Kt&&L.GkF(0)}const _=function(Kt){return{"h-40":Kt}};function n(Kt,Oi){if(1&Kt&&(L.ynx(0),L.TgZ(1,"mat-card-content",16,17),L.YNc(3,O,1,0,"ng-container",18),L.qZA(),L.BQk()),2&Kt){const zt=L.oxw(),si=L.MAs(20);L.xp6(1),L.Q6J("ngClass",L.VKq(2,_,zt.data.scrollable)),L.xp6(2),L.Q6J("ngTemplateOutlet",si)}}function v(Kt,Oi){1&Kt&&L.GkF(0)}function B(Kt,Oi){if(1&Kt&&(L.ynx(0),L.TgZ(1,"mat-card-content",19),L.YNc(2,v,1,0,"ng-container",18),L.qZA(),L.BQk()),2&Kt){L.oxw();const zt=L.MAs(20);L.xp6(2),L.Q6J("ngTemplateOutlet",zt)}}function P(Kt,Oi){1&Kt&&(L.TgZ(0,"mat-icon",23),L._uU(1,"arrow_downward"),L.qZA())}function z(Kt,Oi){1&Kt&&(L.TgZ(0,"mat-icon",23),L._uU(1,"arrow_upward"),L.qZA())}function se(Kt,Oi){if(1&Kt){const zt=L.EpF();L.TgZ(0,"div",20)(1,"button",21),L.NdJ("click",function(){return L.CHM(zt),L.oxw().onScroll()}),L.YNc(2,P,2,0,"mat-icon",22),L.YNc(3,z,2,0,"mat-icon",22),L.qZA()()}if(2&Kt){const zt=L.oxw();L.xp6(2),L.Q6J("ngIf","DOWN"===zt.scrollDirection),L.xp6(1),L.Q6J("ngIf","UP"===zt.scrollDirection)}}function fe(Kt,Oi){1&Kt&&(L.TgZ(0,"button",24),L._uU(1,"OK"),L.qZA()),2&Kt&&L.Q6J("mat-dialog-close",!1)}function xe(Kt,Oi){1&Kt&&(L.TgZ(0,"button",25),L._uU(1,"Close"),L.qZA()),2&Kt&&L.Q6J("mat-dialog-close",!1)}function Re(Kt,Oi){if(1&Kt){const zt=L.EpF();L.TgZ(0,"button",26),L.NdJ("copied",function(Pt){return L.CHM(zt),L.oxw().onCopyField(Pt)}),L._uU(1),L.qZA()}if(2&Kt){const zt=L.oxw();L.Q6J("payload",zt.showCopyField),L.xp6(1),L.hij("Copy ",zt.showCopyName,"")}}function we(Kt,Oi){1&Kt&&(L.TgZ(0,"button",25),L._uU(1,"Close"),L.qZA()),2&Kt&&L.Q6J("mat-dialog-close",!1)}function Q(Kt,Oi){if(1&Kt){const zt=L.EpF();L.TgZ(0,"button",26),L.NdJ("copied",function(Pt){return L.CHM(zt),L.oxw().onCopyField(Pt)}),L._uU(1),L.qZA()}if(2&Kt){const zt=L.oxw();L.Q6J("payload",zt.showQRField),L.xp6(1),L.hij("Copy ",zt.showQRName,"")}}function Ge(Kt,Oi){if(1&Kt&&L._UZ(0,"qr-code",15),2&Kt){const zt=L.oxw(2);L.Q6J("value",zt.showQRField)("size",200)("errorCorrectionLevel","L")}}function ve(Kt,Oi){if(1&Kt&&(L.TgZ(0,"p",32),L._uU(1),L.qZA()),2&Kt){const zt=L.oxw(2);L.xp6(1),L.Oqu(zt.data.titleMessage)}}function F(Kt,Oi){1&Kt&&L._UZ(0,"span",46),2&Kt&&L.Q6J("innerHTML",Oi.$implicit,L.oJD)}function Ae(Kt,Oi){if(1&Kt&&(L.ynx(0),L.YNc(1,F,1,1,"span",45),L.BQk()),2&Kt){const zt=L.oxw(2).$implicit;L.xp6(1),L.Q6J("ngForOf",zt.value)}}function lt(Kt,Oi){if(1&Kt&&(L.ynx(0),L._uU(1),L.ALo(2,"date"),L.BQk()),2&Kt){const zt=L.oxw(2).$implicit;L.xp6(1),L.Oqu(L.xi3(2,1,1e3*zt.value,"dd/MMM/y HH:mm"))}}function Ie(Kt,Oi){if(1&Kt&&(L.ynx(0),L._uU(1),L.ALo(2,"number"),L.BQk()),2&Kt){const zt=L.oxw(2).$implicit;L.xp6(1),L.Oqu(L.xi3(2,1,zt.value,zt.digitsInfo?zt.digitsInfo:"1.0-3"))}}function De(Kt,Oi){if(1&Kt&&(L.ynx(0),L._uU(1),L.BQk()),2&Kt){const zt=L.oxw(2).$implicit;L.xp6(1),L.Oqu(zt.value?"True":"False")}}function oe(Kt,Oi){1&Kt&&(L.TgZ(0,"mat-icon",51),L._uU(1,"info"),L.qZA())}const Te=function(Kt){return{"failed-status":Kt}};function ye(Kt,Oi){if(1&Kt&&(L.TgZ(0,"p",49),L._uU(1),L.YNc(2,oe,2,0,"mat-icon",50),L.qZA()),2&Kt){const zt=L.oxw(3).$implicit,si=L.oxw(4);L.Q6J("ngClass",L.VKq(3,Te,zt.value===si.LoopStateEnum.FAILED)),L.xp6(1),L.hij(" ",zt.value," "),L.xp6(1),L.Q6J("ngIf",zt.value===si.LoopStateEnum.FAILED)}}function W(Kt,Oi){if(1&Kt&&L._uU(0),2&Kt){const zt=L.oxw(3).$implicit;L.Oqu(zt.value)}}function $(Kt,Oi){if(1&Kt&&(L.ynx(0),L.YNc(1,ye,3,5,"p",47),L.YNc(2,W,1,1,"ng-template",null,48,L.W1O),L.BQk()),2&Kt){const zt=L.MAs(3),si=L.oxw(2).$implicit,Pt=L.oxw(4);L.xp6(1),L.Q6J("ngIf","SWAP"===Pt.data.openedBy&&"state"===si.key)("ngIfElse",zt)}}function ue(Kt,Oi){if(1&Kt&&(L.TgZ(0,"span")(1,"span",42),L.YNc(2,Ae,2,1,"ng-container",43),L.YNc(3,lt,3,4,"ng-container",43),L.YNc(4,Ie,3,4,"ng-container",43),L.YNc(5,De,2,1,"ng-container",43),L.YNc(6,$,4,2,"ng-container",44),L.qZA()()),2&Kt){const zt=L.oxw().$implicit,si=L.oxw(4);L.xp6(1),L.Q6J("ngSwitch",zt.type),L.xp6(1),L.Q6J("ngSwitchCase",si.dataTypeEnum.ARRAY),L.xp6(1),L.Q6J("ngSwitchCase",si.dataTypeEnum.DATE_TIME),L.xp6(1),L.Q6J("ngSwitchCase",si.dataTypeEnum.NUMBER),L.xp6(1),L.Q6J("ngSwitchCase",si.dataTypeEnum.BOOLEAN)}}function Ce(Kt,Oi){1&Kt&&(L.TgZ(0,"span",52),L._uU(1,"\xa0"),L.qZA())}function Le(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div",37)(1,"h4",38),L._uU(2),L.qZA(),L.YNc(3,ue,7,5,"span",39),L.YNc(4,Ce,2,0,"ng-template",null,40,L.W1O),L._UZ(6,"mat-divider",41),L.qZA()),2&Kt){const zt=Oi.$implicit,si=L.MAs(5);L.s9C("fxFlex.gt-md",zt.width),L.xp6(2),L.Oqu(zt.title),L.xp6(1),L.Q6J("ngIf",zt&&(!!zt.value||0===zt.value))("ngIfElse",si)}}function ct(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div")(1,"div",35),L.YNc(2,Le,7,4,"div",36),L.qZA()()),2&Kt){const zt=Oi.$implicit;L.xp6(2),L.Q6J("ngForOf",zt)}}function ut(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div",33),L.YNc(1,ct,3,1,"div",34),L.qZA()),2&Kt){const zt=L.oxw(2);L.xp6(1),L.Q6J("ngForOf",zt.messageObjs)}}const Dt=function(Kt){return{"display-none":Kt}};function di(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div",27)(1,"div",28),L.YNc(2,Ge,1,3,"qr-code",2),L.qZA(),L.TgZ(3,"div",29),L.YNc(4,ve,2,1,"p",30),L.YNc(5,ut,2,1,"div",31),L.qZA()()),2&Kt){const zt=L.oxw();L.xp6(1),L.Q6J("ngClass",L.VKq(4,Dt,""===zt.showQRField||zt.screenSize!==zt.screenSizeEnum.XS&&zt.screenSize!==zt.screenSizeEnum.SM)),L.xp6(1),L.Q6J("ngIf",""!==zt.showQRField),L.xp6(2),L.Q6J("ngIf",zt.data.titleMessage),L.xp6(1),L.Q6J("ngIf",(null==zt.messageObjs?null:zt.messageObjs.length)>0)}}let Yt=(()=>{class Kt{constructor(zt,si,Pt,mi,ti,vi){this.dialogRef=zt,this.data=si,this.logger=Pt,this.snackBar=mi,this.commonService=ti,this.renderer=vi,this.LoopStateEnum=S.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=S.n_,this.dataTypeEnum=S.Gi,this.screenSize="",this.screenSizeEnum=S.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(zt){zt&&(this.scrollContainer=zt,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",si=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",si=>{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===S.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(zt){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+zt)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(L.Y36(I.so),L.Y36(I.WI),L.Y36(ne.mQ),L.Y36(X.ux),L.Y36(de.v),L.Y36(L.Qsj))},Kt.\u0275cmp=L.Xpm({type:Kt,selectors:[["rtl-alert-message"]],viewQuery:function(zt,si){if(1&zt&&L.Gf(C,5),2&zt){let Pt;L.iGM(Pt=L.CRH())&&(si.container=Pt.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(zt,si){1&zt&&(L.TgZ(0,"div",0)(1,"div",1),L.YNc(2,E,1,3,"qr-code",2),L.qZA(),L.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),L._uU(7),L.qZA()(),L.TgZ(8,"button",7),L.NdJ("click",function(){return si.onClose()}),L._uU(9,"X"),L.qZA()(),L.YNc(10,n,4,4,"ng-container",8),L.YNc(11,B,3,1,"ng-container",8),L.YNc(12,se,4,2,"div",9),L.TgZ(13,"div",10),L.YNc(14,fe,2,1,"button",11),L.YNc(15,xe,2,1,"button",12),L.YNc(16,Re,2,2,"button",13),L.YNc(17,we,2,1,"button",12),L.YNc(18,Q,2,2,"button",13),L.qZA()()(),L.YNc(19,di,6,6,"ng-template",null,14,L.W1O)),2&zt&&(L.xp6(1),L.Q6J("ngClass",L.VKq(12,Dt,""===si.showQRField||si.screenSize===si.screenSizeEnum.XS||si.screenSize===si.screenSizeEnum.SM)),L.xp6(1),L.Q6J("ngIf",""!==si.showQRField),L.xp6(1),L.Q6J("fxFlex",""===si.showQRField||si.screenSize===si.screenSizeEnum.XS||si.screenSize===si.screenSizeEnum.SM?"100":"70"),L.xp6(4),L.Oqu(si.data.alertTitle||si.alertTypeEnum[si.data.type]),L.xp6(3),L.Q6J("ngIf",si.data.scrollable),L.xp6(1),L.Q6J("ngIf",!si.data.scrollable),L.xp6(1),L.Q6J("ngIf",si.data.scrollable&&si.shouldScroll),L.xp6(2),L.Q6J("ngIf",(!si.showQRField||""===si.showQRField)&&""===si.showCopyName),L.xp6(1),L.Q6J("ngIf",""!==si.showCopyName),L.xp6(1),L.Q6J("ngIf",""!==si.showCopyName),L.xp6(1),L.Q6J("ngIf",""!==si.showQRField),L.xp6(1),L.Q6J("ngIf",""!==si.showQRField))},directives:[U.xw,U.Wh,U.yH,ee.mk,te.oO,ee.O5,ce.uU,J.dk,ge.lW,J.dn,y.$V,ee.tP,i.Hw,r.h,I.ZT,u.y,ee.sg,ee.RF,ee.n9,ee.ED,c.d],pipes:[ee.uU,ee.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),Kt})();var Gt=p(801),ui=p(7861),xt=p(5620),Nt=p(3075),gt=p(9444),et=p(7322),vt=p(7531),$t=p(6534);function jt(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div",17),L._UZ(1,"fa-icon",18),L.TgZ(2,"span"),L._uU(3),L.qZA()()),2&Kt){const zt=L.oxw();L.xp6(1),L.Q6J("icon",zt.faExclamationTriangle),L.xp6(2),L.Oqu(zt.warningMessage)}}function Pe(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div",19),L._UZ(1,"fa-icon",18),L.TgZ(2,"span"),L._uU(3),L.qZA()()),2&Kt){const zt=L.oxw();L.xp6(1),L.Q6J("icon",zt.faInfoCircle),L.xp6(2),L.Oqu(zt.informationMessage)}}function Oe(Kt,Oi){if(1&Kt&&(L.TgZ(0,"p",20),L._uU(1),L.qZA()),2&Kt){const zt=L.oxw();L.xp6(1),L.Oqu(zt.data.titleMessage)}}function le(Kt,Oi){1&Kt&&L._UZ(0,"span",33),2&Kt&&L.Q6J("innerHTML",Oi.$implicit,L.oJD)}function be(Kt,Oi){if(1&Kt&&(L.ynx(0),L.YNc(1,le,1,1,"span",32),L.BQk()),2&Kt){const zt=L.oxw(2).$implicit;L.xp6(1),L.Q6J("ngForOf",zt.value)}}function ht(Kt,Oi){if(1&Kt&&(L.ynx(0),L._uU(1),L.ALo(2,"date"),L.BQk()),2&Kt){const zt=L.oxw(2).$implicit;L.xp6(1),L.Oqu(L.xi3(2,1,1e3*zt.value,"dd/MMM/y HH:mm"))}}function ft(Kt,Oi){if(1&Kt&&(L.ynx(0),L._uU(1),L.ALo(2,"number"),L.BQk()),2&Kt){const zt=L.oxw(2).$implicit;L.xp6(1),L.Oqu(L.xi3(2,1,zt.value,"1.0-3"))}}function Ht(Kt,Oi){if(1&Kt&&(L.ynx(0),L._uU(1),L.BQk()),2&Kt){const zt=L.oxw(2).$implicit;L.xp6(1),L.Oqu(!0===zt.value?"True":"False")}}function it(Kt,Oi){if(1&Kt&&(L.ynx(0),L._uU(1),L.BQk()),2&Kt){const zt=L.oxw(2).$implicit;L.xp6(1),L.Oqu(zt.value)}}function Ne(Kt,Oi){if(1&Kt&&(L.TgZ(0,"span")(1,"span",29),L.YNc(2,be,2,1,"ng-container",30),L.YNc(3,ht,3,4,"ng-container",30),L.YNc(4,ft,3,4,"ng-container",30),L.YNc(5,Ht,2,1,"ng-container",30),L.YNc(6,it,2,1,"ng-container",31),L.qZA()()),2&Kt){const zt=L.oxw().$implicit,si=L.oxw(3);L.xp6(1),L.Q6J("ngSwitch",zt.type),L.xp6(1),L.Q6J("ngSwitchCase",si.dataTypeEnum.ARRAY),L.xp6(1),L.Q6J("ngSwitchCase",si.dataTypeEnum.DATE_TIME),L.xp6(1),L.Q6J("ngSwitchCase",si.dataTypeEnum.NUMBER),L.xp6(1),L.Q6J("ngSwitchCase",si.dataTypeEnum.BOOLEAN)}}function tt(Kt,Oi){1&Kt&&(L.TgZ(0,"span",34),L._uU(1,"\xa0"),L.qZA())}function Je(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div",24)(1,"h4",25),L._uU(2),L.qZA(),L.YNc(3,Ne,7,5,"span",26),L.YNc(4,tt,2,0,"ng-template",null,27,L.W1O),L._UZ(6,"mat-divider",28),L.qZA()),2&Kt){const zt=Oi.$implicit,si=L.MAs(5);L.s9C("fxFlex.gt-md",zt.width),L.xp6(2),L.Oqu(zt.title),L.xp6(1),L.Q6J("ngIf",zt&&(!!zt.value||0===zt.value))("ngIfElse",si)}}function Se(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div")(1,"div",22),L.YNc(2,Je,7,4,"div",23),L.qZA()()),2&Kt){const zt=Oi.$implicit;L.xp6(2),L.Q6J("ngForOf",zt)}}function Ue(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div"),L.YNc(1,Se,3,1,"div",21),L.qZA()),2&Kt){const zt=L.oxw();L.xp6(1),L.Q6J("ngForOf",zt.messageObjs)}}function rt(Kt,Oi){if(1&Kt&&(L.TgZ(0,"p",20),L._uU(1),L.qZA()),2&Kt){const zt=L.oxw(2);L.xp6(1),L.Oqu(zt.data.titleMessage)}}function at(Kt,Oi){if(1&Kt){const zt=L.EpF();L.TgZ(0,"input",41),L.NdJ("ngModelChange",function(Pt){return L.CHM(zt),L.oxw().$implicit.inputValue=Pt}),L.ALo(1,"lowercase"),L.qZA()}if(2&Kt){const zt=L.oxw(),si=zt.index,Pt=zt.$implicit;L.MGl("name","input",si,""),L.Q6J("placeholder",Pt.placeholder)("min",Pt.min)("step",Pt.step)("type",L.lcZ(1,7,Pt.inputType))("ngModel",Pt.inputValue)("tabindex",si+1)}}function yt(Kt,Oi){if(1&Kt){const zt=L.EpF();L.TgZ(0,"input",42),L.NdJ("ngModelChange",function(Pt){return L.CHM(zt),L.oxw().$implicit.inputValue=Pt}),L.ALo(1,"lowercase"),L.qZA()}if(2&Kt){const zt=L.oxw(),si=zt.index,Pt=zt.$implicit;L.MGl("name","input",si,""),L.Q6J("placeholder",Pt.placeholder)("min",Pt.min)("step",Pt.step)("type",L.lcZ(1,7,Pt.inputType))("ngModel",Pt.inputValue)("tabindex",si+1)}}function gi(Kt,Oi){if(1&Kt&&(L.TgZ(0,"mat-error"),L._uU(1),L.qZA()),2&Kt){const zt=L.oxw().$implicit;L.xp6(1),L.hij("",zt.placeholder," is required.")}}function Qt(Kt,Oi){if(1&Kt&&(L.TgZ(0,"mat-form-field",38),L.YNc(1,at,2,9,"input",39),L.YNc(2,yt,2,9,"input",40),L.YNc(3,gi,2,1,"mat-error",11),L.TgZ(4,"mat-hint"),L._uU(5),L.qZA()()),2&Kt){const zt=Oi.$implicit,si=Oi.index;L.Q6J("fxFlex",zt.width),L.xp6(1),L.Q6J("ngIf",0===si),L.xp6(1),L.Q6J("ngIf",0!==si),L.xp6(1),L.Q6J("ngIf",!zt.inputValue),L.xp6(2),L.Oqu(zt.hintFunction?zt.hintFunction(zt.inputValue):zt.hintText)}}function Jt(Kt,Oi){if(1&Kt&&(L.TgZ(0,"div",35),L.YNc(1,rt,2,1,"p",10),L.TgZ(2,"div",36),L.YNc(3,Qt,6,5,"mat-form-field",37),L.qZA()()),2&Kt){const zt=L.oxw();L.xp6(1),L.Q6J("ngIf",zt.data.titleMessage),L.xp6(2),L.Q6J("ngForOf",zt.getInputs)}}function Xi(Kt,Oi){if(1&Kt){const zt=L.EpF();L.TgZ(0,"button",43),L.NdJ("click",function(){L.CHM(zt);const Pt=L.oxw();return Pt.onClose(Pt.getInputs)}),L._uU(1),L.qZA()}if(2&Kt){const zt=L.oxw();L.xp6(1),L.Oqu(zt.yesBtnText)}}function fi(Kt,Oi){if(1&Kt){const zt=L.EpF();L.TgZ(0,"button",44),L.NdJ("click",function(){return L.CHM(zt),L.oxw().onClose(!0)}),L._uU(1),L.qZA()}if(2&Kt){const zt=L.oxw();L.xp6(1),L.Oqu(zt.yesBtnText)}}let ai=(()=>{class Kt{constructor(zt,si,Pt,mi){this.dialogRef=zt,this.data=si,this.logger=Pt,this.store=mi,this.faInfoCircle=Gt.sqG,this.faExclamationTriangle=Gt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=S.n_,this.dataTypeEnum=S.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null}]}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.messageObjs=this.data.message,this.data.type===S.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(zt){if(zt&&this.getInputs&&this.getInputs.some(si=>void 0===si.inputValue))return!0;this.store.dispatch((0,ui.yb)({payload:zt}))}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(L.Y36(I.so),L.Y36(I.WI),L.Y36(ne.mQ),L.Y36(xt.yh))},Kt.\u0275cmp=L.Xpm({type:Kt,selectors:[["rtl-confirmation-message"]],decls:20,vars:9,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","2",1,"mr-1",3,"click"],["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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["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(zt,si){1&zt&&(L.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),L._uU(5),L.qZA()(),L.TgZ(6,"button",5),L.NdJ("click",function(){return si.onClose(!1)}),L._uU(7,"X"),L.qZA()(),L.TgZ(8,"mat-card-content",6)(9,"form",7),L.YNc(10,jt,4,2,"div",8),L.YNc(11,Pe,4,2,"div",9),L.YNc(12,Oe,2,1,"p",10),L.YNc(13,Ue,2,1,"div",11),L.YNc(14,Jt,4,2,"div",12),L.TgZ(15,"div",13)(16,"button",14),L.NdJ("click",function(){return si.onClose(!1)}),L._uU(17),L.qZA(),L.YNc(18,Xi,2,1,"button",15),L.YNc(19,fi,2,1,"button",16),L.qZA()()()()()),2&zt&&(L.xp6(5),L.Oqu(si.data.alertTitle||si.alertTypeEnum[si.data.type]),L.xp6(5),L.Q6J("ngIf",si.warningMessage&&""!==si.warningMessage),L.xp6(1),L.Q6J("ngIf",si.informationMessage&&""!==si.informationMessage),L.xp6(1),L.Q6J("ngIf",si.data.titleMessage&&!si.flgShowInput),L.xp6(1),L.Q6J("ngIf",(null==si.messageObjs?null:si.messageObjs.length)>0),L.xp6(1),L.Q6J("ngIf",si.flgShowInput),L.xp6(3),L.Oqu(si.noBtnText),L.xp6(1),L.Q6J("ngIf",si.flgShowInput),L.xp6(1),L.Q6J("ngIf",!si.flgShowInput))},directives:[U.xw,U.yH,J.dk,U.Wh,ge.lW,J.dn,Nt._Y,Nt.JL,Nt.F,ee.O5,gt.BN,ee.sg,ee.RF,ee.n9,ee.ED,c.d,et.KE,vt.Nt,$t.q,Nt.Fj,r.h,Nt.Q7,Nt.JJ,Nt.On,et.TO,et.bx],pipes:[ee.uU,ee.JJ,ee.i8],styles:[""]}),Kt})();var tn=p(1786),Wi=p(4107),Gi=p(508);function Yi(Kt,Oi){if(1&Kt&&(L.TgZ(0,"mat-option",23),L._uU(1),L.qZA()),2&Kt){const zt=Oi.$implicit;L.Q6J("value",zt),L.xp6(1),L.hij(" ",zt.infoName," ")}}function ze(Kt,Oi){if(1&Kt){const zt=L.EpF();L.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),L.NdJ("valueChange",function(Pt){return L.CHM(zt),L.oxw().selInfoType=Pt}),L.YNc(3,Yi,2,2,"mat-option",22),L.qZA()()()}if(2&Kt){const zt=L.oxw();L.xp6(2),L.Q6J("value",zt.selInfoType),L.xp6(1),L.Q6J("ngForOf",zt.infoTypes)}}const Lt=function(Kt){return{"display-none":Kt}};let pe=(()=>{class Kt{constructor(zt,si,Pt,mi,ti){this.dialogRef=zt,this.data=si,this.logger=Pt,this.snackBar=mi,this.commonService=ti,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=S.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((zt,si)=>{this.infoTypes.push({infoID:si+1,infoKey:"node URI "+(si+1),infoName:"Node URI "+(si+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(zt){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+zt)}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(L.Y36(I.so),L.Y36(I.WI),L.Y36(ne.mQ),L.Y36(X.ux),L.Y36(de.v))},Kt.\u0275cmp=L.Xpm({type:Kt,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(zt,si){1&zt&&(L.TgZ(0,"div",0)(1,"div",1),L._UZ(2,"qr-code",2),L.qZA(),L.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),L._UZ(6,"fa-icon",6),L.TgZ(7,"span",7),L._uU(8),L.qZA()(),L.TgZ(9,"button",8),L.NdJ("click",function(){return si.onClose()}),L._uU(10,"X"),L.qZA()(),L.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),L._UZ(14,"qr-code",2),L.qZA(),L.YNc(15,ze,4,2,"div",12),L.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),L._uU(19),L.qZA(),L.TgZ(20,"span",16),L._uU(21),L.qZA()()(),L._UZ(22,"mat-divider",17),L.TgZ(23,"div",18)(24,"button",19),L.NdJ("copied",function(mi){return si.onCopyPubkey(mi)}),L._uU(25),L.qZA()()()()()()),2&zt&&(L.xp6(1),L.Q6J("ngClass",L.VKq(15,Lt,si.screenSize===si.screenSizeEnum.XS||si.screenSize===si.screenSizeEnum.SM)),L.xp6(1),L.s9C("value",0===si.selInfoType.infoID?si.information.identity_pubkey:si.information.uris[si.selInfoType.infoID-1]),L.Q6J("size",si.qrWidth)("errorCorrectionLevel","L"),L.xp6(4),L.Q6J("icon",si.faReceipt),L.xp6(2),L.Oqu(si.selInfoType.infoName),L.xp6(5),L.Q6J("ngClass",L.VKq(17,Lt,si.screenSize!==si.screenSizeEnum.XS&&si.screenSize!==si.screenSizeEnum.SM)),L.xp6(1),L.s9C("value",0===si.selInfoType.infoID?si.information.identity_pubkey:si.information.uris[si.selInfoType.infoID-1]),L.Q6J("size",si.qrWidth)("errorCorrectionLevel","L"),L.xp6(1),L.Q6J("ngIf",si.information.uris&&si.information.uris.length>0),L.xp6(4),L.Oqu(si.selInfoType.infoName),L.xp6(2),L.Oqu(0===si.selInfoType.infoID?si.information.identity_pubkey:si.information.uris[si.selInfoType.infoID-1]),L.xp6(3),L.s9C("payload",0===si.selInfoType.infoID?si.information.identity_pubkey:si.information.uris[si.selInfoType.infoID-1]),L.xp6(1),L.hij("Copy ",si.selInfoType.infoKey,""))},directives:[U.xw,U.Wh,U.yH,ee.mk,te.oO,ce.uU,J.dk,gt.BN,ge.lW,J.dn,ee.O5,et.KE,Wi.gD,ee.sg,Gi.ey,c.d,r.h,u.y],styles:[""]}),Kt})();var je=p(6523),Ct=p(429),ie=p(2994),qe=p(8377),Mt=p(8138),Vt=p(7998),Mi=p(5986),Ei=p(8104),en=p(1402);let ji=(()=>{class Kt{constructor(zt,si,Pt,mi,ti,vi,Bi,Fi,pn,Fn,Dn){this.actions=zt,this.httpClient=si,this.store=Pt,this.logger=mi,this.wsService=ti,this.sessionService=vi,this.commonService=Bi,this.dataService=Fi,this.dialog=pn,this.snackBar=Fn,this.router=Dn,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new e.x,new e.x],this.closeAllDialogs=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_ALL_DIALOGS),(0,b.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_SNACK_BAR),(0,b.U)(Ai=>{"string"==typeof Ai.payload?this.snackBar.open(Ai.payload):this.snackBar.open(Ai.payload.message,"","ERROR"===Ai.payload.type?{duration:Ai.payload.duration?Ai.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Ai.payload.type?{duration:Ai.payload.duration?Ai.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Ai.payload.duration?Ai.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_SPINNER),(0,b.U)(Ai=>{Ai.payload!==S.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(j,{data:{titleMessage:Ai.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_SPINNER),(0,b.U)(Ai=>{if(Ai.payload!==S.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Ai.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Ri=>{Ri.componentInstance&&Ri.componentInstance.data&&Ri.componentInstance.data.titleMessage&&Ri.componentInstance.data.titleMessage===Ai.payload&&Ri.close()})}catch(Ri){this.logger.error(Ri)}})),{dispatch:!1}),this.openAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_ALERT),(0,b.U)(Ai=>{const Ri=JSON.parse(JSON.stringify(Ai.payload));Ri.width||(Ri.width=this.alertWidth),this.dialogRef=this.dialog.open(Ai.payload.data.component?Ai.payload.data.component:Yt,Ri)})),{dispatch:!1}),this.closeAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_ALERT),(0,b.U)(Ai=>(this.dialogRef&&this.dialogRef.close(),Ai.payload))),{dispatch:!1}),this.openConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_CONFIRMATION),(0,b.U)(Ai=>{const Ri=JSON.parse(JSON.stringify(Ai.payload));Ri.width||(Ri.width=this.confirmWidth),this.dialogRef=this.dialog.open(ai,Ri)})),{dispatch:!1}),this.closeConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_CONFIRMATION),(0,d.q)(1),(0,b.U)(Ai=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Ai.payload),Ai.payload))),{dispatch:!1}),this.showNodePubkey=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_PUBKEY),(0,N.M)(this.store.select(qe.R4)),(0,h.z)(([Ai,Ri])=>(this.sessionService.getItem("token")&&Ri.identity_pubkey?this.store.dispatch((0,ui.qR)({payload:{data:{information:Ri,component:pe}}})):this.snackBar.open("Node Pubkey does not exist."),(0,f.of)({type:S.pg.VOID}))))),this.appConfigFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_RTL_CONFIG),(0,h.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===S.cu.XS||this.screenSize===S.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===S.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,ui.ac)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(w.NZ.CONF_API+"/rtlconf"):this.httpClient.get(w.NZ.CONF_API+"/rtlconfinit"))),(0,b.U)(Ai=>{let Ri;return this.logger.info(Ai),this.store.dispatch((0,ui.uO)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.COMPLETED}})),Ai.nodes.forEach(cn=>{cn.settings.currencyUnits=[...S.uA,cn.settings.currencyUnit],+cn.index===Ai.selectedNodeIndex&&(Ri=cn)}),Ri?(this.store.dispatch((0,ui.fk)({payload:{uiMessage:S.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Ri,isInitialSetup:!0}})),{type:S.pg.SET_RTL_CONFIG,payload:Ai}):{type:S.pg.VOID}}),(0,A.K)(Ai=>(this.handleErrorWithAlert("FetchRTLConfig",S.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",w.NZ.CONF_API,Ai),(0,f.of)({type:S.pg.VOID}))))),this.settingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SAVE_SETTINGS),(0,h.z)(Ai=>{this.store.dispatch((0,ui.ac)({payload:Ai.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:S.Bn.INITIATED}}));let Ri=new M.y;if(Ai.payload.settings&&Ai.payload.defaultNodeIndex){const cn=this.httpClient.post(w.NZ.CONF_API,{updatedSettings:Ai.payload.settings}),pr=this.httpClient.post(w.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Ai.payload.defaultNodeIndex});Ri=(0,a.D)([cn,pr])}else Ai.payload.settings&&!Ai.payload.defaultNodeIndex?Ri=this.httpClient.post(w.NZ.CONF_API,{updatedSettings:Ai.payload.settings}):!Ai.payload.settings&&Ai.payload.defaultNodeIndex&&(Ri=this.httpClient.post(w.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Ai.payload.defaultNodeIndex}));return Ri.pipe((0,b.U)(cn=>(this.logger.info(cn),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Ai.payload.uiMessage})),{type:S.pg.OPEN_SNACK_BAR,payload:cn.length?cn[0].message+".":cn.message+"."})),(0,A.K)(cn=>(this.handleErrorWithAlert("UpdateSettings",Ai.payload.uiMessage,"Update Settings Failed!",w.NZ.CONF_API,cn.length?cn[0]:cn),(0,f.of)({type:S.pg.VOID}))))}))),this.updateServicesettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.UPDATE_SERVICE_SETTINGS),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:Ai.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:S.Bn.INITIATED}})),this.httpClient.post(w.NZ.CONF_API+"/updateServiceSettings",Ai.payload).pipe((0,b.U)(Ri=>(this.logger.info(Ri),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Ai.payload.uiMessage})),this.store.dispatch((0,ui.Tm)({payload:Ai.payload})),{type:S.pg.OPEN_SNACK_BAR,payload:Ri.message+"."})),(0,A.K)(Ri=>(this.handleErrorWithAlert("UpdateServiceSettings",Ai.payload.uiMessage,"Update Service Settings Failed!",w.NZ.CONF_API,Ri),(0,f.of)({type:S.pg.VOID})))))))),this.twoFASettingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.TWO_FA_SAVE_SETTINGS),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:S.Bn.INITIATED}})),this.httpClient.post(w.NZ.CONF_API+"/update2FA",{secret2fa:Ai.payload.secret2fa}))),(0,N.M)(this.store.select(qe.Yj)),(0,b.U)(([Ai,Ri])=>{this.logger.info(Ai),Ri.enable2FA=!Ri.enable2FA,this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.XT)({payload:Ri}))}),(0,A.K)(Ai=>(this.handleErrorWithAlert("Update2FASettings",S.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",w.NZ.CONF_API,Ai),(0,f.of)({type:S.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_CONFIG),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:S.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:S.Bn.INITIATED}})),this.httpClient.get(w.NZ.CONF_API+"/config/"+Ai.payload).pipe((0,b.U)(Ri=>(this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.OPEN_CONFIG_FILE})),{type:S.pg.SHOW_CONFIG,payload:Ri})),(0,A.K)(Ri=>(this.handleErrorWithAlert("fetchConfig",S.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",w.NZ.CONF_API+"/config/"+Ai.payload,Ri),(0,f.of)({type:S.pg.VOID})))))))),this.showLnConfig=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_CONFIG),(0,b.U)(Ai=>Ai.payload)),{dispatch:!1}),this.isAuthorized=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.IS_AUTHORIZED),(0,h.z)(Ai=>(this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:S.Bn.INITIATED}})),this.httpClient.post(w.NZ.AUTHENTICATE_API,{authenticateWith:Ai.payload&&""!==Ai.payload.trim()?S.OJ.PASSWORD:S.OJ.JWT,authenticationValue:Ai.payload&&""!==Ai.payload.trim()?Ai.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,b.U)(Ri=>(this.logger.info(Ri),this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:S.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:S.pg.IS_AUTHORIZED_RES,payload:Ri})),(0,A.K)(Ri=>(this.handleErrorWithAlert("IsAuthorized",S.m6.NO_SPINNER,"Authorization Failed",w.NZ.AUTHENTICATE_API,Ri),(0,f.of)({type:S.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.IS_AUTHORIZED_RES),(0,b.U)(Ai=>Ai.payload)),{dispatch:!1}),this.authLogin=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.LOGIN),(0,N.M)(this.store.select(qe.Yj)),(0,h.z)(([Ai,Ri])=>(this.store.dispatch((0,je.Ll)({payload:null})),this.store.dispatch((0,Ct.xH)({payload:null})),this.store.dispatch((0,ie.Fd)({payload:null})),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:S.Bn.INITIATED}})),this.httpClient.post(w.NZ.AUTHENTICATE_API,{authenticateWith:Ai.payload.password?S.OJ.PASSWORD:S.OJ.JWT,authenticationValue:Ai.payload.password?Ai.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Ai.payload.twoFAToken?Ai.payload.twoFAToken:""}).pipe((0,b.U)(cn=>{this.logger.info(cn),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:S.Bn.COMPLETED}})),this.setLoggedInDetails(Ai.payload.defaultPassword,cn)}),(0,A.K)(cn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",S.m6.NO_SPINNER,cn),+Ri.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:cn.error&&cn.error.error?cn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,f.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.VERIFY_TWO_FA),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:S.Bn.INITIATED}})),this.httpClient.post(w.NZ.AUTHENTICATE_API+"/token",{authentication2FA:Ai.payload.token}).pipe((0,b.U)(Ri=>{this.logger.info(Ri),this.store.dispatch((0,ui.uO)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:S.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Ai.payload.authResponse)}),(0,A.K)(Ri=>(this.handleErrorWithAlert("VerifyToken",S.m6.VERIFY_TOKEN,"Authorization Failed!",w.NZ.AUTHENTICATE_API+"/token",Ri),(0,f.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.LOGOUT),(0,N.M)(this.store.select(qe.Yj)),(0,h.z)(([Ai,Ri])=>(this.store.dispatch((0,ui.ac)({payload:S.m6.LOG_OUT})),this.httpClient.get(w.NZ.AUTHENTICATE_API+"/logout").pipe((0,b.U)(cn=>{this.logger.info(cn),this.store.dispatch((0,ui.uO)({payload:S.m6.LOG_OUT})),+Ri.sso.rtlSSO?window.location.href=Ri.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,ui._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,t.GW)(()=>this.actions.pipe((0,D.R)(this.unSubs[1]),(0,t.l4)(S.pg.RESET_PASSWORD),(0,h.z)(Ai=>(this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:S.Bn.INITIATED}})),this.httpClient.post(w.NZ.AUTHENTICATE_API+"/reset",{currPassword:Ai.payload.currPassword,newPassword:Ai.payload.newPassword}).pipe((0,D.R)(this.unSubs[0]),(0,b.U)(Ri=>(this.logger.info(Ri),this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:S.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,ui.jW)({payload:"Password Reset Successful!"})),this.SetToken(Ri.token),{type:S.pg.RESET_PASSWORD_RES,payload:Ri.token})),(0,A.K)(Ri=>(this.handleErrorWithAlert("ResetPassword",S.m6.NO_SPINNER,"Password Reset Failed!",w.NZ.AUTHENTICATE_API+"/reset",Ri),(0,f.of)({type:S.pg.VOID})))))))),this.setSelectedNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SET_SELECTED_NODE),(0,h.z)(Ai=>(this.store.dispatch((0,ui.ac)({payload:Ai.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:S.Bn.INITIATED}})),this.httpClient.get(w.NZ.CONF_API+"/updateSelNode/"+Ai.payload.currentLnNode.index+"/"+Ai.payload.prevLnNodeIndex).pipe((0,b.U)(Ri=>(this.logger.info(Ri),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Ai.payload.uiMessage})),this.initializeNode(Ai.payload.currentLnNode,Ai.payload.isInitialSetup),{type:S.pg.VOID})),(0,A.K)(Ri=>(this.handleErrorWithAlert("UpdateSelNode",Ai.payload.uiMessage,"Update Selected Node Failed!",w.NZ.CONF_API+"/updateSelNode",Ri),(0,f.of)({type:S.pg.VOID})))))))),this.fetchFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_FILE),(0,h.z)(Ai=>{this.store.dispatch((0,ui.ac)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:S.Bn.INITIATED}}));const Ri="?channel="+Ai.payload.channelPoint+(Ai.payload.path?"&path="+Ai.payload.path:"");return this.httpClient.get(w.NZ.CONF_API+"/file"+Ri).pipe((0,b.U)(cn=>(this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),{type:S.pg.SHOW_FILE,payload:cn})),(0,A.K)(cn=>(this.handleErrorWithAlert("fetchFile",S.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",w.NZ.CONF_API+"/file"+Ri,{status:this.commonService.extractErrorNumber(cn),error:{error:this.commonService.extractErrorCode(cn)}}),(0,f.of)({type:S.pg.VOID}))))}))),this.showFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_FILE),(0,b.U)(Ai=>Ai.payload)),{dispatch:!1})}initializeNode(zt,si){this.logger.info("Initializing node from RTL Effects.");const Pt=si?"":"HOME";let mi={};if(mi=zt.settings.fiatConversion&&zt.settings.currencyUnit?{userPersona:zt.settings.userPersona,channelBackupPath:zt.settings.channelBackupPath,selCurrencyUnit:zt.settings.currencyUnit,currencyUnits:[...S.uA,zt.settings.currencyUnit],fiatConversion:zt.settings.fiatConversion,lnImplementation:zt.lnImplementation,swapServerUrl:zt.settings.swapServerUrl,boltzServerUrl:zt.settings.boltzServerUrl,enableOffers:zt.settings.enableOffers}:{userPersona:zt.settings.userPersona,channelBackupPath:zt.settings.channelBackupPath,selCurrencyUnit:zt.settings.currencyUnit,currencyUnits:S.uA,fiatConversion:zt.settings.fiatConversion,lnImplementation:zt.lnImplementation,swapServerUrl:zt.settings.swapServerUrl,boltzServerUrl:zt.settings.boltzServerUrl,enableOffers:zt.settings.enableOffers},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,ui.vI)({payload:zt})),this.store.dispatch((0,je.Ll)({payload:mi})),this.store.dispatch((0,Ct.xH)({payload:mi})),this.store.dispatch((0,ie.Fd)({payload:mi})),this.sessionService.getItem("token")){const ti=zt.lnImplementation?zt.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(ti);const vi=w.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":w.T5;switch(this.wsService.connectWebSocket(vi.replace(/^http/,"ws")+w.NZ.Web_SOCKET_API,zt.index.toString()),ti){case"CLN":this.store.dispatch((0,Ct.CN)({payload:{loadPage:Pt}}));break;case"ECL":this.store.dispatch((0,ie.iz)({payload:{loadPage:Pt}}));break;default:this.store.dispatch((0,je.sQ)({payload:{loadPage:Pt}}))}}}SetToken(zt){zt?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",zt)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(zt,si){this.logger.info("Successfully Authorized!"),this.SetToken(si.token),this.sessionService.setItem("defaultPassword",zt),zt?(this.store.dispatch((0,ui.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,ui.ey)())}handleErrorWithoutAlert(zt,si,Pt){this.logger.error("ERROR IN: "+zt+"\n"+JSON.stringify(Pt)),401===Pt.status&&"Login"!==zt?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,ui.uO)({payload:si})),this.store.dispatch((0,ui.qi)({payload:{action:zt,status:S.Bn.ERROR,statusCode:Pt.status?Pt.status.toString():"",message:this.commonService.extractErrorMessage(Pt)}})))}handleErrorWithAlert(zt,si,Pt,mi,ti){if(this.logger.error(ti),0===ti.status&&ti.statusText&&"Unknown Error"===ti.statusText&&(ti={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===ti.status&&"Login"!==zt)this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,ui.uO)({payload:si}));const vi=this.commonService.extractErrorMessage(ti);this.store.dispatch((0,ui.qR)({payload:{data:{type:"ERROR",alertTitle:Pt,message:{code:ti.status?ti.status:"Unknown Error",message:vi,URL:mi},component:tn.H}}})),this.store.dispatch((0,ui.qi)({payload:{action:zt,status:S.Bn.ERROR,statusCode:ti.status?ti.status.toString():"",message:vi,URL:mi}}))}}ngOnDestroy(){this.unSubs.forEach(zt=>{zt.next(null),zt.complete()})}}return Kt.\u0275fac=function(zt){return new(zt||Kt)(L.LFG(t.eX),L.LFG(Mt.eN),L.LFG(xt.yh),L.LFG(ne.mQ),L.LFG(Vt.d),L.LFG(Mi.m),L.LFG(de.v),L.LFG(Ei.D),L.LFG(I.uw),L.LFG(X.ux),L.LFG(en.F0))},Kt.\u0275prov=L.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})()},8377:(Fe,Y,p)=>{"use strict";p.d(Y,{R4:()=>b,Sr:()=>N,Yj:()=>a,dT:()=>M,gW:()=>h,ul:()=>d});var t=p(5620);const e=(0,t.ZF)("root"),M=((0,t.P1)(e,A=>A.apiURL),(0,t.P1)(e,A=>A.selNode)),a=(0,t.P1)(e,A=>A.appConfig),b=(0,t.P1)(e,A=>A.nodeData),d=(0,t.P1)(e,A=>A.apisCallStatus.Login),N=(0,t.P1)(e,A=>A.apisCallStatus.IsAuthorized),h=(0,t.P1)(e,A=>({nodeDate:A.nodeData,selNode:A.selNode}))},2340:(Fe,Y,p)=>{"use strict";p.d(Y,{NZ:()=>e,T5:()=>t,q4:()=>f});const t="./api",e={production:!0,isDebugMode:!1,AUTHENTICATE_API:t+"/authenticate",CONF_API:t+"/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",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},f="0.12.4-beta"},4886:(Fe,Y,p)=>{"use strict";var t=p(2313),e=p(5e3),f=p(6360),M=p(8138),a=p(5113),b=p(5620),d=p(6642),N=p(9565),h=p(7579),A=p(6451),D=p(4968),w=p(457),S=p(4986),I=p(2805);function L(K=0,Ve=S.z){return K<0&&(K=0),(0,I.H)(K,K,Ve)}var U=p(9646),Z=p(727),j=p(4482),ne=p(5403),X=p(8737),de=p(3269),ee=p(9672),ce=p(9300),J=p(8505),ge=p(3900),y=p(2722),i=p(8746),r=p(1884),u=p(4004);class c{}let C=(()=>{class K{constructor(H,_e){this._ngZone=_e,this.timerStart$=new h.x,this.idleDetected$=new h.x,this.timeout$=new h.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,H&&this.setConfig(H)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,A.T)((0,D.R)(window,"mousemove"),(0,D.R)(window,"resize"),(0,D.R)(document,"keydown"))),this.idle$=(0,w.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function te(K,...Ve){var H,_e;const pt=null!==(H=(0,de.yG)(Ve))&&void 0!==H?H:S.z,Ci=null!==(_e=Ve[0])&&void 0!==_e?_e:null,xn=Ve[1]||1/0;return(0,j.e)((_r,Un)=>{let ea=[],hs=!1;const ar=Rs=>{const{buffer:W1,subs:ho}=Rs;ho.unsubscribe(),(0,X.P)(ea,Rs),Un.next(W1),hs&&sa()},sa=()=>{if(ea){const Rs=new Z.w0;Un.add(Rs);const ho={buffer:[],subs:Rs};ea.push(ho),(0,ee.f)(Rs,pt,()=>ar(ho),K)}};null!==Ci&&Ci>=0?(0,ee.f)(Un,pt,sa,Ci,!0):hs=!0,sa();const vs=(0,ne.x)(Un,Rs=>{const W1=ea.slice();for(const ho of W1){const{buffer:s3}=ho;s3.push(Rs),xn<=s3.length&&ar(ho)}},()=>{for(;null==ea?void 0:ea.length;)Un.next(ea.shift().buffer);null==vs||vs.unsubscribe(),Un.complete(),Un.unsubscribe()},void 0,()=>ea=null);_r.subscribe(vs)})}(this.idleSensitivityMillisec),(0,ce.h)(H=>!H.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,J.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,ge.w)(()=>this._ngZone.runOutsideAngular(()=>L(1e3).pipe((0,y.R)((0,A.T)(this.activityEvents$,(0,I.H)(this.idleMillisec).pipe((0,J.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,i.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,ge.w)(H=>H?this.timer$:(0,U.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,ce.h)(H=>!!H),(0,J.b)(()=>this.isTimeout=!0),(0,u.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(H){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(H):console.error("Call stopWatching() before set config values")}setConfig(H){H.idle&&(this.idleMillisec=1e3*H.idle),H.ping&&(this.pingMillisec=1e3*H.ping),H.idleSensitivity&&(this.idleSensitivityMillisec=1e3*H.idleSensitivity),H.timeout&&(this.timeout=H.timeout)}setCustomActivityEvents(H){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=H:console.error("Call stopWatching() before set custom activity events")}setupTimer(H){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,U.of)(()=>new Date).pipe((0,u.U)(_e=>_e()),(0,ge.w)(_e=>L(1e3).pipe((0,u.U)(()=>Math.round(((new Date).valueOf()-_e.valueOf())/1e3)),(0,J.b)(pt=>{pt>=H&&this.timeout$.next(!0)}))))})}setupPing(H){this.ping$=L(H).pipe((0,ce.h)(()=>!this.isTimeout))}}return K.\u0275fac=function(H){return new(H||K)(e.LFG(c,8),e.LFG(e.R0b))},K.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),E=(()=>{class K{static forRoot(H){return{ngModule:K,providers:[{provide:c,useValue:H}]}}}return K.\u0275fac=function(H){return new(H||K)},K.\u0275mod=e.oAB({type:K}),K.\u0275inj=e.cJS({imports:[[]]}),K})();var O=p(1402),_=p(801),n=p(8377),v=p(7093),B=p(9444),P=p(9224),z=p(3251),se=p(9808);const fe=function(){return{initial:!1}};function xe(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[1].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[1].link),e.Q6J("active",H.activeLink===H.links[1].link)("state",e.DdM(4,fe)),e.xp6(1),e.Oqu(H.links[1].name)}}function Re(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[2].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[2].link),e.Q6J("active",H.activeLink===H.links[2].link),e.xp6(1),e.Oqu(H.links[2].name)}}let we=(()=>{class K{constructor(H,_e){this.store=H,this.router=_e,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 h.x,new h.x,new h.x]}ngOnInit(){const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof O.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(n.Yj).pipe((0,y.R)(this.unSubs[1])).subscribe(_e=>{this.appConfig=_e}),this.store.select(n.dT).pipe((0,y.R)(this.unSubs[2])).subscribe(_e=>{this.showBitcoind=!1,this.selNode=_e,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(O.F0))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Settings"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return _e.activeLink=_e.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,xe,2,5,"div",7),e.YNc(11,Re,2,3,"div",8),e.qZA(),e.TgZ(12,"div",9),e._UZ(13,"router-outlet"),e.qZA()()()()),2&H&&(e.xp6(1),e.Q6J("icon",_e.faUserCog),e.xp6(7),e.s9C("routerLink",_e.links[0].link),e.Q6J("active",_e.activeLink===_e.links[0].link),e.xp6(1),e.Oqu(_e.links[0].name),e.xp6(1),e.Q6J("ngIf",!+_e.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",_e.showBitcoind))},directives:[v.xw,v.Wh,B.BN,P.a8,P.dn,z.BU,z.Nj,O.rH,se.O5,v.yH,O.lC],styles:[""]}),K})();var Q=p(7731),Ge=p(7861),ve=p(5043),F=p(8129),Ae=p(3075),lt=p(7322),Ie=p(4107),De=p(3390),oe=p(508),Te=p(7423);function ye(K,Ve){if(1&K&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.Q6J("value",H.index),e.xp6(1),e.AsE(" ",H.lnNode," (",H.lnImplementation,") ")}}function W(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw().appConfig.defaultNodeIndex=pt}),e.YNc(14,ye,2,3,"mat-option",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"div",10)(17,"button",14),e.NdJ("click",function(){return e.CHM(H),e.oxw().onResetSettings()}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",15),e.NdJ("click",function(){return e.CHM(H),e.oxw().onUpdateSettings()}),e._uU(20,"Update"),e.qZA()()()()()}if(2&K){const H=e.oxw();e.xp6(3),e.Q6J("icon",H.faWindowRestore),e.xp6(5),e.Q6J("icon",H.faInfoCircle),e.xp6(5),e.Q6J("ngModel",H.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",H.appConfig.nodes)}}let $=(()=>{class K{constructor(H,_e){this.logger=H,this.store=_e,this.faInfoCircle=_.sqG,this.faWindowRestore=_.wyP,this.faPlus=_.r8p,this.previousDefaultNode=0,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.Yj).pipe((0,y.R)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(H)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Ge.zQ)({payload:{uiMessage:Q.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:+this.appConfig.nodes[0].index}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0),e.YNc(1,W,21,4,"form",1),e.qZA()),2&H&&(e.xp6(1),e.Q6J("ngIf",_e.appConfig.nodes&&_e.appConfig.nodes.length&&_e.appConfig.nodes.length>0))},directives:[v.xw,v.yH,F.$V,se.O5,Ae._Y,Ae.JL,Ae.F,v.Wh,B.BN,lt.KE,Ie.gD,De.h,Ae.JJ,Ae.On,se.sg,oe.ey,Te.lW],styles:[""]}),K})();var ue=p(8012),Ce=p(5698),Le=p(8966),ct=p(5768),ut=p(3093),Dt=p(7261),di=p(5615),Yt=p(7531),Gt=p(159),ui=p(6895);const xt=["stepper"];function Nt(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw();e.Oqu(H.passwordFormLabel)}}function gt(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function et(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.Oqu(H.secretFormLabel)}}function vt(K,Ve){if(1&K&&e._UZ(0,"qr-code",32),2&K){const H=e.oxw(2);e.Q6J("value",H.otpauth)("size",180)("errorCorrectionLevel","L")}}function $t(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function jt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",21),e.YNc(2,et,1,1,"ng-template",22),e.TgZ(3,"div",23),e.YNc(4,vt,1,3,"qr-code",24),e.qZA(),e.TgZ(5,"div",25),e._UZ(6,"fa-icon",26),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",27)(10,"mat-form-field",1),e._UZ(11,"input",28),e.TgZ(12,"fa-icon",29),e.NdJ("copied",function(pt){return e.CHM(H),e.oxw().onCopySecret(pt)}),e.qZA(),e.YNc(13,$t,2,0,"mat-error",14),e.qZA()(),e.TgZ(14,"div",30)(15,"button",31),e._uU(16,"Next"),e.qZA()()()()}if(2&K){const H=e.oxw();e.Q6J("stepControl",H.secretFormGroup)("editable",H.flgEditable),e.xp6(1),e.Q6J("formGroup",H.secretFormGroup),e.xp6(3),e.Q6J("ngIf",H.otpauth),e.xp6(2),e.Q6J("icon",H.faInfoCircle),e.xp6(6),e.Q6J("icon",H.faCopy)("payload",null==H.secretFormGroup||null==H.secretFormGroup.controls||null==H.secretFormGroup.controls.secret?null:H.secretFormGroup.controls.secret.value),e.xp6(1),e.Q6J("ngIf",null==H.secretFormGroup||null==H.secretFormGroup.controls||null==H.secretFormGroup.controls.secret||null==H.secretFormGroup.controls.secret.errors?null:H.secretFormGroup.controls.secret.errors.required)}}function Pe(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.Oqu(H.tokenFormLabel)}}function Oe(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function le(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function be(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),e._UZ(3,"input",36),e.YNc(4,Oe,2,0,"mat-error",14),e.YNc(5,le,2,0,"mat-error",14),e.qZA()(),e.TgZ(6,"div",30)(7,"button",37),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onVerifyToken()}),e._uU(8),e.qZA()()()}if(2&K){const H=e.oxw(2);e.xp6(4),e.Q6J("ngIf",null==H.tokenFormGroup||null==H.tokenFormGroup.controls||null==H.tokenFormGroup.controls.token||null==H.tokenFormGroup.controls.token.errors?null:H.tokenFormGroup.controls.token.errors.required),e.xp6(1),e.Q6J("ngIf",null==H.tokenFormGroup||null==H.tokenFormGroup.controls||null==H.tokenFormGroup.controls.token||null==H.tokenFormGroup.controls.token.errors?null:H.tokenFormGroup.controls.token.errors.notValid),e.xp6(3),e.Oqu(null!=H.tokenFormGroup&&null!=H.tokenFormGroup.controls&&null!=H.tokenFormGroup.controls.token&&null!=H.tokenFormGroup.controls.token.errors&&H.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ht(K,Ve){1&K&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function ft(K,Ve){if(1&K&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Pe,1,1,"ng-template",12),e.YNc(3,be,9,3,"div",35),e.YNc(4,ht,3,0,"div",14),e.qZA()()),2&K){const H=e.oxw();e.Q6J("stepControl",H.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",H.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!H.flgValidated||!H.isTokenValid),e.xp6(1),e.Q6J("ngIf",H.flgValidated&&H.isTokenValid)}}function Ht(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.Oqu(H.disableFormLabel)}}function it(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",7)(1,"div",38),e._UZ(2,"fa-icon",26),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",30)(6,"button",37),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onVerifyToken()}),e._uU(7,"Disable"),e.qZA()()()}if(2&K){const H=e.oxw(2);e.xp6(2),e.Q6J("icon",H.faExclamationTriangle)}}function Ne(K,Ve){1&K&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function tt(K,Ve){if(1&K&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Ht,1,1,"ng-template",12),e.YNc(3,it,8,1,"div",35),e.YNc(4,Ne,3,0,"div",14),e.qZA()()),2&K){const H=e.oxw();e.Q6J("stepControl",H.disableFormGroup),e.xp6(1),e.Q6J("formGroup",H.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!H.flgValidated||!H.isTokenValid),e.xp6(1),e.Q6J("ngIf",H.flgValidated&&H.isTokenValid)}}let Je=(()=>{class K{constructor(H,_e,pt,Ci,xn,_r){this.dialogRef=H,this.data=_e,this.store=pt,this.formBuilder=Ci,this.rtlEffects=xn,this.snackBar=_r,this.faExclamationTriangle=_.eHv,this.faCopy=_.kZ_,this.faInfoCircle=_.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",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:["",[Ae.kI.required]],password:["",[Ae.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Ae.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Ae.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new h.x,new h.x]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},Ae.kI.required]})}generateSecret(){const H=ct.authenticator.generateSecret();return this.otpauth=ct.authenticator.keyuri("","Ride The Lightning (RTL)",H),H}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Ge.QO)({payload:ue(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Ce.q)(1)).subscribe(H=>{"ERROR"!==H?(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(H){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch((0,Ge.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=ct.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,Ge.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(H){switch(H.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}H.selectedIndex{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(Le.so),e.Y36(Le.WI),e.Y36(b.yh),e.Y36(Ae.qu),e.Y36(ut.V),e.Y36(Dt.ux))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-two-factor-auth"]],viewQuery:function(H,_e){if(1&H&&e.Gf(xt,5),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.stepper=pt.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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Setup Two Factor Authentication"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(Ci){return _e.stepSelectionChanged(Ci)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,Nt,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",1),e._UZ(17,"input",13),e.YNc(18,gt,2,0,"mat-error",14),e.qZA()(),e.TgZ(19,"div",15)(20,"button",16),e.NdJ("click",function(){return _e.onAuthenticate()}),e._uU(21,"Confirm"),e.qZA()()()(),e.YNc(22,jt,17,8,"mat-step",17),e.YNc(23,ft,5,4,"mat-step",18),e.YNc(24,tt,5,4,"mat-step",18),e.qZA(),e.TgZ(25,"div",19)(26,"button",20),e._uU(27),e.qZA()()()()()()),2&H&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",_e.passwordFormGroup)("editable",_e.flgEditable),e.xp6(1),e.Q6J("formGroup",_e.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==_e.passwordFormGroup||null==_e.passwordFormGroup.controls||null==_e.passwordFormGroup.controls.password||null==_e.passwordFormGroup.controls.password.errors?null:_e.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!_e.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!_e.showDisableStepper),e.xp6(1),e.Q6J("ngIf",_e.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(_e.flgValidated&&_e.isTokenValid?"Close":"Cancel"))},directives:[v.xw,v.yH,P.dk,v.Wh,Te.lW,Le.ZT,P.dn,di.Vq,di.C0,Ae._Y,Ae.JL,Ae.sg,di.VY,lt.KE,Yt.Nt,Ae.Fj,De.h,Ae.JJ,Ae.u,Ae.Q7,se.O5,lt.TO,Gt.uU,B.BN,lt.R9,ui.y,di.Ic],styles:[""]}),K})();var Se=p(5986),Ue=p(4834);const rt=["authForm"];function at(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function yt(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.errorMsg)}}function gi(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.errorConfirmMsg)}}function Qt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"form",10,11)(2,"div",12),e._UZ(3,"fa-icon",4),e.TgZ(4,"span",5),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"input",13),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw().currPassword=pt}),e.qZA(),e.YNc(8,at,2,0,"mat-error",14),e.qZA(),e.TgZ(9,"mat-form-field")(10,"input",15),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw().newPassword=pt}),e.qZA(),e.YNc(11,yt,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field")(13,"input",16),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw().confirmPassword=pt}),e.qZA(),e.YNc(14,gi,2,1,"mat-error",14),e.qZA(),e.TgZ(15,"div",17)(16,"button",18),e.NdJ("click",function(){return e.CHM(H),e.oxw().onResetPassword()}),e._uU(17,"Reset"),e.qZA(),e.TgZ(18,"button",19),e.NdJ("click",function(){return e.CHM(H),e.oxw().onChangePassword()}),e._uU(19,"Change Password"),e.qZA()(),e.TgZ(20,"div",20),e._UZ(21,"mat-divider",21),e.qZA()()}if(2&K){const H=e.oxw();e.xp6(3),e.Q6J("icon",H.faLock),e.xp6(4),e.Q6J("ngModel",H.currPassword),e.xp6(1),e.Q6J("ngIf",!H.currPassword),e.xp6(2),e.Q6J("ngModel",H.newPassword),e.xp6(1),e.Q6J("ngIf",H.matchOldAndNewPasswords()),e.xp6(2),e.Q6J("ngModel",H.confirmPassword),e.xp6(1),e.Q6J("ngIf",H.matchNewPasswords()),e.xp6(7),e.Q6J("inset",!0)}}let Jt=(()=>{class K{constructor(H,_e,pt,Ci,xn){this.logger=H,this.store=_e,this.actions=pt,this.router=Ci,this.sessionService=xn,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 h.x,new h.x,new h.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(n.Yj).pipe((0,y.R)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.logger.info(this.appConfig)}),this.store.select(n.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(H=>{this.selNode=H}),this.actions.pipe((0,y.R)(this.unSubs[2]),(0,ce.h)(H=>H.type===Q.pg.RESET_PASSWORD_RES)).subscribe(H=>{if(Q.kO.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation.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||Q.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Ge.c0)({payload:{currPassword:ue(this.currPassword).toString(),newPassword:ue(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let H=!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.",H=!0):Q.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=Q.kO.reduce((_e,pt,Ci)=>Ci{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh),e.Y36(d.eX),e.Y36(O.F0),e.Y36(Se.m))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-auth-settings"]],viewQuery:function(H,_e){if(1&H&&e.Gf(rt,5),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.form=pt.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(H,_e){1&H&&(e.TgZ(0,"div",0),e.YNc(1,Qt,22,8,"form",1),e.TgZ(2,"div",2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Two Factor Authentication"),e.qZA()(),e.TgZ(7,"div",6),e._UZ(8,"fa-icon",7),e.TgZ(9,"span"),e._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return _e.on2FAuth()}),e._uU(13),e.qZA()()()()),2&H&&(e.xp6(1),e.Q6J("ngIf",null==_e.appConfig?null:_e.appConfig.allowPasswordUpdate),e.xp6(3),e.Q6J("icon",_e.faUserClock),e.xp6(4),e.Q6J("icon",_e.faInfoCircle),e.xp6(5),e.Oqu(_e.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[v.xw,v.yH,v.Wh,se.O5,Ae._Y,Ae.JL,Ae.F,B.BN,lt.KE,Yt.Nt,Ae.Fj,De.h,Ae.Q7,Ae.JJ,Ae.On,lt.TO,Te.lW,Ue.d],styles:[""]}),K})();var Xi=p(4623);function fi(K,Ve){1&K&&e._UZ(0,"mat-divider",7)}function ai(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,fi,1,0,"mat-divider",6),e.qZA()),2&K){const H=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,H.configData)),e.xp6(2),e.Q6J("ngIf",""!==H.configData)}}function tn(K,Ve){if(1&K&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H)}}function Wi(K,Ve){if(1&K&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H)}}function Gi(K,Ve){1&K&&e._UZ(0,"mat-divider",15),2&K&&e.Q6J("inset",!0)}function Yi(K,Ve){if(1&K&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,tn,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Wi,2,1,"h4",12),e.qZA(),e.YNc(5,Gi,1,1,"mat-divider",13),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(2),e.Q6J("ngIf",H.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",H.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",H.indexOf("[")<0)}}function ze(K,Ve){if(1&K&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,Yi,6,3,"mat-list-item",9),e.qZA()()),2&K){const H=e.oxw();e.xp6(2),e.Q6J("ngForOf",H.configData)}}let Lt=(()=>{class K{constructor(H,_e,pt){this.store=H,this.rtlEffects=_e,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=_.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ce.h)(H=>H instanceof O.Av)).subscribe({next:H=>{this.selectedNodeType=H.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Ge.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,y.R)(this.unSubs[1])).subscribe(H=>{const _e=H.data;this.fileFormat=H.format,this.configData=""===_e||!_e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==_e&&_e&&"JSON"===this.fileFormat?_e:"":_e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(ut.V),e.Y36(O.F0))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,ai,5,4,"div",2),e.YNc(3,ze,3,1,"div",3),e.qZA()()),2&H&&(e.xp6(2),e.Q6J("ngIf",""!==_e.configData&&"JSON"===_e.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==_e.configData&&("INI"===_e.fileFormat||"HOCON"===_e.fileFormat)))},directives:[v.xw,v.yH,v.Wh,se.O5,Ue.d,Xi.i$,se.sg,Xi.Tg,P.$j],pipes:[se.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})();const pe=function(){return{initial:!1}};function je(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[1].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[1].link),e.Q6J("active",H.activeLink===H.links[1].link)("state",e.DdM(4,pe)),e.xp6(1),e.Oqu(H.links[1].name)}}function Ct(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[2].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[2].link),e.Q6J("active",H.activeLink===H.links[2].link),e.xp6(1),e.Oqu(H.links[2].name)}}function ie(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.activeLink=pt.links[3].link}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw();e.s9C("routerLink",H.links[3].link),e.Q6J("active",H.activeLink===H.links[3].link),e.xp6(1),e.Oqu(H.links[3].name)}}let qe=(()=>{class K{constructor(H,_e){this.store=H,this.router=_e,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 h.x,new h.x,new h.x]}ngOnInit(){const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof O.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(_e=>{switch(this.showLnConfig=!1,this.selNode=_e,this.selNode.lnImplementation.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(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(O.F0))},K.\u0275cmp=e.Xpm({type:K,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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(H,_e){1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Node Config"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return _e.activeLink=_e.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,je,2,5,"div",7),e.YNc(11,Ct,2,3,"div",8),e.YNc(12,ie,2,3,"div",8),e.qZA(),e.TgZ(13,"div",9),e._UZ(14,"router-outlet"),e.qZA()()()()),2&H&&(e.xp6(1),e.Q6J("icon",_e.faTools),e.xp6(7),e.s9C("routerLink",_e.links[0].link),e.Q6J("active",_e.activeLink===_e.links[0].link),e.xp6(1),e.Oqu(_e.links[0].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==_e.selNode||null==_e.selNode.lnImplementation?null:_e.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==_e.selNode||null==_e.selNode.lnImplementation?null:_e.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",_e.showLnConfig))},directives:[v.xw,v.Wh,B.BN,P.a8,P.dn,z.BU,z.Nj,O.rH,se.O5,v.yH,O.lC],styles:[""]}),K})();function Mt(K,Ve){1&K&&e._UZ(0,"mat-divider",7)}function Vt(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,Mt,1,0,"mat-divider",6),e.qZA()),2&K){const H=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,H.configData)),e.xp6(2),e.Q6J("ngIf",""!==H.configData)}}function Mi(K,Ve){if(1&K&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H)}}function Ei(K,Ve){if(1&K&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H)}}function en(K,Ve){1&K&&e._UZ(0,"mat-divider",15),2&K&&e.Q6J("inset",!0)}function ji(K,Ve){if(1&K&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Mi,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Ei,2,1,"h4",12),e.qZA(),e.YNc(5,en,1,1,"mat-divider",13),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(2),e.Q6J("ngIf",H.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",H.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",H.indexOf("[")<0)}}function Kt(K,Ve){if(1&K&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,ji,6,3,"mat-list-item",9),e.qZA()()),2&K){const H=e.oxw();e.xp6(2),e.Q6J("ngForOf",H.configData)}}let Oi=(()=>{class K{constructor(H,_e,pt){this.store=H,this.rtlEffects=_e,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=_.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ce.h)(H=>H instanceof O.Av)).subscribe({next:H=>{this.selectedNodeType=H.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Ge.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,y.R)(this.unSubs[1])).subscribe(H=>{const _e=H.data;this.fileFormat=H.format,this.configData=""===_e||!_e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==_e&&_e&&"JSON"===this.fileFormat?_e:"":_e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(ut.V),e.Y36(O.F0))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Vt,5,4,"div",2),e.YNc(3,Kt,3,1,"div",3),e.qZA()()),2&H&&(e.xp6(2),e.Q6J("ngIf",""!==_e.configData&&"JSON"===_e.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==_e.configData&&("INI"===_e.fileFormat||"HOCON"===_e.fileFormat)))},directives:[v.xw,v.yH,v.Wh,se.O5,Ue.d,Xi.i$,se.sg,Xi.Tg,P.$j],pipes:[se.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})();var zt=p(2994),si=p(429),Pt=p(6523),mi=p(62),ti=p(2368),vi=p(9814),Bi=p(3322);function Fi(K,Ve){if(1&K&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.Q6J("value",H.id),e.xp6(1),e.hij(" ",H.id," ")}}function pn(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function Fn(K,Ve){if(1&K&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.Q6J("value",H)("checked",_e.selNode.settings.userPersona===H),e.xp6(1),e.hij(" ",e.lcZ(2,3,H)," ")}}const Dn=function(K){return{"mr-4":K}};function Ai(K,Ve){if(1&K&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.Q6J("value",H)("ngClass",e.VKq(3,Dn,_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM)),e.xp6(1),e.hij("",H.name," ")}}const Ri=function(K){return{skin:!0,"selected-color":K}};function cn(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw().changeThemeColor(Ci.id)}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&K){const H=Ve.$implicit,_e=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,H.id)),e.Q6J("ngClass",e.VKq(6,Ri,_e.selectedThemeColor===H.id)),e.xp6(2),e.hij(" ",H.name," ")}}let pr=(()=>{class K{constructor(H,_e,pt){this.logger=H,this.commonService=_e,this.store=pt,this.faExclamationTriangle=_.eHv,this.faMoneyBillAlt=_.co4,this.faPaintBrush=_.XsY,this.faInfoCircle=_.sqG,this.userPersonas=[Q.ol.OPERATOR,Q.ol.MERCHANT],this.currencyUnits=Q.Er,this.themeModes=Q.wZ.modes,this.themeColors=Q.wZ.themes,this.selectedThemeMode=Q.wZ.modes[0],this.selectedThemeColor=Q.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Q.cu,this.unSubs=[new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.selectedThemeMode=this.themeModes.find(_e=>this.selNode.settings.themeMode===_e.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(H)})}onCurrencyChange(H){this.selNode.settings.currencyUnits=[...Q.uA,H.value],this.store.dispatch((0,Pt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:H.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,si.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:H.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:H.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(H,_e){this.selNode.settings[H]=!this.selNode.settings[H]}changeThemeColor(H){this.selectedThemeColor=H,this.selNode.settings.themeColor=H}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,Ge.zQ)({payload:{uiMessage:Q.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,Pt.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,si.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 H=this.selNode.index;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(_e=>_e.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Ge.fk)({payload:{uiMessage:Q.m6.NO_SPINNER,prevLnNodeIndex:+H,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Balance Display"),e.qZA()(),e.TgZ(7,"div",6)(8,"div",7),e._UZ(9,"fa-icon",8),e.TgZ(10,"span"),e._uU(11,"Fiat conversion calls "),e.TgZ(12,"strong")(13,"a",9),e._uU(14,"Blockchain.com"),e.qZA()(),e._uU(15," API to get conversion rates."),e.qZA()(),e.TgZ(16,"div",10)(17,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(Ci){return _e.selNode.settings.fiatConversion=Ci})("change",function(Ci){return _e.selNode.settings.currencyUnit=Ci.checked?_e.selNode.settings.currencyUnit:null}),e._uU(18,"Enable Fiat Conversion"),e.qZA(),e.TgZ(19,"mat-form-field")(20,"mat-select",12,13),e.NdJ("ngModelChange",function(Ci){return _e.selNode.settings.currencyUnit=Ci})("selectionChange",function(Ci){return _e.onCurrencyChange(Ci)}),e.YNc(22,Fi,2,2,"mat-option",14),e.qZA(),e.YNc(23,pn,2,0,"mat-error",15),e.qZA()()(),e.TgZ(24,"div",16)(25,"div",17)(26,"div",18),e._UZ(27,"fa-icon",4),e.TgZ(28,"span",5),e._uU(29,"Customization"),e.qZA()(),e.TgZ(30,"div",6)(31,"div",19)(32,"div",20),e._UZ(33,"fa-icon",8),e.TgZ(34,"span"),e._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(36,"div",21)(37,"h4"),e._uU(38,"Dashboard Layout"),e.qZA(),e.TgZ(39,"mat-radio-group",22),e.NdJ("ngModelChange",function(Ci){return _e.selNode.settings.userPersona=Ci}),e.YNc(40,Fn,3,5,"mat-radio-button",23),e.qZA()()(),e._UZ(41,"mat-divider",24),e.TgZ(42,"div",25)(43,"div",26)(44,"h4"),e._uU(45,"Mode"),e.qZA(),e.TgZ(46,"mat-radio-group",27),e.NdJ("ngModelChange",function(Ci){return _e.selectedThemeMode=Ci})("change",function(){return _e.chooseThemeMode()}),e.YNc(47,Ai,2,5,"mat-radio-button",28),e.qZA()()(),e._UZ(48,"mat-divider",24),e.TgZ(49,"div",25)(50,"div",29)(51,"h4"),e._uU(52,"Themes"),e.qZA(),e.TgZ(53,"div",30),e.YNc(54,cn,4,8,"span",31),e.qZA()()()()()()(),e.TgZ(55,"div",32)(56,"button",33),e.NdJ("click",function(){return _e.onResetSettings()}),e._uU(57,"Reset"),e.qZA(),e.TgZ(58,"button",34),e.NdJ("click",function(){return _e.onUpdateSettings()}),e._uU(59,"Update"),e.qZA()()()),2&H&&(e.xp6(4),e.Q6J("icon",_e.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",_e.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",_e.selNode.settings.fiatConversion),e.xp6(3),e.Q6J("ngModel",_e.selNode.settings.currencyUnit)("disabled",!_e.selNode.settings.fiatConversion)("required",_e.selNode.settings.fiatConversion),e.xp6(2),e.Q6J("ngForOf",_e.currencyUnits),e.xp6(1),e.Q6J("ngIf",_e.selNode.settings.fiatConversion&&!_e.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",_e.faPaintBrush),e.xp6(6),e.Q6J("icon",_e.faInfoCircle),e.xp6(6),e.Q6J("ngModel",_e.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",_e.userPersonas),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Q6J("ngModel",_e.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",_e.themeModes),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Q6J("ngForOf",_e.themeColors))},directives:[v.xw,v.yH,F.$V,Ae._Y,Ae.JL,Ae.F,v.Wh,B.BN,ti.Rr,Ae.JJ,Ae.On,lt.KE,Ie.gD,De.h,Ae.Q7,se.sg,oe.ey,se.O5,lt.TO,vi.VQ,vi.U0,Ue.d,se.mk,Bi.oO,Te.lW],pipes:[se.rS,se.i8],styles:[""]}),K})();const Br=function(){return{initial:!1}};let Jn=(()=>{class K{constructor(H){this.router=H,this.faLayerGroup=_.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof O.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeLink=pt?pt.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(O.F0))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-services-settings"]],decls:14,vars:9,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","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"]],template:function(H,_e){1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Services"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return _e.activeLink=_e.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",7),e.NdJ("click",function(){return _e.activeLink=_e.links[1].link}),e._uU(11),e.qZA()(),e.TgZ(12,"div",8),e._UZ(13,"router-outlet"),e.qZA()()()()),2&H&&(e.xp6(1),e.Q6J("icon",_e.faLayerGroup),e.xp6(7),e.s9C("routerLink",_e.links[0].link),e.Q6J("active",_e.activeLink===_e.links[0].link),e.xp6(1),e.Oqu(_e.links[0].name),e.xp6(1),e.s9C("routerLink",_e.links[1].link),e.Q6J("active",_e.activeLink===_e.links[1].link)("state",e.DdM(8,Br)),e.xp6(1),e.Oqu(_e.links[1].name))},directives:[v.xw,v.Wh,B.BN,P.a8,P.dn,z.BU,z.Nj,O.rH,v.yH,O.lC],styles:[""]}),K})();const mr=["form"];function Pr(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function Nr(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function ca(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}let ga=(()=>{class K{constructor(H,_e){this.logger=H,this.store=_e,this.faInfoCircle=_.sqG,this.enableLoop=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableLoop=H.settings.swapServerUrl&&""!==H.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(H)})}onEnableServiceChanged(H){this.enableLoop=H.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,Ge.jS)({payload:{uiMessage:Q.m6.UPDATE_LOOP_SETTINGS,service:Q.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,Pt.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,si.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(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-loop-service-settings"]],viewQuery:function(H,_e){if(1&H&&e.Gf(mr,7),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.form=pt.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(H,_e){if(1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"loopd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Ci){return _e.enableLoop=Ci})("change",function(Ci){return _e.onEnableServiceChanged(Ci)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(Ci){return _e.selNode.settings.swapServerUrl=Ci}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),e.qZA(),e.YNc(22,Pr,2,0,"mat-error",11),e.YNc(23,Nr,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(Ci){return _e.selNode.authentication.swapMacaroonPath=Ci}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(28,ca,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return _e.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return _e.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&H){const pt=e.MAs(19);e.xp6(2),e.Q6J("icon",_e.faInfoCircle),e.xp6(13),e.Q6J("ngModel",_e.enableLoop),e.xp6(3),e.Q6J("ngModel",_e.selNode.settings.swapServerUrl)("required",_e.enableLoop)("disabled",!_e.enableLoop),e.xp6(4),e.Q6J("ngIf",!_e.selNode.settings.swapServerUrl&&_e.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&_e.enableLoop),e.xp6(2),e.Q6J("ngModel",_e.selNode.authentication.swapMacaroonPath)("required",_e.enableLoop)("disabled",!_e.enableLoop),e.xp6(3),e.Q6J("ngIf",!_e.selNode.authentication.swapMacaroonPath&&_e.enableLoop)}},directives:[v.xw,v.yH,F.$V,B.BN,Ae._Y,Ae.JL,Ae.F,v.Wh,ti.Rr,De.h,Ae.JJ,Ae.On,lt.KE,Yt.Nt,Ae.Fj,Ae.Q7,lt.bx,se.O5,lt.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})();const Ca=["form"];function Na(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function Ra(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function nr(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}let Qr=(()=>{class K{constructor(H,_e){this.logger=H,this.store=_e,this.faInfoCircle=_.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableBoltz=H.settings.boltzServerUrl&&""!==H.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(H)})}onEnableServiceChanged(H){this.enableBoltz=H.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,Ge.jS)({payload:{uiMessage:Q.m6.UPDATE_BOLTZ_SETTINGS,service:Q.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,Pt.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,si.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(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(H,_e){if(1&H&&e.Gf(Ca,7),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.form=pt.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(H,_e){if(1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"boltzd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Ci){return _e.enableBoltz=Ci})("change",function(Ci){return _e.onEnableServiceChanged(Ci)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(Ci){return _e.serverUrl=Ci}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),e.qZA(),e.YNc(22,Na,2,0,"mat-error",11),e.YNc(23,Ra,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(Ci){return _e.macaroonPath=Ci}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(28,nr,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return _e.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return _e.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&H){const pt=e.MAs(19);e.xp6(2),e.Q6J("icon",_e.faInfoCircle),e.xp6(13),e.Q6J("ngModel",_e.enableBoltz),e.xp6(3),e.Q6J("ngModel",_e.serverUrl)("required",_e.enableBoltz)("disabled",!_e.enableBoltz),e.xp6(4),e.Q6J("ngIf",(!_e.serverUrl||""===_e.serverUrl.trim())&&_e.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&_e.enableBoltz),e.xp6(2),e.Q6J("ngModel",_e.macaroonPath)("required",_e.enableBoltz)("disabled",!_e.enableBoltz),e.xp6(3),e.Q6J("ngIf",!_e.macaroonPath&&_e.enableBoltz)}},directives:[v.xw,v.yH,F.$V,B.BN,Ae._Y,Ae.JL,Ae.F,v.Wh,ti.Rr,De.h,Ae.JJ,Ae.On,lt.KE,Yt.Nt,Ae.Fj,Ae.Q7,lt.bx,se.O5,lt.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})(),da=(()=>{class K{constructor(H,_e){this.store=H,this.router=_e,this.faLayerGroup=_.Krp,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof O.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(_e=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.selNode=_e,this.selNode.lnImplementation.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[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(O.F0))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-services"]],decls:1,vars:0,template:function(H,_e){1&H&&e._UZ(0,"router-outlet")},directives:[O.lC],styles:[""]}),K})();var Ha=p(8213),Ur=p(9107),Gr=p(6087),lr=p(4847),fn=p(2075),qr=p(5899);function Xn(K,Ve){1&K&&e._UZ(0,"mat-progress-bar",34)}function Za(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Initiation Time "),e.qZA())}function Zr(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.ALo(2,"date"),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,H.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function Ea(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Last Update Time "),e.qZA())}function Jr(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.ALo(2,"date"),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,H.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Dr(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," ID "),e.qZA())}function Rr(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.id)}}function Wr(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," ID (Bytes) "),e.qZA())}function gr(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.id_bytes)}}function Ir(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," State "),e.qZA())}function ua(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.xp6(1),e.Oqu(_e.LoopStateEnum[H.state])}}function _a(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," HTLC Address "),e.qZA())}function va(K,Ve){if(1&K&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.htlc_address)}}function $n(K,Ve){1&K&&(e.TgZ(0,"th",37),e._uU(1," Amount (Sats) "),e.qZA())}function Ta(K,Ve){if(1&K&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.amt))}}function Ia(K,Ve){1&K&&(e.TgZ(0,"th",37),e._uU(1," Cost Server (Sats) "),e.qZA())}function Kn(K,Ve){if(1&K&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.cost_server))}}function ra(K,Ve){1&K&&(e.TgZ(0,"th",37),e._uU(1," Cost Offchain (Sats) "),e.qZA())}function Hr(K,Ve){if(1&K&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.cost_offchain))}}function Sr(K,Ve){1&K&&(e.TgZ(0,"th",37),e._uU(1," Cost Onchain (Sats) "),e.qZA())}function Fr(K,Ve){if(1&K&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==H?null:H.cost_onchain)," ")}}function ya(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"th",39)(1,"div",40)(2,"mat-select",41),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",42),e.NdJ("click",function(){return e.CHM(H),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function Fa(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"td",43)(1,"button",44),e.NdJ("click",function(pt){const xn=e.CHM(H).$implicit;return e.oxw().onSwapClick(xn,pt)}),e._uU(2,"View Info"),e.qZA()()}}function Wn(K,Ve){if(1&K&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.emptyTableMessage)}}function Xe(K,Ve){if(1&K&&(e.TgZ(0,"td",45),e.YNc(1,Wn,2,1,"p",46),e.qZA()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=H.listSwaps&&H.listSwaps.data)||(null==H.listSwaps||null==H.listSwaps.data?null:H.listSwaps.data.length)<1)}}const St=function(K){return{"display-none":K}};function Ke(K,Ve){if(1&K&&e._UZ(0,"tr",47),2&K){const H=e.oxw();e.Q6J("ngClass",e.VKq(1,St,(null==H.listSwaps?null:H.listSwaps.data)&&(null==H.listSwaps||null==H.listSwaps.data?null:H.listSwaps.data.length)>0))}}function Ot(K,Ve){1&K&&e._UZ(0,"tr",48)}function ri(K,Ve){1&K&&e._UZ(0,"tr",49)}const Ti=function(K){return{"overflow-auto error-border":K,"overflow-auto":!0}},ki=function(){return["no_swap"]};let an=(()=>{class K{constructor(H,_e,pt,Ci){this.logger=H,this.commonService=_e,this.store=pt,this.loopService=Ci,this.selectedSwapType=Q.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=Q.Fq,this.faHistory=_.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=Q.IV,this.pageSizeOptions=Q.TJ,this.screenSize="",this.screenSizeEnum=Q.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===Q.cu.XS||this.screenSize===Q.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===Q.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(H){this.swapCaption=this.selectedSwapType===Q.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(H,_e){this.loopService.getSwap(H.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,y.R)(this.unSubs[2])).subscribe(pt=>{this.store.dispatch((0,Ge.qR)({payload:{data:{type:Q.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:Q.Fq[pt.state],title:"Status",width:50,type:Q.Gi.STRING},{key:"amt",value:pt.amt,title:"Amount (Sats)",width:50,type:Q.Gi.NUMBER}],[{key:"initiation_time",value:pt.initiation_time/1e9,title:"Initiation Time",width:50,type:Q.Gi.DATE_TIME},{key:"last_update_time",value:pt.last_update_time/1e9,title:"Last Update Time",width:50,type:Q.Gi.DATE_TIME}],[{key:"cost_server",value:pt.cost_server,title:"Server Cost (Sats)",width:33,type:Q.Gi.NUMBER},{key:"cost_offchain",value:pt.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Q.Gi.NUMBER},{key:"cost_onchain",value:pt.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Q.Gi.NUMBER}],[{key:"id_bytes",value:pt.id_bytes,title:"ID",width:100,type:Q.Gi.STRING}],[{key:"htlc_address",value:pt.htlc_address,title:"HTLC Address",width:100,type:Q.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new fn.by([...H]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(_e,pt)=>_e[pt]&&isNaN(_e[pt])?_e[pt].toLocaleLowerCase():_e[pt]?+_e[pt]:null,this.listSwaps.filterPredicate=(_e,pt)=>JSON.stringify(_e).toLowerCase().includes(pt),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===Q.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(b.yh),e.Y36(Ur.W))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-swaps"]],viewQuery:function(H,_e){if(1&H&&(e.Gf(lr.YE,5),e.Gf(Gr.NW,5)),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.sort=pt.first),e.iGM(pt=e.CRH())&&(_e.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Gr.ye,useValue:(0,Q.pt)("Swaps")}]),e.TTD],decls:52,vars:17,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"mat-form-field",5)(7,"input",6),e.NdJ("keyup",function(){return _e.applyFilter()})("ngModelChange",function(Ci){return _e.selFilter=Ci}),e.qZA()()(),e.TgZ(8,"div",7)(9,"div",8),e.YNc(10,Xn,1,0,"mat-progress-bar",9),e.TgZ(11,"table",10,11),e.ynx(13,12),e.YNc(14,Za,2,0,"th",13),e.YNc(15,Zr,3,4,"td",14),e.BQk(),e.ynx(16,15),e.YNc(17,Ea,2,0,"th",13),e.YNc(18,Jr,3,4,"td",14),e.BQk(),e.ynx(19,16),e.YNc(20,Dr,2,0,"th",13),e.YNc(21,Rr,2,1,"td",14),e.BQk(),e.ynx(22,17),e.YNc(23,Wr,2,0,"th",13),e.YNc(24,gr,2,1,"td",14),e.BQk(),e.ynx(25,18),e.YNc(26,Ir,2,0,"th",13),e.YNc(27,ua,2,1,"td",14),e.BQk(),e.ynx(28,19),e.YNc(29,_a,2,0,"th",13),e.YNc(30,va,2,1,"td",14),e.BQk(),e.ynx(31,20),e.YNc(32,$n,2,0,"th",21),e.YNc(33,Ta,4,3,"td",14),e.BQk(),e.ynx(34,22),e.YNc(35,Ia,2,0,"th",21),e.YNc(36,Kn,4,3,"td",14),e.BQk(),e.ynx(37,23),e.YNc(38,ra,2,0,"th",21),e.YNc(39,Hr,4,3,"td",14),e.BQk(),e.ynx(40,24),e.YNc(41,Sr,2,0,"th",21),e.YNc(42,Fr,4,3,"td",14),e.BQk(),e.ynx(43,25),e.YNc(44,ya,6,0,"th",26),e.YNc(45,Fa,3,0,"td",27),e.BQk(),e.ynx(46,28),e.YNc(47,Xe,2,1,"td",29),e.BQk(),e.YNc(48,Ke,1,3,"tr",30),e.YNc(49,Ot,1,0,"tr",31),e.YNc(50,ri,1,0,"tr",32),e.qZA(),e._UZ(51,"mat-paginator",33),e.qZA()()()),2&H&&(e.xp6(3),e.Q6J("icon",_e.faHistory),e.xp6(2),e.AsE("",_e.swapCaption," History, ",_e.flgLoading,""),e.xp6(2),e.Q6J("ngModel",_e.selFilter),e.xp6(3),e.Q6J("ngIf",!0===_e.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",_e.listSwaps)("ngClass",e.VKq(14,Ti,"error"===_e.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(16,ki)),e.xp6(1),e.Q6J("matHeaderRowDef",_e.displayedColumns)("matHeaderRowDefSticky",_e.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",_e.displayedColumns),e.xp6(1),e.Q6J("pageSize",_e.pageSize)("pageSizeOptions",_e.pageSizeOptions)("showFirstLastButtons",_e.screenSize!==_e.screenSizeEnum.XS))},directives:[v.xw,v.yH,v.Wh,B.BN,lt.KE,Yt.Nt,Ae.Fj,Ae.JJ,Ae.On,F.$V,se.O5,qr.pW,fn.BZ,lr.YE,se.mk,Bi.oO,fn.w1,fn.fO,fn.ge,lr.nU,fn.Dz,fn.ev,Ie.gD,Ie.$L,oe.ey,Te.lW,fn.mD,fn.yh,fn.Ke,fn.Q2,fn.as,fn.XQ,fn.nj,fn.Gk,Gr.NW],pipes:[se.uU,se.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),K})();const It=function(K){return["../",K]};function hi(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw().onSelectedIndexChange(Ci)}),e._uU(1),e.qZA()}if(2&K){const H=Ve.$implicit,_e=e.oxw();e.Q6J("active",_e.activeTab.link===H.link)("routerLink",e.VKq(3,It,H.link)),e.xp6(1),e.Oqu(H.name)}}let mt=(()=>{class K{constructor(H,_e,pt){this.router=H,this.loopService=_e,this.store=pt,this.faInfinity=_.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Q.$I,this.selectedSwapType=Q.$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 h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.loopService.listSwaps();const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"loopin"===H.link?Q.$I.LOOP_IN:Q.$I.LOOP_OUT,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof O.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"loopin"===pt.link?Q.$I.LOOP_IN:Q.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,y.R)(this.unSubs[1])).subscribe({next:_e=>{this.flgLoading[0]=!1,this.storedSwaps=_e,this.filteredSwaps=this.storedSwaps.filter(pt=>pt.type===this.selectedSwapType)},error:_e=>{this.flgLoading[0]="error",this.emptyTableMessage=_e.message?_e.message:"No loop "+(this.selectedSwapType===Q.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){this.selectedSwapType="loopin"===H.link?Q.$I.LOOP_IN:Q.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(_e=>_e.type===this.selectedSwapType)}onLoop(H){H===Q.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,y.R)(this.unSubs[2])).subscribe({next:_e=>{this.store.dispatch((0,Ge.qR)({payload:{data:{minQuote:_e[0],maxQuote:_e[1],direction:H,component:Ha.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,y.R)(this.unSubs[3])).subscribe({next:_e=>{this.store.dispatch((0,Ge.qR)({payload:{data:{minQuote:_e[0],maxQuote:_e[1],direction:H,component:Ha.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(O.F0),e.Y36(Ur.W),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Loop"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,hi,2,5,"div",6),e.qZA(),e.TgZ(9,"div",7)(10,"button",8),e.NdJ("click",function(){return _e.onLoop(_e.selectedSwapType)}),e._uU(11),e.qZA()(),e._UZ(12,"rtl-swaps",9),e.qZA()()()),2&H&&(e.xp6(1),e.Q6J("icon",_e.faInfinity),e.xp6(7),e.Q6J("ngForOf",_e.links),e.xp6(3),e.hij("Start ",_e.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",_e.selectedSwapType)("swapsData",_e.filteredSwaps)("flgLoading",_e.flgLoading)("emptyTableMessage",_e.emptyTableMessage))},directives:[v.xw,v.Wh,B.BN,P.a8,P.dn,z.BU,se.sg,z.Nj,O.rH,Te.lW,an,v.yH],styles:[""]}),K})();var Zt=p(7772),Hi=p(1135),Zi=p(2843),Ln=p(262),Qe=p(2340),We=p(1786);let He=(()=>{class K{constructor(H,_e,pt,Ci){this.httpClient=H,this.logger=_e,this.store=pt,this.commonService=Ci,this.swapUrl="",this.swaps={},this.swapsChanged=new Hi.X({}),this.unSubs=[new h.x,new h.x,new h.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Ge.ac)({payload:Q.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,y.R)(this.unSubs[0])).subscribe({next:H=>{this.store.dispatch((0,Ge.uO)({payload:Q.m6.GET_BOLTZ_SWAPS})),this.swaps=H,this.swapsChanged.next(this.swaps)},error:H=>this.swapsChanged.error(this.handleErrorWithAlert(Q.m6.GET_BOLTZ_SWAPS,this.swapUrl,H))})}swapInfo(H){return this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/swapInfo/"+H,this.httpClient.get(this.swapUrl).pipe((0,Ln.K)(_e=>(0,U.of)(this.handleErrorWithAlert(Q.m6.NO_SPINNER,this.swapUrl,_e))))}serviceInfo(){return this.store.dispatch((0,Ge.ac)({payload:Q.m6.GET_SERVICE_INFO})),this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,y.R)(this.unSubs[1]),(0,u.U)(H=>(this.store.dispatch((0,Ge.uO)({payload:Q.m6.GET_SERVICE_INFO})),H)),(0,Ln.K)(H=>(0,U.of)(this.handleErrorWithAlert(Q.m6.GET_SERVICE_INFO,this.swapUrl,H))))}swapOut(H,_e){const pt={amount:H,address:_e};return this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,pt).pipe((0,Ln.K)(Ci=>this.handleErrorWithoutAlert("Swap Out for Address: "+_e,Q.m6.NO_SPINNER,Ci)))}swapIn(H){const _e={amount:H};return this.swapUrl=Qe.T5+Qe.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,_e).pipe((0,Ln.K)(pt=>this.handleErrorWithoutAlert("Swap In for Amount: "+H,Q.m6.NO_SPINNER,pt)))}handleErrorWithoutAlert(H,_e,pt){let Ci="";return this.logger.error("ERROR IN: "+H+"\n"+JSON.stringify(pt)),this.store.dispatch((0,Ge.uO)({payload:_e})),401===pt.status?(Ci="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ge.kS)())):503===pt.status?(Ci="Unable to Connect to Boltz Server.",this.store.dispatch((0,Ge.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:H},component:We.H}}}))):Ci=this.commonService.extractErrorMessage(pt),(0,Zi._)(()=>new Error(Ci))}handleErrorWithAlert(H,_e,pt){let Ci="";if(401===pt.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ge.kS)())),this.logger.error(pt),this.store.dispatch((0,Ge.uO)({payload:H})),401===pt.status)Ci="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ge.kS)());else if(503===pt.status)Ci="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Ge.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:_e},component:We.H}}}))},100);else{Ci=this.commonService.extractErrorMessage(pt);const xn=pt.error&&pt.error.error&&pt.error.error.code?pt.error.error.code:pt.error&&pt.error.code?pt.error.code:pt.code?pt.code:pt.status;setTimeout(()=>{this.store.dispatch((0,Ge.qR)({payload:{data:{type:Q.n_.ERROR,alertTitle:"ERROR",message:{code:xn,message:Ci,URL:_e},component:We.H}}}))},100)}return{message:Ci}}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.LFG(M.eN),e.LFG(ve.mQ),e.LFG(b.yh),e.LFG(mi.v))},K.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac}),K})();var bt=p(1125);let Si=(()=>{class K{constructor(){this.serviceInfo={},this.direction=Q.hc.SWAP_OUT,this.swapTypeEnum=Q.hc}}return K.\u0275fac=function(H){return new(H||K)},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e._uU(4,"Service Information"),e.qZA()()(),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e._uU(9,"Minimum Amount (Sats)"),e.qZA(),e.TgZ(10,"span",6),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",4)(14,"h4",5),e._uU(15,"Maximum Amount (Sats)"),e.qZA(),e.TgZ(16,"span",6),e._uU(17),e.ALo(18,"number"),e.qZA()()(),e._UZ(19,"mat-divider",7),e.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),e._uU(23,"Fee Percentage"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA()(),e.TgZ(27,"div",4)(28,"h4",5),e._uU(29,"Miner Fee (Sats)"),e.qZA(),e.TgZ(30,"span",6),e._uU(31),e.ALo(32,"number"),e.qZA()()()()()),2&H&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==_e.serviceInfo||null==_e.serviceInfo.limits?null:_e.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==_e.serviceInfo||null==_e.serviceInfo.limits?null:_e.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==_e.serviceInfo||null==_e.serviceInfo.fees?null:_e.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,_e.direction===_e.swapTypeEnum.SWAP_OUT?null==_e.serviceInfo||null==_e.serviceInfo.fees||null==_e.serviceInfo.fees.miner?null:_e.serviceInfo.fees.miner.reverse:null==_e.serviceInfo||null==_e.serviceInfo.fees||null==_e.serviceInfo.fees.miner?null:_e.serviceInfo.fees.miner.normal)))},directives:[bt.ib,v.yH,bt.yz,bt.yK,v.Wh,v.xw,Ue.d],pipes:[se.JJ],styles:[""]}),K})();var Qi=p(5245);function Yn(K,Ve){1&K&&e.GkF(0)}function Or(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&K){const H=e.oxw();e.xp6(2),e.Oqu(null!=H.swapStatus&&H.swapStatus.error?null==H.swapStatus?null:H.swapStatus.error:"Unknown Error.")}}function Wa(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Routing Fee (mSats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),e._uU(17,"Claim Transaction ID"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()(),e.TgZ(20,"div",7)(21,"h4",8),e._uU(22,"Lockup Address"),e.qZA(),e.TgZ(23,"span",5),e._uU(24),e.qZA()()()()),2&K){const H=e.oxw();e.xp6(6),e.Oqu(null==H.swapStatus?null:H.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==H.swapStatus?null:H.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==H.swapStatus?null:H.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==H.swapStatus?null:H.swapStatus.lockupAddress)}}function xa(K,Ve){if(1&K&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Expected Amount (Sats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),e._uU(17,"Address"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()()(),e._UZ(20,"mat-divider",9),e.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),e._uU(24,"BIP 21"),e.qZA(),e.TgZ(25,"span",5),e._uU(26),e.qZA()()()()),2&K){const H=e.oxw();e.xp6(6),e.Oqu(null==H.swapStatus?null:H.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==H.swapStatus?null:H.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==H.swapStatus?null:H.swapStatus.address),e.xp6(7),e.Oqu(null==H.swapStatus?null:H.swapStatus.bip21)}}let os=(()=>{class K{constructor(){this.swapStatus=null,this.direction=Q.hc.SWAP_OUT,this.swapTypeEnum=Q.hc}}return K.\u0275fac=function(H){return new(H||K)},K.\u0275cmp=e.Xpm({type:K,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(H,_e){if(1&H&&(e.YNc(0,Yn,1,0,"ng-container",0),e.YNc(1,Or,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Wa,25,6,"ng-template",null,2,e.W1O),e.YNc(5,xa,27,6,"ng-template",null,3,e.W1O)),2&H){const pt=e.MAs(2),Ci=e.MAs(4),xn=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=_e.swapStatus&&_e.swapStatus.error?pt:_e.direction===_e.swapTypeEnum.SWAP_OUT?Ci:xn)}},directives:[se.tP,v.xw,v.yH,v.Wh,Ue.d],pipes:[se.JJ],styles:[""]}),K})();var zi=p(113);function zn(K,Ve){1&K&&e.GkF(0)}const Ja=function(K,Ve){return{"small-svg":K,"large-svg":Ve}};function Cr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",7),e._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),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Reverse Submarine Swap explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function Gs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",21)(2,"g",22),e._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e._UZ(9,"path",29),e.TgZ(10,"defs")(11,"clipPath",30),e._UZ(12,"rect",31),e.qZA()()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function Xa(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",32),e._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.TgZ(9,"defs")(10,"pattern",40),e._UZ(11,"use",41),e.qZA(),e._UZ(12,"image",42),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Paying the Lightning Invoice"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function ha(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",43)(2,"g",22),e._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",30),e._UZ(10,"rect",49),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on-chain"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function xs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ja,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}let bs=(()=>{class K{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Q.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){if(1&H&&(e.YNc(0,zn,1,0,"ng-container",0),e.YNc(1,Cr,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Gs,19,5,"ng-template",null,2,e.W1O),e.YNc(5,Xa,19,5,"ng-template",null,3,e.W1O),e.YNc(7,ha,17,5,"ng-template",null,4,e.W1O),e.YNc(9,xs,13,5,"ng-template",null,5,e.W1O)),2&H){const pt=e.MAs(2),Ci=e.MAs(4),xn=e.MAs(6),_r=e.MAs(8),Un=e.MAs(10);e.Q6J("ngTemplateOutlet",1===_e.stepNumber?pt:2===_e.stepNumber?Ci:3===_e.stepNumber?xn:4===_e.stepNumber?_r:Un)}},directives:[se.tP,v.xw,v.yH,v.Wh,se.mk,Bi.oO,P.n5,P.$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:[zi.l]}}),K})();function Zs(K,Ve){1&K&&e.GkF(0)}const $a=function(K,Ve){return{"small-svg":K,"large-svg":Ve}};function Ms(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",7),e._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),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Submarine Swaps explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function gs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",21),e._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e.kcU(),e.TgZ(9,"div",18)(10,"mat-card-title"),e._uU(11,"Step 1: Deciding to Submarine Swap"),e.qZA()(),e.TgZ(12,"div",19)(13,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function Vr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",29),e._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.TgZ(9,"defs")(10,"pattern",37),e._UZ(11,"use",38),e.qZA(),e._UZ(12,"image",39),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Sending the on-chain funds"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function Va(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",40)(2,"g",41),e._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",47),e._UZ(10,"rect",48),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on Lightning"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}function _t(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(pt){return e.CHM(H),e.oxw().onSwipe(pt)}),e.O4$(),e.TgZ(1,"svg",49),e._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@sliderAnimation",H.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,$a,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS))}}let re=(()=>{class K{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Q.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){if(1&H&&(e.YNc(0,Zs,1,0,"ng-container",0),e.YNc(1,Ms,18,5,"ng-template",null,1,e.W1O),e.YNc(3,gs,15,5,"ng-template",null,2,e.W1O),e.YNc(5,Vr,19,5,"ng-template",null,3,e.W1O),e.YNc(7,Va,17,5,"ng-template",null,4,e.W1O),e.YNc(9,_t,13,5,"ng-template",null,5,e.W1O)),2&H){const pt=e.MAs(2),Ci=e.MAs(4),xn=e.MAs(6),_r=e.MAs(8),Un=e.MAs(10);e.Q6J("ngTemplateOutlet",1===_e.stepNumber?pt:2===_e.stepNumber?Ci:3===_e.stepNumber?xn:4===_e.stepNumber?_r:Un)}},directives:[se.tP,v.xw,v.yH,v.Wh,se.mk,Bi.oO,P.n5,P.$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:[zi.l]}}),K})();const he=["stepper"];function Ye(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.Oqu(H.inputFormLabel)}}function wt(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function Ft(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.minimal),".")}}function ii(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.maximal),".")}}function ni(K,Ve){1&K&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function yi(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onSwap()}),e._uU(1),e.qZA()}if(2&K){const H=e.oxw(2);e.xp6(1),e.hij("Initiate ",H.swapDirectionCaption,"")}}function Pi(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(3);e.Oqu(H.addressFormLabel)}}function nn(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function un(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,Pi,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(pt){return e.CHM(H),e.oxw(2).onAddressTypeChange(pt)}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46),e._UZ(10,"input",47),e.YNc(11,nn,2,0,"mat-error",24),e.qZA()(),e.TgZ(12,"div",25)(13,"button",48),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onSwap()}),e._uU(14),e.qZA()()()()}if(2&K){const H=e.oxw(2);e.Q6J("stepControl",H.addressFormGroup)("editable",H.flgEditable),e.xp6(1),e.Q6J("formGroup",H.addressFormGroup),e.xp6(9),e.Q6J("required","external"===H.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==H.addressFormGroup.controls.address.errors?null:H.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",H.swapDirectionCaption,"")}}function Sn(K,Ve){if(1&K&&e._uU(0),2&K){const H=e.oxw(2);e.hij("",H.swapDirectionCaption," Status")}}function Pn(K,Ve){if(1&K&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.swapStatus&&null!=H.swapStatus&&H.swapStatus.id?"check":"close")}}function yn(K,Ve){1&K&&e._UZ(0,"div")}function Tn(K,Ve){1&K&&e._UZ(0,"mat-progress-bar",50)}function qn(K,Ve){if(1&K&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.swapStatus&&H.swapStatus.error?H.swapDirectionCaption+" failed.":H.swapStatus&&H.swapStatus.id?H.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":H.swapDirectionCaption+" request placed successfully.")}}function xr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onRestart()}),e._uU(1,"Start Again"),e.qZA()}}function cr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){return e.CHM(H),e.oxw().showInfo()}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(H),e.oxw().onClose()}),e._uU(10,"X"),e.qZA()()(),e.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),e.NdJ("selectionChange",function(pt){return e.CHM(H),e.oxw().stepSelectionChanged(pt)}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,Ye,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21),e._UZ(22,"input",22),e.TgZ(23,"mat-hint"),e._uU(24),e.ALo(25,"number"),e.ALo(26,"number"),e.qZA(),e.TgZ(27,"span",23),e._uU(28,"Sats"),e.qZA(),e.YNc(29,wt,2,0,"mat-error",24),e.YNc(30,Ft,3,3,"mat-error",24),e.YNc(31,ii,3,3,"mat-error",24),e.qZA()(),e.TgZ(32,"div",25),e.YNc(33,ni,2,0,"button",26),e.YNc(34,yi,2,1,"button",27),e.qZA()()(),e.YNc(35,un,15,6,"mat-step",28),e.TgZ(36,"mat-step",29)(37,"form",16),e.YNc(38,Sn,1,1,"ng-template",17),e.TgZ(39,"div",30)(40,"mat-expansion-panel",31)(41,"mat-expansion-panel-header")(42,"mat-panel-title")(43,"span",32),e._uU(44),e.YNc(45,Pn,2,1,"mat-icon",33),e.qZA()()(),e.YNc(46,yn,1,0,"div",34),e.qZA(),e.YNc(47,Tn,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(48,qn,2,1,"h4",36),e.TgZ(49,"div",25),e.YNc(50,xr,2,0,"button",37),e.qZA()()()(),e.TgZ(51,"div",38)(52,"button",39),e._uU(53,"Close"),e.qZA()()()()()()}if(2&K){const H=e.oxw(),_e=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",H.screenSize===H.screenSizeEnum.XS||H.screenSize===H.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(H.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",H.screenSize===H.screenSizeEnum.XS||H.screenSize===H.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",H.inputFormGroup)("editable",H.flgEditable),e.xp6(1),e.Q6J("formGroup",H.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",H.serviceInfo)("direction",H.direction),e.xp6(3),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(25,30,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.minimal),"-",e.lcZ(26,32,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.maximal),""),e.xp6(5),e.Q6J("ngIf",null==H.inputFormGroup||null==H.inputFormGroup.controls||null==H.inputFormGroup.controls.amount||null==H.inputFormGroup.controls.amount.errors?null:H.inputFormGroup.controls.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==H.inputFormGroup||null==H.inputFormGroup.controls||null==H.inputFormGroup.controls.amount||null==H.inputFormGroup.controls.amount.errors?null:H.inputFormGroup.controls.amount.errors.min),e.xp6(1),e.Q6J("ngIf",null==H.inputFormGroup||null==H.inputFormGroup.controls||null==H.inputFormGroup.controls.amount||null==H.inputFormGroup.controls.amount.errors?null:H.inputFormGroup.controls.amount.errors.max),e.xp6(2),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",H.statusFormGroup),e.xp6(1),e.Q6J("formGroup",H.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!H.swapStatus),e.xp6(4),e.Oqu(H.swapStatus?H.swapStatus.id?H.swapDirectionCaption+" request details":H.swapDirectionCaption+" error details":"Waiting for "+H.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",H.swapStatus),e.xp6(1),e.Q6J("ngIf",!H.swapStatus)("ngIfElse",_e),e.xp6(1),e.Q6J("ngIf",!H.swapStatus),e.xp6(1),e.Q6J("ngIf",H.swapStatus),e.xp6(2),e.Q6J("ngIf",H.swapStatus&&(H.swapStatus.error||!H.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function Xr(K,Ve){if(1&K&&e._UZ(0,"rtl-boltz-swap-status",53),2&K){const H=e.oxw();e.Q6J("swapStatus",H.swapStatus)("direction",H.direction)}}function Yr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(pt){return e.CHM(H),e.oxw(2).stepNumber=pt}),e.qZA()}if(2&K){const H=e.oxw(2);e.Q6J("stepNumber",H.stepNumber)("animationDirection",H.animationDirection)}}function dr(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(pt){return e.CHM(H),e.oxw(2).stepNumber=pt}),e.qZA()}if(2&K){const H=e.oxw(2);e.Q6J("stepNumber",H.stepNumber)("animationDirection",H.animationDirection)}}const zr=function(K,Ve){return{"dot-primary":K,"dot-primary-lighter":Ve}};function Bn(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw(2).onStepChanged(Ci)}),e._UZ(1,"p",72),e.qZA()}if(2&K){const H=Ve.$implicit,_e=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,zr,_e.stepNumber===H,_e.stepNumber!==H))}}function ur(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onReadMore()}),e._uU(1,"Read More"),e.qZA()}}function za(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onStepChanged(4)}),e._uU(1,"Back"),e.qZA()}}function nt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function Et(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function At(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw(2);return pt.onStepChanged(pt.stepNumber-1)}),e._uU(1,"Back"),e.qZA()}}function Rt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw(2);return pt.onStepChanged(pt.stepNumber+1)}),e._uU(1,"Next"),e.qZA()}}const qt=function(){return[1,2,3,4,5]};function _i(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"div",57)(6,"button",58),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.flgShowInfo=!1,pt.stepNumber=1}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,Yr,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,dr,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,Bn,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,ur,2,0,"button",64),e.YNc(15,za,2,0,"button",65),e.YNc(16,nt,2,0,"button",66),e.YNc(17,Et,2,0,"button",67),e.YNc(18,At,2,0,"button",68),e.YNc(19,Rt,2,0,"button",69),e.qZA()()()}if(2&K){const H=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",H.direction===H.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,qt)),e.xp6(2),e.Q6J("ngIf",5===H.stepNumber),e.xp6(1),e.Q6J("ngIf",5===H.stepNumber),e.xp6(1),e.Q6J("ngIf",5===H.stepNumber),e.xp6(1),e.Q6J("ngIf",H.stepNumber<5),e.xp6(1),e.Q6J("ngIf",H.stepNumber>1&&H.stepNumber<5),e.xp6(1),e.Q6J("ngIf",H.stepNumber<5)}}let ei=(()=>{class K{constructor(H,_e,pt,Ci,xn,_r,Un,ea,hs){this.dialogRef=H,this.data=_e,this.store=pt,this.boltzService=Ci,this.formBuilder=xn,this.decimalPipe=_r,this.logger=Un,this.router=ea,this.commonService=hs,this.faInfoCircle=_.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Q.hc,this.direction=Q.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=Q.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===Q.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[Ae.kI.required,Ae.kI.min(this.serviceInfo.limits.minimal),Ae.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[Ae.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===Q.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Q.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[2])).subscribe(H=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(H){"external"===H.value?(this.addressFormGroup.controls.address.setValidators([Ae.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(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Q.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,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===Q.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,y.R)(this.unSubs[3])).subscribe({next:H=>{this.swapStatus=H,this.boltzService.listSwaps(),this.flgEditable=!0},error:H=>{this.swapStatus={error:H},this.flgEditable=!0,this.logger.error(H)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,y.R)(this.unSubs[4])).subscribe({next:_e=>{this.swapStatus=_e,this.boltzService.listSwaps(),this.flgEditable=!0},error:_e=>{this.swapStatus={error:_e},this.flgEditable=!0,this.logger.error(_e)}})}stepSelectionChanged(H){switch(H.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"}H.selectedIndex{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(Le.so),e.Y36(Le.WI),e.Y36(b.yh),e.Y36(He),e.Y36(Ae.qu),e.Y36(se.JJ),e.Y36(ve.mQ),e.Y36(O.F0),e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(H,_e){if(1&H&&e.Gf(he,5),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.stepper=pt.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(H,_e){1&H&&(e.YNc(0,cr,54,34,"div",0),e.YNc(1,Xr,1,2,"ng-template",null,1,e.W1O),e.YNc(3,_i,20,11,"div",2)),2&H&&(e.Q6J("ngIf",!_e.flgShowInfo),e.xp6(3),e.Q6J("ngIf",_e.flgShowInfo))},directives:[se.O5,v.xw,v.yH,v.Wh,P.dk,Te.lW,P.dn,di.Vq,di.C0,Ae._Y,Ae.JL,Ae.sg,di.VY,Si,lt.KE,Yt.Nt,Ae.wV,Ae.Fj,De.h,Ae.JJ,Ae.u,Ae.Q7,lt.bx,lt.R9,lt.TO,di.Ic,vi.VQ,vi.U0,bt.ib,bt.yz,bt.yK,Qi.Hw,qr.pW,Le.ZT,os,bs,re,se.sg,se.mk,Bi.oO],pipes:[se.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[Zt._]}}),K})();function pi(K,Ve){1&K&&e._UZ(0,"mat-progress-bar",32)}function Li(K,Ve){1&K&&(e.TgZ(0,"th",33),e._uU(1," Status "),e.qZA())}function qi(K,Ve){if(1&K&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.xp6(1),e.Oqu(_e.swapStateEnum[H.status])}}function $i(K,Ve){1&K&&(e.TgZ(0,"th",33),e._uU(1," Swap ID "),e.qZA())}function on(K,Ve){if(1&K&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.id)}}function bn(K,Ve){1&K&&(e.TgZ(0,"th",33),e._uU(1," Claim Address "),e.qZA())}function Qn(K,Ve){if(1&K&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.claimAddress)}}function kn(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Onchain Amount (Sats) "),e.qZA())}function aa(K,Ve){if(1&K&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.onchainAmount))}}function Aa(K,Ve){1&K&&(e.TgZ(0,"th",33),e._uU(1," Lockup Address "),e.qZA())}function tr(K,Ve){if(1&K&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.xp6(1),e.Oqu(H.lockupAddress)}}function br(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Expected Amount (Sats) "),e.qZA())}function hr(K,Ve){if(1&K&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.expectedAmount))}}function kr(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Timeout Block Height "),e.qZA())}function jr(K,Ve){if(1&K&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.timeoutBlockHeight))}}function Ya(K,Ve){1&K&&(e.TgZ(0,"th",35),e._uU(1," Amount (Sats) "),e.qZA())}function ls(K,Ve){if(1&K&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&K){const H=Ve.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,H.amt))}}function cs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",40),e.NdJ("click",function(){return e.CHM(H),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function Cs(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"td",41)(1,"button",42),e.NdJ("click",function(pt){const xn=e.CHM(H).$implicit;return e.oxw().onSwapClick(xn,pt)}),e._uU(2,"View Info"),e.qZA()()}}function Ws(K,Ve){if(1&K&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&K){const H=e.oxw(2);e.xp6(1),e.Oqu(H.emptyTableMessage)}}function Mo(K,Ve){if(1&K&&(e.TgZ(0,"td",43),e.YNc(1,Ws,2,1,"p",44),e.qZA()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=H.listSwaps&&H.listSwaps.data)||(null==H.listSwaps||null==H.listSwaps.data?null:H.listSwaps.data.length)<1)}}const Ys=function(K){return{"display-none":K}};function t1(K,Ve){if(1&K&&e._UZ(0,"tr",45),2&K){const H=e.oxw();e.Q6J("ngClass",e.VKq(1,Ys,(null==H.listSwaps?null:H.listSwaps.data)&&(null==H.listSwaps||null==H.listSwaps.data?null:H.listSwaps.data.length)>0))}}function Be(K,Ve){1&K&&e._UZ(0,"tr",46)}function Me(K,Ve){1&K&&e._UZ(0,"tr",47)}const me=function(K){return{"overflow-auto error-border":K,"overflow-auto":!0}},$e=function(){return["no_swap"]};let ot=(()=>{class K{constructor(H,_e,pt,Ci){this.logger=H,this.commonService=_e,this.store=pt,this.boltzService=Ci,this.selectedSwapType=Q.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=Q.Qw,this.faHistory=_.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=Q.IV,this.pageSizeOptions=Q.TJ,this.screenSize="",this.screenSizeEnum=Q.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(H){H.selectedSwapType&&!H.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Q.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===Q.cu.XS||this.screenSize===Q.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===Q.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===Q.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===Q.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===Q.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(H,_e){this.boltzService.swapInfo(H.id).pipe((0,y.R)(this.unSubs[1])).subscribe(pt=>{this.store.dispatch((0,Ge.qR)({payload:{data:{type:Q.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:Q.Qw[(pt=this.selectedSwapType===Q.hc.SWAP_IN?pt.swap:pt.reverseSwap).status],title:"Status",width:50,type:Q.Gi.STRING},{key:"id",value:pt.id,title:"ID",width:50,type:Q.Gi.STRING}],[{key:"amount",value:pt.onchainAmount?pt.onchainAmount:pt.expectedAmount?pt.expectedAmount:0,title:pt.onchainAmount?"Onchain Amount (Sats)":pt.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Q.Gi.NUMBER},{key:"timeoutBlockHeight",value:pt.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Q.Gi.NUMBER}],[{key:"address",value:pt.claimAddress?pt.claimAddress:pt.lockupAddress?pt.lockupAddress:"",title:pt.claimAddress?"Claim Address":pt.lockupAddress?"Lockup Address":"Address",width:100,type:Q.Gi.STRING}],[{key:"invoice",value:pt.invoice,title:"Invoice",width:100,type:Q.Gi.STRING}],[{key:"privateKey",value:pt.privateKey,title:"Private Key",width:100,type:Q.Gi.STRING}],[{key:"preimage",value:pt.preimage,title:"Preimage",width:100,type:Q.Gi.STRING}],[{key:"redeemScript",value:pt.redeemScript,title:"Redeem Script",width:100,type:Q.Gi.STRING}],[{key:"lockupTransactionId",value:pt.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Q.Gi.STRING},{key:"transactionId",value:pt.claimTransactionId?pt.claimTransactionId:pt.refundTransactionId?pt.refundTransactionId:"",title:pt.claimTransactionId?"Claim Transaction ID":pt.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Q.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new fn.by(H?[...H]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(_e,pt)=>_e[pt]&&isNaN(_e[pt])?_e[pt].toLocaleLowerCase():_e[pt]?+_e[pt]:null,this.listSwaps.filterPredicate=(_e,pt)=>JSON.stringify(_e).toLowerCase().includes(pt),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===Q.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(b.yh),e.Y36(He))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-boltz-swaps"]],viewQuery:function(H,_e){if(1&H&&(e.Gf(lr.YE,5),e.Gf(Gr.NW,5)),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.sort=pt.first),e.iGM(pt=e.CRH())&&(_e.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Gr.ye,useValue:(0,Q.pt)("Swaps")}]),e.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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"mat-form-field",5)(7,"input",6),e.NdJ("keyup",function(){return _e.applyFilter()})("ngModelChange",function(Ci){return _e.selFilter=Ci}),e.qZA()()(),e.TgZ(8,"div",7)(9,"div",8),e.YNc(10,pi,1,0,"mat-progress-bar",9),e.TgZ(11,"table",10,11),e.ynx(13,12),e.YNc(14,Li,2,0,"th",13),e.YNc(15,qi,2,1,"td",14),e.BQk(),e.ynx(16,15),e.YNc(17,$i,2,0,"th",13),e.YNc(18,on,2,1,"td",14),e.BQk(),e.ynx(19,16),e.YNc(20,bn,2,0,"th",13),e.YNc(21,Qn,2,1,"td",14),e.BQk(),e.ynx(22,17),e.YNc(23,kn,2,0,"th",18),e.YNc(24,aa,4,3,"td",14),e.BQk(),e.ynx(25,19),e.YNc(26,Aa,2,0,"th",13),e.YNc(27,tr,2,1,"td",14),e.BQk(),e.ynx(28,20),e.YNc(29,br,2,0,"th",18),e.YNc(30,hr,4,3,"td",14),e.BQk(),e.ynx(31,21),e.YNc(32,kr,2,0,"th",18),e.YNc(33,jr,4,3,"td",14),e.BQk(),e.ynx(34,22),e.YNc(35,Ya,2,0,"th",18),e.YNc(36,ls,4,3,"td",14),e.BQk(),e.ynx(37,23),e.YNc(38,cs,6,0,"th",24),e.YNc(39,Cs,3,0,"td",25),e.BQk(),e.ynx(40,26),e.YNc(41,Mo,2,1,"td",27),e.BQk(),e.YNc(42,t1,1,3,"tr",28),e.YNc(43,Be,1,0,"tr",29),e.YNc(44,Me,1,0,"tr",30),e.qZA(),e._UZ(45,"mat-paginator",31),e.qZA()()()),2&H&&(e.xp6(3),e.Q6J("icon",_e.faHistory),e.xp6(2),e.hij("",_e.swapCaption," History"),e.xp6(2),e.Q6J("ngModel",_e.selFilter),e.xp6(3),e.Q6J("ngIf",!0===_e.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",_e.listSwaps)("ngClass",e.VKq(13,me,"error"===_e.flgLoading[0])),e.xp6(31),e.Q6J("matFooterRowDef",e.DdM(15,$e)),e.xp6(1),e.Q6J("matHeaderRowDef",_e.displayedColumns)("matHeaderRowDefSticky",_e.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",_e.displayedColumns),e.xp6(1),e.Q6J("pageSize",_e.pageSize)("pageSizeOptions",_e.pageSizeOptions)("showFirstLastButtons",_e.screenSize!==_e.screenSizeEnum.XS))},directives:[v.xw,v.yH,v.Wh,B.BN,lt.KE,Yt.Nt,Ae.Fj,Ae.JJ,Ae.On,F.$V,se.O5,qr.pW,fn.BZ,lr.YE,se.mk,Bi.oO,fn.w1,fn.fO,fn.ge,lr.nU,fn.Dz,fn.ev,Ie.gD,Ie.$L,oe.ey,Te.lW,fn.mD,fn.yh,fn.Ke,fn.Q2,fn.as,fn.XQ,fn.nj,fn.Gk,Gr.NW],pipes:[se.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),K})();const kt=function(K){return["../",K]};function Xt(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw().onSelectedIndexChange(Ci)}),e._uU(1),e.qZA()}if(2&K){const H=Ve.$implicit,_e=e.oxw();e.Q6J("active",_e.activeTab.link===H.link)("routerLink",e.VKq(3,kt,H.link)),e.xp6(1),e.Oqu(H.name)}}let oi=(()=>{class K{constructor(H,_e,pt){this.router=H,this.store=_e,this.boltzService=pt,this.swapTypeEnum=Q.hc,this.selectedSwapType=Q.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 h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.boltzService.listSwaps();const H=this.links.find(_e=>this.router.url.includes(_e.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"swapin"===H.link?Q.hc.SWAP_IN:Q.hc.SWAP_OUT,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ce.h)(_e=>_e instanceof O.Av)).subscribe({next:_e=>{const pt=this.links.find(Ci=>_e.urlAfterRedirects.includes(Ci.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"swapin"===pt.link?Q.hc.SWAP_IN:Q.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,y.R)(this.unSubs[1])).subscribe({next:_e=>{this.swaps=_e,this.swapsData=this.selectedSwapType===Q.hc.SWAP_IN?_e.swaps:_e.reverseSwaps,this.flgLoading[0]=!1},error:_e=>{this.flgLoading[0]="error",this.emptyTableMessage=_e.message?_e.message:"No swap "+(this.selectedSwapType===Q.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){"swapin"===H.link?(this.selectedSwapType=Q.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=Q.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(H){this.boltzService.serviceInfo().pipe((0,y.R)(this.unSubs[2])).subscribe({next:_e=>{this.store.dispatch((0,Ge.qR)({payload:{data:{serviceInfo:_e,direction:H,component:ei}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(O.F0),e.Y36(b.yh),e.Y36(He))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),e._UZ(4,"circle",4)(5,"path",5)(6,"path",6),e.qZA()()(),e.kcU(),e.TgZ(7,"span",7),e._uU(8,"Boltz"),e.qZA()(),e.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),e.YNc(13,Xt,2,5,"div",11),e.qZA(),e.TgZ(14,"div",12)(15,"button",13),e.NdJ("click",function(){return _e.onSwap(_e.selectedSwapType)}),e._uU(16),e.qZA()(),e._UZ(17,"rtl-boltz-swaps",14),e.qZA()()()),2&H&&(e.xp6(13),e.Q6J("ngForOf",_e.links),e.xp6(3),e.hij("Start ",_e.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",_e.selectedSwapType)("swapsData",_e.swapsData)("flgLoading",_e.flgLoading)("emptyTableMessage",_e.emptyTableMessage))},directives:[v.xw,v.Wh,P.a8,P.dn,v.yH,z.BU,se.sg,z.Nj,O.rH,Te.lW,ot],styles:[""]}),K})();class Hn{constructor(Ve){this.help=Ve}}function es(K,Ve){if(1&K&&(e.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.qZA()(),e.TgZ(4,"mat-panel-description",9),e._UZ(5,"span",10),e.TgZ(6,"a",11),e._uU(7),e.qZA()()()),2&K){const H=e.oxw().$implicit,_e=e.oxw();e.xp6(3),e.Oqu(H.help.question),e.xp6(2),e.Q6J("innerHTML",H.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",_e.flgLoggedIn?_e.LNPLink+H.help.link:"/login"),e.xp6(1),e.Oqu(_e.flgLoggedIn?H.help.linkCaption:"Login to go to the page")}}function ws(K,Ve){if(1&K&&(e.TgZ(0,"div",6),e.YNc(1,es,8,4,"mat-expansion-panel",7),e.qZA()),2&K){const H=Ve.$implicit,_e=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===H.help.lnImplementation||H.help.lnImplementation===_e.selNode.lnImplementation)}}let Fo=(()=>{class K{constructor(H,_e){this.store=H,this.sessionService=_e,this.helpTopics=[],this.faQuestion=_.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.helpTopics.push(new Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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 Hn({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,y.R)(this.unSubs[0])).subscribe(H=>{switch(this.selNode=H,this.selNode.lnImplementation.toUpperCase()){case"CLN":this.LNPLink="/cln/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[1])).subscribe(H=>{this.flgLoggedIn=!!H.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(b.yh),e.Y36(Se.m))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Help"),e.qZA()(),e.TgZ(5,"div",4)(6,"div",0),e.YNc(7,ws,2,1,"div",5),e.qZA()()()),2&H&&(e.xp6(2),e.Q6J("icon",_e.faQuestion),e.xp6(5),e.Q6J("ngForOf",_e.helpTopics))},directives:[v.xw,v.yH,v.Wh,B.BN,se.sg,se.O5,bt.ib,bt.yz,bt.yK,bt.u4,O.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),K})();var n1=p(9841);function ba(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}let io=(()=>{class K{constructor(H,_e){this.dialogRef=H,this.store=_e,this.faUserClock=_.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Ge.M6)({payload:{twoFAToken:this.token}}))}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(Le.so),e.Y36(b.yh))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Two Factor Token"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return _e.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return _e.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"input",9),e.NdJ("ngModelChange",function(Ci){return _e.token=Ci}),e.qZA(),e.YNc(13,ba,2,0,"mat-error",10),e.qZA(),e.TgZ(14,"div",11)(15,"button",12),e._uU(16,"Verify Token"),e.qZA()()()()()()),2&H&&(e.xp6(12),e.Q6J("ngModel",_e.token),e.xp6(1),e.Q6J("ngIf",!_e.token))},directives:[v.xw,v.Wh,v.yH,P.dk,Te.lW,P.dn,Ae._Y,Ae.JL,Ae.F,lt.KE,Yt.Nt,Ae.Fj,De.h,Ae.Q7,Ae.JJ,Ae.On,se.O5,lt.TO],styles:[""]}),K})();function A2(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function js(K,Ve){if(1&K&&(e.TgZ(0,"p",21)(1,"mat-icon",22),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&K){const H=e.oxw();e.xp6(3),e.hij(" ",H.loginErrorMessage," ")}}const D2=function(K){return{"padding-gap-large":K}},Vo=function(K,Ve){return{"font-size-200":K,"font-size-300":Ve}};let S1=(()=>{class K{constructor(H,_e,pt,Ci){this.logger=H,this.store=_e,this.rtlEffects=pt,this.commonService=Ci,this.faUnlockAlt=_.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Q.cu,this.loginErrorMessage="",this.apiCallStatusEnum=Q.Bn,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,n1.a)([this.store.select(n.ul),this.store.select(n.Sr)]).pipe((0,y.R)(this.unSubs[0])).subscribe(([H,_e])=>{this.loginErrorMessage="",H.status===Q.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof H.message?JSON.stringify(H.message):H.message),this.logger.error(H.message)),_e.status===Q.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof _e.message?JSON.stringify(_e.message):_e.message),this.logger.error(_e.message))}),this.store.select(n.Yj).pipe((0,y.R)(this.unSubs[1])).subscribe(H=>{this.appConfig=H,this.logger.info(H)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Ge.qR)({payload:{maxWidth:"35rem",data:{component:io}}})),this.rtlEffects.closeAlert.pipe((0,Ce.q)(1)).subscribe(H=>{H&&this.store.dispatch((0,Ge.x4)({payload:{password:ue(this.password),defaultPassword:Q.kO.includes(this.password.toLowerCase()),twoFAToken:H.twoFAToken}}))})):this.store.dispatch((0,Ge.x4)({payload:{password:ue(this.password),defaultPassword:Q.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh),e.Y36(ut.V),e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),e.NdJ("ngModelChange",function(Ci){return _e.password=Ci}),e.qZA(),e.TgZ(16,"mat-icon",15),e.NdJ("click",function(){return _e.flgShow=!_e.flgShow}),e._uU(17),e.qZA(),e.YNc(18,A2,2,0,"mat-error",16),e.qZA(),e.YNc(19,js,4,1,"p",17),e.TgZ(20,"div",18)(21,"button",19),e.NdJ("click",function(){return _e.resetData()}),e._uU(22,"Clear"),e.qZA(),e.TgZ(23,"button",20),e.NdJ("click",function(){return _e.onLogin()}),e._uU(24,"Login"),e.qZA()()()()()()()()()),2&H&&(e.xp6(6),e.Q6J("ngClass",e.VKq(7,D2,_e.screenSize===_e.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(9,Vo,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS)),e.xp6(7),e.Q6J("type",_e.flgShow?"text":"password")("ngModel",_e.password),e.xp6(2),e.Oqu(_e.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!_e.password),e.xp6(1),e.Q6J("ngIf",""!==_e.loginErrorMessage))},directives:[v.xw,v.yH,v.Wh,P.a8,se.mk,Bi.oO,P.dk,P.n5,P.dn,Ae._Y,Ae.JL,Ae.F,lt.KE,Yt.Nt,Ae.Fj,De.h,Ae.Q7,Ae.JJ,Ae.On,Qi.Hw,lt.R9,se.O5,lt.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}"]}),K})();var E1=p(9442);let T1=(()=>{class K{constructor(H,_e){this.activatedRoute=H,this.router=_e,this.error={errorCode:"",errorMessage:""},this.faTimes=_.NBC,this.unsubs=[new h.x,new h.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,y.R)(this.unsubs[0])).subscribe(H=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(O.gz),e.Y36(O.F0))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6),e.qZA()()(),e.TgZ(7,"mat-card-content",6)(8,"div",7),e._uU(9),e.qZA(),e.TgZ(10,"span",8)(11,"button",9),e.NdJ("click",function(){return _e.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&H&&(e.xp6(4),e.Q6J("icon",_e.faTimes),e.xp6(2),e.hij("Error ",_e.error.errorCode,""),e.xp6(3),e.Oqu(_e.error.errorMessage))},directives:[v.xw,v.yH,v.Wh,P.a8,P.dk,P.n5,B.BN,P.dn,Te.lW],encapsulation:2}),K})();var $r=p(1643),no=p(9828),wo=p(8104),zo=p(6534),A1=p(9843);function Lo(K,Ve){1&K&&e._UZ(0,"span",16)}function D1(K,Ve){1&K&&e._UZ(0,"span",17)}function I2(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"form",18,4)(2,"div",19),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"Please ensure that "),e.TgZ(6,"strong"),e._uU(7,"experimental-offers"),e.qZA(),e._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(9,"strong")(10,"a",20),e._uU(11,"here"),e.qZA()(),e._uU(12," to learn more about Core Lightning offers."),e.qZA()(),e.TgZ(13,"h4",21),e._uU(14,"Description"),e.qZA(),e.TgZ(15,"span"),e._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.qZA(),e.TgZ(17,"h4",21),e._uU(18,"Links"),e.qZA(),e.TgZ(19,"span")(20,"a",22),e._uU(21,"Core lightning Bolt12"),e.qZA()(),e._UZ(22,"mat-divider",23),e.TgZ(23,"div",24),e._UZ(24,"fa-icon",2),e.TgZ(25,"span"),e._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.qZA()(),e.TgZ(27,"mat-slide-toggle",25),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).enableOffers=pt})("change",function(){return e.CHM(H),e.oxw(2).onUpdateFeature()}),e._uU(28),e.qZA()()}if(2&K){const H=e.oxw(2);e.xp6(3),e.Q6J("icon",H.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",H.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",H.enableOffers),e.xp6(1),e.hij("Enable Offers ",H.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function Mr(K,Ve){if(1&K&&(e.TgZ(0,"mat-option",43),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&K){const H=Ve.$implicit;e.Q6J("value",H),e.xp6(1),e.hij(" ",e.lcZ(2,2,H.id)," ")}}function So(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(3);e.xp6(1),e.hij("",H.selPolicyType.placeholder," is required.")}}function Bo(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(3);e.xp6(1),e.AsE("",H.selPolicyType.placeholder," must be greater than or equal to ",H.selPolicyType.min,".")}}function jl(K,Ve){if(1&K&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&K){const H=e.oxw(3);e.xp6(1),e.AsE("",H.selPolicyType.placeholder," must be less than or equal to ",H.selPolicyType.max,".")}}function Ba(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function Ua(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function Kl(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function I1(K,Ve){1&K&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const Ks=function(K,Ve){return{"alert-danger":K,"alert-info":Ve}};function O1(K,Ve){if(1&K&&(e.TgZ(0,"h4",44)(1,"span",45),e._uU(2),e.qZA()()),2&K){const H=e.oxw(3);e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ks,!!H.updateMsg.error,!!H.updateMsg.data)),e.xp6(1),e.hij(" ",H.updateMsg.error&&""!==H.updateMsg.error?"Error: "+H.updateMsg.error||0:H.updateMsg.data&&""!==H.updateMsg.data?H.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function fa(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"form",18,4)(2,"div",26),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"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."),e.qZA()(),e.TgZ(6,"div",27)(7,"mat-form-field",28)(8,"mat-select",29),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).selPolicyType=pt})("selectionChange",function(){return e.CHM(H),e.oxw(2).policyMod=null}),e.YNc(9,Mr,3,4,"mat-option",30),e.qZA()(),e.TgZ(10,"mat-form-field",31)(11,"input",32,33),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).policyMod=pt}),e.qZA(),e.TgZ(13,"mat-hint"),e._uU(14),e.qZA(),e.YNc(15,So,2,1,"mat-error",34),e.YNc(16,Bo,2,2,"mat-error",34),e.YNc(17,jl,2,2,"mat-error",34),e.qZA()(),e.TgZ(18,"div",27)(19,"mat-form-field",31)(20,"input",35),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).leaseFeeBaseSat=pt}),e.qZA(),e.YNc(21,Ba,2,0,"mat-error",34),e.qZA(),e.TgZ(22,"mat-form-field",31)(23,"input",36),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).leaseFeeBasis=pt}),e.qZA(),e.YNc(24,Ua,2,0,"mat-error",34),e.qZA()(),e.TgZ(25,"div",27)(26,"mat-form-field",31)(27,"input",37),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).channelFeeMaxBaseSat=pt}),e.qZA(),e.YNc(28,Kl,2,0,"mat-error",34),e.qZA(),e.TgZ(29,"mat-form-field",31)(30,"input",38),e.NdJ("ngModelChange",function(pt){return e.CHM(H),e.oxw(2).channelFeeMaxProportional=pt}),e.qZA(),e.YNc(31,I1,2,0,"mat-error",34),e.qZA()(),e.YNc(32,O1,3,5,"h4",39),e.TgZ(33,"div",40)(34,"button",41),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onResetPolicy()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",42),e.NdJ("click",function(){return e.CHM(H),e.oxw(2).onUpdateFundingPolicy()}),e._uU(37,"Update"),e.qZA()()()}if(2&K){const H=e.oxw(2);e.xp6(3),e.Q6J("icon",H.faExclamationTriangle),e.xp6(5),e.Q6J("ngModel",H.selPolicyType),e.xp6(1),e.Q6J("ngForOf",H.policyTypes),e.xp6(2),e.Q6J("ngModel",H.policyMod)("placeholder",H.selPolicyType.placeholder)("step","fixed"===H.selPolicyType.id?1e3:10)("min",H.selPolicyType.min)("max",H.selPolicyType.max),e.xp6(3),e.lnq("",H.selPolicyType.placeholder," should be between ",H.selPolicyType.min," and ",H.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!H.policyMod),e.xp6(1),e.Q6J("ngIf",H.policyModH.selPolicyType.max),e.xp6(3),e.Q6J("ngModel",H.leaseFeeBaseSat),e.xp6(1),e.Q6J("ngIf",!H.leaseFeeBaseSat),e.xp6(2),e.Q6J("ngModel",H.leaseFeeBasis),e.xp6(1),e.Q6J("ngIf",!H.leaseFeeBasis),e.xp6(3),e.Q6J("ngModel",H.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!H.channelFeeMaxBaseSat),e.xp6(2),e.Q6J("ngModel",H.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!H.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",H.flgUpdateCalled)}}function _s(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const Ci=e.CHM(H).index;return e.oxw().onPanelExpanded(Ci)}),e.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),e._uU(4),e.qZA(),e.TgZ(5,"h4",11),e.YNc(6,Lo,1,0,"span",12),e.YNc(7,D1,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,I2,29,5,"form",15),e.YNc(11,fa,38,23,"form",15),e.qZA()()}if(2&K){const H=Ve.$implicit,_e=Ve.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(H.name),e.xp6(2),e.Q6J("ngIf",H.enabled),e.xp6(1),e.Q6J("ngIf",!H.enabled),e.xp6(1),e.hij(" ",H.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===_e),e.xp6(1),e.Q6J("ngIf",1===_e)}}const O2=O.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(893),p.e(636)]).then(p.bind(p,1636)).then(K=>K.LNDModule),canActivate:[$r.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(893),p.e(564)]).then(p.bind(p,9564)).then(K=>K.CLNModule),canActivate:[$r.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(893),p.e(924)]).then(p.bind(p,7924)).then(K=>K.ECLModule),canActivate:[$r.a1]},{path:"settings",component:we,canActivate:[$r.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:$,canActivate:[$r.a1]},{path:"auth",component:Jt,canActivate:[$r.a1]},{path:"bconfig",component:Lt,canActivate:[$r.a1]}]},{path:"config",component:qe,canActivate:[$r.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:pr,canActivate:[$r.a1]},{path:"services",component:Jn,canActivate:[$r.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:ga,canActivate:[$r.a1]},{path:"boltz",component:Qr,canActivate:[$r.a1]}]},{path:"experimental",component:(()=>{class K{constructor(H,_e,pt,Ci){this.logger=H,this.store=_e,this.dataService=pt,this.commonService=Ci,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=Q.gB,this.selPolicyType=Q.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,y.R)(this.unSubs[0])).subscribe({next:H=>{this.logger.info("Received List Configs: "+JSON.stringify(H)),this.features[1].enabled=!!H["experimental-dual-fund"]},error:H=>{this.logger.error("List Configs Error: "+JSON.stringify(H)),this.features[1].enabled=!1}}),this.store.select(n.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(H=>{this.selNode=H,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(no.Rn).pipe((0,y.R)(this.unSubs[2])).subscribe(H=>{this.policyTypes[2].max=H.balance.totalBalance||1e3})}onPanelExpanded(H){1===H&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,y.R)(this.unSubs[3])).subscribe(_e=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(_e)),this.fundingPolicy=_e,this.fundingPolicy.policy&&(this.selPolicyType=Q.gB.find(pt=>pt.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,Ge.jS)({payload:{uiMessage:Q.m6.UPDATE_SETTING,service:Q.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,Pt.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,si.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,y.R)(this.unSubs[4])).subscribe({next:H=>{this.logger.info(H),this.fundingPolicy=H,this.updateMsg={data:"Compact Lease: "+H.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:H=>{this.logger.error(H),this.updateMsg={error:this.commonService.extractErrorMessage(H,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?Q.gB.find(H=>H.id===this.fundingPolicy.policy)||this.policyTypes[0]:Q.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(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(b.yh),e.Y36(wo.D),e.Y36(mi.v))},K.\u0275cmp=e.Xpm({type:K,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"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["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"],[4,"ngIf"],["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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._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."),e.qZA()(),e.TgZ(5,"form",3,4)(7,"div",5),e._UZ(8,"fa-icon",6),e.TgZ(9,"span",7),e._uU(10,"Features"),e.qZA()(),e.TgZ(11,"mat-accordion"),e.YNc(12,_s,12,7,"mat-expansion-panel",8),e.qZA()()()),2&H&&(e.xp6(2),e.Q6J("icon",_e.faInfoCircle),e.xp6(6),e.Q6J("icon",_e.faCode),e.xp6(4),e.Q6J("ngForOf",_e.features))},directives:[v.xw,v.yH,F.$V,B.BN,Ae._Y,Ae.JL,Ae.F,v.Wh,bt.pp,se.sg,bt.ib,bt.yz,bt.yK,se.O5,Ue.d,ti.Rr,De.h,Ae.JJ,Ae.On,lt.KE,Ie.gD,oe.ey,Yt.Nt,Ae.wV,Ae.qQ,Ae.Fd,Ae.Fj,zo.q,A1.F,Ae.Q7,lt.bx,lt.TO,se.mk,Bi.oO,Te.lW],pipes:[se.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),K})(),canActivate:[$r.a1]},{path:"lnconfig",component:Oi,canActivate:[$r.a1]}]},{path:"services",component:da,canActivate:[$r.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:mt},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:oi}]},{path:"help",component:Fo},{path:"login",component:S1},{path:"error",component:T1},{path:"**",component:E1.w}]);var ds=p(8750),ja=p(8878),k2=p(4594),Uo=p(7238),ao=p(2181);function r1(K,Ve){if(1&K&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("icon",H.faCode),e.xp6(2),e.hij("API Version: ",null==H.information?null:H.information.api_version,"")}}function ql(K,Ve){if(1&K&&(e.TgZ(0,"a",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("icon",H.faUserCog)}}function Jl(K,Ve){if(1&K&&(e.TgZ(0,"a",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&K){const H=e.oxw();e.xp6(1),e.Q6J("icon",H.faLifeRing)}}function Y4(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"a",15),e.NdJ("click",function(){return e.CHM(H),e.oxw().onClick()}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&K){const H=e.oxw();e.xp6(1),e.Q6J("icon",H.faEject)}}let j4=(()=>{class K{constructor(H,_e,pt,Ci,xn){this.logger=H,this.sessionService=_e,this.store=pt,this.rtlEffects=Ci,this.actions=xn,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 h.x,new h.x,new h.x,new h.x],this.version=Qe.q4}ngOnInit(){this.store.select(n.R4).pipe((0,y.R)(this.unSubs[0])).subscribe(H=>{if(this.information=H,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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const _e=this.information.chains[0];this.informationChain.chain=_e.chain,this.informationChain.network=_e.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(H)}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[1])).subscribe(H=>{this.showLogout=!!H.token,this.flgLoading=!!H.token}),this.actions.pipe((0,y.R)(this.unSubs[2]),(0,ce.h)(H=>H.type===Q.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Ge.c1)({payload:{data:{type:Q.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,y.R)(this.unSubs[3])).subscribe(H=>{H&&(this.showLogout=!1,this.store.dispatch((0,Ge.kS)()))})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(Se.m),e.Y36(b.yh),e.Y36(ut.V),e.Y36(d.eX))},K.\u0275cmp=e.Xpm({type:K,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(H,_e){if(1&H&&(e.TgZ(0,"mat-menu",0,1)(2,"p",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.YNc(6,r1,4,2,"p",4),e.YNc(7,ql,4,1,"a",5),e.YNc(8,Jl,4,1,"a",6),e.YNc(9,Y4,4,1,"a",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&H){const pt=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",_e.faCodeBranch),e.xp6(2),e.hij("Version: ",_e.version,""),e.xp6(1),e.Q6J("ngIf",null==_e.information?null:_e.information.api_version),e.xp6(1),e.Q6J("ngIf",_e.showLogout),e.xp6(1),e.Q6J("ngIf",_e.showLogout),e.xp6(1),e.Q6J("ngIf",_e.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",pt)}},directives:[ao.VK,ao.OP,B.BN,se.O5,O.yS,O.rH,Te.lW,ao.p6,Qi.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}),K})();var k1=p(2638),Ma=p(8258),Ka=p(149);const Ls={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:_.HLz,link:"/lnd/home",userPersona:Q.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:_.nNP,link:"/lnd/onchain",userPersona:Q.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:_.BDt,link:"/lnd/connections",userPersona:Q.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:_.FVb,link:"/lnd/connections",userPersona:Q.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:_.Ssp,link:"/lnd/transactions",userPersona:Q.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:_.SuH,link:"/lnd/routing",userPersona:Q.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:_.koM,link:"/lnd/reports",userPersona:Q.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:_.wn1,link:"/lnd/graph",userPersona:Q.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:_.hkK,link:"/lnd/messages",userPersona:Q.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:_.q7m,link:"/lnd/channelbackup",userPersona:Q.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:_.TmZ,link:"/lnd/network",userPersona:Q.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:_.xf3,link:"/lnd/network",userPersona:Q.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:_.Krp,link:"/services/loop",userPersona:Q.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:_.vqe,link:"/services/loop",userPersona:Q.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Q.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:_.CgH,link:"/config",userPersona:Q.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:_.Psp,link:"/help",userPersona:Q.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:_.HLz,link:"/cln/home",userPersona:Q.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:_.nNP,link:"/cln/onchain",userPersona:Q.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:_.BDt,link:"/cln/connections",userPersona:Q.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:_.FVb,link:"/cln/connections",userPersona:Q.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:_.Acd,link:"/cln/liquidityads",userPersona:Q.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:_.Ssp,link:"/cln/transactions",userPersona:Q.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:_.SuH,link:"/cln/routing",userPersona:Q.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:_.koM,link:"/cln/reports",userPersona:Q.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:_.wn1,link:"/cln/graph",userPersona:Q.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:_.hkK,link:"/cln/messages",userPersona:Q.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:_.USL,link:"/cln/rates",userPersona:Q.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:_.xf3,link:"/cln/rates",userPersona:Q.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:_.CgH,link:"/config",userPersona:Q.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:_.Psp,link:"/help",userPersona:Q.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:_.HLz,link:"/ecl/home",userPersona:Q.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:_.nNP,link:"/ecl/onchain",userPersona:Q.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:_.BDt,link:"/ecl/connections",userPersona:Q.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:_.FVb,link:"/ecl/connections",userPersona:Q.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:_.Ssp,link:"/ecl/transactions",userPersona:Q.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:_.SuH,link:"/ecl/routing",userPersona:Q.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:_.koM,link:"/ecl/reports",userPersona:Q.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:_.wn1,link:"/ecl/graph",userPersona:Q.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:_.CgH,link:"/config",userPersona:Q.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:_.Psp,link:"/help",userPersona:Q.ol.ALL}]};function P1(K,Ve){if(1&K&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&K){const H=Ve.$implicit;e.Q6J("value",H.index),e.xp6(1),e.AsE(" ",H.lnNode," (",H.lnImplementation,") ")}}function N1(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(pt){return e.CHM(H),e.oxw().onNodeSelectionChange(pt.value)}),e.YNc(1,P1,2,3,"mat-option",10),e.qZA()}if(2&K){const H=e.oxw();e.Q6J("value",H.selConfigNodeIndex),e.xp6(1),e.Q6J("ngForOf",H.appConfig.nodes)}}function Xl(K,Ve){if(1&K&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&K){const H=e.oxw().$implicit;e.oxw(2);const _e=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===H.icon?_e:null)}}function P2(K,Ve){if(1&K&&e._UZ(0,"fa-icon",23),2&K){const H=e.oxw().$implicit;e.Q6J("icon",H.icon)}}function R1(K,Ve){if(1&K&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H.icon)}}function Ss(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw(2).onChildNavClicked(Ci)}),e.TgZ(2,"div",17),e.YNc(3,Xl,2,1,"span",18),e.YNc(4,P2,1,1,"fa-icon",19),e.YNc(5,R1,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&K){const H=Ve.$implicit;e.s9C("routerLink",H.link),e.xp6(3),e.Q6J("ngIf","SVG"===H.iconType),e.xp6(1),e.Q6J("ngIf","FA"===H.iconType),e.xp6(1),e.Q6J("ngIf",!H.iconType),e.xp6(2),e.Oqu(H.name)}}function Qa(K,Ve){if(1&K&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",H.icon)}}function us(K,Ve){if(1&K&&e._UZ(0,"fa-icon",23),2&K){const H=e.oxw().$implicit;e.Q6J("icon",H.icon)}}function Eo(K,Ve){if(1&K&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Oqu(H.icon)}}function Qs(K,Ve){if(1&K&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,Qa,2,1,"span",28),e.YNc(4,us,1,1,"fa-icon",19),e.YNc(5,Eo,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon",30),e._uU(10),e.qZA()()(),e.TgZ(11,"div",31),e.GkF(12,32),e.qZA()()),2&K){const H=Ve.$implicit,_e=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===H.iconType),e.xp6(1),e.Q6J("ngIf","FA"===H.iconType),e.xp6(1),e.Q6J("ngIf",!H.iconType),e.xp6(2),e.Oqu(H.name),e.xp6(1),e.uIk("aria-label","toggle "+H.name),e.xp6(2),e.Oqu(_e.treeControlNested.isExpanded(H)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!_e.treeControlNested.isExpanded(H))}}function a1(K,Ve){if(1&K&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,Ss,8,5,"mat-tree-node",13),e.YNc(3,Qs,13,8,"mat-nested-tree-node",14),e.qZA()),2&K){const H=e.oxw();e.Q6J("dataSource",H.navMenus)("treeControl",H.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",H.hasChild)}}function oo(K,Ve){if(1&K&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",H.icon)}}function H1(K,Ve){if(1&K&&e._UZ(0,"fa-icon",36),2&K){const H=e.oxw().$implicit;e.s9C("matTooltip",H.name),e.Q6J("icon",H.icon)}}function F1(K,Ve){if(1&K&&(e.TgZ(0,"mat-icon",37),e._uU(1),e.qZA()),2&K){const H=e.oxw().$implicit;e.s9C("matTooltip",H.name),e.xp6(1),e.Oqu(H.icon)}}function pa(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw().onShowData(Ci)}),e.YNc(1,oo,2,1,"span",18),e.YNc(2,H1,1,2,"fa-icon",34),e.YNc(3,F1,2,2,"mat-icon",35),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&K){const H=Ve.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===H.iconType),e.xp6(1),e.Q6J("ngIf","FA"===H.iconType),e.xp6(1),e.Q6J("ngIf",!H.iconType),e.xp6(2),e.Oqu(H.name)}}function Go(K,Ve){if(1&K&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&K){const H=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",H.icon)}}function $l(K,Ve){if(1&K&&e._UZ(0,"fa-icon",36),2&K){const H=e.oxw().$implicit;e.s9C("matTooltip",H.name),e.Q6J("icon",H.icon)}}function s1(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ci=e.CHM(H).$implicit;return e.oxw(2).onClick(Ci)}),e.YNc(1,Go,2,1,"span",28),e.YNc(2,$l,1,2,"fa-icon",34),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&K){const H=Ve.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===H.iconType),e.xp6(1),e.Q6J("ngIf","FA"===H.iconType),e.xp6(2),e.Oqu(H.name)}}function V1(K,Ve){if(1&K&&(e.TgZ(0,"mat-tree",5),e.YNc(1,s1,5,3,"mat-tree-node",6),e.qZA()),2&K){const H=e.oxw();e.Q6J("dataSource",H.navMenusLogout)("treeControl",H.treeControlLogout)}}function Zo(K,Ve){1&K&&(e.O4$(),e.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),e._UZ(3,"circle",41)(4,"path",42)(5,"path",43),e.qZA()()())}let Oa=(()=>{class K{constructor(H,_e,pt,Ci,xn,_r){this.logger=H,this.commonService=_e,this.sessionService=pt,this.store=Ci,this.actions=xn,this.rtlEffects=_r,this.ChildNavClicked=new e.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=Q.ol,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x],this.treeControlNested=new Ma.VY(Un=>Un.children),this.treeControlLogout=new Ma.VY(Un=>Un.children),this.treeControlShowData=new Ma.VY(Un=>Un.children),this.navMenus=new Ka.WX,this.navMenusLogout=new Ka.WX,this.navMenusShowData=new Ka.WX,this.hasChild=(Un,ea)=>!!ea.children&&ea.children.length>0,this.version=Qe.q4,200===Ls.LNDChildren[Ls.LNDChildren.length-1].id&&Ls.LNDChildren.pop(),this.navMenus.data=Ls.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const H=this.sessionService.getItem("token");this.showLogout=!!H,this.flgLoading=!!H,this.store.select(n.Yj).pipe((0,y.R)(this.unSubs[0])).subscribe(_e=>{this.appConfig=_e}),this.store.select(n.gW).pipe((0,y.R)(this.unSubs[1])).subscribe(_e=>{if(this.information=_e.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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const pt=this.information.chains[0];this.informationChain.chain=pt.chain,this.informationChain.network=pt.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=_e.selNode,this.settings=this.selNode.settings,this.selConfigNodeIndex=+_e.selNode.index,this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(_e)}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[2])).subscribe(_e=>{this.showLogout=!!_e.token,this.flgLoading=!!_e.token}),this.actions.pipe((0,y.R)(this.unSubs[3]),(0,ce.h)(_e=>_e.type===Q.pg.LOGOUT)).subscribe(_e=>{this.showLogout=!1})}onClick(H){"Logout"===H.name&&(this.store.dispatch((0,Ge.c1)({payload:{data:{type:Q.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,y.R)(this.unSubs[4])).subscribe(_e=>{_e&&(this.showLogout=!1,this.store.dispatch((0,Ge.kS)()))})),this.ChildNavClicked.emit(H)}onChildNavClicked(H){this.ChildNavClicked.emit(H)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let H=[];H=JSON.parse(JSON.stringify(Ls.LNDChildren)),this.navMenus.data=H.filter(_e=>_e.children&&_e.children.length?(_e.children=_e.children.filter(pt=>(pt.userPersona===Q.ol.ALL||pt.userPersona===this.settings.userPersona)&&"/services/loop"!==pt.link&&"/services/boltz"!==pt.link||"/services/loop"===pt.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===pt.link&&this.settings.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),_e.children.length>0):_e.userPersona===Q.ol.ALL||_e.userPersona===this.settings.userPersona)}loadCLNMenu(){let H=[];H=JSON.parse(JSON.stringify(Ls.CLNChildren)),this.navMenus.data=H.filter(_e=>(_e.children&&_e.children.length&&(_e.children=_e.children.filter(pt=>(pt.userPersona===Q.ol.ALL||pt.userPersona===this.settings.userPersona)&&"/cln/messages"!==pt.link||"/cln/messages"===pt.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),_e.userPersona===Q.ol.ALL||_e.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Ls.ECLChildren))}onShowData(H){this.store.dispatch((0,Ge.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(H){const _e=this.selConfigNodeIndex;this.selConfigNodeIndex=H;const pt=this.appConfig.nodes.find(Ci=>+Ci.index===H);this.store.dispatch((0,Ge.fk)({payload:{uiMessage:Q.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+_e,currentLnNode:pt,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(Se.m),e.Y36(b.yh),e.Y36(d.eX),e.Y36(ut.V))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-side-navigation"]],viewQuery:function(H,_e){if(1&H&&e.Gf(Ka.gi,5),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.tree=pt.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(H,_e){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,N1,2,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,a1,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,pa,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,V1,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,Zo,6,0,"ng-template",null,8,e.W1O)),2&H&&(e.xp6(2),e.Q6J("ngIf",_e.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==_e.settings?null:_e.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",_e.navMenusShowData)("treeControl",_e.treeControlShowData),e.xp6(3),e.Q6J("ngIf",_e.showLogout))},directives:[v.xw,v.yH,v.Wh,F.$V,se.O5,Ie.gD,se.sg,oe.ey,Ue.d,Ka.gi,Ka.fQ,Ka.uo,Ka.eu,O.Od,O.rH,se.tP,B.BN,Qi.Hw,Ka.GZ,Te.lW,Ka.Ar,Uo.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),K})();var z1=p(773);const o1=["sideNavigation"],N2=["sideNavContent"];function lo(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(H),e.oxw().sideNavToggle()}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&K){const H=e.oxw();e.Q6J("matTooltip",H.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",H.smallScreen)}}function R2(K,Ve){1&K&&(e.O4$(),e._UZ(0,"path",18))}function e3(K,Ve){1&K&&(e.O4$(),e._UZ(0,"path",19))}function H2(K,Ve){if(1&K){const H=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(H);const pt=e.oxw();return pt.flgSidenavPinned=!pt.flgSidenavPinned}),e.O4$(),e.TgZ(1,"svg",15),e.YNc(2,R2,1,0,"path",16),e.YNc(3,e3,1,0,"path",17),e.qZA()()}if(2&K){const H=e.oxw();e.Q6J("matTooltip",H.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!H.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",H.flgSidenavPinned)}}function co(K,Ve){if(1&K&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&K){const H=e.oxw();e.xp6(1),e.Oqu(H.information.alias?"RTL - "+H.information.alias:"RTL")}}function Wo(K,Ve){if(1&K&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&K){const H=e.oxw();e.xp6(1),e.Oqu(H.information.alias?"Ride The Lightning - "+H.information.alias:"Ride The Lightning")}}function Ns(K,Ve){1&K&&(e.TgZ(0,"div",20),e._UZ(1,"mat-spinner",21),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const Es=function(K,Ve){return[K,Ve]};let l1=(()=>{class K{constructor(H,_e,pt,Ci,xn,_r,Un,ea,hs){this.logger=H,this.commonService=_e,this.store=pt,this.actions=Ci,this.userIdle=xn,this.router=_r,this.sessionService=Un,this.breakpointObserver=ea,this.renderer=hs,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 h.x,new h.x,new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.router.events.subscribe(H=>{H instanceof O.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,y.R)(this.unSubs[0])).subscribe(H=>{H.breakpoints[a.u3.XSmall]?(this.commonService.setScreenSize(Q.cu.XS),this.smallScreen=!0):H.breakpoints[a.u3.TabletPortrait]?(this.commonService.setScreenSize(Q.cu.SM),this.smallScreen=!0):H.breakpoints[a.u3.Small]||H.breakpoints[a.u3.Medium]?(this.commonService.setScreenSize(Q.cu.MD),this.smallScreen=!1):H.breakpoints[a.u3.Large]?(this.commonService.setScreenSize(Q.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Q.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Ge.ey)()),this.accessKey=this.readAccessKey(),this.store.select(n.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(H=>{this.settings=H.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,y.R)(this.unSubs[2])).subscribe(H=>{this.appConfig=H}),this.store.select(n.R4).pipe((0,y.R)(this.unSubs[3])).subscribe(H=>{this.information=H,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,y.R)(this.unSubs[4]),(0,ce.h)(H=>H.type===Q.pg.SET_RTL_CONFIG||H.type===Q.pg.LOGIN||H.type===Q.pg.LOGOUT)).subscribe(H=>{H.type===Q.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+H.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,Ge.x4)({payload:{password:ue(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),H.type===Q.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)),H.type===Q.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,y.R)(this.unSubs[5])).subscribe(H=>{this.logger.info("Counting Down: "+(11-H))}),this.userIdle.onTimeout().pipe((0,y.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,Ge.ts)()),this.store.dispatch((0,Ge.qR)({payload:{data:{type:Q.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Ge.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const H=window.location.href;return H.includes("access-key=")?H.substring(H.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(H){this.smallScreen&&this.sideNavigation.close()}copiedText(H){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+H)}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return K.\u0275fac=function(H){return new(H||K)(e.Y36(ve.mQ),e.Y36(mi.v),e.Y36(b.yh),e.Y36(d.eX),e.Y36(C),e.Y36(O.F0),e.Y36(Se.m),e.Y36(a.Yg),e.Y36(e.Qsj))},K.\u0275cmp=e.Xpm({type:K,selectors:[["rtl-app"]],viewQuery:function(H,_e){if(1&H&&(e.Gf(o1,5),e.Gf(N2,5)),2&H){let pt;e.iGM(pt=e.CRH())&&(_e.sideNavigation=pt.first),e.iGM(pt=e.CRH())&&(_e.sideNavContent=pt.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(H,_e){1&H&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,lo,3,2,"button",2),e.YNc(6,H2,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,co,2,1,"span",4),e.YNc(9,Wo,2,1,"span",4),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),e.NdJ("ChildNavClicked",function(Ci){return _e.onNavigationClicked(Ci)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),e._UZ(19,"router-outlet",null,11),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,Ns,4,0,"div",12),e.qZA()),2&H&&(e.Q6J("ngClass",e.WLB(12,Es,e.lcZ(1,8,_e.settings.themeColor),e.lcZ(2,10,_e.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",_e.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!_e.smallScreen&&_e.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",_e.smallScreen),e.xp6(1),e.Q6J("ngIf",!_e.smallScreen),e.xp6(4),e.Q6J("opened",_e.flgSideNavOpened&&_e.flgLoggedIn)("mode",_e.flgSidenavPinned&&!_e.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!_e.settings.themeColor))},directives:[v.xw,se.mk,Bi.oO,k2.Ye,v.Wh,se.O5,Te.lW,Uo.gM,Qi.Hw,j4,k1.TM,k1.JX,F.$V,Oa,v.yH,k1.Rh,O.lC,z1.Ou],pipes:[se.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[ja.g]}}),K})(),F2=(()=>{class K{constructor(H){this.sessionService=H}intercept(H,_e){if(this.sessionService.getItem("token")){const pt=H.clone({headers:H.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return _e.handle(pt)}return _e.handle(H)}}return K.\u0275fac=function(H){return new(H||K)(e.LFG(Se.m))},K.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac}),K})();var B1=p(7998),Ts=p(711),V2=p(4947),U1=p(3289);const t3={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1},To={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},Yo={apiURL:"",apisCallStatus:{Login:{status:Q.Bn.UN_INITIATED},IsAuthorized:{status:Q.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:t3,authentication:To,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:t3,authentication:To}]},nodeData:{}},Q4=(0,b.Lq)(Yo,(0,b.on)(Ge.qi,(K,{payload:Ve})=>{const H=JSON.parse(JSON.stringify(K.apisCallStatus));return H[Ve.action]={status:Ve.status,statusCode:Ve.statusCode,message:Ve.message,URL:Ve.URL,filePath:Ve.filePath},Object.assign(Object.assign({},K),{apisCallStatus:H})}),(0,b.on)(Ge.vI,(K,{payload:Ve})=>Object.assign(Object.assign({},Yo),{apisCallStatus:K.apisCallStatus,appConfig:K.appConfig,selNode:Ve})),(0,b.on)(Ge.fk,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{selNode:Ve.currentLnNode})),(0,b.on)(Ge.Tm,(K,{payload:Ve})=>{const H=JSON.parse(JSON.stringify(K.selNode));switch(Ve.service){case Q.JX.BOLTZ:H.settings.boltzServerUrl=Ve.settings.boltzServerUrl;break;case Q.JX.LOOP:H.settings.swapServerUrl=Ve.settings.swapServerUrl;break;case Q.JX.OFFERS:H.settings.enableOffers=Ve.settings.enableOffers}return Object.assign(Object.assign({},K),{selNode:H})}),(0,b.on)(Ge._V,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{nodeData:Ve})),(0,b.on)(Ge.XT,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{appConfig:Ve}))),i3={apisCallStatus:{FetchInfo:{status:Q.Bn.UN_INITIATED},FetchFees:{status:Q.Bn.UN_INITIATED},FetchPeers:{status:Q.Bn.UN_INITIATED},FetchClosedChannels:{status:Q.Bn.UN_INITIATED},FetchPendingChannels:{status:Q.Bn.UN_INITIATED},FetchAllChannels:{status:Q.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:Q.Bn.UN_INITIATED},FetchInvoices:{status:Q.Bn.UN_INITIATED},FetchPayments:{status:Q.Bn.UN_INITIATED},FetchForwardingHistory:{status:Q.Bn.UN_INITIATED},FetchUTXOs:{status:Q.Bn.UN_INITIATED},FetchTransactions:{status:Q.Bn.UN_INITIATED},FetchLightningTransactions:{status:Q.Bn.UN_INITIATED},FetchNetwork:{status:Q.Bn.UN_INITIATED}},nodeSettings:{userPersona:Q.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 z2=!1,n3=!1;const r3=(0,b.Lq)(i3,(0,b.on)(Pt.PC,(K,{payload:Ve})=>{const H=JSON.parse(JSON.stringify(K.apisCallStatus));return H[Ve.action]={status:Ve.status,statusCode:Ve.statusCode,message:Ve.message,URL:Ve.URL,filePath:Ve.filePath},Object.assign(Object.assign({},K),{apisCallStatus:H})}),(0,b.on)(Pt.JT,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{nodeSettings:Ve})),(0,b.on)(Pt.Ll,(K,{payload:Ve})=>Object.assign(Object.assign({},i3),{nodeSettings:Ve})),(0,b.on)(Pt.CX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{information:Ve})),(0,b.on)(Pt.Z8,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{peers:Ve})),(0,b.on)(Pt.EK,(K,{payload:Ve})=>{const H=[...K.peers],_e=K.peers.findIndex(pt=>pt.pub_key===Ve.pubkey);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{peers:H})}),(0,b.on)(Pt.YP,(K,{payload:Ve})=>{const H=K.listInvoices;return H.invoices.unshift(Ve),Object.assign(Object.assign({},K),{listInvoices:H})}),(0,b.on)(Pt.aL,(K,{payload:Ve})=>{const H=K.listInvoices;return H.invoices=H.invoices.map(_e=>_e.payment_request===Ve.payment_request?Ve:_e),Object.assign(Object.assign({},K),{listInvoices:H})}),(0,b.on)(Pt.qY,(K,{payload:Ve})=>{const H=K.listPayments;return H.payments=H.payments.map(_e=>_e.payment_hash===Ve.payment_hash?Ve:_e),Object.assign(Object.assign({},K),{listPayments:H})}),(0,b.on)(Pt.RX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{fees:Ve})),(0,b.on)(Pt._L,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{closedChannels:Ve})),(0,b.on)(Pt.TW,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{pendingChannels:Ve.pendingChannels,pendingChannelsSummary:Ve.pendingChannelsSummary})),(0,b.on)(Pt.as,(K,{payload:Ve})=>{let H=0,_e=0,pt=0,Ci=0,xn=0,_r=0;return Ve&&Ve.forEach(Un=>{Un.local_balance||(Un.local_balance=0),!0===Un.active?(xn+=+Un.local_balance,pt+=1,Un.local_balance?H=+H+ +Un.local_balance:Un.local_balance=0,Un.remote_balance?_e=+_e+ +Un.remote_balance:Un.remote_balance=0):(_r+=+Un.local_balance,Ci+=1)}),Object.assign(Object.assign({},K),{channels:Ve,channelsSummary:{active:{num_channels:pt,capacity:xn},inactive:{num_channels:Ci,capacity:_r}},lightningBalance:{local:H,remote:_e}})}),(0,b.on)(Pt.OG,(K,{payload:Ve})=>{const H=[...K.channels],_e=K.channels.findIndex(pt=>pt.channel_point===Ve.channelPoint);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{channels:H})}),(0,b.on)(Pt.Jl,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{blockchainBalance:Ve})),(0,b.on)(Pt.ks,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{networkInfo:Ve})),(0,b.on)(Pt.Nr,(K,{payload:Ve})=>(Ve.total_invoices||(Ve.total_invoices=K.listInvoices.total_invoices),Object.assign(Object.assign({},K),{listInvoices:Ve}))),(0,b.on)(Pt.Lf,(K,{payload:Ve})=>{if(z2=!0,Ve.length&&n3){const H=[...K.utxos];return H.forEach(_e=>{const pt=Ve.find(Ci=>Ci.tx_hash===_e.outpoint.txid_str);_e.label=pt&&pt.label?pt.label:""}),Object.assign(Object.assign({},K),{utxos:H,transactions:Ve})}return Object.assign(Object.assign({},K),{transactions:Ve})}),(0,b.on)(Pt.UH,(K,{payload:Ve})=>{if(n3=!0,Ve.length&&z2){const H=[...K.transactions];Ve.forEach(_e=>{const pt=H.find(Ci=>Ci.tx_hash===_e.outpoint.txid_str);_e.label=pt&&pt.label?pt.label:""})}return Object.assign(Object.assign({},K),{utxos:Ve})}),(0,b.on)(Pt.HI,(K,{payload:Ve})=>{const H={listInvoicesAll:K.allLightningTransactions.listInvoicesAll,listPaymentsAll:Ve};return Object.assign(Object.assign({},K),{listPayments:Ve,allLightningTransactions:H})}),(0,b.on)(Pt.Fr,(K,{payload:Ve})=>{const H={listInvoicesAll:Ve.listInvoicesAll,listPaymentsAll:K.listPayments};return Object.assign(Object.assign({},K),{allLightningTransactions:H})}),(0,b.on)(Pt.QJ,(K,{payload:Ve})=>{const H=[...K.channels,...K.closedChannels];let _e=Ve.forwarding_events?JSON.parse(JSON.stringify(Ve)):{};return _e.forwarding_events&&(_e=B2(_e,H)),Object.assign(Object.assign({},K),{forwardingHistory:_e})})),B2=(K,Ve)=>(K.forwarding_events.forEach(H=>{if(Ve&&Ve.length>0)for(let _e=0;_e{const H=JSON.parse(JSON.stringify(K.apisCallStatus));return H[Ve.action]={status:Ve.status,statusCode:Ve.statusCode,message:Ve.message,URL:Ve.URL,filePath:Ve.filePath},Object.assign(Object.assign({},K),{apisCallStatus:H})}),(0,b.on)(si.oo,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{nodeSettings:Ve})),(0,b.on)(si.xH,(K,{payload:Ve})=>Object.assign(Object.assign({},a3),{nodeSettings:Ve})),(0,b.on)(si.CX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{information:Ve})),(0,b.on)(si.RX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{fees:Ve})),(0,b.on)(si.I8,(K,{payload:Ve})=>Ve.perkb?Object.assign(Object.assign({},K),{feeRatesPerKB:Ve}):Ve.perkw?Object.assign(Object.assign({},K),{feeRatesPerKW:Ve}):Object.assign({},K)),(0,b.on)(si.Lu,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{balance:Ve})),(0,b.on)(si.xS,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{localRemoteBalance:Ve})),(0,b.on)(si.Z8,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{peers:Ve})),(0,b.on)(si.X3,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{peers:[...K.peers,Ve]})),(0,b.on)(si.EK,(K,{payload:Ve})=>{const H=[...K.peers],_e=K.peers.findIndex(pt=>pt.id===Ve.id);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{peers:H})}),(0,b.on)(si.as,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{activeChannels:Ve.activeChannels,pendingChannels:Ve.pendingChannels,inactiveChannels:Ve.inactiveChannels})),(0,b.on)(si.OG,(K,{payload:Ve})=>{const H=[...K.peers];return H.forEach(_e=>{_e.id===Ve.id&&(_e.connected=!1,delete _e.netaddr)}),Object.assign(Object.assign({},K),{peers:H})}),(0,b.on)(si.HI,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{payments:Ve})),(0,b.on)(si.QJ,(K,{payload:Ve})=>{const H=[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels],_e=As(Ve.listForwards,H);switch(Ve.listForwards=_e,Ve.status){case Q.OO.SETTLED:const pt=K.fees;return pt.totalTxCount=0|Ve.totalForwards,Object.assign(Object.assign({},K),{fees:pt,forwardingHistory:Ve});case Q.OO.FAILED:return Object.assign(Object.assign({},K),{failedForwardingHistory:Ve});case Q.OO.LOCAL_FAILED:return Object.assign(Object.assign({},K),{localFailedForwardingHistory:Ve});default:return Object.assign({},K)}}),(0,b.on)(si.YP,(K,{payload:Ve})=>{const H=K.invoices;return H.invoices.unshift(Ve),Object.assign(Object.assign({},K),{invoices:H})}),(0,b.on)(si.Nr,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{invoices:Ve})),(0,b.on)(si.aL,(K,{payload:Ve})=>{const H=K.invoices;return H.invoices=H.invoices.map(_e=>_e.label===Ve.label?Ve:_e),Object.assign(Object.assign({},K),{invoices:H})}),(0,b.on)(si.UH,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{utxos:Ve})),(0,b.on)(si.Zu,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{offers:Ve})),(0,b.on)(si.ZH,(K,{payload:Ve})=>{const H=K.offers;return H.unshift(Ve),Object.assign(Object.assign({},K),{offers:H})}),(0,b.on)(si.JK,(K,{payload:Ve})=>{const H=[...K.offers],_e=K.offers.findIndex(pt=>pt.offer_id===Ve.offer.offer_id);return _e>-1&&H.splice(_e,1,Ve.offer),Object.assign(Object.assign({},K),{offers:H})}),(0,b.on)(si.d7,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{offersBookmarks:Ve})),(0,b.on)(si.e9,(K,{payload:Ve})=>{const H=[...K.offersBookmarks],_e=H.findIndex(pt=>pt.bolt12===Ve.bolt12);if(_e<0)H.unshift(Ve);else{const pt=Object.assign({},H[_e]);pt.title=Ve.title,pt.amountmSat=Ve.amountmSat,pt.lastUpdatedAt=Ve.lastUpdatedAt,pt.description=Ve.description,pt.vendor=Ve.vendor,H.splice(_e,1,pt)}return Object.assign(Object.assign({},K),{offersBookmarks:H})}),(0,b.on)(si.en,(K,{payload:Ve})=>{const H=[...K.offersBookmarks],_e=K.offersBookmarks.findIndex(pt=>pt.bolt12===Ve.bolt12);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{offersBookmarks:H})})),As=(K,Ve)=>(K&&K.length>0?K.forEach((H,_e)=>{if(Ve&&Ve.length>0)for(let pt=0;pt{const H=JSON.parse(JSON.stringify(K.apisCallStatus));return H[Ve.action]={status:Ve.status,statusCode:Ve.statusCode,message:Ve.message,URL:Ve.URL,filePath:Ve.filePath},Object.assign(Object.assign({},K),{apisCallStatus:H})}),(0,b.on)(zt.Zr,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{nodeSettings:Ve})),(0,b.on)(zt.Fd,(K,{payload:Ve})=>Object.assign(Object.assign({},Z1),{nodeSettings:Ve})),(0,b.on)(zt.CX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{information:Ve})),(0,b.on)(zt.RX,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{fees:Ve})),(0,b.on)(zt.eN,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{activeChannels:Ve})),(0,b.on)(zt.TW,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{pendingChannels:Ve})),(0,b.on)(zt.i,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{inactiveChannels:Ve})),(0,b.on)(zt.HG,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{channelsStatus:Ve})),(0,b.on)(zt.Bw,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{onchainBalance:Ve})),(0,b.on)(zt.On,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{lightningBalance:Ve})),(0,b.on)(zt.Z8,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{peers:Ve})),(0,b.on)(zt.EK,(K,{payload:Ve})=>{const H=[...K.peers],_e=K.peers.findIndex(pt=>pt.nodeId===Ve.nodeId);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{peers:H})}),(0,b.on)(zt.OG,(K,{payload:Ve})=>{const H=[...K.activeChannels],_e=K.activeChannels.findIndex(pt=>pt.channelId===Ve.channelId);return _e>-1&&H.splice(_e,1),Object.assign(Object.assign({},K),{activeChannels:H})}),(0,b.on)(zt.HI,(K,{payload:Ve})=>{if(Ve&&Ve.sent){const H=[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels];Ve.sent.map(_e=>{const pt=K.peers.find(Ci=>Ci.nodeId===_e.recipientNodeId);return _e.recipientNodeAlias=pt?pt.alias:_e.recipientNodeId,_e.parts&&_e.parts.map(Ci=>{const xn=H.find(_r=>_r.channelId===Ci.toChannelId);return Ci.toChannelAlias=xn?xn.alias:Ci.toChannelId,_e.parts}),Ve.sent})}if(Ve&&Ve.relayed){const H=[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels];Ve.relayed.forEach(_e=>{_e=U2(_e,H)})}return Object.assign(Object.assign({},K),{payments:Ve})}),(0,b.on)(zt.Lf,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{transactions:Ve})),(0,b.on)(zt.YP,(K,{payload:Ve})=>{const H=K.invoices;return H.unshift(Ve),Object.assign(Object.assign({},K),{invoices:H})}),(0,b.on)(zt.Nr,(K,{payload:Ve})=>Object.assign(Object.assign({},K),{invoices:Ve})),(0,b.on)(zt.aL,(K,{payload:Ve})=>{let H=K.invoices;return H=H.map(_e=>{if(_e.paymentHash===Ve.paymentHash){if(Ve.hasOwnProperty("type")){const pt=JSON.parse(JSON.stringify(_e));return pt.amountSettled=Ve.parts&&Ve.parts.length&&Ve.parts.length>0&&Ve.parts[0].amount?Ve.parts[0].amount/1e3:0,pt.receivedAt=Ve.parts&&Ve.parts.length&&Ve.parts.length>0&&Ve.parts[0].timestamp?Math.round(Ve.parts[0].timestamp/1e3):0,pt.status="received",pt}return Ve}return _e}),Object.assign(Object.assign({},K),{invoices:H})}),(0,b.on)(zt.DJ,(K,{payload:Ve})=>{let H=K.pendingChannels;return H=H.map(_e=>(_e.channelId===Ve.channelId&&_e.nodeId===Ve.remoteNodeId&&(Ve.currentState=Ve.currentState.replace(/_/g," "),_e.state=Ve.currentState),_e)),Object.assign(Object.assign({},K),{pendingChannels:H})}),(0,b.on)(zt.ti,(K,{payload:Ve})=>{const H=K.payments,_e=U2(Ve,[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels]);_e.amountIn=Math.round(Ve.amountIn/1e3),_e.amountOut=Math.round(Ve.amountOut/1e3),H.relayed.unshift(_e);const pt=Ve.amountIn-Ve.amountOut,Ci={localBalance:K.lightningBalance.localBalance+pt,remoteBalance:K.lightningBalance.remoteBalance-pt},xn=K.channelsStatus;xn.active.capacity=K.channelsStatus.active.capacity+pt;const _r={daily_fee:K.fees.daily_fee+pt,daily_txs:K.fees.daily_txs+1,weekly_fee:K.fees.weekly_fee+pt,weekly_txs:K.fees.weekly_txs+1,monthly_fee:K.fees.monthly_fee+pt,monthly_txs:K.fees.monthly_txs+1},Un=K.activeChannels;let ea=!1,hs=!1;for(const ar of Un){if(ar.channelId===Ve.fromChannelId){ea=!0;const sa=ar.toLocal+ar.toRemote;ar.toLocal=ar.toLocal+_e.amountIn,ar.toRemote=ar.toRemote-_e.amountIn,ar.balancedness=0===sa?1:+(1-Math.abs((ar.toLocal-ar.toRemote)/sa)).toFixed(3)}if(ar.channelId===Ve.toChannelId){hs=!0;const sa=ar.toLocal+ar.toRemote;ar.toLocal=ar.toLocal-_e.amountOut,ar.toRemote=ar.toRemote+_e.amountOut,ar.balancedness=0===sa?1:+(1-Math.abs((ar.toLocal-ar.toRemote)/sa)).toFixed(3)}if(hs&&ea)break}return Object.assign(Object.assign({},K),{payments:H,lightningBalance:Ci,channelStatus:xn,fees:_r,activeChannels:Un})})),U2=(K,Ve)=>{if("payment-relayed"===K.type)if(Ve&&Ve.length>0)for(let H=0;H0)for(let H=0;H{Ve[H].channelId.toString()===_e.channelId&&(_e.channelAlias=Ve[H].alias?Ve[H].alias:_e.channelId,_e.shortChannelId=Ve[H].shortChannelId?Ve[H].shortChannelId:"")}),K.outgoing.forEach(_e=>{Ve[H].channelId.toString()===_e.channelId&&(_e.channelAlias=Ve[H].alias?Ve[H].alias:_e.channelId,_e.shortChannelId=Ve[H].shortChannelId?Ve[H].shortChannelId:"")}),H===Ve.length-1&&(K.incoming[0].channelAlias||K.incoming.forEach(_e=>{_e.channelAlias=_e.channelId.substring(0,17)+"...",_e.shortChannelId=""}),K.outgoing[0].channelAlias||K.outgoing.forEach(_e=>{_e.channelAlias=_e.channelId.substring(0,17)+"...",_e.shortChannelId=""}));else K.incoming.forEach(H=>{H.channelAlias=H.channelId.substring(0,17)+"...",H.shortChannelId=""}),K.outgoing.forEach(H=>{H.channelAlias=H.channelId.substring(0,17)+"...",H.shortChannelId=""});K.amountIn=K.incoming.reduce((H,_e)=>H+_e.amount,0),K.fromChannelId=K.incoming[0].channelId,K.fromChannelAlias=K.incoming[0].channelAlias,K.fromShortChannelId=K.incoming[0].shortChannelId,K.amountOut=K.outgoing.reduce((H,_e)=>H+_e.amount,0),K.toChannelId=K.outgoing[0].channelId,K.toChannelAlias=K.outgoing[0].channelAlias,K.toShortChannelId=K.outgoing[0].shortChannelId}return K};let q4=(()=>{class K{}return K.\u0275fac=function(H){return new(H||K)},K.\u0275mod=e.oAB({type:K,bootstrap:[l1]}),K.\u0275inj=e.cJS({providers:[{provide:M.TP,useClass:F2,multi:!0},$r.a1,Se.m,wo.D,B1.d,Ur.W,mi.v,He],imports:[[f.PW,ds.m,O2,a.xu,t.t6,E.forRoot({idle:3590,timeout:10,ping:12e3}),b.Aw.forRoot({root:Q4,lnd:r3,cln:G1,ecl:uo},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),d.sQ.forRoot([ut.V,Ts.l,V2.J,U1.o]),Qe.NZ.production?[]:N.FT.instrument()]]}),K})();Qe.NZ.production&&(0,e.G48)(),t.q6().bootstrapModule(q4).catch(K=>console.log(K))},7854:(Fe,Y)=>{"use strict";function p(Q){return Object.keys(Q).map(Ge=>Q[Ge])}var Q;Object.defineProperty(Y,"__esModule",{value:!0}),(Q=Y.HashAlgorithms||(Y.HashAlgorithms={})).SHA1="sha1",Q.SHA256="sha256",Q.SHA512="sha512";const t=p(Y.HashAlgorithms);!function(Q){Q.ASCII="ascii",Q.BASE64="base64",Q.HEX="hex",Q.LATIN1="latin1",Q.UTF8="utf8"}(Y.KeyEncodings||(Y.KeyEncodings={}));const e=p(Y.KeyEncodings);!function(Q){Q.HOTP="hotp",Q.TOTP="totp"}(Y.Strategy||(Y.Strategy={}));const f=p(Y.Strategy),M=()=>{throw new Error("Please provide an options.createDigest implementation.")};function a(Q){return/^(\d+)$/.test(Q)}function b(Q,Ge,ve){return Q.length>=Ge?Q:`${Array(Ge+1).join(ve)}${Q}`.slice(-1*Ge)}function d(Q){const Ge=`otpauth://${Q.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,ve=[];if(f.indexOf(Q.type)<0)throw new Error(`Expecting options.type to be one of ${f.join(", ")}. Received ${Q.type}.`);if("hotp"===Q.type){if(null==Q.counter||"number"!=typeof Q.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');ve.push(`&counter=${Q.counter}`)}return"totp"===Q.type&&Q.step&&ve.push(`&period=${Q.step}`),Q.digits&&ve.push(`&digits=${Q.digits}`),Q.algorithm&&ve.push(`&algorithm=${Q.algorithm.toUpperCase()}`),Q.issuer&&ve.push(`&issuer=${encodeURIComponent(Q.issuer)}`),Ge.replace("{labelPrefix}",encodeURIComponent(Q.issuer||Q.accountName)).replace("{accountName}",encodeURIComponent(Q.accountName)).replace("{secret}",Q.secret).replace("{query}",ve.join(""))}class N{constructor(Ge={}){this._defaultOptions=Object.freeze(Us({},Ge)),this._options=Object.freeze({})}create(Ge={}){return new N(Ge)}clone(Ge={}){const ve=this.create(Us(Us({},this._defaultOptions),Ge));return ve.options=this._options,ve}get options(){return Object.freeze(Us(Us({},this._defaultOptions),this._options))}set options(Ge){this._options=Object.freeze(Us(Us({},this._options),Ge))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function h(Q){if("function"!=typeof Q.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof Q.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof Q.digits)throw new Error("Expecting options.digits to be a number.");if(!Q.algorithm||t.indexOf(Q.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${Q.algorithm}.`);if(!Q.encoding||e.indexOf(Q.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${Q.encoding}.`)}const A=(Q,Ge,ve)=>Buffer.from(Ge,ve).toString("hex");function D(){return{algorithm:Y.HashAlgorithms.SHA1,createHmacKey:A,createDigest:M,digits:6,encoding:Y.KeyEncodings.ASCII}}function w(Q){const Ge=Us(Us({},D()),Q);return h(Ge),Object.freeze(Ge)}function S(Q){return b(Q.toString(16),16,"0")}function I(Q,Ge){const ve=Buffer.from(Q,"hex"),F=15&ve[ve.length-1],lt=((127&ve[F])<<24|(255&ve[F+1])<<16|(255&ve[F+2])<<8|255&ve[F+3])%Math.pow(10,Ge);return b(String(lt),Ge,"0")}function U(Q,Ge,ve){const F=ve.digest||function L(Q,Ge,ve){const F=S(Ge),Ae=ve.createHmacKey(ve.algorithm,Q,ve.encoding);return ve.createDigest(ve.algorithm,Ae,F)}(Q,Ge,ve);return I(F,ve.digits)}function Z(Q,Ge,ve,F){return!!a(Q)&&Q===U(Ge,ve,F)}function j(Q,Ge,ve,F,Ae){return d({algorithm:Ae.algorithm,digits:Ae.digits,type:Y.Strategy.HOTP,accountName:Q,counter:F,issuer:Ge,secret:ve})}class ne extends N{create(Ge={}){return new ne(Ge)}allOptions(){return w(this.options)}generate(Ge,ve){return U(Ge,ve,this.allOptions())}check(Ge,ve,F){return Z(Ge,ve,F,this.allOptions())}verify(Ge){if("object"!=typeof Ge)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ge.token,Ge.secret,Ge.counter)}keyuri(Ge,ve,F,Ae){return j(Ge,ve,F,Ae,this.allOptions())}}function X(Q){if("number"==typeof Q)return[Math.abs(Q),Math.abs(Q)];if(Array.isArray(Q)){const[Ge,ve]=Q;if("number"==typeof Ge&&"number"==typeof ve)return[Math.abs(Ge),Math.abs(ve)]}throw new Error("Expecting options.window to be an number or [number, number].")}function de(Q){if(h(Q),X(Q.window),"number"!=typeof Q.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof Q.step)throw new Error("Expecting options.step to be a number.")}const ee=(Q,Ge,ve)=>{const F=Q.length,Ae=Buffer.from(Q,Ge).toString("hex");if(F{switch(Q){case Y.HashAlgorithms.SHA1:return ee(Ge,ve,20);case Y.HashAlgorithms.SHA256:return ee(Ge,ve,32);case Y.HashAlgorithms.SHA512:return ee(Ge,ve,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${Q}.`)}};function ce(){return{algorithm:Y.HashAlgorithms.SHA1,createDigest:M,createHmacKey:te,digits:6,encoding:Y.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function J(Q){const Ge=Us(Us({},ce()),Q);return de(Ge),Object.freeze(Ge)}function ge(Q,Ge){return Math.floor(Q/Ge/1e3)}function y(Q,Ge){return U(Q,ge(Ge.epoch,Ge.step),Ge)}function i(Q,Ge,ve,F){const Ae=[];if(0===F)return Ae;for(let lt=1;lt<=F;lt++)Ae.push(Q+Ge*lt*ve);return Ae}function r(Q,Ge,ve){const F=X(ve),Ae=1e3*Ge;return{current:Q,past:i(Q,-1,Ae,F[0]),future:i(Q,1,Ae,F[1])}}function u(Q,Ge,ve){return!!a(Q)&&Q===y(Ge,ve)}function c(Q,Ge,ve,F){let Ae=null;return Q.some((lt,Ie)=>!!u(Ge,ve,$C(Us({},F),{epoch:lt}))&&(Ae=Ie+1,!0)),Ae}function C(Q,Ge,ve){if(u(Q,Ge,ve))return 0;const F=r(ve.epoch,ve.step,ve.window),Ae=c(F.past,Q,Ge,ve);return null!==Ae?-1*Ae:c(F.future,Q,Ge,ve)}function E(Q,Ge){return Math.floor(Q/1e3)%Ge}function O(Q,Ge){return Ge-E(Q,Ge)}function _(Q,Ge,ve,F){return d({algorithm:F.algorithm,digits:F.digits,step:F.step,type:Y.Strategy.TOTP,accountName:Q,issuer:Ge,secret:ve})}class n extends ne{create(Ge={}){return new n(Ge)}allOptions(){return J(this.options)}generate(Ge){return y(Ge,this.allOptions())}checkDelta(Ge,ve){return C(Ge,ve,this.allOptions())}check(Ge,ve){return"number"==typeof this.checkDelta(Ge,ve)}verify(Ge){if("object"!=typeof Ge)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ge.token,Ge.secret)}timeRemaining(){const Ge=this.allOptions();return O(Ge.epoch,Ge.step)}timeUsed(){const Ge=this.allOptions();return E(Ge.epoch,Ge.step)}keyuri(Ge,ve,F){return _(Ge,ve,F,this.allOptions())}}function v(Q){if(de(Q),"function"!=typeof Q.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(Q.keyEncoder&&"function"!=typeof Q.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function B(){return{algorithm:Y.HashAlgorithms.SHA1,createDigest:M,createHmacKey:te,digits:6,encoding:Y.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function P(Q){const Ge=Us(Us({},B()),Q);return v(Ge),Object.freeze(Ge)}function z(Q,Ge){return Ge.keyEncoder(Q,Ge.encoding)}function se(Q,Ge){return Ge.keyDecoder(Q,Ge.encoding)}function fe(Q,Ge){return z(Ge.createRandomBytes(Q,Ge.encoding),Ge)}function xe(Q,Ge){return y(se(Q,Ge),Ge)}function Re(Q,Ge,ve){return C(Q,se(Ge,ve),ve)}class we extends n{create(Ge={}){return new we(Ge)}allOptions(){return P(this.options)}generate(Ge){return xe(Ge,this.allOptions())}checkDelta(Ge,ve){return Re(Ge,ve,this.allOptions())}encode(Ge){return z(Ge,this.allOptions())}decode(Ge){return se(Ge,this.allOptions())}generateSecret(Ge=10){return fe(Ge,this.allOptions())}}Y.Authenticator=we,Y.HASH_ALGORITHMS=t,Y.HOTP=ne,Y.KEY_ENCODINGS=e,Y.OTP=N,Y.STRATEGY=f,Y.TOTP=n,Y.authenticatorCheckWithWindow=Re,Y.authenticatorDecoder=se,Y.authenticatorDefaultOptions=B,Y.authenticatorEncoder=z,Y.authenticatorGenerateSecret=fe,Y.authenticatorOptionValidator=v,Y.authenticatorOptions=P,Y.authenticatorToken=xe,Y.createDigestPlaceholder=M,Y.hotpCheck=Z,Y.hotpCounter=S,Y.hotpCreateHmacKey=A,Y.hotpDefaultOptions=D,Y.hotpDigestToToken=I,Y.hotpKeyuri=j,Y.hotpOptions=w,Y.hotpOptionsValidator=h,Y.hotpToken=U,Y.isTokenValid=a,Y.keyuri=d,Y.objectValues=p,Y.padStart=b,Y.totpCheck=u,Y.totpCheckByEpoch=c,Y.totpCheckWithWindow=C,Y.totpCounter=ge,Y.totpCreateHmacKey=te,Y.totpDefaultOptions=ce,Y.totpEpochAvailable=r,Y.totpKeyuri=_,Y.totpOptions=J,Y.totpOptionsValidator=de,Y.totpPadSecret=ee,Y.totpTimeRemaining=O,Y.totpTimeUsed=E,Y.totpToken=y},6098:(Fe,Y,p)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(1348));Y.createDigest=(a,b,d)=>e.createHmac(a,Buffer.from(b,"hex")).update(Buffer.from(d,"hex")).digest().toString("hex"),Y.createRandomBytes=(a,b)=>e.randomBytes(a).toString(b)},1415:(Fe,Y,p)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(2167));Y.keyDecoder=(a,b)=>e.decode(a).toString(b),Y.keyEncoder=(a,b)=>e.encode(Buffer.from(a,b).toString("ascii")).toString().replace(/=/g,"")},842:(Fe,Y,p)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var t=p(6098),e=p(1415),f=p(7854);const M=new f.HOTP({createDigest:t.createDigest}),a=new f.TOTP({createDigest:t.createDigest}),b=new f.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});Y.authenticator=b,Y.hotp=M,Y.totp=a},7977:(Fe,Y,p)=>{"use strict";const t=Y;t.bignum=p(3854),t.define=p(9516).define,t.base=p(7813),t.constants=p(5459),t.decoders=p(196),t.encoders=p(1131)},9516:(Fe,Y,p)=>{"use strict";const t=p(1131),e=p(196),f=p(3894);function a(b,d){this.name=b,this.body=d,this.decoders={},this.encoders={}}Y.define=function(d,N){return new a(d,N)},a.prototype._createNamed=function(d){const N=this.name;function h(A){this._initNamed(A,N)}return f(h,d),h.prototype._initNamed=function(D,w){d.call(this,D,w)},new h(this)},a.prototype._getDecoder=function(d){return this.decoders.hasOwnProperty(d=d||"der")||(this.decoders[d]=this._createNamed(e[d])),this.decoders[d]},a.prototype.decode=function(d,N,h){return this._getDecoder(N).decode(d,h)},a.prototype._getEncoder=function(d){return this.encoders.hasOwnProperty(d=d||"der")||(this.encoders[d]=this._createNamed(t[d])),this.encoders[d]},a.prototype.encode=function(d,N,h){return this._getEncoder(N).encode(d,h)}},2769:(Fe,Y,p)=>{"use strict";const t=p(3894),e=p(4919).b,f=p(2038).Buffer;function M(b,d){e.call(this,d),f.isBuffer(b)?(this.base=b,this.offset=0,this.length=b.length):this.error("Input not Buffer")}function a(b,d){if(Array.isArray(b))this.length=0,this.value=b.map(function(N){return a.isEncoderBuffer(N)||(N=new a(N,d)),this.length+=N.length,N},this);else if("number"==typeof b){if(!(0<=b&&b<=255))return d.error("non-byte EncoderBuffer value");this.value=b,this.length=1}else if("string"==typeof b)this.value=b,this.length=f.byteLength(b);else{if(!f.isBuffer(b))return d.error("Unsupported type: "+typeof b);this.value=b,this.length=b.length}}t(M,e),Y.C=M,M.isDecoderBuffer=function(d){return d instanceof M||"object"==typeof d&&f.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},M.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},M.prototype.restore=function(d){const N=new M(this.base);return N.offset=d.offset,N.length=this.offset,this.offset=d.offset,e.prototype.restore.call(this,d.reporter),N},M.prototype.isEmpty=function(){return this.offset===this.length},M.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},M.prototype.skip=function(d,N){if(!(this.offset+d<=this.length))return this.error(N||"DecoderBuffer overrun");const h=new M(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+d,this.offset+=d,h},M.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},Y.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,N){return d||(d=f.alloc(this.length)),N||(N=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(h){h.join(d,N),N+=h.length}):("number"==typeof this.value?d[N]=this.value:"string"==typeof this.value?d.write(this.value,N):f.isBuffer(this.value)&&this.value.copy(d,N),N+=this.length)),d}},7813:(Fe,Y,p)=>{"use strict";const t=Y;t.Reporter=p(4919).b,t.DecoderBuffer=p(2769).C,t.EncoderBuffer=p(2769).R,t.Node=p(1430)},1430:(Fe,Y,p)=>{"use strict";const t=p(4919).b,e=p(2769).R,f=p(2769).C,M=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"],b=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function N(A,D,w){const S={};this._baseState=S,S.name=w,S.enc=A,S.parent=D||null,S.children=null,S.tag=null,S.args=null,S.reverseArgs=null,S.choice=null,S.optional=!1,S.any=!1,S.obj=!1,S.use=null,S.useDecoder=null,S.key=null,S.default=null,S.explicit=null,S.implicit=null,S.contains=null,S.parent||(S.children=[],this._wrap())}Fe.exports=N;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];N.prototype.clone=function(){const D=this._baseState,w={};h.forEach(function(I){w[I]=D[I]});const S=new this.constructor(w.parent);return S._baseState=w,S},N.prototype._wrap=function(){const D=this._baseState;b.forEach(function(w){this[w]=function(){const I=new this.constructor(this);return D.children.push(I),I[w].apply(I,arguments)}},this)},N.prototype._init=function(D){const w=this._baseState;M(null===w.parent),D.call(this),w.children=w.children.filter(function(S){return S._baseState.parent===this},this),M.equal(w.children.length,1,"Root node can have only one child")},N.prototype._useArgs=function(D){const w=this._baseState,S=D.filter(function(I){return I instanceof this.constructor},this);D=D.filter(function(I){return!(I instanceof this.constructor)},this),0!==S.length&&(M(null===w.children),w.children=S,S.forEach(function(I){I._baseState.parent=this},this)),0!==D.length&&(M(null===w.args),w.args=D,w.reverseArgs=D.map(function(I){if("object"!=typeof I||I.constructor!==Object)return I;const L={};return Object.keys(I).forEach(function(U){U==(0|U)&&(U|=0),L[I[U]]=U}),L}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(A){N.prototype[A]=function(){throw new Error(A+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(A){N.prototype[A]=function(){const w=this._baseState,S=Array.prototype.slice.call(arguments);return M(null===w.tag),w.tag=A,this._useArgs(S),this}}),N.prototype.use=function(D){M(D);const w=this._baseState;return M(null===w.use),w.use=D,this},N.prototype.optional=function(){return this._baseState.optional=!0,this},N.prototype.def=function(D){const w=this._baseState;return M(null===w.default),w.default=D,w.optional=!0,this},N.prototype.explicit=function(D){const w=this._baseState;return M(null===w.explicit&&null===w.implicit),w.explicit=D,this},N.prototype.implicit=function(D){const w=this._baseState;return M(null===w.explicit&&null===w.implicit),w.implicit=D,this},N.prototype.obj=function(){const D=this._baseState,w=Array.prototype.slice.call(arguments);return D.obj=!0,0!==w.length&&this._useArgs(w),this},N.prototype.key=function(D){const w=this._baseState;return M(null===w.key),w.key=D,this},N.prototype.any=function(){return this._baseState.any=!0,this},N.prototype.choice=function(D){const w=this._baseState;return M(null===w.choice),w.choice=D,this._useArgs(Object.keys(D).map(function(S){return D[S]})),this},N.prototype.contains=function(D){const w=this._baseState;return M(null===w.use),w.contains=D,this},N.prototype._decode=function(D,w){const S=this._baseState;if(null===S.parent)return D.wrapResult(S.children[0]._decode(D,w));let Z,I=S.default,L=!0,U=null;if(null!==S.key&&(U=D.enterKey(S.key)),S.optional){let j=null;if(null!==S.explicit?j=S.explicit:null!==S.implicit?j=S.implicit:null!==S.tag&&(j=S.tag),null!==j||S.any){if(L=this._peekTag(D,j,S.any),D.isError(L))return L}else{const ne=D.save();try{null===S.choice?this._decodeGeneric(S.tag,D,w):this._decodeChoice(D,w),L=!0}catch(X){L=!1}D.restore(ne)}}if(S.obj&&L&&(Z=D.enterObject()),L){if(null!==S.explicit){const ne=this._decodeTag(D,S.explicit);if(D.isError(ne))return ne;D=ne}const j=D.offset;if(null===S.use&&null===S.choice){let ne;S.any&&(ne=D.save());const X=this._decodeTag(D,null!==S.implicit?S.implicit:S.tag,S.any);if(D.isError(X))return X;S.any?I=D.raw(ne):D=X}if(w&&w.track&&null!==S.tag&&w.track(D.path(),j,D.length,"tagged"),w&&w.track&&null!==S.tag&&w.track(D.path(),D.offset,D.length,"content"),S.any||(I=null===S.choice?this._decodeGeneric(S.tag,D,w):this._decodeChoice(D,w)),D.isError(I))return I;if(!S.any&&null===S.choice&&null!==S.children&&S.children.forEach(function(X){X._decode(D,w)}),S.contains&&("octstr"===S.tag||"bitstr"===S.tag)){const ne=new f(I);I=this._getUse(S.contains,D._reporterState.obj)._decode(ne,w)}}return S.obj&&L&&(I=D.leaveObject(Z)),null===S.key||null===I&&!0!==L?null!==U&&D.exitKey(U):D.leaveKey(U,S.key,I),I},N.prototype._decodeGeneric=function(D,w,S){const I=this._baseState;return"seq"===D||"set"===D?null:"seqof"===D||"setof"===D?this._decodeList(w,D,I.args[0],S):/str$/.test(D)?this._decodeStr(w,D,S):"objid"===D&&I.args?this._decodeObjid(w,I.args[0],I.args[1],S):"objid"===D?this._decodeObjid(w,null,null,S):"gentime"===D||"utctime"===D?this._decodeTime(w,D,S):"null_"===D?this._decodeNull(w,S):"bool"===D?this._decodeBool(w,S):"objDesc"===D?this._decodeStr(w,D,S):"int"===D||"enum"===D?this._decodeInt(w,I.args&&I.args[0],S):null!==I.use?this._getUse(I.use,w._reporterState.obj)._decode(w,S):w.error("unknown tag: "+D)},N.prototype._getUse=function(D,w){const S=this._baseState;return S.useDecoder=this._use(D,w),M(null===S.useDecoder._baseState.parent),S.useDecoder=S.useDecoder._baseState.children[0],S.implicit!==S.useDecoder._baseState.implicit&&(S.useDecoder=S.useDecoder.clone(),S.useDecoder._baseState.implicit=S.implicit),S.useDecoder},N.prototype._decodeChoice=function(D,w){const S=this._baseState;let I=null,L=!1;return Object.keys(S.choice).some(function(U){const Z=D.save(),j=S.choice[U];try{const ne=j._decode(D,w);if(D.isError(ne))return!1;I={type:U,value:ne},L=!0}catch(ne){return D.restore(Z),!1}return!0},this),L?I:D.error("Choice not matched")},N.prototype._createEncoderBuffer=function(D){return new e(D,this.reporter)},N.prototype._encode=function(D,w,S){const I=this._baseState;if(null!==I.default&&I.default===D)return;const L=this._encodeValue(D,w,S);return void 0===L||this._skipDefault(L,w,S)?void 0:L},N.prototype._encodeValue=function(D,w,S){const I=this._baseState;if(null===I.parent)return I.children[0]._encode(D,w||new t);let L=null;if(this.reporter=w,I.optional&&void 0===D){if(null===I.default)return;D=I.default}let U=null,Z=!1;if(I.any)L=this._createEncoderBuffer(D);else if(I.choice)L=this._encodeChoice(D,w);else if(I.contains)U=this._getUse(I.contains,S)._encode(D,w),Z=!0;else if(I.children)U=I.children.map(function(j){if("null_"===j._baseState.tag)return j._encode(null,w,D);if(null===j._baseState.key)return w.error("Child should have a key");const ne=w.enterKey(j._baseState.key);if("object"!=typeof D)return w.error("Child expected, but input is not object");const X=j._encode(D[j._baseState.key],w,D);return w.leaveKey(ne),X},this).filter(function(j){return j}),U=this._createEncoderBuffer(U);else if("seqof"===I.tag||"setof"===I.tag){if(!I.args||1!==I.args.length)return w.error("Too many args for : "+I.tag);if(!Array.isArray(D))return w.error("seqof/setof, but data is not Array");const j=this.clone();j._baseState.implicit=null,U=this._createEncoderBuffer(D.map(function(ne){return this._getUse(this._baseState.args[0],D)._encode(ne,w)},j))}else null!==I.use?L=this._getUse(I.use,S)._encode(D,w):(U=this._encodePrimitive(I.tag,D),Z=!0);if(!I.any&&null===I.choice){const j=null!==I.implicit?I.implicit:I.tag,ne=null===I.implicit?"universal":"context";null===j?null===I.use&&w.error("Tag could be omitted only for .use()"):null===I.use&&(L=this._encodeComposite(j,Z,ne,U))}return null!==I.explicit&&(L=this._encodeComposite(I.explicit,!1,"context",L)),L},N.prototype._encodeChoice=function(D,w){const S=this._baseState,I=S.choice[D.type];return I||M(!1,D.type+" not found in "+JSON.stringify(Object.keys(S.choice))),I._encode(D.value,w)},N.prototype._encodePrimitive=function(D,w){const S=this._baseState;if(/str$/.test(D))return this._encodeStr(w,D);if("objid"===D&&S.args)return this._encodeObjid(w,S.reverseArgs[0],S.args[1]);if("objid"===D)return this._encodeObjid(w,null,null);if("gentime"===D||"utctime"===D)return this._encodeTime(w,D);if("null_"===D)return this._encodeNull();if("int"===D||"enum"===D)return this._encodeInt(w,S.args&&S.reverseArgs[0]);if("bool"===D)return this._encodeBool(w);if("objDesc"===D)return this._encodeStr(w,D);throw new Error("Unsupported tag: "+D)},N.prototype._isNumstr=function(D){return/^[0-9 ]*$/.test(D)},N.prototype._isPrintstr=function(D){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(D)}},4919:(Fe,Y,p)=>{"use strict";const t=p(3894);function e(M){this._reporterState={obj:null,path:[],options:M||{},errors:[]}}function f(M,a){this.path=M,this.rethrow(a)}Y.b=e,e.prototype.isError=function(a){return a instanceof f},e.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},e.prototype.restore=function(a){const b=this._reporterState;b.obj=a.obj,b.path=b.path.slice(0,a.pathLen)},e.prototype.enterKey=function(a){return this._reporterState.path.push(a)},e.prototype.exitKey=function(a){const b=this._reporterState;b.path=b.path.slice(0,a-1)},e.prototype.leaveKey=function(a,b,d){const N=this._reporterState;this.exitKey(a),null!==N.obj&&(N.obj[b]=d)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const a=this._reporterState,b=a.obj;return a.obj={},b},e.prototype.leaveObject=function(a){const b=this._reporterState,d=b.obj;return b.obj=a,d},e.prototype.error=function(a){let b;const d=this._reporterState,N=a instanceof f;if(b=N?a:new f(d.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),a.message||a,a.stack),!d.options.partial)throw b;return N||d.errors.push(b),b},e.prototype.wrapResult=function(a){const b=this._reporterState;return b.options.partial?{result:this.isError(a)?null:a,errors:b.errors}:a},t(f,Error),f.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,f),!this.stack)try{throw new Error(this.message)}catch(b){this.stack=b.stack}return this}},5496:(Fe,Y)=>{"use strict";function p(t){const e={};return Object.keys(t).forEach(function(f){(0|f)==f&&(f|=0),e[t[f]]=f}),e}Y.tagClass={0:"universal",1:"application",2:"context",3:"private"},Y.tagClassByName=p(Y.tagClass),Y.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"},Y.tagByName=p(Y.tag)},5459:(Fe,Y,p)=>{"use strict";const t=Y;t._reverse=function(f){const M={};return Object.keys(f).forEach(function(a){(0|a)==a&&(a|=0),M[f[a]]=a}),M},t.der=p(5496)},7127:(Fe,Y,p)=>{"use strict";const t=p(3894),e=p(3854),f=p(2769).C,M=p(1430),a=p(5496);function b(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new d,this.tree._init(A.body)}function d(A){M.call(this,"der",A)}function N(A,D){let w=A.readUInt8(D);if(A.isError(w))return w;const S=a.tagClass[w>>6],I=0==(32&w);if(31==(31&w)){let U=w;for(w=0;128==(128&U);){if(U=A.readUInt8(D),A.isError(U))return U;w<<=7,w|=127&U}}else w&=31;return{cls:S,primitive:I,tag:w,tagStr:a.tag[w]}}function h(A,D,w){let S=A.readUInt8(w);if(A.isError(S))return S;if(!D&&128===S)return null;if(0==(128&S))return S;const I=127&S;if(I>4)return A.error("length octect is too long");S=0;for(let L=0;L{"use strict";const t=Y;t.der=p(7127),t.pem=p(9617)},9617:(Fe,Y,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(7127);function M(a){f.call(this,a),this.enc="pem"}t(M,f),Fe.exports=M,M.prototype.decode=function(b,d){const N=b.toString().split(/[\r\n]+/g),h=d.label.toUpperCase(),A=/^-----(BEGIN|END) ([^-]+)-----$/;let D=-1,w=-1;for(let L=0;L{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(1430),M=p(5496);function a(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new b,this.tree._init(h.body)}function b(h){f.call(this,"der",h)}function d(h){return h<10?"0"+h:h}Fe.exports=a,a.prototype.encode=function(A,D){return this.tree._encode(A,D).join()},t(b,f),b.prototype._encodeComposite=function(A,D,w,S){const I=function N(h,A,D,w){let S;if("seqof"===h?h="seq":"setof"===h&&(h="set"),M.tagByName.hasOwnProperty(h))S=M.tagByName[h];else{if("number"!=typeof h||(0|h)!==h)return w.error("Unknown tag: "+h);S=h}return S>=31?w.error("Multi-octet tag encoding unsupported"):(A||(S|=32),S|=M.tagClassByName[D||"universal"]<<6,S)}(A,D,w,this.reporter);if(S.length<128){const Z=e.alloc(2);return Z[0]=I,Z[1]=S.length,this._createEncoderBuffer([Z,S])}let L=1;for(let Z=S.length;Z>=256;Z>>=8)L++;const U=e.alloc(2+L);U[0]=I,U[1]=128|L;for(let Z=1+L,j=S.length;j>0;Z--,j>>=8)U[Z]=255&j;return this._createEncoderBuffer([U,S])},b.prototype._encodeStr=function(A,D){if("bitstr"===D)return this._createEncoderBuffer([0|A.unused,A.data]);if("bmpstr"===D){const w=e.alloc(2*A.length);for(let S=0;S=40)return this.reporter.error("Second objid identifier OOB");A.splice(0,2,40*A[0]+A[1])}let S=0;for(let U=0;U=128;Z>>=7)S++}const I=e.alloc(S);let L=I.length-1;for(let U=A.length-1;U>=0;U--){let Z=A[U];for(I[L--]=127&Z;(Z>>=7)>0;)I[L--]=128|127&Z}return this._createEncoderBuffer(I)},b.prototype._encodeTime=function(A,D){let w;const S=new Date(A);return"gentime"===D?w=[d(S.getUTCFullYear()),d(S.getUTCMonth()+1),d(S.getUTCDate()),d(S.getUTCHours()),d(S.getUTCMinutes()),d(S.getUTCSeconds()),"Z"].join(""):"utctime"===D?w=[d(S.getUTCFullYear()%100),d(S.getUTCMonth()+1),d(S.getUTCDate()),d(S.getUTCHours()),d(S.getUTCMinutes()),d(S.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+D+" time is not supported yet"),this._encodeStr(w,"octstr")},b.prototype._encodeNull=function(){return this._createEncoderBuffer("")},b.prototype._encodeInt=function(A,D){if("string"==typeof A){if(!D)return this.reporter.error("String int or enum given, but no values map");if(!D.hasOwnProperty(A))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(A));A=D[A]}if("number"!=typeof A&&!e.isBuffer(A)){const I=A.toArray();!A.sign&&128&I[0]&&I.unshift(0),A=e.from(I)}if(e.isBuffer(A)){let I=A.length;0===A.length&&I++;const L=e.alloc(I);return A.copy(L),0===A.length&&(L[0]=0),this._createEncoderBuffer(L)}if(A<128)return this._createEncoderBuffer(A);if(A<256)return this._createEncoderBuffer([0,A]);let w=1;for(let I=A;I>=256;I>>=8)w++;const S=new Array(w);for(let I=S.length-1;I>=0;I--)S[I]=255&A,A>>=8;return 128&S[0]&&S.unshift(0),this._createEncoderBuffer(e.from(S))},b.prototype._encodeBool=function(A){return this._createEncoderBuffer(A?255:0)},b.prototype._use=function(A,D){return"function"==typeof A&&(A=A(D)),A._getEncoder("der").tree},b.prototype._skipDefault=function(A,D,w){const S=this._baseState;let I;if(null===S.default)return!1;const L=A.join();if(void 0===S.defaultBuffer&&(S.defaultBuffer=this._encodeValue(S.default,D,w).join()),L.length!==S.defaultBuffer.length)return!1;for(I=0;I{"use strict";const t=Y;t.der=p(6374),t.pem=p(3530)},3530:(Fe,Y,p)=>{"use strict";const t=p(3894),e=p(6374);function f(M){e.call(this,M),this.enc="pem"}t(f,e),Fe.exports=f,f.prototype.encode=function(a,b){const N=e.prototype.encode.call(this,a).toString("base64"),h=["-----BEGIN "+b.label+"-----"];for(let A=0;A=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function N(y,i,r){var u=d(y,r);return r-1>=i&&(u|=d(y,r-1)<<4),u}function h(y,i,r,u){for(var c=0,C=Math.min(y.length,r),E=i;E=49?O-49+10:O>=17?O-17+10:O}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);else if("le"===u)for(c=0,C=0;c>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)O=N(i,r,c)<=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var E=i.length-u,O=E%c,_=Math.min(E,E-O)+u,n=0,v=u;v<_;v+=c)n=h(i,v,v+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==O){var B=1;for(n=h(i,v,i.length,r),v=0;v1&&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 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"],D=[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],w=[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 I(y,i,r){r.negative=i.negative^y.negative;var u=y.length+i.length|0;r.length=u,u=u-1|0;var c=0|y.words[0],C=0|i.words[0],E=c*C,_=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&_,P=Math.min(n,i.length-1),z=Math.max(0,n-y.length+1);z<=P;z++)v+=(E=(c=0|y.words[n-z|0])*(C=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,_=0|v}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,C=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-_.length]+_+u:_+u,(c+=2)>=26&&(c-=26,E--)}for(0!==C&&(u=C.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=D[i],v=w[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var P=B.modn(v).toString(i);u=(B=B.idivn(v)).isZero()?P+u:A[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),C=u||Math.max(1,c);f(c<=C,"byte array longer than desired length"),f(C>0,"Requested array length <= 0"),this.strip();var _,n,E="le"===r,O=new i(C),v=this.clone();if(E){for(n=0;!v.isZero();n++)_=v.andln(255),v.iushrn(8),O[n]=_;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var C=0,E=0;E>>26;for(;0!==C&&E>>26;if(this.length=u.length,0!==C)this.words[this.length]=C,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,C,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,C=i):(c=i,C=this);for(var E=0,O=0;O>26,this.words[O]=67108863&r;for(;0!==E&&O>26,this.words[O]=67108863&r;if(0===E&&O>>13,se=0|c[1],fe=8191&se,xe=se>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,Ae=0|c[4],lt=8191&Ae,Ie=Ae>>>13,De=0|c[5],oe=8191&De,Te=De>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|C[0],xt=8191&ui,Nt=ui>>>13,gt=0|C[1],et=8191>,vt=gt>>>13,$t=0|C[2],jt=8191&$t,Pe=$t>>>13,Oe=0|C[3],le=8191&Oe,be=Oe>>>13,ht=0|C[4],ft=8191&ht,Ht=ht>>>13,it=0|C[5],Ne=8191&it,tt=it>>>13,Je=0|C[6],Se=8191&Je,Ue=Je>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,gi=0|C[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|C[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(O+(_=Math.imul(P,xt))|0)+((8191&(n=(n=Math.imul(P,Nt))+Math.imul(z,xt)|0))<<13)|0;O=((v=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul(fe,xt),n=(n=Math.imul(fe,Nt))+Math.imul(xe,xt)|0,v=Math.imul(xe,Nt);var Wi=(O+(_=_+Math.imul(P,et)|0)|0)+((8191&(n=(n=n+Math.imul(P,vt)|0)+Math.imul(z,et)|0))<<13)|0;O=((v=v+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,v=Math.imul(Q,Nt),_=_+Math.imul(fe,et)|0,n=(n=n+Math.imul(fe,vt)|0)+Math.imul(xe,et)|0,v=v+Math.imul(xe,vt)|0;var Gi=(O+(_=_+Math.imul(P,jt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;O=((v=v+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,v=Math.imul(F,Nt),_=_+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,v=v+Math.imul(Q,vt)|0,_=_+Math.imul(fe,jt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(xe,jt)|0,v=v+Math.imul(xe,Pe)|0;var Yi=(O+(_=_+Math.imul(P,le)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(z,le)|0))<<13)|0;O=((v=v+Math.imul(z,be)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,_=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,v=Math.imul(Ie,Nt),_=_+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,v=v+Math.imul(F,vt)|0,_=_+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,v=v+Math.imul(Q,Pe)|0,_=_+Math.imul(fe,le)|0,n=(n=n+Math.imul(fe,be)|0)+Math.imul(xe,le)|0,v=v+Math.imul(xe,be)|0;var ze=(O+(_=_+Math.imul(P,ft)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;O=((v=v+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,_=Math.imul(oe,xt),n=(n=Math.imul(oe,Nt))+Math.imul(Te,xt)|0,v=Math.imul(Te,Nt),_=_+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,v=v+Math.imul(Ie,vt)|0,_=_+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,v=v+Math.imul(F,Pe)|0,_=_+Math.imul(we,le)|0,n=(n=n+Math.imul(we,be)|0)+Math.imul(Q,le)|0,v=v+Math.imul(Q,be)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(xe,ft)|0,v=v+Math.imul(xe,Ht)|0;var Lt=(O+(_=_+Math.imul(P,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(P,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;O=((v=v+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,v=Math.imul($,Nt),_=_+Math.imul(oe,et)|0,n=(n=n+Math.imul(oe,vt)|0)+Math.imul(Te,et)|0,v=v+Math.imul(Te,vt)|0,_=_+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,v=v+Math.imul(Ie,Pe)|0,_=_+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,be)|0)+Math.imul(F,le)|0,v=v+Math.imul(F,be)|0,_=_+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,v=v+Math.imul(Q,Ht)|0,_=_+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,tt)|0)+Math.imul(xe,Ne)|0,v=v+Math.imul(xe,tt)|0;var pe=(O+(_=_+Math.imul(P,Se)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;O=((v=v+Math.imul(z,Ue)|0)+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,_=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,v=Math.imul(Le,Nt),_=_+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,v=v+Math.imul($,vt)|0,_=_+Math.imul(oe,jt)|0,n=(n=n+Math.imul(oe,Pe)|0)+Math.imul(Te,jt)|0,v=v+Math.imul(Te,Pe)|0,_=_+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,be)|0)+Math.imul(Ie,le)|0,v=v+Math.imul(Ie,be)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,v=v+Math.imul(F,Ht)|0,_=_+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,v=v+Math.imul(Q,tt)|0,_=_+Math.imul(fe,Se)|0,n=(n=n+Math.imul(fe,Ue)|0)+Math.imul(xe,Se)|0,v=v+Math.imul(xe,Ue)|0;var je=(O+(_=_+Math.imul(P,at)|0)|0)+((8191&(n=(n=n+Math.imul(P,yt)|0)+Math.imul(z,at)|0))<<13)|0;O=((v=v+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,_=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,v=Math.imul(Dt,Nt),_=_+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,v=v+Math.imul(Le,vt)|0,_=_+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,v=v+Math.imul($,Pe)|0,_=_+Math.imul(oe,le)|0,n=(n=n+Math.imul(oe,be)|0)+Math.imul(Te,le)|0,v=v+Math.imul(Te,be)|0,_=_+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,v=v+Math.imul(Ie,Ht)|0,_=_+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,v=v+Math.imul(F,tt)|0,_=_+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,v=v+Math.imul(Q,Ue)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(xe,at)|0,v=v+Math.imul(xe,yt)|0;var Ct=(O+(_=_+Math.imul(P,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;O=((v=v+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,_=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,v=Math.imul(Gt,Nt),_=_+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,v=v+Math.imul(Dt,vt)|0,_=_+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,Pe)|0,_=_+Math.imul(W,le)|0,n=(n=n+Math.imul(W,be)|0)+Math.imul($,le)|0,v=v+Math.imul($,be)|0,_=_+Math.imul(oe,ft)|0,n=(n=n+Math.imul(oe,Ht)|0)+Math.imul(Te,ft)|0,v=v+Math.imul(Te,Ht)|0,_=_+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,v=v+Math.imul(Ie,tt)|0,_=_+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,v=v+Math.imul(F,Ue)|0,_=_+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,v=v+Math.imul(Q,yt)|0,_=_+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(xe,Qt)|0,v=v+Math.imul(xe,Jt)|0;var ie=(O+(_=_+Math.imul(P,fi)|0)|0)+((8191&(n=(n=n+Math.imul(P,ai)|0)+Math.imul(z,fi)|0))<<13)|0;O=((v=v+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,_=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,v=Math.imul(Gt,vt),_=_+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,v=v+Math.imul(Dt,Pe)|0,_=_+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,be)|0)+Math.imul(Le,le)|0,v=v+Math.imul(Le,be)|0,_=_+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,v=v+Math.imul($,Ht)|0,_=_+Math.imul(oe,Ne)|0,n=(n=n+Math.imul(oe,tt)|0)+Math.imul(Te,Ne)|0,v=v+Math.imul(Te,tt)|0,_=_+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,v=v+Math.imul(Ie,Ue)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,v=v+Math.imul(F,yt)|0,_=_+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,v=v+Math.imul(Q,Jt)|0;var qe=(O+(_=_+Math.imul(fe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(xe,fi)|0))<<13)|0;O=((v=v+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,_=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,v=Math.imul(Gt,Pe),_=_+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Dt,le)|0,v=v+Math.imul(Dt,be)|0,_=_+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,v=v+Math.imul(Le,Ht)|0,_=_+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,v=v+Math.imul($,tt)|0,_=_+Math.imul(oe,Se)|0,n=(n=n+Math.imul(oe,Ue)|0)+Math.imul(Te,Se)|0,v=v+Math.imul(Te,Ue)|0,_=_+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,v=v+Math.imul(Ie,yt)|0,_=_+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,v=v+Math.imul(F,Jt)|0;var Mt=(O+(_=_+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;O=((v=v+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,_=Math.imul(Yt,le),n=(n=Math.imul(Yt,be))+Math.imul(Gt,le)|0,v=Math.imul(Gt,be),_=_+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,v=v+Math.imul(Dt,Ht)|0,_=_+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,v=v+Math.imul(Le,tt)|0,_=_+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,v=v+Math.imul($,Ue)|0,_=_+Math.imul(oe,at)|0,n=(n=n+Math.imul(oe,yt)|0)+Math.imul(Te,at)|0,v=v+Math.imul(Te,yt)|0,_=_+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,v=v+Math.imul(Ie,Jt)|0;var Vt=(O+(_=_+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;O=((v=v+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,v=Math.imul(Gt,Ht),_=_+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,v=v+Math.imul(Dt,tt)|0,_=_+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,v=v+Math.imul(Le,Ue)|0,_=_+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,v=v+Math.imul($,yt)|0,_=_+Math.imul(oe,Qt)|0,n=(n=n+Math.imul(oe,Jt)|0)+Math.imul(Te,Qt)|0,v=v+Math.imul(Te,Jt)|0;var Mi=(O+(_=_+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;O=((v=v+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,_=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,v=Math.imul(Gt,tt),_=_+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,v=v+Math.imul(Dt,Ue)|0,_=_+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,v=v+Math.imul(Le,yt)|0,_=_+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,v=v+Math.imul($,Jt)|0;var Ei=(O+(_=_+Math.imul(oe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(oe,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;O=((v=v+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,v=Math.imul(Gt,Ue),_=_+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,v=v+Math.imul(Dt,yt)|0,_=_+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,v=v+Math.imul(Le,Jt)|0;var en=(O+(_=_+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;O=((v=v+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,v=Math.imul(Gt,yt),_=_+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,v=v+Math.imul(Dt,Jt)|0;var ji=(O+(_=_+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;O=((v=v+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,_=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,v=Math.imul(Gt,Jt);var Kt=(O+(_=_+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;O=((v=v+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(O+(_=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return O=((v=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=pe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==O&&(E[19]=O,u.length++),u};function Z(y,i,r){return(new j).mulp(y,i,r)}function j(y,i){this.x=y,this.y=i}Math.imul||(L=I),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?L(this,i,r):c<63?I(this,i,r):c<1024?function U(y,i,r){r.negative=i.negative^y.negative,r.length=y.length+i.length;for(var u=0,c=0,C=0;C>>26)|0)>>>26,E&=67108863}r.words[C]=O,u=E,E=c}return 0!==u?r.words[C]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,C,E){for(var O=0;O>>=1)C++;return 1<>>=13),C>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=C>>>26,this.words[u]=67108863&C}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(y){for(var i=new Array(y.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var C,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(C=0;C>>26-r}E&&(this.words[C]=E,this.length++)}if(0!==u){for(C=this.length-1;C>=0;C--)this.words[C+u]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=i%26,E=Math.min((i-C)/26,this.length),O=67108863^67108863>>>C<E)for(this.length-=E,n=0;n=0&&(0!==v||n>=c);n--){var B=0|this.words[n];this.words[n]=v<<26-C|B>>>C,v=B&O}return _&&0!==v&&(_.words[_.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,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+u]=67108863&E}for(;C>26,this.words[C+u]=67108863&E;if(0===O)return this.strip();for(f(-1===O),O=0,C=0;C>26,this.words[C]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),C=i,E=0|C.words[C.length-1];0!=(u=26-this._countBits(E))&&(C=C.ushln(u),c.iushln(u),E=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 v=0;v=0;P--){var z=67108864*(0|c.words[C.length+P])+(0|c.words[C.length+P-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(C,z,P);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(C,1,P),c.isZero()||(c.negative^=1);n&&(n.words[P]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.iadd(i)),{div:c,mod:C}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.isub(i)),{div:E.div,mod:C}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,C,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),C=i.andln(1),E=u.cmp(c);return E<0||1===C&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=new a(0),O=new a(1),_=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++_;for(var n=u.clone(),v=r.clone();!r.isZero();){for(var B=0,P=1;0==(r.words[0]&P)&&B<26;++B,P<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(v)),c.iushrn(1),C.iushrn(1);for(var z=0,se=1;0==(u.words[0]&se)&&z<26;++z,se<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||O.isOdd())&&(E.iadd(n),O.isub(v)),E.iushrn(1),O.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),C.isub(O)):(u.isub(r),E.isub(c),O.isub(C))}return{a:E,b:O,gcd:u.iushln(_)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var O=0,_=1;0==(r.words[0]&_)&&O<26;++O,_<<=1);if(O>0)for(r.iushrn(O);O-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,v=1;0==(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(E),C.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(C)):(u.isub(r),C.isub(c))}return(B=0===r.cmpn(1)?c:C).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var C=r.cmp(u);if(C<0){var E=r;r=u,u=E}else if(0===C||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=O&=67108863}return 0!==C&&(this.words[E]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],C=0|i.words[u];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(y,i){this.name=y,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(y){if("string"==typeof y){var i=a._prime(y);this.m=i.p,this.prime=i}else f(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function ge(y){J.call(this,y),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 i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),C=0;C>>22,E=O}i.words[C-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=C,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),O=E.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(O);)n.redIAdd(O);for(var v=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),P=this.pow(i,c),z=C;0!==P.cmp(E);){for(var se=P,fe=0;0!==se.cmp(E);fe++)se=se.redSqr();f(fe=0;C--){for(var v=r.words[C],B=n-1;B>=0;B--){var P=v>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==P||0!==O?(O<<=1,O|=P,(4==++_||0===C&&0===B)&&(E=this.mul(E,c[O]),_=0,O=0)):_=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new ge(i)},M(ge,J),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},5343:(Fe,Y)=>{"use strict";Y.byteLength=function d(S){var I=b(S),U=I[1];return 3*(I[0]+U)/4-U},Y.toByteArray=function h(S){var I,de,L=b(S),U=L[0],Z=L[1],j=new e(function N(S,I,L){return 3*(I+L)/4-L}(0,U,Z)),ne=0,X=Z>0?U-4:U;for(de=0;de>16&255,j[ne++]=I>>8&255,j[ne++]=255&I;return 2===Z&&(I=t[S.charCodeAt(de)]<<2|t[S.charCodeAt(de+1)]>>4,j[ne++]=255&I),1===Z&&(I=t[S.charCodeAt(de)]<<10|t[S.charCodeAt(de+1)]<<4|t[S.charCodeAt(de+2)]>>2,j[ne++]=I>>8&255,j[ne++]=255&I),j},Y.fromByteArray=function w(S){for(var I,L=S.length,U=L%3,Z=[],j=16383,ne=0,X=L-U;neX?X:ne+j));return 1===U?Z.push(p[(I=S[L-1])>>2]+p[I<<4&63]+"=="):2===U&&Z.push(p[(I=(S[L-2]<<8)+S[L-1])>>10]+p[I>>4&63]+p[I<<2&63]+"="),Z.join("")};for(var p=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=0,a=f.length;M0)throw new Error("Invalid string. Length must be a multiple of 4");var L=S.indexOf("=");return-1===L&&(L=I),[L,L===I?0:4-L%4]}function A(S){return p[S>>18&63]+p[S>>12&63]+p[S>>6&63]+p[63&S]}function D(S,I,L){for(var Z=[],j=I;j=48&&C<=57?C-48:C>=65&&C<=70?C-55:C>=97&&C<=102?C-87:void f(!1,"Invalid character in "+u)}function N(u,c,C){var E=d(u,C);return C-1>=c&&(E|=d(u,C-1)<<4),E}function h(u,c,C,E){for(var O=0,_=0,n=Math.min(u.length,C),v=c;v=49?B-49+10:B>=17?B-17+10:B,f(B>=0&&_0?c:C},a.min=function(c,C){return c.cmp(C)<0?c:C},a.prototype._init=function(c,C,E){if("number"==typeof c)return this._initNumber(c,C,E);if("object"==typeof c)return this._initArray(c,C,E);"hex"===C&&(C=16),f(C===(0|C)&&C>=2&&C<=36);var O=0;"-"===(c=c.toString().replace(/\s+/g,""))[0]&&(O++,this.negative=1),O=0;O-=3)this.words[_]|=(n=c[O]|c[O-1]<<8|c[O-2]<<16)<>>26-v&67108863,(v+=24)>=26&&(v-=26,_++);else if("le"===E)for(O=0,_=0;O>>26-v&67108863,(v+=24)>=26&&(v-=26,_++);return this._strip()},a.prototype._parseHex=function(c,C,E){this.length=Math.ceil((c.length-C)/6),this.words=new Array(this.length);for(var O=0;O=C;O-=2)v=N(c,C,O)<<_,this.words[n]|=67108863&v,_>=18?(_-=18,this.words[n+=1]|=v>>>26):_+=8;else for(O=(c.length-C)%2==0?C+1:C;O=18?(_-=18,this.words[n+=1]|=v>>>26):_+=8;this._strip()},a.prototype._parseBase=function(c,C,E){this.words=[0],this.length=1;for(var O=0,_=1;_<=67108863;_*=C)O++;O--,_=_/C|0;for(var n=c.length-E,v=n%O,B=Math.min(n,n-v)+E,P=0,z=E;z1&&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")]=D}catch(u){a.prototype.inspect=D}else a.prototype.inspect=D;function D(){return(this.red?""}var w=["","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"],S=[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],I=[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 Z(u,c,C){C.negative=c.negative^u.negative;var E=u.length+c.length|0;C.length=E,E=E-1|0;var O=0|u.words[0],_=0|c.words[0],n=O*_,B=n/67108864|0;C.words[0]=67108863&n;for(var P=1;P>>26,se=67108863&B,fe=Math.min(P,c.length-1),xe=Math.max(0,P-u.length+1);xe<=fe;xe++)z+=(n=(O=0|u.words[P-xe|0])*(_=0|c.words[xe])+se)/67108864|0,se=67108863&n;C.words[P]=0|se,B=0|z}return 0!==B?C.words[P]=0|B:C.length--,C._strip()}a.prototype.toString=function(c,C){var E;if(C=0|C||1,16===(c=c||10)||"hex"===c){E="";for(var O=0,_=0,n=0;n>>24-O&16777215,(O+=2)>=26&&(O-=26,n--),E=0!==_||n!==this.length-1?w[6-B.length]+B+E:B+E}for(0!==_&&(E=_.toString(16)+E);E.length%C!=0;)E="0"+E;return 0!==this.negative&&(E="-"+E),E}if(c===(0|c)&&c>=2&&c<=36){var P=S[c],z=I[c];E="";var se=this.clone();for(se.negative=0;!se.isZero();){var fe=se.modrn(z).toString(c);E=(se=se.idivn(z)).isZero()?fe+E:w[P-fe.length]+fe+E}for(this.isZero()&&(E="0"+E);E.length%C!=0;)E="0"+E;return 0!==this.negative&&(E="-"+E),E}f(!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&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-c:c},a.prototype.toJSON=function(){return this.toString(16,2)},b&&(a.prototype.toBuffer=function(c,C){return this.toArrayLike(b,c,C)}),a.prototype.toArray=function(c,C){return this.toArrayLike(Array,c,C)},a.prototype.toArrayLike=function(c,C,E){this._strip();var O=this.byteLength(),_=E||Math.max(1,O);f(O<=_,"byte array longer than desired length"),f(_>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,O),n},a.prototype._toArrayLikeLE=function(c,C){for(var E=0,O=0,_=0,n=0;_>8&255),E>16&255),6===n?(E>24&255),O=0,n=0):(O=v>>>24,n+=2)}if(E=0&&(c[E--]=v>>8&255),E>=0&&(c[E--]=v>>16&255),6===n?(E>=0&&(c[E--]=v>>24&255),O=0,n=0):(O=v>>>24,n+=2)}if(E>=0)for(c[E--]=O;E>=0;)c[E--]=0},a.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var C=c,E=0;return C>=4096&&(E+=13,C>>>=13),C>=64&&(E+=7,C>>>=7),C>=8&&(E+=4,C>>>=4),C>=2&&(E+=2,C>>>=2),E+C},a.prototype._zeroBits=function(c){if(0===c)return 26;var C=c,E=0;return 0==(8191&C)&&(E+=13,C>>>=13),0==(127&C)&&(E+=7,C>>>=7),0==(15&C)&&(E+=4,C>>>=4),0==(3&C)&&(E+=2,C>>>=2),0==(1&C)&&E++,E},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 E=0;Ec.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,E;this.length>c.length?(C=this,E=c):(C=c,E=this);for(var O=0;Oc.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){f("number"==typeof c&&c>=0);var C=0|Math.ceil(c/26),E=c%26;this._expand(C),E>0&&C--;for(var O=0;O0&&(this.words[O]=~this.words[O]&67108863>>26-E),this._strip()},a.prototype.notn=function(c){return this.clone().inotn(c)},a.prototype.setn=function(c,C){f("number"==typeof c&&c>=0);var E=c/26|0,O=c%26;return this._expand(E+1),this.words[E]=C?this.words[E]|1<c.length?(E=this,O=c):(E=c,O=this);for(var _=0,n=0;n>>26;for(;0!==_&&n>>26;if(this.length=E.length,0!==_)this.words[this.length]=_,this.length++;else if(E!==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 O,_,E=this.cmp(c);if(0===E)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(O=this,_=c):(O=c,_=this);for(var n=0,v=0;v<_.length;v++)n=(C=(0|O.words[v])-(0|_.words[v])+n)>>26,this.words[v]=67108863&C;for(;0!==n&&v>26,this.words[v]=67108863&C;if(0===n&&v>>13,Re=0|O[1],we=8191&Re,Q=Re>>>13,Ge=0|O[2],ve=8191&Ge,F=Ge>>>13,Ae=0|O[3],lt=8191&Ae,Ie=Ae>>>13,De=0|O[4],oe=8191&De,Te=De>>>13,ye=0|O[5],W=8191&ye,$=ye>>>13,ue=0|O[6],Ce=8191&ue,Le=ue>>>13,ct=0|O[7],ut=8191&ct,Dt=ct>>>13,di=0|O[8],Yt=8191&di,Gt=di>>>13,ui=0|O[9],xt=8191&ui,Nt=ui>>>13,gt=0|_[0],et=8191>,vt=gt>>>13,$t=0|_[1],jt=8191&$t,Pe=$t>>>13,Oe=0|_[2],le=8191&Oe,be=Oe>>>13,ht=0|_[3],ft=8191&ht,Ht=ht>>>13,it=0|_[4],Ne=8191&it,tt=it>>>13,Je=0|_[5],Se=8191&Je,Ue=Je>>>13,rt=0|_[6],at=8191&rt,yt=rt>>>13,gi=0|_[7],Qt=8191&gi,Jt=gi>>>13,Xi=0|_[8],fi=8191&Xi,ai=Xi>>>13,tn=0|_[9],Wi=8191&tn,Gi=tn>>>13;E.negative=c.negative^C.negative,E.length=19;var Yi=(v+(B=Math.imul(fe,et))|0)+((8191&(P=(P=Math.imul(fe,vt))+Math.imul(xe,et)|0))<<13)|0;v=((z=Math.imul(xe,vt))+(P>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,B=Math.imul(we,et),P=(P=Math.imul(we,vt))+Math.imul(Q,et)|0,z=Math.imul(Q,vt);var ze=(v+(B=B+Math.imul(fe,jt)|0)|0)+((8191&(P=(P=P+Math.imul(fe,Pe)|0)+Math.imul(xe,jt)|0))<<13)|0;v=((z=z+Math.imul(xe,Pe)|0)+(P>>>13)|0)+(ze>>>26)|0,ze&=67108863,B=Math.imul(ve,et),P=(P=Math.imul(ve,vt))+Math.imul(F,et)|0,z=Math.imul(F,vt),B=B+Math.imul(we,jt)|0,P=(P=P+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,z=z+Math.imul(Q,Pe)|0;var Lt=(v+(B=B+Math.imul(fe,le)|0)|0)+((8191&(P=(P=P+Math.imul(fe,be)|0)+Math.imul(xe,le)|0))<<13)|0;v=((z=z+Math.imul(xe,be)|0)+(P>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,B=Math.imul(lt,et),P=(P=Math.imul(lt,vt))+Math.imul(Ie,et)|0,z=Math.imul(Ie,vt),B=B+Math.imul(ve,jt)|0,P=(P=P+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,z=z+Math.imul(F,Pe)|0,B=B+Math.imul(we,le)|0,P=(P=P+Math.imul(we,be)|0)+Math.imul(Q,le)|0,z=z+Math.imul(Q,be)|0;var pe=(v+(B=B+Math.imul(fe,ft)|0)|0)+((8191&(P=(P=P+Math.imul(fe,Ht)|0)+Math.imul(xe,ft)|0))<<13)|0;v=((z=z+Math.imul(xe,Ht)|0)+(P>>>13)|0)+(pe>>>26)|0,pe&=67108863,B=Math.imul(oe,et),P=(P=Math.imul(oe,vt))+Math.imul(Te,et)|0,z=Math.imul(Te,vt),B=B+Math.imul(lt,jt)|0,P=(P=P+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,z=z+Math.imul(Ie,Pe)|0,B=B+Math.imul(ve,le)|0,P=(P=P+Math.imul(ve,be)|0)+Math.imul(F,le)|0,z=z+Math.imul(F,be)|0,B=B+Math.imul(we,ft)|0,P=(P=P+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,z=z+Math.imul(Q,Ht)|0;var je=(v+(B=B+Math.imul(fe,Ne)|0)|0)+((8191&(P=(P=P+Math.imul(fe,tt)|0)+Math.imul(xe,Ne)|0))<<13)|0;v=((z=z+Math.imul(xe,tt)|0)+(P>>>13)|0)+(je>>>26)|0,je&=67108863,B=Math.imul(W,et),P=(P=Math.imul(W,vt))+Math.imul($,et)|0,z=Math.imul($,vt),B=B+Math.imul(oe,jt)|0,P=(P=P+Math.imul(oe,Pe)|0)+Math.imul(Te,jt)|0,z=z+Math.imul(Te,Pe)|0,B=B+Math.imul(lt,le)|0,P=(P=P+Math.imul(lt,be)|0)+Math.imul(Ie,le)|0,z=z+Math.imul(Ie,be)|0,B=B+Math.imul(ve,ft)|0,P=(P=P+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,z=z+Math.imul(F,Ht)|0,B=B+Math.imul(we,Ne)|0,P=(P=P+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,z=z+Math.imul(Q,tt)|0;var Ct=(v+(B=B+Math.imul(fe,Se)|0)|0)+((8191&(P=(P=P+Math.imul(fe,Ue)|0)+Math.imul(xe,Se)|0))<<13)|0;v=((z=z+Math.imul(xe,Ue)|0)+(P>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,B=Math.imul(Ce,et),P=(P=Math.imul(Ce,vt))+Math.imul(Le,et)|0,z=Math.imul(Le,vt),B=B+Math.imul(W,jt)|0,P=(P=P+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,z=z+Math.imul($,Pe)|0,B=B+Math.imul(oe,le)|0,P=(P=P+Math.imul(oe,be)|0)+Math.imul(Te,le)|0,z=z+Math.imul(Te,be)|0,B=B+Math.imul(lt,ft)|0,P=(P=P+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,z=z+Math.imul(Ie,Ht)|0,B=B+Math.imul(ve,Ne)|0,P=(P=P+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,z=z+Math.imul(F,tt)|0,B=B+Math.imul(we,Se)|0,P=(P=P+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,z=z+Math.imul(Q,Ue)|0;var ie=(v+(B=B+Math.imul(fe,at)|0)|0)+((8191&(P=(P=P+Math.imul(fe,yt)|0)+Math.imul(xe,at)|0))<<13)|0;v=((z=z+Math.imul(xe,yt)|0)+(P>>>13)|0)+(ie>>>26)|0,ie&=67108863,B=Math.imul(ut,et),P=(P=Math.imul(ut,vt))+Math.imul(Dt,et)|0,z=Math.imul(Dt,vt),B=B+Math.imul(Ce,jt)|0,P=(P=P+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,z=z+Math.imul(Le,Pe)|0,B=B+Math.imul(W,le)|0,P=(P=P+Math.imul(W,be)|0)+Math.imul($,le)|0,z=z+Math.imul($,be)|0,B=B+Math.imul(oe,ft)|0,P=(P=P+Math.imul(oe,Ht)|0)+Math.imul(Te,ft)|0,z=z+Math.imul(Te,Ht)|0,B=B+Math.imul(lt,Ne)|0,P=(P=P+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,z=z+Math.imul(Ie,tt)|0,B=B+Math.imul(ve,Se)|0,P=(P=P+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,z=z+Math.imul(F,Ue)|0,B=B+Math.imul(we,at)|0,P=(P=P+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,z=z+Math.imul(Q,yt)|0;var qe=(v+(B=B+Math.imul(fe,Qt)|0)|0)+((8191&(P=(P=P+Math.imul(fe,Jt)|0)+Math.imul(xe,Qt)|0))<<13)|0;v=((z=z+Math.imul(xe,Jt)|0)+(P>>>13)|0)+(qe>>>26)|0,qe&=67108863,B=Math.imul(Yt,et),P=(P=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,z=Math.imul(Gt,vt),B=B+Math.imul(ut,jt)|0,P=(P=P+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,z=z+Math.imul(Dt,Pe)|0,B=B+Math.imul(Ce,le)|0,P=(P=P+Math.imul(Ce,be)|0)+Math.imul(Le,le)|0,z=z+Math.imul(Le,be)|0,B=B+Math.imul(W,ft)|0,P=(P=P+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,z=z+Math.imul($,Ht)|0,B=B+Math.imul(oe,Ne)|0,P=(P=P+Math.imul(oe,tt)|0)+Math.imul(Te,Ne)|0,z=z+Math.imul(Te,tt)|0,B=B+Math.imul(lt,Se)|0,P=(P=P+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,z=z+Math.imul(Ie,Ue)|0,B=B+Math.imul(ve,at)|0,P=(P=P+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,z=z+Math.imul(F,yt)|0,B=B+Math.imul(we,Qt)|0,P=(P=P+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,z=z+Math.imul(Q,Jt)|0;var Mt=(v+(B=B+Math.imul(fe,fi)|0)|0)+((8191&(P=(P=P+Math.imul(fe,ai)|0)+Math.imul(xe,fi)|0))<<13)|0;v=((z=z+Math.imul(xe,ai)|0)+(P>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,B=Math.imul(xt,et),P=(P=Math.imul(xt,vt))+Math.imul(Nt,et)|0,z=Math.imul(Nt,vt),B=B+Math.imul(Yt,jt)|0,P=(P=P+Math.imul(Yt,Pe)|0)+Math.imul(Gt,jt)|0,z=z+Math.imul(Gt,Pe)|0,B=B+Math.imul(ut,le)|0,P=(P=P+Math.imul(ut,be)|0)+Math.imul(Dt,le)|0,z=z+Math.imul(Dt,be)|0,B=B+Math.imul(Ce,ft)|0,P=(P=P+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,z=z+Math.imul(Le,Ht)|0,B=B+Math.imul(W,Ne)|0,P=(P=P+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,z=z+Math.imul($,tt)|0,B=B+Math.imul(oe,Se)|0,P=(P=P+Math.imul(oe,Ue)|0)+Math.imul(Te,Se)|0,z=z+Math.imul(Te,Ue)|0,B=B+Math.imul(lt,at)|0,P=(P=P+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,z=z+Math.imul(Ie,yt)|0,B=B+Math.imul(ve,Qt)|0,P=(P=P+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,z=z+Math.imul(F,Jt)|0,B=B+Math.imul(we,fi)|0,P=(P=P+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0,z=z+Math.imul(Q,ai)|0;var Vt=(v+(B=B+Math.imul(fe,Wi)|0)|0)+((8191&(P=(P=P+Math.imul(fe,Gi)|0)+Math.imul(xe,Wi)|0))<<13)|0;v=((z=z+Math.imul(xe,Gi)|0)+(P>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,B=Math.imul(xt,jt),P=(P=Math.imul(xt,Pe))+Math.imul(Nt,jt)|0,z=Math.imul(Nt,Pe),B=B+Math.imul(Yt,le)|0,P=(P=P+Math.imul(Yt,be)|0)+Math.imul(Gt,le)|0,z=z+Math.imul(Gt,be)|0,B=B+Math.imul(ut,ft)|0,P=(P=P+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,z=z+Math.imul(Dt,Ht)|0,B=B+Math.imul(Ce,Ne)|0,P=(P=P+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,z=z+Math.imul(Le,tt)|0,B=B+Math.imul(W,Se)|0,P=(P=P+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,z=z+Math.imul($,Ue)|0,B=B+Math.imul(oe,at)|0,P=(P=P+Math.imul(oe,yt)|0)+Math.imul(Te,at)|0,z=z+Math.imul(Te,yt)|0,B=B+Math.imul(lt,Qt)|0,P=(P=P+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,z=z+Math.imul(Ie,Jt)|0,B=B+Math.imul(ve,fi)|0,P=(P=P+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0,z=z+Math.imul(F,ai)|0;var Mi=(v+(B=B+Math.imul(we,Wi)|0)|0)+((8191&(P=(P=P+Math.imul(we,Gi)|0)+Math.imul(Q,Wi)|0))<<13)|0;v=((z=z+Math.imul(Q,Gi)|0)+(P>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,B=Math.imul(xt,le),P=(P=Math.imul(xt,be))+Math.imul(Nt,le)|0,z=Math.imul(Nt,be),B=B+Math.imul(Yt,ft)|0,P=(P=P+Math.imul(Yt,Ht)|0)+Math.imul(Gt,ft)|0,z=z+Math.imul(Gt,Ht)|0,B=B+Math.imul(ut,Ne)|0,P=(P=P+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,z=z+Math.imul(Dt,tt)|0,B=B+Math.imul(Ce,Se)|0,P=(P=P+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,z=z+Math.imul(Le,Ue)|0,B=B+Math.imul(W,at)|0,P=(P=P+Math.imul(W,yt)|0)+Math.imul($,at)|0,z=z+Math.imul($,yt)|0,B=B+Math.imul(oe,Qt)|0,P=(P=P+Math.imul(oe,Jt)|0)+Math.imul(Te,Qt)|0,z=z+Math.imul(Te,Jt)|0,B=B+Math.imul(lt,fi)|0,P=(P=P+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0,z=z+Math.imul(Ie,ai)|0;var Ei=(v+(B=B+Math.imul(ve,Wi)|0)|0)+((8191&(P=(P=P+Math.imul(ve,Gi)|0)+Math.imul(F,Wi)|0))<<13)|0;v=((z=z+Math.imul(F,Gi)|0)+(P>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,B=Math.imul(xt,ft),P=(P=Math.imul(xt,Ht))+Math.imul(Nt,ft)|0,z=Math.imul(Nt,Ht),B=B+Math.imul(Yt,Ne)|0,P=(P=P+Math.imul(Yt,tt)|0)+Math.imul(Gt,Ne)|0,z=z+Math.imul(Gt,tt)|0,B=B+Math.imul(ut,Se)|0,P=(P=P+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,z=z+Math.imul(Dt,Ue)|0,B=B+Math.imul(Ce,at)|0,P=(P=P+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,z=z+Math.imul(Le,yt)|0,B=B+Math.imul(W,Qt)|0,P=(P=P+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,z=z+Math.imul($,Jt)|0,B=B+Math.imul(oe,fi)|0,P=(P=P+Math.imul(oe,ai)|0)+Math.imul(Te,fi)|0,z=z+Math.imul(Te,ai)|0;var en=(v+(B=B+Math.imul(lt,Wi)|0)|0)+((8191&(P=(P=P+Math.imul(lt,Gi)|0)+Math.imul(Ie,Wi)|0))<<13)|0;v=((z=z+Math.imul(Ie,Gi)|0)+(P>>>13)|0)+(en>>>26)|0,en&=67108863,B=Math.imul(xt,Ne),P=(P=Math.imul(xt,tt))+Math.imul(Nt,Ne)|0,z=Math.imul(Nt,tt),B=B+Math.imul(Yt,Se)|0,P=(P=P+Math.imul(Yt,Ue)|0)+Math.imul(Gt,Se)|0,z=z+Math.imul(Gt,Ue)|0,B=B+Math.imul(ut,at)|0,P=(P=P+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,z=z+Math.imul(Dt,yt)|0,B=B+Math.imul(Ce,Qt)|0,P=(P=P+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,z=z+Math.imul(Le,Jt)|0,B=B+Math.imul(W,fi)|0,P=(P=P+Math.imul(W,ai)|0)+Math.imul($,fi)|0,z=z+Math.imul($,ai)|0;var ji=(v+(B=B+Math.imul(oe,Wi)|0)|0)+((8191&(P=(P=P+Math.imul(oe,Gi)|0)+Math.imul(Te,Wi)|0))<<13)|0;v=((z=z+Math.imul(Te,Gi)|0)+(P>>>13)|0)+(ji>>>26)|0,ji&=67108863,B=Math.imul(xt,Se),P=(P=Math.imul(xt,Ue))+Math.imul(Nt,Se)|0,z=Math.imul(Nt,Ue),B=B+Math.imul(Yt,at)|0,P=(P=P+Math.imul(Yt,yt)|0)+Math.imul(Gt,at)|0,z=z+Math.imul(Gt,yt)|0,B=B+Math.imul(ut,Qt)|0,P=(P=P+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,z=z+Math.imul(Dt,Jt)|0,B=B+Math.imul(Ce,fi)|0,P=(P=P+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0,z=z+Math.imul(Le,ai)|0;var Kt=(v+(B=B+Math.imul(W,Wi)|0)|0)+((8191&(P=(P=P+Math.imul(W,Gi)|0)+Math.imul($,Wi)|0))<<13)|0;v=((z=z+Math.imul($,Gi)|0)+(P>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,B=Math.imul(xt,at),P=(P=Math.imul(xt,yt))+Math.imul(Nt,at)|0,z=Math.imul(Nt,yt),B=B+Math.imul(Yt,Qt)|0,P=(P=P+Math.imul(Yt,Jt)|0)+Math.imul(Gt,Qt)|0,z=z+Math.imul(Gt,Jt)|0,B=B+Math.imul(ut,fi)|0,P=(P=P+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0,z=z+Math.imul(Dt,ai)|0;var Oi=(v+(B=B+Math.imul(Ce,Wi)|0)|0)+((8191&(P=(P=P+Math.imul(Ce,Gi)|0)+Math.imul(Le,Wi)|0))<<13)|0;v=((z=z+Math.imul(Le,Gi)|0)+(P>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,B=Math.imul(xt,Qt),P=(P=Math.imul(xt,Jt))+Math.imul(Nt,Qt)|0,z=Math.imul(Nt,Jt),B=B+Math.imul(Yt,fi)|0,P=(P=P+Math.imul(Yt,ai)|0)+Math.imul(Gt,fi)|0,z=z+Math.imul(Gt,ai)|0;var zt=(v+(B=B+Math.imul(ut,Wi)|0)|0)+((8191&(P=(P=P+Math.imul(ut,Gi)|0)+Math.imul(Dt,Wi)|0))<<13)|0;v=((z=z+Math.imul(Dt,Gi)|0)+(P>>>13)|0)+(zt>>>26)|0,zt&=67108863,B=Math.imul(xt,fi),P=(P=Math.imul(xt,ai))+Math.imul(Nt,fi)|0,z=Math.imul(Nt,ai);var si=(v+(B=B+Math.imul(Yt,Wi)|0)|0)+((8191&(P=(P=P+Math.imul(Yt,Gi)|0)+Math.imul(Gt,Wi)|0))<<13)|0;v=((z=z+Math.imul(Gt,Gi)|0)+(P>>>13)|0)+(si>>>26)|0,si&=67108863;var Pt=(v+(B=Math.imul(xt,Wi))|0)+((8191&(P=(P=Math.imul(xt,Gi))+Math.imul(Nt,Wi)|0))<<13)|0;return v=((z=Math.imul(Nt,Gi))+(P>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n[0]=Yi,n[1]=ze,n[2]=Lt,n[3]=pe,n[4]=je,n[5]=Ct,n[6]=ie,n[7]=qe,n[8]=Mt,n[9]=Vt,n[10]=Mi,n[11]=Ei,n[12]=en,n[13]=ji,n[14]=Kt,n[15]=Oi,n[16]=zt,n[17]=si,n[18]=Pt,0!==v&&(n[19]=v,E.length++),E};function ne(u,c,C){C.negative=c.negative^u.negative,C.length=u.length+c.length;for(var E=0,O=0,_=0;_>>26)|0)>>>26,n&=67108863}C.words[_]=v,E=n,n=O}return 0!==E?C.words[_]=E:C.length--,C._strip()}function X(u,c,C){return ne(u,c,C)}function de(u,c){this.x=u,this.y=c}Math.imul||(j=Z),a.prototype.mulTo=function(c,C){var O=this.length+c.length;return 10===this.length&&10===c.length?j(this,c,C):O<63?Z(this,c,C):O<1024?ne(this,c,C):X(this,c,C)},de.prototype.makeRBT=function(c){for(var C=new Array(c),E=a.prototype._countBits(c)-1,O=0;O>=1;return O},de.prototype.permute=function(c,C,E,O,_,n){for(var v=0;v>>=1)_++;return 1<<_+1+O},de.prototype.conjugate=function(c,C,E){if(!(E<=1))for(var O=0;O>>=13),_>>>=13;for(n=2*C;n>=26,E+=_/67108864|0,E+=n>>>26,this.words[O]=67108863&n}return 0!==E&&(this.words[O]=E,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 U(u){for(var c=new Array(u.bitLength()),C=0;C>>C%26&1;return c}(c);if(0===C.length)return new a(1);for(var E=this,O=0;O=0);var _,C=c%26,E=(c-C)/26,O=67108863>>>26-C<<26-C;if(0!==C){var n=0;for(_=0;_>>26-C}n&&(this.words[_]=n,this.length++)}if(0!==E){for(_=this.length-1;_>=0;_--)this.words[_+E]=this.words[_];for(_=0;_=0),O=C?(C-C%26)/26:0;var _=c%26,n=Math.min((c-_)/26,this.length),v=67108863^67108863>>>_<<_,B=E;if(O-=n,O=Math.max(0,O),B){for(var P=0;Pn)for(this.length-=n,P=0;P=0&&(0!==z||P>=O);P--){var se=0|this.words[P];this.words[P]=z<<26-_|se>>>_,z=se&v}return B&&0!==z&&(B.words[B.length++]=z),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(c,C,E){return f(0===this.negative),this.iushrn(c,C,E)},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){f("number"==typeof c&&c>=0);var C=c%26,E=(c-C)/26;return!(this.length<=E||!(this.words[E]&1<=0);var C=c%26,E=(c-C)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=E?this:(0!==C&&E++,this.length=Math.min(E,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(f("number"==typeof c),f(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)-(B/67108864|0),this.words[_+E]=67108863&n}for(;_>26,this.words[_+E]=67108863&n;if(0===v)return this._strip();for(f(-1===v),v=0,_=0;_>26,this.words[_]=67108863&n;return this.negative=1,this._strip()},a.prototype._wordDiv=function(c,C){var E,O=this.clone(),_=c,n=0|_.words[_.length-1];0!=(E=26-this._countBits(n))&&(_=_.ushln(E),O.iushln(E),n=0|_.words[_.length-1]);var P,B=O.length-_.length;if("mod"!==C){(P=new a(null)).length=B+1,P.words=new Array(P.length);for(var z=0;z=0;fe--){var xe=67108864*(0|O.words[_.length+fe])+(0|O.words[_.length+fe-1]);for(xe=Math.min(xe/n|0,67108863),O._ishlnsubmul(_,xe,fe);0!==O.negative;)xe--,O.negative=0,O._ishlnsubmul(_,1,fe),O.isZero()||(O.negative^=1);P&&(P.words[fe]=xe)}return P&&P._strip(),O._strip(),"div"!==C&&0!==E&&O.iushrn(E),{div:P||null,mod:O}},a.prototype.divmod=function(c,C,E){return f(!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&&(O=n.div.neg()),"div"!==C&&(_=n.mod.neg(),E&&0!==_.negative&&_.iadd(c)),{div:O,mod:_}):0===this.negative&&0!==c.negative?(n=this.divmod(c.neg(),C),"mod"!==C&&(O=n.div.neg()),{div:O,mod:n.mod}):0!=(this.negative&c.negative)?(n=this.neg().divmod(c.neg(),C),"div"!==C&&(_=n.mod.neg(),E&&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 O,_,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 E=0!==C.div.negative?C.mod.isub(c):C.mod,O=c.ushrn(1),_=c.andln(1),n=E.cmp(O);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),f(c<=67108863);for(var E=(1<<26)%c,O=0,_=this.length-1;_>=0;_--)O=(E*O+(0|this.words[_]))%c;return C?-O:O},a.prototype.modn=function(c){return this.modrn(c)},a.prototype.idivn=function(c){var C=c<0;C&&(c=-c),f(c<=67108863);for(var E=0,O=this.length-1;O>=0;O--){var _=(0|this.words[O])+67108864*E;this.words[O]=_/c|0,E=_%c}return this._strip(),C?this.ineg():this},a.prototype.divn=function(c){return this.clone().idivn(c)},a.prototype.egcd=function(c){f(0===c.negative),f(!c.isZero());var C=this,E=c.clone();C=0!==C.negative?C.umod(c):C.clone();for(var O=new a(1),_=new a(0),n=new a(0),v=new a(1),B=0;C.isEven()&&E.isEven();)C.iushrn(1),E.iushrn(1),++B;for(var P=E.clone(),z=C.clone();!C.isZero();){for(var se=0,fe=1;0==(C.words[0]&fe)&&se<26;++se,fe<<=1);if(se>0)for(C.iushrn(se);se-- >0;)(O.isOdd()||_.isOdd())&&(O.iadd(P),_.isub(z)),O.iushrn(1),_.iushrn(1);for(var xe=0,Re=1;0==(E.words[0]&Re)&&xe<26;++xe,Re<<=1);if(xe>0)for(E.iushrn(xe);xe-- >0;)(n.isOdd()||v.isOdd())&&(n.iadd(P),v.isub(z)),n.iushrn(1),v.iushrn(1);C.cmp(E)>=0?(C.isub(E),O.isub(n),_.isub(v)):(E.isub(C),n.isub(O),v.isub(_))}return{a:n,b:v,gcd:E.iushln(B)}},a.prototype._invmp=function(c){f(0===c.negative),f(!c.isZero());var se,C=this,E=c.clone();C=0!==C.negative?C.umod(c):C.clone();for(var O=new a(1),_=new a(0),n=E.clone();C.cmpn(1)>0&&E.cmpn(1)>0;){for(var v=0,B=1;0==(C.words[0]&B)&&v<26;++v,B<<=1);if(v>0)for(C.iushrn(v);v-- >0;)O.isOdd()&&O.iadd(n),O.iushrn(1);for(var P=0,z=1;0==(E.words[0]&z)&&P<26;++P,z<<=1);if(P>0)for(E.iushrn(P);P-- >0;)_.isOdd()&&_.iadd(n),_.iushrn(1);C.cmp(E)>=0?(C.isub(E),O.isub(_)):(E.isub(C),_.isub(O))}return(se=0===C.cmpn(1)?O:_).cmpn(0)<0&&se.iadd(c),se},a.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var C=this.clone(),E=c.clone();C.negative=0,E.negative=0;for(var O=0;C.isEven()&&E.isEven();O++)C.iushrn(1),E.iushrn(1);for(;;){for(;C.isEven();)C.iushrn(1);for(;E.isEven();)E.iushrn(1);var _=C.cmp(E);if(_<0){var n=C;C=E,E=n}else if(0===_||0===E.cmpn(1))break;C.isub(E)}return E.iushln(O)},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){f("number"==typeof c);var C=c%26,E=(c-C)/26,O=1<>>26,this.words[n]=v&=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 E,C=c<0;if(0!==this.negative&&!C)return-1;if(0===this.negative&&C)return 1;if(this._strip(),this.length>1)E=1;else{C&&(c=-c),f(c<=67108863,"Number is too big");var O=0|this.words[0];E=O===c?0:Oc.length)return 1;if(this.length=0;E--){var O=0|this.words[E],_=0|c.words[E];if(O!==_){O<_?C=-1:O>_&&(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 i(c)},a.prototype.toRed=function(c){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),c.convertTo(this)._forceRed(c)},a.prototype.fromRed=function(){return f(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 f(!this.red,"Already a number in reduction context"),this._forceRed(c)},a.prototype.redAdd=function(c){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},a.prototype.redIAdd=function(c){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},a.prototype.redSub=function(c){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},a.prototype.redISub=function(c){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},a.prototype.redShl=function(c){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},a.prototype.redMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},a.prototype.redIMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(c){return f(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var ee={k256:null,p224:null,p192:null,p25519:null};function te(u,c){this.name=u,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 ce(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function J(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ge(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(u){if("string"==typeof u){var c=a._prime(u);this.m=c.p,this.prime=c}else f(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}function r(u){i.call(this,u),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)}te.prototype._tmp=function(){var c=new a(null);return c.words=new Array(Math.ceil(this.n/13)),c},te.prototype.ireduce=function(c){var E,C=c;do{this.split(C,this.tmp),E=(C=(C=this.imulK(C)).iadd(this.tmp)).bitLength()}while(E>this.n);var O=E0?C.isub(this.p):void 0!==C.strip?C.strip():C._strip(),C},te.prototype.split=function(c,C){c.iushrn(this.n,0,C)},te.prototype.imulK=function(c){return c.imul(this.k)},M(ce,te),ce.prototype.split=function(c,C){for(var E=4194303,O=Math.min(c.length,9),_=0;_>>22,n=v}c.words[_-10]=n>>>=22,c.length-=0===n&&c.length>10?10:9},ce.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var C=0,E=0;E>>=26,c.words[E]=_,C=O}return 0!==C&&(c.words[c.length++]=C),c},a._prime=function(c){if(ee[c])return ee[c];var C;if("k256"===c)C=new ce;else if("p224"===c)C=new J;else if("p192"===c)C=new ge;else{if("p25519"!==c)throw new Error("Unknown prime "+c);C=new y}return ee[c]=C,C},i.prototype._verify1=function(c){f(0===c.negative,"red works only with positives"),f(c.red,"red works only with red numbers")},i.prototype._verify2=function(c,C){f(0==(c.negative|C.negative),"red works only with positives"),f(c.red&&c.red===C.red,"red works only with red numbers")},i.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(A(c,c.umod(this.m)._forceRed(this)),c)},i.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},i.prototype.add=function(c,C){this._verify2(c,C);var E=c.add(C);return E.cmp(this.m)>=0&&E.isub(this.m),E._forceRed(this)},i.prototype.iadd=function(c,C){this._verify2(c,C);var E=c.iadd(C);return E.cmp(this.m)>=0&&E.isub(this.m),E},i.prototype.sub=function(c,C){this._verify2(c,C);var E=c.sub(C);return E.cmpn(0)<0&&E.iadd(this.m),E._forceRed(this)},i.prototype.isub=function(c,C){this._verify2(c,C);var E=c.isub(C);return E.cmpn(0)<0&&E.iadd(this.m),E},i.prototype.shl=function(c,C){return this._verify1(c),this.imod(c.ushln(C))},i.prototype.imul=function(c,C){return this._verify2(c,C),this.imod(c.imul(C))},i.prototype.mul=function(c,C){return this._verify2(c,C),this.imod(c.mul(C))},i.prototype.isqr=function(c){return this.imul(c,c.clone())},i.prototype.sqr=function(c){return this.mul(c,c)},i.prototype.sqrt=function(c){if(c.isZero())return c.clone();var C=this.m.andln(3);if(f(C%2==1),3===C){var E=this.m.add(new a(1)).iushrn(2);return this.pow(c,E)}for(var O=this.m.subn(1),_=0;!O.isZero()&&0===O.andln(1);)_++,O.iushrn(1);f(!O.isZero());var n=new a(1).toRed(this),v=n.redNeg(),B=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new a(2*P*P).toRed(this);0!==this.pow(P,B).cmp(v);)P.redIAdd(v);for(var z=this.pow(P,O),se=this.pow(c,O.addn(1).iushrn(1)),fe=this.pow(c,O),xe=_;0!==fe.cmp(n);){for(var Re=fe,we=0;0!==Re.cmp(n);we++)Re=Re.redSqr();f(we=0;_--){for(var z=C.words[_],se=P-1;se>=0;se--){var fe=z>>se&1;n!==O[0]&&(n=this.sqr(n)),0!==fe||0!==v?(v<<=1,v|=fe,(4==++B||0===_&&0===se)&&(n=this.mul(n,O[v]),B=0,v=0)):B=0}P=26}return n},i.prototype.convertTo=function(c){var C=c.umod(this.m);return C===c?C.clone():C},i.prototype.convertFrom=function(c){var C=c.clone();return C.red=null,C},a.mont=function(c){return new r(c)},M(r,i),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 E=c.imul(C),O=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=E.isub(O).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 E=c.mul(C),O=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=E.isub(O).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)}}(Fe=p.nmd(Fe),this)},7950:(Fe,Y,p)=>{var t;function e(M){this.rand=M}if(Fe.exports=function(a){return t||(t=new e(null)),t.generate(a)},Fe.exports.Rand=e,e.prototype.generate=function(a){return this._rand(a)},e.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var b=new Uint8Array(a),d=0;d{var t=p(3502).Buffer;function e(N){t.isBuffer(N)||(N=t.from(N));for(var h=N.length/4|0,A=new Array(h),D=0;D>>24]^I[j>>>16&255]^L[ne>>>8&255]^U[255&X]^h[J++],ee=S[j>>>24]^I[ne>>>16&255]^L[X>>>8&255]^U[255&Z]^h[J++],te=S[ne>>>24]^I[X>>>16&255]^L[Z>>>8&255]^U[255&j]^h[J++],ce=S[X>>>24]^I[Z>>>16&255]^L[j>>>8&255]^U[255&ne]^h[J++],Z=de,j=ee,ne=te,X=ce;return de=(D[Z>>>24]<<24|D[j>>>16&255]<<16|D[ne>>>8&255]<<8|D[255&X])^h[J++],ee=(D[j>>>24]<<24|D[ne>>>16&255]<<16|D[X>>>8&255]<<8|D[255&Z])^h[J++],te=(D[ne>>>24]<<24|D[X>>>16&255]<<16|D[Z>>>8&255]<<8|D[255&j])^h[J++],ce=(D[X>>>24]<<24|D[Z>>>16&255]<<16|D[j>>>8&255]<<8|D[255&ne])^h[J++],[de>>>=0,ee>>>=0,te>>>=0,ce>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],b=function(){for(var N=new Array(256),h=0;h<256;h++)N[h]=h<128?h<<1:h<<1^283;for(var A=[],D=[],w=[[],[],[],[]],S=[[],[],[],[]],I=0,L=0,U=0;U<256;++U){var Z=L^L<<1^L<<2^L<<3^L<<4;A[I]=Z=Z>>>8^255&Z^99,D[Z]=I;var j=N[I],ne=N[j],X=N[ne],de=257*N[Z]^16843008*Z;w[0][I]=de<<24|de>>>8,w[1][I]=de<<16|de>>>16,w[2][I]=de<<8|de>>>24,w[3][I]=de,S[0][Z]=(de=16843009*X^65537*ne^257*j^16843008*I)<<24|de>>>8,S[1][Z]=de<<16|de>>>16,S[2][Z]=de<<8|de>>>24,S[3][Z]=de,0===I?I=L=1:(I=j^N[N[N[X^j]]],L^=N[N[L]])}return{SBOX:A,INV_SBOX:D,SUB_MIX:w,INV_SUB_MIX:S}}();function d(N){this._key=e(N),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var N=this._key,h=N.length,A=h+6,D=4*(A+1),w=[],S=0;S>>24)>>>24]<<24|b.SBOX[I>>>16&255]<<16|b.SBOX[I>>>8&255]<<8|b.SBOX[255&I],I^=a[S/h|0]<<24):h>6&&S%h==4&&(I=b.SBOX[I>>>24]<<24|b.SBOX[I>>>16&255]<<16|b.SBOX[I>>>8&255]<<8|b.SBOX[255&I]),w[S]=w[S-h]^I}for(var L=[],U=0;U>>24]]^b.INV_SUB_MIX[1][b.SBOX[j>>>16&255]]^b.INV_SUB_MIX[2][b.SBOX[j>>>8&255]]^b.INV_SUB_MIX[3][b.SBOX[255&j]]}this._nRounds=A,this._keySchedule=w,this._invKeySchedule=L},d.prototype.encryptBlockRaw=function(N){return M(N=e(N),this._keySchedule,b.SUB_MIX,b.SBOX,this._nRounds)},d.prototype.encryptBlock=function(N){var h=this.encryptBlockRaw(N),A=t.allocUnsafe(16);return A.writeUInt32BE(h[0],0),A.writeUInt32BE(h[1],4),A.writeUInt32BE(h[2],8),A.writeUInt32BE(h[3],12),A},d.prototype.decryptBlock=function(N){var h=(N=e(N))[1];N[1]=N[3],N[3]=h;var A=M(N,this._invKeySchedule,b.INV_SUB_MIX,b.INV_SBOX,this._nRounds),D=t.allocUnsafe(16);return D.writeUInt32BE(A[0],0),D.writeUInt32BE(A[3],4),D.writeUInt32BE(A[2],8),D.writeUInt32BE(A[1],12),D},d.prototype.scrub=function(){f(this._keySchedule),f(this._invKeySchedule),f(this._key)},Fe.exports.AES=d},9382:(Fe,Y,p)=>{var t=p(1899),e=p(3502).Buffer,f=p(1052),M=p(3894),a=p(8857),b=p(8789),d=p(7968);function A(D,w,S,I){f.call(this);var L=e.alloc(4,0);this._cipher=new t.AES(w);var U=this._cipher.encryptBlock(L);this._ghash=new a(U),S=function h(D,w,S){if(12===w.length)return D._finID=e.concat([w,e.from([0,0,0,1])]),e.concat([w,e.from([0,0,0,2])]);var I=new a(S),L=w.length,U=L%16;I.update(w),U&&I.update(e.alloc(U=16-U,0)),I.update(e.alloc(8,0));var Z=8*L,j=e.alloc(8);j.writeUIntBE(Z,0,8),I.update(j),D._finID=I.state;var ne=e.from(D._finID);return d(ne),ne}(this,S,U),this._prev=e.from(S),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=I,this._alen=0,this._len=0,this._mode=D,this._authTag=null,this._called=!1}M(A,f),A.prototype._update=function(D){if(!this._called&&this._alen){var w=16-this._alen%16;w<16&&(w=e.alloc(w,0),this._ghash.update(w))}this._called=!0;var S=this._mode.encrypt(this,D);return this._ghash.update(this._decrypt?D:S),this._len+=D.length,S},A.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var D=b(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function N(D,w){var S=0;D.length!==w.length&&S++;for(var I=Math.min(D.length,w.length),L=0;L{var t=p(6900),e=p(856),f=p(4946);Y.createCipher=Y.Cipher=t.createCipher,Y.createCipheriv=Y.Cipheriv=t.createCipheriv,Y.createDecipher=Y.Decipher=e.createDecipher,Y.createDecipheriv=Y.Decipheriv=e.createDecipheriv,Y.listCiphers=Y.getCiphers=function M(){return Object.keys(f)}},856:(Fe,Y,p)=>{var t=p(9382),e=p(3502).Buffer,f=p(9171),M=p(8441),a=p(1052),b=p(1899),d=p(347);function h(I,L,U){a.call(this),this._cache=new A,this._last=void 0,this._cipher=new b.AES(L),this._prev=e.from(U),this._mode=I,this._autopadding=!0}function A(){this.cache=e.allocUnsafe(0)}function w(I,L,U){var Z=f[I.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof U&&(U=e.from(U)),"GCM"!==Z.mode&&U.length!==Z.iv)throw new TypeError("invalid iv length "+U.length);if("string"==typeof L&&(L=e.from(L)),L.length!==Z.key/8)throw new TypeError("invalid key length "+L.length);return"stream"===Z.type?new M(Z.module,L,U,!0):"auth"===Z.type?new t(Z.module,L,U,!0):new h(Z.module,L,U)}p(3894)(h,a),h.prototype._update=function(I){this._cache.add(I);for(var L,U,Z=[];L=this._cache.get(this._autopadding);)U=this._mode.decrypt(this,L),Z.push(U);return e.concat(Z)},h.prototype._final=function(){var I=this._cache.flush();if(this._autopadding)return function D(I){var L=I[15];if(L<1||L>16)throw new Error("unable to decrypt data");for(var U=-1;++U16)return L=this.cache.slice(0,16),this.cache=this.cache.slice(16),L}else if(this.cache.length>=16)return L=this.cache.slice(0,16),this.cache=this.cache.slice(16),L;return null},A.prototype.flush=function(){if(this.cache.length)return this.cache},Y.createDecipher=function S(I,L){var U=f[I.toLowerCase()];if(!U)throw new TypeError("invalid suite type");var Z=d(L,!1,U.key,U.iv);return w(I,Z.key,Z.iv)},Y.createDecipheriv=w},6900:(Fe,Y,p)=>{var t=p(9171),e=p(9382),f=p(3502).Buffer,M=p(8441),a=p(1052),b=p(1899),d=p(347);function h(I,L,U){a.call(this),this._cache=new D,this._cipher=new b.AES(L),this._prev=f.from(U),this._mode=I,this._autopadding=!0}p(3894)(h,a),h.prototype._update=function(I){this._cache.add(I);for(var L,U,Z=[];L=this._cache.get();)U=this._mode.encrypt(this,L),Z.push(U);return f.concat(Z)};var A=f.alloc(16,16);function D(){this.cache=f.allocUnsafe(0)}function w(I,L,U){var Z=t[I.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof L&&(L=f.from(L)),L.length!==Z.key/8)throw new TypeError("invalid key length "+L.length);if("string"==typeof U&&(U=f.from(U)),"GCM"!==Z.mode&&U.length!==Z.iv)throw new TypeError("invalid iv length "+U.length);return"stream"===Z.type?new M(Z.module,L,U):"auth"===Z.type?new e(Z.module,L,U):new h(Z.module,L,U)}h.prototype._final=function(){var I=this._cache.flush();if(this._autopadding)return I=this._mode.encrypt(this,I),this._cipher.scrub(),I;if(!I.equals(A))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(I){return this._autopadding=!!I,this},D.prototype.add=function(I){this.cache=f.concat([this.cache,I])},D.prototype.get=function(){if(this.cache.length>15){var I=this.cache.slice(0,16);return this.cache=this.cache.slice(16),I}return null},D.prototype.flush=function(){for(var I=16-this.cache.length,L=f.allocUnsafe(I),U=-1;++U{var t=p(3502).Buffer,e=t.alloc(16,0);function M(b){var d=t.allocUnsafe(16);return d.writeUInt32BE(b[0]>>>0,0),d.writeUInt32BE(b[1]>>>0,4),d.writeUInt32BE(b[2]>>>0,8),d.writeUInt32BE(b[3]>>>0,12),d}function a(b){this.h=b,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}a.prototype.ghash=function(b){for(var d=-1;++d0;N--)b[N]=b[N]>>>1|(1&b[N-1])<<31;b[0]=b[0]>>>1,A&&(b[0]=b[0]^225<<24)}this.state=M(d)},a.prototype.update=function(b){this.cache=t.concat([this.cache,b]);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(b,d){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(M([0,b,0,d])),this.state},Fe.exports=a},7968:Fe=>{Fe.exports=function Y(p){for(var e,t=p.length;t--;){if(255!==(e=p.readUInt8(t))){e++,p.writeUInt8(e,t);break}p.writeUInt8(0,t)}}},4903:(Fe,Y,p)=>{var t=p(8789);Y.encrypt=function(e,f){var M=t(f,e._prev);return e._prev=e._cipher.encryptBlock(M),e._prev},Y.decrypt=function(e,f){var M=e._prev;e._prev=f;var a=e._cipher.decryptBlock(f);return t(a,M)}},9885:(Fe,Y,p)=>{var t=p(3502).Buffer,e=p(8789);function f(M,a,b){var d=a.length,N=e(a,M._cache);return M._cache=M._cache.slice(d),M._prev=t.concat([M._prev,b?a:N]),N}Y.encrypt=function(M,a,b){for(var N,d=t.allocUnsafe(0);a.length;){if(0===M._cache.length&&(M._cache=M._cipher.encryptBlock(M._prev),M._prev=t.allocUnsafe(0)),!(M._cache.length<=a.length)){d=t.concat([d,f(M,a,b)]);break}d=t.concat([d,f(M,a.slice(0,N=M._cache.length),b)]),a=a.slice(N)}return d}},6531:(Fe,Y,p)=>{var t=p(3502).Buffer;function e(M,a,b){for(var D,w,N=-1,A=0;++N<8;)A+=(128&(w=M._cipher.encryptBlock(M._prev)[0]^(D=a&1<<7-N?128:0)))>>N%8,M._prev=f(M._prev,b?D:w);return A}function f(M,a){var b=M.length,d=-1,N=t.allocUnsafe(M.length);for(M=t.concat([M,t.from([a])]);++d>7;return N}Y.encrypt=function(M,a,b){for(var d=a.length,N=t.allocUnsafe(d),h=-1;++h{var t=p(3502).Buffer;function e(f,M,a){var d=f._cipher.encryptBlock(f._prev)[0]^M;return f._prev=t.concat([f._prev.slice(1),t.from([a?M:d])]),d}Y.encrypt=function(f,M,a){for(var b=M.length,d=t.allocUnsafe(b),N=-1;++N{var t=p(8789),e=p(3502).Buffer,f=p(7968);function M(b){var d=b._cipher.encryptBlockRaw(b._prev);return f(b._prev),d}Y.encrypt=function(b,d){var N=Math.ceil(d.length/16),h=b._cache.length;b._cache=e.concat([b._cache,e.allocUnsafe(16*N)]);for(var A=0;A{Y.encrypt=function(p,t){return p._cipher.encryptBlock(t)},Y.decrypt=function(p,t){return p._cipher.decryptBlock(t)}},9171:(Fe,Y,p)=>{var t={ECB:p(1704),CBC:p(4903),CFB:p(9885),CFB8:p(1641),CFB1:p(6531),OFB:p(6816),CTR:p(1150),GCM:p(1150)},e=p(4946);for(var f in e)e[f].module=t[e[f].mode];Fe.exports=e},6816:(Fe,Y,p)=>{var t=p(8789);function e(f){return f._prev=f._cipher.encryptBlock(f._prev),f._prev}Y.encrypt=function(f,M){for(;f._cache.length{var t=p(1899),e=p(3502).Buffer,f=p(1052);function a(b,d,N,h){f.call(this),this._cipher=new t.AES(d),this._prev=e.from(N),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=h,this._mode=b}p(3894)(a,f),a.prototype._update=function(b){return this._mode.encrypt(this,b,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},Fe.exports=a},5255:(Fe,Y,p)=>{var t=p(9004),e=p(4330),f=p(9171),M=p(1115),a=p(347);function N(D,w,S){if(D=D.toLowerCase(),f[D])return e.createCipheriv(D,w,S);if(M[D])return new t({key:w,iv:S,mode:D});throw new TypeError("invalid suite type")}function h(D,w,S){if(D=D.toLowerCase(),f[D])return e.createDecipheriv(D,w,S);if(M[D])return new t({key:w,iv:S,mode:D,decrypt:!0});throw new TypeError("invalid suite type")}Y.createCipher=Y.Cipher=function b(D,w){var S,I;if(D=D.toLowerCase(),f[D])S=f[D].key,I=f[D].iv;else{if(!M[D])throw new TypeError("invalid suite type");S=8*M[D].key,I=M[D].iv}var L=a(w,!1,S,I);return N(D,L.key,L.iv)},Y.createCipheriv=Y.Cipheriv=N,Y.createDecipher=Y.Decipher=function d(D,w){var S,I;if(D=D.toLowerCase(),f[D])S=f[D].key,I=f[D].iv;else{if(!M[D])throw new TypeError("invalid suite type");S=8*M[D].key,I=M[D].iv}var L=a(w,!1,S,I);return h(D,L.key,L.iv)},Y.createDecipheriv=Y.Decipheriv=h,Y.listCiphers=Y.getCiphers=function A(){return Object.keys(M).concat(e.getCiphers())}},9004:(Fe,Y,p)=>{var t=p(1052),e=p(3684),f=p(3894),M=p(3502).Buffer,a={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function b(d){t.call(this);var A,N=d.mode.toLowerCase(),h=a[N];A=d.decrypt?"decrypt":"encrypt";var D=d.key;M.isBuffer(D)||(D=M.from(D)),("des-ede"===N||"des-ede-cbc"===N)&&(D=M.concat([D,D.slice(0,8)]));var w=d.iv;M.isBuffer(w)||(w=M.from(w)),this._des=h.create({key:D,iv:w,type:A})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],Fe.exports=b,f(b,t),b.prototype._update=function(d){return M.from(this._des.update(d))},b.prototype._final=function(){return M.from(this._des.final())}},1115:(Fe,Y)=>{Y["des-ecb"]={key:8,iv:0},Y["des-cbc"]=Y.des={key:8,iv:8},Y["des-ede3-cbc"]=Y.des3={key:24,iv:8},Y["des-ede3"]={key:24,iv:0},Y["des-ede-cbc"]={key:16,iv:8},Y["des-ede"]={key:16,iv:0}},8466:(Fe,Y,p)=>{var t=p(8538),e=p(3753);function M(b){var N,d=b.modulus.byteLength();do{N=new t(e(d))}while(N.cmp(b.modulus)>=0||!N.umod(b.prime1)||!N.umod(b.prime2));return N}function a(b,d){var N=function f(b){var d=M(b);return{blinder:d.toRed(t.mont(b.modulus)).redPow(new t(b.publicExponent)).fromRed(),unblinder:d.invm(b.modulus)}}(d),h=d.modulus.byteLength(),A=new t(b).mul(N.blinder).umod(d.modulus),D=A.toRed(t.mont(d.prime1)),w=A.toRed(t.mont(d.prime2)),S=d.coefficient,I=d.prime1,L=d.prime2,U=D.redPow(d.exponent1).fromRed(),Z=w.redPow(d.exponent2).fromRed(),j=U.isub(Z).imul(S).umod(I).imul(L);return Z.iadd(j).imul(N.unblinder).umod(d.modulus).toArrayLike(Buffer,"be",h)}a.getr=M,Fe.exports=a},7793:(Fe,Y,p)=>{Fe.exports=p(5207)},3923:(Fe,Y,p)=>{var t=p(8446).Buffer,e=p(6386),f=p(5685),M=p(3894),a=p(9947),b=p(3946),d=p(5207);function N(w){f.Writable.call(this);var S=d[w];if(!S)throw new Error("Unknown message digest");this._hashType=S.hash,this._hash=e(S.hash),this._tag=S.id,this._signType=S.sign}function h(w){f.Writable.call(this);var S=d[w];if(!S)throw new Error("Unknown message digest");this._hash=e(S.hash),this._tag=S.id,this._signType=S.sign}function A(w){return new N(w)}function D(w){return new h(w)}Object.keys(d).forEach(function(w){d[w].id=t.from(d[w].id,"hex"),d[w.toLowerCase()]=d[w]}),M(N,f.Writable),N.prototype._write=function(S,I,L){this._hash.update(S),L()},N.prototype.update=function(S,I){return"string"==typeof S&&(S=t.from(S,I)),this._hash.update(S),this},N.prototype.sign=function(S,I){this.end();var L=this._hash.digest(),U=a(L,S,this._hashType,this._signType,this._tag);return I?U.toString(I):U},M(h,f.Writable),h.prototype._write=function(S,I,L){this._hash.update(S),L()},h.prototype.update=function(S,I){return"string"==typeof S&&(S=t.from(S,I)),this._hash.update(S),this},h.prototype.verify=function(S,I,L){"string"==typeof I&&(I=t.from(I,L)),this.end();var U=this._hash.digest();return b(I,U,S,this._signType,this._tag)},Fe.exports={Sign:A,Verify:D,createSign:A,createVerify:D}},9947:(Fe,Y,p)=>{var t=p(8446).Buffer,e=p(4529),f=p(8466),M=p(7715).ec,a=p(8538),b=p(2772),d=p(1308);function w(Z,j,ne,X){if((Z=t.from(Z.toArray())).length0&&ne.ishrn(X),ne}function L(Z,j,ne){var X,de;do{for(X=t.alloc(0);8*X.length{var t=p(8446).Buffer,e=p(8538),f=p(7715).ec,M=p(2772),a=p(1308);function h(A,D){if(A.cmpn(0)<=0)throw new Error("invalid sig");if(A.cmp(D)>=D)throw new Error("invalid sig")}Fe.exports=function b(A,D,w,S,I){var L=M(w);if("ec"===L.type){if("ecdsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");return function d(A,D,w){var S=a[w.data.algorithm.curve.join(".")];if(!S)throw new Error("unknown curve "+w.data.algorithm.curve.join("."));return new f(S).verify(D,A,w.data.subjectPrivateKey.data)}(A,D,L)}if("dsa"===L.type){if("dsa"!==S)throw new Error("wrong public key type");return function N(A,D,w){var S=w.data.p,I=w.data.q,L=w.data.g,U=w.data.pub_key,Z=M.signature.decode(A,"der"),j=Z.s,ne=Z.r;h(j,I),h(ne,I);var X=e.mont(S),de=j.invm(I);return 0===L.toRed(X).redPow(new e(D).mul(de).mod(I)).fromRed().mul(U.toRed(X).redPow(ne.mul(de).mod(I)).fromRed()).mod(S).mod(I).cmp(ne)}(A,D,L)}if("rsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");D=t.concat([I,D]);for(var U=L.modulus.byteLength(),Z=[1],j=0;D.length+Z.length+2{var t=p(3172),e=t.Buffer;function f(a,b){for(var d in a)b[d]=a[d]}function M(a,b,d){return e(a,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Fe.exports=t:(f(t,Y),Y.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(a,b,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,b,d)},M.alloc=function(a,b,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var N=e(a);return void 0!==b?"string"==typeof d?N.fill(b,d):N.fill(b):N.fill(0),N},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},8789:Fe=>{Fe.exports=function(p,t){for(var e=Math.min(p.length,t.length),f=new Buffer(e),M=0;M{"use strict";var t=p(5343),e=p(8461),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Y.Buffer=d,Y.SlowBuffer=function j(Ie){return+Ie!=Ie&&(Ie=0),d.alloc(+Ie)},Y.INSPECT_MAX_BYTES=50;var M=2147483647;function b(Ie){if(Ie>M)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var De=new Uint8Array(Ie);return Object.setPrototypeOf(De,d.prototype),De}function d(Ie,De,oe){if("number"==typeof Ie){if("string"==typeof De)throw new TypeError('The "string" argument must be of type string. Received type number');return D(Ie)}return N(Ie,De,oe)}function N(Ie,De,oe){if("string"==typeof Ie)return function w(Ie,De){if(("string"!=typeof De||""===De)&&(De="utf8"),!d.isEncoding(De))throw new TypeError("Unknown encoding: "+De);var oe=0|ne(Ie,De),Te=b(oe),ye=Te.write(Ie,De);return ye!==oe&&(Te=Te.slice(0,ye)),Te}(Ie,De);if(ArrayBuffer.isView(Ie))return function I(Ie){if(F(Ie,Uint8Array)){var De=new Uint8Array(Ie);return L(De.buffer,De.byteOffset,De.byteLength)}return S(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(F(Ie,ArrayBuffer)||Ie&&F(Ie.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(F(Ie,SharedArrayBuffer)||Ie&&F(Ie.buffer,SharedArrayBuffer)))return L(Ie,De,oe);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,De,oe);var ye=function U(Ie){if(d.isBuffer(Ie)){var De=0|Z(Ie.length),oe=b(De);return 0===oe.length||Ie.copy(oe,0,0,De),oe}return void 0!==Ie.length?"number"!=typeof Ie.length||Ae(Ie.length)?b(0):S(Ie):"Buffer"===Ie.type&&Array.isArray(Ie.data)?S(Ie.data):void 0}(Ie);if(ye)return ye;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Ie[Symbol.toPrimitive])return d.from(Ie[Symbol.toPrimitive]("string"),De,oe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie)}function h(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 D(Ie){return h(Ie),b(Ie<0?0:0|Z(Ie))}function S(Ie){for(var De=Ie.length<0?0:0|Z(Ie.length),oe=b(De),Te=0;Te=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return 0|Ie}function ne(Ie,De){if(d.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||F(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 oe=Ie.length,Te=arguments.length>2&&!0===arguments[2];if(!Te&&0===oe)return 0;for(var ye=!1;;)switch(De){case"ascii":case"latin1":case"binary":return oe;case"utf8":case"utf-8":return Re(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*oe;case"hex":return oe>>>1;case"base64":return Ge(Ie).length;default:if(ye)return Te?-1:Re(Ie).length;De=(""+De).toLowerCase(),ye=!0}}function X(Ie,De,oe){var Te=!1;if((void 0===De||De<0)&&(De=0),De>this.length||((void 0===oe||oe>this.length)&&(oe=this.length),oe<=0)||(oe>>>=0)<=(De>>>=0))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return _(this,De,oe);case"utf8":case"utf-8":return u(this,De,oe);case"ascii":return E(this,De,oe);case"latin1":case"binary":return O(this,De,oe);case"base64":return r(this,De,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,De,oe);default:if(Te)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),Te=!0}}function de(Ie,De,oe){var Te=Ie[De];Ie[De]=Ie[oe],Ie[oe]=Te}function ee(Ie,De,oe,Te,ye){if(0===Ie.length)return-1;if("string"==typeof oe?(Te=oe,oe=0):oe>2147483647?oe=2147483647:oe<-2147483648&&(oe=-2147483648),Ae(oe=+oe)&&(oe=ye?0:Ie.length-1),oe<0&&(oe=Ie.length+oe),oe>=Ie.length){if(ye)return-1;oe=Ie.length-1}else if(oe<0){if(!ye)return-1;oe=0}if("string"==typeof De&&(De=d.from(De,Te)),d.isBuffer(De))return 0===De.length?-1:te(Ie,De,oe,Te,ye);if("number"==typeof De)return De&=255,"function"==typeof Uint8Array.prototype.indexOf?ye?Uint8Array.prototype.indexOf.call(Ie,De,oe):Uint8Array.prototype.lastIndexOf.call(Ie,De,oe):te(Ie,[De],oe,Te,ye);throw new TypeError("val must be string, number or Buffer")}function te(Ie,De,oe,Te,ye){var Le,W=1,$=Ie.length,ue=De.length;if(void 0!==Te&&("ucs2"===(Te=String(Te).toLowerCase())||"ucs-2"===Te||"utf16le"===Te||"utf-16le"===Te)){if(Ie.length<2||De.length<2)return-1;W=2,$/=2,ue/=2,oe/=2}function Ce(di,Yt){return 1===W?di[Yt]:di.readUInt16BE(Yt*W)}if(ye){var ct=-1;for(Le=oe;Le<$;Le++)if(Ce(Ie,Le)===Ce(De,-1===ct?0:Le-ct)){if(-1===ct&&(ct=Le),Le-ct+1===ue)return ct*W}else-1!==ct&&(Le-=Le-ct),ct=-1}else for(oe+ue>$&&(oe=$-ue),Le=oe;Le>=0;Le--){for(var ut=!0,Dt=0;Dtye&&(Te=ye):Te=ye;var W=De.length;Te>W/2&&(Te=W/2);for(var $=0;$>8,W.push(oe%256),W.push(Te);return W}(De,Ie.length-oe),Ie,oe,Te)}function r(Ie,De,oe){return t.fromByteArray(0===De&&oe===Ie.length?Ie:Ie.slice(De,oe))}function u(Ie,De,oe){oe=Math.min(Ie.length,oe);for(var Te=[],ye=De;ye239?4:W>223?3:W>191?2:1;if(ye+ue<=oe)switch(ue){case 1:W<128&&($=W);break;case 2:128==(192&(Ce=Ie[ye+1]))&&(ut=(31&W)<<6|63&Ce)>127&&($=ut);break;case 3:Le=Ie[ye+2],128==(192&(Ce=Ie[ye+1]))&&128==(192&Le)&&(ut=(15&W)<<12|(63&Ce)<<6|63&Le)>2047&&(ut<55296||ut>57343)&&($=ut);break;case 4:Le=Ie[ye+2],ct=Ie[ye+3],128==(192&(Ce=Ie[ye+1]))&&128==(192&Le)&&128==(192&ct)&&(ut=(15&W)<<18|(63&Ce)<<12|(63&Le)<<6|63&ct)>65535&&ut<1114112&&($=ut)}null===$?($=65533,ue=1):$>65535&&(Te.push(($-=65536)>>>10&1023|55296),$=56320|1023&$),Te.push($),ye+=ue}return function C(Ie){var De=Ie.length;if(De<=c)return String.fromCharCode.apply(String,Ie);for(var oe="",Te=0;Teye.length?d.from($).copy(ye,W):Uint8Array.prototype.set.call(ye,$,W);else{if(!d.isBuffer($))throw new TypeError('"list" argument must be an Array of Buffers');$.copy(ye,W)}W+=$.length}return ye},d.byteLength=ne,d.prototype._isBuffer=!0,d.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 oe=0;oeoe&&(De+=" ... "),""},f&&(d.prototype[f]=d.prototype.inspect),d.prototype.compare=function(De,oe,Te,ye,W){if(F(De,Uint8Array)&&(De=d.from(De,De.offset,De.byteLength)),!d.isBuffer(De))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof De);if(void 0===oe&&(oe=0),void 0===Te&&(Te=De?De.length:0),void 0===ye&&(ye=0),void 0===W&&(W=this.length),oe<0||Te>De.length||ye<0||W>this.length)throw new RangeError("out of range index");if(ye>=W&&oe>=Te)return 0;if(ye>=W)return-1;if(oe>=Te)return 1;if(this===De)return 0;for(var $=(W>>>=0)-(ye>>>=0),ue=(Te>>>=0)-(oe>>>=0),Ce=Math.min($,ue),Le=this.slice(ye,W),ct=De.slice(oe,Te),ut=0;ut>>=0,isFinite(Te)?(Te>>>=0,void 0===ye&&(ye="utf8")):(ye=Te,Te=void 0)}var W=this.length-oe;if((void 0===Te||Te>W)&&(Te=W),De.length>0&&(Te<0||oe<0)||oe>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");for(var $=!1;;)switch(ye){case"hex":return ce(this,De,oe,Te);case"utf8":case"utf-8":return J(this,De,oe,Te);case"ascii":case"latin1":case"binary":return ge(this,De,oe,Te);case"base64":return y(this,De,oe,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,De,oe,Te);default:if($)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),$=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c=4096;function E(Ie,De,oe){var Te="";oe=Math.min(Ie.length,oe);for(var ye=De;yeTe)&&(oe=Te);for(var ye="",W=De;Woe)throw new RangeError("Trying to access beyond buffer length")}function B(Ie,De,oe,Te,ye,W){if(!d.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(De>ye||DeIe.length)throw new RangeError("Index out of range")}function P(Ie,De,oe,Te,ye,W){if(oe+Te>Ie.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("Index out of range")}function z(Ie,De,oe,Te,ye){return De=+De,oe>>>=0,ye||P(Ie,0,oe,4),e.write(Ie,De,oe,Te,23,4),oe+4}function se(Ie,De,oe,Te,ye){return De=+De,oe>>>=0,ye||P(Ie,0,oe,8),e.write(Ie,De,oe,Te,52,8),oe+8}d.prototype.slice=function(De,oe){var Te=this.length;(De=~~De)<0?(De+=Te)<0&&(De=0):De>Te&&(De=Te),(oe=void 0===oe?Te:~~oe)<0?(oe+=Te)<0&&(oe=0):oe>Te&&(oe=Te),oe>>=0,oe>>>=0,Te||v(De,oe,this.length);for(var ye=this[De],W=1,$=0;++$>>=0,oe>>>=0,Te||v(De,oe,this.length);for(var ye=this[De+--oe],W=1;oe>0&&(W*=256);)ye+=this[De+--oe]*W;return ye},d.prototype.readUint8=d.prototype.readUInt8=function(De,oe){return De>>>=0,oe||v(De,1,this.length),this[De]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(De,oe){return De>>>=0,oe||v(De,2,this.length),this[De]|this[De+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(De,oe){return De>>>=0,oe||v(De,2,this.length),this[De]<<8|this[De+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(De,oe){return De>>>=0,oe||v(De,4,this.length),(this[De]|this[De+1]<<8|this[De+2]<<16)+16777216*this[De+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(De,oe){return De>>>=0,oe||v(De,4,this.length),16777216*this[De]+(this[De+1]<<16|this[De+2]<<8|this[De+3])},d.prototype.readIntLE=function(De,oe,Te){De>>>=0,oe>>>=0,Te||v(De,oe,this.length);for(var ye=this[De],W=1,$=0;++$=(W*=128)&&(ye-=Math.pow(2,8*oe)),ye},d.prototype.readIntBE=function(De,oe,Te){De>>>=0,oe>>>=0,Te||v(De,oe,this.length);for(var ye=oe,W=1,$=this[De+--ye];ye>0&&(W*=256);)$+=this[De+--ye]*W;return $>=(W*=128)&&($-=Math.pow(2,8*oe)),$},d.prototype.readInt8=function(De,oe){return De>>>=0,oe||v(De,1,this.length),128&this[De]?-1*(255-this[De]+1):this[De]},d.prototype.readInt16LE=function(De,oe){De>>>=0,oe||v(De,2,this.length);var Te=this[De]|this[De+1]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt16BE=function(De,oe){De>>>=0,oe||v(De,2,this.length);var Te=this[De+1]|this[De]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt32LE=function(De,oe){return De>>>=0,oe||v(De,4,this.length),this[De]|this[De+1]<<8|this[De+2]<<16|this[De+3]<<24},d.prototype.readInt32BE=function(De,oe){return De>>>=0,oe||v(De,4,this.length),this[De]<<24|this[De+1]<<16|this[De+2]<<8|this[De+3]},d.prototype.readFloatLE=function(De,oe){return De>>>=0,oe||v(De,4,this.length),e.read(this,De,!0,23,4)},d.prototype.readFloatBE=function(De,oe){return De>>>=0,oe||v(De,4,this.length),e.read(this,De,!1,23,4)},d.prototype.readDoubleLE=function(De,oe){return De>>>=0,oe||v(De,8,this.length),e.read(this,De,!0,52,8)},d.prototype.readDoubleBE=function(De,oe){return De>>>=0,oe||v(De,8,this.length),e.read(this,De,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(De,oe,Te,ye){De=+De,oe>>>=0,Te>>>=0,ye||B(this,De,oe,Te,Math.pow(2,8*Te)-1,0);var $=1,ue=0;for(this[oe]=255&De;++ue>>=0,Te>>>=0,ye||B(this,De,oe,Te,Math.pow(2,8*Te)-1,0);var $=Te-1,ue=1;for(this[oe+$]=255&De;--$>=0&&(ue*=256);)this[oe+$]=De/ue&255;return oe+Te},d.prototype.writeUint8=d.prototype.writeUInt8=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,1,255,0),this[oe]=255&De,oe+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,2,65535,0),this[oe]=255&De,this[oe+1]=De>>>8,oe+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,2,65535,0),this[oe]=De>>>8,this[oe+1]=255&De,oe+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,4,4294967295,0),this[oe+3]=De>>>24,this[oe+2]=De>>>16,this[oe+1]=De>>>8,this[oe]=255&De,oe+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,4,4294967295,0),this[oe]=De>>>24,this[oe+1]=De>>>16,this[oe+2]=De>>>8,this[oe+3]=255&De,oe+4},d.prototype.writeIntLE=function(De,oe,Te,ye){if(De=+De,oe>>>=0,!ye){var W=Math.pow(2,8*Te-1);B(this,De,oe,Te,W-1,-W)}var $=0,ue=1,Ce=0;for(this[oe]=255&De;++$>0)-Ce&255;return oe+Te},d.prototype.writeIntBE=function(De,oe,Te,ye){if(De=+De,oe>>>=0,!ye){var W=Math.pow(2,8*Te-1);B(this,De,oe,Te,W-1,-W)}var $=Te-1,ue=1,Ce=0;for(this[oe+$]=255&De;--$>=0&&(ue*=256);)De<0&&0===Ce&&0!==this[oe+$+1]&&(Ce=1),this[oe+$]=(De/ue>>0)-Ce&255;return oe+Te},d.prototype.writeInt8=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,1,127,-128),De<0&&(De=255+De+1),this[oe]=255&De,oe+1},d.prototype.writeInt16LE=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,2,32767,-32768),this[oe]=255&De,this[oe+1]=De>>>8,oe+2},d.prototype.writeInt16BE=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,2,32767,-32768),this[oe]=De>>>8,this[oe+1]=255&De,oe+2},d.prototype.writeInt32LE=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,4,2147483647,-2147483648),this[oe]=255&De,this[oe+1]=De>>>8,this[oe+2]=De>>>16,this[oe+3]=De>>>24,oe+4},d.prototype.writeInt32BE=function(De,oe,Te){return De=+De,oe>>>=0,Te||B(this,De,oe,4,2147483647,-2147483648),De<0&&(De=4294967295+De+1),this[oe]=De>>>24,this[oe+1]=De>>>16,this[oe+2]=De>>>8,this[oe+3]=255&De,oe+4},d.prototype.writeFloatLE=function(De,oe,Te){return z(this,De,oe,!0,Te)},d.prototype.writeFloatBE=function(De,oe,Te){return z(this,De,oe,!1,Te)},d.prototype.writeDoubleLE=function(De,oe,Te){return se(this,De,oe,!0,Te)},d.prototype.writeDoubleBE=function(De,oe,Te){return se(this,De,oe,!1,Te)},d.prototype.copy=function(De,oe,Te,ye){if(!d.isBuffer(De))throw new TypeError("argument should be a Buffer");if(Te||(Te=0),!ye&&0!==ye&&(ye=this.length),oe>=De.length&&(oe=De.length),oe||(oe=0),ye>0&&ye=this.length)throw new RangeError("Index out of range");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),De.length-oe>>=0,Te=void 0===Te?this.length:Te>>>0,De||(De=0),"number"==typeof De)for($=oe;$55295&&oe<57344){if(!ye){if(oe>56319){(De-=3)>-1&&W.push(239,191,189);continue}if($+1===Te){(De-=3)>-1&&W.push(239,191,189);continue}ye=oe;continue}if(oe<56320){(De-=3)>-1&&W.push(239,191,189),ye=oe;continue}oe=65536+(ye-55296<<10|oe-56320)}else ye&&(De-=3)>-1&&W.push(239,191,189);if(ye=null,oe<128){if((De-=1)<0)break;W.push(oe)}else if(oe<2048){if((De-=2)<0)break;W.push(oe>>6|192,63&oe|128)}else if(oe<65536){if((De-=3)<0)break;W.push(oe>>12|224,oe>>6&63|128,63&oe|128)}else{if(!(oe<1114112))throw new Error("Invalid code point");if((De-=4)<0)break;W.push(oe>>18|240,oe>>12&63|128,oe>>6&63|128,63&oe|128)}}return W}function Ge(Ie){return t.toByteArray(function xe(Ie){if((Ie=(Ie=Ie.split("=")[0]).trim().replace(fe,"")).length<2)return"";for(;Ie.length%4!=0;)Ie+="=";return Ie}(Ie))}function ve(Ie,De,oe,Te){for(var ye=0;ye=De.length||ye>=Ie.length);++ye)De[ye+oe]=Ie[ye];return ye}function F(Ie,De){return Ie instanceof De||null!=Ie&&null!=Ie.constructor&&null!=Ie.constructor.name&&Ie.constructor.name===De.name}function Ae(Ie){return Ie!=Ie}var lt=function(){for(var Ie="0123456789abcdef",De=new Array(256),oe=0;oe<16;++oe)for(var Te=16*oe,ye=0;ye<16;++ye)De[Te+ye]=Ie[oe]+Ie[ye];return De}()},1052:(Fe,Y,p)=>{var t=p(3502).Buffer,e=p(295).Transform,f=p(3054).s;function a(b){e.call(this),this.hashMode="string"==typeof b,this.hashMode?this[b]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(3894)(a,e),a.prototype.update=function(b,d,N){"string"==typeof b&&(b=t.from(b,d));var h=this._update(b);return this.hashMode?this:(N&&(h=this._toString(h,N)),h)},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(b,d,N){var h;try{this.hashMode?this._update(b):this.push(this._update(b))}catch(A){h=A}finally{N(h)}},a.prototype._flush=function(b){var d;try{this.push(this.__final())}catch(N){d=N}b(d)},a.prototype._finalOrDigest=function(b){var d=this.__final()||t.alloc(0);return b&&(d=this._toString(d,b,!0)),d},a.prototype._toString=function(b,d,N){if(this._decoder||(this._decoder=new f(d),this._encoding=d),this._encoding!==d)throw new Error("can't switch encodings");var h=this._decoder.write(b);return N&&(h+=this._decoder.end()),h},Fe.exports=a},7293:(Fe,Y,p)=>{"use strict";const t=p(4315),e=p(2872),f=p(717);Fe.exports=function M(d,N){switch(e(d)){case"object":return function a(d,N){if("function"==typeof N)return N(d);if(N||f(d)){const h=new d.constructor;for(let A in d)h[A]=M(d[A],N);return h}return d}(d,N);case"array":return function b(d,N){const h=new d.constructor(d.length);for(let A=0;AM?f:Array(M-f.length+1).join("0")+f}(M.toString(16),2)}).join("")}(f)},hexToBytes:function(f){if(f.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===f.indexOf("0x")&&(f=f.slice(2)),f.match(/../g).map(function(M){return parseInt(M,16)})}};Fe.exports?Fe.exports=p:Y.convertHex=p}(this)},5612:function(Fe){!function(Y){"use strict";var p={bytesToString:function(t){return t.map(function(e){return String.fromCharCode(e)}).join("")},stringToBytes:function(t){return t.split("").map(function(e){return e.charCodeAt(0)})}};p.UTF8={bytesToString:function(t){return decodeURIComponent(escape(p.bytesToString(t)))},stringToBytes:function(t){return p.stringToBytes(unescape(encodeURIComponent(t)))}},Fe.exports?Fe.exports=p:Y.convertString=p}(this)},4746:(Fe,Y,p)=>{var t=p(7715),e=p(6422);Fe.exports=function(d){return new M(d)};var f={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 M(b){this.curveType=f[b],this.curveType||(this.curveType={name:b}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(b,d,N){Array.isArray(b)||(b=b.toArray());var h=new Buffer(b);if(N&&h.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function N(y,i,r){var u=d(y,r);return r-1>=i&&(u|=d(y,r-1)<<4),u}function h(y,i,r,u){for(var c=0,C=Math.min(y.length,r),E=i;E=49?O-49+10:O>=17?O-17+10:O}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);else if("le"===u)for(c=0,C=0;c>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)O=N(i,r,c)<=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var E=i.length-u,O=E%c,_=Math.min(E,E-O)+u,n=0,v=u;v<_;v+=c)n=h(i,v,v+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==O){var B=1;for(n=h(i,v,i.length,r),v=0;v1&&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 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"],D=[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],w=[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 I(y,i,r){r.negative=i.negative^y.negative;var u=y.length+i.length|0;r.length=u,u=u-1|0;var c=0|y.words[0],C=0|i.words[0],E=c*C,_=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&_,P=Math.min(n,i.length-1),z=Math.max(0,n-y.length+1);z<=P;z++)v+=(E=(c=0|y.words[n-z|0])*(C=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,_=0|v}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,C=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-_.length]+_+u:_+u,(c+=2)>=26&&(c-=26,E--)}for(0!==C&&(u=C.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=D[i],v=w[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var P=B.modn(v).toString(i);u=(B=B.idivn(v)).isZero()?P+u:A[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),C=u||Math.max(1,c);f(c<=C,"byte array longer than desired length"),f(C>0,"Requested array length <= 0"),this.strip();var _,n,E="le"===r,O=new i(C),v=this.clone();if(E){for(n=0;!v.isZero();n++)_=v.andln(255),v.iushrn(8),O[n]=_;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var C=0,E=0;E>>26;for(;0!==C&&E>>26;if(this.length=u.length,0!==C)this.words[this.length]=C,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,C,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,C=i):(c=i,C=this);for(var E=0,O=0;O>26,this.words[O]=67108863&r;for(;0!==E&&O>26,this.words[O]=67108863&r;if(0===E&&O>>13,se=0|c[1],fe=8191&se,xe=se>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,Ae=0|c[4],lt=8191&Ae,Ie=Ae>>>13,De=0|c[5],oe=8191&De,Te=De>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|C[0],xt=8191&ui,Nt=ui>>>13,gt=0|C[1],et=8191>,vt=gt>>>13,$t=0|C[2],jt=8191&$t,Pe=$t>>>13,Oe=0|C[3],le=8191&Oe,be=Oe>>>13,ht=0|C[4],ft=8191&ht,Ht=ht>>>13,it=0|C[5],Ne=8191&it,tt=it>>>13,Je=0|C[6],Se=8191&Je,Ue=Je>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,gi=0|C[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|C[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(O+(_=Math.imul(P,xt))|0)+((8191&(n=(n=Math.imul(P,Nt))+Math.imul(z,xt)|0))<<13)|0;O=((v=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul(fe,xt),n=(n=Math.imul(fe,Nt))+Math.imul(xe,xt)|0,v=Math.imul(xe,Nt);var Wi=(O+(_=_+Math.imul(P,et)|0)|0)+((8191&(n=(n=n+Math.imul(P,vt)|0)+Math.imul(z,et)|0))<<13)|0;O=((v=v+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,v=Math.imul(Q,Nt),_=_+Math.imul(fe,et)|0,n=(n=n+Math.imul(fe,vt)|0)+Math.imul(xe,et)|0,v=v+Math.imul(xe,vt)|0;var Gi=(O+(_=_+Math.imul(P,jt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;O=((v=v+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,v=Math.imul(F,Nt),_=_+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,v=v+Math.imul(Q,vt)|0,_=_+Math.imul(fe,jt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(xe,jt)|0,v=v+Math.imul(xe,Pe)|0;var Yi=(O+(_=_+Math.imul(P,le)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(z,le)|0))<<13)|0;O=((v=v+Math.imul(z,be)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,_=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,v=Math.imul(Ie,Nt),_=_+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,v=v+Math.imul(F,vt)|0,_=_+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,v=v+Math.imul(Q,Pe)|0,_=_+Math.imul(fe,le)|0,n=(n=n+Math.imul(fe,be)|0)+Math.imul(xe,le)|0,v=v+Math.imul(xe,be)|0;var ze=(O+(_=_+Math.imul(P,ft)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;O=((v=v+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,_=Math.imul(oe,xt),n=(n=Math.imul(oe,Nt))+Math.imul(Te,xt)|0,v=Math.imul(Te,Nt),_=_+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,v=v+Math.imul(Ie,vt)|0,_=_+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,v=v+Math.imul(F,Pe)|0,_=_+Math.imul(we,le)|0,n=(n=n+Math.imul(we,be)|0)+Math.imul(Q,le)|0,v=v+Math.imul(Q,be)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(xe,ft)|0,v=v+Math.imul(xe,Ht)|0;var Lt=(O+(_=_+Math.imul(P,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(P,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;O=((v=v+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,v=Math.imul($,Nt),_=_+Math.imul(oe,et)|0,n=(n=n+Math.imul(oe,vt)|0)+Math.imul(Te,et)|0,v=v+Math.imul(Te,vt)|0,_=_+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,v=v+Math.imul(Ie,Pe)|0,_=_+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,be)|0)+Math.imul(F,le)|0,v=v+Math.imul(F,be)|0,_=_+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,v=v+Math.imul(Q,Ht)|0,_=_+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,tt)|0)+Math.imul(xe,Ne)|0,v=v+Math.imul(xe,tt)|0;var pe=(O+(_=_+Math.imul(P,Se)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;O=((v=v+Math.imul(z,Ue)|0)+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,_=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,v=Math.imul(Le,Nt),_=_+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,v=v+Math.imul($,vt)|0,_=_+Math.imul(oe,jt)|0,n=(n=n+Math.imul(oe,Pe)|0)+Math.imul(Te,jt)|0,v=v+Math.imul(Te,Pe)|0,_=_+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,be)|0)+Math.imul(Ie,le)|0,v=v+Math.imul(Ie,be)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,v=v+Math.imul(F,Ht)|0,_=_+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,v=v+Math.imul(Q,tt)|0,_=_+Math.imul(fe,Se)|0,n=(n=n+Math.imul(fe,Ue)|0)+Math.imul(xe,Se)|0,v=v+Math.imul(xe,Ue)|0;var je=(O+(_=_+Math.imul(P,at)|0)|0)+((8191&(n=(n=n+Math.imul(P,yt)|0)+Math.imul(z,at)|0))<<13)|0;O=((v=v+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,_=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,v=Math.imul(Dt,Nt),_=_+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,v=v+Math.imul(Le,vt)|0,_=_+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,v=v+Math.imul($,Pe)|0,_=_+Math.imul(oe,le)|0,n=(n=n+Math.imul(oe,be)|0)+Math.imul(Te,le)|0,v=v+Math.imul(Te,be)|0,_=_+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,v=v+Math.imul(Ie,Ht)|0,_=_+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,v=v+Math.imul(F,tt)|0,_=_+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,v=v+Math.imul(Q,Ue)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(xe,at)|0,v=v+Math.imul(xe,yt)|0;var Ct=(O+(_=_+Math.imul(P,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;O=((v=v+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,_=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,v=Math.imul(Gt,Nt),_=_+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,v=v+Math.imul(Dt,vt)|0,_=_+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,Pe)|0,_=_+Math.imul(W,le)|0,n=(n=n+Math.imul(W,be)|0)+Math.imul($,le)|0,v=v+Math.imul($,be)|0,_=_+Math.imul(oe,ft)|0,n=(n=n+Math.imul(oe,Ht)|0)+Math.imul(Te,ft)|0,v=v+Math.imul(Te,Ht)|0,_=_+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,v=v+Math.imul(Ie,tt)|0,_=_+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,v=v+Math.imul(F,Ue)|0,_=_+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,v=v+Math.imul(Q,yt)|0,_=_+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(xe,Qt)|0,v=v+Math.imul(xe,Jt)|0;var ie=(O+(_=_+Math.imul(P,fi)|0)|0)+((8191&(n=(n=n+Math.imul(P,ai)|0)+Math.imul(z,fi)|0))<<13)|0;O=((v=v+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,_=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,v=Math.imul(Gt,vt),_=_+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,v=v+Math.imul(Dt,Pe)|0,_=_+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,be)|0)+Math.imul(Le,le)|0,v=v+Math.imul(Le,be)|0,_=_+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,v=v+Math.imul($,Ht)|0,_=_+Math.imul(oe,Ne)|0,n=(n=n+Math.imul(oe,tt)|0)+Math.imul(Te,Ne)|0,v=v+Math.imul(Te,tt)|0,_=_+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,v=v+Math.imul(Ie,Ue)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,v=v+Math.imul(F,yt)|0,_=_+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,v=v+Math.imul(Q,Jt)|0;var qe=(O+(_=_+Math.imul(fe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(xe,fi)|0))<<13)|0;O=((v=v+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,_=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,v=Math.imul(Gt,Pe),_=_+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Dt,le)|0,v=v+Math.imul(Dt,be)|0,_=_+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,v=v+Math.imul(Le,Ht)|0,_=_+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,v=v+Math.imul($,tt)|0,_=_+Math.imul(oe,Se)|0,n=(n=n+Math.imul(oe,Ue)|0)+Math.imul(Te,Se)|0,v=v+Math.imul(Te,Ue)|0,_=_+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,v=v+Math.imul(Ie,yt)|0,_=_+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,v=v+Math.imul(F,Jt)|0;var Mt=(O+(_=_+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;O=((v=v+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,_=Math.imul(Yt,le),n=(n=Math.imul(Yt,be))+Math.imul(Gt,le)|0,v=Math.imul(Gt,be),_=_+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,v=v+Math.imul(Dt,Ht)|0,_=_+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,v=v+Math.imul(Le,tt)|0,_=_+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,v=v+Math.imul($,Ue)|0,_=_+Math.imul(oe,at)|0,n=(n=n+Math.imul(oe,yt)|0)+Math.imul(Te,at)|0,v=v+Math.imul(Te,yt)|0,_=_+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,v=v+Math.imul(Ie,Jt)|0;var Vt=(O+(_=_+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;O=((v=v+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,v=Math.imul(Gt,Ht),_=_+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,v=v+Math.imul(Dt,tt)|0,_=_+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,v=v+Math.imul(Le,Ue)|0,_=_+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,v=v+Math.imul($,yt)|0,_=_+Math.imul(oe,Qt)|0,n=(n=n+Math.imul(oe,Jt)|0)+Math.imul(Te,Qt)|0,v=v+Math.imul(Te,Jt)|0;var Mi=(O+(_=_+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;O=((v=v+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,_=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,v=Math.imul(Gt,tt),_=_+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,v=v+Math.imul(Dt,Ue)|0,_=_+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,v=v+Math.imul(Le,yt)|0,_=_+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,v=v+Math.imul($,Jt)|0;var Ei=(O+(_=_+Math.imul(oe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(oe,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;O=((v=v+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,v=Math.imul(Gt,Ue),_=_+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,v=v+Math.imul(Dt,yt)|0,_=_+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,v=v+Math.imul(Le,Jt)|0;var en=(O+(_=_+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;O=((v=v+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,v=Math.imul(Gt,yt),_=_+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,v=v+Math.imul(Dt,Jt)|0;var ji=(O+(_=_+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;O=((v=v+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,_=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,v=Math.imul(Gt,Jt);var Kt=(O+(_=_+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;O=((v=v+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(O+(_=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return O=((v=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=pe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==O&&(E[19]=O,u.length++),u};function Z(y,i,r){return(new j).mulp(y,i,r)}function j(y,i){this.x=y,this.y=i}Math.imul||(L=I),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?L(this,i,r):c<63?I(this,i,r):c<1024?function U(y,i,r){r.negative=i.negative^y.negative,r.length=y.length+i.length;for(var u=0,c=0,C=0;C>>26)|0)>>>26,E&=67108863}r.words[C]=O,u=E,E=c}return 0!==u?r.words[C]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,C,E){for(var O=0;O>>=1)C++;return 1<>>=13),C>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=C>>>26,this.words[u]=67108863&C}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(y){for(var i=new Array(y.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var C,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(C=0;C>>26-r}E&&(this.words[C]=E,this.length++)}if(0!==u){for(C=this.length-1;C>=0;C--)this.words[C+u]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=i%26,E=Math.min((i-C)/26,this.length),O=67108863^67108863>>>C<E)for(this.length-=E,n=0;n=0&&(0!==v||n>=c);n--){var B=0|this.words[n];this.words[n]=v<<26-C|B>>>C,v=B&O}return _&&0!==v&&(_.words[_.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,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+u]=67108863&E}for(;C>26,this.words[C+u]=67108863&E;if(0===O)return this.strip();for(f(-1===O),O=0,C=0;C>26,this.words[C]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),C=i,E=0|C.words[C.length-1];0!=(u=26-this._countBits(E))&&(C=C.ushln(u),c.iushln(u),E=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 v=0;v=0;P--){var z=67108864*(0|c.words[C.length+P])+(0|c.words[C.length+P-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(C,z,P);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(C,1,P),c.isZero()||(c.negative^=1);n&&(n.words[P]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.iadd(i)),{div:c,mod:C}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.isub(i)),{div:E.div,mod:C}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,C,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),C=i.andln(1),E=u.cmp(c);return E<0||1===C&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=new a(0),O=new a(1),_=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++_;for(var n=u.clone(),v=r.clone();!r.isZero();){for(var B=0,P=1;0==(r.words[0]&P)&&B<26;++B,P<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(v)),c.iushrn(1),C.iushrn(1);for(var z=0,se=1;0==(u.words[0]&se)&&z<26;++z,se<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||O.isOdd())&&(E.iadd(n),O.isub(v)),E.iushrn(1),O.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),C.isub(O)):(u.isub(r),E.isub(c),O.isub(C))}return{a:E,b:O,gcd:u.iushln(_)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var O=0,_=1;0==(r.words[0]&_)&&O<26;++O,_<<=1);if(O>0)for(r.iushrn(O);O-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,v=1;0==(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(E),C.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(C)):(u.isub(r),C.isub(c))}return(B=0===r.cmpn(1)?c:C).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var C=r.cmp(u);if(C<0){var E=r;r=u,u=E}else if(0===C||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=O&=67108863}return 0!==C&&(this.words[E]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],C=0|i.words[u];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(y,i){this.name=y,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(y){if("string"==typeof y){var i=a._prime(y);this.m=i.p,this.prime=i}else f(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function ge(y){J.call(this,y),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 i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),C=0;C>>22,E=O}i.words[C-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=C,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),O=E.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(O);)n.redIAdd(O);for(var v=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),P=this.pow(i,c),z=C;0!==P.cmp(E);){for(var se=P,fe=0;0!==se.cmp(E);fe++)se=se.redSqr();f(fe=0;C--){for(var v=r.words[C],B=n-1;B>=0;B--){var P=v>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==P||0!==O?(O<<=1,O|=P,(4==++_||0===C&&0===B)&&(E=this.mul(E,c[O]),_=0,O=0)):_=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new ge(i)},M(ge,J),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},6386:(Fe,Y,p)=>{"use strict";var t=p(3894),e=p(8095),f=p(5634),M=p(5244),a=p(1052);function b(d){a.call(this,"digest"),this._hash=d}t(b,a),b.prototype._update=function(d){this._hash.update(d)},b.prototype._final=function(){return this._hash.digest()},Fe.exports=function(N){return"md5"===(N=N.toLowerCase())?new e:"rmd160"===N||"ripemd160"===N?new f:new b(M(N))}},5640:(Fe,Y,p)=>{var t=p(8095);Fe.exports=function(e){return(new t).update(e).digest()}},4529:(Fe,Y,p)=>{"use strict";var t=p(3894),e=p(7309),f=p(1052),M=p(3502).Buffer,a=p(5640),b=p(5634),d=p(5244),N=M.alloc(128);function h(A,D){f.call(this,"digest"),"string"==typeof D&&(D=M.from(D));var w="sha512"===A||"sha384"===A?128:64;this._alg=A,this._key=D,D.length>w?D=("rmd160"===A?new b:d(A)).update(D).digest():D.length{"use strict";var t=p(3894),e=p(3502).Buffer,f=p(1052),M=e.alloc(128),a=64;function b(d,N){f.call(this,"digest"),"string"==typeof N&&(N=e.from(N)),this._alg=d,this._key=N,N.length>a?N=d(N):N.length{"use strict";Y.randomBytes=Y.rng=Y.pseudoRandomBytes=Y.prng=p(3753),Y.createHash=Y.Hash=p(6386),Y.createHmac=Y.Hmac=p(4529);var t=p(7793),e=Object.keys(t),f=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);Y.getHashes=function(){return f};var M=p(9357);Y.pbkdf2=M.pbkdf2,Y.pbkdf2Sync=M.pbkdf2Sync;var a=p(5255);Y.Cipher=a.Cipher,Y.createCipher=a.createCipher,Y.Cipheriv=a.Cipheriv,Y.createCipheriv=a.createCipheriv,Y.Decipher=a.Decipher,Y.createDecipher=a.createDecipher,Y.Decipheriv=a.Decipheriv,Y.createDecipheriv=a.createDecipheriv,Y.getCiphers=a.getCiphers,Y.listCiphers=a.listCiphers;var b=p(8829);Y.DiffieHellmanGroup=b.DiffieHellmanGroup,Y.createDiffieHellmanGroup=b.createDiffieHellmanGroup,Y.getDiffieHellman=b.getDiffieHellman,Y.createDiffieHellman=b.createDiffieHellman,Y.DiffieHellman=b.DiffieHellman;var d=p(3923);Y.createSign=d.createSign,Y.Sign=d.Sign,Y.createVerify=d.createVerify,Y.Verify=d.Verify,Y.createECDH=p(4746);var N=p(3701);Y.publicEncrypt=N.publicEncrypt,Y.privateEncrypt=N.privateEncrypt,Y.publicDecrypt=N.publicDecrypt,Y.privateDecrypt=N.privateDecrypt;var h=p(4275);Y.randomFill=h.randomFill,Y.randomFillSync=h.randomFillSync,Y.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},Y.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:(Fe,Y,p)=>{"use strict";Y.utils=p(7451),Y.Cipher=p(8170),Y.DES=p(4631),Y.CBC=p(9454),Y.EDE=p(1862)},9454:(Fe,Y,p)=>{"use strict";var t=p(2391),e=p(3894),f={};function M(b){t.equal(b.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d{"use strict";var t=p(2391);function e(f){this.options=f,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Fe.exports=e,e.prototype._init=function(){},e.prototype.update=function(M){return 0===M.length?[]:"decrypt"===this.type?this._updateDecrypt(M):this._updateEncrypt(M)},e.prototype._buffer=function(M,a){for(var b=Math.min(this.buffer.length-this.bufferOff,M.length-a),d=0;d0;d--)a+=this._buffer(M,a),b+=this._flushBuffer(N,b);return a+=this._buffer(M,a),N},e.prototype.final=function(M){var a,b;return M&&(a=this.update(M)),b="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),a?a.concat(b):b},e.prototype._pad=function(M,a){if(0===a)return!1;for(;a{"use strict";var t=p(2391),e=p(3894),f=p(7451),M=p(8170);function a(){this.tmp=new Array(2),this.keys=null}function b(N){M.call(this,N);var h=new a;this._desState=h,this.deriveKeys(h,N.key)}e(b,M),Fe.exports=b,b.create=function(h){return new b(h)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];b.prototype.deriveKeys=function(h,A){h.keys=new Array(32),t.equal(A.length,this.blockSize,"Invalid key length");var D=f.readUInt32BE(A,0),w=f.readUInt32BE(A,4);f.pc1(D,w,h.tmp,0),D=h.tmp[0],w=h.tmp[1];for(var S=0;S>>1];D=f.r28shl(D,I),w=f.r28shl(w,I),f.pc2(D,w,h.keys,S)}},b.prototype._update=function(h,A,D,w){var S=this._desState,I=f.readUInt32BE(h,A),L=f.readUInt32BE(h,A+4);f.ip(I,L,S.tmp,0),I=S.tmp[0],L=S.tmp[1],"encrypt"===this.type?this._encrypt(S,I,L,S.tmp,0):this._decrypt(S,I,L,S.tmp,0),L=S.tmp[1],f.writeUInt32BE(D,I=S.tmp[0],w),f.writeUInt32BE(D,L,w+4)},b.prototype._pad=function(h,A){for(var D=h.length-A,w=A;w>>0,I=de}f.rip(L,I,w,S)},b.prototype._decrypt=function(h,A,D,w,S){for(var I=D,L=A,U=h.keys.length-2;U>=0;U-=2){var Z=h.keys[U],j=h.keys[U+1];f.expand(I,h.tmp,0);var ne=f.substitute(Z^=h.tmp[0],j^=h.tmp[1]),de=I;I=(L^f.permute(ne))>>>0,L=de}f.rip(I,L,w,S)}},1862:(Fe,Y,p)=>{"use strict";var t=p(2391),e=p(3894),f=p(8170),M=p(4631);function a(d,N){t.equal(N.length,24,"Invalid key length");var h=N.slice(0,8),A=N.slice(8,16),D=N.slice(16,24);this.ciphers="encrypt"===d?[M.create({type:"encrypt",key:h}),M.create({type:"decrypt",key:A}),M.create({type:"encrypt",key:D})]:[M.create({type:"decrypt",key:D}),M.create({type:"encrypt",key:A}),M.create({type:"decrypt",key:h})]}function b(d){f.call(this,d);var N=new a(this.type,this.options.key);this._edeState=N}e(b,f),Fe.exports=b,b.create=function(N){return new b(N)},b.prototype._update=function(N,h,A,D){var w=this._edeState;w.ciphers[0]._update(N,h,A,D),w.ciphers[1]._update(A,D,A,D),w.ciphers[2]._update(A,D,A,D)},b.prototype._pad=M.prototype._pad,b.prototype._unpad=M.prototype._unpad},7451:(Fe,Y)=>{"use strict";Y.readUInt32BE=function(M,a){return(M[0+a]<<24|M[1+a]<<16|M[2+a]<<8|M[3+a])>>>0},Y.writeUInt32BE=function(M,a,b){M[0+b]=a>>>24,M[1+b]=a>>>16&255,M[2+b]=a>>>8&255,M[3+b]=255&a},Y.ip=function(M,a,b,d){for(var N=0,h=0,A=6;A>=0;A-=2){for(var D=0;D<=24;D+=8)N<<=1,N|=a>>>D+A&1;for(D=0;D<=24;D+=8)N<<=1,N|=M>>>D+A&1}for(A=6;A>=0;A-=2){for(D=1;D<=25;D+=8)h<<=1,h|=a>>>D+A&1;for(D=1;D<=25;D+=8)h<<=1,h|=M>>>D+A&1}b[d+0]=N>>>0,b[d+1]=h>>>0},Y.rip=function(M,a,b,d){for(var N=0,h=0,A=0;A<4;A++)for(var D=24;D>=0;D-=8)N<<=1,N|=a>>>D+A&1,N<<=1,N|=M>>>D+A&1;for(A=4;A<8;A++)for(D=24;D>=0;D-=8)h<<=1,h|=a>>>D+A&1,h<<=1,h|=M>>>D+A&1;b[d+0]=N>>>0,b[d+1]=h>>>0},Y.pc1=function(M,a,b,d){for(var N=0,h=0,A=7;A>=5;A--){for(var D=0;D<=24;D+=8)N<<=1,N|=a>>D+A&1;for(D=0;D<=24;D+=8)N<<=1,N|=M>>D+A&1}for(D=0;D<=24;D+=8)N<<=1,N|=a>>D+A&1;for(A=1;A<=3;A++){for(D=0;D<=24;D+=8)h<<=1,h|=a>>D+A&1;for(D=0;D<=24;D+=8)h<<=1,h|=M>>D+A&1}for(D=0;D<=24;D+=8)h<<=1,h|=M>>D+A&1;b[d+0]=N>>>0,b[d+1]=h>>>0},Y.r28shl=function(M,a){return M<>>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];Y.pc2=function(M,a,b,d){for(var N=0,h=0,A=p.length>>>1,D=0;D>>p[D]&1;for(D=A;D>>p[D]&1;b[d+0]=N>>>0,b[d+1]=h>>>0},Y.expand=function(M,a,b){var d=0,N=0;d=(1&M)<<5|M>>>27;for(var h=23;h>=15;h-=4)d<<=6,d|=M>>>h&63;for(h=11;h>=3;h-=4)N|=M>>>h&63,N<<=6;N|=(31&M)<<1|M>>>31,a[b+0]=d>>>0,a[b+1]=N>>>0};var t=[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];Y.substitute=function(M,a){for(var b=0,d=0;d<4;d++)b<<=4,b|=t[64*d+(M>>>18-6*d&63)];for(d=0;d<4;d++)b<<=4,b|=t[256+64*d+(a>>>18-6*d&63)];return b>>>0};var e=[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];Y.permute=function(M){for(var a=0,b=0;b>>e[b]&1;return a>>>0},Y.padSplit=function(M,a,b){for(var d=M.toString(2);d.length{var t=p(5563),e=p(9799),f=p(1419),a={binary:!0,hex:!0,base64:!0};Y.DiffieHellmanGroup=Y.createDiffieHellmanGroup=Y.getDiffieHellman=function M(d){var N=new Buffer(e[d].prime,"hex"),h=new Buffer(e[d].gen,"hex");return new f(N,h)},Y.createDiffieHellman=Y.DiffieHellman=function b(d,N,h,A){return Buffer.isBuffer(N)||void 0===a[N]?b(d,"binary",N,h):(N=N||"binary",A=A||"binary",h=h||new Buffer([2]),Buffer.isBuffer(h)||(h=new Buffer(h,A)),"number"==typeof d?new f(t(d,h),h,!0):(Buffer.isBuffer(d)||(d=new Buffer(d,N)),new f(d,h,!0)))}},1419:(Fe,Y,p)=>{var t=p(8313),f=new(p(7079)),M=new t(24),a=new t(11),b=new t(10),d=new t(3),N=new t(7),h=p(5563),A=p(3753);function D(Z,j){return j=j||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,j)),this._pub=new t(Z),this}function w(Z,j){return j=j||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,j)),this._priv=new t(Z),this}Fe.exports=L;var S={};function L(Z,j,ne){this.setGenerator(j),this.__prime=new t(Z),this._prime=t.mont(this.__prime),this._primeLen=Z.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ne?(this.setPublicKey=D,this.setPrivateKey=w):this._primeCode=8}function U(Z,j){var ne=new Buffer(Z.toArray());return j?ne.toString(j):ne}Object.defineProperty(L.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function I(Z,j){var ne=j.toString("hex"),X=[ne,Z.toString(16)].join("_");if(X in S)return S[X];var ee,de=0;if(Z.isEven()||!h.simpleSieve||!h.fermatTest(Z)||!f.test(Z))return de+=1,S[X]=de+="02"===ne||"05"===ne?8:4,de;switch(f.test(Z.shrn(1))||(de+=2),ne){case"02":Z.mod(M).cmp(a)&&(de+=8);break;case"05":(ee=Z.mod(b)).cmp(d)&&ee.cmp(N)&&(de+=8);break;default:de+=4}return S[X]=de,de}(this.__prime,this.__gen)),this._primeCode}}),L.prototype.generateKeys=function(){return this._priv||(this._priv=new t(A(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},L.prototype.computeSecret=function(Z){var j=(Z=(Z=new t(Z)).toRed(this._prime)).redPow(this._priv).fromRed(),ne=new Buffer(j.toArray()),X=this.getPrime();if(ne.length{var t=p(3753);Fe.exports=de,de.simpleSieve=ne,de.fermatTest=X;var e=p(8313),f=new e(24),a=new(p(7079)),b=new e(1),d=new e(2),N=new e(5),D=(new e(16),new e(8),new e(10)),w=new e(3),I=(new e(7),new e(11)),L=new e(4),Z=(new e(12),null);function ne(ee){for(var te=function j(){if(null!==Z)return Z;var te=[];te[0]=2;for(var ce=1,J=3;J<1048576;J+=2){for(var ge=Math.ceil(Math.sqrt(J)),y=0;yee;)ce.ishrn(1);if(ce.isEven()&&ce.iadd(b),ce.testn(1)||ce.iadd(d),te.cmp(d)){if(!te.cmp(N))for(;ce.mod(D).cmp(w);)ce.iadd(L)}else for(;ce.mod(f).cmp(I);)ce.iadd(L);if(ne(J=ce.shrn(1))&&ne(ce)&&X(J)&&X(ce)&&a.test(J)&&a.test(ce))return ce}}},8313:function(Fe,Y,p){!function(t,e){"use strict";function f(y,i){if(!y)throw new Error(i||"Assertion failed")}function M(y,i){y.super_=i;var r=function(){};r.prototype=i.prototype,y.prototype=new r,y.prototype.constructor=y}function a(y,i,r){if(a.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(y||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7748).Buffer}catch(y){}function d(y,i){var r=y.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function N(y,i,r){var u=d(y,r);return r-1>=i&&(u|=d(y,r-1)<<4),u}function h(y,i,r,u){for(var c=0,C=Math.min(y.length,r),E=i;E=49?O-49+10:O>=17?O-17+10:O}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);else if("le"===u)for(c=0,C=0;c>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)O=N(i,r,c)<=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var E=i.length-u,O=E%c,_=Math.min(E,E-O)+u,n=0,v=u;v<_;v+=c)n=h(i,v,v+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==O){var B=1;for(n=h(i,v,i.length,r),v=0;v1&&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 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"],D=[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],w=[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 I(y,i,r){r.negative=i.negative^y.negative;var u=y.length+i.length|0;r.length=u,u=u-1|0;var c=0|y.words[0],C=0|i.words[0],E=c*C,_=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&_,P=Math.min(n,i.length-1),z=Math.max(0,n-y.length+1);z<=P;z++)v+=(E=(c=0|y.words[n-z|0])*(C=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,_=0|v}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,C=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-_.length]+_+u:_+u,(c+=2)>=26&&(c-=26,E--)}for(0!==C&&(u=C.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=D[i],v=w[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var P=B.modn(v).toString(i);u=(B=B.idivn(v)).isZero()?P+u:A[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),C=u||Math.max(1,c);f(c<=C,"byte array longer than desired length"),f(C>0,"Requested array length <= 0"),this.strip();var _,n,E="le"===r,O=new i(C),v=this.clone();if(E){for(n=0;!v.isZero();n++)_=v.andln(255),v.iushrn(8),O[n]=_;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var C=0,E=0;E>>26;for(;0!==C&&E>>26;if(this.length=u.length,0!==C)this.words[this.length]=C,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,C,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,C=i):(c=i,C=this);for(var E=0,O=0;O>26,this.words[O]=67108863&r;for(;0!==E&&O>26,this.words[O]=67108863&r;if(0===E&&O>>13,se=0|c[1],fe=8191&se,xe=se>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,Ae=0|c[4],lt=8191&Ae,Ie=Ae>>>13,De=0|c[5],oe=8191&De,Te=De>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|C[0],xt=8191&ui,Nt=ui>>>13,gt=0|C[1],et=8191>,vt=gt>>>13,$t=0|C[2],jt=8191&$t,Pe=$t>>>13,Oe=0|C[3],le=8191&Oe,be=Oe>>>13,ht=0|C[4],ft=8191&ht,Ht=ht>>>13,it=0|C[5],Ne=8191&it,tt=it>>>13,Je=0|C[6],Se=8191&Je,Ue=Je>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,gi=0|C[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|C[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(O+(_=Math.imul(P,xt))|0)+((8191&(n=(n=Math.imul(P,Nt))+Math.imul(z,xt)|0))<<13)|0;O=((v=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul(fe,xt),n=(n=Math.imul(fe,Nt))+Math.imul(xe,xt)|0,v=Math.imul(xe,Nt);var Wi=(O+(_=_+Math.imul(P,et)|0)|0)+((8191&(n=(n=n+Math.imul(P,vt)|0)+Math.imul(z,et)|0))<<13)|0;O=((v=v+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,v=Math.imul(Q,Nt),_=_+Math.imul(fe,et)|0,n=(n=n+Math.imul(fe,vt)|0)+Math.imul(xe,et)|0,v=v+Math.imul(xe,vt)|0;var Gi=(O+(_=_+Math.imul(P,jt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;O=((v=v+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,v=Math.imul(F,Nt),_=_+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,v=v+Math.imul(Q,vt)|0,_=_+Math.imul(fe,jt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(xe,jt)|0,v=v+Math.imul(xe,Pe)|0;var Yi=(O+(_=_+Math.imul(P,le)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(z,le)|0))<<13)|0;O=((v=v+Math.imul(z,be)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,_=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,v=Math.imul(Ie,Nt),_=_+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,v=v+Math.imul(F,vt)|0,_=_+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,v=v+Math.imul(Q,Pe)|0,_=_+Math.imul(fe,le)|0,n=(n=n+Math.imul(fe,be)|0)+Math.imul(xe,le)|0,v=v+Math.imul(xe,be)|0;var ze=(O+(_=_+Math.imul(P,ft)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;O=((v=v+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,_=Math.imul(oe,xt),n=(n=Math.imul(oe,Nt))+Math.imul(Te,xt)|0,v=Math.imul(Te,Nt),_=_+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,v=v+Math.imul(Ie,vt)|0,_=_+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,v=v+Math.imul(F,Pe)|0,_=_+Math.imul(we,le)|0,n=(n=n+Math.imul(we,be)|0)+Math.imul(Q,le)|0,v=v+Math.imul(Q,be)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(xe,ft)|0,v=v+Math.imul(xe,Ht)|0;var Lt=(O+(_=_+Math.imul(P,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(P,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;O=((v=v+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,v=Math.imul($,Nt),_=_+Math.imul(oe,et)|0,n=(n=n+Math.imul(oe,vt)|0)+Math.imul(Te,et)|0,v=v+Math.imul(Te,vt)|0,_=_+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,v=v+Math.imul(Ie,Pe)|0,_=_+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,be)|0)+Math.imul(F,le)|0,v=v+Math.imul(F,be)|0,_=_+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,v=v+Math.imul(Q,Ht)|0,_=_+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,tt)|0)+Math.imul(xe,Ne)|0,v=v+Math.imul(xe,tt)|0;var pe=(O+(_=_+Math.imul(P,Se)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;O=((v=v+Math.imul(z,Ue)|0)+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,_=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,v=Math.imul(Le,Nt),_=_+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,v=v+Math.imul($,vt)|0,_=_+Math.imul(oe,jt)|0,n=(n=n+Math.imul(oe,Pe)|0)+Math.imul(Te,jt)|0,v=v+Math.imul(Te,Pe)|0,_=_+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,be)|0)+Math.imul(Ie,le)|0,v=v+Math.imul(Ie,be)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,v=v+Math.imul(F,Ht)|0,_=_+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,v=v+Math.imul(Q,tt)|0,_=_+Math.imul(fe,Se)|0,n=(n=n+Math.imul(fe,Ue)|0)+Math.imul(xe,Se)|0,v=v+Math.imul(xe,Ue)|0;var je=(O+(_=_+Math.imul(P,at)|0)|0)+((8191&(n=(n=n+Math.imul(P,yt)|0)+Math.imul(z,at)|0))<<13)|0;O=((v=v+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,_=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,v=Math.imul(Dt,Nt),_=_+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,v=v+Math.imul(Le,vt)|0,_=_+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,v=v+Math.imul($,Pe)|0,_=_+Math.imul(oe,le)|0,n=(n=n+Math.imul(oe,be)|0)+Math.imul(Te,le)|0,v=v+Math.imul(Te,be)|0,_=_+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,v=v+Math.imul(Ie,Ht)|0,_=_+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,v=v+Math.imul(F,tt)|0,_=_+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,v=v+Math.imul(Q,Ue)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(xe,at)|0,v=v+Math.imul(xe,yt)|0;var Ct=(O+(_=_+Math.imul(P,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;O=((v=v+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,_=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,v=Math.imul(Gt,Nt),_=_+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,v=v+Math.imul(Dt,vt)|0,_=_+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,Pe)|0,_=_+Math.imul(W,le)|0,n=(n=n+Math.imul(W,be)|0)+Math.imul($,le)|0,v=v+Math.imul($,be)|0,_=_+Math.imul(oe,ft)|0,n=(n=n+Math.imul(oe,Ht)|0)+Math.imul(Te,ft)|0,v=v+Math.imul(Te,Ht)|0,_=_+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,v=v+Math.imul(Ie,tt)|0,_=_+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,v=v+Math.imul(F,Ue)|0,_=_+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,v=v+Math.imul(Q,yt)|0,_=_+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(xe,Qt)|0,v=v+Math.imul(xe,Jt)|0;var ie=(O+(_=_+Math.imul(P,fi)|0)|0)+((8191&(n=(n=n+Math.imul(P,ai)|0)+Math.imul(z,fi)|0))<<13)|0;O=((v=v+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,_=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,v=Math.imul(Gt,vt),_=_+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,v=v+Math.imul(Dt,Pe)|0,_=_+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,be)|0)+Math.imul(Le,le)|0,v=v+Math.imul(Le,be)|0,_=_+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,v=v+Math.imul($,Ht)|0,_=_+Math.imul(oe,Ne)|0,n=(n=n+Math.imul(oe,tt)|0)+Math.imul(Te,Ne)|0,v=v+Math.imul(Te,tt)|0,_=_+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,v=v+Math.imul(Ie,Ue)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,v=v+Math.imul(F,yt)|0,_=_+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,v=v+Math.imul(Q,Jt)|0;var qe=(O+(_=_+Math.imul(fe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(xe,fi)|0))<<13)|0;O=((v=v+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,_=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,v=Math.imul(Gt,Pe),_=_+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Dt,le)|0,v=v+Math.imul(Dt,be)|0,_=_+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,v=v+Math.imul(Le,Ht)|0,_=_+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,v=v+Math.imul($,tt)|0,_=_+Math.imul(oe,Se)|0,n=(n=n+Math.imul(oe,Ue)|0)+Math.imul(Te,Se)|0,v=v+Math.imul(Te,Ue)|0,_=_+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,v=v+Math.imul(Ie,yt)|0,_=_+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,v=v+Math.imul(F,Jt)|0;var Mt=(O+(_=_+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;O=((v=v+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,_=Math.imul(Yt,le),n=(n=Math.imul(Yt,be))+Math.imul(Gt,le)|0,v=Math.imul(Gt,be),_=_+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,v=v+Math.imul(Dt,Ht)|0,_=_+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,v=v+Math.imul(Le,tt)|0,_=_+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,v=v+Math.imul($,Ue)|0,_=_+Math.imul(oe,at)|0,n=(n=n+Math.imul(oe,yt)|0)+Math.imul(Te,at)|0,v=v+Math.imul(Te,yt)|0,_=_+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,v=v+Math.imul(Ie,Jt)|0;var Vt=(O+(_=_+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;O=((v=v+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,v=Math.imul(Gt,Ht),_=_+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,v=v+Math.imul(Dt,tt)|0,_=_+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,v=v+Math.imul(Le,Ue)|0,_=_+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,v=v+Math.imul($,yt)|0,_=_+Math.imul(oe,Qt)|0,n=(n=n+Math.imul(oe,Jt)|0)+Math.imul(Te,Qt)|0,v=v+Math.imul(Te,Jt)|0;var Mi=(O+(_=_+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;O=((v=v+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,_=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,v=Math.imul(Gt,tt),_=_+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,v=v+Math.imul(Dt,Ue)|0,_=_+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,v=v+Math.imul(Le,yt)|0,_=_+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,v=v+Math.imul($,Jt)|0;var Ei=(O+(_=_+Math.imul(oe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(oe,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;O=((v=v+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,v=Math.imul(Gt,Ue),_=_+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,v=v+Math.imul(Dt,yt)|0,_=_+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,v=v+Math.imul(Le,Jt)|0;var en=(O+(_=_+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;O=((v=v+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,v=Math.imul(Gt,yt),_=_+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,v=v+Math.imul(Dt,Jt)|0;var ji=(O+(_=_+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;O=((v=v+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,_=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,v=Math.imul(Gt,Jt);var Kt=(O+(_=_+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;O=((v=v+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(O+(_=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return O=((v=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=pe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==O&&(E[19]=O,u.length++),u};function Z(y,i,r){return(new j).mulp(y,i,r)}function j(y,i){this.x=y,this.y=i}Math.imul||(L=I),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?L(this,i,r):c<63?I(this,i,r):c<1024?function U(y,i,r){r.negative=i.negative^y.negative,r.length=y.length+i.length;for(var u=0,c=0,C=0;C>>26)|0)>>>26,E&=67108863}r.words[C]=O,u=E,E=c}return 0!==u?r.words[C]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,C,E){for(var O=0;O>>=1)C++;return 1<>>=13),C>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=C>>>26,this.words[u]=67108863&C}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(y){for(var i=new Array(y.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var C,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(C=0;C>>26-r}E&&(this.words[C]=E,this.length++)}if(0!==u){for(C=this.length-1;C>=0;C--)this.words[C+u]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=i%26,E=Math.min((i-C)/26,this.length),O=67108863^67108863>>>C<E)for(this.length-=E,n=0;n=0&&(0!==v||n>=c);n--){var B=0|this.words[n];this.words[n]=v<<26-C|B>>>C,v=B&O}return _&&0!==v&&(_.words[_.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,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+u]=67108863&E}for(;C>26,this.words[C+u]=67108863&E;if(0===O)return this.strip();for(f(-1===O),O=0,C=0;C>26,this.words[C]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),C=i,E=0|C.words[C.length-1];0!=(u=26-this._countBits(E))&&(C=C.ushln(u),c.iushln(u),E=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 v=0;v=0;P--){var z=67108864*(0|c.words[C.length+P])+(0|c.words[C.length+P-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(C,z,P);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(C,1,P),c.isZero()||(c.negative^=1);n&&(n.words[P]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.iadd(i)),{div:c,mod:C}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.isub(i)),{div:E.div,mod:C}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,C,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),C=i.andln(1),E=u.cmp(c);return E<0||1===C&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=new a(0),O=new a(1),_=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++_;for(var n=u.clone(),v=r.clone();!r.isZero();){for(var B=0,P=1;0==(r.words[0]&P)&&B<26;++B,P<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(v)),c.iushrn(1),C.iushrn(1);for(var z=0,se=1;0==(u.words[0]&se)&&z<26;++z,se<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||O.isOdd())&&(E.iadd(n),O.isub(v)),E.iushrn(1),O.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),C.isub(O)):(u.isub(r),E.isub(c),O.isub(C))}return{a:E,b:O,gcd:u.iushln(_)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var O=0,_=1;0==(r.words[0]&_)&&O<26;++O,_<<=1);if(O>0)for(r.iushrn(O);O-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,v=1;0==(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(E),C.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(C)):(u.isub(r),C.isub(c))}return(B=0===r.cmpn(1)?c:C).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var C=r.cmp(u);if(C<0){var E=r;r=u,u=E}else if(0===C||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=O&=67108863}return 0!==C&&(this.words[E]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],C=0|i.words[u];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(y,i){this.name=y,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(y){if("string"==typeof y){var i=a._prime(y);this.m=i.p,this.prime=i}else f(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function ge(y){J.call(this,y),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 i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),C=0;C>>22,E=O}i.words[C-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=C,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),O=E.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(O);)n.redIAdd(O);for(var v=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),P=this.pow(i,c),z=C;0!==P.cmp(E);){for(var se=P,fe=0;0!==se.cmp(E);fe++)se=se.redSqr();f(fe=0;C--){for(var v=r.words[C],B=n-1;B>=0;B--){var P=v>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==P||0!==O?(O<<=1,O|=P,(4==++_||0===C&&0===B)&&(E=this.mul(E,c[O]),_=0,O=0)):_=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new ge(i)},M(ge,J),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},4901:Fe=>{"use strict";var Y={single_source_shortest_paths:function(p,t,e){var f={},M={};M[t]=0;var b,d,N,h,A,w,a=Y.PriorityQueue.make();for(a.push(t,0);!a.empty();)for(N in h=(b=a.pop()).cost,A=p[d=b.value]||{})A.hasOwnProperty(N)&&(w=h+A[N],(void 0===M[N]||M[N]>w)&&(M[N]=w,a.push(N,w),f[N]=d));if(void 0!==e&&void 0===M[e]){var L=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(L)}return f},extract_shortest_path_from_predecessor_list:function(p,t){for(var e=[],f=t;f;)e.push(f),f=p[f];return e.reverse(),e},find_path:function(p,t,e){var f=Y.single_source_shortest_paths(p,t,e);return Y.extract_shortest_path_from_predecessor_list(f,e)},PriorityQueue:{make:function(p){var f,t=Y.PriorityQueue,e={};for(f in p=p||{},t)t.hasOwnProperty(f)&&(e[f]=t[f]);return e.queue=[],e.sorter=p.sorter||t.default_sorter,e},default_sorter:function(p,t){return p.cost-t.cost},push:function(p,t){this.queue.push({value:p,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Fe.exports=Y},7715:(Fe,Y,p)=>{"use strict";var t=Y;t.version=p(8597).i8,t.utils=p(1970),t.rand=p(7950),t.curve=p(6270),t.curves=p(2916),t.ec=p(7626),t.eddsa=p(1885)},7902:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.getNAF,M=e.getJSF,a=e.assert;function b(N,h){this.type=N,this.p=new t(h.p,16),this.red=h.prime?t.red(h.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=h.n&&new t(h.n,16),this.g=h.g&&this.pointFromJSON(h.g,h.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 A=this.n&&this.p.div(this.n);!A||A.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(N,h){this.curve=N,this.type=h,this.precomputed=null}Fe.exports=b,b.prototype.point=function(){throw new Error("Not implemented")},b.prototype.validate=function(){throw new Error("Not implemented")},b.prototype._fixedNafMul=function(h,A){a(h.precomputed);var D=h._getDoubles(),w=f(A,1,this._bitLength),S=(1<=L;Z--)U=(U<<1)+w[Z];I.push(U)}for(var j=this.jpoint(null,null,null),ne=this.jpoint(null,null,null),X=S;X>0;X--){for(L=0;L=0;U--){for(var Z=0;U>=0&&0===I[U];U--)Z++;if(U>=0&&Z++,L=L.dblp(Z),U<0)break;var j=I[U];a(0!==j),L="affine"===h.type?L.mixedAdd(j>0?S[j-1>>1]:S[-j-1>>1].neg()):L.add(j>0?S[j-1>>1]:S[-j-1>>1].neg())}return"affine"===h.type?L.toP():L},b.prototype._wnafMulAdd=function(h,A,D,w,S){var j,ne,X,I=this._wnafT1,L=this._wnafT2,U=this._wnafT3,Z=0;for(j=0;j=1;j-=2){var ee=j-1,te=j;if(1===I[ee]&&1===I[te]){var ce=[A[ee],null,null,A[te]];0===A[ee].y.cmp(A[te].y)?(ce[1]=A[ee].add(A[te]),ce[2]=A[ee].toJ().mixedAdd(A[te].neg())):0===A[ee].y.cmp(A[te].y.redNeg())?(ce[1]=A[ee].toJ().mixedAdd(A[te]),ce[2]=A[ee].add(A[te].neg())):(ce[1]=A[ee].toJ().mixedAdd(A[te]),ce[2]=A[ee].toJ().mixedAdd(A[te].neg()));var J=[-3,-1,-5,-7,0,7,5,1,3],ge=M(D[ee],D[te]);for(Z=Math.max(ge[0].length,Z),U[ee]=new Array(Z),U[te]=new Array(Z),ne=0;ne=0;j--){for(var c=0;j>=0;){var C=!0;for(ne=0;ne=0&&c++,r=r.dblp(c),j<0)break;for(ne=0;ne0?X=L[ne][E-1>>1]:E<0&&(X=L[ne][-E-1>>1].neg()),r="affine"===X.type?r.mixedAdd(X):r.add(X))}}for(j=0;j=Math.ceil((h.bitLength()+1)/A.step)},d.prototype._getDoubles=function(h,A){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var D=[this],w=this,S=0;S{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),a=t.assert;function b(N){this.twisted=1!=(0|N.a),this.mOneA=this.twisted&&-1==(0|N.a),this.extended=this.mOneA,M.call(this,"edwards",N),this.a=new e(N.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(N.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(N.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|N.c)}function d(N,h,A,D,w){M.BasePoint.call(this,N,"projective"),null===h&&null===A&&null===D?(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 e(h,16),this.y=new e(A,16),this.z=D?new e(D,16):this.curve.one,this.t=w&&new e(w,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()))))}f(b,M),Fe.exports=b,b.prototype._mulA=function(h){return this.mOneA?h.redNeg():this.a.redMul(h)},b.prototype._mulC=function(h){return this.oneC?h:this.c.redMul(h)},b.prototype.jpoint=function(h,A,D,w){return this.point(h,A,D,w)},b.prototype.pointFromX=function(h,A){(h=new e(h,16)).red||(h=h.toRed(this.red));var D=h.redSqr(),w=this.c2.redSub(this.a.redMul(D)),S=this.one.redSub(this.c2.redMul(this.d).redMul(D)),I=w.redMul(S.redInvm()),L=I.redSqrt();if(0!==L.redSqr().redSub(I).cmp(this.zero))throw new Error("invalid point");var U=L.fromRed().isOdd();return(A&&!U||!A&&U)&&(L=L.redNeg()),this.point(h,L)},b.prototype.pointFromY=function(h,A){(h=new e(h,16)).red||(h=h.toRed(this.red));var D=h.redSqr(),w=D.redSub(this.c2),S=D.redMul(this.d).redMul(this.c2).redSub(this.a),I=w.redMul(S.redInvm());if(0===I.cmp(this.zero)){if(A)throw new Error("invalid point");return this.point(this.zero,h)}var L=I.redSqrt();if(0!==L.redSqr().redSub(I).cmp(this.zero))throw new Error("invalid point");return L.fromRed().isOdd()!==A&&(L=L.redNeg()),this.point(L,h)},b.prototype.validate=function(h){if(h.isInfinity())return!0;h.normalize();var A=h.x.redSqr(),D=h.y.redSqr(),w=A.redMul(this.a).redAdd(D),S=this.c2.redMul(this.one.redAdd(this.d.redMul(A).redMul(D)));return 0===w.cmp(S)},f(d,M.BasePoint),b.prototype.pointFromJSON=function(h){return d.fromJSON(this,h)},b.prototype.point=function(h,A,D,w){return new d(this,h,A,D,w)},d.fromJSON=function(h,A){return new d(h,A[0],A[1],A[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 h=this.x.redSqr(),A=this.y.redSqr(),D=this.z.redSqr();D=D.redIAdd(D);var w=this.curve._mulA(h),S=this.x.redAdd(this.y).redSqr().redISub(h).redISub(A),I=w.redAdd(A),L=I.redSub(D),U=w.redSub(A),Z=S.redMul(L),j=I.redMul(U),ne=S.redMul(U),X=L.redMul(I);return this.curve.point(Z,j,X,ne)},d.prototype._projDbl=function(){var w,S,I,L,U,Z,h=this.x.redAdd(this.y).redSqr(),A=this.x.redSqr(),D=this.y.redSqr();if(this.curve.twisted){var j=(L=this.curve._mulA(A)).redAdd(D);this.zOne?(w=h.redSub(A).redSub(D).redMul(j.redSub(this.curve.two)),S=j.redMul(L.redSub(D)),I=j.redSqr().redSub(j).redSub(j)):(U=this.z.redSqr(),Z=j.redSub(U).redISub(U),w=h.redSub(A).redISub(D).redMul(Z),S=j.redMul(L.redSub(D)),I=j.redMul(Z))}else L=A.redAdd(D),U=this.curve._mulC(this.z).redSqr(),Z=L.redSub(U).redSub(U),w=this.curve._mulC(h.redISub(L)).redMul(Z),S=this.curve._mulC(L).redMul(A.redISub(D)),I=L.redMul(Z);return this.curve.point(w,S,I)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(h){var A=this.y.redSub(this.x).redMul(h.y.redSub(h.x)),D=this.y.redAdd(this.x).redMul(h.y.redAdd(h.x)),w=this.t.redMul(this.curve.dd).redMul(h.t),S=this.z.redMul(h.z.redAdd(h.z)),I=D.redSub(A),L=S.redSub(w),U=S.redAdd(w),Z=D.redAdd(A),j=I.redMul(L),ne=U.redMul(Z),X=I.redMul(Z),de=L.redMul(U);return this.curve.point(j,ne,de,X)},d.prototype._projAdd=function(h){var ne,X,A=this.z.redMul(h.z),D=A.redSqr(),w=this.x.redMul(h.x),S=this.y.redMul(h.y),I=this.curve.d.redMul(w).redMul(S),L=D.redSub(I),U=D.redAdd(I),Z=this.x.redAdd(this.y).redMul(h.x.redAdd(h.y)).redISub(w).redISub(S),j=A.redMul(L).redMul(Z);return this.curve.twisted?(ne=A.redMul(U).redMul(S.redSub(this.curve._mulA(w))),X=L.redMul(U)):(ne=A.redMul(U).redMul(S.redSub(w)),X=this.curve._mulC(L).redMul(U)),this.curve.point(j,ne,X)},d.prototype.add=function(h){return this.isInfinity()?h:h.isInfinity()?this:this.curve.extended?this._extAdd(h):this._projAdd(h)},d.prototype.mul=function(h){return this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve._wnafMul(this,h)},d.prototype.mulAdd=function(h,A,D){return this.curve._wnafMulAdd(1,[this,A],[h,D],2,!1)},d.prototype.jmulAdd=function(h,A,D){return this.curve._wnafMulAdd(1,[this,A],[h,D],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var h=this.z.redInvm();return this.x=this.x.redMul(h),this.y=this.y.redMul(h),this.t&&(this.t=this.t.redMul(h)),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(h){return this===h||0===this.getX().cmp(h.getX())&&0===this.getY().cmp(h.getY())},d.prototype.eqXToP=function(h){var A=h.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(A))return!0;for(var D=h.clone(),w=this.curve.redN.redMul(this.z);;){if(D.iadd(this.curve.n),D.cmp(this.curve.p)>=0)return!1;if(A.redIAdd(w),0===this.x.cmp(A))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6270:(Fe,Y,p)=>{"use strict";var t=Y;t.base=p(7902),t.short=p(1781),t.mont=p(7064),t.edwards=p(3835)},7064:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(3894),f=p(7902),M=p(1970);function a(d){f.call(this,"mont",d),this.a=new t(d.a,16).toRed(this.red),this.b=new t(d.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function b(d,N,h){f.BasePoint.call(this,d,"projective"),null===N&&null===h?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(N,16),this.z=new t(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(a,f),Fe.exports=a,a.prototype.validate=function(N){var h=N.normalize().x,A=h.redSqr(),D=A.redMul(h).redAdd(A.redMul(this.a)).redAdd(h);return 0===D.redSqrt().redSqr().cmp(D)},e(b,f.BasePoint),a.prototype.decodePoint=function(N,h){return this.point(M.toArray(N,h),1)},a.prototype.point=function(N,h){return new b(this,N,h)},a.prototype.pointFromJSON=function(N){return b.fromJSON(this,N)},b.prototype.precompute=function(){},b.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},b.fromJSON=function(N,h){return new b(N,h[0],h[1]||N.one)},b.prototype.inspect=function(){return this.isInfinity()?"":""},b.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},b.prototype.dbl=function(){var h=this.x.redAdd(this.z).redSqr(),D=this.x.redSub(this.z).redSqr(),w=h.redSub(D),S=h.redMul(D),I=w.redMul(D.redAdd(this.curve.a24.redMul(w)));return this.curve.point(S,I)},b.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.diffAdd=function(N,h){var A=this.x.redAdd(this.z),D=this.x.redSub(this.z),w=N.x.redAdd(N.z),I=N.x.redSub(N.z).redMul(A),L=w.redMul(D),U=h.z.redMul(I.redAdd(L).redSqr()),Z=h.x.redMul(I.redISub(L).redSqr());return this.curve.point(U,Z)},b.prototype.mul=function(N){for(var h=N.clone(),A=this,D=this.curve.point(null,null),S=[];0!==h.cmpn(0);h.iushrn(1))S.push(h.andln(1));for(var I=S.length-1;I>=0;I--)0===S[I]?(A=A.diffAdd(D,this),D=D.dbl()):(D=A.diffAdd(D,this),A=A.dbl());return D},b.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.eq=function(N){return 0===this.getX().cmp(N.getX())},b.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},b.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Fe,Y,p)=>{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),a=t.assert;function b(h){M.call(this,"short",h),this.a=new e(h.a,16).toRed(this.red),this.b=new e(h.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(h),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(h,A,D,w){M.BasePoint.call(this,h,"affine"),null===A&&null===D?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(A,16),this.y=new e(D,16),w&&(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 N(h,A,D,w){M.BasePoint.call(this,h,"jacobian"),null===A&&null===D&&null===w?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(A,16),this.y=new e(D,16),this.z=new e(w,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}f(b,M),Fe.exports=b,b.prototype._getEndomorphism=function(A){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var D,w;if(A.beta)D=new e(A.beta,16).toRed(this.red);else{var S=this._getEndoRoots(this.p);D=(D=S[0].cmp(S[1])<0?S[0]:S[1]).toRed(this.red)}if(A.lambda)w=new e(A.lambda,16);else{var I=this._getEndoRoots(this.n);0===this.g.mul(I[0]).x.cmp(this.g.x.redMul(D))?w=I[0]:a(0===this.g.mul(w=I[1]).x.cmp(this.g.x.redMul(D)))}return{beta:D,lambda:w,basis:A.basis?A.basis.map(function(U){return{a:new e(U.a,16),b:new e(U.b,16)}}):this._getEndoBasis(w)}}},b.prototype._getEndoRoots=function(A){var D=A===this.p?this.red:e.mont(A),w=new e(2).toRed(D).redInvm(),S=w.redNeg(),I=new e(3).toRed(D).redNeg().redSqrt().redMul(w);return[S.redAdd(I).fromRed(),S.redSub(I).fromRed()]},b.prototype._getEndoBasis=function(A){for(var j,ne,X,de,ee,te,ce,ge,y,D=this.n.ushrn(Math.floor(this.n.bitLength()/2)),w=A,S=this.n.clone(),I=new e(1),L=new e(0),U=new e(0),Z=new e(1),J=0;0!==w.cmpn(0);){var i=S.div(w);ge=S.sub(i.mul(w)),y=U.sub(i.mul(I));var r=Z.sub(i.mul(L));if(!X&&ge.cmp(D)<0)j=ce.neg(),ne=I,X=ge.neg(),de=y;else if(X&&2==++J)break;ce=ge,S=w,w=ge,U=I,I=y,Z=L,L=r}ee=ge.neg(),te=y;var u=X.sqr().add(de.sqr());return ee.sqr().add(te.sqr()).cmp(u)>=0&&(ee=j,te=ne),X.negative&&(X=X.neg(),de=de.neg()),ee.negative&&(ee=ee.neg(),te=te.neg()),[{a:X,b:de},{a:ee,b:te}]},b.prototype._endoSplit=function(A){var D=this.endo.basis,w=D[0],S=D[1],I=S.b.mul(A).divRound(this.n),L=w.b.neg().mul(A).divRound(this.n),U=I.mul(w.a),Z=L.mul(S.a),j=I.mul(w.b),ne=L.mul(S.b);return{k1:A.sub(U).sub(Z),k2:j.add(ne).neg()}},b.prototype.pointFromX=function(A,D){(A=new e(A,16)).red||(A=A.toRed(this.red));var w=A.redSqr().redMul(A).redIAdd(A.redMul(this.a)).redIAdd(this.b),S=w.redSqrt();if(0!==S.redSqr().redSub(w).cmp(this.zero))throw new Error("invalid point");var I=S.fromRed().isOdd();return(D&&!I||!D&&I)&&(S=S.redNeg()),this.point(A,S)},b.prototype.validate=function(A){if(A.inf)return!0;var D=A.x,w=A.y,S=this.a.redMul(D),I=D.redSqr().redMul(D).redIAdd(S).redIAdd(this.b);return 0===w.redSqr().redISub(I).cmpn(0)},b.prototype._endoWnafMulAdd=function(A,D,w){for(var S=this._endoWnafT1,I=this._endoWnafT2,L=0;L":""},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(A){if(this.inf)return A;if(A.inf)return this;if(this.eq(A))return this.dbl();if(this.neg().eq(A))return this.curve.point(null,null);if(0===this.x.cmp(A.x))return this.curve.point(null,null);var D=this.y.redSub(A.y);0!==D.cmpn(0)&&(D=D.redMul(this.x.redSub(A.x).redInvm()));var w=D.redSqr().redISub(this.x).redISub(A.x),S=D.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,S)},d.prototype.dbl=function(){if(this.inf)return this;var A=this.y.redAdd(this.y);if(0===A.cmpn(0))return this.curve.point(null,null);var D=this.curve.a,w=this.x.redSqr(),S=A.redInvm(),I=w.redAdd(w).redIAdd(w).redIAdd(D).redMul(S),L=I.redSqr().redISub(this.x.redAdd(this.x)),U=I.redMul(this.x.redSub(L)).redISub(this.y);return this.curve.point(L,U)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(A){return A=new e(A,16),this.isInfinity()?this:this._hasDoubles(A)?this.curve._fixedNafMul(this,A):this.curve.endo?this.curve._endoWnafMulAdd([this],[A]):this.curve._wnafMul(this,A)},d.prototype.mulAdd=function(A,D,w){var S=[this,D],I=[A,w];return this.curve.endo?this.curve._endoWnafMulAdd(S,I):this.curve._wnafMulAdd(1,S,I,2)},d.prototype.jmulAdd=function(A,D,w){var S=[this,D],I=[A,w];return this.curve.endo?this.curve._endoWnafMulAdd(S,I,!0):this.curve._wnafMulAdd(1,S,I,2,!0)},d.prototype.eq=function(A){return this===A||this.inf===A.inf&&(this.inf||0===this.x.cmp(A.x)&&0===this.y.cmp(A.y))},d.prototype.neg=function(A){if(this.inf)return this;var D=this.curve.point(this.x,this.y.redNeg());if(A&&this.precomputed){var w=this.precomputed,S=function(I){return I.neg()};D.precomputed={naf:w.naf&&{wnd:w.naf.wnd,points:w.naf.points.map(S)},doubles:w.doubles&&{step:w.doubles.step,points:w.doubles.points.map(S)}}}return D},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},f(N,M.BasePoint),b.prototype.jpoint=function(A,D,w){return new N(this,A,D,w)},N.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var A=this.z.redInvm(),D=A.redSqr(),w=this.x.redMul(D),S=this.y.redMul(D).redMul(A);return this.curve.point(w,S)},N.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},N.prototype.add=function(A){if(this.isInfinity())return A;if(A.isInfinity())return this;var D=A.z.redSqr(),w=this.z.redSqr(),S=this.x.redMul(D),I=A.x.redMul(w),L=this.y.redMul(D.redMul(A.z)),U=A.y.redMul(w.redMul(this.z)),Z=S.redSub(I),j=L.redSub(U);if(0===Z.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ne=Z.redSqr(),X=ne.redMul(Z),de=S.redMul(ne),ee=j.redSqr().redIAdd(X).redISub(de).redISub(de),te=j.redMul(de.redISub(ee)).redISub(L.redMul(X)),ce=this.z.redMul(A.z).redMul(Z);return this.curve.jpoint(ee,te,ce)},N.prototype.mixedAdd=function(A){if(this.isInfinity())return A.toJ();if(A.isInfinity())return this;var D=this.z.redSqr(),w=this.x,S=A.x.redMul(D),I=this.y,L=A.y.redMul(D).redMul(this.z),U=w.redSub(S),Z=I.redSub(L);if(0===U.cmpn(0))return 0!==Z.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var j=U.redSqr(),ne=j.redMul(U),X=w.redMul(j),de=Z.redSqr().redIAdd(ne).redISub(X).redISub(X),ee=Z.redMul(X.redISub(de)).redISub(I.redMul(ne)),te=this.z.redMul(U);return this.curve.jpoint(de,ee,te)},N.prototype.dblp=function(A){if(0===A)return this;if(this.isInfinity())return this;if(!A)return this.dbl();var D;if(this.curve.zeroA||this.curve.threeA){var w=this;for(D=0;D=0)return!1;if(w.redIAdd(I),0===this.x.cmp(w))return!0}},N.prototype.inspect=function(){return this.isInfinity()?"":""},N.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Fe,Y,p)=>{"use strict";var N,t=Y,e=p(7084),f=p(6270),a=p(1970).assert;function b(h){this.curve="short"===h.type?new f.short(h):"edwards"===h.type?new f.edwards(h):new f.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(h,A){Object.defineProperty(t,h,{configurable:!0,enumerable:!0,get:function(){var D=new b(A);return Object.defineProperty(t,h,{configurable:!0,enumerable:!0,value:D}),D}})}t.PresetCurve=b,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:e.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:e.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:e.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:e.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:e.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:e.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:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{N=p(5150)}catch(h){N=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:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",N]})},7626:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(2438),f=p(1970),M=p(2916),a=p(7950),b=f.assert,d=p(1259),N=p(5957);function h(A){if(!(this instanceof h))return new h(A);"string"==typeof A&&(b(Object.prototype.hasOwnProperty.call(M,A),"Unknown curve "+A),A=M[A]),A instanceof M.PresetCurve&&(A={curve:A}),this.curve=A.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=A.curve.g,this.g.precompute(A.curve.n.bitLength()+1),this.hash=A.hash||A.curve.hash}Fe.exports=h,h.prototype.keyPair=function(D){return new d(this,D)},h.prototype.keyFromPrivate=function(D,w){return d.fromPrivate(this,D,w)},h.prototype.keyFromPublic=function(D,w){return d.fromPublic(this,D,w)},h.prototype.genKeyPair=function(D){D||(D={});for(var w=new e({hash:this.hash,pers:D.pers,persEnc:D.persEnc||"utf8",entropy:D.entropy||a(this.hash.hmacStrength),entropyEnc:D.entropy&&D.entropyEnc||"utf8",nonce:this.n.toArray()}),S=this.n.byteLength(),I=this.n.sub(new t(2));;){var L=new t(w.generate(S));if(!(L.cmp(I)>0))return L.iaddn(1),this.keyFromPrivate(L)}},h.prototype._truncateToN=function(D,w){var S=8*D.byteLength()-this.n.bitLength();return S>0&&(D=D.ushrn(S)),!w&&D.cmp(this.n)>=0?D.sub(this.n):D},h.prototype.sign=function(D,w,S,I){"object"==typeof S&&(I=S,S=null),I||(I={}),w=this.keyFromPrivate(w,S),D=this._truncateToN(new t(D,16));for(var L=this.n.byteLength(),U=w.getPrivate().toArray("be",L),Z=D.toArray("be",L),j=new e({hash:this.hash,entropy:U,nonce:Z,pers:I.pers,persEnc:I.persEnc||"utf8"}),ne=this.n.sub(new t(1)),X=0;;X++){var de=I.k?I.k(X):new t(j.generate(this.n.byteLength()));if(!((de=this._truncateToN(de,!0)).cmpn(1)<=0||de.cmp(ne)>=0)){var ee=this.g.mul(de);if(!ee.isInfinity()){var te=ee.getX(),ce=te.umod(this.n);if(0!==ce.cmpn(0)){var J=de.invm(this.n).mul(ce.mul(w.getPrivate()).iadd(D));if(0!==(J=J.umod(this.n)).cmpn(0)){var ge=(ee.getY().isOdd()?1:0)|(0!==te.cmp(ce)?2:0);return I.canonical&&J.cmp(this.nh)>0&&(J=this.n.sub(J),ge^=1),new N({r:ce,s:J,recoveryParam:ge})}}}}}},h.prototype.verify=function(D,w,S,I){D=this._truncateToN(new t(D,16)),S=this.keyFromPublic(S,I);var L=(w=new N(w,"hex")).r,U=w.s;if(L.cmpn(1)<0||L.cmp(this.n)>=0||U.cmpn(1)<0||U.cmp(this.n)>=0)return!1;var X,Z=U.invm(this.n),j=Z.mul(D).umod(this.n),ne=Z.mul(L).umod(this.n);return this.curve._maxwellTrick?!(X=this.g.jmulAdd(j,S.getPublic(),ne)).isInfinity()&&X.eqXToP(L):!(X=this.g.mulAdd(j,S.getPublic(),ne)).isInfinity()&&0===X.getX().umod(this.n).cmp(L)},h.prototype.recoverPubKey=function(A,D,w,S){b((3&w)===w,"The recovery param is more than two bits"),D=new N(D,S);var I=this.n,L=new t(A),U=D.r,Z=D.s,j=1&w,ne=w>>1;if(U.cmp(this.curve.p.umod(this.curve.n))>=0&&ne)throw new Error("Unable to find sencond key candinate");U=this.curve.pointFromX(ne?U.add(this.curve.n):U,j);var X=D.r.invm(I),de=I.sub(L).mul(X).umod(I),ee=Z.mul(X).umod(I);return this.g.mulAdd(de,U,ee)},h.prototype.getKeyRecoveryParam=function(A,D,w,S){if(null!==(D=new N(D,S)).recoveryParam)return D.recoveryParam;for(var I=0;I<4;I++){var L;try{L=this.recoverPubKey(A,D,I)}catch(U){continue}if(L.eq(w))return I}throw new Error("Unable to find valid recovery factor")}},1259:(Fe,Y,p)=>{"use strict";var t=p(7433),f=p(1970).assert;function M(a,b){this.ec=a,this.priv=null,this.pub=null,b.priv&&this._importPrivate(b.priv,b.privEnc),b.pub&&this._importPublic(b.pub,b.pubEnc)}Fe.exports=M,M.fromPublic=function(b,d,N){return d instanceof M?d:new M(b,{pub:d,pubEnc:N})},M.fromPrivate=function(b,d,N){return d instanceof M?d:new M(b,{priv:d,privEnc:N})},M.prototype.validate=function(){var b=this.getPublic();return b.isInfinity()?{result:!1,reason:"Invalid public key"}:b.validate()?b.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"}},M.prototype.getPublic=function(b,d){return"string"==typeof b&&(d=b,b=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,b):this.pub},M.prototype.getPrivate=function(b){return"hex"===b?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(b,d){this.priv=new t(b,d||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(b,d){if(b.x||b.y)return"mont"===this.ec.curve.type?f(b.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&f(b.x&&b.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(b.x,b.y));this.pub=this.ec.curve.decodePoint(b,d)},M.prototype.derive=function(b){return b.validate()||f(b.validate(),"public point not validated"),b.mul(this.priv).getX()},M.prototype.sign=function(b,d,N){return this.ec.sign(b,this,d,N)},M.prototype.verify=function(b,d){return this.ec.verify(b,d,this)},M.prototype.inspect=function(){return""}},5957:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert;function M(h,A){if(h instanceof M)return h;this._importDER(h,A)||(f(h.r&&h.s,"Signature without r or s"),this.r=new t(h.r,16),this.s=new t(h.s,16),this.recoveryParam=void 0===h.recoveryParam?null:h.recoveryParam)}function a(){this.place=0}function b(h,A){var D=h[A.place++];if(!(128&D))return D;var w=15&D;if(0===w||w>4)return!1;for(var S=0,I=0,L=A.place;I>>=0;return!(S<=127)&&(A.place=L,S)}function d(h){for(var A=0,D=h.length-1;!h[A]&&!(128&h[A+1])&&A>>3);for(h.push(128|D);--D;)h.push(A>>>(D<<3)&255);h.push(A)}}Fe.exports=M,M.prototype._importDER=function(A,D){A=e.toArray(A,D);var w=new a;if(48!==A[w.place++])return!1;var S=b(A,w);if(!1===S||S+w.place!==A.length||2!==A[w.place++])return!1;var I=b(A,w);if(!1===I)return!1;var L=A.slice(w.place,I+w.place);if(w.place+=I,2!==A[w.place++])return!1;var U=b(A,w);if(!1===U||A.length!==U+w.place)return!1;var Z=A.slice(w.place,U+w.place);if(0===L[0]){if(!(128&L[1]))return!1;L=L.slice(1)}if(0===Z[0]){if(!(128&Z[1]))return!1;Z=Z.slice(1)}return this.r=new t(L),this.s=new t(Z),this.recoveryParam=null,!0},M.prototype.toDER=function(A){var D=this.r.toArray(),w=this.s.toArray();for(128&D[0]&&(D=[0].concat(D)),128&w[0]&&(w=[0].concat(w)),D=d(D),w=d(w);!(w[0]||128&w[1]);)w=w.slice(1);var S=[2];N(S,D.length),(S=S.concat(D)).push(2),N(S,w.length);var I=S.concat(w),L=[48];return N(L,I.length),L=L.concat(I),e.encode(L,A)}},1885:(Fe,Y,p)=>{"use strict";var t=p(7084),e=p(2916),f=p(1970),M=f.assert,a=f.parseBytes,b=p(7535),d=p(8241);function N(h){if(M("ed25519"===h,"only tested with ed25519 so far"),!(this instanceof N))return new N(h);this.curve=h=e[h].curve,this.g=h.g,this.g.precompute(h.n.bitLength()+1),this.pointClass=h.point().constructor,this.encodingLength=Math.ceil(h.n.bitLength()/8),this.hash=t.sha512}Fe.exports=N,N.prototype.sign=function(A,D){A=a(A);var w=this.keyFromSecret(D),S=this.hashInt(w.messagePrefix(),A),I=this.g.mul(S),L=this.encodePoint(I),U=this.hashInt(L,w.pubBytes(),A).mul(w.priv()),Z=S.add(U).umod(this.curve.n);return this.makeSignature({R:I,S:Z,Rencoded:L})},N.prototype.verify=function(A,D,w){A=a(A),D=this.makeSignature(D);var S=this.keyFromPublic(w),I=this.hashInt(D.Rencoded(),S.pubBytes(),A),L=this.g.mul(D.S());return D.R().add(S.pub().mul(I)).eq(L)},N.prototype.hashInt=function(){for(var A=this.hash(),D=0;D{"use strict";var t=p(1970),e=t.assert,f=t.parseBytes,M=t.cachedProperty;function a(b,d){this.eddsa=b,this._secret=f(d.secret),b.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=f(d.pub)}a.fromPublic=function(d,N){return N instanceof a?N:new a(d,{pub:N})},a.fromSecret=function(d,N){return N instanceof a?N:new a(d,{secret:N})},a.prototype.secret=function(){return this._secret},M(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),M(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),M(a,"privBytes",function(){var d=this.eddsa,N=this.hash(),h=d.encodingLength-1,A=N.slice(0,d.encodingLength);return A[0]&=248,A[h]&=127,A[h]|=64,A}),M(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),M(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),M(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(d){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},a.prototype.verify=function(d,N){return this.eddsa.verify(d,N,this)},a.prototype.getSecret=function(d){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),d)},a.prototype.getPublic=function(d){return t.encode(this.pubBytes(),d)},Fe.exports=a},8241:(Fe,Y,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert,M=e.cachedProperty,a=e.parseBytes;function b(d,N){this.eddsa=d,"object"!=typeof N&&(N=a(N)),Array.isArray(N)&&(N={R:N.slice(0,d.encodingLength),S:N.slice(d.encodingLength)}),f(N.R&&N.S,"Signature without R or S"),d.isPoint(N.R)&&(this._R=N.R),N.S instanceof t&&(this._S=N.S),this._Rencoded=Array.isArray(N.R)?N.R:N.Rencoded,this._Sencoded=Array.isArray(N.S)?N.S:N.Sencoded}M(b,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),M(b,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),M(b,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),M(b,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),b.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},b.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},Fe.exports=b},5150:Fe=>{Fe.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:(Fe,Y,p)=>{"use strict";var t=Y,e=p(7433),f=p(2391),M=p(8195);t.assert=f,t.toArray=M.toArray,t.zero2=M.zero2,t.toHex=M.toHex,t.encode=M.encode,t.getNAF=function a(A,D,w){var S=new Array(Math.max(A.bitLength(),w)+1);S.fill(0);for(var I=1<(I>>1)-1?(I>>1)-j:j):Z=0,S[U]=Z,L.iushrn(1)}return S},t.getJSF=function b(A,D){var w=[[],[]];A=A.clone(),D=D.clone();for(var L,S=0,I=0;A.cmpn(-S)>0||D.cmpn(-I)>0;){var j,ne,U=A.andln(3)+S&3,Z=D.andln(3)+I&3;3===U&&(U=-1),3===Z&&(Z=-1),j=0==(1&U)?0:3!=(L=A.andln(7)+S&7)&&5!==L||2!==Z?U:-U,w[0].push(j),ne=0==(1&Z)?0:3!=(L=D.andln(7)+I&7)&&5!==L||2!==U?Z:-Z,w[1].push(ne),2*S===j+1&&(S=1-S),2*I===ne+1&&(I=1-I),A.iushrn(1),D.iushrn(1)}return w},t.cachedProperty=function d(A,D,w){var S="_"+D;A.prototype[D]=function(){return void 0!==this[S]?this[S]:this[S]=w.call(this)}},t.parseBytes=function N(A){return"string"==typeof A?t.toArray(A,"hex"):A},t.intFromLE=function h(A){return new e(A,"hex","le")}},7433:function(Fe,Y,p){!function(t,e){"use strict";function f(y,i){if(!y)throw new Error(i||"Assertion failed")}function M(y,i){y.super_=i;var r=function(){};r.prototype=i.prototype,y.prototype=new r,y.prototype.constructor=y}function a(y,i,r){if(a.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(y||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(5568).Buffer}catch(y){}function d(y,i){var r=y.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function N(y,i,r){var u=d(y,r);return r-1>=i&&(u|=d(y,r-1)<<4),u}function h(y,i,r,u){for(var c=0,C=Math.min(y.length,r),E=i;E=49?O-49+10:O>=17?O-17+10:O}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);else if("le"===u)for(c=0,C=0;c>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)O=N(i,r,c)<=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var E=i.length-u,O=E%c,_=Math.min(E,E-O)+u,n=0,v=u;v<_;v+=c)n=h(i,v,v+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==O){var B=1;for(n=h(i,v,i.length,r),v=0;v1&&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 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"],D=[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],w=[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 I(y,i,r){r.negative=i.negative^y.negative;var u=y.length+i.length|0;r.length=u,u=u-1|0;var c=0|y.words[0],C=0|i.words[0],E=c*C,_=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&_,P=Math.min(n,i.length-1),z=Math.max(0,n-y.length+1);z<=P;z++)v+=(E=(c=0|y.words[n-z|0])*(C=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,_=0|v}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,C=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-_.length]+_+u:_+u,(c+=2)>=26&&(c-=26,E--)}for(0!==C&&(u=C.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=D[i],v=w[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var P=B.modn(v).toString(i);u=(B=B.idivn(v)).isZero()?P+u:A[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),C=u||Math.max(1,c);f(c<=C,"byte array longer than desired length"),f(C>0,"Requested array length <= 0"),this.strip();var _,n,E="le"===r,O=new i(C),v=this.clone();if(E){for(n=0;!v.isZero();n++)_=v.andln(255),v.iushrn(8),O[n]=_;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var C=0,E=0;E>>26;for(;0!==C&&E>>26;if(this.length=u.length,0!==C)this.words[this.length]=C,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,C,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,C=i):(c=i,C=this);for(var E=0,O=0;O>26,this.words[O]=67108863&r;for(;0!==E&&O>26,this.words[O]=67108863&r;if(0===E&&O>>13,se=0|c[1],fe=8191&se,xe=se>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,Ae=0|c[4],lt=8191&Ae,Ie=Ae>>>13,De=0|c[5],oe=8191&De,Te=De>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|C[0],xt=8191&ui,Nt=ui>>>13,gt=0|C[1],et=8191>,vt=gt>>>13,$t=0|C[2],jt=8191&$t,Pe=$t>>>13,Oe=0|C[3],le=8191&Oe,be=Oe>>>13,ht=0|C[4],ft=8191&ht,Ht=ht>>>13,it=0|C[5],Ne=8191&it,tt=it>>>13,Je=0|C[6],Se=8191&Je,Ue=Je>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,gi=0|C[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|C[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(O+(_=Math.imul(P,xt))|0)+((8191&(n=(n=Math.imul(P,Nt))+Math.imul(z,xt)|0))<<13)|0;O=((v=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul(fe,xt),n=(n=Math.imul(fe,Nt))+Math.imul(xe,xt)|0,v=Math.imul(xe,Nt);var Wi=(O+(_=_+Math.imul(P,et)|0)|0)+((8191&(n=(n=n+Math.imul(P,vt)|0)+Math.imul(z,et)|0))<<13)|0;O=((v=v+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,v=Math.imul(Q,Nt),_=_+Math.imul(fe,et)|0,n=(n=n+Math.imul(fe,vt)|0)+Math.imul(xe,et)|0,v=v+Math.imul(xe,vt)|0;var Gi=(O+(_=_+Math.imul(P,jt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;O=((v=v+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,v=Math.imul(F,Nt),_=_+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,v=v+Math.imul(Q,vt)|0,_=_+Math.imul(fe,jt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(xe,jt)|0,v=v+Math.imul(xe,Pe)|0;var Yi=(O+(_=_+Math.imul(P,le)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(z,le)|0))<<13)|0;O=((v=v+Math.imul(z,be)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,_=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,v=Math.imul(Ie,Nt),_=_+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,v=v+Math.imul(F,vt)|0,_=_+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,v=v+Math.imul(Q,Pe)|0,_=_+Math.imul(fe,le)|0,n=(n=n+Math.imul(fe,be)|0)+Math.imul(xe,le)|0,v=v+Math.imul(xe,be)|0;var ze=(O+(_=_+Math.imul(P,ft)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;O=((v=v+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,_=Math.imul(oe,xt),n=(n=Math.imul(oe,Nt))+Math.imul(Te,xt)|0,v=Math.imul(Te,Nt),_=_+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,v=v+Math.imul(Ie,vt)|0,_=_+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,v=v+Math.imul(F,Pe)|0,_=_+Math.imul(we,le)|0,n=(n=n+Math.imul(we,be)|0)+Math.imul(Q,le)|0,v=v+Math.imul(Q,be)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(xe,ft)|0,v=v+Math.imul(xe,Ht)|0;var Lt=(O+(_=_+Math.imul(P,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(P,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;O=((v=v+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,v=Math.imul($,Nt),_=_+Math.imul(oe,et)|0,n=(n=n+Math.imul(oe,vt)|0)+Math.imul(Te,et)|0,v=v+Math.imul(Te,vt)|0,_=_+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,v=v+Math.imul(Ie,Pe)|0,_=_+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,be)|0)+Math.imul(F,le)|0,v=v+Math.imul(F,be)|0,_=_+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,v=v+Math.imul(Q,Ht)|0,_=_+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,tt)|0)+Math.imul(xe,Ne)|0,v=v+Math.imul(xe,tt)|0;var pe=(O+(_=_+Math.imul(P,Se)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;O=((v=v+Math.imul(z,Ue)|0)+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,_=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,v=Math.imul(Le,Nt),_=_+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,v=v+Math.imul($,vt)|0,_=_+Math.imul(oe,jt)|0,n=(n=n+Math.imul(oe,Pe)|0)+Math.imul(Te,jt)|0,v=v+Math.imul(Te,Pe)|0,_=_+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,be)|0)+Math.imul(Ie,le)|0,v=v+Math.imul(Ie,be)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,v=v+Math.imul(F,Ht)|0,_=_+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,v=v+Math.imul(Q,tt)|0,_=_+Math.imul(fe,Se)|0,n=(n=n+Math.imul(fe,Ue)|0)+Math.imul(xe,Se)|0,v=v+Math.imul(xe,Ue)|0;var je=(O+(_=_+Math.imul(P,at)|0)|0)+((8191&(n=(n=n+Math.imul(P,yt)|0)+Math.imul(z,at)|0))<<13)|0;O=((v=v+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,_=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,v=Math.imul(Dt,Nt),_=_+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,v=v+Math.imul(Le,vt)|0,_=_+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,v=v+Math.imul($,Pe)|0,_=_+Math.imul(oe,le)|0,n=(n=n+Math.imul(oe,be)|0)+Math.imul(Te,le)|0,v=v+Math.imul(Te,be)|0,_=_+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,v=v+Math.imul(Ie,Ht)|0,_=_+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,v=v+Math.imul(F,tt)|0,_=_+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,v=v+Math.imul(Q,Ue)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(xe,at)|0,v=v+Math.imul(xe,yt)|0;var Ct=(O+(_=_+Math.imul(P,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;O=((v=v+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,_=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,v=Math.imul(Gt,Nt),_=_+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,v=v+Math.imul(Dt,vt)|0,_=_+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,Pe)|0,_=_+Math.imul(W,le)|0,n=(n=n+Math.imul(W,be)|0)+Math.imul($,le)|0,v=v+Math.imul($,be)|0,_=_+Math.imul(oe,ft)|0,n=(n=n+Math.imul(oe,Ht)|0)+Math.imul(Te,ft)|0,v=v+Math.imul(Te,Ht)|0,_=_+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,v=v+Math.imul(Ie,tt)|0,_=_+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,v=v+Math.imul(F,Ue)|0,_=_+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,v=v+Math.imul(Q,yt)|0,_=_+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(xe,Qt)|0,v=v+Math.imul(xe,Jt)|0;var ie=(O+(_=_+Math.imul(P,fi)|0)|0)+((8191&(n=(n=n+Math.imul(P,ai)|0)+Math.imul(z,fi)|0))<<13)|0;O=((v=v+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,_=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,v=Math.imul(Gt,vt),_=_+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,v=v+Math.imul(Dt,Pe)|0,_=_+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,be)|0)+Math.imul(Le,le)|0,v=v+Math.imul(Le,be)|0,_=_+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,v=v+Math.imul($,Ht)|0,_=_+Math.imul(oe,Ne)|0,n=(n=n+Math.imul(oe,tt)|0)+Math.imul(Te,Ne)|0,v=v+Math.imul(Te,tt)|0,_=_+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,v=v+Math.imul(Ie,Ue)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,v=v+Math.imul(F,yt)|0,_=_+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,v=v+Math.imul(Q,Jt)|0;var qe=(O+(_=_+Math.imul(fe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(xe,fi)|0))<<13)|0;O=((v=v+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,_=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,v=Math.imul(Gt,Pe),_=_+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Dt,le)|0,v=v+Math.imul(Dt,be)|0,_=_+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,v=v+Math.imul(Le,Ht)|0,_=_+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,v=v+Math.imul($,tt)|0,_=_+Math.imul(oe,Se)|0,n=(n=n+Math.imul(oe,Ue)|0)+Math.imul(Te,Se)|0,v=v+Math.imul(Te,Ue)|0,_=_+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,v=v+Math.imul(Ie,yt)|0,_=_+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,v=v+Math.imul(F,Jt)|0;var Mt=(O+(_=_+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;O=((v=v+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,_=Math.imul(Yt,le),n=(n=Math.imul(Yt,be))+Math.imul(Gt,le)|0,v=Math.imul(Gt,be),_=_+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,v=v+Math.imul(Dt,Ht)|0,_=_+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,v=v+Math.imul(Le,tt)|0,_=_+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,v=v+Math.imul($,Ue)|0,_=_+Math.imul(oe,at)|0,n=(n=n+Math.imul(oe,yt)|0)+Math.imul(Te,at)|0,v=v+Math.imul(Te,yt)|0,_=_+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,v=v+Math.imul(Ie,Jt)|0;var Vt=(O+(_=_+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;O=((v=v+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,v=Math.imul(Gt,Ht),_=_+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,v=v+Math.imul(Dt,tt)|0,_=_+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,v=v+Math.imul(Le,Ue)|0,_=_+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,v=v+Math.imul($,yt)|0,_=_+Math.imul(oe,Qt)|0,n=(n=n+Math.imul(oe,Jt)|0)+Math.imul(Te,Qt)|0,v=v+Math.imul(Te,Jt)|0;var Mi=(O+(_=_+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;O=((v=v+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,_=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,v=Math.imul(Gt,tt),_=_+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,v=v+Math.imul(Dt,Ue)|0,_=_+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,v=v+Math.imul(Le,yt)|0,_=_+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,v=v+Math.imul($,Jt)|0;var Ei=(O+(_=_+Math.imul(oe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(oe,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;O=((v=v+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,v=Math.imul(Gt,Ue),_=_+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,v=v+Math.imul(Dt,yt)|0,_=_+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,v=v+Math.imul(Le,Jt)|0;var en=(O+(_=_+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;O=((v=v+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,v=Math.imul(Gt,yt),_=_+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,v=v+Math.imul(Dt,Jt)|0;var ji=(O+(_=_+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;O=((v=v+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,_=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,v=Math.imul(Gt,Jt);var Kt=(O+(_=_+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;O=((v=v+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(O+(_=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return O=((v=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=pe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==O&&(E[19]=O,u.length++),u};function Z(y,i,r){return(new j).mulp(y,i,r)}function j(y,i){this.x=y,this.y=i}Math.imul||(L=I),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?L(this,i,r):c<63?I(this,i,r):c<1024?function U(y,i,r){r.negative=i.negative^y.negative,r.length=y.length+i.length;for(var u=0,c=0,C=0;C>>26)|0)>>>26,E&=67108863}r.words[C]=O,u=E,E=c}return 0!==u?r.words[C]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,C,E){for(var O=0;O>>=1)C++;return 1<>>=13),C>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=C>>>26,this.words[u]=67108863&C}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(y){for(var i=new Array(y.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var C,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(C=0;C>>26-r}E&&(this.words[C]=E,this.length++)}if(0!==u){for(C=this.length-1;C>=0;C--)this.words[C+u]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=i%26,E=Math.min((i-C)/26,this.length),O=67108863^67108863>>>C<E)for(this.length-=E,n=0;n=0&&(0!==v||n>=c);n--){var B=0|this.words[n];this.words[n]=v<<26-C|B>>>C,v=B&O}return _&&0!==v&&(_.words[_.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,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+u]=67108863&E}for(;C>26,this.words[C+u]=67108863&E;if(0===O)return this.strip();for(f(-1===O),O=0,C=0;C>26,this.words[C]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),C=i,E=0|C.words[C.length-1];0!=(u=26-this._countBits(E))&&(C=C.ushln(u),c.iushln(u),E=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 v=0;v=0;P--){var z=67108864*(0|c.words[C.length+P])+(0|c.words[C.length+P-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(C,z,P);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(C,1,P),c.isZero()||(c.negative^=1);n&&(n.words[P]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.iadd(i)),{div:c,mod:C}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.isub(i)),{div:E.div,mod:C}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,C,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),C=i.andln(1),E=u.cmp(c);return E<0||1===C&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=new a(0),O=new a(1),_=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++_;for(var n=u.clone(),v=r.clone();!r.isZero();){for(var B=0,P=1;0==(r.words[0]&P)&&B<26;++B,P<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(v)),c.iushrn(1),C.iushrn(1);for(var z=0,se=1;0==(u.words[0]&se)&&z<26;++z,se<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||O.isOdd())&&(E.iadd(n),O.isub(v)),E.iushrn(1),O.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),C.isub(O)):(u.isub(r),E.isub(c),O.isub(C))}return{a:E,b:O,gcd:u.iushln(_)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var O=0,_=1;0==(r.words[0]&_)&&O<26;++O,_<<=1);if(O>0)for(r.iushrn(O);O-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,v=1;0==(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(E),C.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(C)):(u.isub(r),C.isub(c))}return(B=0===r.cmpn(1)?c:C).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var C=r.cmp(u);if(C<0){var E=r;r=u,u=E}else if(0===C||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=O&=67108863}return 0!==C&&(this.words[E]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],C=0|i.words[u];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(y,i){this.name=y,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(y){if("string"==typeof y){var i=a._prime(y);this.m=i.p,this.prime=i}else f(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function ge(y){J.call(this,y),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 i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),C=0;C>>22,E=O}i.words[C-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=C,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),O=E.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(O);)n.redIAdd(O);for(var v=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),P=this.pow(i,c),z=C;0!==P.cmp(E);){for(var se=P,fe=0;0!==se.cmp(E);fe++)se=se.redSqr();f(fe=0;C--){for(var v=r.words[C],B=n-1;B>=0;B--){var P=v>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==P||0!==O?(O<<=1,O|=P,(4==++_||0===C&&0===B)&&(E=this.mul(E,c[O]),_=0,O=0)):_=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new ge(i)},M(ge,J),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},8419:Fe=>{"use strict";Fe.exports=function(p){for(var t=[],e=p.length,f=0;f=55296&&M<=56319&&e>f+1){var a=p.charCodeAt(f+1);a>=56320&&a<=57343&&(M=1024*(M-55296)+a-56320+65536,f+=1)}M<128?t.push(M):M<2048?(t.push(M>>6|192),t.push(63&M|128)):M<55296||M>=57344&&M<65536?(t.push(M>>12|224),t.push(M>>6&63|128),t.push(63&M|128)):M>=65536&&M<=1114111?(t.push(M>>18|240),t.push(M>>12&63|128),t.push(M>>6&63|128),t.push(63&M|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:Fe=>{"use strict";var t,Y="object"==typeof Reflect?Reflect:null,p=Y&&"function"==typeof Y.apply?Y.apply:function(X,de,ee){return Function.prototype.apply.call(X,de,ee)};t=Y&&"function"==typeof Y.ownKeys?Y.ownKeys:Object.getOwnPropertySymbols?function(X){return Object.getOwnPropertyNames(X).concat(Object.getOwnPropertySymbols(X))}:function(X){return Object.getOwnPropertyNames(X)};var f=Number.isNaN||function(X){return X!=X};function M(){M.init.call(this)}Fe.exports=M,Fe.exports.once=function U(ne,X){return new Promise(function(de,ee){function te(J){ne.removeListener(X,ce),ee(J)}function ce(){"function"==typeof ne.removeListener&&ne.removeListener("error",te),de([].slice.call(arguments))}j(ne,X,ce,{once:!0}),"error"!==X&&function Z(ne,X,de){"function"==typeof ne.on&&j(ne,"error",X,de)}(ne,te,{once:!0})})},M.EventEmitter=M,M.prototype._events=void 0,M.prototype._eventsCount=0,M.prototype._maxListeners=void 0;var a=10;function b(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?M.defaultMaxListeners:ne._maxListeners}function N(ne,X,de,ee){var te,ce,J;if(b(de),void 0===(ce=ne._events)?(ce=ne._events=Object.create(null),ne._eventsCount=0):(void 0!==ce.newListener&&(ne.emit("newListener",X,de.listener?de.listener:de),ce=ne._events),J=ce[X]),void 0===J)J=ce[X]=de,++ne._eventsCount;else if("function"==typeof J?J=ce[X]=ee?[de,J]:[J,de]:ee?J.unshift(de):J.push(de),(te=d(ne))>0&&J.length>te&&!J.warned){J.warned=!0;var ge=new Error("Possible EventEmitter memory leak detected. "+J.length+" "+String(X)+" listeners added. Use emitter.setMaxListeners() to increase limit");ge.name="MaxListenersExceededWarning",ge.emitter=ne,ge.type=X,ge.count=J.length,function e(ne){console&&console.warn&&console.warn(ne)}(ge)}return ne}function h(){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 A(ne,X,de){var ee={fired:!1,wrapFn:void 0,target:ne,type:X,listener:de},te=h.bind(ee);return te.listener=de,ee.wrapFn=te,te}function D(ne,X,de){var ee=ne._events;if(void 0===ee)return[];var te=ee[X];return void 0===te?[]:"function"==typeof te?de?[te.listener||te]:[te]:de?function L(ne){for(var X=new Array(ne.length),de=0;de0&&(J=de[0]),J instanceof Error)throw J;var ge=new Error("Unhandled error."+(J?" ("+J.message+")":""));throw ge.context=J,ge}var y=ce[X];if(void 0===y)return!1;if("function"==typeof y)p(y,this,de);else{var i=y.length,r=S(y,i);for(ee=0;ee=0;J--)if(ee[J]===de||ee[J].listener===de){ge=ee[J].listener,ce=J;break}if(ce<0)return this;0===ce?ee.shift():function I(ne,X){for(;X+1=0;te--)this.removeListener(X,de[te]);return this},M.prototype.listeners=function(X){return D(this,X,!0)},M.prototype.rawListeners=function(X){return D(this,X,!1)},M.listenerCount=function(ne,X){return"function"==typeof ne.listenerCount?ne.listenerCount(X):w.call(ne,X)},M.prototype.listenerCount=w,M.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(Fe,Y,p)=>{var t=p(3502).Buffer,e=p(8095);Fe.exports=function f(M,a,b,d){if(t.isBuffer(M)||(M=t.from(M,"binary")),a&&(t.isBuffer(a)||(a=t.from(a,"binary")),8!==a.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var N=b/8,h=t.alloc(N),A=t.alloc(d||0),D=t.alloc(0);N>0||d>0;){var w=new e;w.update(D),w.update(M),a&&w.update(a),D=w.digest();var S=0;if(N>0){var I=h.length-N;S=Math.min(N,D.length),D.copy(h,I,0,S),N-=S}if(S0){var L=A.length-d,U=Math.min(d,D.length-S);D.copy(A,L,S,S+U),d-=U}}return D.fill(0),{key:h,iv:A}}},9650:(Fe,Y,p)=>{"use strict";var t=p(8444).Buffer,e=p(5685).Transform;function a(b){e.call(this),this._block=t.allocUnsafe(b),this._blockSize=b,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(a,e),a.prototype._transform=function(b,d,N){var h=null;try{this.update(b,d)}catch(A){h=A}N(h)},a.prototype._flush=function(b){var d=null;try{this.push(this.digest())}catch(N){d=N}b(d)},a.prototype.update=function(b,d){if(function M(b,d){if(!t.isBuffer(b)&&"string"!=typeof b)throw new TypeError(d+" must be a string or a buffer")}(b,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(b)||(b=t.from(b,d));for(var N=this._block,h=0;this._blockOffset+b.length-h>=this._blockSize;){for(var A=this._blockOffset;A0;++D)this._length[D]+=w,(w=this._length[D]/4294967296|0)>0&&(this._length[D]-=4294967296*w);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(b){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==b&&(d=d.toString(b)),this._block.fill(0),this._blockOffset=0;for(var N=0;N<4;++N)this._length[N]=0;return d},a.prototype._digest=function(){throw new Error("_digest is not implemented")},Fe.exports=a},8444:(Fe,Y,p)=>{var t=p(3172),e=t.Buffer;function f(a,b){for(var d in a)b[d]=a[d]}function M(a,b,d){return e(a,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Fe.exports=t:(f(t,Y),Y.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(a,b,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,b,d)},M.alloc=function(a,b,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var N=e(a);return void 0!==b?"string"==typeof d?N.fill(b,d):N.fill(b):N.fill(0),N},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},7084:(Fe,Y,p)=>{var t=Y;t.utils=p(9299),t.common=p(3800),t.sha=p(4962),t.ripemd=p(9458),t.hmac=p(2194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},3800:(Fe,Y,p)=>{"use strict";var t=p(9299),e=p(2391);function f(){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}Y.BlockHash=f,f.prototype.update=function(a,b){if(a=t.toArray(a,b),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=t.join32(a,0,a.length-d,this.endian);for(var N=0;N>>24&255,N[h++]=a>>>16&255,N[h++]=a>>>8&255,N[h++]=255&a}else for(N[h++]=255&a,N[h++]=a>>>8&255,N[h++]=a>>>16&255,N[h++]=a>>>24&255,N[h++]=0,N[h++]=0,N[h++]=0,N[h++]=0,A=8;A{"use strict";var t=p(9299),e=p(2391);function f(M,a,b){if(!(this instanceof f))return new f(M,a,b);this.Hash=M,this.blockSize=M.blockSize/8,this.outSize=M.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(a,b))}Fe.exports=f,f.prototype._init=function(a){a.length>this.blockSize&&(a=(new this.Hash).update(a).digest()),e(a.length<=this.blockSize);for(var b=a.length;b{"use strict";var t=p(9299),e=p(3800),f=t.rotl32,M=t.sum32,a=t.sum32_3,b=t.sum32_4,d=e.BlockHash;function N(){if(!(this instanceof N))return new N;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(U,Z,j,ne){return U<=15?Z^j^ne:U<=31?Z&j|~Z&ne:U<=47?(Z|~j)^ne:U<=63?Z&ne|j&~ne:Z^(j|~ne)}function D(U){return U<=15?1352829926:U<=31?1548603684:U<=47?1836072691:U<=63?2053994217:0}t.inherits(N,d),Y.ripemd160=N,N.blockSize=512,N.outSize=160,N.hmacStrength=192,N.padLength=64,N.prototype._update=function(Z,j){for(var ne=this.h[0],X=this.h[1],de=this.h[2],ee=this.h[3],te=this.h[4],ce=ne,J=X,ge=de,y=ee,i=te,r=0;r<80;r++){var u=M(f(b(ne,h(r,X,de,ee),Z[w[r]+j],(U=r)<=15?0:U<=31?1518500249:U<=47?1859775393:U<=63?2400959708:2840853838),I[r]),te);ne=te,te=ee,ee=f(de,10),de=X,X=u,u=M(f(b(ce,h(79-r,J,ge,y),Z[S[r]+j],D(r)),L[r]),i),ce=i,i=y,y=f(ge,10),ge=J,J=u}var U;u=a(this.h[1],de,y),this.h[1]=a(this.h[2],ee,i),this.h[2]=a(this.h[3],te,ce),this.h[3]=a(this.h[4],ne,J),this.h[4]=a(this.h[0],X,ge),this.h[0]=u},N.prototype._digest=function(Z){return"hex"===Z?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var w=[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],S=[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],I=[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],L=[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:(Fe,Y,p)=>{"use strict";Y.sha1=p(9007),Y.sha224=p(55),Y.sha256=p(9342),Y.sha384=p(8634),Y.sha512=p(39)},9007:(Fe,Y,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=t.rotl32,a=t.sum32,b=t.sum32_5,d=f.ft_1,N=e.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function A(){if(!(this instanceof A))return new A;N.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(A,N),Fe.exports=A,A.blockSize=512,A.outSize=160,A.hmacStrength=80,A.padLength=64,A.prototype._update=function(w,S){for(var I=this.W,L=0;L<16;L++)I[L]=w[S+L];for(;L{"use strict";var t=p(9299),e=p(9342);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(f,e),Fe.exports=f,f.blockSize=512,f.outSize=224,f.hmacStrength=192,f.padLength=64,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(Fe,Y,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=p(2391),a=t.sum32,b=t.sum32_4,d=t.sum32_5,N=f.ch32,h=f.maj32,A=f.s0_256,D=f.s1_256,w=f.g0_256,S=f.g1_256,I=e.BlockHash,L=[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 U(){if(!(this instanceof U))return new U;I.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=L,this.W=new Array(64)}t.inherits(U,I),Fe.exports=U,U.blockSize=512,U.outSize=256,U.hmacStrength=192,U.padLength=64,U.prototype._update=function(j,ne){for(var X=this.W,de=0;de<16;de++)X[de]=j[ne+de];for(;de{"use strict";var t=p(9299),e=p(39);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(f,e),Fe.exports=f,f.blockSize=1024,f.outSize=384,f.hmacStrength=192,f.padLength=128,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(Fe,Y,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(2391),M=t.rotr64_hi,a=t.rotr64_lo,b=t.shr64_hi,d=t.shr64_lo,N=t.sum64,h=t.sum64_hi,A=t.sum64_lo,D=t.sum64_4_hi,w=t.sum64_4_lo,S=t.sum64_5_hi,I=t.sum64_5_lo,L=e.BlockHash,U=[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 Z(){if(!(this instanceof Z))return new Z;L.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=U,this.W=new Array(160)}function j(u,c,C,E,O){var _=u&C^~u&O;return _<0&&(_+=4294967296),_}function ne(u,c,C,E,O,_){var n=c&E^~c&_;return n<0&&(n+=4294967296),n}function X(u,c,C,E,O){var _=u&C^u&O^C&O;return _<0&&(_+=4294967296),_}function de(u,c,C,E,O,_){var n=c&E^c&_^E&_;return n<0&&(n+=4294967296),n}function ee(u,c){var _=M(u,c,28)^M(c,u,2)^M(c,u,7);return _<0&&(_+=4294967296),_}function te(u,c){var _=a(u,c,28)^a(c,u,2)^a(c,u,7);return _<0&&(_+=4294967296),_}function ce(u,c){var _=M(u,c,14)^M(u,c,18)^M(c,u,9);return _<0&&(_+=4294967296),_}function J(u,c){var _=a(u,c,14)^a(u,c,18)^a(c,u,9);return _<0&&(_+=4294967296),_}function ge(u,c){var _=M(u,c,1)^M(u,c,8)^b(u,c,7);return _<0&&(_+=4294967296),_}function y(u,c){var _=a(u,c,1)^a(u,c,8)^d(u,c,7);return _<0&&(_+=4294967296),_}function i(u,c){var _=M(u,c,19)^M(c,u,29)^b(u,c,6);return _<0&&(_+=4294967296),_}function r(u,c){var _=a(u,c,19)^a(c,u,29)^d(u,c,6);return _<0&&(_+=4294967296),_}t.inherits(Z,L),Fe.exports=Z,Z.blockSize=1024,Z.outSize=512,Z.hmacStrength=192,Z.padLength=128,Z.prototype._prepareBlock=function(c,C){for(var E=this.W,O=0;O<32;O++)E[O]=c[C+O];for(;O{"use strict";var e=p(9299).rotr32;function M(D,w,S){return D&w^~D&S}function a(D,w,S){return D&w^D&S^w&S}function b(D,w,S){return D^w^S}Y.ft_1=function f(D,w,S,I){return 0===D?M(w,S,I):1===D||3===D?b(w,S,I):2===D?a(w,S,I):void 0},Y.ch32=M,Y.maj32=a,Y.p32=b,Y.s0_256=function d(D){return e(D,2)^e(D,13)^e(D,22)},Y.s1_256=function N(D){return e(D,6)^e(D,11)^e(D,25)},Y.g0_256=function h(D){return e(D,7)^e(D,18)^D>>>3},Y.g1_256=function A(D){return e(D,17)^e(D,19)^D>>>10}},9299:(Fe,Y,p)=>{"use strict";var t=p(2391),e=p(3894);function f(r,u){return!(55296!=(64512&r.charCodeAt(u))||u<0||u+1>=r.length)&&56320==(64512&r.charCodeAt(u+1))}function b(r){return(r>>>24|r>>>8&65280|r<<8&16711680|(255&r)<<24)>>>0}function N(r){return 1===r.length?"0"+r:r}function h(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}Y.inherits=e,Y.toArray=function M(r,u){if(Array.isArray(r))return r.slice();if(!r)return[];var c=[];if("string"==typeof r)if(u){if("hex"===u)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),E=0;E>6|192,c[C++]=63&O|128):f(r,E)?(O=65536+((1023&O)<<10)+(1023&r.charCodeAt(++E)),c[C++]=O>>18|240,c[C++]=O>>12&63|128,c[C++]=O>>6&63|128,c[C++]=63&O|128):(c[C++]=O>>12|224,c[C++]=O>>6&63|128,c[C++]=63&O|128)}else for(E=0;E>>0;return O},Y.split32=function D(r,u){for(var c=new Array(4*r.length),C=0,E=0;C>>24,c[E+1]=O>>>16&255,c[E+2]=O>>>8&255,c[E+3]=255&O):(c[E+3]=O>>>24,c[E+2]=O>>>16&255,c[E+1]=O>>>8&255,c[E]=255&O)}return c},Y.rotr32=function w(r,u){return r>>>u|r<<32-u},Y.rotl32=function S(r,u){return r<>>32-u},Y.sum32=function I(r,u){return r+u>>>0},Y.sum32_3=function L(r,u,c){return r+u+c>>>0},Y.sum32_4=function U(r,u,c,C){return r+u+c+C>>>0},Y.sum32_5=function Z(r,u,c,C,E){return r+u+c+C+E>>>0},Y.sum64=function j(r,u,c,C){var _=C+r[u+1]>>>0;r[u]=(_>>0,r[u+1]=_},Y.sum64_hi=function ne(r,u,c,C){return(u+C>>>0>>0},Y.sum64_lo=function X(r,u,c,C){return u+C>>>0},Y.sum64_4_hi=function de(r,u,c,C,E,O,_,n){var v=0,B=u;return v+=(B=B+C>>>0)>>0)>>0)>>0},Y.sum64_4_lo=function ee(r,u,c,C,E,O,_,n){return u+C+O+n>>>0},Y.sum64_5_hi=function te(r,u,c,C,E,O,_,n,v,B){var P=0,z=u;return P+=(z=z+C>>>0)>>0)>>0)>>0)>>0},Y.sum64_5_lo=function ce(r,u,c,C,E,O,_,n,v,B){return u+C+O+n+B>>>0},Y.rotr64_hi=function J(r,u,c){return(u<<32-c|r>>>c)>>>0},Y.rotr64_lo=function ge(r,u,c){return(r<<32-c|u>>>c)>>>0},Y.shr64_hi=function y(r,u,c){return r>>>c},Y.shr64_lo=function i(r,u,c){return(r<<32-c|u>>>c)>>>0}},2438:(Fe,Y,p)=>{"use strict";var t=p(7084),e=p(8195),f=p(2391);function M(a){if(!(this instanceof M))return new M(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 b=e.toArray(a.entropy,a.entropyEnc||"hex"),d=e.toArray(a.nonce,a.nonceEnc||"hex"),N=e.toArray(a.pers,a.persEnc||"hex");f(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(b,d,N)}Fe.exports=M,M.prototype._init=function(b,d,N){var h=b.concat(d).concat(N);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var A=0;A=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(b.concat(N||[])),this._reseed=1},M.prototype.generate=function(b,d,N,h){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof d&&(h=N,N=d,d=null),N&&(N=e.toArray(N,h||"hex"),this._update(N));for(var A=[];A.length{Y.read=function(p,t,e,f,M){var a,b,d=8*M-f-1,N=(1<>1,A=-7,D=e?M-1:0,w=e?-1:1,S=p[t+D];for(D+=w,a=S&(1<<-A)-1,S>>=-A,A+=d;A>0;a=256*a+p[t+D],D+=w,A-=8);for(b=a&(1<<-A)-1,a>>=-A,A+=f;A>0;b=256*b+p[t+D],D+=w,A-=8);if(0===a)a=1-h;else{if(a===N)return b?NaN:1/0*(S?-1:1);b+=Math.pow(2,f),a-=h}return(S?-1:1)*b*Math.pow(2,a-f)},Y.write=function(p,t,e,f,M,a){var b,d,N,h=8*a-M-1,A=(1<>1,w=23===M?Math.pow(2,-24)-Math.pow(2,-77):0,S=f?0:a-1,I=f?1:-1,L=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,b=A):(b=Math.floor(Math.log(t)/Math.LN2),t*(N=Math.pow(2,-b))<1&&(b--,N*=2),(t+=b+D>=1?w/N:w*Math.pow(2,1-D))*N>=2&&(b++,N/=2),b+D>=A?(d=0,b=A):b+D>=1?(d=(t*N-1)*Math.pow(2,M),b+=D):(d=t*Math.pow(2,D-1)*Math.pow(2,M),b=0));M>=8;p[e+S]=255&d,S+=I,d/=256,M-=8);for(b=b<0;p[e+S]=255&b,S+=I,b/=256,h-=8);p[e+S-I]|=128*L}},3894:Fe=>{Fe.exports="function"==typeof Object.create?function(p,t){t&&(p.super_=t,p.prototype=Object.create(t.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,t){if(t){p.super_=t;var e=function(){};e.prototype=t.prototype,p.prototype=new e,p.prototype.constructor=p}}},717:(Fe,Y,p)=>{"use strict";var t=p(623);function e(f){return!0===t(f)&&"[object Object]"===Object.prototype.toString.call(f)}Fe.exports=function(M){var a,b;return!(!1===e(M)||(a=M.constructor,"function"!=typeof a)||(b=a.prototype,!1===e(b))||!1===b.hasOwnProperty("isPrototypeOf"))}},623:Fe=>{"use strict";Fe.exports=function(p){return null!=p&&"object"==typeof p&&!1===Array.isArray(p)}},2872:Fe=>{var Y=Object.prototype.toString;function p(h){return"function"==typeof h.constructor?h.constructor.name:null}Fe.exports=function(A){if(void 0===A)return"undefined";if(null===A)return"null";var D=typeof A;if("boolean"===D)return"boolean";if("string"===D)return"string";if("number"===D)return"number";if("symbol"===D)return"symbol";if("function"===D)return function a(h,A){return"GeneratorFunction"===p(h)}(A)?"generatorfunction":"function";if(function t(h){return Array.isArray?Array.isArray(h):h instanceof Array}(A))return"array";if(function N(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(A))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(A){if(-1!==A.message.indexOf("callee"))return!0}return!1}(A))return"arguments";if(function f(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(A))return"date";if(function e(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(A))return"error";if(function M(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(A))return"regexp";switch(p(A)){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 b(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(A))return"generator";switch(D=Y.call(A)){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 D.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Fe,Y,p)=>{"use strict";var t=p(3894),e=p(9650),f=p(3502).Buffer,M=new Array(16);function a(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function b(D,w){return D<>>32-w}function d(D,w,S,I,L,U,Z){return b(D+(w&S|~w&I)+L+U|0,Z)+w|0}function N(D,w,S,I,L,U,Z){return b(D+(w&I|S&~I)+L+U|0,Z)+w|0}function h(D,w,S,I,L,U,Z){return b(D+(w^S^I)+L+U|0,Z)+w|0}function A(D,w,S,I,L,U,Z){return b(D+(S^(w|~I))+L+U|0,Z)+w|0}t(a,e),a.prototype._update=function(){for(var D=M,w=0;w<16;++w)D[w]=this._block.readInt32LE(4*w);var S=this._a,I=this._b,L=this._c,U=this._d;S=d(S,I,L,U,D[0],3614090360,7),U=d(U,S,I,L,D[1],3905402710,12),L=d(L,U,S,I,D[2],606105819,17),I=d(I,L,U,S,D[3],3250441966,22),S=d(S,I,L,U,D[4],4118548399,7),U=d(U,S,I,L,D[5],1200080426,12),L=d(L,U,S,I,D[6],2821735955,17),I=d(I,L,U,S,D[7],4249261313,22),S=d(S,I,L,U,D[8],1770035416,7),U=d(U,S,I,L,D[9],2336552879,12),L=d(L,U,S,I,D[10],4294925233,17),I=d(I,L,U,S,D[11],2304563134,22),S=d(S,I,L,U,D[12],1804603682,7),U=d(U,S,I,L,D[13],4254626195,12),L=d(L,U,S,I,D[14],2792965006,17),S=N(S,I=d(I,L,U,S,D[15],1236535329,22),L,U,D[1],4129170786,5),U=N(U,S,I,L,D[6],3225465664,9),L=N(L,U,S,I,D[11],643717713,14),I=N(I,L,U,S,D[0],3921069994,20),S=N(S,I,L,U,D[5],3593408605,5),U=N(U,S,I,L,D[10],38016083,9),L=N(L,U,S,I,D[15],3634488961,14),I=N(I,L,U,S,D[4],3889429448,20),S=N(S,I,L,U,D[9],568446438,5),U=N(U,S,I,L,D[14],3275163606,9),L=N(L,U,S,I,D[3],4107603335,14),I=N(I,L,U,S,D[8],1163531501,20),S=N(S,I,L,U,D[13],2850285829,5),U=N(U,S,I,L,D[2],4243563512,9),L=N(L,U,S,I,D[7],1735328473,14),S=h(S,I=N(I,L,U,S,D[12],2368359562,20),L,U,D[5],4294588738,4),U=h(U,S,I,L,D[8],2272392833,11),L=h(L,U,S,I,D[11],1839030562,16),I=h(I,L,U,S,D[14],4259657740,23),S=h(S,I,L,U,D[1],2763975236,4),U=h(U,S,I,L,D[4],1272893353,11),L=h(L,U,S,I,D[7],4139469664,16),I=h(I,L,U,S,D[10],3200236656,23),S=h(S,I,L,U,D[13],681279174,4),U=h(U,S,I,L,D[0],3936430074,11),L=h(L,U,S,I,D[3],3572445317,16),I=h(I,L,U,S,D[6],76029189,23),S=h(S,I,L,U,D[9],3654602809,4),U=h(U,S,I,L,D[12],3873151461,11),L=h(L,U,S,I,D[15],530742520,16),S=A(S,I=h(I,L,U,S,D[2],3299628645,23),L,U,D[0],4096336452,6),U=A(U,S,I,L,D[7],1126891415,10),L=A(L,U,S,I,D[14],2878612391,15),I=A(I,L,U,S,D[5],4237533241,21),S=A(S,I,L,U,D[12],1700485571,6),U=A(U,S,I,L,D[3],2399980690,10),L=A(L,U,S,I,D[10],4293915773,15),I=A(I,L,U,S,D[1],2240044497,21),S=A(S,I,L,U,D[8],1873313359,6),U=A(U,S,I,L,D[15],4264355552,10),L=A(L,U,S,I,D[6],2734768916,15),I=A(I,L,U,S,D[13],1309151649,21),S=A(S,I,L,U,D[4],4149444226,6),U=A(U,S,I,L,D[11],3174756917,10),L=A(L,U,S,I,D[2],718787259,15),I=A(I,L,U,S,D[9],3951481745,21),this._a=this._a+S|0,this._b=this._b+I|0,this._c=this._c+L|0,this._d=this._d+U|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 D=f.allocUnsafe(16);return D.writeInt32LE(this._a,0),D.writeInt32LE(this._b,4),D.writeInt32LE(this._c,8),D.writeInt32LE(this._d,12),D},Fe.exports=a},7079:(Fe,Y,p)=>{var t=p(1378),e=p(7950);function f(M){this.rand=M||new e.Rand}Fe.exports=f,f.create=function(a){return new f(a)},f.prototype._randbelow=function(a){var b=a.bitLength(),d=Math.ceil(b/8);do{var N=new t(this.rand.generate(d))}while(N.cmp(a)>=0);return N},f.prototype._randrange=function(a,b){var d=b.sub(a);return a.add(this._randbelow(d))},f.prototype.test=function(a,b,d){var N=a.bitLength(),h=t.mont(a),A=new t(1).toRed(h);b||(b=Math.max(1,N/48|0));for(var D=a.subn(1),w=0;!D.testn(w);w++);for(var S=a.shrn(w),I=D.toRed(h);b>0;b--){var U=this._randrange(new t(2),D);d&&d(U);var Z=U.toRed(h).redPow(S);if(0!==Z.cmp(A)&&0!==Z.cmp(I)){for(var j=1;j0;b--){var I=this._randrange(new t(2),A),L=a.gcd(I);if(0!==L.cmpn(1))return L;var U=I.toRed(N).redPow(w);if(0!==U.cmp(h)&&0!==U.cmp(S)){for(var Z=1;Z=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function N(y,i,r){var u=d(y,r);return r-1>=i&&(u|=d(y,r-1)<<4),u}function h(y,i,r,u){for(var c=0,C=Math.min(y.length,r),E=i;E=49?O-49+10:O>=17?O-17+10:O}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);else if("le"===u)for(c=0,C=0;c>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)O=N(i,r,c)<=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var E=i.length-u,O=E%c,_=Math.min(E,E-O)+u,n=0,v=u;v<_;v+=c)n=h(i,v,v+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==O){var B=1;for(n=h(i,v,i.length,r),v=0;v1&&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 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"],D=[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],w=[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 I(y,i,r){r.negative=i.negative^y.negative;var u=y.length+i.length|0;r.length=u,u=u-1|0;var c=0|y.words[0],C=0|i.words[0],E=c*C,_=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&_,P=Math.min(n,i.length-1),z=Math.max(0,n-y.length+1);z<=P;z++)v+=(E=(c=0|y.words[n-z|0])*(C=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,_=0|v}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,C=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-_.length]+_+u:_+u,(c+=2)>=26&&(c-=26,E--)}for(0!==C&&(u=C.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=D[i],v=w[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var P=B.modn(v).toString(i);u=(B=B.idivn(v)).isZero()?P+u:A[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),C=u||Math.max(1,c);f(c<=C,"byte array longer than desired length"),f(C>0,"Requested array length <= 0"),this.strip();var _,n,E="le"===r,O=new i(C),v=this.clone();if(E){for(n=0;!v.isZero();n++)_=v.andln(255),v.iushrn(8),O[n]=_;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var C=0,E=0;E>>26;for(;0!==C&&E>>26;if(this.length=u.length,0!==C)this.words[this.length]=C,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,C,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,C=i):(c=i,C=this);for(var E=0,O=0;O>26,this.words[O]=67108863&r;for(;0!==E&&O>26,this.words[O]=67108863&r;if(0===E&&O>>13,se=0|c[1],fe=8191&se,xe=se>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,Ae=0|c[4],lt=8191&Ae,Ie=Ae>>>13,De=0|c[5],oe=8191&De,Te=De>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|C[0],xt=8191&ui,Nt=ui>>>13,gt=0|C[1],et=8191>,vt=gt>>>13,$t=0|C[2],jt=8191&$t,Pe=$t>>>13,Oe=0|C[3],le=8191&Oe,be=Oe>>>13,ht=0|C[4],ft=8191&ht,Ht=ht>>>13,it=0|C[5],Ne=8191&it,tt=it>>>13,Je=0|C[6],Se=8191&Je,Ue=Je>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,gi=0|C[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|C[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(O+(_=Math.imul(P,xt))|0)+((8191&(n=(n=Math.imul(P,Nt))+Math.imul(z,xt)|0))<<13)|0;O=((v=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul(fe,xt),n=(n=Math.imul(fe,Nt))+Math.imul(xe,xt)|0,v=Math.imul(xe,Nt);var Wi=(O+(_=_+Math.imul(P,et)|0)|0)+((8191&(n=(n=n+Math.imul(P,vt)|0)+Math.imul(z,et)|0))<<13)|0;O=((v=v+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,v=Math.imul(Q,Nt),_=_+Math.imul(fe,et)|0,n=(n=n+Math.imul(fe,vt)|0)+Math.imul(xe,et)|0,v=v+Math.imul(xe,vt)|0;var Gi=(O+(_=_+Math.imul(P,jt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;O=((v=v+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,v=Math.imul(F,Nt),_=_+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,v=v+Math.imul(Q,vt)|0,_=_+Math.imul(fe,jt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(xe,jt)|0,v=v+Math.imul(xe,Pe)|0;var Yi=(O+(_=_+Math.imul(P,le)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(z,le)|0))<<13)|0;O=((v=v+Math.imul(z,be)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,_=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,v=Math.imul(Ie,Nt),_=_+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,v=v+Math.imul(F,vt)|0,_=_+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,v=v+Math.imul(Q,Pe)|0,_=_+Math.imul(fe,le)|0,n=(n=n+Math.imul(fe,be)|0)+Math.imul(xe,le)|0,v=v+Math.imul(xe,be)|0;var ze=(O+(_=_+Math.imul(P,ft)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;O=((v=v+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,_=Math.imul(oe,xt),n=(n=Math.imul(oe,Nt))+Math.imul(Te,xt)|0,v=Math.imul(Te,Nt),_=_+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,v=v+Math.imul(Ie,vt)|0,_=_+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,v=v+Math.imul(F,Pe)|0,_=_+Math.imul(we,le)|0,n=(n=n+Math.imul(we,be)|0)+Math.imul(Q,le)|0,v=v+Math.imul(Q,be)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(xe,ft)|0,v=v+Math.imul(xe,Ht)|0;var Lt=(O+(_=_+Math.imul(P,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(P,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;O=((v=v+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,v=Math.imul($,Nt),_=_+Math.imul(oe,et)|0,n=(n=n+Math.imul(oe,vt)|0)+Math.imul(Te,et)|0,v=v+Math.imul(Te,vt)|0,_=_+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,v=v+Math.imul(Ie,Pe)|0,_=_+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,be)|0)+Math.imul(F,le)|0,v=v+Math.imul(F,be)|0,_=_+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,v=v+Math.imul(Q,Ht)|0,_=_+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,tt)|0)+Math.imul(xe,Ne)|0,v=v+Math.imul(xe,tt)|0;var pe=(O+(_=_+Math.imul(P,Se)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;O=((v=v+Math.imul(z,Ue)|0)+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,_=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,v=Math.imul(Le,Nt),_=_+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,v=v+Math.imul($,vt)|0,_=_+Math.imul(oe,jt)|0,n=(n=n+Math.imul(oe,Pe)|0)+Math.imul(Te,jt)|0,v=v+Math.imul(Te,Pe)|0,_=_+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,be)|0)+Math.imul(Ie,le)|0,v=v+Math.imul(Ie,be)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,v=v+Math.imul(F,Ht)|0,_=_+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,v=v+Math.imul(Q,tt)|0,_=_+Math.imul(fe,Se)|0,n=(n=n+Math.imul(fe,Ue)|0)+Math.imul(xe,Se)|0,v=v+Math.imul(xe,Ue)|0;var je=(O+(_=_+Math.imul(P,at)|0)|0)+((8191&(n=(n=n+Math.imul(P,yt)|0)+Math.imul(z,at)|0))<<13)|0;O=((v=v+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,_=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,v=Math.imul(Dt,Nt),_=_+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,v=v+Math.imul(Le,vt)|0,_=_+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,v=v+Math.imul($,Pe)|0,_=_+Math.imul(oe,le)|0,n=(n=n+Math.imul(oe,be)|0)+Math.imul(Te,le)|0,v=v+Math.imul(Te,be)|0,_=_+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,v=v+Math.imul(Ie,Ht)|0,_=_+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,v=v+Math.imul(F,tt)|0,_=_+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,v=v+Math.imul(Q,Ue)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(xe,at)|0,v=v+Math.imul(xe,yt)|0;var Ct=(O+(_=_+Math.imul(P,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;O=((v=v+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,_=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,v=Math.imul(Gt,Nt),_=_+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,v=v+Math.imul(Dt,vt)|0,_=_+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,Pe)|0,_=_+Math.imul(W,le)|0,n=(n=n+Math.imul(W,be)|0)+Math.imul($,le)|0,v=v+Math.imul($,be)|0,_=_+Math.imul(oe,ft)|0,n=(n=n+Math.imul(oe,Ht)|0)+Math.imul(Te,ft)|0,v=v+Math.imul(Te,Ht)|0,_=_+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,v=v+Math.imul(Ie,tt)|0,_=_+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,v=v+Math.imul(F,Ue)|0,_=_+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,v=v+Math.imul(Q,yt)|0,_=_+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(xe,Qt)|0,v=v+Math.imul(xe,Jt)|0;var ie=(O+(_=_+Math.imul(P,fi)|0)|0)+((8191&(n=(n=n+Math.imul(P,ai)|0)+Math.imul(z,fi)|0))<<13)|0;O=((v=v+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,_=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,v=Math.imul(Gt,vt),_=_+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,v=v+Math.imul(Dt,Pe)|0,_=_+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,be)|0)+Math.imul(Le,le)|0,v=v+Math.imul(Le,be)|0,_=_+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,v=v+Math.imul($,Ht)|0,_=_+Math.imul(oe,Ne)|0,n=(n=n+Math.imul(oe,tt)|0)+Math.imul(Te,Ne)|0,v=v+Math.imul(Te,tt)|0,_=_+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,v=v+Math.imul(Ie,Ue)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,v=v+Math.imul(F,yt)|0,_=_+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,v=v+Math.imul(Q,Jt)|0;var qe=(O+(_=_+Math.imul(fe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(xe,fi)|0))<<13)|0;O=((v=v+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,_=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,v=Math.imul(Gt,Pe),_=_+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Dt,le)|0,v=v+Math.imul(Dt,be)|0,_=_+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,v=v+Math.imul(Le,Ht)|0,_=_+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,v=v+Math.imul($,tt)|0,_=_+Math.imul(oe,Se)|0,n=(n=n+Math.imul(oe,Ue)|0)+Math.imul(Te,Se)|0,v=v+Math.imul(Te,Ue)|0,_=_+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,v=v+Math.imul(Ie,yt)|0,_=_+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,v=v+Math.imul(F,Jt)|0;var Mt=(O+(_=_+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;O=((v=v+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,_=Math.imul(Yt,le),n=(n=Math.imul(Yt,be))+Math.imul(Gt,le)|0,v=Math.imul(Gt,be),_=_+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,v=v+Math.imul(Dt,Ht)|0,_=_+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,v=v+Math.imul(Le,tt)|0,_=_+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,v=v+Math.imul($,Ue)|0,_=_+Math.imul(oe,at)|0,n=(n=n+Math.imul(oe,yt)|0)+Math.imul(Te,at)|0,v=v+Math.imul(Te,yt)|0,_=_+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,v=v+Math.imul(Ie,Jt)|0;var Vt=(O+(_=_+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;O=((v=v+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,v=Math.imul(Gt,Ht),_=_+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,v=v+Math.imul(Dt,tt)|0,_=_+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,v=v+Math.imul(Le,Ue)|0,_=_+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,v=v+Math.imul($,yt)|0,_=_+Math.imul(oe,Qt)|0,n=(n=n+Math.imul(oe,Jt)|0)+Math.imul(Te,Qt)|0,v=v+Math.imul(Te,Jt)|0;var Mi=(O+(_=_+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;O=((v=v+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,_=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,v=Math.imul(Gt,tt),_=_+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,v=v+Math.imul(Dt,Ue)|0,_=_+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,v=v+Math.imul(Le,yt)|0,_=_+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,v=v+Math.imul($,Jt)|0;var Ei=(O+(_=_+Math.imul(oe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(oe,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;O=((v=v+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,v=Math.imul(Gt,Ue),_=_+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,v=v+Math.imul(Dt,yt)|0,_=_+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,v=v+Math.imul(Le,Jt)|0;var en=(O+(_=_+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;O=((v=v+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,v=Math.imul(Gt,yt),_=_+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,v=v+Math.imul(Dt,Jt)|0;var ji=(O+(_=_+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;O=((v=v+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,_=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,v=Math.imul(Gt,Jt);var Kt=(O+(_=_+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;O=((v=v+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(O+(_=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return O=((v=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=pe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==O&&(E[19]=O,u.length++),u};function Z(y,i,r){return(new j).mulp(y,i,r)}function j(y,i){this.x=y,this.y=i}Math.imul||(L=I),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?L(this,i,r):c<63?I(this,i,r):c<1024?function U(y,i,r){r.negative=i.negative^y.negative,r.length=y.length+i.length;for(var u=0,c=0,C=0;C>>26)|0)>>>26,E&=67108863}r.words[C]=O,u=E,E=c}return 0!==u?r.words[C]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,C,E){for(var O=0;O>>=1)C++;return 1<>>=13),C>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=C>>>26,this.words[u]=67108863&C}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(y){for(var i=new Array(y.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var C,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(C=0;C>>26-r}E&&(this.words[C]=E,this.length++)}if(0!==u){for(C=this.length-1;C>=0;C--)this.words[C+u]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=i%26,E=Math.min((i-C)/26,this.length),O=67108863^67108863>>>C<E)for(this.length-=E,n=0;n=0&&(0!==v||n>=c);n--){var B=0|this.words[n];this.words[n]=v<<26-C|B>>>C,v=B&O}return _&&0!==v&&(_.words[_.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,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+u]=67108863&E}for(;C>26,this.words[C+u]=67108863&E;if(0===O)return this.strip();for(f(-1===O),O=0,C=0;C>26,this.words[C]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),C=i,E=0|C.words[C.length-1];0!=(u=26-this._countBits(E))&&(C=C.ushln(u),c.iushln(u),E=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 v=0;v=0;P--){var z=67108864*(0|c.words[C.length+P])+(0|c.words[C.length+P-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(C,z,P);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(C,1,P),c.isZero()||(c.negative^=1);n&&(n.words[P]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.iadd(i)),{div:c,mod:C}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.isub(i)),{div:E.div,mod:C}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,C,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),C=i.andln(1),E=u.cmp(c);return E<0||1===C&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=new a(0),O=new a(1),_=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++_;for(var n=u.clone(),v=r.clone();!r.isZero();){for(var B=0,P=1;0==(r.words[0]&P)&&B<26;++B,P<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(v)),c.iushrn(1),C.iushrn(1);for(var z=0,se=1;0==(u.words[0]&se)&&z<26;++z,se<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||O.isOdd())&&(E.iadd(n),O.isub(v)),E.iushrn(1),O.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),C.isub(O)):(u.isub(r),E.isub(c),O.isub(C))}return{a:E,b:O,gcd:u.iushln(_)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var O=0,_=1;0==(r.words[0]&_)&&O<26;++O,_<<=1);if(O>0)for(r.iushrn(O);O-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,v=1;0==(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(E),C.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(C)):(u.isub(r),C.isub(c))}return(B=0===r.cmpn(1)?c:C).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var C=r.cmp(u);if(C<0){var E=r;r=u,u=E}else if(0===C||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=O&=67108863}return 0!==C&&(this.words[E]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],C=0|i.words[u];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(y,i){this.name=y,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(y){if("string"==typeof y){var i=a._prime(y);this.m=i.p,this.prime=i}else f(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function ge(y){J.call(this,y),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 i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),C=0;C>>22,E=O}i.words[C-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=C,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),O=E.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(O);)n.redIAdd(O);for(var v=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),P=this.pow(i,c),z=C;0!==P.cmp(E);){for(var se=P,fe=0;0!==se.cmp(E);fe++)se=se.redSqr();f(fe=0;C--){for(var v=r.words[C],B=n-1;B>=0;B--){var P=v>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==P||0!==O?(O<<=1,O|=P,(4==++_||0===C&&0===B)&&(E=this.mul(E,c[O]),_=0,O=0)):_=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new ge(i)},M(ge,J),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},2391:Fe=>{function Y(p,t){if(!p)throw new Error(t||"Assertion failed")}Fe.exports=Y,Y.equal=function(t,e,f){if(t!=e)throw new Error(f||"Assertion failed: "+t+" != "+e)}},8195:(Fe,Y)=>{"use strict";var p=Y;function e(M){return 1===M.length?"0"+M:M}function f(M){for(var a="",b=0;b>8,A=255&N;h?b.push(h,A):b.push(A)}return b},p.zero2=e,p.toHex=f,p.encode=function(a,b){return"hex"===b?f(a):a}},5768:(Fe,Y,p)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var t=p(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(Y,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(Fe,Y,p)=>{"use strict";var t=p(7977);Y.certificate=p(2390);var e=t.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())});Y.RSAPrivateKey=e;var f=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Y.RSAPublicKey=f;var M=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});Y.PublicKey=M;var a=t.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())}),b=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});Y.PrivateKey=b;var d=t.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())});Y.EncryptedPrivateKey=d;var N=t.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())});Y.DSAPrivateKey=N,Y.DSAparam=t.define("DSAparam",function(){this.int()});var h=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(A),this.key("publicKey").optional().explicit(1).bitstr())});Y.ECPrivateKey=h;var A=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Y.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Fe,Y,p)=>{"use strict";var t=p(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),f=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),M=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(M),this.key("subjectPublicKey").bitstr())}),b=t.define("RelativeDistinguishedName",function(){this.setof(f)}),d=t.define("RDNSequence",function(){this.seqof(b)}),N=t.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),h=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),A=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),D=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(M),this.key("issuer").use(N),this.key("validity").use(h),this.key("subject").use(N),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(A).optional())}),w=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(D),this.key("signatureAlgorithm").use(M),this.key("signatureValue").bitstr())});Fe.exports=w},5269:(Fe,Y,p)=>{var t=/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,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,f=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,M=p(347),a=p(4330),b=p(3502).Buffer;Fe.exports=function(d,N){var D,h=d.toString(),A=h.match(t);if(A){var S="aes"+A[1],I=b.from(A[2],"hex"),L=b.from(A[3].replace(/[\r\n]/g,""),"base64"),U=M(N,I.slice(0,8),parseInt(A[1],10)).key,Z=[],j=a.createDecipheriv(S,U,I);Z.push(j.update(L)),Z.push(j.final()),D=b.concat(Z)}else{var w=h.match(f);D=b.from(w[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(e)[1],data:D}}},2772:(Fe,Y,p)=>{var t=p(2999),e=p(2562),f=p(5269),M=p(4330),a=p(9357),b=p(3502).Buffer;function d(h){var A;"object"==typeof h&&!b.isBuffer(h)&&(A=h.passphrase,h=h.key),"string"==typeof h&&(h=b.from(h));var I,L,D=f(h,A),w=D.tag,S=D.data;switch(w){case"CERTIFICATE":L=t.certificate.decode(S,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(L||(L=t.PublicKey.decode(S,"der")),I=L.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(L.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return L.subjectPrivateKey=L.subjectPublicKey,{type:"ec",data:L};case"1.2.840.10040.4.1":return L.algorithm.params.pub_key=t.DSAparam.decode(L.subjectPublicKey.data,"der"),{type:"dsa",data:L.algorithm.params};default:throw new Error("unknown key id "+I)}case"ENCRYPTED PRIVATE KEY":S=function N(h,A){var D=h.algorithm.decrypt.kde.kdeparams.salt,w=parseInt(h.algorithm.decrypt.kde.kdeparams.iters.toString(),10),S=e[h.algorithm.decrypt.cipher.algo.join(".")],I=h.algorithm.decrypt.cipher.iv,L=h.subjectPrivateKey,U=parseInt(S.split("-")[1],10)/8,Z=a.pbkdf2Sync(A,D,w,U,"sha1"),j=M.createDecipheriv(S,Z,I),ne=[];return ne.push(j.update(L)),ne.push(j.final()),b.concat(ne)}(S=t.EncryptedPrivateKey.decode(S,"der"),A);case"PRIVATE KEY":switch(I=(L=t.PrivateKey.decode(S,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(L.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:L.algorithm.curve,privateKey:t.ECPrivateKey.decode(L.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return L.algorithm.params.priv_key=t.DSAparam.decode(L.subjectPrivateKey,"der"),{type:"dsa",params:L.algorithm.params};default:throw new Error("unknown key id "+I)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(S,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(S,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(S,"der")};case"EC PRIVATE KEY":return{curve:(S=t.ECPrivateKey.decode(S,"der")).parameters.value,privateKey:S.privateKey};default:throw new Error("unknown key type "+w)}}Fe.exports=d,d.signature=t.signature},9357:(Fe,Y,p)=>{Y.pbkdf2=p(415),Y.pbkdf2Sync=p(7472)},415:(Fe,Y,p)=>{var b,D,t=p(3502).Buffer,e=p(2697),f=p(8867),M=p(7472),a=p(4566),d=global.crypto&&global.crypto.subtle,N={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"},h=[];function w(){return D||(D=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function S(L,U,Z,j,ne){return d.importKey("raw",L,{name:"PBKDF2"},!1,["deriveBits"]).then(function(X){return d.deriveBits({name:"PBKDF2",salt:U,iterations:Z,hash:{name:ne}},X,j<<3)}).then(function(X){return t.from(X)})}Fe.exports=function(L,U,Z,j,ne,X){"function"==typeof ne&&(X=ne,ne=void 0);var de=N[(ne=ne||"sha1").toLowerCase()];if(de&&"function"==typeof global.Promise){if(e(Z,j),L=a(L,f,"Password"),U=a(U,f,"Salt"),"function"!=typeof X)throw new Error("No callback provided to pbkdf2");!function I(L,U){L.then(function(Z){w()(function(){U(null,Z)})},function(Z){w()(function(){U(Z)})})}(function A(L){if(global.process&&!global.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[L])return h[L];var U=S(b=b||t.alloc(8),b,10,128,L).then(function(){return!0}).catch(function(){return!1});return h[L]=U,U}(de).then(function(ee){return ee?S(L,U,Z,j,de):M(L,U,Z,j,ne)}),X)}else w()(function(){var ee;try{ee=M(L,U,Z,j,ne)}catch(te){return X(te)}X(null,ee)})}},8867:Fe=>{var Y;Y=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",Fe.exports=Y},2697:Fe=>{var Y=Math.pow(2,30)-1;Fe.exports=function(p,t){if("number"!=typeof p)throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>Y||t!=t)throw new TypeError("Bad key length")}},7472:(Fe,Y,p)=>{var t=p(5640),e=p(5634),f=p(5244),M=p(3502).Buffer,a=p(2697),b=p(8867),d=p(4566),N=M.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function A(S,I,L){var U=function D(S){return"rmd160"===S||"ripemd160"===S?function L(U){return(new e).update(U).digest()}:"md5"===S?t:function I(U){return f(S).update(U).digest()}}(S),Z="sha512"===S||"sha384"===S?128:64;I.length>Z?I=U(I):I.length{var t=p(3502).Buffer;Fe.exports=function(e,f,M){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,f);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(M+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Fe,Y,p)=>{Y.publicEncrypt=p(6562),Y.privateDecrypt=p(6705),Y.privateEncrypt=function(e,f){return Y.publicEncrypt(e,f,!0)},Y.publicDecrypt=function(e,f){return Y.privateDecrypt(e,f,!0)}},6945:(Fe,Y,p)=>{var t=p(6386),e=p(3502).Buffer;function f(M){var a=e.allocUnsafe(4);return a.writeUInt32BE(M,0),a}Fe.exports=function(M,a){for(var N,b=e.alloc(0),d=0;b.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function N(y,i,r){var u=d(y,r);return r-1>=i&&(u|=d(y,r-1)<<4),u}function h(y,i,r,u){for(var c=0,C=Math.min(y.length,r),E=i;E=49?O-49+10:O>=17?O-17+10:O}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(E=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);else if("le"===u)for(c=0,C=0;c>>26-O&67108863,(O+=24)>=26&&(O-=26,C++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)O=N(i,r,c)<=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[E+=1]|=O>>>26):C+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var E=i.length-u,O=E%c,_=Math.min(E,E-O)+u,n=0,v=u;v<_;v+=c)n=h(i,v,v+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==O){var B=1;for(n=h(i,v,i.length,r),v=0;v1&&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 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"],D=[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],w=[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 I(y,i,r){r.negative=i.negative^y.negative;var u=y.length+i.length|0;r.length=u,u=u-1|0;var c=0|y.words[0],C=0|i.words[0],E=c*C,_=E/67108864|0;r.words[0]=67108863&E;for(var n=1;n>>26,B=67108863&_,P=Math.min(n,i.length-1),z=Math.max(0,n-y.length+1);z<=P;z++)v+=(E=(c=0|y.words[n-z|0])*(C=0|i.words[z])+B)/67108864|0,B=67108863&E;r.words[n]=0|B,_=0|v}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,C=0,E=0;E>>24-c&16777215)||E!==this.length-1?A[6-_.length]+_+u:_+u,(c+=2)>=26&&(c-=26,E--)}for(0!==C&&(u=C.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=D[i],v=w[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var P=B.modn(v).toString(i);u=(B=B.idivn(v)).isZero()?P+u:A[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==b),this.toArrayLike(b,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),C=u||Math.max(1,c);f(c<=C,"byte array longer than desired length"),f(C>0,"Requested array length <= 0"),this.strip();var _,n,E="le"===r,O=new i(C),v=this.clone();if(E){for(n=0;!v.isZero();n++)_=v.andln(255),v.iushrn(8),O[n]=_;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},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 i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var C=0,E=0;E>>26;for(;0!==C&&E>>26;if(this.length=u.length,0!==C)this.words[this.length]=C,this.length++;else if(u!==this)for(;Ei.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,C,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,C=i):(c=i,C=this);for(var E=0,O=0;O>26,this.words[O]=67108863&r;for(;0!==E&&O>26,this.words[O]=67108863&r;if(0===E&&O>>13,se=0|c[1],fe=8191&se,xe=se>>>13,Re=0|c[2],we=8191&Re,Q=Re>>>13,Ge=0|c[3],ve=8191&Ge,F=Ge>>>13,Ae=0|c[4],lt=8191&Ae,Ie=Ae>>>13,De=0|c[5],oe=8191&De,Te=De>>>13,ye=0|c[6],W=8191&ye,$=ye>>>13,ue=0|c[7],Ce=8191&ue,Le=ue>>>13,ct=0|c[8],ut=8191&ct,Dt=ct>>>13,di=0|c[9],Yt=8191&di,Gt=di>>>13,ui=0|C[0],xt=8191&ui,Nt=ui>>>13,gt=0|C[1],et=8191>,vt=gt>>>13,$t=0|C[2],jt=8191&$t,Pe=$t>>>13,Oe=0|C[3],le=8191&Oe,be=Oe>>>13,ht=0|C[4],ft=8191&ht,Ht=ht>>>13,it=0|C[5],Ne=8191&it,tt=it>>>13,Je=0|C[6],Se=8191&Je,Ue=Je>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,gi=0|C[8],Qt=8191&gi,Jt=gi>>>13,Xi=0|C[9],fi=8191&Xi,ai=Xi>>>13;u.negative=i.negative^r.negative,u.length=19;var tn=(O+(_=Math.imul(P,xt))|0)+((8191&(n=(n=Math.imul(P,Nt))+Math.imul(z,xt)|0))<<13)|0;O=((v=Math.imul(z,Nt))+(n>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul(fe,xt),n=(n=Math.imul(fe,Nt))+Math.imul(xe,xt)|0,v=Math.imul(xe,Nt);var Wi=(O+(_=_+Math.imul(P,et)|0)|0)+((8191&(n=(n=n+Math.imul(P,vt)|0)+Math.imul(z,et)|0))<<13)|0;O=((v=v+Math.imul(z,vt)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(we,xt),n=(n=Math.imul(we,Nt))+Math.imul(Q,xt)|0,v=Math.imul(Q,Nt),_=_+Math.imul(fe,et)|0,n=(n=n+Math.imul(fe,vt)|0)+Math.imul(xe,et)|0,v=v+Math.imul(xe,vt)|0;var Gi=(O+(_=_+Math.imul(P,jt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Pe)|0)+Math.imul(z,jt)|0))<<13)|0;O=((v=v+Math.imul(z,Pe)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ve,xt),n=(n=Math.imul(ve,Nt))+Math.imul(F,xt)|0,v=Math.imul(F,Nt),_=_+Math.imul(we,et)|0,n=(n=n+Math.imul(we,vt)|0)+Math.imul(Q,et)|0,v=v+Math.imul(Q,vt)|0,_=_+Math.imul(fe,jt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(xe,jt)|0,v=v+Math.imul(xe,Pe)|0;var Yi=(O+(_=_+Math.imul(P,le)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(z,le)|0))<<13)|0;O=((v=v+Math.imul(z,be)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,_=Math.imul(lt,xt),n=(n=Math.imul(lt,Nt))+Math.imul(Ie,xt)|0,v=Math.imul(Ie,Nt),_=_+Math.imul(ve,et)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(F,et)|0,v=v+Math.imul(F,vt)|0,_=_+Math.imul(we,jt)|0,n=(n=n+Math.imul(we,Pe)|0)+Math.imul(Q,jt)|0,v=v+Math.imul(Q,Pe)|0,_=_+Math.imul(fe,le)|0,n=(n=n+Math.imul(fe,be)|0)+Math.imul(xe,le)|0,v=v+Math.imul(xe,be)|0;var ze=(O+(_=_+Math.imul(P,ft)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ht)|0)+Math.imul(z,ft)|0))<<13)|0;O=((v=v+Math.imul(z,Ht)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,_=Math.imul(oe,xt),n=(n=Math.imul(oe,Nt))+Math.imul(Te,xt)|0,v=Math.imul(Te,Nt),_=_+Math.imul(lt,et)|0,n=(n=n+Math.imul(lt,vt)|0)+Math.imul(Ie,et)|0,v=v+Math.imul(Ie,vt)|0,_=_+Math.imul(ve,jt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(F,jt)|0,v=v+Math.imul(F,Pe)|0,_=_+Math.imul(we,le)|0,n=(n=n+Math.imul(we,be)|0)+Math.imul(Q,le)|0,v=v+Math.imul(Q,be)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(xe,ft)|0,v=v+Math.imul(xe,Ht)|0;var Lt=(O+(_=_+Math.imul(P,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(P,tt)|0)+Math.imul(z,Ne)|0))<<13)|0;O=((v=v+Math.imul(z,tt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(W,xt),n=(n=Math.imul(W,Nt))+Math.imul($,xt)|0,v=Math.imul($,Nt),_=_+Math.imul(oe,et)|0,n=(n=n+Math.imul(oe,vt)|0)+Math.imul(Te,et)|0,v=v+Math.imul(Te,vt)|0,_=_+Math.imul(lt,jt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(Ie,jt)|0,v=v+Math.imul(Ie,Pe)|0,_=_+Math.imul(ve,le)|0,n=(n=n+Math.imul(ve,be)|0)+Math.imul(F,le)|0,v=v+Math.imul(F,be)|0,_=_+Math.imul(we,ft)|0,n=(n=n+Math.imul(we,Ht)|0)+Math.imul(Q,ft)|0,v=v+Math.imul(Q,Ht)|0,_=_+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,tt)|0)+Math.imul(xe,Ne)|0,v=v+Math.imul(xe,tt)|0;var pe=(O+(_=_+Math.imul(P,Se)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ue)|0)+Math.imul(z,Se)|0))<<13)|0;O=((v=v+Math.imul(z,Ue)|0)+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,_=Math.imul(Ce,xt),n=(n=Math.imul(Ce,Nt))+Math.imul(Le,xt)|0,v=Math.imul(Le,Nt),_=_+Math.imul(W,et)|0,n=(n=n+Math.imul(W,vt)|0)+Math.imul($,et)|0,v=v+Math.imul($,vt)|0,_=_+Math.imul(oe,jt)|0,n=(n=n+Math.imul(oe,Pe)|0)+Math.imul(Te,jt)|0,v=v+Math.imul(Te,Pe)|0,_=_+Math.imul(lt,le)|0,n=(n=n+Math.imul(lt,be)|0)+Math.imul(Ie,le)|0,v=v+Math.imul(Ie,be)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Ht)|0)+Math.imul(F,ft)|0,v=v+Math.imul(F,Ht)|0,_=_+Math.imul(we,Ne)|0,n=(n=n+Math.imul(we,tt)|0)+Math.imul(Q,Ne)|0,v=v+Math.imul(Q,tt)|0,_=_+Math.imul(fe,Se)|0,n=(n=n+Math.imul(fe,Ue)|0)+Math.imul(xe,Se)|0,v=v+Math.imul(xe,Ue)|0;var je=(O+(_=_+Math.imul(P,at)|0)|0)+((8191&(n=(n=n+Math.imul(P,yt)|0)+Math.imul(z,at)|0))<<13)|0;O=((v=v+Math.imul(z,yt)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,_=Math.imul(ut,xt),n=(n=Math.imul(ut,Nt))+Math.imul(Dt,xt)|0,v=Math.imul(Dt,Nt),_=_+Math.imul(Ce,et)|0,n=(n=n+Math.imul(Ce,vt)|0)+Math.imul(Le,et)|0,v=v+Math.imul(Le,vt)|0,_=_+Math.imul(W,jt)|0,n=(n=n+Math.imul(W,Pe)|0)+Math.imul($,jt)|0,v=v+Math.imul($,Pe)|0,_=_+Math.imul(oe,le)|0,n=(n=n+Math.imul(oe,be)|0)+Math.imul(Te,le)|0,v=v+Math.imul(Te,be)|0,_=_+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Ht)|0)+Math.imul(Ie,ft)|0,v=v+Math.imul(Ie,Ht)|0,_=_+Math.imul(ve,Ne)|0,n=(n=n+Math.imul(ve,tt)|0)+Math.imul(F,Ne)|0,v=v+Math.imul(F,tt)|0,_=_+Math.imul(we,Se)|0,n=(n=n+Math.imul(we,Ue)|0)+Math.imul(Q,Se)|0,v=v+Math.imul(Q,Ue)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(xe,at)|0,v=v+Math.imul(xe,yt)|0;var Ct=(O+(_=_+Math.imul(P,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Jt)|0)+Math.imul(z,Qt)|0))<<13)|0;O=((v=v+Math.imul(z,Jt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,_=Math.imul(Yt,xt),n=(n=Math.imul(Yt,Nt))+Math.imul(Gt,xt)|0,v=Math.imul(Gt,Nt),_=_+Math.imul(ut,et)|0,n=(n=n+Math.imul(ut,vt)|0)+Math.imul(Dt,et)|0,v=v+Math.imul(Dt,vt)|0,_=_+Math.imul(Ce,jt)|0,n=(n=n+Math.imul(Ce,Pe)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,Pe)|0,_=_+Math.imul(W,le)|0,n=(n=n+Math.imul(W,be)|0)+Math.imul($,le)|0,v=v+Math.imul($,be)|0,_=_+Math.imul(oe,ft)|0,n=(n=n+Math.imul(oe,Ht)|0)+Math.imul(Te,ft)|0,v=v+Math.imul(Te,Ht)|0,_=_+Math.imul(lt,Ne)|0,n=(n=n+Math.imul(lt,tt)|0)+Math.imul(Ie,Ne)|0,v=v+Math.imul(Ie,tt)|0,_=_+Math.imul(ve,Se)|0,n=(n=n+Math.imul(ve,Ue)|0)+Math.imul(F,Se)|0,v=v+Math.imul(F,Ue)|0,_=_+Math.imul(we,at)|0,n=(n=n+Math.imul(we,yt)|0)+Math.imul(Q,at)|0,v=v+Math.imul(Q,yt)|0,_=_+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(xe,Qt)|0,v=v+Math.imul(xe,Jt)|0;var ie=(O+(_=_+Math.imul(P,fi)|0)|0)+((8191&(n=(n=n+Math.imul(P,ai)|0)+Math.imul(z,fi)|0))<<13)|0;O=((v=v+Math.imul(z,ai)|0)+(n>>>13)|0)+(ie>>>26)|0,ie&=67108863,_=Math.imul(Yt,et),n=(n=Math.imul(Yt,vt))+Math.imul(Gt,et)|0,v=Math.imul(Gt,vt),_=_+Math.imul(ut,jt)|0,n=(n=n+Math.imul(ut,Pe)|0)+Math.imul(Dt,jt)|0,v=v+Math.imul(Dt,Pe)|0,_=_+Math.imul(Ce,le)|0,n=(n=n+Math.imul(Ce,be)|0)+Math.imul(Le,le)|0,v=v+Math.imul(Le,be)|0,_=_+Math.imul(W,ft)|0,n=(n=n+Math.imul(W,Ht)|0)+Math.imul($,ft)|0,v=v+Math.imul($,Ht)|0,_=_+Math.imul(oe,Ne)|0,n=(n=n+Math.imul(oe,tt)|0)+Math.imul(Te,Ne)|0,v=v+Math.imul(Te,tt)|0,_=_+Math.imul(lt,Se)|0,n=(n=n+Math.imul(lt,Ue)|0)+Math.imul(Ie,Se)|0,v=v+Math.imul(Ie,Ue)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(F,at)|0,v=v+Math.imul(F,yt)|0,_=_+Math.imul(we,Qt)|0,n=(n=n+Math.imul(we,Jt)|0)+Math.imul(Q,Qt)|0,v=v+Math.imul(Q,Jt)|0;var qe=(O+(_=_+Math.imul(fe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(xe,fi)|0))<<13)|0;O=((v=v+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,_=Math.imul(Yt,jt),n=(n=Math.imul(Yt,Pe))+Math.imul(Gt,jt)|0,v=Math.imul(Gt,Pe),_=_+Math.imul(ut,le)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Dt,le)|0,v=v+Math.imul(Dt,be)|0,_=_+Math.imul(Ce,ft)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(Le,ft)|0,v=v+Math.imul(Le,Ht)|0,_=_+Math.imul(W,Ne)|0,n=(n=n+Math.imul(W,tt)|0)+Math.imul($,Ne)|0,v=v+Math.imul($,tt)|0,_=_+Math.imul(oe,Se)|0,n=(n=n+Math.imul(oe,Ue)|0)+Math.imul(Te,Se)|0,v=v+Math.imul(Te,Ue)|0,_=_+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(Ie,at)|0,v=v+Math.imul(Ie,yt)|0,_=_+Math.imul(ve,Qt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(F,Qt)|0,v=v+Math.imul(F,Jt)|0;var Mt=(O+(_=_+Math.imul(we,fi)|0)|0)+((8191&(n=(n=n+Math.imul(we,ai)|0)+Math.imul(Q,fi)|0))<<13)|0;O=((v=v+Math.imul(Q,ai)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,_=Math.imul(Yt,le),n=(n=Math.imul(Yt,be))+Math.imul(Gt,le)|0,v=Math.imul(Gt,be),_=_+Math.imul(ut,ft)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Dt,ft)|0,v=v+Math.imul(Dt,Ht)|0,_=_+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Le,Ne)|0,v=v+Math.imul(Le,tt)|0,_=_+Math.imul(W,Se)|0,n=(n=n+Math.imul(W,Ue)|0)+Math.imul($,Se)|0,v=v+Math.imul($,Ue)|0,_=_+Math.imul(oe,at)|0,n=(n=n+Math.imul(oe,yt)|0)+Math.imul(Te,at)|0,v=v+Math.imul(Te,yt)|0,_=_+Math.imul(lt,Qt)|0,n=(n=n+Math.imul(lt,Jt)|0)+Math.imul(Ie,Qt)|0,v=v+Math.imul(Ie,Jt)|0;var Vt=(O+(_=_+Math.imul(ve,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ve,ai)|0)+Math.imul(F,fi)|0))<<13)|0;O=((v=v+Math.imul(F,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(Yt,ft),n=(n=Math.imul(Yt,Ht))+Math.imul(Gt,ft)|0,v=Math.imul(Gt,Ht),_=_+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Dt,Ne)|0,v=v+Math.imul(Dt,tt)|0,_=_+Math.imul(Ce,Se)|0,n=(n=n+Math.imul(Ce,Ue)|0)+Math.imul(Le,Se)|0,v=v+Math.imul(Le,Ue)|0,_=_+Math.imul(W,at)|0,n=(n=n+Math.imul(W,yt)|0)+Math.imul($,at)|0,v=v+Math.imul($,yt)|0,_=_+Math.imul(oe,Qt)|0,n=(n=n+Math.imul(oe,Jt)|0)+Math.imul(Te,Qt)|0,v=v+Math.imul(Te,Jt)|0;var Mi=(O+(_=_+Math.imul(lt,fi)|0)|0)+((8191&(n=(n=n+Math.imul(lt,ai)|0)+Math.imul(Ie,fi)|0))<<13)|0;O=((v=v+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,_=Math.imul(Yt,Ne),n=(n=Math.imul(Yt,tt))+Math.imul(Gt,Ne)|0,v=Math.imul(Gt,tt),_=_+Math.imul(ut,Se)|0,n=(n=n+Math.imul(ut,Ue)|0)+Math.imul(Dt,Se)|0,v=v+Math.imul(Dt,Ue)|0,_=_+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,yt)|0)+Math.imul(Le,at)|0,v=v+Math.imul(Le,yt)|0,_=_+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Jt)|0)+Math.imul($,Qt)|0,v=v+Math.imul($,Jt)|0;var Ei=(O+(_=_+Math.imul(oe,fi)|0)|0)+((8191&(n=(n=n+Math.imul(oe,ai)|0)+Math.imul(Te,fi)|0))<<13)|0;O=((v=v+Math.imul(Te,ai)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(Yt,Se),n=(n=Math.imul(Yt,Ue))+Math.imul(Gt,Se)|0,v=Math.imul(Gt,Ue),_=_+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,yt)|0)+Math.imul(Dt,at)|0,v=v+Math.imul(Dt,yt)|0,_=_+Math.imul(Ce,Qt)|0,n=(n=n+Math.imul(Ce,Jt)|0)+Math.imul(Le,Qt)|0,v=v+Math.imul(Le,Jt)|0;var en=(O+(_=_+Math.imul(W,fi)|0)|0)+((8191&(n=(n=n+Math.imul(W,ai)|0)+Math.imul($,fi)|0))<<13)|0;O=((v=v+Math.imul($,ai)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(Yt,at),n=(n=Math.imul(Yt,yt))+Math.imul(Gt,at)|0,v=Math.imul(Gt,yt),_=_+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Jt)|0)+Math.imul(Dt,Qt)|0,v=v+Math.imul(Dt,Jt)|0;var ji=(O+(_=_+Math.imul(Ce,fi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(Le,fi)|0))<<13)|0;O=((v=v+Math.imul(Le,ai)|0)+(n>>>13)|0)+(ji>>>26)|0,ji&=67108863,_=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Jt))+Math.imul(Gt,Qt)|0,v=Math.imul(Gt,Jt);var Kt=(O+(_=_+Math.imul(ut,fi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Dt,fi)|0))<<13)|0;O=((v=v+Math.imul(Dt,ai)|0)+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863;var Oi=(O+(_=Math.imul(Yt,fi))|0)+((8191&(n=(n=Math.imul(Yt,ai))+Math.imul(Gt,fi)|0))<<13)|0;return O=((v=Math.imul(Gt,ai))+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,E[0]=tn,E[1]=Wi,E[2]=Gi,E[3]=Yi,E[4]=ze,E[5]=Lt,E[6]=pe,E[7]=je,E[8]=Ct,E[9]=ie,E[10]=qe,E[11]=Mt,E[12]=Vt,E[13]=Mi,E[14]=Ei,E[15]=en,E[16]=ji,E[17]=Kt,E[18]=Oi,0!==O&&(E[19]=O,u.length++),u};function Z(y,i,r){return(new j).mulp(y,i,r)}function j(y,i){this.x=y,this.y=i}Math.imul||(L=I),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?L(this,i,r):c<63?I(this,i,r):c<1024?function U(y,i,r){r.negative=i.negative^y.negative,r.length=y.length+i.length;for(var u=0,c=0,C=0;C>>26)|0)>>>26,E&=67108863}r.words[C]=O,u=E,E=c}return 0!==u?r.words[C]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},j.prototype.permute=function(i,r,u,c,C,E){for(var O=0;O>>=1)C++;return 1<>>=13),C>>>=13;for(E=2*r;E>=26,r+=c/67108864|0,r+=C>>>26,this.words[u]=67108863&C}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(y){for(var i=new Array(y.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var C,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var E=0;for(C=0;C>>26-r}E&&(this.words[C]=E,this.length++)}if(0!==u){for(C=this.length-1;C>=0;C--)this.words[C+u]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=i%26,E=Math.min((i-C)/26,this.length),O=67108863^67108863>>>C<E)for(this.length-=E,n=0;n=0&&(0!==v||n>=c);n--){var B=0|this.words[n];this.words[n]=v<<26-C|B>>>C,v=B&O}return _&&0!==v&&(_.words[_.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,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(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,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+u]=67108863&E}for(;C>26,this.words[C+u]=67108863&E;if(0===O)return this.strip();for(f(-1===O),O=0,C=0;C>26,this.words[C]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),C=i,E=0|C.words[C.length-1];0!=(u=26-this._countBits(E))&&(C=C.ushln(u),c.iushln(u),E=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 v=0;v=0;P--){var z=67108864*(0|c.words[C.length+P])+(0|c.words[C.length+P-1]);for(z=Math.min(z/E|0,67108863),c._ishlnsubmul(C,z,P);0!==c.negative;)z--,c.negative=0,c._ishlnsubmul(C,1,P),c.isZero()||(c.negative^=1);n&&(n.words[P]=z)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(E=this.neg().divmod(i,r),"mod"!==r&&(c=E.div.neg()),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.iadd(i)),{div:c,mod:C}):0===this.negative&&0!==i.negative?(E=this.divmod(i.neg(),r),"mod"!==r&&(c=E.div.neg()),{div:c,mod:E.mod}):0!=(this.negative&i.negative)?(E=this.neg().divmod(i.neg(),r),"div"!==r&&(C=E.mod.neg(),u&&0!==C.negative&&C.isub(i)),{div:E.div,mod:C}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,C,E},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),C=i.andln(1),E=u.cmp(c);return E<0||1===C&&0===E?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=new a(0),O=new a(1),_=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++_;for(var n=u.clone(),v=r.clone();!r.isZero();){for(var B=0,P=1;0==(r.words[0]&P)&&B<26;++B,P<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(v)),c.iushrn(1),C.iushrn(1);for(var z=0,se=1;0==(u.words[0]&se)&&z<26;++z,se<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(E.isOdd()||O.isOdd())&&(E.iadd(n),O.isub(v)),E.iushrn(1),O.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(E),C.isub(O)):(u.isub(r),E.isub(c),O.isub(C))}return{a:E,b:O,gcd:u.iushln(_)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),C=new a(0),E=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var O=0,_=1;0==(r.words[0]&_)&&O<26;++O,_<<=1);if(O>0)for(r.iushrn(O);O-- >0;)c.isOdd()&&c.iadd(E),c.iushrn(1);for(var n=0,v=1;0==(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(E),C.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(C)):(u.isub(r),C.isub(c))}return(B=0===r.cmpn(1)?c:C).cmpn(0)<0&&B.iadd(i),B},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var C=r.cmp(u);if(C<0){var E=r;r=u,u=E}else if(0===C||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[E]=O&=67108863}return 0!==C&&(this.words[E]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],C=0|i.words[u];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new J(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function X(y,i){this.name=y,this.p=new a(i,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 ee(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(y){if("string"==typeof y){var i=a._prime(y);this.m=i.p,this.prime=i}else f(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function ge(y){J.call(this,y),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 i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},X.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(i,r){i.iushrn(this.n,0,r)},X.prototype.imulK=function(i){return i.imul(this.k)},M(de,X),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),C=0;C>>22,E=O}i.words[C-10]=E>>>=22,i.length-=0===E&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=C,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new ee;else if("p192"===i)r=new te;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ce}return ne[i]=r,r},J.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},J.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},J.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},J.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},J.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},J.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},J.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},J.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},J.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},J.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},J.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},J.prototype.isqr=function(i){return this.imul(i,i.clone())},J.prototype.sqr=function(i){return this.mul(i,i)},J.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);f(!c.isZero());var E=new a(1).toRed(this),O=E.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(O);)n.redIAdd(O);for(var v=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),P=this.pow(i,c),z=C;0!==P.cmp(E);){for(var se=P,fe=0;0!==se.cmp(E);fe++)se=se.redSqr();f(fe=0;C--){for(var v=r.words[C],B=n-1;B>=0;B--){var P=v>>B&1;E!==c[0]&&(E=this.sqr(E)),0!==P||0!==O?(O<<=1,O|=P,(4==++_||0===C&&0===B)&&(E=this.mul(E,c[O]),_=0,O=0)):_=0}n=26}return E},J.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},J.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new ge(i)},M(ge,J),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=u.isub(c).iushrn(this.shift),E=C;return C.cmp(this.m)>=0?E=C.isub(this.m):C.cmpn(0)<0&&(E=C.iadd(this.m)),E._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Fe=p.nmd(Fe),this)},6705:(Fe,Y,p)=>{var t=p(2772),e=p(6945),f=p(9401),M=p(2057),a=p(8466),b=p(6386),d=p(8651),N=p(3502).Buffer;Fe.exports=function(S,I,L){var U;U=S.padding?S.padding:L?1:4;var ne,Z=t(S),j=Z.modulus.byteLength();if(I.length>j||new M(I).cmp(Z.modulus)>=0)throw new Error("decryption error");ne=L?d(new M(I),Z):a(I,Z);var X=N.alloc(j-ne.length);if(ne=N.concat([X,ne],j),4===U)return function h(w,S){var I=w.modulus.byteLength(),L=b("sha1").update(N.alloc(0)).digest(),U=L.length;if(0!==S[0])throw new Error("decryption error");var Z=S.slice(1,U+1),j=S.slice(U+1),ne=f(Z,e(j,U)),X=f(j,e(ne,I-U-1));if(function D(w,S){w=N.from(w),S=N.from(S);var I=0,L=w.length;w.length!==S.length&&(I++,L=Math.min(w.length,S.length));for(var U=-1;++U=S.length){Z++;break}var j=S.slice(2,U-1);if(("0002"!==L.toString("hex")&&!I||"0001"!==L.toString("hex")&&I)&&Z++,j.length<8&&Z++,Z)throw new Error("decryption error");return S.slice(U)}(0,ne,L);if(3===U)return ne;throw new Error("unknown padding")}},6562:(Fe,Y,p)=>{var t=p(2772),e=p(3753),f=p(6386),M=p(6945),a=p(9401),b=p(2057),d=p(8651),N=p(8466),h=p(3502).Buffer;Fe.exports=function(I,L,U){var Z;Z=I.padding?I.padding:U?1:4;var ne,j=t(I);if(4===Z)ne=function A(S,I){var L=S.modulus.byteLength(),U=I.length,Z=f("sha1").update(h.alloc(0)).digest(),j=Z.length,ne=2*j;if(U>L-ne-2)throw new Error("message too long");var X=h.alloc(L-U-ne-2),de=L-j-1,ee=e(j),te=a(h.concat([Z,X,h.alloc(1,1),I],de),M(ee,de)),ce=a(ee,M(te,j));return new b(h.concat([h.alloc(1),ce,te],L))}(j,L);else if(1===Z)ne=function D(S,I,L){var j,U=I.length,Z=S.modulus.byteLength();if(U>Z-11)throw new Error("message too long");return j=L?h.alloc(Z-U-3,255):function w(S){for(var j,I=h.allocUnsafe(S),L=0,U=e(2*S),Z=0;L=0)throw new Error("data too long for modulus")}return U?N(ne,j):d(ne,j)}},8651:(Fe,Y,p)=>{var t=p(2057),e=p(3502).Buffer;Fe.exports=function f(M,a){return e.from(M.toRed(t.mont(a.modulus)).redPow(new t(a.publicExponent)).fromRed().toArray())}},9401:Fe=>{Fe.exports=function(p,t){for(var e=p.length,f=-1;++f{const t=p(8695),e=p(1465),f=p(3210),M=p(2334);function a(b,d,N,h,A){const D=[].slice.call(arguments,1),w=D.length,S="function"==typeof D[w-1];if(!S&&!t())throw new Error("Callback required as last argument");if(!S){if(w<1)throw new Error("Too few arguments provided");return 1===w?(N=d,d=h=void 0):2===w&&!d.getContext&&(h=N,N=d,d=void 0),new Promise(function(I,L){try{const U=e.create(N,h);I(b(U,d,h))}catch(U){L(U)}})}if(w<2)throw new Error("Too few arguments provided");2===w?(A=N,N=d,d=h=void 0):3===w&&(d.getContext&&void 0===A?(A=h,h=void 0):(A=h,h=N,N=d,d=void 0));try{const I=e.create(N,h);A(null,b(I,d,h))}catch(I){A(I)}}Y.create=e.create,Y.toCanvas=a.bind(null,f.render),Y.toDataURL=a.bind(null,f.renderToDataURL),Y.toString=a.bind(null,function(b,d,N){return M.render(b,N)})},8695:Fe=>{Fe.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Fe,Y,p)=>{const t=p(4792).getSymbolSize;Y.getRowColCoords=function(f){if(1===f)return[];const M=Math.floor(f/7)+2,a=t(f),b=145===a?26:2*Math.ceil((a-13)/(2*M-2)),d=[a-7];for(let N=1;N{const t=p(4016),e=["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 f(M){this.mode=t.ALPHANUMERIC,this.data=M}f.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(a){let b;for(b=0;b+2<=this.data.length;b+=2){let d=45*e.indexOf(this.data[b]);d+=e.indexOf(this.data[b+1]),a.put(d,11)}this.data.length%2&&a.put(e.indexOf(this.data[b]),6)},Fe.exports=f},2118:Fe=>{function Y(){this.buffer=[],this.length=0}Y.prototype={get:function(p){const t=Math.floor(p/8);return 1==(this.buffer[t]>>>7-p%8&1)},put:function(p,t){for(let e=0;e>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),p&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Fe.exports=Y},4425:Fe=>{function Y(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)}Y.prototype.set=function(p,t,e,f){const M=p*this.size+t;this.data[M]=e,f&&(this.reservedBit[M]=!0)},Y.prototype.get=function(p,t){return this.data[p*this.size+t]},Y.prototype.xor=function(p,t,e){this.data[p*this.size+t]^=e},Y.prototype.isReserved=function(p,t){return this.reservedBit[p*this.size+t]},Fe.exports=Y},5663:(Fe,Y,p)=>{const t=p(8419),e=p(4016);function f(M){this.mode=e.BYTE,"string"==typeof M&&(M=t(M)),this.data=new Uint8Array(M)}f.getBitsLength=function(a){return 8*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){for(let a=0,b=this.data.length;a{const t=p(2259),e=[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],f=[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];Y.getBlocksCount=function(a,b){switch(b){case t.L:return e[4*(a-1)+0];case t.M:return e[4*(a-1)+1];case t.Q:return e[4*(a-1)+2];case t.H:return e[4*(a-1)+3];default:return}},Y.getTotalCodewordsCount=function(a,b){switch(b){case t.L:return f[4*(a-1)+0];case t.M:return f[4*(a-1)+1];case t.Q:return f[4*(a-1)+2];case t.H:return f[4*(a-1)+3];default:return}}},2259:(Fe,Y)=>{Y.L={bit:1},Y.M={bit:0},Y.Q={bit:3},Y.H={bit:2},Y.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},Y.from=function(e,f){if(Y.isValid(e))return e;try{return function p(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Y.L;case"m":case"medium":return Y.M;case"q":case"quartile":return Y.Q;case"h":case"high":return Y.H;default:throw new Error("Unknown EC Level: "+t)}}(e)}catch(M){return f}}},3114:(Fe,Y,p)=>{const t=p(4792).getSymbolSize;Y.getPositions=function(M){const a=t(M);return[[0,0],[a-7,0],[0,a-7]]}},7078:(Fe,Y,p)=>{const t=p(4792),M=t.getBCHDigit(1335);Y.getEncodedBits=function(b,d){const N=b.bit<<3|d;let h=N<<10;for(;t.getBCHDigit(h)-M>=0;)h^=1335<{const p=new Uint8Array(512),t=new Uint8Array(256);(function(){let f=1;for(let M=0;M<255;M++)p[M]=f,t[f]=M,f<<=1,256&f&&(f^=285);for(let M=255;M<512;M++)p[M]=p[M-255]})(),Y.log=function(f){if(f<1)throw new Error("log("+f+")");return t[f]},Y.exp=function(f){return p[f]},Y.mul=function(f,M){return 0===f||0===M?0:p[t[f]+t[M]]}},4388:(Fe,Y,p)=>{const t=p(4016),e=p(4792);function f(M){this.mode=t.KANJI,this.data=M}f.getBitsLength=function(a){return 13*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){let a;for(a=0;a=33088&&b<=40956)b-=33088;else{if(!(b>=57408&&b<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");b-=49472}b=192*(b>>>8&255)+(255&b),M.put(b,13)}},Fe.exports=f},3667:(Fe,Y)=>{Y.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,f,M){switch(e){case Y.Patterns.PATTERN000:return(f+M)%2==0;case Y.Patterns.PATTERN001:return f%2==0;case Y.Patterns.PATTERN010:return M%3==0;case Y.Patterns.PATTERN011:return(f+M)%3==0;case Y.Patterns.PATTERN100:return(Math.floor(f/2)+Math.floor(M/3))%2==0;case Y.Patterns.PATTERN101:return f*M%2+f*M%3==0;case Y.Patterns.PATTERN110:return(f*M%2+f*M%3)%2==0;case Y.Patterns.PATTERN111:return(f*M%3+(f+M)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}Y.isValid=function(f){return null!=f&&""!==f&&!isNaN(f)&&f>=0&&f<=7},Y.from=function(f){return Y.isValid(f)?parseInt(f,10):void 0},Y.getPenaltyN1=function(f){const M=f.size;let a=0,b=0,d=0,N=null,h=null;for(let A=0;A=5&&(a+=b-5+3),N=w,b=1),w=f.get(D,A),w===h?d++:(d>=5&&(a+=d-5+3),h=w,d=1)}b>=5&&(a+=b-5+3),d>=5&&(a+=d-5+3)}return a},Y.getPenaltyN2=function(f){const M=f.size;let a=0;for(let b=0;b=10&&(1488===b||93===b)&&a++,d=d<<1&2047|f.get(h,N),h>=10&&(1488===d||93===d)&&a++}return 40*a},Y.getPenaltyN4=function(f){let M=0;const a=f.data.length;for(let d=0;d{const t=p(4406),e=p(2699);Y.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Y.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Y.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Y.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Y.MIXED={bit:-1},Y.getCharCountIndicator=function(a,b){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(b))throw new Error("Invalid version: "+b);return b>=1&&b<10?a.ccBits[0]:b<27?a.ccBits[1]:a.ccBits[2]},Y.getBestModeForData=function(a){return e.testNumeric(a)?Y.NUMERIC:e.testAlphanumeric(a)?Y.ALPHANUMERIC:e.testKanji(a)?Y.KANJI:Y.BYTE},Y.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},Y.isValid=function(a){return a&&a.bit&&a.ccBits},Y.from=function(a,b){if(Y.isValid(a))return a;try{return function f(M){if("string"!=typeof M)throw new Error("Param is not a string");switch(M.toLowerCase()){case"numeric":return Y.NUMERIC;case"alphanumeric":return Y.ALPHANUMERIC;case"kanji":return Y.KANJI;case"byte":return Y.BYTE;default:throw new Error("Unknown mode: "+M)}}(a)}catch(d){return b}}},7783:(Fe,Y,p)=>{const t=p(4016);function e(f){this.mode=t.NUMERIC,this.data=f.toString()}e.getBitsLength=function(M){return 10*Math.floor(M/3)+(M%3?M%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(M){let a,b,d;for(a=0;a+3<=this.data.length;a+=3)b=this.data.substr(a,3),d=parseInt(b,10),M.put(d,10);const N=this.data.length-a;N>0&&(b=this.data.substr(a),d=parseInt(b,10),M.put(d,3*N+1))},Fe.exports=e},1106:(Fe,Y,p)=>{const t=p(5339);Y.mul=function(f,M){const a=new Uint8Array(f.length+M.length-1);for(let b=0;b=0;){const b=a[0];for(let N=0;N{const t=p(4792),e=p(2259),f=p(2118),M=p(4425),a=p(6221),b=p(3114),d=p(3667),N=p(4655),h=p(2636),A=p(2088),D=p(7078),w=p(4016),S=p(2033);function j(te,ce,J){const ge=te.size,y=D.getEncodedBits(ce,J);let i,r;for(i=0;i<15;i++)r=1==(y>>i&1),te.set(i<6?i:i<8?i+1:ge-15+i,8,r,!0),te.set(8,i<8?ge-i-1:i<9?15-i-1+1:15-i-1,r,!0);te.set(ge-8,8,1,!0)}function ee(te,ce,J,ge){let y;if(Array.isArray(te))y=S.fromArray(te);else{if("string"!=typeof te)throw new Error("Invalid data");{let C=ce;if(!C){const E=S.rawSplit(te);C=A.getBestVersionForData(E,J)}y=S.fromString(te,C||40)}}const i=A.getBestVersionForData(y,J);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(ce){if(ce=0&&u<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===u||6===u)||u>=2&&u<=4&&c>=2&&c<=4,!0)}}(c,ce),function L(te){const ce=te.size;for(let J=8;J=7&&function Z(te,ce){const J=te.size,ge=A.getEncodedBits(ce);let y,i,r;for(let u=0;u<18;u++)y=Math.floor(u/3),i=u%3+J-8-3,r=1==(ge>>u&1),te.set(y,i,r,!0),te.set(i,y,r,!0)}(c,ce),function ne(te,ce){const J=te.size;let ge=-1,y=J-1,i=7,r=0;for(let u=J-1;u>0;u-=2)for(6===u&&u--;;){for(let c=0;c<2;c++)if(!te.isReserved(y,u-c)){let C=!1;r>>i&1)),te.set(y,u-c,C),i--,-1===i&&(r++,i=7)}if(y+=ge,y<0||J<=y){y-=ge,ge=-ge;break}}}(c,r),isNaN(ge)&&(ge=d.getBestMask(c,j.bind(null,c,J))),d.applyMask(ge,c),j(c,J,ge),{modules:c,version:ce,errorCorrectionLevel:J,maskPattern:ge,segments:y}}Y.create=function(ce,J){if(void 0===ce||""===ce)throw new Error("No input text");let y,i,ge=e.M;return void 0!==J&&(ge=e.from(J.errorCorrectionLevel,e.M),y=A.from(J.version),i=d.from(J.maskPattern),J.toSJISFunc&&t.setToSJISFunction(J.toSJISFunc)),ee(ce,y,ge,i)}},2636:(Fe,Y,p)=>{const t=p(1106);function e(f){this.genPoly=void 0,this.degree=f,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(M){this.degree=M,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(M){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(M.length+this.degree);a.set(M);const b=t.mod(a,this.genPoly),d=this.degree-b.length;if(d>0){const N=new Uint8Array(this.degree);return N.set(b,d),N}return b},Fe.exports=e},2699:(Fe,Y)=>{const p="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const f="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Y.KANJI=new RegExp(e,"g"),Y.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Y.BYTE=new RegExp(f,"g"),Y.NUMERIC=new RegExp(p,"g"),Y.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const M=new RegExp("^"+e+"$"),a=new RegExp("^"+p+"$"),b=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Y.testKanji=function(N){return M.test(N)},Y.testNumeric=function(N){return a.test(N)},Y.testAlphanumeric=function(N){return b.test(N)}},2033:(Fe,Y,p)=>{const t=p(4016),e=p(7783),f=p(2424),M=p(5663),a=p(4388),b=p(2699),d=p(4792),N=p(4901);function h(Z){return unescape(encodeURIComponent(Z)).length}function A(Z,j,ne){const X=[];let de;for(;null!==(de=Z.exec(ne));)X.push({data:de[0],index:de.index,mode:j,length:de[0].length});return X}function D(Z){const j=A(b.NUMERIC,t.NUMERIC,Z),ne=A(b.ALPHANUMERIC,t.ALPHANUMERIC,Z);let X,de;return d.isKanjiModeEnabled()?(X=A(b.BYTE,t.BYTE,Z),de=A(b.KANJI,t.KANJI,Z)):(X=A(b.BYTE_KANJI,t.BYTE,Z),de=[]),j.concat(ne,X,de).sort(function(te,ce){return te.index-ce.index}).map(function(te){return{data:te.data,mode:te.mode,length:te.length}})}function w(Z,j){switch(j){case t.NUMERIC:return e.getBitsLength(Z);case t.ALPHANUMERIC:return f.getBitsLength(Z);case t.KANJI:return a.getBitsLength(Z);case t.BYTE:return M.getBitsLength(Z)}}function U(Z,j){let ne;const X=t.getBestModeForData(Z);if(ne=t.from(j,X),ne!==t.BYTE&&ne.bit=0?j[j.length-1]:null;return X&&X.mode===ne.mode?(j[j.length-1].data+=ne.data,j):(j.push(ne),j)},[])}(ce))},Y.rawSplit=function(j){return Y.fromArray(D(j,d.isKanjiModeEnabled()))}},4792:(Fe,Y)=>{let p;const t=[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];Y.getSymbolSize=function(f){if(!f)throw new Error('"version" cannot be null or undefined');if(f<1||f>40)throw new Error('"version" should be in range from 1 to 40');return 4*f+17},Y.getSymbolTotalCodewords=function(f){return t[f]},Y.getBCHDigit=function(e){let f=0;for(;0!==e;)f++,e>>>=1;return f},Y.setToSJISFunction=function(f){if("function"!=typeof f)throw new Error('"toSJISFunc" is not a valid function.');p=f},Y.isKanjiModeEnabled=function(){return void 0!==p},Y.toSJIS=function(f){return p(f)}},4406:(Fe,Y)=>{Y.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(Fe,Y,p)=>{const t=p(4792),e=p(4655),f=p(2259),M=p(4016),a=p(4406),d=t.getBCHDigit(7973);function h(w,S){return M.getCharCountIndicator(w,S)+4}function A(w,S){let I=0;return w.forEach(function(L){I+=h(L.mode,S)+L.getBitsLength()}),I}Y.from=function(S,I){return a.isValid(S)?parseInt(S,10):I},Y.getCapacity=function(S,I,L){if(!a.isValid(S))throw new Error("Invalid QR Code version");void 0===L&&(L=M.BYTE);const j=8*(t.getSymbolTotalCodewords(S)-e.getTotalCodewordsCount(S,I));if(L===M.MIXED)return j;const ne=j-h(L,S);switch(L){case M.NUMERIC:return Math.floor(ne/10*3);case M.ALPHANUMERIC:return Math.floor(ne/11*2);case M.KANJI:return Math.floor(ne/13);default:return Math.floor(ne/8)}},Y.getBestVersionForData=function(S,I){let L;const U=f.from(I,f.M);if(Array.isArray(S)){if(S.length>1)return function D(w,S){for(let I=1;I<=40;I++)if(A(w,I)<=Y.getCapacity(I,S,M.MIXED))return I}(S,U);if(0===S.length)return 1;L=S[0]}else L=S;return function N(w,S,I){for(let L=1;L<=40;L++)if(S<=Y.getCapacity(L,I,w))return L}(L.mode,L.getLength(),U)},Y.getEncodedBits=function(S){if(!a.isValid(S)||S<7)throw new Error("Invalid QR Code version");let I=S<<12;for(;t.getBCHDigit(I)-d>=0;)I^=7973<{const t=p(6355);Y.render=function(a,b,d){let N=d,h=b;void 0===N&&(!b||!b.getContext)&&(N=b,b=void 0),b||(h=function f(){try{return document.createElement("canvas")}catch(M){throw new Error("You need to specify a canvas element")}}()),N=t.getOptions(N);const A=t.getImageWidth(a.modules.size,N),D=h.getContext("2d"),w=D.createImageData(A,A);return t.qrToImageData(w.data,a,N),function e(M,a,b){M.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=b,a.width=b,a.style.height=b+"px",a.style.width=b+"px"}(D,h,A),D.putImageData(w,0,0),h},Y.renderToDataURL=function(a,b,d){let N=d;return void 0===N&&(!b||!b.getContext)&&(N=b,b=void 0),N||(N={}),Y.render(a,b,N).toDataURL(N.type||"image/png",(N.rendererOpts||{}).quality)}},2334:(Fe,Y,p)=>{const t=p(6355);function e(a,b){const d=a.a/255,N=b+'="'+a.hex+'"';return d<1?N+" "+b+'-opacity="'+d.toFixed(2).slice(1)+'"':N}function f(a,b,d){let N=a+b;return void 0!==d&&(N+=" "+d),N}Y.render=function(b,d,N){const h=t.getOptions(d),A=b.modules.size,D=b.modules.data,w=A+2*h.margin,S=h.color.light.a?"':"",I="0&&S>0&&a[w-1]||(N+=A?f("M",S+d,.5+I+d):f("m",h,0),h=0,A=!1),S+1',Z=''+S+I+"\n";return"function"==typeof N&&N(null,Z),Z}},6355:(Fe,Y)=>{function p(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(M){return[M,M]}))),6===e.length&&e.push("F","F");const f=parseInt(e.join(""),16);return{r:f>>24&255,g:f>>16&255,b:f>>8&255,a:255&f,hex:"#"+e.slice(0,6).join("")}}Y.getOptions=function(e){e||(e={}),e.color||(e.color={});const M=e.width&&e.width>=21?e.width:void 0;return{width:M,scale:M?4:e.scale||4,margin:null==e.margin||e.margin<0?4:e.margin,color:{dark:p(e.color.dark||"#000000ff"),light:p(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},Y.getScale=function(e,f){return f.width&&f.width>=e+2*f.margin?f.width/(e+2*f.margin):f.scale},Y.getImageWidth=function(e,f){const M=Y.getScale(e,f);return Math.floor((e+2*f.margin)*M)},Y.qrToImageData=function(e,f,M){const a=f.modules.size,b=f.modules.data,d=Y.getScale(a,M),N=Math.floor((a+2*M.margin)*d),h=M.margin*d,A=[M.color.light,M.color.dark];for(let D=0;D=h&&w>=h&&D{"use strict";var t=65536,M=p(3502).Buffer,a=global.crypto||global.msCrypto;Fe.exports=a&&a.getRandomValues?function b(d,N){if(d>4294967295)throw new RangeError("requested too many random bytes");var h=M.allocUnsafe(d);if(d>0)if(d>t)for(var A=0;A{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=p(3502),f=p(3753),M=e.Buffer,a=e.kMaxLength,b=global.crypto||global.msCrypto,d=Math.pow(2,32)-1;function N(S,I){if("number"!=typeof S||S!=S)throw new TypeError("offset must be a number");if(S>d||S<0)throw new TypeError("offset must be a uint32");if(S>a||S>I)throw new RangeError("offset out of range")}function h(S,I,L){if("number"!=typeof S||S!=S)throw new TypeError("size must be a number");if(S>d||S<0)throw new TypeError("size must be a uint32");if(S+I>L||S>a)throw new RangeError("buffer too small")}function D(S,I,L,U){if(process.browser){var j=new Uint8Array(S.buffer,I,L);return b.getRandomValues(j),U?void process.nextTick(function(){U(null,S)}):S}if(!U)return f(L).copy(S,I),S;f(L,function(X,de){if(X)return U(X);de.copy(S,I),U(null,S)})}b&&b.getRandomValues||!process.browser?(Y.randomFill=function A(S,I,L,U){if(!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof I)U=I,I=0,L=S.length;else if("function"==typeof L)U=L,L=S.length-I;else if("function"!=typeof U)throw new TypeError('"cb" argument must be a function');return N(I,S.length),h(L,I,S.length),D(S,I,L,U)},Y.randomFillSync=function w(S,I,L){if(void 0===I&&(I=0),!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return N(I,S.length),void 0===L&&(L=S.length-I),h(L,I,S.length),D(S,I,L)}):(Y.randomFill=t,Y.randomFillSync=t)},891:Fe=>{"use strict";var p={};function t(b,d,N){N||(N=Error);var A=function(D){function w(S,I,L){return D.call(this,function h(D,w,S){return"string"==typeof d?d:d(D,w,S)}(S,I,L))||this}return function Y(b,d){b.prototype=Object.create(d.prototype),b.prototype.constructor=b,b.__proto__=d}(w,D),w}(N);A.prototype.name=N.name,A.prototype.code=b,p[b]=A}function e(b,d){if(Array.isArray(b)){var N=b.length;return b=b.map(function(h){return String(h)}),N>2?"one of ".concat(d," ").concat(b.slice(0,N-1).join(", "),", or ")+b[N-1]:2===N?"one of ".concat(d," ").concat(b[0]," or ").concat(b[1]):"of ".concat(d," ").concat(b[0])}return"of ".concat(d," ").concat(String(b))}t("ERR_INVALID_OPT_VALUE",function(b,d){return'The value "'+d+'" is invalid for option "'+b+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(b,d,N){var h,A;if("string"==typeof d&&function f(b,d,N){return b.substr(!N||N<0?0:+N,d.length)===d}(d,"not ")?(h="must not be",d=d.replace(/^not /,"")):h="must be",function M(b,d,N){return(void 0===N||N>b.length)&&(N=b.length),b.substring(N-d.length,N)===d}(b," argument"))A="The ".concat(b," ").concat(h," ").concat(e(d,"type"));else{var D=function a(b,d,N){return"number"!=typeof N&&(N=0),!(N+d.length>b.length)&&-1!==b.indexOf(d,N)}(b,".")?"property":"argument";A='The "'.concat(b,'" ').concat(D," ").concat(h," ").concat(e(d,"type"))}return A+". Received type ".concat(typeof N)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Fe.exports.q=p},1339:(Fe,Y,p)=>{"use strict";var t=Object.keys||function(A){var D=[];for(var w in A)D.push(w);return D};Fe.exports=d;var e=p(3154),f=p(520);p(3894)(d,e);for(var M=t(f.prototype),a=0;a{"use strict";Fe.exports=e;var t=p(6025);function e(f){if(!(this instanceof e))return new e(f);t.call(this,f)}p(3894)(e,t),e.prototype._transform=function(f,M,a){a(null,f)}},3154:(Fe,Y,p)=>{"use strict";var t;Fe.exports=y,y.ReadableState=ge,p(9069);var A,f=function(Ae,lt){return Ae.listeners(lt).length},M=p(4970),a=p(3172).Buffer,b=global.Uint8Array||function(){},h=p(4616);A=h&&h.debuglog?h.debuglog("stream"):function(){};var X,de,ee,D=p(5019),w=p(1920),I=p(7102).getHighWaterMark,L=p(891).q,U=L.ERR_INVALID_ARG_TYPE,Z=L.ERR_STREAM_PUSH_AFTER_EOF,j=L.ERR_METHOD_NOT_IMPLEMENTED,ne=L.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(y,M);var te=w.errorOrDestroy,ce=["error","close","destroy","pause","resume"];function ge(F,Ae,lt){t=t||p(1339),"boolean"!=typeof lt&&(lt=Ae instanceof t),this.objectMode=!!(F=F||{}).objectMode,lt&&(this.objectMode=this.objectMode||!!F.readableObjectMode),this.highWaterMark=I(this,F,"readableHighWaterMark",lt),this.buffer=new D,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!==F.emitClose,this.autoDestroy=!!F.autoDestroy,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(X||(X=p(3054).s),this.decoder=new X(F.encoding),this.encoding=F.encoding)}function y(F){if(t=t||p(1339),!(this instanceof y))return new y(F);this._readableState=new ge(F,this,this instanceof t),this.readable=!0,F&&("function"==typeof F.read&&(this._read=F.read),"function"==typeof F.destroy&&(this._destroy=F.destroy)),M.call(this)}function i(F,Ae,lt,Ie,De){A("readableAddChunk",Ae);var Te,oe=F._readableState;if(null===Ae)oe.reading=!1,function O(F,Ae){if(A("onEofChunk"),!Ae.ended){if(Ae.decoder){var lt=Ae.decoder.end();lt&<.length&&(Ae.buffer.push(lt),Ae.length+=Ae.objectMode?1:lt.length)}Ae.ended=!0,Ae.sync?_(F):(Ae.needReadable=!1,Ae.emittedReadable||(Ae.emittedReadable=!0,n(F)))}}(F,oe);else if(De||(Te=function u(F,Ae){var lt;return!function N(F){return a.isBuffer(F)||F instanceof b}(Ae)&&"string"!=typeof Ae&&void 0!==Ae&&!F.objectMode&&(lt=new U("chunk",["string","Buffer","Uint8Array"],Ae)),lt}(oe,Ae)),Te)te(F,Te);else if(oe.objectMode||Ae&&Ae.length>0)if("string"!=typeof Ae&&!oe.objectMode&&Object.getPrototypeOf(Ae)!==a.prototype&&(Ae=function d(F){return a.from(F)}(Ae)),Ie)oe.endEmitted?te(F,new ne):r(F,oe,Ae,!0);else if(oe.ended)te(F,new Z);else{if(oe.destroyed)return!1;oe.reading=!1,oe.decoder&&!lt?(Ae=oe.decoder.write(Ae),oe.objectMode||0!==Ae.length?r(F,oe,Ae,!1):v(F,oe)):r(F,oe,Ae,!1)}else Ie||(oe.reading=!1,v(F,oe));return!oe.ended&&(oe.lengthAe.highWaterMark&&(Ae.highWaterMark=function C(F){return F>=c?F=c:(F--,F|=F>>>1,F|=F>>>2,F|=F>>>4,F|=F>>>8,F|=F>>>16,F++),F}(F)),F<=Ae.length?F:Ae.ended?Ae.length:(Ae.needReadable=!0,0))}function _(F){var Ae=F._readableState;A("emitReadable",Ae.needReadable,Ae.emittedReadable),Ae.needReadable=!1,Ae.emittedReadable||(A("emitReadable",Ae.flowing),Ae.emittedReadable=!0,process.nextTick(n,F))}function n(F){var Ae=F._readableState;A("emitReadable_",Ae.destroyed,Ae.length,Ae.ended),!Ae.destroyed&&(Ae.length||Ae.ended)&&(F.emit("readable"),Ae.emittedReadable=!1),Ae.needReadable=!Ae.flowing&&!Ae.ended&&Ae.length<=Ae.highWaterMark,Re(F)}function v(F,Ae){Ae.readingMore||(Ae.readingMore=!0,process.nextTick(B,F,Ae))}function B(F,Ae){for(;!Ae.reading&&!Ae.ended&&(Ae.length0,Ae.resumeScheduled&&!Ae.paused?Ae.flowing=!0:F.listenerCount("data")>0&&F.resume()}function se(F){A("readable nexttick read 0"),F.read(0)}function xe(F,Ae){A("resume",Ae.reading),Ae.reading||F.read(0),Ae.resumeScheduled=!1,F.emit("resume"),Re(F),Ae.flowing&&!Ae.reading&&F.read(0)}function Re(F){var Ae=F._readableState;for(A("flow",Ae.flowing);Ae.flowing&&null!==F.read(););}function we(F,Ae){return 0===Ae.length?null:(Ae.objectMode?lt=Ae.buffer.shift():!F||F>=Ae.length?(lt=Ae.decoder?Ae.buffer.join(""):1===Ae.buffer.length?Ae.buffer.first():Ae.buffer.concat(Ae.length),Ae.buffer.clear()):lt=Ae.buffer.consume(F,Ae.decoder),lt);var lt}function Q(F){var Ae=F._readableState;A("endReadable",Ae.endEmitted),Ae.endEmitted||(Ae.ended=!0,process.nextTick(Ge,Ae,F))}function Ge(F,Ae){if(A("endReadableNT",F.endEmitted,F.length),!F.endEmitted&&0===F.length&&(F.endEmitted=!0,Ae.readable=!1,Ae.emit("end"),F.autoDestroy)){var lt=Ae._writableState;(!lt||lt.autoDestroy&<.finished)&&Ae.destroy()}}function ve(F,Ae){for(var lt=0,Ie=F.length;lt=Ae.highWaterMark:Ae.length>0)||Ae.ended))return A("read: emitReadable",Ae.length,Ae.ended),0===Ae.length&&Ae.ended?Q(this):_(this),null;if(0===(F=E(F,Ae))&&Ae.ended)return 0===Ae.length&&Q(this),null;var De,Ie=Ae.needReadable;return A("need readable",Ie),(0===Ae.length||Ae.length-F0?we(F,Ae):null)?(Ae.needReadable=Ae.length<=Ae.highWaterMark,F=0):(Ae.length-=F,Ae.awaitDrain=0),0===Ae.length&&(Ae.ended||(Ae.needReadable=!0),lt!==F&&Ae.ended&&Q(this)),null!==De&&this.emit("data",De),De},y.prototype._read=function(F){te(this,new j("_read()"))},y.prototype.pipe=function(F,Ae){var lt=this,Ie=this._readableState;switch(Ie.pipesCount){case 0:Ie.pipes=F;break;case 1:Ie.pipes=[Ie.pipes,F];break;default:Ie.pipes.push(F)}Ie.pipesCount+=1,A("pipe count=%d opts=%j",Ie.pipesCount,Ae);var oe=Ae&&!1===Ae.end||F===process.stdout||F===process.stderr?Dt:ye;function ye(){A("onend"),F.end()}Ie.endEmitted?process.nextTick(oe):lt.once("end",oe),F.on("unpipe",function Te(di,Yt){A("onunpipe"),di===lt&&Yt&&!1===Yt.hasUnpiped&&(Yt.hasUnpiped=!0,function ue(){A("cleanup"),F.removeListener("close",ct),F.removeListener("finish",ut),F.removeListener("drain",W),F.removeListener("error",Le),F.removeListener("unpipe",Te),lt.removeListener("end",ye),lt.removeListener("end",Dt),lt.removeListener("data",Ce),$=!0,Ie.awaitDrain&&(!F._writableState||F._writableState.needDrain)&&W()}())});var W=function P(F){return function(){var lt=F._readableState;A("pipeOnDrain",lt.awaitDrain),lt.awaitDrain&<.awaitDrain--,0===lt.awaitDrain&&f(F,"data")&&(lt.flowing=!0,Re(F))}}(lt);F.on("drain",W);var $=!1;function Ce(di){A("ondata");var Yt=F.write(di);A("dest.write",Yt),!1===Yt&&((1===Ie.pipesCount&&Ie.pipes===F||Ie.pipesCount>1&&-1!==ve(Ie.pipes,F))&&!$&&(A("false write response, pause",Ie.awaitDrain),Ie.awaitDrain++),lt.pause())}function Le(di){A("onerror",di),Dt(),F.removeListener("error",Le),0===f(F,"error")&&te(F,di)}function ct(){F.removeListener("finish",ut),Dt()}function ut(){A("onfinish"),F.removeListener("close",ct),Dt()}function Dt(){A("unpipe"),lt.unpipe(F)}return lt.on("data",Ce),function J(F,Ae,lt){if("function"==typeof F.prependListener)return F.prependListener(Ae,lt);F._events&&F._events[Ae]?Array.isArray(F._events[Ae])?F._events[Ae].unshift(lt):F._events[Ae]=[lt,F._events[Ae]]:F.on(Ae,lt)}(F,"error",Le),F.once("close",ct),F.once("finish",ut),F.emit("pipe",lt),Ie.flowing||(A("pipe resume"),lt.resume()),F},y.prototype.unpipe=function(F){var Ae=this._readableState,lt={hasUnpiped:!1};if(0===Ae.pipesCount)return this;if(1===Ae.pipesCount)return F&&F!==Ae.pipes||(F||(F=Ae.pipes),Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1,F&&F.emit("unpipe",this,lt)),this;if(!F){var Ie=Ae.pipes,De=Ae.pipesCount;Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1;for(var oe=0;oe0,!1!==Ie.flowing&&this.resume()):"readable"===F&&!Ie.endEmitted&&!Ie.readableListening&&(Ie.readableListening=Ie.needReadable=!0,Ie.flowing=!1,Ie.emittedReadable=!1,A("on readable",Ie.length,Ie.reading),Ie.length?_(this):Ie.reading||process.nextTick(se,this)),lt},y.prototype.removeListener=function(F,Ae){var lt=M.prototype.removeListener.call(this,F,Ae);return"readable"===F&&process.nextTick(z,this),lt},y.prototype.removeAllListeners=function(F){var Ae=M.prototype.removeAllListeners.apply(this,arguments);return("readable"===F||void 0===F)&&process.nextTick(z,this),Ae},y.prototype.resume=function(){var F=this._readableState;return F.flowing||(A("resume"),F.flowing=!F.readableListening,function fe(F,Ae){Ae.resumeScheduled||(Ae.resumeScheduled=!0,process.nextTick(xe,F,Ae))}(this,F)),F.paused=!1,this},y.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},y.prototype.wrap=function(F){var Ae=this,lt=this._readableState,Ie=!1;for(var De in F.on("end",function(){if(A("wrapped end"),lt.decoder&&!lt.ended){var Te=lt.decoder.end();Te&&Te.length&&Ae.push(Te)}Ae.push(null)}),F.on("data",function(Te){A("wrapped data"),lt.decoder&&(Te=lt.decoder.write(Te)),lt.objectMode&&null==Te||!(lt.objectMode||Te&&Te.length)||Ae.push(Te)||(Ie=!0,F.pause())}),F)void 0===this[De]&&"function"==typeof F[De]&&(this[De]=function(ye){return function(){return F[ye].apply(F,arguments)}}(De));for(var oe=0;oe{"use strict";Fe.exports=N;var t=p(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,f=t.ERR_MULTIPLE_CALLBACK,M=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=t.ERR_TRANSFORM_WITH_LENGTH_0,b=p(1339);function d(D,w){var S=this._transformState;S.transforming=!1;var I=S.writecb;if(null===I)return this.emit("error",new f);S.writechunk=null,S.writecb=null,null!=w&&this.push(w),I(D);var L=this._readableState;L.reading=!1,(L.needReadable||L.length{"use strict";function e(Re){var we=this;this.next=null,this.entry=null,this.finish=function(){!function xe(Re,we,Q){var Ge=Re.entry;for(Re.entry=null;Ge;){var ve=Ge.callback;we.pendingcb--,ve(Q),Ge=Ge.next}we.corkedRequestsFree.next=Re}(we,Re)}}var f;Fe.exports=ge,ge.WritableState=ce;var J,M={deprecate:p(4364)},a=p(4970),b=p(3172).Buffer,d=global.Uint8Array||function(){},A=p(1920),w=p(7102).getHighWaterMark,S=p(891).q,I=S.ERR_INVALID_ARG_TYPE,L=S.ERR_METHOD_NOT_IMPLEMENTED,U=S.ERR_MULTIPLE_CALLBACK,Z=S.ERR_STREAM_CANNOT_PIPE,j=S.ERR_STREAM_DESTROYED,ne=S.ERR_STREAM_NULL_VALUES,X=S.ERR_STREAM_WRITE_AFTER_END,de=S.ERR_UNKNOWN_ENCODING,ee=A.errorOrDestroy;function te(){}function ce(Re,we,Q){f=f||p(1339),"boolean"!=typeof Q&&(Q=we instanceof f),this.objectMode=!!(Re=Re||{}).objectMode,Q&&(this.objectMode=this.objectMode||!!Re.writableObjectMode),this.highWaterMark=w(this,Re,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Re.decodeStrings),this.defaultEncoding=Re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){!function O(Re,we){var Q=Re._writableState,Ge=Q.sync,ve=Q.writecb;if("function"!=typeof ve)throw new U;if(function E(Re){Re.writing=!1,Re.writecb=null,Re.length-=Re.writelen,Re.writelen=0}(Q),we)!function C(Re,we,Q,Ge,ve){--we.pendingcb,Q?(process.nextTick(ve,Ge),process.nextTick(se,Re,we),Re._writableState.errorEmitted=!0,ee(Re,Ge)):(ve(Ge),Re._writableState.errorEmitted=!0,ee(Re,Ge),se(Re,we))}(Re,Q,Ge,we,ve);else{var F=B(Q)||Re.destroyed;!F&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&v(Re,Q),Ge?process.nextTick(_,Re,Q,F,ve):_(Re,Q,F,ve)}}(we,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Re.emitClose,this.autoDestroy=!!Re.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function ge(Re){var we=this instanceof(f=f||p(1339));if(!we&&!J.call(ge,this))return new ge(Re);this._writableState=new ce(Re,this,we),this.writable=!0,Re&&("function"==typeof Re.write&&(this._write=Re.write),"function"==typeof Re.writev&&(this._writev=Re.writev),"function"==typeof Re.destroy&&(this._destroy=Re.destroy),"function"==typeof Re.final&&(this._final=Re.final)),a.call(this)}function c(Re,we,Q,Ge,ve,F,Ae){we.writelen=Ge,we.writecb=Ae,we.writing=!0,we.sync=!0,we.destroyed?we.onwrite(new j("write")):Q?Re._writev(ve,we.onwrite):Re._write(ve,F,we.onwrite),we.sync=!1}function _(Re,we,Q,Ge){Q||function n(Re,we){0===we.length&&we.needDrain&&(we.needDrain=!1,Re.emit("drain"))}(Re,we),we.pendingcb--,Ge(),se(Re,we)}function v(Re,we){we.bufferProcessing=!0;var Q=we.bufferedRequest;if(Re._writev&&Q&&Q.next){var ve=new Array(we.bufferedRequestCount),F=we.corkedRequestsFree;F.entry=Q;for(var Ae=0,lt=!0;Q;)ve[Ae]=Q,Q.isBuf||(lt=!1),Q=Q.next,Ae+=1;ve.allBuffers=lt,c(Re,we,!0,we.length,ve,"",F.finish),we.pendingcb++,we.lastBufferedRequest=null,F.next?(we.corkedRequestsFree=F.next,F.next=null):we.corkedRequestsFree=new e(we),we.bufferedRequestCount=0}else{for(;Q;){var Ie=Q.chunk;if(c(Re,we,!1,we.objectMode?1:Ie.length,Ie,Q.encoding,Q.callback),Q=Q.next,we.bufferedRequestCount--,we.writing)break}null===Q&&(we.lastBufferedRequest=null)}we.bufferedRequest=Q,we.bufferProcessing=!1}function B(Re){return Re.ending&&0===Re.length&&null===Re.bufferedRequest&&!Re.finished&&!Re.writing}function P(Re,we){Re._final(function(Q){we.pendingcb--,Q&&ee(Re,Q),we.prefinished=!0,Re.emit("prefinish"),se(Re,we)})}function se(Re,we){var Q=B(we);if(Q&&(function z(Re,we){!we.prefinished&&!we.finalCalled&&("function"!=typeof Re._final||we.destroyed?(we.prefinished=!0,Re.emit("prefinish")):(we.pendingcb++,we.finalCalled=!0,process.nextTick(P,Re,we)))}(Re,we),0===we.pendingcb&&(we.finished=!0,Re.emit("finish"),we.autoDestroy))){var Ge=Re._readableState;(!Ge||Ge.autoDestroy&&Ge.endEmitted)&&Re.destroy()}return Q}p(3894)(ge,a),ce.prototype.getBuffer=function(){for(var we=this.bufferedRequest,Q=[];we;)Q.push(we),we=we.next;return Q},function(){try{Object.defineProperty(ce.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Re){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(J=Function.prototype[Symbol.hasInstance],Object.defineProperty(ge,Symbol.hasInstance,{value:function(we){return!!J.call(this,we)||this===ge&&we&&we._writableState instanceof ce}})):J=function(we){return we instanceof this},ge.prototype.pipe=function(){ee(this,new Z)},ge.prototype.write=function(Re,we,Q){var Ge=this._writableState,ve=!1,F=!Ge.objectMode&&function h(Re){return b.isBuffer(Re)||Re instanceof d}(Re);return F&&!b.isBuffer(Re)&&(Re=function N(Re){return b.from(Re)}(Re)),"function"==typeof we&&(Q=we,we=null),F?we="buffer":we||(we=Ge.defaultEncoding),"function"!=typeof Q&&(Q=te),Ge.ending?function y(Re,we){var Q=new X;ee(Re,Q),process.nextTick(we,Q)}(this,Q):(F||function i(Re,we,Q,Ge){var ve;return null===Q?ve=new ne:"string"!=typeof Q&&!we.objectMode&&(ve=new I("chunk",["string","Buffer"],Q)),!ve||(ee(Re,ve),process.nextTick(Ge,ve),!1)}(this,Ge,Re,Q))&&(Ge.pendingcb++,ve=function u(Re,we,Q,Ge,ve,F){if(!Q){var Ae=function r(Re,we,Q){return!Re.objectMode&&!1!==Re.decodeStrings&&"string"==typeof we&&(we=b.from(we,Q)),we}(we,Ge,ve);Ge!==Ae&&(Q=!0,ve="buffer",Ge=Ae)}var lt=we.objectMode?1:Ge.length;we.length+=lt;var Ie=we.length-1))throw new de(we);return this._writableState.defaultEncoding=we,this},Object.defineProperty(ge.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ge.prototype._write=function(Re,we,Q){Q(new L("_write()"))},ge.prototype._writev=null,ge.prototype.end=function(Re,we,Q){var Ge=this._writableState;return"function"==typeof Re?(Q=Re,Re=null,we=null):"function"==typeof we&&(Q=we,we=null),null!=Re&&this.write(Re,we),Ge.corked&&(Ge.corked=1,this.uncork()),Ge.ending||function fe(Re,we,Q){we.ending=!0,se(Re,we),Q&&(we.finished?process.nextTick(Q):Re.once("finish",Q)),we.ended=!0,Re.writable=!1}(this,Ge,Q),this},Object.defineProperty(ge.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ge.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(we){!this._writableState||(this._writableState.destroyed=we)}}),ge.prototype.destroy=A.destroy,ge.prototype._undestroy=A.undestroy,ge.prototype._destroy=function(Re,we){we(Re)}},3872:(Fe,Y,p)=>{"use strict";var t;function e(j,ne,X){return ne in j?Object.defineProperty(j,ne,{value:X,enumerable:!0,configurable:!0,writable:!0}):j[ne]=X,j}var f=p(7542),M=Symbol("lastResolve"),a=Symbol("lastReject"),b=Symbol("error"),d=Symbol("ended"),N=Symbol("lastPromise"),h=Symbol("handlePromise"),A=Symbol("stream");function D(j,ne){return{value:j,done:ne}}function w(j){var ne=j[M];if(null!==ne){var X=j[A].read();null!==X&&(j[N]=null,j[M]=null,j[a]=null,ne(D(X,!1)))}}function S(j){process.nextTick(w,j)}var L=Object.getPrototypeOf(function(){}),U=Object.setPrototypeOf((e(t={get stream(){return this[A]},next:function(){var ne=this,X=this[b];if(null!==X)return Promise.reject(X);if(this[d])return Promise.resolve(D(void 0,!0));if(this[A].destroyed)return new Promise(function(ce,J){process.nextTick(function(){ne[b]?J(ne[b]):ce(D(void 0,!0))})});var ee,de=this[N];if(de)ee=new Promise(function I(j,ne){return function(X,de){j.then(function(){ne[d]?X(D(void 0,!0)):ne[h](X,de)},de)}}(de,this));else{var te=this[A].read();if(null!==te)return Promise.resolve(D(te,!1));ee=new Promise(this[h])}return this[N]=ee,ee}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var ne=this;return new Promise(function(X,de){ne[A].destroy(null,function(ee){ee?de(ee):X(D(void 0,!0))})})}),t),L);Fe.exports=function(ne){var X,de=Object.create(U,(e(X={},A,{value:ne,writable:!0}),e(X,M,{value:null,writable:!0}),e(X,a,{value:null,writable:!0}),e(X,b,{value:null,writable:!0}),e(X,d,{value:ne._readableState.endEmitted,writable:!0}),e(X,h,{value:function(te,ce){var J=de[A].read();J?(de[N]=null,de[M]=null,de[a]=null,te(D(J,!1))):(de[M]=te,de[a]=ce)},writable:!0}),X));return de[N]=null,f(ne,function(ee){if(ee&&"ERR_STREAM_PREMATURE_CLOSE"!==ee.code){var te=de[a];return null!==te&&(de[N]=null,de[M]=null,de[a]=null,te(ee)),void(de[b]=ee)}var ce=de[M];null!==ce&&(de[N]=null,de[M]=null,de[a]=null,ce(D(void 0,!0))),de[d]=!0}),ne.on("readable",S.bind(null,de)),de}},5019:(Fe,Y,p)=>{"use strict";function t(S,I){var L=Object.keys(S);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(S);I&&(U=U.filter(function(Z){return Object.getOwnPropertyDescriptor(S,Z).enumerable})),L.push.apply(L,U)}return L}function f(S,I,L){return I in S?Object.defineProperty(S,I,{value:L,enumerable:!0,configurable:!0,writable:!0}):S[I]=L,S}function a(S,I){for(var L=0;L0?this.tail.next=U:this.head=U,this.tail=U,++this.length}},{key:"unshift",value:function(L){var U={data:L,next:this.head};0===this.length&&(this.tail=U),this.head=U,++this.length}},{key:"shift",value:function(){if(0!==this.length){var L=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(0===this.length)return"";for(var U=this.head,Z=""+U.data;U=U.next;)Z+=L+U.data;return Z}},{key:"concat",value:function(L){if(0===this.length)return N.alloc(0);for(var U=N.allocUnsafe(L>>>0),Z=this.head,j=0;Z;)w(Z.data,U,j),j+=Z.data.length,Z=Z.next;return U}},{key:"consume",value:function(L,U){var Z;return Lne.length?ne.length:L;if(j+=X===ne.length?ne:ne.slice(0,L),0==(L-=X)){X===ne.length?(++Z,this.head=U.next?U.next:this.tail=null):(this.head=U,U.data=ne.slice(X));break}++Z}return this.length-=Z,j}},{key:"_getBuffer",value:function(L){var U=N.allocUnsafe(L),Z=this.head,j=1;for(Z.data.copy(U),L-=Z.data.length;Z=Z.next;){var ne=Z.data,X=L>ne.length?ne.length:L;if(ne.copy(U,U.length-L,0,X),0==(L-=X)){X===ne.length?(++j,this.head=Z.next?Z.next:this.tail=null):(this.head=Z,Z.data=ne.slice(X));break}++j}return this.length-=j,U}},{key:D,value:function(L,U){return A(this,function e(S){for(var I=1;I{"use strict";function p(a,b){f(a,b),t(a)}function t(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function f(a,b){a.emit("error",b)}Fe.exports={destroy:function Y(a,b){var d=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(b?b(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(f,this,a)):process.nextTick(f,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(A){!b&&A?d._writableState?d._writableState.errorEmitted?process.nextTick(t,d):(d._writableState.errorEmitted=!0,process.nextTick(p,d,A)):process.nextTick(p,d,A):b?(process.nextTick(t,d),b(A)):process.nextTick(t,d)}),this)},undestroy:function e(){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 M(a,b){var d=a._readableState,N=a._writableState;d&&d.autoDestroy||N&&N.autoDestroy?a.destroy(b):a.emit("error",b)}}},7542:(Fe,Y,p)=>{"use strict";var t=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function f(){}Fe.exports=function a(b,d,N){if("function"==typeof d)return a(b,null,d);d||(d={}),N=function e(b){var d=!1;return function(){if(!d){d=!0;for(var N=arguments.length,h=new Array(N),A=0;A{Fe.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Fe,Y,p)=>{"use strict";var t,f=p(891).q,M=f.ERR_MISSING_ARGS,a=f.ERR_STREAM_DESTROYED;function b(S){if(S)throw S}function N(S,I,L,U){U=function e(S){var I=!1;return function(){I||(I=!0,S.apply(void 0,arguments))}}(U);var Z=!1;S.on("close",function(){Z=!0}),void 0===t&&(t=p(7542)),t(S,{readable:I,writable:L},function(ne){if(ne)return U(ne);Z=!0,U()});var j=!1;return function(ne){if(!Z&&!j){if(j=!0,function d(S){return S.setHeader&&"function"==typeof S.abort}(S))return S.abort();if("function"==typeof S.destroy)return S.destroy();U(ne||new a("pipe"))}}}function h(S){S()}function A(S,I){return S.pipe(I)}function D(S){return S.length&&"function"==typeof S[S.length-1]?S.pop():b}Fe.exports=function w(){for(var S=arguments.length,I=new Array(S),L=0;L0,function(te){Z||(Z=te),te&&j.forEach(h),!de&&(j.forEach(h),U(Z))})});return I.reduce(A)}},7102:(Fe,Y,p)=>{"use strict";var t=p(891).q.ERR_INVALID_OPT_VALUE;Fe.exports={getHighWaterMark:function f(M,a,b,d){var N=function e(M,a,b){return null!=M.highWaterMark?M.highWaterMark:a?M[b]:null}(a,d,b);if(null!=N){if(!isFinite(N)||Math.floor(N)!==N||N<0)throw new t(d?b:"highWaterMark",N);return Math.floor(N)}return M.objectMode?16:16384}}},4970:(Fe,Y,p)=>{Fe.exports=p(9069).EventEmitter},5685:(Fe,Y,p)=>{(Y=Fe.exports=p(3154)).Stream=Y,Y.Readable=Y,Y.Writable=p(520),Y.Duplex=p(1339),Y.Transform=p(6025),Y.PassThrough=p(6071),Y.finished=p(7542),Y.pipeline=p(954)},5634:(Fe,Y,p)=>{"use strict";var t=p(3172).Buffer,e=p(3894),f=p(9650),M=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],b=[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],N=[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=[0,1518500249,1859775393,2400959708,2840853838],A=[1352829926,1548603684,1836072691,2053994217,0];function D(){f.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function w(j,ne){return j<>>32-ne}function S(j,ne,X,de,ee,te,ce,J){return w(j+(ne^X^de)+te+ce|0,J)+ee|0}function I(j,ne,X,de,ee,te,ce,J){return w(j+(ne&X|~ne&de)+te+ce|0,J)+ee|0}function L(j,ne,X,de,ee,te,ce,J){return w(j+((ne|~X)^de)+te+ce|0,J)+ee|0}function U(j,ne,X,de,ee,te,ce,J){return w(j+(ne&de|X&~de)+te+ce|0,J)+ee|0}function Z(j,ne,X,de,ee,te,ce,J){return w(j+(ne^(X|~de))+te+ce|0,J)+ee|0}e(D,f),D.prototype._update=function(){for(var j=M,ne=0;ne<16;++ne)j[ne]=this._block.readInt32LE(4*ne);for(var X=0|this._a,de=0|this._b,ee=0|this._c,te=0|this._d,ce=0|this._e,J=0|this._a,ge=0|this._b,y=0|this._c,i=0|this._d,r=0|this._e,u=0;u<80;u+=1){var c,C;u<16?(c=S(X,de,ee,te,ce,j[a[u]],h[0],d[u]),C=Z(J,ge,y,i,r,j[b[u]],A[0],N[u])):u<32?(c=I(X,de,ee,te,ce,j[a[u]],h[1],d[u]),C=U(J,ge,y,i,r,j[b[u]],A[1],N[u])):u<48?(c=L(X,de,ee,te,ce,j[a[u]],h[2],d[u]),C=L(J,ge,y,i,r,j[b[u]],A[2],N[u])):u<64?(c=U(X,de,ee,te,ce,j[a[u]],h[3],d[u]),C=I(J,ge,y,i,r,j[b[u]],A[3],N[u])):(c=Z(X,de,ee,te,ce,j[a[u]],h[4],d[u]),C=S(J,ge,y,i,r,j[b[u]],A[4],N[u])),X=ce,ce=te,te=w(ee,10),ee=de,de=c,J=r,r=i,i=w(y,10),y=ge,ge=C}var E=this._b+ee+i|0;this._b=this._c+te+r|0,this._c=this._d+ce+J|0,this._d=this._e+X+ge|0,this._e=this._a+de+y|0,this._a=E},D.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 j=t.alloc?t.alloc(20):new t(20);return j.writeInt32LE(this._a,0),j.writeInt32LE(this._b,4),j.writeInt32LE(this._c,8),j.writeInt32LE(this._d,12),j.writeInt32LE(this._e,16),j},Fe.exports=D},1135:(Fe,Y,p)=>{"use strict";p.d(Y,{X:()=>e});var t=p(7579);class e extends t.x{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const a=super._subscribe(M);return!a.closed&&M.next(this._value),a}getValue(){const{hasError:M,thrownError:a,_value:b}=this;if(M)throw a;return this._throwIfClosed(),b}next(M){super.next(this._value=M)}}},8306:(Fe,Y,p)=>{"use strict";p.d(Y,{y:()=>A});var t=p(930),e=p(727),f=p(8822),M=p(4671);var d=p(2416),N=p(576),h=p(2806);let A=(()=>{class I{constructor(U){U&&(this._subscribe=U)}lift(U){const Z=new I;return Z.source=this,Z.operator=U,Z}subscribe(U,Z,j){const ne=function S(I){return I&&I instanceof t.Lv||function w(I){return I&&(0,N.m)(I.next)&&(0,N.m)(I.error)&&(0,N.m)(I.complete)}(I)&&(0,e.Nn)(I)}(U)?U:new t.Hp(U,Z,j);return(0,h.x)(()=>{const{operator:X,source:de}=this;ne.add(X?X.call(ne,de):de?this._subscribe(ne):this._trySubscribe(ne))}),ne}_trySubscribe(U){try{return this._subscribe(U)}catch(Z){U.error(Z)}}forEach(U,Z){return new(Z=D(Z))((j,ne)=>{const X=new t.Hp({next:de=>{try{U(de)}catch(ee){ne(ee),X.unsubscribe()}},error:ne,complete:j});this.subscribe(X)})}_subscribe(U){var Z;return null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(U)}[f.L](){return this}pipe(...U){return function b(I){return 0===I.length?M.y:1===I.length?I[0]:function(U){return I.reduce((Z,j)=>j(Z),U)}}(U)(this)}toPromise(U){return new(U=D(U))((Z,j)=>{let ne;this.subscribe(X=>ne=X,X=>j(X),()=>Z(ne))})}}return I.create=L=>new I(L),I})();function D(I){var L;return null!==(L=null!=I?I:d.v.Promise)&&void 0!==L?L:Promise}},4707:(Fe,Y,p)=>{"use strict";p.d(Y,{t:()=>f});var t=p(7579),e=p(6063);class f extends t.x{constructor(a=1/0,b=1/0,d=e.l){super(),this._bufferSize=a,this._windowTime=b,this._timestampProvider=d,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=b===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,b)}next(a){const{isStopped:b,_buffer:d,_infiniteTimeWindow:N,_timestampProvider:h,_windowTime:A}=this;b||(d.push(a),!N&&d.push(h.now()+A)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const b=this._innerSubscribe(a),{_infiniteTimeWindow:d,_buffer:N}=this,h=N.slice();for(let A=0;A{"use strict";p.d(Y,{u:()=>N,x:()=>d});var t=p(8306),e=p(727);const M=(0,p(3888).d)(h=>function(){h(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var a=p(8737),b=p(2806);let d=(()=>{class h extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(D){const w=new N(this,this);return w.operator=D,w}_throwIfClosed(){if(this.closed)throw new M}next(D){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const w of this.currentObservers)w.next(D)}})}error(D){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=D;const{observers:w}=this;for(;w.length;)w.shift().error(D)}})}complete(){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:D}=this;for(;D.length;)D.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var D;return(null===(D=this.observers)||void 0===D?void 0:D.length)>0}_trySubscribe(D){return this._throwIfClosed(),super._trySubscribe(D)}_subscribe(D){return this._throwIfClosed(),this._checkFinalizedStatuses(D),this._innerSubscribe(D)}_innerSubscribe(D){const{hasError:w,isStopped:S,observers:I}=this;return w||S?e.Lc:(this.currentObservers=null,I.push(D),new e.w0(()=>{this.currentObservers=null,(0,a.P)(I,D)}))}_checkFinalizedStatuses(D){const{hasError:w,thrownError:S,isStopped:I}=this;w?D.error(S):I&&D.complete()}asObservable(){const D=new t.y;return D.source=this,D}}return h.create=(A,D)=>new N(A,D),h})();class N extends d{constructor(A,D){super(),this.destination=A,this.source=D}next(A){var D,w;null===(w=null===(D=this.destination)||void 0===D?void 0:D.next)||void 0===w||w.call(D,A)}error(A){var D,w;null===(w=null===(D=this.destination)||void 0===D?void 0:D.error)||void 0===w||w.call(D,A)}complete(){var A,D;null===(D=null===(A=this.destination)||void 0===A?void 0:A.complete)||void 0===D||D.call(A)}_subscribe(A){var D,w;return null!==(w=null===(D=this.source)||void 0===D?void 0:D.subscribe(A))&&void 0!==w?w:e.Lc}}},930:(Fe,Y,p)=>{"use strict";p.d(Y,{Hp:()=>U,Lv:()=>w});var t=p(576),e=p(727),f=p(2416),M=p(7849),a=p(5032);const b=h("C",void 0,void 0);function h(de,ee,te){return{kind:de,value:ee,error:te}}var A=p(3410),D=p(2806);class w extends e.w0{constructor(ee){super(),this.isStopped=!1,ee?(this.destination=ee,(0,e.Nn)(ee)&&ee.add(this)):this.destination=X}static create(ee,te,ce){return new U(ee,te,ce)}next(ee){this.isStopped?ne(function N(de){return h("N",de,void 0)}(ee),this):this._next(ee)}error(ee){this.isStopped?ne(function d(de){return h("E",void 0,de)}(ee),this):(this.isStopped=!0,this._error(ee))}complete(){this.isStopped?ne(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ee){this.destination.next(ee)}_error(ee){try{this.destination.error(ee)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const S=Function.prototype.bind;function I(de,ee){return S.call(de,ee)}class L{constructor(ee){this.partialObserver=ee}next(ee){const{partialObserver:te}=this;if(te.next)try{te.next(ee)}catch(ce){Z(ce)}}error(ee){const{partialObserver:te}=this;if(te.error)try{te.error(ee)}catch(ce){Z(ce)}else Z(ee)}complete(){const{partialObserver:ee}=this;if(ee.complete)try{ee.complete()}catch(te){Z(te)}}}class U extends w{constructor(ee,te,ce){let J;if(super(),(0,t.m)(ee)||!ee)J={next:null!=ee?ee:void 0,error:null!=te?te:void 0,complete:null!=ce?ce:void 0};else{let ge;this&&f.v.useDeprecatedNextContext?(ge=Object.create(ee),ge.unsubscribe=()=>this.unsubscribe(),J={next:ee.next&&I(ee.next,ge),error:ee.error&&I(ee.error,ge),complete:ee.complete&&I(ee.complete,ge)}):J=ee}this.destination=new L(J)}}function Z(de){f.v.useDeprecatedSynchronousErrorHandling?(0,D.O)(de):(0,M.h)(de)}function ne(de,ee){const{onStoppedNotification:te}=f.v;te&&A.z.setTimeout(()=>te(de,ee))}const X={closed:!0,next:a.Z,error:function j(de){throw de},complete:a.Z}},727:(Fe,Y,p)=>{"use strict";p.d(Y,{Lc:()=>b,w0:()=>a,Nn:()=>d});var t=p(576);const f=(0,p(3888).d)(h=>function(D){h(this),this.message=D?`${D.length} errors occurred during unsubscription:\n${D.map((w,S)=>`${S+1}) ${w.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=D});var M=p(8737);class a{constructor(A){this.initialTeardown=A,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let A;if(!this.closed){this.closed=!0;const{_parentage:D}=this;if(D)if(this._parentage=null,Array.isArray(D))for(const I of D)I.remove(this);else D.remove(this);const{initialTeardown:w}=this;if((0,t.m)(w))try{w()}catch(I){A=I instanceof f?I.errors:[I]}const{_finalizers:S}=this;if(S){this._finalizers=null;for(const I of S)try{N(I)}catch(L){A=null!=A?A:[],L instanceof f?A=[...A,...L.errors]:A.push(L)}}if(A)throw new f(A)}}add(A){var D;if(A&&A!==this)if(this.closed)N(A);else{if(A instanceof a){if(A.closed||A._hasParent(this))return;A._addParent(this)}(this._finalizers=null!==(D=this._finalizers)&&void 0!==D?D:[]).push(A)}}_hasParent(A){const{_parentage:D}=this;return D===A||Array.isArray(D)&&D.includes(A)}_addParent(A){const{_parentage:D}=this;this._parentage=Array.isArray(D)?(D.push(A),D):D?[D,A]:A}_removeParent(A){const{_parentage:D}=this;D===A?this._parentage=null:Array.isArray(D)&&(0,M.P)(D,A)}remove(A){const{_finalizers:D}=this;D&&(0,M.P)(D,A),A instanceof a&&A._removeParent(this)}}a.EMPTY=(()=>{const h=new a;return h.closed=!0,h})();const b=a.EMPTY;function d(h){return h instanceof a||h&&"closed"in h&&(0,t.m)(h.remove)&&(0,t.m)(h.add)&&(0,t.m)(h.unsubscribe)}function N(h){(0,t.m)(h)?h():h.unsubscribe()}},2416:(Fe,Y,p)=>{"use strict";p.d(Y,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Fe,Y,p)=>{"use strict";p.d(Y,{a:()=>A});var t=p(8306),e=p(4742),f=p(457),M=p(4671),a=p(3268),b=p(3269),d=p(1810),N=p(5403),h=p(9672);function A(...S){const I=(0,b.yG)(S),L=(0,b.jO)(S),{args:U,keys:Z}=(0,e.D)(S);if(0===U.length)return(0,f.D)([],I);const j=new t.y(function D(S,I,L=M.y){return U=>{w(I,()=>{const{length:Z}=S,j=new Array(Z);let ne=Z,X=Z;for(let de=0;de{const ee=(0,f.D)(S[de],I);let te=!1;ee.subscribe((0,N.x)(U,ce=>{j[de]=ce,te||(te=!0,X--),X||U.next(L(j.slice()))},()=>{--ne||U.complete()}))},U)},U)}}(U,I,Z?ne=>(0,d.n)(Z,ne):M.y));return L?j.pipe((0,a.Z)(L)):j}function w(S,I,L){S?(0,h.f)(L,S,I):I()}},7272:(Fe,Y,p)=>{"use strict";p.d(Y,{z:()=>a});var t=p(8189),f=p(3269),M=p(457);function a(...b){return function e(){return(0,t.J)(1)}()((0,M.D)(b,(0,f.yG)(b)))}},9770:(Fe,Y,p)=>{"use strict";p.d(Y,{P:()=>f});var t=p(8306),e=p(8421);function f(M){return new t.y(a=>{(0,e.Xf)(M()).subscribe(a)})}},515:(Fe,Y,p)=>{"use strict";p.d(Y,{E:()=>e});const e=new(p(8306).y)(a=>a.complete())},4128:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>N});var t=p(8306),e=p(4742),f=p(8421),M=p(3269),a=p(5403),b=p(3268),d=p(1810);function N(...h){const A=(0,M.jO)(h),{args:D,keys:w}=(0,e.D)(h),S=new t.y(I=>{const{length:L}=D;if(!L)return void I.complete();const U=new Array(L);let Z=L,j=L;for(let ne=0;ne{X||(X=!0,j--),U[ne]=de},()=>Z--,void 0,()=>{(!Z||!X)&&(j||I.next(w?(0,d.n)(w,U):U),I.complete())}))}});return A?S.pipe((0,b.Z)(A)):S}},457:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>te});var t=p(8421),e=p(5363),f=p(4482);function M(ce,J=0){return(0,f.e)((ge,y)=>{y.add(ce.schedule(()=>ge.subscribe(y),J))})}var d=p(8306),h=p(2202),A=p(576),D=p(9672);function S(ce,J){if(!ce)throw new Error("Iterable cannot be null");return new d.y(ge=>{(0,D.f)(ge,J,()=>{const y=ce[Symbol.asyncIterator]();(0,D.f)(ge,J,()=>{y.next().then(i=>{i.done?ge.complete():ge.next(i.value)})},0,!0)})})}var I=p(3670),L=p(8239),U=p(1144),Z=p(6495),j=p(2206),ne=p(4532),X=p(3260);function te(ce,J){return J?function ee(ce,J){if(null!=ce){if((0,I.c)(ce))return function a(ce,J){return(0,t.Xf)(ce).pipe(M(J),(0,e.Q)(J))}(ce,J);if((0,U.z)(ce))return function N(ce,J){return new d.y(ge=>{let y=0;return J.schedule(function(){y===ce.length?ge.complete():(ge.next(ce[y++]),ge.closed||this.schedule())})})}(ce,J);if((0,L.t)(ce))return function b(ce,J){return(0,t.Xf)(ce).pipe(M(J),(0,e.Q)(J))}(ce,J);if((0,j.D)(ce))return S(ce,J);if((0,Z.T)(ce))return function w(ce,J){return new d.y(ge=>{let y;return(0,D.f)(ge,J,()=>{y=ce[h.h](),(0,D.f)(ge,J,()=>{let i,r;try{({value:i,done:r}=y.next())}catch(u){return void ge.error(u)}r?ge.complete():ge.next(i)},0,!0)}),()=>(0,A.m)(null==y?void 0:y.return)&&y.return()})}(ce,J);if((0,X.L)(ce))return function de(ce,J){return S((0,X.Q)(ce),J)}(ce,J)}throw(0,ne.z)(ce)}(ce,J):(0,t.Xf)(ce)}},4968:(Fe,Y,p)=>{"use strict";p.d(Y,{R:()=>A});var t=p(8421),e=p(8306),f=p(5577),M=p(1144),a=p(576),b=p(3268);const d=["addListener","removeListener"],N=["addEventListener","removeEventListener"],h=["on","off"];function A(L,U,Z,j){if((0,a.m)(Z)&&(j=Z,Z=void 0),j)return A(L,U,Z).pipe((0,b.Z)(j));const[ne,X]=function I(L){return(0,a.m)(L.addEventListener)&&(0,a.m)(L.removeEventListener)}(L)?N.map(de=>ee=>L[de](U,ee,Z)):function w(L){return(0,a.m)(L.addListener)&&(0,a.m)(L.removeListener)}(L)?d.map(D(L,U)):function S(L){return(0,a.m)(L.on)&&(0,a.m)(L.off)}(L)?h.map(D(L,U)):[];if(!ne&&(0,M.z)(L))return(0,f.z)(de=>A(de,U,Z))((0,t.Xf)(L));if(!ne)throw new TypeError("Invalid event target");return new e.y(de=>{const ee=(...te)=>de.next(1X(ee)})}function D(L,U){return Z=>j=>L[Z](U,j)}},8421:(Fe,Y,p)=>{"use strict";p.d(Y,{Xf:()=>S});var t=p(655),e=p(1144),f=p(8239),M=p(8306),a=p(3670),b=p(2206),d=p(4532),N=p(6495),h=p(3260),A=p(576),D=p(7849),w=p(8822);function S(de){if(de instanceof M.y)return de;if(null!=de){if((0,a.c)(de))return function I(de){return new M.y(ee=>{const te=de[w.L]();if((0,A.m)(te.subscribe))return te.subscribe(ee);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(de);if((0,e.z)(de))return function L(de){return new M.y(ee=>{for(let te=0;te{de.then(te=>{ee.closed||(ee.next(te),ee.complete())},te=>ee.error(te)).then(null,D.h)})}(de);if((0,b.D)(de))return j(de);if((0,N.T)(de))return function Z(de){return new M.y(ee=>{for(const te of de)if(ee.next(te),ee.closed)return;ee.complete()})}(de);if((0,h.L)(de))return function ne(de){return j((0,h.Q)(de))}(de)}throw(0,d.z)(de)}function j(de){return new M.y(ee=>{(function X(de,ee){var te,ce,J,ge;return(0,t.mG)(this,void 0,void 0,function*(){try{for(te=(0,t.KL)(de);!(ce=yield te.next()).done;)if(ee.next(ce.value),ee.closed)return}catch(y){J={error:y}}finally{try{ce&&!ce.done&&(ge=te.return)&&(yield ge.call(te))}finally{if(J)throw J.error}}ee.complete()})})(de,ee).catch(te=>ee.error(te))})}},6451:(Fe,Y,p)=>{"use strict";p.d(Y,{T:()=>b});var t=p(8189),e=p(8421),f=p(515),M=p(3269),a=p(457);function b(...d){const N=(0,M.yG)(d),h=(0,M._6)(d,1/0),A=d;return A.length?1===A.length?(0,e.Xf)(A[0]):(0,t.J)(h)((0,a.D)(A,N)):f.E}},9646:(Fe,Y,p)=>{"use strict";p.d(Y,{of:()=>f});var t=p(3269),e=p(457);function f(...M){const a=(0,t.yG)(M);return(0,e.D)(M,a)}},2843:(Fe,Y,p)=>{"use strict";p.d(Y,{_:()=>f});var t=p(8306),e=p(576);function f(M,a){const b=(0,e.m)(M)?M:()=>M,d=N=>N.error(b());return new t.y(a?N=>a.schedule(d,0,N):d)}},2805:(Fe,Y,p)=>{"use strict";p.d(Y,{H:()=>a});var t=p(8306),e=p(4986),f=p(3532),M=p(1165);function a(b=0,d,N=e.P){let h=-1;return null!=d&&((0,f.K)(d)?N=d:h=d),new t.y(A=>{let D=(0,M.q)(b)?+b-N.now():b;D<0&&(D=0);let w=0;return N.schedule(function(){A.closed||(A.next(w++),0<=h?this.schedule(void 0,h):A.complete())},D)})}},5403:(Fe,Y,p)=>{"use strict";p.d(Y,{Q:()=>f,x:()=>e});var t=p(930);function e(M,a,b,d,N){return new f(M,a,b,d,N)}class f extends t.Lv{constructor(a,b,d,N,h,A){super(a),this.onFinalize=h,this.shouldUnsubscribe=A,this._next=b?function(D){try{b(D)}catch(w){a.error(w)}}:super._next,this._error=N?function(D){try{N(D)}catch(w){a.error(w)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(D){a.error(D)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:b}=this;super.unsubscribe(),!b&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}}}},3601:(Fe,Y,p)=>{"use strict";p.d(Y,{e:()=>d});var t=p(4986),e=p(4482),f=p(8421),M=p(5403),b=p(2805);function d(N,h=t.z){return function a(N){return(0,e.e)((h,A)=>{let D=!1,w=null,S=null,I=!1;const L=()=>{if(null==S||S.unsubscribe(),S=null,D){D=!1;const Z=w;w=null,A.next(Z)}I&&A.complete()},U=()=>{S=null,I&&A.complete()};h.subscribe((0,M.x)(A,Z=>{D=!0,w=Z,S||(0,f.Xf)(N(Z)).subscribe(S=(0,M.x)(A,L,U))},()=>{I=!0,(!D||!S||S.closed)&&A.complete()}))})}(()=>(0,b.H)(N,h))}},262:(Fe,Y,p)=>{"use strict";p.d(Y,{K:()=>M});var t=p(8421),e=p(5403),f=p(4482);function M(a){return(0,f.e)((b,d)=>{let A,N=null,h=!1;N=b.subscribe((0,e.x)(d,void 0,void 0,D=>{A=(0,t.Xf)(a(D,M(a)(b))),N?(N.unsubscribe(),N=null,A.subscribe(d)):h=!0})),h&&(N.unsubscribe(),N=null,A.subscribe(d))})}},4351:(Fe,Y,p)=>{"use strict";p.d(Y,{b:()=>f});var t=p(5577),e=p(576);function f(M,a){return(0,e.m)(a)?(0,t.z)(M,a,1):(0,t.z)(M,1)}},8372:(Fe,Y,p)=>{"use strict";p.d(Y,{b:()=>M});var t=p(4986),e=p(4482),f=p(5403);function M(a,b=t.z){return(0,e.e)((d,N)=>{let h=null,A=null,D=null;const w=()=>{if(h){h.unsubscribe(),h=null;const I=A;A=null,N.next(I)}};function S(){const I=D+a,L=b.now();if(L{A=I,D=b.now(),h||(h=b.schedule(S,a),N.add(h))},()=>{w(),N.complete()},void 0,()=>{A=h=null}))})}},6590:(Fe,Y,p)=>{"use strict";p.d(Y,{d:()=>f});var t=p(4482),e=p(5403);function f(M){return(0,t.e)((a,b)=>{let d=!1;a.subscribe((0,e.x)(b,N=>{d=!0,b.next(N)},()=>{d||b.next(M),b.complete()}))})}},4086:(Fe,Y,p)=>{"use strict";p.d(Y,{g:()=>h});var t=p(4986),e=p(7272),f=p(5698),M=p(8502),a=p(9718),b=p(5577);function d(A,D){return D?w=>(0,e.z)(D.pipe((0,f.q)(1),(0,M.l)()),w.pipe(d(A))):(0,b.z)((w,S)=>A(w,S).pipe((0,f.q)(1),(0,a.h)(w)))}var N=p(2805);function h(A,D=t.z){const w=(0,N.H)(A,D);return d(()=>w)}},1884:(Fe,Y,p)=>{"use strict";p.d(Y,{x:()=>M});var t=p(4671),e=p(4482),f=p(5403);function M(b,d=t.y){return b=null!=b?b:a,(0,e.e)((N,h)=>{let A,D=!0;N.subscribe((0,f.x)(h,w=>{const S=d(w);(D||!b(A,S))&&(D=!1,A=S,h.next(w))}))})}function a(b,d){return b===d}},9300:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>f});var t=p(4482),e=p(5403);function f(M,a){return(0,t.e)((b,d)=>{let N=0;b.subscribe((0,e.x)(d,h=>M.call(a,h,N++)&&d.next(h)))})}},8746:(Fe,Y,p)=>{"use strict";p.d(Y,{x:()=>e});var t=p(4482);function e(f){return(0,t.e)((M,a)=>{try{M.subscribe(a)}finally{a.add(f)}})}},590:(Fe,Y,p)=>{"use strict";p.d(Y,{P:()=>d});var t=p(6805),e=p(9300),f=p(5698),M=p(6590),a=p(8068),b=p(4671);function d(N,h){const A=arguments.length>=2;return D=>D.pipe(N?(0,e.h)((w,S)=>N(w,S,D)):b.y,(0,f.q)(1),A?(0,M.d)(h):(0,a.T)(()=>new t.K))}},8502:(Fe,Y,p)=>{"use strict";p.d(Y,{l:()=>M});var t=p(4482),e=p(5403),f=p(5032);function M(){return(0,t.e)((a,b)=>{a.subscribe((0,e.x)(b,f.Z))})}},4004:(Fe,Y,p)=>{"use strict";p.d(Y,{U:()=>f});var t=p(4482),e=p(5403);function f(M,a){return(0,t.e)((b,d)=>{let N=0;b.subscribe((0,e.x)(d,h=>{d.next(M.call(a,h,N++))}))})}},9718:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>e});var t=p(4004);function e(f){return(0,t.U)(()=>f)}},8189:(Fe,Y,p)=>{"use strict";p.d(Y,{J:()=>f});var t=p(5577),e=p(4671);function f(M=1/0){return(0,t.z)(e.y,M)}},5577:(Fe,Y,p)=>{"use strict";p.d(Y,{z:()=>N});var t=p(4004),e=p(8421),f=p(4482),M=p(9672),a=p(5403),d=p(576);function N(h,A,D=1/0){return(0,d.m)(A)?N((w,S)=>(0,t.U)((I,L)=>A(w,I,S,L))((0,e.Xf)(h(w,S))),D):("number"==typeof A&&(D=A),(0,f.e)((w,S)=>function b(h,A,D,w,S,I,L,U){const Z=[];let j=0,ne=0,X=!1;const de=()=>{X&&!Z.length&&!j&&A.complete()},ee=ce=>j{I&&A.next(ce),j++;let J=!1;(0,e.Xf)(D(ce,ne++)).subscribe((0,a.x)(A,ge=>{null==S||S(ge),I?ee(ge):A.next(ge)},()=>{J=!0},void 0,()=>{if(J)try{for(j--;Z.length&&jte(ge)):te(ge)}de()}catch(ge){A.error(ge)}}))};return h.subscribe((0,a.x)(A,ee,()=>{X=!0,de()})),()=>{null==U||U()}}(w,S,h,D)))}},5363:(Fe,Y,p)=>{"use strict";p.d(Y,{Q:()=>M});var t=p(9672),e=p(4482),f=p(5403);function M(a,b=0){return(0,e.e)((d,N)=>{d.subscribe((0,f.x)(N,h=>(0,t.f)(N,a,()=>N.next(h),b),()=>(0,t.f)(N,a,()=>N.complete(),b),h=>(0,t.f)(N,a,()=>N.error(h),b)))})}},5026:(Fe,Y,p)=>{"use strict";p.d(Y,{R:()=>M});var t=p(4482),e=p(5403);function f(a,b,d,N,h){return(A,D)=>{let w=d,S=b,I=0;A.subscribe((0,e.x)(D,L=>{const U=I++;S=w?a(S,L,U):(w=!0,L),N&&D.next(S)},h&&(()=>{w&&D.next(S),D.complete()})))}}function M(a,b){return(0,t.e)(f(a,b,arguments.length>=2,!0))}},3099:(Fe,Y,p)=>{"use strict";p.d(Y,{B:()=>a});var t=p(8421),e=p(7579),f=p(930),M=p(4482);function a(d={}){const{connector:N=(()=>new e.x),resetOnError:h=!0,resetOnComplete:A=!0,resetOnRefCountZero:D=!0}=d;return w=>{let S,I,L,U=0,Z=!1,j=!1;const ne=()=>{null==I||I.unsubscribe(),I=void 0},X=()=>{ne(),S=L=void 0,Z=j=!1},de=()=>{const ee=S;X(),null==ee||ee.unsubscribe()};return(0,M.e)((ee,te)=>{U++,!j&&!Z&&ne();const ce=L=null!=L?L:N();te.add(()=>{U--,0===U&&!j&&!Z&&(I=b(de,D))}),ce.subscribe(te),!S&&U>0&&(S=new f.Hp({next:J=>ce.next(J),error:J=>{j=!0,ne(),I=b(X,h,J),ce.error(J)},complete:()=>{Z=!0,ne(),I=b(X,A),ce.complete()}}),(0,t.Xf)(ee).subscribe(S))})(w)}}function b(d,N,...h){if(!0===N)return void d();if(!1===N)return;const A=new f.Hp({next:()=>{A.unsubscribe(),d()}});return N(...h).subscribe(A)}},5684:(Fe,Y,p)=>{"use strict";p.d(Y,{T:()=>e});var t=p(9300);function e(f){return(0,t.h)((M,a)=>f<=a)}},8675:(Fe,Y,p)=>{"use strict";p.d(Y,{O:()=>M});var t=p(7272),e=p(3269),f=p(4482);function M(...a){const b=(0,e.yG)(a);return(0,f.e)((d,N)=>{(b?(0,t.z)(a,d,b):(0,t.z)(a,d)).subscribe(N)})}},3900:(Fe,Y,p)=>{"use strict";p.d(Y,{w:()=>M});var t=p(8421),e=p(4482),f=p(5403);function M(a,b){return(0,e.e)((d,N)=>{let h=null,A=0,D=!1;const w=()=>D&&!h&&N.complete();d.subscribe((0,f.x)(N,S=>{null==h||h.unsubscribe();let I=0;const L=A++;(0,t.Xf)(a(S,L)).subscribe(h=(0,f.x)(N,U=>N.next(b?b(S,U,L,I++):U),()=>{h=null,w()}))},()=>{D=!0,w()}))})}},5698:(Fe,Y,p)=>{"use strict";p.d(Y,{q:()=>M});var t=p(515),e=p(4482),f=p(5403);function M(a){return a<=0?()=>t.E:(0,e.e)((b,d)=>{let N=0;b.subscribe((0,f.x)(d,h=>{++N<=a&&(d.next(h),a<=N&&d.complete())}))})}},2722:(Fe,Y,p)=>{"use strict";p.d(Y,{R:()=>a});var t=p(4482),e=p(5403),f=p(8421),M=p(5032);function a(b){return(0,t.e)((d,N)=>{(0,f.Xf)(b).subscribe((0,e.x)(N,()=>N.complete(),M.Z)),!N.closed&&d.subscribe(N)})}},8505:(Fe,Y,p)=>{"use strict";p.d(Y,{b:()=>a});var t=p(576),e=p(4482),f=p(5403),M=p(4671);function a(b,d,N){const h=(0,t.m)(b)||d||N?{next:b,error:d,complete:N}:b;return h?(0,e.e)((A,D)=>{var w;null===(w=h.subscribe)||void 0===w||w.call(h);let S=!0;A.subscribe((0,f.x)(D,I=>{var L;null===(L=h.next)||void 0===L||L.call(h,I),D.next(I)},()=>{var I;S=!1,null===(I=h.complete)||void 0===I||I.call(h),D.complete()},I=>{var L;S=!1,null===(L=h.error)||void 0===L||L.call(h,I),D.error(I)},()=>{var I,L;S&&(null===(I=h.unsubscribe)||void 0===I||I.call(h)),null===(L=h.finalize)||void 0===L||L.call(h)}))}):M.y}},8068:(Fe,Y,p)=>{"use strict";p.d(Y,{T:()=>M});var t=p(6805),e=p(4482),f=p(5403);function M(b=a){return(0,e.e)((d,N)=>{let h=!1;d.subscribe((0,f.x)(N,A=>{h=!0,N.next(A)},()=>h?N.complete():N.error(b())))})}function a(){return new t.K}},7414:(Fe,Y,p)=>{"use strict";p.d(Y,{V:()=>h});var t=p(4986),e=p(1165),f=p(4482),M=p(8421),a=p(3888),b=p(5403),d=p(9672);const N=(0,a.d)(D=>function(S=null){D(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=S});function h(D,w){const{first:S,each:I,with:L=A,scheduler:U=(null!=w?w:t.z),meta:Z=null}=(0,e.q)(D)?{first:D}:"number"==typeof D?{each:D}:D;if(null==S&&null==I)throw new TypeError("No timeout provided.");return(0,f.e)((j,ne)=>{let X,de,ee=null,te=0;const ce=J=>{de=(0,d.f)(ne,U,()=>{try{X.unsubscribe(),(0,M.Xf)(L({meta:Z,lastValue:ee,seen:te})).subscribe(ne)}catch(ge){ne.error(ge)}},J)};X=j.subscribe((0,b.x)(ne,J=>{null==de||de.unsubscribe(),te++,ne.next(ee=J),I>0&&ce(I)},void 0,void 0,()=>{(null==de?void 0:de.closed)||null==de||de.unsubscribe(),ee=null})),!te&&ce(null!=S?"number"==typeof S?S:+S-U.now():I)})}function A(D){throw new N(D)}},1365:(Fe,Y,p)=>{"use strict";p.d(Y,{M:()=>d});var t=p(4482),e=p(5403),f=p(8421),M=p(4671),a=p(5032),b=p(3269);function d(...N){const h=(0,b.jO)(N);return(0,t.e)((A,D)=>{const w=N.length,S=new Array(w);let I=N.map(()=>!1),L=!1;for(let U=0;U{S[U]=Z,!L&&!I[U]&&(I[U]=!0,(L=I.every(M.y))&&(I=null))},a.Z));A.subscribe((0,e.x)(D,U=>{if(L){const Z=[U,...S];D.next(h?h(...Z):Z)}}))})}},4408:(Fe,Y,p)=>{"use strict";p.d(Y,{o:()=>a});var t=p(727);class e extends t.w0{constructor(d,N){super()}schedule(d,N=0){return this}}const f={setInterval(b,d,...N){const{delegate:h}=f;return(null==h?void 0:h.setInterval)?h.setInterval(b,d,...N):setInterval(b,d,...N)},clearInterval(b){const{delegate:d}=f;return((null==d?void 0:d.clearInterval)||clearInterval)(b)},delegate:void 0};var M=p(8737);class a extends e{constructor(d,N){super(d,N),this.scheduler=d,this.work=N,this.pending=!1}schedule(d,N=0){if(this.closed)return this;this.state=d;const h=this.id,A=this.scheduler;return null!=h&&(this.id=this.recycleAsyncId(A,h,N)),this.pending=!0,this.delay=N,this.id=this.id||this.requestAsyncId(A,this.id,N),this}requestAsyncId(d,N,h=0){return f.setInterval(d.flush.bind(d,this),h)}recycleAsyncId(d,N,h=0){if(null!=h&&this.delay===h&&!1===this.pending)return N;f.clearInterval(N)}execute(d,N){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const h=this._execute(d,N);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,N){let A,h=!1;try{this.work(d)}catch(D){h=!0,A=D||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),A}unsubscribe(){if(!this.closed){const{id:d,scheduler:N}=this,{actions:h}=N;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(h,this),null!=d&&(this.id=this.recycleAsyncId(N,d,null)),this.delay=null,super.unsubscribe()}}}},7565:(Fe,Y,p)=>{"use strict";p.d(Y,{v:()=>f});var t=p(6063);class e{constructor(a,b=e.now){this.schedulerActionCtor=a,this.now=b}schedule(a,b=0,d){return new this.schedulerActionCtor(this,a).schedule(d,b)}}e.now=t.l.now;class f extends e{constructor(a,b=e.now){super(a,b),this.actions=[],this._active=!1,this._scheduled=void 0}flush(a){const{actions:b}=this;if(this._active)return void b.push(a);let d;this._active=!0;do{if(d=a.execute(a.state,a.delay))break}while(a=b.shift());if(this._active=!1,d){for(;a=b.shift();)a.unsubscribe();throw d}}}},3101:(Fe,Y,p)=>{"use strict";p.d(Y,{E:()=>I});var t=p(4408);let f,e=1;const M={};function a(U){return U in M&&(delete M[U],!0)}const b={setImmediate(U){const Z=e++;return M[Z]=!0,f||(f=Promise.resolve()),f.then(()=>a(Z)&&U()),Z},clearImmediate(U){a(U)}},{setImmediate:N,clearImmediate:h}=b,A={setImmediate(...U){const{delegate:Z}=A;return((null==Z?void 0:Z.setImmediate)||N)(...U)},clearImmediate(U){const{delegate:Z}=A;return((null==Z?void 0:Z.clearImmediate)||h)(U)},delegate:void 0};var w=p(7565);const I=new class S extends w.v{flush(Z){this._active=!0;const j=this._scheduled;this._scheduled=void 0;const{actions:ne}=this;let X;Z=Z||ne.shift();do{if(X=Z.execute(Z.state,Z.delay))break}while((Z=ne[0])&&Z.id===j&&ne.shift());if(this._active=!1,X){for(;(Z=ne[0])&&Z.id===j&&ne.shift();)Z.unsubscribe();throw X}}}(class D extends t.o{constructor(Z,j){super(Z,j),this.scheduler=Z,this.work=j}requestAsyncId(Z,j,ne=0){return null!==ne&&ne>0?super.requestAsyncId(Z,j,ne):(Z.actions.push(this),Z._scheduled||(Z._scheduled=A.setImmediate(Z.flush.bind(Z,void 0))))}recycleAsyncId(Z,j,ne=0){if(null!=ne&&ne>0||null==ne&&this.delay>0)return super.recycleAsyncId(Z,j,ne);Z.actions.some(X=>X.id===j)||(A.clearImmediate(j),Z._scheduled=void 0)}})},4986:(Fe,Y,p)=>{"use strict";p.d(Y,{P:()=>M,z:()=>f});var t=p(4408);const f=new(p(7565).v)(t.o),M=f},6063:(Fe,Y,p)=>{"use strict";p.d(Y,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(Fe,Y,p)=>{"use strict";p.d(Y,{N:()=>a});var t=p(4408),f=p(7565);const a=new class M extends f.v{}(class e extends t.o{constructor(N,h){super(N,h),this.scheduler=N,this.work=h}schedule(N,h=0){return h>0?super.schedule(N,h):(this.delay=h,this.state=N,this.scheduler.flush(this),this)}execute(N,h){return h>0||this.closed?super.execute(N,h):this._execute(N,h)}requestAsyncId(N,h,A=0){return null!=A&&A>0||null==A&&this.delay>0?super.requestAsyncId(N,h,A):N.flush(this)}})},3410:(Fe,Y,p)=>{"use strict";p.d(Y,{z:()=>t});const t={setTimeout(e,f,...M){const{delegate:a}=t;return(null==a?void 0:a.setTimeout)?a.setTimeout(e,f,...M):setTimeout(e,f,...M)},clearTimeout(e){const{delegate:f}=t;return((null==f?void 0:f.clearTimeout)||clearTimeout)(e)},delegate:void 0}},2202:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Fe,Y,p)=>{"use strict";p.d(Y,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Fe,Y,p)=>{"use strict";p.d(Y,{K:()=>e});const e=(0,p(3888).d)(f=>function(){f(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Fe,Y,p)=>{"use strict";p.d(Y,{_6:()=>b,jO:()=>M,yG:()=>a});var t=p(576),e=p(3532);function f(d){return d[d.length-1]}function M(d){return(0,t.m)(f(d))?d.pop():void 0}function a(d){return(0,e.K)(f(d))?d.pop():void 0}function b(d,N){return"number"==typeof f(d)?d.pop():N}},4742:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>a});const{isArray:t}=Array,{getPrototypeOf:e,prototype:f,keys:M}=Object;function a(d){if(1===d.length){const N=d[0];if(t(N))return{args:N,keys:null};if(function b(d){return d&&"object"==typeof d&&e(d)===f}(N)){const h=M(N);return{args:h.map(A=>N[A]),keys:h}}}return{args:d,keys:null}}},8737:(Fe,Y,p)=>{"use strict";function t(e,f){if(e){const M=e.indexOf(f);0<=M&&e.splice(M,1)}}p.d(Y,{P:()=>t})},3888:(Fe,Y,p)=>{"use strict";function t(e){const M=e(a=>{Error.call(a),a.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}p.d(Y,{d:()=>t})},1810:(Fe,Y,p)=>{"use strict";function t(e,f){return e.reduce((M,a,b)=>(M[a]=f[b],M),{})}p.d(Y,{n:()=>t})},2806:(Fe,Y,p)=>{"use strict";p.d(Y,{O:()=>M,x:()=>f});var t=p(2416);let e=null;function f(a){if(t.v.useDeprecatedSynchronousErrorHandling){const b=!e;if(b&&(e={errorThrown:!1,error:null}),a(),b){const{errorThrown:d,error:N}=e;if(e=null,d)throw N}}else a()}function M(a){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=a)}},9672:(Fe,Y,p)=>{"use strict";function t(e,f,M,a=0,b=!1){const d=f.schedule(function(){M(),b?e.add(this.schedule(null,a)):this.unsubscribe()},a);if(e.add(d),!b)return d}p.d(Y,{f:()=>t})},4671:(Fe,Y,p)=>{"use strict";function t(e){return e}p.d(Y,{y:()=>t})},1144:(Fe,Y,p)=>{"use strict";p.d(Y,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(Fe,Y,p)=>{"use strict";p.d(Y,{D:()=>e});var t=p(576);function e(f){return Symbol.asyncIterator&&(0,t.m)(null==f?void 0:f[Symbol.asyncIterator])}},1165:(Fe,Y,p)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}p.d(Y,{q:()=>t})},576:(Fe,Y,p)=>{"use strict";function t(e){return"function"==typeof e}p.d(Y,{m:()=>t})},3670:(Fe,Y,p)=>{"use strict";p.d(Y,{c:()=>f});var t=p(8822),e=p(576);function f(M){return(0,e.m)(M[t.L])}},6495:(Fe,Y,p)=>{"use strict";p.d(Y,{T:()=>f});var t=p(2202),e=p(576);function f(M){return(0,e.m)(null==M?void 0:M[t.h])}},5191:(Fe,Y,p)=>{"use strict";p.d(Y,{b:()=>f});var t=p(8306),e=p(576);function f(M){return!!M&&(M instanceof t.y||(0,e.m)(M.lift)&&(0,e.m)(M.subscribe))}},8239:(Fe,Y,p)=>{"use strict";p.d(Y,{t:()=>e});var t=p(576);function e(f){return(0,t.m)(null==f?void 0:f.then)}},3260:(Fe,Y,p)=>{"use strict";p.d(Y,{L:()=>M,Q:()=>f});var t=p(655),e=p(576);function f(a){return(0,t.FC)(this,arguments,function*(){const d=a.getReader();try{for(;;){const{value:N,done:h}=yield(0,t.qq)(d.read());if(h)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(N)}}finally{d.releaseLock()}})}function M(a){return(0,e.m)(null==a?void 0:a.getReader)}},3532:(Fe,Y,p)=>{"use strict";p.d(Y,{K:()=>e});var t=p(576);function e(f){return f&&(0,t.m)(f.schedule)}},4482:(Fe,Y,p)=>{"use strict";p.d(Y,{A:()=>e,e:()=>f});var t=p(576);function e(M){return(0,t.m)(null==M?void 0:M.lift)}function f(M){return a=>{if(e(a))return a.lift(function(b){try{return M(b,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Fe,Y,p)=>{"use strict";p.d(Y,{Z:()=>M});var t=p(4004);const{isArray:e}=Array;function M(a){return(0,t.U)(b=>function f(a,b){return e(b)?a(...b):a(b)}(a,b))}},5032:(Fe,Y,p)=>{"use strict";function t(){}p.d(Y,{Z:()=>t})},7849:(Fe,Y,p)=>{"use strict";p.d(Y,{h:()=>f});var t=p(2416),e=p(3410);function f(M){e.z.setTimeout(()=>{const{onUnhandledError:a}=t.v;if(!a)throw M;a(M)})}},4532:(Fe,Y,p)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(Y,{z:()=>t})},3502:(Fe,Y,p)=>{var t=p(3172),e=t.Buffer;function f(a,b){for(var d in a)b[d]=a[d]}function M(a,b,d){return e(a,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Fe.exports=t:(f(t,Y),Y.Buffer=M),f(e,M),M.from=function(a,b,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,b,d)},M.alloc=function(a,b,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var N=e(a);return void 0!==b?"string"==typeof d?N.fill(b,d):N.fill(b):N.fill(0),N},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},2038:(Fe,Y,p)=>{"use strict";var M,t=p(3172),e=t.Buffer,f={};for(M in t)!t.hasOwnProperty(M)||"SlowBuffer"===M||"Buffer"===M||(f[M]=t[M]);var a=f.Buffer={};for(M in e)!e.hasOwnProperty(M)||"allocUnsafe"===M||"allocUnsafeSlow"===M||(a[M]=e[M]);if(f.Buffer.prototype=e.prototype,(!a.from||a.from===Uint8Array.from)&&(a.from=function(b,d,N){if("number"==typeof b)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof b);if(b&&void 0===b.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);return e(b,d,N)}),a.alloc||(a.alloc=function(b,d,N){if("number"!=typeof b)throw new TypeError('The "size" argument must be of type number. Received type '+typeof b);if(b<0||b>=2*(1<<30))throw new RangeError('The value "'+b+'" is invalid for option "size"');var h=e(b);return d&&0!==d.length?"string"==typeof N?h.fill(d,N):h.fill(d):h.fill(0),h}),!f.kStringMaxLength)try{f.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(b){}f.constants||(f.constants={MAX_LENGTH:f.kMaxLength},f.kStringMaxLength&&(f.constants.MAX_STRING_LENGTH=f.kStringMaxLength)),Fe.exports=f},6692:(Fe,Y,p)=>{var t=p(3502).Buffer;function e(f,M){this._block=t.alloc(f),this._finalSize=M,this._blockSize=f,this._len=0}e.prototype.update=function(f,M){"string"==typeof f&&(f=t.from(f,M=M||"utf8"));for(var a=this._block,b=this._blockSize,d=f.length,N=this._len,h=0;h=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 b=(4294967295&a)>>>0;this._block.writeUInt32BE((a-b)/4294967296,this._blockSize-8),this._block.writeUInt32BE(b,this._blockSize-4)}this._update(this._block);var N=this._hash();return f?N.toString(f):N},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Fe.exports=e},5244:(Fe,Y,p)=>{var t=Fe.exports=function(f){f=f.toLowerCase();var M=t[f];if(!M)throw new Error(f+" is not supported (we accept pull requests)");return new M};t.sha=p(8932),t.sha1=p(7736),t.sha224=p(5044),t.sha256=p(5014),t.sha384=p(6540),t.sha512=p(117)},8932:(Fe,Y,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function b(){this.init(),this._w=a,e.call(this,64,56)}function d(A){return A<<5|A>>>27}function N(A){return A<<30|A>>>2}function h(A,D,w,S){return 0===A?D&w|~D&S:2===A?D&w|D&S|w&S:D^w^S}t(b,e),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},b.prototype._update=function(A){for(var D=this._w,w=0|this._a,S=0|this._b,I=0|this._c,L=0|this._d,U=0|this._e,Z=0;Z<16;++Z)D[Z]=A.readInt32BE(4*Z);for(;Z<80;++Z)D[Z]=D[Z-3]^D[Z-8]^D[Z-14]^D[Z-16];for(var j=0;j<80;++j){var ne=~~(j/20),X=d(w)+h(ne,S,I,L)+U+D[j]+M[ne]|0;U=L,L=I,I=N(S),S=w,w=X}this._a=w+this._a|0,this._b=S+this._b|0,this._c=I+this._c|0,this._d=L+this._d|0,this._e=U+this._e|0},b.prototype._hash=function(){var A=f.allocUnsafe(20);return A.writeInt32BE(0|this._a,0),A.writeInt32BE(0|this._b,4),A.writeInt32BE(0|this._c,8),A.writeInt32BE(0|this._d,12),A.writeInt32BE(0|this._e,16),A},Fe.exports=b},7736:(Fe,Y,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function b(){this.init(),this._w=a,e.call(this,64,56)}function d(D){return D<<1|D>>>31}function N(D){return D<<5|D>>>27}function h(D){return D<<30|D>>>2}function A(D,w,S,I){return 0===D?w&S|~w&I:2===D?w&S|w&I|S&I:w^S^I}t(b,e),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},b.prototype._update=function(D){for(var w=this._w,S=0|this._a,I=0|this._b,L=0|this._c,U=0|this._d,Z=0|this._e,j=0;j<16;++j)w[j]=D.readInt32BE(4*j);for(;j<80;++j)w[j]=d(w[j-3]^w[j-8]^w[j-14]^w[j-16]);for(var ne=0;ne<80;++ne){var X=~~(ne/20),de=N(S)+A(X,I,L,U)+Z+w[ne]+M[X]|0;Z=U,U=L,L=h(I),I=S,S=de}this._a=S+this._a|0,this._b=I+this._b|0,this._c=L+this._c|0,this._d=U+this._d|0,this._e=Z+this._e|0},b.prototype._hash=function(){var D=f.allocUnsafe(20);return D.writeInt32BE(0|this._a,0),D.writeInt32BE(0|this._b,4),D.writeInt32BE(0|this._c,8),D.writeInt32BE(0|this._d,12),D.writeInt32BE(0|this._e,16),D},Fe.exports=b},5044:(Fe,Y,p)=>{var t=p(3894),e=p(5014),f=p(6692),M=p(3502).Buffer,a=new Array(64);function b(){this.init(),this._w=a,f.call(this,64,56)}t(b,e),b.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},b.prototype._hash=function(){var d=M.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},Fe.exports=b},5014:(Fe,Y,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[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 b(){this.init(),this._w=a,e.call(this,64,56)}function d(S,I,L){return L^S&(I^L)}function N(S,I,L){return S&I|L&(S|I)}function h(S){return(S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10)}function A(S){return(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7)}function D(S){return(S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3}function w(S){return(S>>>17|S<<15)^(S>>>19|S<<13)^S>>>10}t(b,e),b.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},b.prototype._update=function(S){for(var I=this._w,L=0|this._a,U=0|this._b,Z=0|this._c,j=0|this._d,ne=0|this._e,X=0|this._f,de=0|this._g,ee=0|this._h,te=0;te<16;++te)I[te]=S.readInt32BE(4*te);for(;te<64;++te)I[te]=w(I[te-2])+I[te-7]+D(I[te-15])+I[te-16]|0;for(var ce=0;ce<64;++ce){var J=ee+A(ne)+d(ne,X,de)+M[ce]+I[ce]|0,ge=h(L)+N(L,U,Z)|0;ee=de,de=X,X=ne,ne=j+J|0,j=Z,Z=U,U=L,L=J+ge|0}this._a=L+this._a|0,this._b=U+this._b|0,this._c=Z+this._c|0,this._d=j+this._d|0,this._e=ne+this._e|0,this._f=X+this._f|0,this._g=de+this._g|0,this._h=ee+this._h|0},b.prototype._hash=function(){var S=f.allocUnsafe(32);return S.writeInt32BE(this._a,0),S.writeInt32BE(this._b,4),S.writeInt32BE(this._c,8),S.writeInt32BE(this._d,12),S.writeInt32BE(this._e,16),S.writeInt32BE(this._f,20),S.writeInt32BE(this._g,24),S.writeInt32BE(this._h,28),S},Fe.exports=b},6540:(Fe,Y,p)=>{var t=p(3894),e=p(117),f=p(6692),M=p(3502).Buffer,a=new Array(160);function b(){this.init(),this._w=a,f.call(this,128,112)}t(b,e),b.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},b.prototype._hash=function(){var d=M.allocUnsafe(48);function N(h,A,D){d.writeInt32BE(h,D),d.writeInt32BE(A,D+4)}return N(this._ah,this._al,0),N(this._bh,this._bl,8),N(this._ch,this._cl,16),N(this._dh,this._dl,24),N(this._eh,this._el,32),N(this._fh,this._fl,40),d},Fe.exports=b},117:(Fe,Y,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[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 b(){this.init(),this._w=a,e.call(this,128,112)}function d(U,Z,j){return j^U&(Z^j)}function N(U,Z,j){return U&Z|j&(U|Z)}function h(U,Z){return(U>>>28|Z<<4)^(Z>>>2|U<<30)^(Z>>>7|U<<25)}function A(U,Z){return(U>>>14|Z<<18)^(U>>>18|Z<<14)^(Z>>>9|U<<23)}function D(U,Z){return(U>>>1|Z<<31)^(U>>>8|Z<<24)^U>>>7}function w(U,Z){return(U>>>1|Z<<31)^(U>>>8|Z<<24)^(U>>>7|Z<<25)}function S(U,Z){return(U>>>19|Z<<13)^(Z>>>29|U<<3)^U>>>6}function I(U,Z){return(U>>>19|Z<<13)^(Z>>>29|U<<3)^(U>>>6|Z<<26)}function L(U,Z){return U>>>0>>0?1:0}t(b,e),b.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},b.prototype._update=function(U){for(var Z=this._w,j=0|this._ah,ne=0|this._bh,X=0|this._ch,de=0|this._dh,ee=0|this._eh,te=0|this._fh,ce=0|this._gh,J=0|this._hh,ge=0|this._al,y=0|this._bl,i=0|this._cl,r=0|this._dl,u=0|this._el,c=0|this._fl,C=0|this._gl,E=0|this._hl,O=0;O<32;O+=2)Z[O]=U.readInt32BE(4*O),Z[O+1]=U.readInt32BE(4*O+4);for(;O<160;O+=2){var _=Z[O-30],n=Z[O-30+1],v=D(_,n),B=w(n,_),P=S(_=Z[O-4],n=Z[O-4+1]),z=I(n,_),xe=Z[O-32],Re=Z[O-32+1],we=B+Z[O-14+1]|0,Q=v+Z[O-14]+L(we,B)|0;Q=(Q=Q+P+L(we=we+z|0,z)|0)+xe+L(we=we+Re|0,Re)|0,Z[O]=Q,Z[O+1]=we}for(var Ge=0;Ge<160;Ge+=2){Q=Z[Ge],we=Z[Ge+1];var ve=N(j,ne,X),F=N(ge,y,i),Ae=h(j,ge),lt=h(ge,j),Ie=A(ee,u),De=A(u,ee),oe=M[Ge],Te=M[Ge+1],ye=d(ee,te,ce),W=d(u,c,C),$=E+De|0,ue=J+Ie+L($,E)|0;ue=(ue=(ue=ue+ye+L($=$+W|0,W)|0)+oe+L($=$+Te|0,Te)|0)+Q+L($=$+we|0,we)|0;var Ce=lt+F|0,Le=Ae+ve+L(Ce,lt)|0;J=ce,E=C,ce=te,C=c,te=ee,c=u,ee=de+ue+L(u=r+$|0,r)|0,de=X,r=i,X=ne,i=y,ne=j,y=ge,j=ue+Le+L(ge=$+Ce|0,$)|0}this._al=this._al+ge|0,this._bl=this._bl+y|0,this._cl=this._cl+i|0,this._dl=this._dl+r|0,this._el=this._el+u|0,this._fl=this._fl+c|0,this._gl=this._gl+C|0,this._hl=this._hl+E|0,this._ah=this._ah+j+L(this._al,ge)|0,this._bh=this._bh+ne+L(this._bl,y)|0,this._ch=this._ch+X+L(this._cl,i)|0,this._dh=this._dh+de+L(this._dl,r)|0,this._eh=this._eh+ee+L(this._el,u)|0,this._fh=this._fh+te+L(this._fl,c)|0,this._gh=this._gh+ce+L(this._gl,C)|0,this._hh=this._hh+J+L(this._hl,E)|0},b.prototype._hash=function(){var U=f.allocUnsafe(64);function Z(j,ne,X){U.writeInt32BE(j,X),U.writeInt32BE(ne,X+4)}return Z(this._ah,this._al,0),Z(this._bh,this._bl,8),Z(this._ch,this._cl,16),Z(this._dh,this._dl,24),Z(this._eh,this._el,32),Z(this._fh,this._fl,40),Z(this._gh,this._gl,48),Z(this._hh,this._hl,56),U},Fe.exports=b},8012:function(Fe,Y,p){!function(t){"use strict";var e={};Fe.exports?(e.bytesToHex=p(6128).bytesToHex,e.convertString=p(5612),Fe.exports=N):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=N);var f=[];!function(){function h(S){for(var I=Math.sqrt(S),L=2;L<=I;L++)if(!(S%L))return!1;return!0}for(var D=2,w=0;w<64;)h(D)&&(f[w]=4294967296*((S=Math.pow(D,1/3))-(0|S))|0,w++),D++;var S}();var b=[],d=function(h,A,D){for(var w=h[0],S=h[1],I=h[2],L=h[3],U=h[4],Z=h[5],j=h[6],ne=h[7],X=0;X<64;X++){if(X<16)b[X]=0|A[D+X];else{var de=b[X-15],te=b[X-2];b[X]=((de<<25|de>>>7)^(de<<14|de>>>18)^de>>>3)+b[X-7]+((te<<15|te>>>17)^(te<<13|te>>>19)^te>>>10)+b[X-16]}var ge=w&S^w&I^S&I,r=ne+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&Z^~U&j)+f[X]+b[X];ne=j,j=Z,Z=U,U=L+r|0,L=I,I=S,S=w,w=r+(((w<<30|w>>>2)^(w<<19|w>>>13)^(w<<10|w>>>22))+ge)|0}h[0]=h[0]+w|0,h[1]=h[1]+S|0,h[2]=h[2]+I|0,h[3]=h[3]+L|0,h[4]=h[4]+U|0,h[5]=h[5]+Z|0,h[6]=h[6]+j|0,h[7]=h[7]+ne|0};function N(h,A){h.constructor===String&&(h=e.convertString.UTF8.stringToBytes(h));var D=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],w=function(h){for(var A=[],D=0,w=0;D>>5]|=h[D]<<24-w%32;return A}(h),S=8*h.length;w[S>>5]|=128<<24-S%32,w[15+(S+64>>9<<4)]=S;for(var I=0;I>>5]>>>24-D%32&255);return A}(D);return A&&A.asBytes?L:A&&A.asString?e.convertString.bytesToString(L):e.bytesToHex(L)}N.x2=function(h,A){return N(N(h,{asBytes:!0}),A)}}(this)},4315:(Fe,Y,p)=>{"use strict";const t=Symbol.prototype.valueOf,e=p(2872);Fe.exports=function f(h,A){switch(e(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const A=h.length,D=Buffer.allocUnsafe?Buffer.allocUnsafe(A):Buffer.from(A);return h.copy(D),D}(h);case"symbol":return function N(h){return t?Object(t.call(h)):{}}(h);case"arraybuffer":return function a(h){const A=new h.constructor(h.byteLength);return new Uint8Array(A).set(new Uint8Array(h)),A}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function b(h,A){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function M(h){const A=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,D=new h.constructor(h.source,A);return D.lastIndex=h.lastIndex,D}(h);case"error":return Object.create(h);default:return h}}},295:(Fe,Y,p)=>{Fe.exports=f;var t=p(9069).EventEmitter;function f(){t.call(this)}p(3894)(f,t),f.Readable=p(3154),f.Writable=p(520),f.Duplex=p(1339),f.Transform=p(6025),f.PassThrough=p(6071),f.finished=p(7542),f.pipeline=p(954),f.Stream=f,f.prototype.pipe=function(M,a){var b=this;function d(I){M.writable&&!1===M.write(I)&&b.pause&&b.pause()}function N(){b.readable&&b.resume&&b.resume()}b.on("data",d),M.on("drain",N),!M._isStdio&&(!a||!1!==a.end)&&(b.on("end",A),b.on("close",D));var h=!1;function A(){h||(h=!0,M.end())}function D(){h||(h=!0,"function"==typeof M.destroy&&M.destroy())}function w(I){if(S(),0===t.listenerCount(this,"error"))throw I}function S(){b.removeListener("data",d),M.removeListener("drain",N),b.removeListener("end",A),b.removeListener("close",D),b.removeListener("error",w),M.removeListener("error",w),b.removeListener("end",S),b.removeListener("close",S),M.removeListener("close",S)}return b.on("error",w),M.on("error",w),b.on("end",S),b.on("close",S),M.on("close",S),M.emit("pipe",b),M}},3054:(Fe,Y,p)=>{"use strict";var t=p(858).Buffer,e=t.isEncoding||function(j){switch((j=""+j)&&j.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(j){var ne;switch(this.encoding=function M(j){var ne=function f(j){if(!j)return"utf8";for(var ne;;)switch(j){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 j;default:if(ne)return;j=(""+j).toLowerCase(),ne=!0}}(j);if("string"!=typeof ne&&(t.isEncoding===e||!e(j)))throw new Error("Unknown encoding: "+j);return ne||j}(j),this.encoding){case"utf16le":this.text=w,this.end=S,ne=4;break;case"utf8":this.fillLast=h,ne=4;break;case"base64":this.text=I,this.end=L,ne=3;break;default:return this.write=U,void(this.end=Z)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(ne)}function b(j){return j<=127?0:j>>5==6?2:j>>4==14?3:j>>3==30?4:j>>6==2?-1:-2}function h(j){var ne=this.lastTotal-this.lastNeed,X=function N(j,ne,X){if(128!=(192&ne[0]))return j.lastNeed=0,"\ufffd";if(j.lastNeed>1&&ne.length>1){if(128!=(192&ne[1]))return j.lastNeed=1,"\ufffd";if(j.lastNeed>2&&ne.length>2&&128!=(192&ne[2]))return j.lastNeed=2,"\ufffd"}}(this,j);return void 0!==X?X:this.lastNeed<=j.length?(j.copy(this.lastChar,ne,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(j.copy(this.lastChar,ne,0,j.length),void(this.lastNeed-=j.length))}function w(j,ne){if((j.length-ne)%2==0){var X=j.toString("utf16le",ne);if(X){var de=X.charCodeAt(X.length-1);if(de>=55296&&de<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1],X.slice(0,-1)}return X}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=j[j.length-1],j.toString("utf16le",ne,j.length-1)}function S(j){var ne=j&&j.length?this.write(j):"";return this.lastNeed?ne+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ne}function I(j,ne){var X=(j.length-ne)%3;return 0===X?j.toString("base64",ne):(this.lastNeed=3-X,this.lastTotal=3,1===X?this.lastChar[0]=j[j.length-1]:(this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1]),j.toString("base64",ne,j.length-X))}function L(j){var ne=j&&j.length?this.write(j):"";return this.lastNeed?ne+this.lastChar.toString("base64",0,3-this.lastNeed):ne}function U(j){return j.toString(this.encoding)}function Z(j){return j&&j.length?this.write(j):""}Y.s=a,a.prototype.write=function(j){if(0===j.length)return"";var ne,X;if(this.lastNeed){if(void 0===(ne=this.fillLast(j)))return"";X=this.lastNeed,this.lastNeed=0}else X=0;return X=0?(ee>0&&(j.lastNeed=ee-1),ee):--de=0?(ee>0&&(j.lastNeed=ee-2),ee):--de=0?(ee>0&&(2===ee?ee=0:j.lastNeed=ee-3),ee):0}(this,j,ne);if(!this.lastNeed)return j.toString("utf8",ne);this.lastTotal=X;var de=j.length-(X-this.lastNeed);return j.copy(this.lastChar,0,de),j.toString("utf8",ne,de)},a.prototype.fillLast=function(j){if(this.lastNeed<=j.length)return j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,j.length),this.lastNeed-=j.length}},858:(Fe,Y,p)=>{var t=p(3172),e=t.Buffer;function f(a,b){for(var d in a)b[d]=a[d]}function M(a,b,d){return e(a,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Fe.exports=t:(f(t,Y),Y.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(a,b,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,b,d)},M.alloc=function(a,b,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var N=e(a);return void 0!==b?"string"==typeof d?N.fill(b,d):N.fill(b):N.fill(0),N},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},2167:(Fe,Y,p)=>{var t=p(4606);Y.encode=t.encode,Y.decode=t.decode},4606:(Fe,Y)=>{"use strict";var t=[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];Y.encode=function(f){Buffer.isBuffer(f)||(f=new Buffer(f));for(var M=0,a=0,b=0,d=0,N=new Buffer(8*function e(f){var M=Math.floor(f.length/5);return f.length%5==0?M:M+1}(f));M3?(d=(d=h&255>>b)<<(b=(b+5)%8)|(M+1>8-b,M++):(d=h>>8-(b+5)&31,0==(b=(b+5)%8)&&M++),N[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(d),a++}for(M=a;M>>(M=(M+5)%8),d++,b=255&a<<8-M)}return N.slice(0,d)}},4364:Fe=>{function p(t){try{if(!global.localStorage)return!1}catch(f){return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}Fe.exports=function Y(t,e){if(p("noDeprecation"))return t;var f=!1;return function M(){if(!f){if(p("throwDeprecation"))throw new Error(e);p("traceDeprecation")?console.trace(e):console.warn(e),f=!0}return t.apply(this,arguments)}}},655:(Fe,Y,p)=>{"use strict";function a(i,r,u,c){var O,C=arguments.length,E=C<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,u):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(i,r,u,c);else for(var _=i.length-1;_>=0;_--)(O=i[_])&&(E=(C<3?O(E):C>3?O(r,u,E):O(r,u))||E);return C>3&&E&&Object.defineProperty(r,u,E),E}function N(i,r,u,c){return new(u||(u=Promise))(function(E,O){function _(B){try{v(c.next(B))}catch(P){O(P)}}function n(B){try{v(c.throw(B))}catch(P){O(P)}}function v(B){B.done?E(B.value):function C(E){return E instanceof u?E:new u(function(O){O(E)})}(B.value).then(_,n)}v((c=c.apply(i,r||[])).next())})}function Z(i){return this instanceof Z?(this.v=i,this):new Z(i)}function j(i,r,u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var C,c=u.apply(i,r||[]),E=[];return C={},O("next"),O("throw"),O("return"),C[Symbol.asyncIterator]=function(){return this},C;function O(z){c[z]&&(C[z]=function(se){return new Promise(function(fe,xe){E.push([z,se,fe,xe])>1||_(z,se)})})}function _(z,se){try{!function n(z){z.value instanceof Z?Promise.resolve(z.value.v).then(v,B):P(E[0][2],z)}(c[z](se))}catch(fe){P(E[0][3],fe)}}function v(z){_("next",z)}function B(z){_("throw",z)}function P(z,se){z(se),E.shift(),E.length&&_(E[0][0],E[0][1])}}function X(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function w(i){var r="function"==typeof Symbol&&Symbol.iterator,u=r&&i[r],c=0;if(u)return u.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u={},c("next"),c("throw"),c("return"),u[Symbol.asyncIterator]=function(){return this},u);function c(E){u[E]=i[E]&&function(O){return new Promise(function(_,n){!function C(E,O,_,n){Promise.resolve(n).then(function(v){E({value:v,done:_})},O)}(_,n,(O=i[E](O)).done,O.value)})}}}p.d(Y,{FC:()=>j,KL:()=>X,gn:()=>a,mG:()=>N,qq:()=>Z})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Fe,Y,p)=>{"use strict";p.d(Y,{F4:()=>A,IO:()=>L,LC:()=>e,SB:()=>h,X$:()=>M,ZE:()=>ne,ZN:()=>j,_j:()=>t,eR:()=>D,jt:()=>a,k1:()=>X,l3:()=>f,oB:()=>N,pV:()=>S,ru:()=>b,vP:()=>d});class t{}class e{}const f="*";function M(de,ee){return{type:7,name:de,definitions:ee,options:{}}}function a(de,ee=null){return{type:4,styles:ee,timings:de}}function b(de,ee=null){return{type:3,steps:de,options:ee}}function d(de,ee=null){return{type:2,steps:de,options:ee}}function N(de){return{type:6,styles:de,offset:null}}function h(de,ee,te){return{type:0,name:de,styles:ee,options:te}}function A(de){return{type:5,steps:de}}function D(de,ee,te=null){return{type:1,expr:de,animation:ee,options:te}}function S(de=null){return{type:9,options:de}}function L(de,ee,te=null){return{type:11,selector:de,animation:ee,options:te}}function Z(de){Promise.resolve(null).then(de)}class j{constructor(ee=0,te=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ee+te}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ee=>ee()),this._onDoneFns=[])}onStart(ee){this._onStartFns.push(ee)}onDone(ee){this._onDoneFns.push(ee)}onDestroy(ee){this._onDestroyFns.push(ee)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ee=>ee()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ee=>ee()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ee){this._position=this.totalTime?ee*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ee){const te="start"==ee?this._onStartFns:this._onDoneFns;te.forEach(ce=>ce()),te.length=0}}class ne{constructor(ee){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ee;let te=0,ce=0,J=0;const ge=this.players.length;0==ge?Z(()=>this._onFinish()):this.players.forEach(y=>{y.onDone(()=>{++te==ge&&this._onFinish()}),y.onDestroy(()=>{++ce==ge&&this._onDestroy()}),y.onStart(()=>{++J==ge&&this._onStart()})}),this.totalTime=this.players.reduce((y,i)=>Math.max(y,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ee=>ee()),this._onDoneFns=[])}init(){this.players.forEach(ee=>ee.init())}onStart(ee){this._onStartFns.push(ee)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ee=>ee()),this._onStartFns=[])}onDone(ee){this._onDoneFns.push(ee)}onDestroy(ee){this._onDestroyFns.push(ee)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ee=>ee.play())}pause(){this.players.forEach(ee=>ee.pause())}restart(){this.players.forEach(ee=>ee.restart())}finish(){this._onFinish(),this.players.forEach(ee=>ee.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ee=>ee.destroy()),this._onDestroyFns.forEach(ee=>ee()),this._onDestroyFns=[])}reset(){this.players.forEach(ee=>ee.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ee){const te=ee*this.totalTime;this.players.forEach(ce=>{const J=ce.totalTime?Math.min(1,te/ce.totalTime):1;ce.setPosition(J)})}getPosition(){const ee=this.players.reduce((te,ce)=>null===te||ce.totalTime>te.totalTime?ce:te,null);return null!=ee?ee.getPosition():0}beforeDestroy(){this.players.forEach(ee=>{ee.beforeDestroy&&ee.beforeDestroy()})}triggerCallback(ee){const te="start"==ee?this._onStartFns:this._onDoneFns;te.forEach(ce=>ce()),te.length=0}}const X="!"},5664:(Fe,Y,p)=>{"use strict";p.d(Y,{$s:()=>y,Em:()=>C,Kd:()=>di,X6:()=>Te,ic:()=>O,kH:()=>Nt,mK:()=>F,qV:()=>ve,qm:()=>$t,rt:()=>jt,s1:()=>c,tE:()=>xt,yG:()=>ye});var t=p(9808),e=p(5e3),f=p(925),M=p(7579),a=p(727),b=p(1135),d=p(9646),N=p(1159),h=p(8505),A=p(8372),D=p(9300),w=p(4004),S=p(5698),I=p(5684),L=p(1884),U=p(2722),Z=p(3191),j=p(7144);function ee(Pe,Oe){return(Pe.getAttribute(Oe)||"").match(/\S+/g)||[]}const ce="cdk-describedby-message",J="cdk-describedby-host";let ge=0,y=(()=>{class Pe{constructor(le,be){this._platform=be,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ge++,this._document=le}describe(le,be,ht){if(!this._canBeDescribed(le,be))return;const ft=i(be,ht);"string"!=typeof be?(r(be),this._messageRegistry.set(ft,{messageElement:be,referenceCount:0})):this._messageRegistry.has(ft)||this._createMessageElement(be,ht),this._isElementDescribedByMessage(le,ft)||this._addMessageReference(le,ft)}removeDescription(le,be,ht){var ft;if(!be||!this._isElementNode(le))return;const Ht=i(be,ht);if(this._isElementDescribedByMessage(le,Ht)&&this._removeMessageReference(le,Ht),"string"==typeof be){const it=this._messageRegistry.get(Ht);it&&0===it.referenceCount&&this._deleteMessageElement(Ht)}0===(null===(ft=this._messagesContainer)||void 0===ft?void 0:ft.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var le;const be=this._document.querySelectorAll(`[${J}="${this._id}"]`);for(let ht=0;ht0!=ht.indexOf(ce));le.setAttribute("aria-describedby",be.join(" "))}_addMessageReference(le,be){const ht=this._messageRegistry.get(be);(function X(Pe,Oe,le){const be=ee(Pe,Oe);be.some(ht=>ht.trim()==le.trim())||(be.push(le.trim()),Pe.setAttribute(Oe,be.join(" ")))})(le,"aria-describedby",ht.messageElement.id),le.setAttribute(J,this._id),ht.referenceCount++}_removeMessageReference(le,be){const ht=this._messageRegistry.get(be);ht.referenceCount--,function de(Pe,Oe,le){const ht=ee(Pe,Oe).filter(ft=>ft!=le.trim());ht.length?Pe.setAttribute(Oe,ht.join(" ")):Pe.removeAttribute(Oe)}(le,"aria-describedby",ht.messageElement.id),le.removeAttribute(J)}_isElementDescribedByMessage(le,be){const ht=ee(le,"aria-describedby"),ft=this._messageRegistry.get(be),Ht=ft&&ft.messageElement.id;return!!Ht&&-1!=ht.indexOf(Ht)}_canBeDescribed(le,be){if(!this._isElementNode(le))return!1;if(be&&"object"==typeof be)return!0;const ht=null==be?"":`${be}`.trim(),ft=le.getAttribute("aria-label");return!(!ht||ft&&ft.trim()===ht)}_isElementNode(le){return le.nodeType===this._document.ELEMENT_NODE}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(t.K0),e.LFG(f.t4))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function i(Pe,Oe){return"string"==typeof Pe?`${Oe||""}/${Pe}`:Pe}function r(Pe){Pe.id||(Pe.id=`${ce}-${ge++}`)}class u{constructor(Oe){this._items=Oe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=a.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=le=>le.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,Oe instanceof e.n_E&&Oe.changes.subscribe(le=>{if(this._activeItem){const ht=le.toArray().indexOf(this._activeItem);ht>-1&&ht!==this._activeItemIndex&&(this._activeItemIndex=ht)}})}skipPredicate(Oe){return this._skipPredicateFn=Oe,this}withWrap(Oe=!0){return this._wrap=Oe,this}withVerticalOrientation(Oe=!0){return this._vertical=Oe,this}withHorizontalOrientation(Oe){return this._horizontal=Oe,this}withAllowedModifierKeys(Oe){return this._allowedModifierKeys=Oe,this}withTypeAhead(Oe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,h.b)(le=>this._pressedLetters.push(le)),(0,A.b)(Oe),(0,D.h)(()=>this._pressedLetters.length>0),(0,w.U)(()=>this._pressedLetters.join(""))).subscribe(le=>{const be=this._getItemsArray();for(let ht=1;ht!Oe[ft]||this._allowedModifierKeys.indexOf(ft)>-1);switch(le){case N.Mf:return void this.tabOut.next();case N.JH:if(this._vertical&&ht){this.setNextItemActive();break}return;case N.LH:if(this._vertical&&ht){this.setPreviousItemActive();break}return;case N.SV:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case N.oh:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case N.Sd:if(this._homeAndEnd&&ht){this.setFirstItemActive();break}return;case N.uR:if(this._homeAndEnd&&ht){this.setLastItemActive();break}return;default:return void((ht||(0,N.Vb)(Oe,"shiftKey"))&&(Oe.key&&1===Oe.key.length?this._letterKeyStream.next(Oe.key.toLocaleUpperCase()):(le>=N.A&&le<=N.Z||le>=N.xE&&le<=N.aO)&&this._letterKeyStream.next(String.fromCharCode(le))))}this._pressedLetters=[],Oe.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(Oe){const le=this._getItemsArray(),be="number"==typeof Oe?Oe:le.indexOf(Oe),ht=le[be];this._activeItem=null==ht?null:ht,this._activeItemIndex=be}_setActiveItemByDelta(Oe){this._wrap?this._setActiveInWrapMode(Oe):this._setActiveInDefaultMode(Oe)}_setActiveInWrapMode(Oe){const le=this._getItemsArray();for(let be=1;be<=le.length;be++){const ht=(this._activeItemIndex+Oe*be+le.length)%le.length;if(!this._skipPredicateFn(le[ht]))return void this.setActiveItem(ht)}}_setActiveInDefaultMode(Oe){this._setActiveItemByIndex(this._activeItemIndex+Oe,Oe)}_setActiveItemByIndex(Oe,le){const be=this._getItemsArray();if(be[Oe]){for(;this._skipPredicateFn(be[Oe]);)if(!be[Oe+=le])return;this.setActiveItem(Oe)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class c extends u{setActiveItem(Oe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Oe),this.activeItem&&this.activeItem.setActiveStyles()}}class C extends u{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Oe){return this._origin=Oe,this}setActiveItem(Oe){super.setActiveItem(Oe),this.activeItem&&this.activeItem.focus(this._origin)}}let O=(()=>{class Pe{constructor(le){this._platform=le}isDisabled(le){return le.hasAttribute("disabled")}isVisible(le){return function n(Pe){return!!(Pe.offsetWidth||Pe.offsetHeight||"function"==typeof Pe.getClientRects&&Pe.getClientRects().length)}(le)&&"visible"===getComputedStyle(le).visibility}isTabbable(le){if(!this._platform.isBrowser)return!1;const be=function _(Pe){try{return Pe.frameElement}catch(Oe){return null}}(function Q(Pe){return Pe.ownerDocument&&Pe.ownerDocument.defaultView||window}(le));if(be&&(-1===xe(be)||!this.isVisible(be)))return!1;let ht=le.nodeName.toLowerCase(),ft=xe(le);return le.hasAttribute("contenteditable")?-1!==ft:!("iframe"===ht||"object"===ht||this._platform.WEBKIT&&this._platform.IOS&&!function Re(Pe){let Oe=Pe.nodeName.toLowerCase(),le="input"===Oe&&Pe.type;return"text"===le||"password"===le||"select"===Oe||"textarea"===Oe}(le))&&("audio"===ht?!!le.hasAttribute("controls")&&-1!==ft:"video"===ht?-1!==ft&&(null!==ft||this._platform.FIREFOX||le.hasAttribute("controls")):le.tabIndex>=0)}isFocusable(le,be){return function we(Pe){return!function B(Pe){return function z(Pe){return"input"==Pe.nodeName.toLowerCase()}(Pe)&&"hidden"==Pe.type}(Pe)&&(function v(Pe){let Oe=Pe.nodeName.toLowerCase();return"input"===Oe||"select"===Oe||"button"===Oe||"textarea"===Oe}(Pe)||function P(Pe){return function se(Pe){return"a"==Pe.nodeName.toLowerCase()}(Pe)&&Pe.hasAttribute("href")}(Pe)||Pe.hasAttribute("contenteditable")||fe(Pe))}(le)&&!this.isDisabled(le)&&((null==be?void 0:be.ignoreVisibility)||this.isVisible(le))}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(f.t4))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function fe(Pe){if(!Pe.hasAttribute("tabindex")||void 0===Pe.tabIndex)return!1;let Oe=Pe.getAttribute("tabindex");return!(!Oe||isNaN(parseInt(Oe,10)))}function xe(Pe){if(!fe(Pe))return null;const Oe=parseInt(Pe.getAttribute("tabindex")||"",10);return isNaN(Oe)?-1:Oe}class Ge{constructor(Oe,le,be,ht,ft=!1){this._element=Oe,this._checker=le,this._ngZone=be,this._document=ht,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ft||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Oe){this._enabled=Oe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}destroy(){const Oe=this._startAnchor,le=this._endAnchor;Oe&&(Oe.removeEventListener("focus",this.startAnchorListener),Oe.remove()),le&&(le.removeEventListener("focus",this.endAnchorListener),le.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(Oe){return new Promise(le=>{this._executeOnStable(()=>le(this.focusInitialElement(Oe)))})}focusFirstTabbableElementWhenReady(Oe){return new Promise(le=>{this._executeOnStable(()=>le(this.focusFirstTabbableElement(Oe)))})}focusLastTabbableElementWhenReady(Oe){return new Promise(le=>{this._executeOnStable(()=>le(this.focusLastTabbableElement(Oe)))})}_getRegionBoundary(Oe){const le=this._element.querySelectorAll(`[cdk-focus-region-${Oe}], [cdkFocusRegion${Oe}], [cdk-focus-${Oe}]`);return"start"==Oe?le.length?le[0]:this._getFirstTabbableElement(this._element):le.length?le[le.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Oe){const le=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(le){if(!this._checker.isFocusable(le)){const be=this._getFirstTabbableElement(le);return null==be||be.focus(Oe),!!be}return le.focus(Oe),!0}return this.focusFirstTabbableElement(Oe)}focusFirstTabbableElement(Oe){const le=this._getRegionBoundary("start");return le&&le.focus(Oe),!!le}focusLastTabbableElement(Oe){const le=this._getRegionBoundary("end");return le&&le.focus(Oe),!!le}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Oe){if(this._checker.isFocusable(Oe)&&this._checker.isTabbable(Oe))return Oe;const le=Oe.children;for(let be=0;be=0;be--){const ht=le[be].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(le[be]):null;if(ht)return ht}return null}_createAnchor(){const Oe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Oe),Oe.classList.add("cdk-visually-hidden"),Oe.classList.add("cdk-focus-trap-anchor"),Oe.setAttribute("aria-hidden","true"),Oe}_toggleAnchorTabIndex(Oe,le){Oe?le.setAttribute("tabindex","0"):le.removeAttribute("tabindex")}toggleAnchors(Oe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}_executeOnStable(Oe){this._ngZone.isStable?Oe():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(Oe)}}let ve=(()=>{class Pe{constructor(le,be,ht){this._checker=le,this._ngZone=be,this._document=ht}create(le,be=!1){return new Ge(le,this._checker,this._ngZone,this._document,be)}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(O),e.LFG(e.R0b),e.LFG(t.K0))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),F=(()=>{class Pe{constructor(le,be,ht){this._elementRef=le,this._focusTrapFactory=be,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(le){this.focusTrap.enabled=(0,Z.Ig)(le)}get autoCapture(){return this._autoCapture}set autoCapture(le){this._autoCapture=(0,Z.Ig)(le)}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(le){const be=le.autoCapture;be&&!be.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.Y36(e.SBq),e.Y36(ve),e.Y36(t.K0))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),Pe})();function Te(Pe){return 0===Pe.buttons||0===Pe.offsetX&&0===Pe.offsetY}function ye(Pe){const Oe=Pe.touches&&Pe.touches[0]||Pe.changedTouches&&Pe.changedTouches[0];return!(!Oe||-1!==Oe.identifier||null!=Oe.radiusX&&1!==Oe.radiusX||null!=Oe.radiusY&&1!==Oe.radiusY)}const W=new e.OlP("cdk-input-modality-detector-options"),$={ignoreKeys:[N.zL,N.jx,N.b2,N.MW,N.JU]},Ce=(0,f.i$)({passive:!0,capture:!0});let Le=(()=>{class Pe{constructor(le,be,ht,ft){this._platform=le,this._mostRecentTarget=null,this._modality=new b.X(null),this._lastTouchMs=0,this._onKeydown=Ht=>{var it,Ne;(null===(Ne=null===(it=this._options)||void 0===it?void 0:it.ignoreKeys)||void 0===Ne?void 0:Ne.some(tt=>tt===Ht.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,f.sA)(Ht))},this._onMousedown=Ht=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Te(Ht)?"keyboard":"mouse"),this._mostRecentTarget=(0,f.sA)(Ht))},this._onTouchstart=Ht=>{ye(Ht)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,f.sA)(Ht))},this._options=Object.assign(Object.assign({},$),ft),this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,L.x)()),le.isBrowser&&be.runOutsideAngular(()=>{ht.addEventListener("keydown",this._onKeydown,Ce),ht.addEventListener("mousedown",this._onMousedown,Ce),ht.addEventListener("touchstart",this._onTouchstart,Ce)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ce),document.removeEventListener("mousedown",this._onMousedown,Ce),document.removeEventListener("touchstart",this._onTouchstart,Ce))}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(f.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(W,8))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const ct=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ut(){return null}}),Dt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let di=(()=>{class Pe{constructor(le,be,ht,ft){this._ngZone=be,this._defaultOptions=ft,this._document=ht,this._liveElement=le||this._createLiveElement()}announce(le,...be){const ht=this._defaultOptions;let ft,Ht;return 1===be.length&&"number"==typeof be[0]?Ht=be[0]:[ft,Ht]=be,this.clear(),clearTimeout(this._previousTimeout),ft||(ft=ht&&ht.politeness?ht.politeness:"polite"),null==Ht&&ht&&(Ht=ht.duration),this._liveElement.setAttribute("aria-live",ft),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(it=>this._currentResolve=it)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=le,"number"==typeof Ht&&(this._previousTimeout=setTimeout(()=>this.clear(),Ht)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var le,be;clearTimeout(this._previousTimeout),null===(le=this._liveElement)||void 0===le||le.remove(),this._liveElement=null,null===(be=this._currentResolve)||void 0===be||be.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const le="cdk-live-announcer-element",be=this._document.getElementsByClassName(le),ht=this._document.createElement("div");for(let ft=0;ft{class Pe{constructor(le,be,ht,ft,Ht){this._ngZone=le,this._platform=be,this._inputModalityDetector=ht,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 M.x,this._rootNodeFocusAndBlurListener=it=>{const Ne=(0,f.sA)(it),tt="focus"===it.type?this._onFocus:this._onBlur;for(let Je=Ne;Je;Je=Je.parentElement)tt.call(this,it,Je)},this._document=ft,this._detectionMode=(null==Ht?void 0:Ht.detectionMode)||0}monitor(le,be=!1){const ht=(0,Z.fI)(le);if(!this._platform.isBrowser||1!==ht.nodeType)return(0,d.of)(null);const ft=(0,f.kV)(ht)||this._getDocument(),Ht=this._elementInfo.get(ht);if(Ht)return be&&(Ht.checkChildren=!0),Ht.subject;const it={checkChildren:be,subject:new M.x,rootNode:ft};return this._elementInfo.set(ht,it),this._registerGlobalListeners(it),it.subject}stopMonitoring(le){const be=(0,Z.fI)(le),ht=this._elementInfo.get(be);ht&&(ht.subject.complete(),this._setClasses(be),this._elementInfo.delete(be),this._removeGlobalListeners(ht))}focusVia(le,be,ht){const ft=(0,Z.fI)(le);ft===this._getDocument().activeElement?this._getClosestElementsInfo(ft).forEach(([it,Ne])=>this._originChanged(it,be,Ne)):(this._setOrigin(be),"function"==typeof ft.focus&&ft.focus(ht))}ngOnDestroy(){this._elementInfo.forEach((le,be)=>this.stopMonitoring(be))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(le){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(le)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(le){return 1===this._detectionMode||!!(null==le?void 0:le.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(le,be){le.classList.toggle("cdk-focused",!!be),le.classList.toggle("cdk-touch-focused","touch"===be),le.classList.toggle("cdk-keyboard-focused","keyboard"===be),le.classList.toggle("cdk-mouse-focused","mouse"===be),le.classList.toggle("cdk-program-focused","program"===be)}_setOrigin(le,be=!1){this._ngZone.runOutsideAngular(()=>{this._origin=le,this._originFromTouchInteraction="touch"===le&&be,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(le,be){const ht=this._elementInfo.get(be),ft=(0,f.sA)(le);!ht||!ht.checkChildren&&be!==ft||this._originChanged(be,this._getFocusOrigin(ft),ht)}_onBlur(le,be){const ht=this._elementInfo.get(be);!ht||ht.checkChildren&&le.relatedTarget instanceof Node&&be.contains(le.relatedTarget)||(this._setClasses(be),this._emitOrigin(ht.subject,null))}_emitOrigin(le,be){this._ngZone.run(()=>le.next(be))}_registerGlobalListeners(le){if(!this._platform.isBrowser)return;const be=le.rootNode,ht=this._rootNodeFocusListenerCount.get(be)||0;ht||this._ngZone.runOutsideAngular(()=>{be.addEventListener("focus",this._rootNodeFocusAndBlurListener,ui),be.addEventListener("blur",this._rootNodeFocusAndBlurListener,ui)}),this._rootNodeFocusListenerCount.set(be,ht+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,U.R)(this._stopInputModalityDetector)).subscribe(ft=>{this._setOrigin(ft,!0)}))}_removeGlobalListeners(le){const be=le.rootNode;if(this._rootNodeFocusListenerCount.has(be)){const ht=this._rootNodeFocusListenerCount.get(be);ht>1?this._rootNodeFocusListenerCount.set(be,ht-1):(be.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ui),be.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ui),this._rootNodeFocusListenerCount.delete(be))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(le,be,ht){this._setClasses(le,be),this._emitOrigin(ht.subject,be),this._lastFocusOrigin=be}_getClosestElementsInfo(le){const be=[];return this._elementInfo.forEach((ht,ft)=>{(ft===le||ht.checkChildren&&ft.contains(le))&&be.push([ft,ht])}),be}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(e.R0b),e.LFG(f.t4),e.LFG(Le),e.LFG(t.K0,8),e.LFG(Gt,8))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Nt=(()=>{class Pe{constructor(le,be){this._elementRef=le,this._focusMonitor=be,this.cdkFocusChange=new e.vpe}ngAfterViewInit(){const le=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(le,1===le.nodeType&&le.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(be=>this.cdkFocusChange.emit(be))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.Y36(e.SBq),e.Y36(xt))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Pe})();const gt="cdk-high-contrast-black-on-white",et="cdk-high-contrast-white-on-black",vt="cdk-high-contrast-active";let $t=(()=>{class Pe{constructor(le,be){this._platform=le,this._document=be}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const le=this._document.createElement("div");le.style.backgroundColor="rgb(1,2,3)",le.style.position="absolute",this._document.body.appendChild(le);const be=this._document.defaultView||window,ht=be&&be.getComputedStyle?be.getComputedStyle(le):null,ft=(ht&&ht.backgroundColor||"").replace(/ /g,"");switch(le.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 le=this._document.body.classList;le.remove(vt),le.remove(gt),le.remove(et),this._hasCheckedHighContrastMode=!0;const be=this.getHighContrastMode();1===be?(le.add(vt),le.add(gt)):2===be&&(le.add(vt),le.add(et))}}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG(f.t4),e.LFG(t.K0))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),jt=(()=>{class Pe{constructor(le){le._applyBodyHighContrastModeCssClasses()}}return Pe.\u0275fac=function(le){return new(le||Pe)(e.LFG($t))},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[j.Q8]]}),Pe})()},226:(Fe,Y,p)=>{"use strict";p.d(Y,{Is:()=>d,vT:()=>h});var t=p(5e3),e=p(9808);const f=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,t.f3M)(e.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 A{constructor(w){if(this.value="ltr",this.change=new t.vpe,w){const I=w.documentElement?w.documentElement.dir:null;this.value=function b(A){const D=(null==A?void 0:A.toLowerCase())||"";return"auto"===D&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?a.test(navigator.language)?"rtl":"ltr":"rtl"===D?"rtl":"ltr"}((w.body?w.body.dir:null)||I||"ltr")}}ngOnDestroy(){this.change.complete()}}return A.\u0275fac=function(w){return new(w||A)(t.LFG(f,8))},A.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),h=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=t.oAB({type:A}),A.\u0275inj=t.cJS({}),A})()},3191:(Fe,Y,p)=>{"use strict";p.d(Y,{Eq:()=>a,HM:()=>b,Ig:()=>e,du:()=>N,fI:()=>d,su:()=>f,t6:()=>M});var t=p(5e3);function e(h){return null!=h&&"false"!=`${h}`}function f(h,A=0){return M(h)?Number(h):A}function M(h){return!isNaN(parseFloat(h))&&!isNaN(Number(h))}function a(h){return Array.isArray(h)?h:[h]}function b(h){return null==h?"":"string"==typeof h?h:`${h}px`}function d(h){return h instanceof t.SBq?h.nativeElement:h}function N(h,A=/\s+/){const D=[];if(null!=h){const w=Array.isArray(h)?h:`${h}`.split(A);for(const S of w){const I=`${S}`.trim();I&&D.push(I)}}return D}},449:(Fe,Y,p)=>{"use strict";p.d(Y,{A8:()=>A,Ov:()=>N,Z9:()=>M,eX:()=>d,k:()=>D,o2:()=>f,yy:()=>b});var t=p(7579),e=p(5e3);class f{}function M(w){return w&&"function"==typeof w.connect}class b{applyChanges(S,I,L,U,Z){S.forEachOperation((j,ne,X)=>{let de,ee;if(null==j.previousIndex){const te=L(j,ne,X);de=I.createEmbeddedView(te.templateRef,te.context,te.index),ee=1}else null==X?(I.remove(ne),ee=3):(de=I.get(ne),I.move(de,X),ee=2);Z&&Z({context:null==de?void 0:de.context,operation:ee,record:j})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(S,I,L,U,Z){S.forEachOperation((j,ne,X)=>{let de,ee;null==j.previousIndex?(de=this._insertView(()=>L(j,ne,X),X,I,U(j)),ee=de?1:0):null==X?(this._detachAndCacheView(ne,I),ee=3):(de=this._moveView(ne,X,I,U(j)),ee=2),Z&&Z({context:null==de?void 0:de.context,operation:ee,record:j})})}detach(){for(const S of this._viewCache)S.destroy();this._viewCache=[]}_insertView(S,I,L,U){const Z=this._insertViewFromCache(I,L);if(Z)return void(Z.context.$implicit=U);const j=S();return L.createEmbeddedView(j.templateRef,j.context,j.index)}_detachAndCacheView(S,I){const L=I.detach(S);this._maybeCacheView(L,I)}_moveView(S,I,L,U){const Z=L.get(S);return L.move(Z,I),Z.context.$implicit=U,Z}_maybeCacheView(S,I){if(this._viewCache.lengththis._markSelected(U)):this._markSelected(I[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...S){this._verifyValueAssignment(S),S.forEach(I=>this._markSelected(I)),this._emitChangeEvent()}deselect(...S){this._verifyValueAssignment(S),S.forEach(I=>this._unmarkSelected(I)),this._emitChangeEvent()}toggle(S){this.isSelected(S)?this.deselect(S):this.select(S)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(S){return this._selection.has(S)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(S){this._multiple&&this.selected&&this._selected.sort(S)}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(S){this.isSelected(S)||(this._multiple||this._unmarkAll(),this._selection.add(S),this._emitChanges&&this._selectedToEmit.push(S))}_unmarkSelected(S){this.isSelected(S)&&(this._selection.delete(S),this._emitChanges&&this._deselectedToEmit.push(S))}_unmarkAll(){this.isEmpty()||this._selection.forEach(S=>this._unmarkSelected(S))}_verifyValueAssignment(S){}}let A=(()=>{class w{constructor(){this._listeners=[]}notify(I,L){for(let U of this._listeners)U(I,L)}listen(I){return this._listeners.push(I),()=>{this._listeners=this._listeners.filter(L=>I!==L)}}ngOnDestroy(){this._listeners=[]}}return w.\u0275fac=function(I){return new(I||w)},w.\u0275prov=e.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const D=new e.OlP("_ViewRepeater")},1159:(Fe,Y,p)=>{"use strict";p.d(Y,{A:()=>P,JH:()=>X,JU:()=>b,K5:()=>a,Ku:()=>S,LH:()=>j,L_:()=>w,MW:()=>di,Mf:()=>f,SV:()=>ne,Sd:()=>U,VM:()=>I,Vb:()=>mi,Z:()=>Dt,aO:()=>O,b2:()=>Pt,hY:()=>D,jx:()=>d,oh:()=>Z,uR:()=>L,xE:()=>J,zL:()=>N});const f=9,a=13,b=16,d=17,N=18,D=27,w=32,S=33,I=34,L=35,U=36,Z=37,j=38,ne=39,X=40,J=48,O=57,P=65,Dt=90,di=91,Pt=224;function mi(ti,...vi){return vi.length?vi.some(Bi=>ti[Bi]):ti.altKey||ti.shiftKey||ti.ctrlKey||ti.metaKey}},5113:(Fe,Y,p)=>{"use strict";p.d(Y,{Yg:()=>X,u3:()=>ee,xu:()=>I});var t=p(5e3),e=p(3191),f=p(7579),M=p(9841),a=p(7272),b=p(8306),d=p(5698),N=p(5684),h=p(8372),A=p(4004),D=p(8675),w=p(2722),S=p(925);let I=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=t.oAB({type:te}),te.\u0275inj=t.cJS({}),te})();const L=new Set;let U,Z=(()=>{class te{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 j(te){if(!L.has(te))try{U||(U=document.createElement("style"),U.setAttribute("type","text/css"),document.head.appendChild(U)),U.sheet&&(U.sheet.insertRule(`@media ${te} {body{ }}`,0),L.add(te))}catch(ce){console.error(ce)}}(J),this._matchMedia(J)}}return te.\u0275fac=function(J){return new(J||te)(t.LFG(S.t4))},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();function ne(te){return{matches:"all"===te||""===te,media:te,addListener:()=>{},removeListener:()=>{}}}let X=(()=>{class te{constructor(J,ge){this._mediaMatcher=J,this._zone=ge,this._queries=new Map,this._destroySubject=new f.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(J){return de((0,e.Eq)(J)).some(y=>this._registerQuery(y).mql.matches)}observe(J){const y=de((0,e.Eq)(J)).map(r=>this._registerQuery(r).observable);let i=(0,M.a)(y);return i=(0,a.z)(i.pipe((0,d.q)(1)),i.pipe((0,N.T)(1),(0,h.b)(0))),i.pipe((0,A.U)(r=>{const u={matches:!1,breakpoints:{}};return r.forEach(({matches:c,query:C})=>{u.matches=u.matches||c,u.breakpoints[C]=c}),u}))}_registerQuery(J){if(this._queries.has(J))return this._queries.get(J);const ge=this._mediaMatcher.matchMedia(J),i={observable:new b.y(r=>{const u=c=>this._zone.run(()=>r.next(c));return ge.addListener(u),()=>{ge.removeListener(u)}}).pipe((0,D.O)(ge),(0,A.U)(({matches:r})=>({query:J,matches:r})),(0,w.R)(this._destroySubject)),mql:ge};return this._queries.set(J,i),i}}return te.\u0275fac=function(J){return new(J||te)(t.LFG(Z),t.LFG(t.R0b))},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();function de(te){return te.map(ce=>ce.split(",")).reduce((ce,J)=>ce.concat(J)).map(ce=>ce.trim())}const ee={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:(Fe,Y,p)=>{"use strict";p.d(Y,{Q8:()=>h,wD:()=>N});var t=p(3191),e=p(5e3),f=p(8306),M=p(7579),a=p(8372);let b=(()=>{class A{create(w){return"undefined"==typeof MutationObserver?null:new MutationObserver(w)}}return A.\u0275fac=function(w){return new(w||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),d=(()=>{class A{constructor(w){this._mutationObserverFactory=w,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((w,S)=>this._cleanupObserver(S))}observe(w){const S=(0,t.fI)(w);return new f.y(I=>{const U=this._observeElement(S).subscribe(I);return()=>{U.unsubscribe(),this._unobserveElement(S)}})}_observeElement(w){if(this._observedElements.has(w))this._observedElements.get(w).count++;else{const S=new M.x,I=this._mutationObserverFactory.create(L=>S.next(L));I&&I.observe(w,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(w,{observer:I,stream:S,count:1})}return this._observedElements.get(w).stream}_unobserveElement(w){this._observedElements.has(w)&&(this._observedElements.get(w).count--,this._observedElements.get(w).count||this._cleanupObserver(w))}_cleanupObserver(w){if(this._observedElements.has(w)){const{observer:S,stream:I}=this._observedElements.get(w);S&&S.disconnect(),I.complete(),this._observedElements.delete(w)}}}return A.\u0275fac=function(w){return new(w||A)(e.LFG(b))},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),N=(()=>{class A{constructor(w,S,I){this._contentObserver=w,this._elementRef=S,this._ngZone=I,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(w){this._disabled=(0,t.Ig)(w),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(w){this._debounce=(0,t.su)(w),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const w=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?w.pipe((0,a.b)(this.debounce)):w).subscribe(this.event)})}_unsubscribe(){var w;null===(w=this._currentSubscription)||void 0===w||w.unsubscribe()}}return A.\u0275fac=function(w){return new(w||A)(e.Y36(d),e.Y36(e.SBq),e.Y36(e.R0b))},A.\u0275dir=e.lG2({type:A,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),A})(),h=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({providers:[b]}),A})()},9776:(Fe,Y,p)=>{"use strict";p.d(Y,{pI:()=>lt,xu:()=>Ae,_G:()=>n,aV:()=>Ge,X_:()=>ge,Xj:()=>E,U8:()=>oe});var t=p(5303),e=p(9808),f=p(5e3),M=p(3191),a=p(925),b=p(226),d=p(7429),N=p(7579),h=p(727),A=p(6451),D=p(4482),w=p(5403),I=p(5698),L=p(2722),U=p(1159);const Z=(0,a.Mq)();class j{constructor(W,$){this._viewportRuler=W,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=$}attach(){}enable(){if(this._canBeEnabled()){const W=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=W.style.left||"",this._previousHTMLStyles.top=W.style.top||"",W.style.left=(0,M.HM)(-this._previousScrollPosition.left),W.style.top=(0,M.HM)(-this._previousScrollPosition.top),W.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const W=this._document.documentElement,ue=W.style,Ce=this._document.body.style,Le=ue.scrollBehavior||"",ct=Ce.scrollBehavior||"";this._isEnabled=!1,ue.left=this._previousHTMLStyles.left,ue.top=this._previousHTMLStyles.top,W.classList.remove("cdk-global-scrollblock"),Z&&(ue.scrollBehavior=Ce.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Z&&(ue.scrollBehavior=Le,Ce.scrollBehavior=ct)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const $=this._document.body,ue=this._viewportRuler.getViewportSize();return $.scrollHeight>ue.height||$.scrollWidth>ue.width}}class X{constructor(W,$,ue,Ce){this._scrollDispatcher=W,this._ngZone=$,this._viewportRuler=ue,this._config=Ce,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(W){this._overlayRef=W}enable(){if(this._scrollSubscription)return;const W=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=W.subscribe(()=>{const $=this._viewportRuler.getViewportScrollPosition().top;Math.abs($-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=W.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class de{enable(){}disable(){}attach(){}}function ee(ye,W){return W.some($=>ye.bottom<$.top||ye.top>$.bottom||ye.right<$.left||ye.left>$.right)}function te(ye,W){return W.some($=>ye.top<$.top||ye.bottom>$.bottom||ye.left<$.left||ye.right>$.right)}class ce{constructor(W,$,ue,Ce){this._scrollDispatcher=W,this._viewportRuler=$,this._ngZone=ue,this._config=Ce,this._scrollSubscription=null}attach(W){this._overlayRef=W}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 $=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ue,height:Ce}=this._viewportRuler.getViewportSize();ee($,[{width:ue,height:Ce,bottom:Ce,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 ye{constructor($,ue,Ce,Le){this._scrollDispatcher=$,this._viewportRuler=ue,this._ngZone=Ce,this.noop=()=>new de,this.close=ct=>new X(this._scrollDispatcher,this._ngZone,this._viewportRuler,ct),this.block=()=>new j(this._viewportRuler,this._document),this.reposition=ct=>new ce(this._scrollDispatcher,this._viewportRuler,this._ngZone,ct),this._document=Le}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(t.mF),f.LFG(t.rL),f.LFG(f.R0b),f.LFG(e.K0))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();class ge{constructor(W){if(this.scrollStrategy=new de,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,W){const $=Object.keys(W);for(const ue of $)void 0!==W[ue]&&(this[ue]=W[ue])}}}class r{constructor(W,$){this.connectionPair=W,this.scrollableViewProperties=$}}class C{constructor(W,$,ue,Ce,Le,ct,ut,Dt,di){this._portalOutlet=W,this._host=$,this._pane=ue,this._config=Ce,this._ngZone=Le,this._keyboardDispatcher=ct,this._document=ut,this._location=Dt,this._outsideClickDispatcher=di,this._backdropElement=null,this._backdropClick=new N.x,this._attachments=new N.x,this._detachments=new N.x,this._locationChanges=h.w0.EMPTY,this._backdropClickHandler=Yt=>this._backdropClick.next(Yt),this._backdropTransitionendHandler=Yt=>{this._disposeBackdrop(Yt.target)},this._keydownEvents=new N.x,this._outsidePointerEvents=new N.x,Ce.scrollStrategy&&(this._scrollStrategy=Ce.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ce.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(W){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const $=this._portalOutlet.attach(W);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,I.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),$}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const W=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),W}dispose(){var W;const $=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===(W=this._host)||void 0===W||W.remove(),this._previousHostParent=this._pane=this._host=null,$&&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(W){W!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=W,this.hasAttached()&&(W.attach(this),this.updatePosition()))}updateSize(W){this._config=Object.assign(Object.assign({},this._config),W),this._updateElementSize()}setDirection(W){this._config=Object.assign(Object.assign({},this._config),{direction:W}),this._updateElementDirection()}addPanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!0)}removePanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!1)}getDirection(){const W=this._config.direction;return W?"string"==typeof W?W:W.value:"ltr"}updateScrollStrategy(W){W!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=W,this.hasAttached()&&(W.attach(this),W.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const W=this._pane.style;W.width=(0,M.HM)(this._config.width),W.height=(0,M.HM)(this._config.height),W.minWidth=(0,M.HM)(this._config.minWidth),W.minHeight=(0,M.HM)(this._config.minHeight),W.maxWidth=(0,M.HM)(this._config.maxWidth),W.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(W){this._pane.style.pointerEvents=W?"":"none"}_attachBackdrop(){const W="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(W)})}):this._backdropElement.classList.add(W)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const W=this._backdropElement;!W||(W.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{W.addEventListener("transitionend",this._backdropTransitionendHandler)}),W.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(W)},500)))}_toggleClasses(W,$,ue){const Ce=(0,M.Eq)($||[]).filter(Le=>!!Le);Ce.length&&(ue?W.classList.add(...Ce):W.classList.remove(...Ce))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const W=this._ngZone.onStable.pipe((0,L.R)((0,A.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()),W.unsubscribe())})})}_disposeScrollStrategy(){const W=this._scrollStrategy;W&&(W.disable(),W.detach&&W.detach())}_disposeBackdrop(W){W&&(W.removeEventListener("click",this._backdropClickHandler),W.removeEventListener("transitionend",this._backdropTransitionendHandler),W.remove(),this._backdropElement===W&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let E=(()=>{class ye{constructor($,ue){this._platform=ue,this._document=$}ngOnDestroy(){var $;null===($=this._containerElement)||void 0===$||$.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const $="cdk-overlay-container";if(this._platform.isBrowser||(0,a.Oy)()){const Ce=this._document.querySelectorAll(`.${$}[platform="server"], .${$}[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 W=this._originRect,$=this._overlayRect,ue=this._viewportRect,Ce=this._containerRect,Le=[];let ct;for(let ut of this._preferredPositions){let Dt=this._getOriginPoint(W,Ce,ut),di=this._getOverlayPoint(Dt,$,ut),Yt=this._getOverlayFit(di,$,ue,ut);if(Yt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ut,Dt);this._canFitWithFlexibleDimensions(Yt,di,ue)?Le.push({position:ut,origin:Dt,overlayRect:$,boundingBoxRect:this._calculateBoundingBoxRect(Dt,ut)}):(!ct||ct.overlayFit.visibleAreaDt&&(Dt=Yt,ut=di)}return this._isPushed=!1,void this._applyPosition(ut.position,ut.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ct.position,ct.originPoint);this._applyPosition(ct.position,ct.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&v(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(O),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const W=this._lastPosition;if(W){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const $=this._getOriginPoint(this._originRect,this._containerRect,W);this._applyPosition(W,$)}else this.apply()}withScrollableContainers(W){return this._scrollables=W,this}withPositions(W){return this._preferredPositions=W,-1===W.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(W){return this._viewportMargin=W,this}withFlexibleDimensions(W=!0){return this._hasFlexibleDimensions=W,this}withGrowAfterOpen(W=!0){return this._growAfterOpen=W,this}withPush(W=!0){return this._canPush=W,this}withLockedPosition(W=!0){return this._positionLocked=W,this}setOrigin(W){return this._origin=W,this}withDefaultOffsetX(W){return this._offsetX=W,this}withDefaultOffsetY(W){return this._offsetY=W,this}withTransformOriginOn(W){return this._transformOriginSelector=W,this}_getOriginPoint(W,$,ue){let Ce,Le;if("center"==ue.originX)Ce=W.left+W.width/2;else{const ct=this._isRtl()?W.right:W.left,ut=this._isRtl()?W.left:W.right;Ce="start"==ue.originX?ct:ut}return $.left<0&&(Ce-=$.left),Le="center"==ue.originY?W.top+W.height/2:"top"==ue.originY?W.top:W.bottom,$.top<0&&(Le-=$.top),{x:Ce,y:Le}}_getOverlayPoint(W,$,ue){let Ce,Le;return Ce="center"==ue.overlayX?-$.width/2:"start"===ue.overlayX?this._isRtl()?-$.width:0:this._isRtl()?0:-$.width,Le="center"==ue.overlayY?-$.height/2:"top"==ue.overlayY?0:-$.height,{x:W.x+Ce,y:W.y+Le}}_getOverlayFit(W,$,ue,Ce){const Le=P($);let{x:ct,y:ut}=W,Dt=this._getOffset(Ce,"x"),di=this._getOffset(Ce,"y");Dt&&(ct+=Dt),di&&(ut+=di);let ui=0-ut,xt=ut+Le.height-ue.height,Nt=this._subtractOverflows(Le.width,0-ct,ct+Le.width-ue.width),gt=this._subtractOverflows(Le.height,ui,xt),et=Nt*gt;return{visibleArea:et,isCompletelyWithinViewport:Le.width*Le.height===et,fitsInViewportVertically:gt===Le.height,fitsInViewportHorizontally:Nt==Le.width}}_canFitWithFlexibleDimensions(W,$,ue){if(this._hasFlexibleDimensions){const Ce=ue.bottom-$.y,Le=ue.right-$.x,ct=B(this._overlayRef.getConfig().minHeight),ut=B(this._overlayRef.getConfig().minWidth),di=W.fitsInViewportHorizontally||null!=ut&&ut<=Le;return(W.fitsInViewportVertically||null!=ct&&ct<=Ce)&&di}return!1}_pushOverlayOnScreen(W,$,ue){if(this._previousPushAmount&&this._positionLocked)return{x:W.x+this._previousPushAmount.x,y:W.y+this._previousPushAmount.y};const Ce=P($),Le=this._viewportRect,ct=Math.max(W.x+Ce.width-Le.width,0),ut=Math.max(W.y+Ce.height-Le.height,0),Dt=Math.max(Le.top-ue.top-W.y,0),di=Math.max(Le.left-ue.left-W.x,0);let Yt=0,Gt=0;return Yt=Ce.width<=Le.width?di||-ct:W.xNt&&!this._isInitialRender&&!this._growAfterOpen&&(ct=W.y-Nt/2)}if("end"===$.overlayX&&!Ce||"start"===$.overlayX&&Ce)ui=ue.width-W.x+this._viewportMargin,Yt=W.x-this._viewportMargin;else if("start"===$.overlayX&&!Ce||"end"===$.overlayX&&Ce)Gt=W.x,Yt=ue.right-W.x;else{const xt=Math.min(ue.right-W.x+ue.left,W.x),Nt=this._lastBoundingBoxSize.width;Yt=2*xt,Gt=W.x-xt,Yt>Nt&&!this._isInitialRender&&!this._growAfterOpen&&(Gt=W.x-Nt/2)}return{top:ct,left:Gt,bottom:ut,right:ui,width:Yt,height:Le}}_setBoundingBoxStyles(W,$){const ue=this._calculateBoundingBoxRect(W,$);!this._isInitialRender&&!this._growAfterOpen&&(ue.height=Math.min(ue.height,this._lastBoundingBoxSize.height),ue.width=Math.min(ue.width,this._lastBoundingBoxSize.width));const Ce={};if(this._hasExactPosition())Ce.top=Ce.left="0",Ce.bottom=Ce.right=Ce.maxHeight=Ce.maxWidth="",Ce.width=Ce.height="100%";else{const Le=this._overlayRef.getConfig().maxHeight,ct=this._overlayRef.getConfig().maxWidth;Ce.height=(0,M.HM)(ue.height),Ce.top=(0,M.HM)(ue.top),Ce.bottom=(0,M.HM)(ue.bottom),Ce.width=(0,M.HM)(ue.width),Ce.left=(0,M.HM)(ue.left),Ce.right=(0,M.HM)(ue.right),Ce.alignItems="center"===$.overlayX?"center":"end"===$.overlayX?"flex-end":"flex-start",Ce.justifyContent="center"===$.overlayY?"center":"bottom"===$.overlayY?"flex-end":"flex-start",Le&&(Ce.maxHeight=(0,M.HM)(Le)),ct&&(Ce.maxWidth=(0,M.HM)(ct))}this._lastBoundingBoxSize=ue,v(this._boundingBox.style,Ce)}_resetBoundingBoxStyles(){v(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){v(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(W,$){const ue={},Ce=this._hasExactPosition(),Le=this._hasFlexibleDimensions,ct=this._overlayRef.getConfig();if(Ce){const Yt=this._viewportRuler.getViewportScrollPosition();v(ue,this._getExactOverlayY($,W,Yt)),v(ue,this._getExactOverlayX($,W,Yt))}else ue.position="static";let ut="",Dt=this._getOffset($,"x"),di=this._getOffset($,"y");Dt&&(ut+=`translateX(${Dt}px) `),di&&(ut+=`translateY(${di}px)`),ue.transform=ut.trim(),ct.maxHeight&&(Ce?ue.maxHeight=(0,M.HM)(ct.maxHeight):Le&&(ue.maxHeight="")),ct.maxWidth&&(Ce?ue.maxWidth=(0,M.HM)(ct.maxWidth):Le&&(ue.maxWidth="")),v(this._pane.style,ue)}_getExactOverlayY(W,$,ue){let Ce={top:"",bottom:""},Le=this._getOverlayPoint($,this._overlayRect,W);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,ue)),"bottom"===W.overlayY?Ce.bottom=this._document.documentElement.clientHeight-(Le.y+this._overlayRect.height)+"px":Ce.top=(0,M.HM)(Le.y),Ce}_getExactOverlayX(W,$,ue){let ct,Ce={left:"",right:""},Le=this._getOverlayPoint($,this._overlayRect,W);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,ue)),ct=this._isRtl()?"end"===W.overlayX?"left":"right":"end"===W.overlayX?"right":"left","right"===ct?Ce.right=this._document.documentElement.clientWidth-(Le.x+this._overlayRect.width)+"px":Ce.left=(0,M.HM)(Le.x),Ce}_getScrollVisibility(){const W=this._getOriginRect(),$=this._pane.getBoundingClientRect(),ue=this._scrollables.map(Ce=>Ce.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:te(W,ue),isOriginOutsideView:ee(W,ue),isOverlayClipped:te($,ue),isOverlayOutsideView:ee($,ue)}}_subtractOverflows(W,...$){return $.reduce((ue,Ce)=>ue-Math.max(Ce,0),W)}_getNarrowedViewportRect(){const W=this._document.documentElement.clientWidth,$=this._document.documentElement.clientHeight,ue=this._viewportRuler.getViewportScrollPosition();return{top:ue.top+this._viewportMargin,left:ue.left+this._viewportMargin,right:ue.left+W-this._viewportMargin,bottom:ue.top+$-this._viewportMargin,width:W-2*this._viewportMargin,height:$-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(W,$){return"x"===$?null==W.offsetX?this._offsetX:W.offsetX:null==W.offsetY?this._offsetY:W.offsetY}_validatePositions(){}_addPanelClasses(W){this._pane&&(0,M.Eq)(W).forEach($=>{""!==$&&-1===this._appliedPanelClasses.indexOf($)&&(this._appliedPanelClasses.push($),this._pane.classList.add($))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(W=>{this._pane.classList.remove(W)}),this._appliedPanelClasses=[])}_getOriginRect(){const W=this._origin;if(W instanceof f.SBq)return W.nativeElement.getBoundingClientRect();if(W instanceof Element)return W.getBoundingClientRect();const $=W.width||0,ue=W.height||0;return{top:W.y,bottom:W.y+ue,left:W.x,right:W.x+$,height:ue,width:$}}}function v(ye,W){for(let $ in W)W.hasOwnProperty($)&&(ye[$]=W[$]);return ye}function B(ye){if("number"!=typeof ye&&null!=ye){const[W,$]=ye.split(_);return $&&"px"!==$?null:parseFloat(W)}return ye||null}function P(ye){return{top:Math.floor(ye.top),right:Math.floor(ye.right),bottom:Math.floor(ye.bottom),left:Math.floor(ye.left),width:Math.floor(ye.width),height:Math.floor(ye.height)}}const z="cdk-global-overlay-wrapper";class se{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(W){const $=W.getConfig();this._overlayRef=W,this._width&&!$.width&&W.updateSize({width:this._width}),this._height&&!$.height&&W.updateSize({height:this._height}),W.hostElement.classList.add(z),this._isDisposed=!1}top(W=""){return this._bottomOffset="",this._topOffset=W,this._alignItems="flex-start",this}left(W=""){return this._rightOffset="",this._leftOffset=W,this._justifyContent="flex-start",this}bottom(W=""){return this._topOffset="",this._bottomOffset=W,this._alignItems="flex-end",this}right(W=""){return this._leftOffset="",this._rightOffset=W,this._justifyContent="flex-end",this}width(W=""){return this._overlayRef?this._overlayRef.updateSize({width:W}):this._width=W,this}height(W=""){return this._overlayRef?this._overlayRef.updateSize({height:W}):this._height=W,this}centerHorizontally(W=""){return this.left(W),this._justifyContent="center",this}centerVertically(W=""){return this.top(W),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const W=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement.style,ue=this._overlayRef.getConfig(),{width:Ce,height:Le,maxWidth:ct,maxHeight:ut}=ue,Dt=!("100%"!==Ce&&"100vw"!==Ce||ct&&"100%"!==ct&&"100vw"!==ct),di=!("100%"!==Le&&"100vh"!==Le||ut&&"100%"!==ut&&"100vh"!==ut);W.position=this._cssPosition,W.marginLeft=Dt?"0":this._leftOffset,W.marginTop=di?"0":this._topOffset,W.marginBottom=this._bottomOffset,W.marginRight=this._rightOffset,Dt?$.justifyContent="flex-start":"center"===this._justifyContent?$.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?$.justifyContent="flex-end":"flex-end"===this._justifyContent&&($.justifyContent="flex-start"):$.justifyContent=this._justifyContent,$.alignItems=di?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const W=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement,ue=$.style;$.classList.remove(z),ue.justifyContent=ue.alignItems=W.marginTop=W.marginBottom=W.marginLeft=W.marginRight=W.position="",this._overlayRef=null,this._isDisposed=!0}}let fe=(()=>{class ye{constructor($,ue,Ce,Le){this._viewportRuler=$,this._document=ue,this._platform=Ce,this._overlayContainer=Le}global(){return new se}flexibleConnectedTo($){return new n($,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(t.rL),f.LFG(e.K0),f.LFG(a.t4),f.LFG(E))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),xe=(()=>{class ye{constructor($){this._attachedOverlays=[],this._document=$}ngOnDestroy(){this.detach()}add($){this.remove($),this._attachedOverlays.push($)}remove($){const ue=this._attachedOverlays.indexOf($);ue>-1&&this._attachedOverlays.splice(ue,1),0===this._attachedOverlays.length&&this.detach()}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(e.K0))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Re=(()=>{class ye extends xe{constructor($,ue){super($),this._ngZone=ue,this._keydownListener=Ce=>{const Le=this._attachedOverlays;for(let ct=Le.length-1;ct>-1;ct--)if(Le[ct]._keydownEvents.observers.length>0){const ut=Le[ct]._keydownEvents;this._ngZone?this._ngZone.run(()=>ut.next(Ce)):ut.next(Ce);break}}}add($){super.add($),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 ye.\u0275fac=function($){return new($||ye)(f.LFG(e.K0),f.LFG(f.R0b,8))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),we=(()=>{class ye extends xe{constructor($,ue,Ce){super($),this._platform=ue,this._ngZone=Ce,this._cursorStyleIsSet=!1,this._pointerDownListener=Le=>{this._pointerDownEventTarget=(0,a.sA)(Le)},this._clickListener=Le=>{const ct=(0,a.sA)(Le),ut="click"===Le.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ct;this._pointerDownEventTarget=null;const Dt=this._attachedOverlays.slice();for(let di=Dt.length-1;di>-1;di--){const Yt=Dt[di];if(Yt._outsidePointerEvents.observers.length<1||!Yt.hasAttached())continue;if(Yt.overlayElement.contains(ct)||Yt.overlayElement.contains(ut))break;const Gt=Yt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Gt.next(Le)):Gt.next(Le)}}}add($){if(super.add($),!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 $=this._document.body;$.removeEventListener("pointerdown",this._pointerDownListener,!0),$.removeEventListener("click",this._clickListener,!0),$.removeEventListener("auxclick",this._clickListener,!0),$.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&($.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners($){$.addEventListener("pointerdown",this._pointerDownListener,!0),$.addEventListener("click",this._clickListener,!0),$.addEventListener("auxclick",this._clickListener,!0),$.addEventListener("contextmenu",this._clickListener,!0)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(e.K0),f.LFG(a.t4),f.LFG(f.R0b,8))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Q=0,Ge=(()=>{class ye{constructor($,ue,Ce,Le,ct,ut,Dt,di,Yt,Gt,ui){this.scrollStrategies=$,this._overlayContainer=ue,this._componentFactoryResolver=Ce,this._positionBuilder=Le,this._keyboardDispatcher=ct,this._injector=ut,this._ngZone=Dt,this._document=di,this._directionality=Yt,this._location=Gt,this._outsideClickDispatcher=ui}create($){const ue=this._createHostElement(),Ce=this._createPaneElement(ue),Le=this._createPortalOutlet(Ce),ct=new ge($);return ct.direction=ct.direction||this._directionality.value,new C(Le,ue,Ce,ct,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement($){const ue=this._document.createElement("div");return ue.id="cdk-overlay-"+Q++,ue.classList.add("cdk-overlay-pane"),$.appendChild(ue),ue}_createHostElement(){const $=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild($),$}_createPortalOutlet($){return this._appRef||(this._appRef=this._injector.get(f.z2F)),new d.u0($,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(J),f.LFG(E),f.LFG(f._Vd),f.LFG(fe),f.LFG(Re),f.LFG(f.zs3),f.LFG(f.R0b),f.LFG(e.K0),f.LFG(b.Is),f.LFG(e.Ye),f.LFG(we))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const ve=[{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"}],F=new f.OlP("cdk-connected-overlay-scroll-strategy");let Ae=(()=>{class ye{constructor($){this.elementRef=$}}return ye.\u0275fac=function($){return new($||ye)(f.Y36(f.SBq))},ye.\u0275dir=f.lG2({type:ye,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ye})(),lt=(()=>{class ye{constructor($,ue,Ce,Le,ct){this._overlay=$,this._dir=ct,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w0.EMPTY,this._attachSubscription=h.w0.EMPTY,this._detachSubscription=h.w0.EMPTY,this._positionSubscription=h.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new f.vpe,this.positionChange=new f.vpe,this.attach=new f.vpe,this.detach=new f.vpe,this.overlayKeydown=new f.vpe,this.overlayOutsideClick=new f.vpe,this._templatePortal=new d.UE(ue,Ce),this._scrollStrategyFactory=Le,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX($){this._offsetX=$,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY($){this._offsetY=$,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop($){this._hasBackdrop=(0,M.Ig)($)}get lockPosition(){return this._lockPosition}set lockPosition($){this._lockPosition=(0,M.Ig)($)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions($){this._flexibleDimensions=(0,M.Ig)($)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen($){this._growAfterOpen=(0,M.Ig)($)}get push(){return this._push}set push($){this._push=(0,M.Ig)($)}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($){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),$.origin&&this.open&&this._position.apply()),$.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ve);const $=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=$.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=$.detachments().subscribe(()=>this.detach.emit()),$.keydownEvents().subscribe(ue=>{this.overlayKeydown.next(ue),ue.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(ue)&&(ue.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(ue=>{this.overlayOutsideClick.next(ue)})}_buildConfig(){const $=this._position=this.positionStrategy||this._createPositionStrategy(),ue=new ge({direction:this._dir,positionStrategy:$,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($){const ue=this.positions.map(Ce=>({originX:Ce.originX,originY:Ce.originY,overlayX:Ce.overlayX,overlayY:Ce.overlayY,offsetX:Ce.offsetX||this.offsetX,offsetY:Ce.offsetY||this.offsetY,panelClass:Ce.panelClass||void 0}));return $.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 $=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy($),$}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ae?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($=>{this.backdropClick.emit($)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function S(ye,W=!1){return(0,D.e)(($,ue)=>{let Ce=0;$.subscribe((0,w.x)(ue,Le=>{const ct=ye(Le,Ce++);(ct||W)&&ue.next(Le),!ct&&ue.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe($=>{this.positionChange.emit($),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ye.\u0275fac=function($){return new($||ye)(f.Y36(Ge),f.Y36(f.Rgc),f.Y36(f.s_b),f.Y36(F),f.Y36(b.Is,8))},ye.\u0275dir=f.lG2({type:ye,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:[f.TTD]}),ye})();const De={provide:F,deps:[Ge],useFactory:function Ie(ye){return()=>ye.scrollStrategies.reposition()}};let oe=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[Ge,De],imports:[[b.vT,d.eL,t.Cl],t.Cl]}),ye})()},925:(Fe,Y,p)=>{"use strict";p.d(Y,{Mq:()=>I,Oy:()=>de,_i:()=>L,ht:()=>ne,i$:()=>D,kV:()=>j,qK:()=>N,sA:()=>X,t4:()=>M});var t=p(5e3),e=p(9808);let f;try{f="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ee){f=!1}let b,M=(()=>{class ee{constructor(ce){this._platformId=ce,this.isBrowser=this._platformId?(0,e.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&&!f)&&"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 ee.\u0275fac=function(ce){return new(ce||ee)(t.LFG(t.Lbi))},ee.\u0275prov=t.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();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 N(){if(b)return b;if("object"!=typeof document||!document)return b=new Set(d),b;let ee=document.createElement("input");return b=new Set(d.filter(te=>(ee.setAttribute("type",te),ee.type===te))),b}let h,w,S,U;function D(ee){return function A(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?ee:!!ee.capture}function I(){if(null==S){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return S=!1,S;if("scrollBehavior"in document.documentElement.style)S=!0;else{const ee=Element.prototype.scrollTo;S=!!ee&&!/\{\s*\[native code\]\s*\}/.test(ee.toString())}}return S}function L(){if("object"!=typeof document||!document)return 0;if(null==w){const ee=document.createElement("div"),te=ee.style;ee.dir="rtl",te.width="1px",te.overflow="auto",te.visibility="hidden",te.pointerEvents="none",te.position="absolute";const ce=document.createElement("div"),J=ce.style;J.width="2px",J.height="1px",ee.appendChild(ce),document.body.appendChild(ee),w=0,0===ee.scrollLeft&&(ee.scrollLeft=1,w=0===ee.scrollLeft?1:2),ee.remove()}return w}function j(ee){if(function Z(){if(null==U){const ee="undefined"!=typeof document?document.head:null;U=!(!ee||!ee.createShadowRoot&&!ee.attachShadow)}return U}()){const te=ee.getRootNode?ee.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&te instanceof ShadowRoot)return te}return null}function ne(){let ee="undefined"!=typeof document&&document?document.activeElement:null;for(;ee&&ee.shadowRoot;){const te=ee.shadowRoot.activeElement;if(te===ee)break;ee=te}return ee}function X(ee){return ee.composedPath?ee.composedPath()[0]:ee.target}function de(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Fe,Y,p)=>{"use strict";p.d(Y,{C5:()=>A,Pl:()=>ne,UE:()=>D,eL:()=>de,en:()=>S,ig:()=>Z,u0:()=>L});var t=p(5e3),e=p(9808);class h{attach(ce){return this._attachedHost=ce,ce.attach(this)}detach(){let ce=this._attachedHost;null!=ce&&(this._attachedHost=null,ce.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ce){this._attachedHost=ce}}class A extends h{constructor(ce,J,ge,y){super(),this.component=ce,this.viewContainerRef=J,this.injector=ge,this.componentFactoryResolver=y}}class D extends h{constructor(ce,J,ge){super(),this.templateRef=ce,this.viewContainerRef=J,this.context=ge}get origin(){return this.templateRef.elementRef}attach(ce,J=this.context){return this.context=J,super.attach(ce)}detach(){return this.context=void 0,super.detach()}}class w extends h{constructor(ce){super(),this.element=ce instanceof t.SBq?ce.nativeElement:ce}}class S{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ce){return ce instanceof A?(this._attachedPortal=ce,this.attachComponentPortal(ce)):ce instanceof D?(this._attachedPortal=ce,this.attachTemplatePortal(ce)):this.attachDomPortal&&ce instanceof w?(this._attachedPortal=ce,this.attachDomPortal(ce)):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(ce){this._disposeFn=ce}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class L extends S{constructor(ce,J,ge,y,i){super(),this.outletElement=ce,this._componentFactoryResolver=J,this._appRef=ge,this._defaultInjector=y,this.attachDomPortal=r=>{const u=r.element,c=this._document.createComment("dom-portal");u.parentNode.insertBefore(c,u),this.outletElement.appendChild(u),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(u,c)})},this._document=i}attachComponentPortal(ce){const ge=(ce.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ce.component);let y;return ce.viewContainerRef?(y=ce.viewContainerRef.createComponent(ge,ce.viewContainerRef.length,ce.injector||ce.viewContainerRef.injector),this.setDisposeFn(()=>y.destroy())):(y=ge.create(ce.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(y.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(y.hostView),y.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(y)),this._attachedPortal=ce,y}attachTemplatePortal(ce){let J=ce.viewContainerRef,ge=J.createEmbeddedView(ce.templateRef,ce.context);return ge.rootNodes.forEach(y=>this.outletElement.appendChild(y)),ge.detectChanges(),this.setDisposeFn(()=>{let y=J.indexOf(ge);-1!==y&&J.remove(y)}),this._attachedPortal=ce,ge}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ce){return ce.hostView.rootNodes[0]}}let Z=(()=>{class te extends D{constructor(J,ge){super(J,ge)}}return te.\u0275fac=function(J){return new(J||te)(t.Y36(t.Rgc),t.Y36(t.s_b))},te.\u0275dir=t.lG2({type:te,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),te})(),ne=(()=>{class te extends S{constructor(J,ge,y){super(),this._componentFactoryResolver=J,this._viewContainerRef=ge,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const r=i.element,u=this._document.createComment("dom-portal");i.setAttachedHost(this),r.parentNode.insertBefore(u,r),this._getRootNode().appendChild(r),this._attachedPortal=i,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(r,u)})},this._document=y}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 ge=null!=J.viewContainerRef?J.viewContainerRef:this._viewContainerRef,i=(J.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(J.component),r=ge.createComponent(i,ge.length,J.injector||ge.injector);return ge!==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 ge=this._viewContainerRef.createEmbeddedView(J.templateRef,J.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=J,this._attachedRef=ge,this.attached.emit(ge),ge}_getRootNode(){const J=this._viewContainerRef.element.nativeElement;return J.nodeType===J.ELEMENT_NODE?J:J.parentNode}}return te.\u0275fac=function(J){return new(J||te)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},te.\u0275dir=t.lG2({type:te,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),te})(),de=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=t.oAB({type:te}),te.\u0275inj=t.cJS({}),te})()},5303:(Fe,Y,p)=>{"use strict";p.d(Y,{PQ:()=>u,ZD:()=>B,mF:()=>r,Cl:()=>P,rL:()=>C});var t=p(3191),e=p(5e3),f=p(4408),M=p(727);const a={schedule(z){let se=requestAnimationFrame,fe=cancelAnimationFrame;const{delegate:xe}=a;xe&&(se=xe.requestAnimationFrame,fe=xe.cancelAnimationFrame);const Re=se(we=>{fe=void 0,z(we)});return new M.w0(()=>null==fe?void 0:fe(Re))},requestAnimationFrame(...z){const{delegate:se}=a;return((null==se?void 0:se.requestAnimationFrame)||requestAnimationFrame)(...z)},cancelAnimationFrame(...z){const{delegate:se}=a;return((null==se?void 0:se.cancelAnimationFrame)||cancelAnimationFrame)(...z)},delegate:void 0};var d=p(7565);new class N extends d.v{flush(se){this._active=!0;const fe=this._scheduled;this._scheduled=void 0;const{actions:xe}=this;let Re;se=se||xe.shift();do{if(Re=se.execute(se.state,se.delay))break}while((se=xe[0])&&se.id===fe&&xe.shift());if(this._active=!1,Re){for(;(se=xe[0])&&se.id===fe&&xe.shift();)se.unsubscribe();throw Re}}}(class b extends f.o{constructor(se,fe){super(se,fe),this.scheduler=se,this.work=fe}requestAsyncId(se,fe,xe=0){return null!==xe&&xe>0?super.requestAsyncId(se,fe,xe):(se.actions.push(this),se._scheduled||(se._scheduled=a.requestAnimationFrame(()=>se.flush(void 0))))}recycleAsyncId(se,fe,xe=0){if(null!=xe&&xe>0||null==xe&&this.delay>0)return super.recycleAsyncId(se,fe,xe);se.actions.some(Re=>Re.id===fe)||(a.cancelAnimationFrame(fe),se._scheduled=void 0)}});var D=p(7579),w=p(9646),S=p(8306),I=p(4968),U=(p(3101),p(3601)),Z=p(9300),j=p(2722),ne=p(9808),X=p(925),de=p(226);let r=(()=>{class z{constructor(fe,xe,Re){this._ngZone=fe,this._platform=xe,this._scrolled=new D.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Re}register(fe){this.scrollContainers.has(fe)||this.scrollContainers.set(fe,fe.elementScrolled().subscribe(()=>this._scrolled.next(fe)))}deregister(fe){const xe=this.scrollContainers.get(fe);xe&&(xe.unsubscribe(),this.scrollContainers.delete(fe))}scrolled(fe=20){return this._platform.isBrowser?new S.y(xe=>{this._globalSubscription||this._addGlobalListener();const Re=fe>0?this._scrolled.pipe((0,U.e)(fe)).subscribe(xe):this._scrolled.subscribe(xe);return this._scrolledCount++,()=>{Re.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((fe,xe)=>this.deregister(xe)),this._scrolled.complete()}ancestorScrolled(fe,xe){const Re=this.getAncestorScrollContainers(fe);return this.scrolled(xe).pipe((0,Z.h)(we=>!we||Re.indexOf(we)>-1))}getAncestorScrollContainers(fe){const xe=[];return this.scrollContainers.forEach((Re,we)=>{this._scrollableContainsElement(we,fe)&&xe.push(we)}),xe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(fe,xe){let Re=(0,t.fI)(xe),we=fe.getElementRef().nativeElement;do{if(Re==we)return!0}while(Re=Re.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const fe=this._getWindow();return(0,I.R)(fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return z.\u0275fac=function(fe){return new(fe||z)(e.LFG(e.R0b),e.LFG(X.t4),e.LFG(ne.K0,8))},z.\u0275prov=e.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),u=(()=>{class z{constructor(fe,xe,Re,we){this.elementRef=fe,this.scrollDispatcher=xe,this.ngZone=Re,this.dir=we,this._destroyed=new D.x,this._elementScrolled=new S.y(Q=>this.ngZone.runOutsideAngular(()=>(0,I.R)(this.elementRef.nativeElement,"scroll").pipe((0,j.R)(this._destroyed)).subscribe(Q)))}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 xe=this.elementRef.nativeElement,Re=this.dir&&"rtl"==this.dir.value;null==fe.left&&(fe.left=Re?fe.end:fe.start),null==fe.right&&(fe.right=Re?fe.start:fe.end),null!=fe.bottom&&(fe.top=xe.scrollHeight-xe.clientHeight-fe.bottom),Re&&0!=(0,X._i)()?(null!=fe.left&&(fe.right=xe.scrollWidth-xe.clientWidth-fe.left),2==(0,X._i)()?fe.left=fe.right:1==(0,X._i)()&&(fe.left=fe.right?-fe.right:fe.right)):null!=fe.right&&(fe.left=xe.scrollWidth-xe.clientWidth-fe.right),this._applyScrollToOptions(fe)}_applyScrollToOptions(fe){const xe=this.elementRef.nativeElement;(0,X.Mq)()?xe.scrollTo(fe):(null!=fe.top&&(xe.scrollTop=fe.top),null!=fe.left&&(xe.scrollLeft=fe.left))}measureScrollOffset(fe){const xe="left",we=this.elementRef.nativeElement;if("top"==fe)return we.scrollTop;if("bottom"==fe)return we.scrollHeight-we.clientHeight-we.scrollTop;const Q=this.dir&&"rtl"==this.dir.value;return"start"==fe?fe=Q?"right":xe:"end"==fe&&(fe=Q?xe:"right"),Q&&2==(0,X._i)()?fe==xe?we.scrollWidth-we.clientWidth-we.scrollLeft:we.scrollLeft:Q&&1==(0,X._i)()?fe==xe?we.scrollLeft+we.scrollWidth-we.clientWidth:-we.scrollLeft:fe==xe?we.scrollLeft:we.scrollWidth-we.clientWidth-we.scrollLeft}}return z.\u0275fac=function(fe){return new(fe||z)(e.Y36(e.SBq),e.Y36(r),e.Y36(e.R0b),e.Y36(de.Is,8))},z.\u0275dir=e.lG2({type:z,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),z})(),C=(()=>{class z{constructor(fe,xe,Re){this._platform=fe,this._change=new D.x,this._changeListener=we=>{this._change.next(we)},this._document=Re,xe.runOutsideAngular(()=>{if(fe.isBrowser){const we=this._getWindow();we.addEventListener("resize",this._changeListener),we.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:xe,height:Re}=this.getViewportSize();return{top:fe.top,left:fe.left,bottom:fe.top+Re,right:fe.left+xe,height:Re,width:xe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const fe=this._document,xe=this._getWindow(),Re=fe.documentElement,we=Re.getBoundingClientRect();return{top:-we.top||fe.body.scrollTop||xe.scrollY||Re.scrollTop||0,left:-we.left||fe.body.scrollLeft||xe.scrollX||Re.scrollLeft||0}}change(fe=20){return fe>0?this._change.pipe((0,U.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 z.\u0275fac=function(fe){return new(fe||z)(e.LFG(X.t4),e.LFG(e.R0b),e.LFG(ne.K0,8))},z.\u0275prov=e.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),B=(()=>{class z{}return z.\u0275fac=function(fe){return new(fe||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({}),z})(),P=(()=>{class z{}return z.\u0275fac=function(fe){return new(fe||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[[de.vT,B],de.vT,B]}),z})()},1555:(Fe,Y,p)=>{"use strict";p.d(Y,{B8:()=>de,KL:()=>I,U5:()=>ce,be:()=>X,gx:()=>ne,po:()=>te,st:()=>ee,u6:()=>L});var t=p(5664),e=p(3191),f=p(1159),M=p(9808),a=p(5e3),b=p(925),d=p(7579),N=p(9646),h=p(8675),A=p(2722),D=p(226);function w(J,ge){1&J&&a.Hsn(0)}const S=["*"];let I=(()=>{class J{constructor(y){this._elementRef=y}focus(){this._elementRef.nativeElement.focus()}}return J.\u0275fac=function(y){return new(y||J)(a.Y36(a.SBq))},J.\u0275dir=a.lG2({type:J,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),J})(),L=(()=>{class J{constructor(y){this.template=y}}return J.\u0275fac=function(y){return new(y||J)(a.Y36(a.Rgc))},J.\u0275dir=a.lG2({type:J,selectors:[["","cdkStepLabel",""]]}),J})(),U=0;const ne=new a.OlP("STEPPER_GLOBAL_OPTIONS");let X=(()=>{class J{constructor(y,i){this._stepper=y,this.interacted=!1,this.interactedStream=new a.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(y){this._editable=(0,e.Ig)(y)}get optional(){return this._optional}set optional(y){this._optional=(0,e.Ig)(y)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(y){this._completedOverride=(0,e.Ig)(y)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(y){this._customError=(0,e.Ig)(y)}_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 y;return null!==(y=this._stepperOptions.showError)&&void 0!==y?y:null!=this._customError}}return J.\u0275fac=function(y){return new(y||J)(a.Y36((0,a.Gpc)(()=>de)),a.Y36(ne,8))},J.\u0275cmp=a.Xpm({type:J,selectors:[["cdk-step"]],contentQueries:function(y,i,r){if(1&y&&a.Suo(r,L,5),2&y){let u;a.iGM(u=a.CRH())&&(i.stepLabel=u.first)}},viewQuery:function(y,i){if(1&y&&a.Gf(a.Rgc,7),2&y){let r;a.iGM(r=a.CRH())&&(i.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:S,decls:1,vars:0,template:function(y,i){1&y&&(a.F$t(),a.YNc(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),J})(),de=(()=>{class J{constructor(y,i,r,u){this._dir=y,this._changeDetectorRef=i,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=U++}get linear(){return this._linear}set linear(y){this._linear=(0,e.Ig)(y)}get selectedIndex(){return this._selectedIndex}set selectedIndex(y){var i;const r=(0,e.su)(y);this.steps&&this._steps?(this._isValidIndex(r),null===(i=this.selected)||void 0===i||i._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(y){this.selectedIndex=y&&this.steps?this.steps.toArray().indexOf(y):-1}get orientation(){return this._orientation}set orientation(y){this._orientation=y,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===y)}ngAfterContentInit(){this._steps.changes.pipe((0,h.O)(this._steps),(0,A.R)(this._destroyed)).subscribe(y=>{this.steps.reset(y.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,h.O)(this._stepHeader),(0,A.R)(this._destroyed)).subscribe(y=>{this._sortedHeaders.reset(y.toArray().sort((i,r)=>i._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,N.of)()).pipe((0,h.O)(this._layoutDirection()),(0,A.R)(this._destroyed)).subscribe(y=>this._keyManager.withHorizontalOrientation(y)),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(y=>y.reset()),this._stateChanged()}_getStepLabelId(y){return`cdk-step-label-${this._groupId}-${y}`}_getStepContentId(y){return`cdk-step-content-${this._groupId}-${y}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(y){const i=y-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(y,i="number"){const r=this.steps.toArray()[y],u=this._isCurrentStep(y);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,u):this._getGuidelineLogic(r,u,i)}_getDefaultIndicatorLogic(y,i){return y._showError()&&y.hasError&&!i?"error":!y.completed||i?"number":y.editable?"edit":"done"}_getGuidelineLogic(y,i,r="number"){return y._showError()&&y.hasError&&!i?"error":y.completed&&!i?"done":y.completed&&i?r:y.editable&&i?"edit":r}_isCurrentStep(y){return this._selectedIndex===y}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(y){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:y,previouslySelectedIndex:this._selectedIndex,selectedStep:i[y],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(y):this._keyManager.updateActiveItem(y),this._selectedIndex=y,this._stateChanged()}_onKeydown(y){const i=(0,f.Vb)(y),r=y.keyCode,u=this._keyManager;null==u.activeItemIndex||i||r!==f.L_&&r!==f.K5?u.onKeydown(y):(this.selectedIndex=u.activeItemIndex,y.preventDefault())}_anyControlsInvalidOrPending(y){return!!(this._linear&&y>=0)&&this.steps.toArray().slice(0,y).some(i=>{const r=i.stepControl;return(r?r.invalid||r.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const y=this._elementRef.nativeElement,i=(0,b.ht)();return y===i||y.contains(i)}_isValidIndex(y){return y>-1&&(!this.steps||y{class J{constructor(y){this._stepper=y,this.type="submit"}}return J.\u0275fac=function(y){return new(y||J)(a.Y36(de))},J.\u0275dir=a.lG2({type:J,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(y,i){1&y&&a.NdJ("click",function(){return i._stepper.next()}),2&y&&a.Ikx("type",i.type)},inputs:{type:"type"}}),J})(),te=(()=>{class J{constructor(y){this._stepper=y,this.type="button"}}return J.\u0275fac=function(y){return new(y||J)(a.Y36(de))},J.\u0275dir=a.lG2({type:J,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(y,i){1&y&&a.NdJ("click",function(){return i._stepper.previous()}),2&y&&a.Ikx("type",i.type)},inputs:{type:"type"}}),J})(),ce=(()=>{class J{}return J.\u0275fac=function(y){return new(y||J)},J.\u0275mod=a.oAB({type:J}),J.\u0275inj=a.cJS({imports:[[D.vT]]}),J})()},8258:(Fe,Y,p)=>{"use strict";p.d(Y,{HI:()=>L,Hs:()=>J,Ud:()=>c,VY:()=>I,XJ:()=>u,Xx:()=>i,_0:()=>ce,cu:()=>U,nZ:()=>E,rO:()=>j});var t=p(449),e=p(5191),f=p(7579),M=p(1135),a=p(9646),b=p(5698),d=p(9300),N=p(2722),h=p(5e3),A=p(3191),D=p(226);class I extends class w{constructor(){this.expansionModel=new t.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(v=>this._trackByValue(v)))}collapseDescendants(_){let n=[_];n.push(...this.getDescendants(_)),this.expansionModel.deselect(...n.map(v=>this._trackByValue(v)))}_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,v)=>[...n,...this.getDescendants(v),v],[]);this.expansionModel.select(..._.map(n=>this._trackByValue(n)))}getDescendants(_){const n=[];return this._getDescendants(n,_),n.splice(1)}_getDescendants(_,n){_.push(n);const v=this.getChildren(n);Array.isArray(v)?v.forEach(B=>this._getDescendants(_,B)):(0,e.b)(v)&&v.pipe((0,b.q)(1),(0,d.h)(Boolean)).subscribe(B=>{for(const P of B)this._getDescendants(_,P)})}}const L=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let U=(()=>{class O{constructor(n,v){this.viewContainer=n,this._node=v}}return O.\u0275fac=function(n){return new(n||O)(h.Y36(h.s_b),h.Y36(L,8))},O.\u0275dir=h.lG2({type:O,selectors:[["","cdkTreeNodeOutlet",""]]}),O})();class Z{constructor(_){this.$implicit=_}}let j=(()=>{class O{constructor(n){this.template=n}}return O.\u0275fac=function(n){return new(n||O)(h.Y36(h.Rgc))},O.\u0275dir=h.lG2({type:O,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),O})(),ce=(()=>{class O{constructor(n,v){this._differs=n,this._changeDetectorRef=v,this._onDestroy=new f.x,this._levels=new Map,this.viewChange=new M.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(v=>!v.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,t.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,e.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,a.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,N.R)(this._onDestroy)).subscribe(v=>this.renderNodeChanges(v)))}renderNodeChanges(n,v=this._dataDiffer,B=this._nodeOutlet.viewContainer,P){const z=v.diff(n);!z||(z.forEachOperation((se,fe,xe)=>{if(null==se.previousIndex)this.insertNode(n[xe],xe,B,P);else if(null==xe)B.remove(fe),this._levels.delete(se.item);else{const Re=B.get(fe);B.move(Re,xe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,v){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(P=>P.when&&P.when(v,n))||this._defaultNodeDef}insertNode(n,v,B,P){const z=this._getNodeDef(n,v),se=new Z(n);se.level=this.treeControl.getLevel?this.treeControl.getLevel(n):void 0!==P&&this._levels.has(P)?this._levels.get(P)+1:0,this._levels.set(n,se.level),(B||this._nodeOutlet.viewContainer).createEmbeddedView(z.template,se,v),J.mostRecentTreeNode&&(J.mostRecentTreeNode.data=n)}}return O.\u0275fac=function(n){return new(n||O)(h.Y36(h.ZZ4),h.Y36(h.sBO))},O.\u0275cmp=h.Xpm({type:O,selectors:[["cdk-tree"]],contentQueries:function(n,v,B){if(1&n&&h.Suo(B,j,5),2&n){let P;h.iGM(P=h.CRH())&&(v._nodeDefs=P)}},viewQuery:function(n,v){if(1&n&&h.Gf(U,7),2&n){let B;h.iGM(B=h.CRH())&&(v._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,v){1&n&&h.GkF(0,0)},directives:[U],encapsulation:2}),O})(),J=(()=>{class O{constructor(n,v){this._elementRef=n,this._tree=v,this._destroyed=new f.x,this._dataChanges=new f.x,O.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 ge(O){let _=O.parentElement;for(;_&&!y(_);)_=_.parentElement;return _?_.classList.contains("cdk-nested-tree-node")?(0,A.su)(_.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){O.mostRecentTreeNode===this&&(O.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return O.mostRecentTreeNode=null,O.\u0275fac=function(n){return new(n||O)(h.Y36(h.SBq),h.Y36(ce))},O.\u0275dir=h.lG2({type:O,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,v){2&n&&h.uIk("aria-expanded",v.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),O})();function y(O){const _=O.classList;return!(!(null==_?void 0:_.contains("cdk-nested-tree-node"))&&!(null==_?void 0:_.contains("cdk-tree")))}let i=(()=>{class O extends J{constructor(n,v,B){super(n,v),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,e.b)(n)&&n.pipe((0,N.R)(this._destroyed)).subscribe(v=>this.updateChildrenNodes(v)),this.nodeOutlet.changes.pipe((0,N.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const v=this._getNodeOutlet();n&&(this._children=n),v&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,v.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(v=>!v._node||v._node===this)}}return O.\u0275fac=function(n){return new(n||O)(h.Y36(h.SBq),h.Y36(ce),h.Y36(h.ZZ4))},O.\u0275dir=h.lG2({type:O,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,v,B){if(1&n&&h.Suo(B,U,5),2&n){let P;h.iGM(P=h.CRH())&&(v.nodeOutlet=P)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:J,useExisting:O},{provide:L,useExisting:O}]),h.qOj]}),O})();const r=/([A-Za-z%]+)$/;let u=(()=>{class O{constructor(n,v,B,P){this._treeNode=n,this._tree=v,this._element=B,this._dir=P,this._destroyed=new f.x,this.indentUnits="px",this._indent=40,this._setPadding(),P&&P.change.pipe((0,N.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,v=null==this._level?n:this._level;return"number"==typeof v?`${v*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const v=this._paddingIndent();if(v!==this._currentPadding||n){const B=this._element.nativeElement,P=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",z="paddingLeft"===P?"paddingRight":"paddingLeft";B.style[P]=v||"",B.style[z]="",this._currentPadding=v}}_setLevelInput(n){this._level=(0,A.su)(n,null),this._setPadding()}_setIndentInput(n){let v=n,B="px";if("string"==typeof n){const P=n.split(r);v=P[0],B=P[1]||B}this.indentUnits=B,this._indent=(0,A.su)(v),this._setPadding()}}return O.\u0275fac=function(n){return new(n||O)(h.Y36(J),h.Y36(ce),h.Y36(h.SBq),h.Y36(D.Is,8))},O.\u0275dir=h.lG2({type:O,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),O})(),c=(()=>{class O{constructor(n,v){this._tree=n,this._treeNode=v,this._recursive=!1}get recursive(){return this._recursive}set recursive(n){this._recursive=(0,A.Ig)(n)}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return O.\u0275fac=function(n){return new(n||O)(h.Y36(ce),h.Y36(J))},O.\u0275dir=h.lG2({type:O,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,v){1&n&&h.NdJ("click",function(P){return v._toggle(P)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),O})(),E=(()=>{class O{}return O.\u0275fac=function(n){return new(n||O)},O.\u0275mod=h.oAB({type:O}),O.\u0275inj=h.cJS({}),O})()},9808:(Fe,Y,p)=>{"use strict";p.d(Y,{Do:()=>de,ED:()=>Fn,EM:()=>Hr,HT:()=>a,JF:()=>Wn,JJ:()=>Za,K0:()=>d,Mx:()=>en,NF:()=>$n,Nd:()=>qr,O5:()=>mi,OU:()=>Rr,Ov:()=>ga,PC:()=>cn,PM:()=>Ta,RF:()=>Fi,S$:()=>Z,Ts:()=>lr,V_:()=>A,Ye:()=>ee,b0:()=>X,bD:()=>Ir,ez:()=>gr,gd:()=>nr,i8:()=>Ca,lw:()=>N,mk:()=>ji,mr:()=>ne,n9:()=>pn,q:()=>f,rS:()=>Ra,sg:()=>zt,tP:()=>pr,uU:()=>da,w_:()=>b});var t=p(5e3);let e=null;function f(){return e}function a(Xe){e||(e=Xe)}class b{}const d=new t.OlP("DocumentToken");let N=(()=>{class Xe{historyGo(Ke){throw new Error("Not implemented")}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275prov=t.Yz7({token:Xe,factory:function(){return function h(){return(0,t.LFG)(D)}()},providedIn:"platform"}),Xe})();const A=new t.OlP("Location Initialized");let D=(()=>{class Xe extends N{constructor(Ke){super(),this._doc=Ke,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return f().getBaseHref(this._doc)}onPopState(Ke){const Ot=f().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("popstate",Ke,!1),()=>Ot.removeEventListener("popstate",Ke)}onHashChange(Ke){const Ot=f().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("hashchange",Ke,!1),()=>Ot.removeEventListener("hashchange",Ke)}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(Ke){this.location.pathname=Ke}pushState(Ke,Ot,ri){w()?this._history.pushState(Ke,Ot,ri):this.location.hash=ri}replaceState(Ke,Ot,ri){w()?this._history.replaceState(Ke,Ot,ri):this.location.hash=ri}forward(){this._history.forward()}back(){this._history.back()}historyGo(Ke=0){this._history.go(Ke)}getState(){return this._history.state}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.LFG(d))},Xe.\u0275prov=t.Yz7({token:Xe,factory:function(){return function S(){return new D((0,t.LFG)(d))}()},providedIn:"platform"}),Xe})();function w(){return!!window.history.pushState}function I(Xe,St){if(0==Xe.length)return St;if(0==St.length)return Xe;let Ke=0;return Xe.endsWith("/")&&Ke++,St.startsWith("/")&&Ke++,2==Ke?Xe+St.substring(1):1==Ke?Xe+St:Xe+"/"+St}function L(Xe){const St=Xe.match(/#|\?|$/),Ke=St&&St.index||Xe.length;return Xe.slice(0,Ke-("/"===Xe[Ke-1]?1:0))+Xe.slice(Ke)}function U(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let Z=(()=>{class Xe{historyGo(Ke){throw new Error("Not implemented")}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275prov=t.Yz7({token:Xe,factory:function(){return function j(Xe){const St=(0,t.LFG)(d).location;return new X((0,t.LFG)(N),St&&St.origin||"")}()},providedIn:"root"}),Xe})();const ne=new t.OlP("appBaseHref");let X=(()=>{class Xe extends Z{constructor(Ke,Ot){if(super(),this._platformLocation=Ke,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(Ke){this._removeListenerFns.push(this._platformLocation.onPopState(Ke),this._platformLocation.onHashChange(Ke))}getBaseHref(){return this._baseHref}prepareExternalUrl(Ke){return I(this._baseHref,Ke)}path(Ke=!1){const Ot=this._platformLocation.pathname+U(this._platformLocation.search),ri=this._platformLocation.hash;return ri&&Ke?`${Ot}${ri}`:Ot}pushState(Ke,Ot,ri,Ti){const ki=this.prepareExternalUrl(ri+U(Ti));this._platformLocation.pushState(Ke,Ot,ki)}replaceState(Ke,Ot,ri,Ti){const ki=this.prepareExternalUrl(ri+U(Ti));this._platformLocation.replaceState(Ke,Ot,ki)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Ke=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,Ke)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.LFG(N),t.LFG(ne,8))},Xe.\u0275prov=t.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),de=(()=>{class Xe extends Z{constructor(Ke,Ot){super(),this._platformLocation=Ke,this._baseHref="",this._removeListenerFns=[],null!=Ot&&(this._baseHref=Ot)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ke){this._removeListenerFns.push(this._platformLocation.onPopState(Ke),this._platformLocation.onHashChange(Ke))}getBaseHref(){return this._baseHref}path(Ke=!1){let Ot=this._platformLocation.hash;return null==Ot&&(Ot="#"),Ot.length>0?Ot.substring(1):Ot}prepareExternalUrl(Ke){const Ot=I(this._baseHref,Ke);return Ot.length>0?"#"+Ot:Ot}pushState(Ke,Ot,ri,Ti){let ki=this.prepareExternalUrl(ri+U(Ti));0==ki.length&&(ki=this._platformLocation.pathname),this._platformLocation.pushState(Ke,Ot,ki)}replaceState(Ke,Ot,ri,Ti){let ki=this.prepareExternalUrl(ri+U(Ti));0==ki.length&&(ki=this._platformLocation.pathname),this._platformLocation.replaceState(Ke,Ot,ki)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Ke=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,Ke)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.LFG(N),t.LFG(ne,8))},Xe.\u0275prov=t.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),ee=(()=>{class Xe{constructor(Ke,Ot){this._subject=new t.vpe,this._urlChangeListeners=[],this._platformStrategy=Ke;const ri=this._platformStrategy.getBaseHref();this._platformLocation=Ot,this._baseHref=L(J(ri)),this._platformStrategy.onPopState(Ti=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ti.state,type:Ti.type})})}path(Ke=!1){return this.normalize(this._platformStrategy.path(Ke))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(Ke,Ot=""){return this.path()==this.normalize(Ke+U(Ot))}normalize(Ke){return Xe.stripTrailingSlash(function ce(Xe,St){return Xe&&St.startsWith(Xe)?St.substring(Xe.length):St}(this._baseHref,J(Ke)))}prepareExternalUrl(Ke){return Ke&&"/"!==Ke[0]&&(Ke="/"+Ke),this._platformStrategy.prepareExternalUrl(Ke)}go(Ke,Ot="",ri=null){this._platformStrategy.pushState(ri,"",Ke,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ke+U(Ot)),ri)}replaceState(Ke,Ot="",ri=null){this._platformStrategy.replaceState(ri,"",Ke,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ke+U(Ot)),ri)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Ke=0){var Ot,ri;null===(ri=(Ot=this._platformStrategy).historyGo)||void 0===ri||ri.call(Ot,Ke)}onUrlChange(Ke){this._urlChangeListeners.push(Ke),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ot=>{this._notifyUrlChangeListeners(Ot.url,Ot.state)}))}_notifyUrlChangeListeners(Ke="",Ot){this._urlChangeListeners.forEach(ri=>ri(Ke,Ot))}subscribe(Ke,Ot,ri){return this._subject.subscribe({next:Ke,error:Ot,complete:ri})}}return Xe.normalizeQueryParams=U,Xe.joinWithSlash=I,Xe.stripTrailingSlash=L,Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.LFG(Z),t.LFG(N))},Xe.\u0275prov=t.Yz7({token:Xe,factory:function(){return function te(){return new ee((0,t.LFG)(Z),(0,t.LFG)(N))}()},providedIn:"root"}),Xe})();function J(Xe){return Xe.replace(/\/index.html$/,"")}var y=(()=>((y=y||{})[y.Decimal=0]="Decimal",y[y.Percent=1]="Percent",y[y.Currency=2]="Currency",y[y.Scientific=3]="Scientific",y))(),r=(()=>((r=r||{})[r.Format=0]="Format",r[r.Standalone=1]="Standalone",r))(),u=(()=>((u=u||{})[u.Narrow=0]="Narrow",u[u.Abbreviated=1]="Abbreviated",u[u.Wide=2]="Wide",u[u.Short=3]="Short",u))(),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 se(Xe,St){return Te((0,t.cg1)(Xe)[t.wAp.DateFormat],St)}function fe(Xe,St){return Te((0,t.cg1)(Xe)[t.wAp.TimeFormat],St)}function xe(Xe,St){return Te((0,t.cg1)(Xe)[t.wAp.DateTimeFormat],St)}function Re(Xe,St){const Ke=(0,t.cg1)(Xe),Ot=Ke[t.wAp.NumberSymbols][St];if(void 0===Ot){if(St===C.CurrencyDecimal)return Ke[t.wAp.NumberSymbols][C.Decimal];if(St===C.CurrencyGroup)return Ke[t.wAp.NumberSymbols][C.Group]}return Ot}function lt(Xe){if(!Xe[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Xe[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Te(Xe,St){for(let Ke=St;Ke>-1;Ke--)if(void 0!==Xe[Ke])return Xe[Ke];throw new Error("Locale data API: locale data undefined")}function ye(Xe){const[St,Ke]=Xe.split(":");return{hours:+St,minutes:+Ke}}const Ce=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Le={},ct=/((?:[^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 ut=(()=>((ut=ut||{})[ut.Short=0]="Short",ut[ut.ShortGMT=1]="ShortGMT",ut[ut.Long=2]="Long",ut[ut.Extended=3]="Extended",ut))(),Dt=(()=>((Dt=Dt||{})[Dt.FullYear=0]="FullYear",Dt[Dt.Month=1]="Month",Dt[Dt.Date=2]="Date",Dt[Dt.Hours=3]="Hours",Dt[Dt.Minutes=4]="Minutes",Dt[Dt.Seconds=5]="Seconds",Dt[Dt.FractionalSeconds=6]="FractionalSeconds",Dt[Dt.Day=7]="Day",Dt))(),di=(()=>((di=di||{})[di.DayPeriods=0]="DayPeriods",di[di.Days=1]="Days",di[di.Months=2]="Months",di[di.Eras=3]="Eras",di))();function Yt(Xe,St,Ke,Ot){let ri=function Ue(Xe){if(at(Xe))return Xe;if("number"==typeof Xe&&!isNaN(Xe))return new Date(Xe);if("string"==typeof Xe){if(Xe=Xe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Xe)){const[ri,Ti=1,ki=1]=Xe.split("-").map(an=>+an);return Gt(ri,Ti-1,ki)}const Ke=parseFloat(Xe);if(!isNaN(Xe-Ke))return new Date(Ke);let Ot;if(Ot=Xe.match(Ce))return function rt(Xe){const St=new Date(0);let Ke=0,Ot=0;const ri=Xe[8]?St.setUTCFullYear:St.setFullYear,Ti=Xe[8]?St.setUTCHours:St.setHours;Xe[9]&&(Ke=Number(Xe[9]+Xe[10]),Ot=Number(Xe[9]+Xe[11])),ri.call(St,Number(Xe[1]),Number(Xe[2])-1,Number(Xe[3]));const ki=Number(Xe[4]||0)-Ke,an=Number(Xe[5]||0)-Ot,It=Number(Xe[6]||0),hi=Math.floor(1e3*parseFloat("0."+(Xe[7]||0)));return Ti.call(St,ki,an,It,hi),St}(Ot)}const St=new Date(Xe);if(!at(St))throw new Error(`Unable to convert "${Xe}" into a date`);return St}(Xe);St=ui(Ke,St)||St;let an,ki=[];for(;St;){if(an=ct.exec(St),!an){ki.push(St);break}{ki=ki.concat(an.slice(1));const mt=ki.pop();if(!mt)break;St=mt}}let It=ri.getTimezoneOffset();Ot&&(It=tt(Ot,It),ri=function Se(Xe,St,Ke){const Ot=Ke?-1:1,ri=Xe.getTimezoneOffset();return function Je(Xe,St){return(Xe=new Date(Xe.getTime())).setMinutes(Xe.getMinutes()+St),Xe}(Xe,Ot*(tt(St,ri)-ri))}(ri,Ot,!0));let hi="";return ki.forEach(mt=>{const Zt=function Ne(Xe){if(it[Xe])return it[Xe];let St;switch(Xe){case"G":case"GG":case"GGG":St=$t(di.Eras,u.Abbreviated);break;case"GGGG":St=$t(di.Eras,u.Wide);break;case"GGGGG":St=$t(di.Eras,u.Narrow);break;case"y":St=et(Dt.FullYear,1,0,!1,!0);break;case"yy":St=et(Dt.FullYear,2,0,!0,!0);break;case"yyy":St=et(Dt.FullYear,3,0,!1,!0);break;case"yyyy":St=et(Dt.FullYear,4,0,!1,!0);break;case"Y":St=Ht(1);break;case"YY":St=Ht(2,!0);break;case"YYY":St=Ht(3);break;case"YYYY":St=Ht(4);break;case"M":case"L":St=et(Dt.Month,1,1);break;case"MM":case"LL":St=et(Dt.Month,2,1);break;case"MMM":St=$t(di.Months,u.Abbreviated);break;case"MMMM":St=$t(di.Months,u.Wide);break;case"MMMMM":St=$t(di.Months,u.Narrow);break;case"LLL":St=$t(di.Months,u.Abbreviated,r.Standalone);break;case"LLLL":St=$t(di.Months,u.Wide,r.Standalone);break;case"LLLLL":St=$t(di.Months,u.Narrow,r.Standalone);break;case"w":St=ft(1);break;case"ww":St=ft(2);break;case"W":St=ft(1,!0);break;case"d":St=et(Dt.Date,1);break;case"dd":St=et(Dt.Date,2);break;case"c":case"cc":St=et(Dt.Day,1);break;case"ccc":St=$t(di.Days,u.Abbreviated,r.Standalone);break;case"cccc":St=$t(di.Days,u.Wide,r.Standalone);break;case"ccccc":St=$t(di.Days,u.Narrow,r.Standalone);break;case"cccccc":St=$t(di.Days,u.Short,r.Standalone);break;case"E":case"EE":case"EEE":St=$t(di.Days,u.Abbreviated);break;case"EEEE":St=$t(di.Days,u.Wide);break;case"EEEEE":St=$t(di.Days,u.Narrow);break;case"EEEEEE":St=$t(di.Days,u.Short);break;case"a":case"aa":case"aaa":St=$t(di.DayPeriods,u.Abbreviated);break;case"aaaa":St=$t(di.DayPeriods,u.Wide);break;case"aaaaa":St=$t(di.DayPeriods,u.Narrow);break;case"b":case"bb":case"bbb":St=$t(di.DayPeriods,u.Abbreviated,r.Standalone,!0);break;case"bbbb":St=$t(di.DayPeriods,u.Wide,r.Standalone,!0);break;case"bbbbb":St=$t(di.DayPeriods,u.Narrow,r.Standalone,!0);break;case"B":case"BB":case"BBB":St=$t(di.DayPeriods,u.Abbreviated,r.Format,!0);break;case"BBBB":St=$t(di.DayPeriods,u.Wide,r.Format,!0);break;case"BBBBB":St=$t(di.DayPeriods,u.Narrow,r.Format,!0);break;case"h":St=et(Dt.Hours,1,-12);break;case"hh":St=et(Dt.Hours,2,-12);break;case"H":St=et(Dt.Hours,1);break;case"HH":St=et(Dt.Hours,2);break;case"m":St=et(Dt.Minutes,1);break;case"mm":St=et(Dt.Minutes,2);break;case"s":St=et(Dt.Seconds,1);break;case"ss":St=et(Dt.Seconds,2);break;case"S":St=et(Dt.FractionalSeconds,1);break;case"SS":St=et(Dt.FractionalSeconds,2);break;case"SSS":St=et(Dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":St=Pe(ut.Short);break;case"ZZZZZ":St=Pe(ut.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":St=Pe(ut.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":St=Pe(ut.Long);break;default:return null}return it[Xe]=St,St}(mt);hi+=Zt?Zt(ri,Ke,It):"''"===mt?"'":mt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),hi}function Gt(Xe,St,Ke){const Ot=new Date(0);return Ot.setFullYear(Xe,St,Ke),Ot.setHours(0,0,0),Ot}function ui(Xe,St){const Ke=function O(Xe){return(0,t.cg1)(Xe)[t.wAp.LocaleId]}(Xe);if(Le[Ke]=Le[Ke]||{},Le[Ke][St])return Le[Ke][St];let Ot="";switch(St){case"shortDate":Ot=se(Xe,c.Short);break;case"mediumDate":Ot=se(Xe,c.Medium);break;case"longDate":Ot=se(Xe,c.Long);break;case"fullDate":Ot=se(Xe,c.Full);break;case"shortTime":Ot=fe(Xe,c.Short);break;case"mediumTime":Ot=fe(Xe,c.Medium);break;case"longTime":Ot=fe(Xe,c.Long);break;case"fullTime":Ot=fe(Xe,c.Full);break;case"short":const ri=ui(Xe,"shortTime"),Ti=ui(Xe,"shortDate");Ot=xt(xe(Xe,c.Short),[ri,Ti]);break;case"medium":const ki=ui(Xe,"mediumTime"),an=ui(Xe,"mediumDate");Ot=xt(xe(Xe,c.Medium),[ki,an]);break;case"long":const It=ui(Xe,"longTime"),hi=ui(Xe,"longDate");Ot=xt(xe(Xe,c.Long),[It,hi]);break;case"full":const mt=ui(Xe,"fullTime"),Zt=ui(Xe,"fullDate");Ot=xt(xe(Xe,c.Full),[mt,Zt])}return Ot&&(Le[Ke][St]=Ot),Ot}function xt(Xe,St){return St&&(Xe=Xe.replace(/\{([^}]+)}/g,function(Ke,Ot){return null!=St&&Ot in St?St[Ot]:Ke})),Xe}function Nt(Xe,St,Ke="-",Ot,ri){let Ti="";(Xe<0||ri&&Xe<=0)&&(ri?Xe=1-Xe:(Xe=-Xe,Ti=Ke));let ki=String(Xe);for(;ki.length0||an>-Ke)&&(an+=Ke),Xe===Dt.Hours)0===an&&-12===Ke&&(an=12);else if(Xe===Dt.FractionalSeconds)return function gt(Xe,St){return Nt(Xe,3).substr(0,St)}(an,St);const It=Re(ki,C.MinusSign);return Nt(an,St,It,Ot,ri)}}function $t(Xe,St,Ke=r.Format,Ot=!1){return function(ri,Ti){return function jt(Xe,St,Ke,Ot,ri,Ti){switch(Ke){case di.Months:return function v(Xe,St,Ke){const Ot=(0,t.cg1)(Xe),Ti=Te([Ot[t.wAp.MonthsFormat],Ot[t.wAp.MonthsStandalone]],St);return Te(Ti,Ke)}(St,ri,Ot)[Xe.getMonth()];case di.Days:return function n(Xe,St,Ke){const Ot=(0,t.cg1)(Xe),Ti=Te([Ot[t.wAp.DaysFormat],Ot[t.wAp.DaysStandalone]],St);return Te(Ti,Ke)}(St,ri,Ot)[Xe.getDay()];case di.DayPeriods:const ki=Xe.getHours(),an=Xe.getMinutes();if(Ti){const hi=function Ie(Xe){const St=(0,t.cg1)(Xe);return lt(St),(St[t.wAp.ExtraData][2]||[]).map(Ot=>"string"==typeof Ot?ye(Ot):[ye(Ot[0]),ye(Ot[1])])}(St),mt=function De(Xe,St,Ke){const Ot=(0,t.cg1)(Xe);lt(Ot);const Ti=Te([Ot[t.wAp.ExtraData][0],Ot[t.wAp.ExtraData][1]],St)||[];return Te(Ti,Ke)||[]}(St,ri,Ot),Zt=hi.findIndex(Hi=>{if(Array.isArray(Hi)){const[Zi,Ln]=Hi,Qe=ki>=Zi.hours&&an>=Zi.minutes,We=ki0?Math.floor(ri/60):Math.ceil(ri/60);switch(Xe){case ut.Short:return(ri>=0?"+":"")+Nt(ki,2,Ti)+Nt(Math.abs(ri%60),2,Ti);case ut.ShortGMT:return"GMT"+(ri>=0?"+":"")+Nt(ki,1,Ti);case ut.Long:return"GMT"+(ri>=0?"+":"")+Nt(ki,2,Ti)+":"+Nt(Math.abs(ri%60),2,Ti);case ut.Extended:return 0===Ot?"Z":(ri>=0?"+":"")+Nt(ki,2,Ti)+":"+Nt(Math.abs(ri%60),2,Ti);default:throw new Error(`Unknown zone width "${Xe}"`)}}}function ht(Xe){return Gt(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()+(4-Xe.getDay()))}function ft(Xe,St=!1){return function(Ke,Ot){let ri;if(St){const Ti=new Date(Ke.getFullYear(),Ke.getMonth(),1).getDay()-1,ki=Ke.getDate();ri=1+Math.floor((ki+Ti)/7)}else{const Ti=ht(Ke),ki=function be(Xe){const St=Gt(Xe,0,1).getDay();return Gt(Xe,0,1+(St<=4?4:11)-St)}(Ti.getFullYear()),an=Ti.getTime()-ki.getTime();ri=1+Math.round(an/6048e5)}return Nt(ri,Xe,Re(Ot,C.MinusSign))}}function Ht(Xe,St=!1){return function(Ke,Ot){return Nt(ht(Ke).getFullYear(),Xe,Re(Ot,C.MinusSign),St)}}const it={};function tt(Xe,St){Xe=Xe.replace(/:/g,"");const Ke=Date.parse("Jan 01, 1970 00:00:00 "+Xe)/6e4;return isNaN(Ke)?St:Ke}function at(Xe){return Xe instanceof Date&&!isNaN(Xe.valueOf())}const yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function qe(Xe){const St=parseInt(Xe);if(isNaN(St))throw new Error("Invalid integer literal when parsing "+Xe);return St}function en(Xe,St){St=encodeURIComponent(St);for(const Ke of Xe.split(";")){const Ot=Ke.indexOf("="),[ri,Ti]=-1==Ot?[Ke,""]:[Ke.slice(0,Ot),Ke.slice(Ot+1)];if(ri.trim()===St)return decodeURIComponent(Ti)}return null}let ji=(()=>{class Xe{constructor(Ke,Ot,ri,Ti){this._iterableDiffers=Ke,this._keyValueDiffers=Ot,this._ngEl=ri,this._renderer=Ti,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Ke){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Ke?Ke.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Ke){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Ke?Ke.split(/\s+/):Ke,this._rawClass&&((0,t.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Ke=this._iterableDiffer.diff(this._rawClass);Ke&&this._applyIterableChanges(Ke)}else if(this._keyValueDiffer){const Ke=this._keyValueDiffer.diff(this._rawClass);Ke&&this._applyKeyValueChanges(Ke)}}_applyKeyValueChanges(Ke){Ke.forEachAddedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),Ke.forEachChangedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),Ke.forEachRemovedItem(Ot=>{Ot.previousValue&&this._toggleClass(Ot.key,!1)})}_applyIterableChanges(Ke){Ke.forEachAddedItem(Ot=>{if("string"!=typeof Ot.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,t.AaK)(Ot.item)}`);this._toggleClass(Ot.item,!0)}),Ke.forEachRemovedItem(Ot=>this._toggleClass(Ot.item,!1))}_applyClasses(Ke){Ke&&(Array.isArray(Ke)||Ke instanceof Set?Ke.forEach(Ot=>this._toggleClass(Ot,!0)):Object.keys(Ke).forEach(Ot=>this._toggleClass(Ot,!!Ke[Ot])))}_removeClasses(Ke){Ke&&(Array.isArray(Ke)||Ke instanceof Set?Ke.forEach(Ot=>this._toggleClass(Ot,!1)):Object.keys(Ke).forEach(Ot=>this._toggleClass(Ot,!1)))}_toggleClass(Ke,Ot){(Ke=Ke.trim())&&Ke.split(/\s+/g).forEach(ri=>{Ot?this._renderer.addClass(this._ngEl.nativeElement,ri):this._renderer.removeClass(this._ngEl.nativeElement,ri)})}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Xe})();class Oi{constructor(St,Ke,Ot,ri){this.$implicit=St,this.ngForOf=Ke,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 Xe{constructor(Ke,Ot,ri){this._viewContainer=Ke,this._template=Ot,this._differs=ri,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Ke){this._ngForOf=Ke,this._ngForOfDirty=!0}set ngForTrackBy(Ke){this._trackByFn=Ke}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Ke){Ke&&(this._template=Ke)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Ke=this._ngForOf;!this._differ&&Ke&&(this._differ=this._differs.find(Ke).create(this.ngForTrackBy))}if(this._differ){const Ke=this._differ.diff(this._ngForOf);Ke&&this._applyChanges(Ke)}}_applyChanges(Ke){const Ot=this._viewContainer;Ke.forEachOperation((ri,Ti,ki)=>{if(null==ri.previousIndex)Ot.createEmbeddedView(this._template,new Oi(ri.item,this._ngForOf,-1,-1),null===ki?void 0:ki);else if(null==ki)Ot.remove(null===Ti?void 0:Ti);else if(null!==Ti){const an=Ot.get(Ti);Ot.move(an,ki),si(an,ri)}});for(let ri=0,Ti=Ot.length;ri{si(Ot.get(ri.currentIndex),ri)})}static ngTemplateContextGuard(Ke,Ot){return!0}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Xe})();function si(Xe,St){Xe.context.$implicit=St.item}let mi=(()=>{class Xe{constructor(Ke,Ot){this._viewContainer=Ke,this._context=new ti,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ot}set ngIf(Ke){this._context.$implicit=this._context.ngIf=Ke,this._updateView()}set ngIfThen(Ke){vi("ngIfThen",Ke),this._thenTemplateRef=Ke,this._thenViewRef=null,this._updateView()}set ngIfElse(Ke){vi("ngIfElse",Ke),this._elseTemplateRef=Ke,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(Ke,Ot){return!0}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b),t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Xe})();class ti{constructor(){this.$implicit=null,this.ngIf=null}}function vi(Xe,St){if(St&&!St.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,t.AaK)(St)}'.`)}class Bi{constructor(St,Ke){this._viewContainerRef=St,this._templateRef=Ke,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(St){St&&!this._created?this.create():!St&&this._created&&this.destroy()}}let Fi=(()=>{class Xe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Ke){this._ngSwitch=Ke,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Ke){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Ke)}_matchCase(Ke){const Ot=Ke==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(Ke){if(this._defaultViews&&Ke!==this._defaultUsed){this._defaultUsed=Ke;for(let Ot=0;Ot{class Xe{constructor(Ke,Ot,ri){this.ngSwitch=ri,ri._addCase(),this._view=new Bi(Ke,Ot)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Fi,9))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Xe})(),Fn=(()=>{class Xe{constructor(Ke,Ot,ri){ri._addDefault(new Bi(Ke,Ot))}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Fi,9))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngSwitchDefault",""]]}),Xe})(),cn=(()=>{class Xe{constructor(Ke,Ot,ri){this._ngEl=Ke,this._differs=Ot,this._renderer=ri,this._ngStyle=null,this._differ=null}set ngStyle(Ke){this._ngStyle=Ke,!this._differ&&Ke&&(this._differ=this._differs.find(Ke).create())}ngDoCheck(){if(this._differ){const Ke=this._differ.diff(this._ngStyle);Ke&&this._applyChanges(Ke)}}_setStyle(Ke,Ot){const[ri,Ti]=Ke.split(".");null!=(Ot=null!=Ot&&Ti?`${Ot}${Ti}`:Ot)?this._renderer.setStyle(this._ngEl.nativeElement,ri,Ot):this._renderer.removeStyle(this._ngEl.nativeElement,ri)}_applyChanges(Ke){Ke.forEachRemovedItem(Ot=>this._setStyle(Ot.key,null)),Ke.forEachAddedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue)),Ke.forEachChangedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue))}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Xe})(),pr=(()=>{class Xe{constructor(Ke){this._viewContainerRef=Ke,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(Ke){if(Ke.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&&Ke.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.s_b))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[t.TTD]}),Xe})();function Jn(Xe,St){return new t.vHH(2100,"")}class mr{createSubscription(St,Ke){return St.subscribe({next:Ke,error:Ot=>{throw Ot}})}dispose(St){St.unsubscribe()}onDestroy(St){St.unsubscribe()}}class Pr{createSubscription(St,Ke){return St.then(Ke,Ot=>{throw Ot})}dispose(St){}onDestroy(St){}}const Nr=new Pr,ca=new mr;let ga=(()=>{class Xe{constructor(Ke){this._ref=Ke,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(Ke){return this._obj?Ke!==this._obj?(this._dispose(),this.transform(Ke)):this._latestValue:(Ke&&this._subscribe(Ke),this._latestValue)}_subscribe(Ke){this._obj=Ke,this._strategy=this._selectStrategy(Ke),this._subscription=this._strategy.createSubscription(Ke,Ot=>this._updateLatestValue(Ke,Ot))}_selectStrategy(Ke){if((0,t.QGY)(Ke))return Nr;if((0,t.F4k)(Ke))return ca;throw Jn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Ke,Ot){Ke===this._obj&&(this._latestValue=Ot,this._ref.markForCheck())}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.sBO,16))},Xe.\u0275pipe=t.Yjl({name:"async",type:Xe,pure:!1}),Xe})(),Ca=(()=>{class Xe{transform(Ke){if(null==Ke)return null;if("string"!=typeof Ke)throw Jn();return Ke.toLowerCase()}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"lowercase",type:Xe,pure:!0}),Xe})();const Na=/(?:[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 Ra=(()=>{class Xe{transform(Ke){if(null==Ke)return null;if("string"!=typeof Ke)throw Jn();return Ke.replace(Na,Ot=>Ot[0].toUpperCase()+Ot.substr(1).toLowerCase())}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"titlecase",type:Xe,pure:!0}),Xe})(),nr=(()=>{class Xe{transform(Ke){if(null==Ke)return null;if("string"!=typeof Ke)throw Jn();return Ke.toUpperCase()}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"uppercase",type:Xe,pure:!0}),Xe})();const Qr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let da=(()=>{class Xe{constructor(Ke,Ot){this.locale=Ke,this.defaultTimezone=Ot}transform(Ke,Ot="mediumDate",ri,Ti){var ki;if(null==Ke||""===Ke||Ke!=Ke)return null;try{return Yt(Ke,Ot,Ti||this.locale,null!==(ki=null!=ri?ri:this.defaultTimezone)&&void 0!==ki?ki:void 0)}catch(an){throw Jn()}}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.soG,16),t.Y36(Qr,24))},Xe.\u0275pipe=t.Yjl({name:"date",type:Xe,pure:!0}),Xe})(),lr=(()=>{class Xe{transform(Ke){return JSON.stringify(Ke,null,2)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"json",type:Xe,pure:!1}),Xe})(),qr=(()=>{class Xe{constructor(Ke){this.differs=Ke,this.keyValues=[],this.compareFn=Xn}transform(Ke,Ot=Xn){if(!Ke||!(Ke instanceof Map)&&"object"!=typeof Ke)return null;this.differ||(this.differ=this.differs.find(Ke).create());const ri=this.differ.diff(Ke),Ti=Ot!==this.compareFn;return ri&&(this.keyValues=[],ri.forEachItem(ki=>{this.keyValues.push(function fn(Xe,St){return{key:Xe,value:St}}(ki.key,ki.currentValue))})),(ri||Ti)&&(this.keyValues.sort(Ot),this.compareFn=Ot),this.keyValues}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)(t.Y36(t.aQg,16))},Xe.\u0275pipe=t.Yjl({name:"keyvalue",type:Xe,pure:!1}),Xe})();function Xn(Xe,St){const Ke=Xe.key,Ot=St.key;if(Ke===Ot)return 0;if(void 0===Ke)return 1;if(void 0===Ot)return-1;if(null===Ke)return 1;if(null===Ot)return-1;if("string"==typeof Ke&&"string"==typeof Ot)return Ke{class Xe{constructor(Ke){this._locale=Ke}transform(Ke,Ot,ri){if(!function Jr(Xe){return!(null==Xe||""===Xe||Xe!=Xe)}(Ke))return null;ri=ri||this._locale;try{return function Lt(Xe,St,Ke){return function Gi(Xe,St,Ke,Ot,ri,Ti,ki=!1){let an="",It=!1;if(isFinite(Xe)){let hi=function Ct(Xe){let Ot,ri,Ti,ki,an,St=Math.abs(Xe)+"",Ke=0;for((ri=St.indexOf("."))>-1&&(St=St.replace(".","")),(Ti=St.search(/e/i))>0?(ri<0&&(ri=Ti),ri+=+St.slice(Ti+1),St=St.substring(0,Ti)):ri<0&&(ri=St.length),Ti=0;"0"===St.charAt(Ti);Ti++);if(Ti===(an=St.length))Ot=[0],ri=1;else{for(an--;"0"===St.charAt(an);)an--;for(ri-=Ti,Ot=[],ki=0;Ti<=an;Ti++,ki++)Ot[ki]=Number(St.charAt(Ti))}return ri>22&&(Ot=Ot.splice(0,21),Ke=ri-1,ri=1),{digits:Ot,exponent:Ke,integerLen:ri}}(Xe);ki&&(hi=function je(Xe){if(0===Xe.digits[0])return Xe;const St=Xe.digits.length-Xe.integerLen;return Xe.exponent?Xe.exponent+=2:(0===St?Xe.digits.push(0,0):1===St&&Xe.digits.push(0),Xe.integerLen+=2),Xe}(hi));let mt=St.minInt,Zt=St.minFrac,Hi=St.maxFrac;if(Ti){const bt=Ti.match(yt);if(null===bt)throw new Error(`${Ti} is not a valid digit info`);const Si=bt[1],Qi=bt[3],Yn=bt[5];null!=Si&&(mt=qe(Si)),null!=Qi&&(Zt=qe(Qi)),null!=Yn?Hi=qe(Yn):null!=Qi&&Zt>Hi&&(Hi=Zt)}!function ie(Xe,St,Ke){if(St>Ke)throw new Error(`The minimum number of digits after fraction (${St}) is higher than the maximum (${Ke}).`);let Ot=Xe.digits,ri=Ot.length-Xe.integerLen;const Ti=Math.min(Math.max(St,ri),Ke);let ki=Ti+Xe.integerLen,an=Ot[ki];if(ki>0){Ot.splice(Math.max(Xe.integerLen,ki));for(let Zt=ki;Zt=5)if(ki-1<0){for(let Zt=0;Zt>ki;Zt--)Ot.unshift(0),Xe.integerLen++;Ot.unshift(1),Xe.integerLen++}else Ot[ki-1]++;for(;ri=hi?Ln.pop():It=!1),Hi>=10?1:0},0);mt&&(Ot.unshift(mt),Xe.integerLen++)}(hi,Zt,Hi);let Zi=hi.digits,Ln=hi.integerLen;const Qe=hi.exponent;let We=[];for(It=Zi.every(bt=>!bt);Ln0?We=Zi.splice(Ln,Zi.length):(We=Zi,Zi=[0]);const He=[];for(Zi.length>=St.lgSize&&He.unshift(Zi.splice(-St.lgSize,Zi.length).join(""));Zi.length>St.gSize;)He.unshift(Zi.splice(-St.gSize,Zi.length).join(""));Zi.length&&He.unshift(Zi.join("")),an=He.join(Re(Ke,Ot)),We.length&&(an+=Re(Ke,ri)+We.join("")),Qe&&(an+=Re(Ke,C.Exponential)+"+"+Qe)}else an=Re(Ke,C.Infinity);return an=Xe<0&&!It?St.negPre+an+St.negSuf:St.posPre+an+St.posSuf,an}(Xe,function pe(Xe,St="-"){const Ke={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ot=Xe.split(";"),ri=Ot[0],Ti=Ot[1],ki=-1!==ri.indexOf(".")?ri.split("."):[ri.substring(0,ri.lastIndexOf("0")+1),ri.substring(ri.lastIndexOf("0")+1)],an=ki[0],It=ki[1]||"";Ke.posPre=an.substr(0,an.indexOf("#"));for(let mt=0;mt{class Xe{transform(Ke,Ot,ri){if(null==Ke)return null;if(!this.supports(Ke))throw Jn();return Ke.slice(Ot,ri)}supports(Ke){return"string"==typeof Ke||Array.isArray(Ke)}}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275pipe=t.Yjl({name:"slice",type:Xe,pure:!1}),Xe})(),gr=(()=>{class Xe{}return Xe.\u0275fac=function(Ke){return new(Ke||Xe)},Xe.\u0275mod=t.oAB({type:Xe}),Xe.\u0275inj=t.cJS({}),Xe})();const Ir="browser";function $n(Xe){return Xe===Ir}function Ta(Xe){return"server"===Xe}let Hr=(()=>{class Xe{}return Xe.\u0275prov=(0,t.Yz7)({token:Xe,providedIn:"root",factory:()=>new Sr((0,t.LFG)(d),window)}),Xe})();class Sr{constructor(St,Ke){this.document=St,this.window=Ke,this.offset=()=>[0,0]}setOffset(St){this.offset=Array.isArray(St)?()=>St:St}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(St){this.supportsScrolling()&&this.window.scrollTo(St[0],St[1])}scrollToAnchor(St){if(!this.supportsScrolling())return;const Ke=function ya(Xe,St){const Ke=Xe.getElementById(St)||Xe.getElementsByName(St)[0];if(Ke)return Ke;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const Ot=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let ri=Ot.currentNode;for(;ri;){const Ti=ri.shadowRoot;if(Ti){const ki=Ti.getElementById(St)||Ti.querySelector(`[name="${St}"]`);if(ki)return ki}ri=Ot.nextNode()}}return null}(this.document,St);Ke&&(this.scrollToElement(Ke),Ke.focus())}setHistoryScrollRestoration(St){if(this.supportScrollRestoration()){const Ke=this.window.history;Ke&&Ke.scrollRestoration&&(Ke.scrollRestoration=St)}}scrollToElement(St){const Ke=St.getBoundingClientRect(),Ot=Ke.left+this.window.pageXOffset,ri=Ke.top+this.window.pageYOffset,Ti=this.offset();this.window.scrollTo(Ot-Ti[0],ri-Ti[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const St=Fr(this.window.history)||Fr(Object.getPrototypeOf(this.window.history));return!(!St||!St.writable&&!St.set)}catch(St){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(St){return!1}}}function Fr(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class Wn{}},8138:(Fe,Y,p)=>{"use strict";p.d(Y,{JF:()=>ye,LE:()=>Z,TP:()=>O,eN:()=>C});var t=p(9808),e=p(5e3),f=p(9646),M=p(8306),a=p(4351),b=p(9300),d=p(4004);class N{}class h{}class A{constructor(Ce){this.normalizedNames=new Map,this.lazyUpdate=null,Ce?this.lazyInit="string"==typeof Ce?()=>{this.headers=new Map,Ce.split("\n").forEach(Le=>{const ct=Le.indexOf(":");if(ct>0){const ut=Le.slice(0,ct),Dt=ut.toLowerCase(),di=Le.slice(ct+1).trim();this.maybeSetNormalizedName(ut,Dt),this.headers.has(Dt)?this.headers.get(Dt).push(di):this.headers.set(Dt,[di])}})}:()=>{this.headers=new Map,Object.keys(Ce).forEach(Le=>{let ct=Ce[Le];const ut=Le.toLowerCase();"string"==typeof ct&&(ct=[ct]),ct.length>0&&(this.headers.set(ut,ct),this.maybeSetNormalizedName(Le,ut))})}:this.headers=new Map}has(Ce){return this.init(),this.headers.has(Ce.toLowerCase())}get(Ce){this.init();const Le=this.headers.get(Ce.toLowerCase());return Le&&Le.length>0?Le[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ce){return this.init(),this.headers.get(Ce.toLowerCase())||null}append(Ce,Le){return this.clone({name:Ce,value:Le,op:"a"})}set(Ce,Le){return this.clone({name:Ce,value:Le,op:"s"})}delete(Ce,Le){return this.clone({name:Ce,value:Le,op:"d"})}maybeSetNormalizedName(Ce,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,Ce)}init(){this.lazyInit&&(this.lazyInit instanceof A?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ce=>this.applyUpdate(Ce)),this.lazyUpdate=null))}copyFrom(Ce){Ce.init(),Array.from(Ce.headers.keys()).forEach(Le=>{this.headers.set(Le,Ce.headers.get(Le)),this.normalizedNames.set(Le,Ce.normalizedNames.get(Le))})}clone(Ce){const Le=new A;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof A?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([Ce]),Le}applyUpdate(Ce){const Le=Ce.name.toLowerCase();switch(Ce.op){case"a":case"s":let ct=Ce.value;if("string"==typeof ct&&(ct=[ct]),0===ct.length)return;this.maybeSetNormalizedName(Ce.name,Le);const ut=("a"===Ce.op?this.headers.get(Le):void 0)||[];ut.push(...ct),this.headers.set(Le,ut);break;case"d":const Dt=Ce.value;if(Dt){let di=this.headers.get(Le);if(!di)return;di=di.filter(Yt=>-1===Dt.indexOf(Yt)),0===di.length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,di)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}forEach(Ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(Le=>Ce(this.normalizedNames.get(Le),this.headers.get(Le)))}}class D{encodeKey(Ce){return L(Ce)}encodeValue(Ce){return L(Ce)}decodeKey(Ce){return decodeURIComponent(Ce)}decodeValue(Ce){return decodeURIComponent(Ce)}}const S=/%(\d[a-f0-9])/gi,I={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function L(ue){return encodeURIComponent(ue).replace(S,(Ce,Le)=>{var ct;return null!==(ct=I[Le])&&void 0!==ct?ct:Ce})}function U(ue){return`${ue}`}class Z{constructor(Ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ce.encoder||new D,Ce.fromString){if(Ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function w(ue,Ce){const Le=new Map;return ue.length>0&&ue.replace(/^\?/,"").split("&").forEach(ut=>{const Dt=ut.indexOf("="),[di,Yt]=-1==Dt?[Ce.decodeKey(ut),""]:[Ce.decodeKey(ut.slice(0,Dt)),Ce.decodeValue(ut.slice(Dt+1))],Gt=Le.get(di)||[];Gt.push(Yt),Le.set(di,Gt)}),Le}(Ce.fromString,this.encoder)}else Ce.fromObject?(this.map=new Map,Object.keys(Ce.fromObject).forEach(Le=>{const ct=Ce.fromObject[Le];this.map.set(Le,Array.isArray(ct)?ct:[ct])})):this.map=null}has(Ce){return this.init(),this.map.has(Ce)}get(Ce){this.init();const Le=this.map.get(Ce);return Le?Le[0]:null}getAll(Ce){return this.init(),this.map.get(Ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ce,Le){return this.clone({param:Ce,value:Le,op:"a"})}appendAll(Ce){const Le=[];return Object.keys(Ce).forEach(ct=>{const ut=Ce[ct];Array.isArray(ut)?ut.forEach(Dt=>{Le.push({param:ct,value:Dt,op:"a"})}):Le.push({param:ct,value:ut,op:"a"})}),this.clone(Le)}set(Ce,Le){return this.clone({param:Ce,value:Le,op:"s"})}delete(Ce,Le){return this.clone({param:Ce,value:Le,op:"d"})}toString(){return this.init(),this.keys().map(Ce=>{const Le=this.encoder.encodeKey(Ce);return this.map.get(Ce).map(ct=>Le+"="+this.encoder.encodeValue(ct)).join("&")}).filter(Ce=>""!==Ce).join("&")}clone(Ce){const Le=new Z({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(Ce),Le}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ce=>this.map.set(Ce,this.cloneFrom.map.get(Ce))),this.updates.forEach(Ce=>{switch(Ce.op){case"a":case"s":const Le=("a"===Ce.op?this.map.get(Ce.param):void 0)||[];Le.push(U(Ce.value)),this.map.set(Ce.param,Le);break;case"d":if(void 0===Ce.value){this.map.delete(Ce.param);break}{let ct=this.map.get(Ce.param)||[];const ut=ct.indexOf(U(Ce.value));-1!==ut&&ct.splice(ut,1),ct.length>0?this.map.set(Ce.param,ct):this.map.delete(Ce.param)}}}),this.cloneFrom=this.updates=null)}}class ne{constructor(){this.map=new Map}set(Ce,Le){return this.map.set(Ce,Le),this}get(Ce){return this.map.has(Ce)||this.map.set(Ce,Ce.defaultValue()),this.map.get(Ce)}delete(Ce){return this.map.delete(Ce),this}has(Ce){return this.map.has(Ce)}keys(){return this.map.keys()}}function de(ue){return"undefined"!=typeof ArrayBuffer&&ue instanceof ArrayBuffer}function ee(ue){return"undefined"!=typeof Blob&&ue instanceof Blob}function te(ue){return"undefined"!=typeof FormData&&ue instanceof FormData}class J{constructor(Ce,Le,ct,ut){let Dt;if(this.url=Le,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ce.toUpperCase(),function X(ue){switch(ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ut?(this.body=void 0!==ct?ct:null,Dt=ut):Dt=ct,Dt&&(this.reportProgress=!!Dt.reportProgress,this.withCredentials=!!Dt.withCredentials,Dt.responseType&&(this.responseType=Dt.responseType),Dt.headers&&(this.headers=Dt.headers),Dt.context&&(this.context=Dt.context),Dt.params&&(this.params=Dt.params)),this.headers||(this.headers=new A),this.context||(this.context=new ne),this.params){const di=this.params.toString();if(0===di.length)this.urlWithParams=Le;else{const Yt=Le.indexOf("?");this.urlWithParams=Le+(-1===Yt?"?":Ytgt.set(et,Ce.setHeaders[et]),ui)),Ce.setParams&&(xt=Object.keys(Ce.setParams).reduce((gt,et)=>gt.set(et,Ce.setParams[et]),xt)),new J(ct,ut,di,{params:xt,headers:ui,context:Nt,reportProgress:Gt,responseType:Dt,withCredentials:Yt})}}var ge=(()=>((ge=ge||{})[ge.Sent=0]="Sent",ge[ge.UploadProgress=1]="UploadProgress",ge[ge.ResponseHeader=2]="ResponseHeader",ge[ge.DownloadProgress=3]="DownloadProgress",ge[ge.Response=4]="Response",ge[ge.User=5]="User",ge))();class y{constructor(Ce,Le=200,ct="OK"){this.headers=Ce.headers||new A,this.status=void 0!==Ce.status?Ce.status:Le,this.statusText=Ce.statusText||ct,this.url=Ce.url||null,this.ok=this.status>=200&&this.status<300}}class i extends y{constructor(Ce={}){super(Ce),this.type=ge.ResponseHeader}clone(Ce={}){return new i({headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class r extends y{constructor(Ce={}){super(Ce),this.type=ge.Response,this.body=void 0!==Ce.body?Ce.body:null}clone(Ce={}){return new r({body:void 0!==Ce.body?Ce.body:this.body,headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class u extends y{constructor(Ce){super(Ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ce.url||"(unknown url)"}`:`Http failure response for ${Ce.url||"(unknown url)"}: ${Ce.status} ${Ce.statusText}`,this.error=Ce.error||null}}function c(ue,Ce){return{body:Ce,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,ct,ut={}){let Dt;if(Le instanceof J)Dt=Le;else{let Gt,ui;Gt=ut.headers instanceof A?ut.headers:new A(ut.headers),ut.params&&(ui=ut.params instanceof Z?ut.params:new Z({fromObject:ut.params})),Dt=new J(Le,ct,void 0!==ut.body?ut.body:null,{headers:Gt,context:ut.context,params:ui,reportProgress:ut.reportProgress,responseType:ut.responseType||"json",withCredentials:ut.withCredentials})}const di=(0,f.of)(Dt).pipe((0,a.b)(Gt=>this.handler.handle(Gt)));if(Le instanceof J||"events"===ut.observe)return di;const Yt=di.pipe((0,b.h)(Gt=>Gt instanceof r));switch(ut.observe||"body"){case"body":switch(Dt.responseType){case"arraybuffer":return Yt.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 Yt.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 Yt.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 Yt.pipe((0,d.U)(Gt=>Gt.body))}case"response":return Yt;default:throw new Error(`Unreachable: unhandled observe type ${ut.observe}}`)}}delete(Le,ct={}){return this.request("DELETE",Le,ct)}get(Le,ct={}){return this.request("GET",Le,ct)}head(Le,ct={}){return this.request("HEAD",Le,ct)}jsonp(Le,ct){return this.request("JSONP",Le,{params:(new Z).append(ct,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Le,ct={}){return this.request("OPTIONS",Le,ct)}patch(Le,ct,ut={}){return this.request("PATCH",Le,c(ut,ct))}post(Le,ct,ut={}){return this.request("POST",Le,c(ut,ct))}put(Le,ct,ut={}){return this.request("PUT",Le,c(ut,ct))}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(N))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})();class E{constructor(Ce,Le){this.next=Ce,this.interceptor=Le}handle(Ce){return this.interceptor.intercept(Ce,this.next)}}const O=new e.OlP("HTTP_INTERCEPTORS");let _=(()=>{class ue{intercept(Le,ct){return ct.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const Re=/^\)\]\}',?\n/;let Q=(()=>{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 M.y(ct=>{const ut=this.xhrFactory.build();if(ut.open(Le.method,Le.urlWithParams),Le.withCredentials&&(ut.withCredentials=!0),Le.headers.forEach((et,vt)=>ut.setRequestHeader(et,vt.join(","))),Le.headers.has("Accept")||ut.setRequestHeader("Accept","application/json, text/plain, */*"),!Le.headers.has("Content-Type")){const et=Le.detectContentTypeHeader();null!==et&&ut.setRequestHeader("Content-Type",et)}if(Le.responseType){const et=Le.responseType.toLowerCase();ut.responseType="json"!==et?et:"text"}const Dt=Le.serializeBody();let di=null;const Yt=()=>{if(null!==di)return di;const et=ut.statusText||"OK",vt=new A(ut.getAllResponseHeaders()),$t=function we(ue){return"responseURL"in ue&&ue.responseURL?ue.responseURL:/^X-Request-URL:/m.test(ue.getAllResponseHeaders())?ue.getResponseHeader("X-Request-URL"):null}(ut)||Le.url;return di=new i({headers:vt,status:ut.status,statusText:et,url:$t}),di},Gt=()=>{let{headers:et,status:vt,statusText:$t,url:jt}=Yt(),Pe=null;204!==vt&&(Pe=void 0===ut.response?ut.responseText:ut.response),0===vt&&(vt=Pe?200:0);let Oe=vt>=200&&vt<300;if("json"===Le.responseType&&"string"==typeof Pe){const le=Pe;Pe=Pe.replace(Re,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(be){Pe=le,Oe&&(Oe=!1,Pe={error:be,text:Pe})}}Oe?(ct.next(new r({body:Pe,headers:et,status:vt,statusText:$t,url:jt||void 0})),ct.complete()):ct.error(new u({error:Pe,headers:et,status:vt,statusText:$t,url:jt||void 0}))},ui=et=>{const{url:vt}=Yt(),$t=new u({error:et,status:ut.status||0,statusText:ut.statusText||"Unknown Error",url:vt||void 0});ct.error($t)};let xt=!1;const Nt=et=>{xt||(ct.next(Yt()),xt=!0);let vt={type:ge.DownloadProgress,loaded:et.loaded};et.lengthComputable&&(vt.total=et.total),"text"===Le.responseType&&!!ut.responseText&&(vt.partialText=ut.responseText),ct.next(vt)},gt=et=>{let vt={type:ge.UploadProgress,loaded:et.loaded};et.lengthComputable&&(vt.total=et.total),ct.next(vt)};return ut.addEventListener("load",Gt),ut.addEventListener("error",ui),ut.addEventListener("timeout",ui),ut.addEventListener("abort",ui),Le.reportProgress&&(ut.addEventListener("progress",Nt),null!==Dt&&ut.upload&&ut.upload.addEventListener("progress",gt)),ut.send(Dt),ct.next({type:ge.Sent}),()=>{ut.removeEventListener("error",ui),ut.removeEventListener("abort",ui),ut.removeEventListener("load",Gt),ut.removeEventListener("timeout",ui),Le.reportProgress&&(ut.removeEventListener("progress",Nt),null!==Dt&&ut.upload&&ut.upload.removeEventListener("progress",gt)),ut.readyState!==ut.DONE&&ut.abort()}})}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(t.JF))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const Ge=new e.OlP("XSRF_COOKIE_NAME"),ve=new e.OlP("XSRF_HEADER_NAME");class F{}let Ae=(()=>{class ue{constructor(Le,ct,ut){this.doc=Le,this.platform=ct,this.cookieName=ut,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,t.Mx)(Le,this.cookieName),this.lastCookieString=Le),this.lastToken}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Ge))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),lt=(()=>{class ue{constructor(Le,ct){this.tokenService=Le,this.headerName=ct}intercept(Le,ct){const ut=Le.url.toLowerCase();if("GET"===Le.method||"HEAD"===Le.method||ut.startsWith("http://")||ut.startsWith("https://"))return ct.handle(Le);const Dt=this.tokenService.getToken();return null!==Dt&&!Le.headers.has(this.headerName)&&(Le=Le.clone({headers:Le.headers.set(this.headerName,Dt)})),ct.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(F),e.LFG(ve))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),Ie=(()=>{class ue{constructor(Le,ct){this.backend=Le,this.injector=ct,this.chain=null}handle(Le){if(null===this.chain){const ct=this.injector.get(O,[]);this.chain=ct.reduceRight((ut,Dt)=>new E(ut,Dt),this.backend)}return this.chain.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)(e.LFG(h),e.LFG(e.zs3))},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),Te=(()=>{class ue{static disable(){return{ngModule:ue,providers:[{provide:lt,useClass:_}]}}static withOptions(Le={}){return{ngModule:ue,providers:[Le.cookieName?{provide:Ge,useValue:Le.cookieName}:[],Le.headerName?{provide:ve,useValue:Le.headerName}:[]]}}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=e.oAB({type:ue}),ue.\u0275inj=e.cJS({providers:[lt,{provide:O,useExisting:lt,multi:!0},{provide:F,useClass:Ae},{provide:Ge,useValue:"XSRF-TOKEN"},{provide:ve,useValue:"X-XSRF-TOKEN"}]}),ue})(),ye=(()=>{class ue{}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=e.oAB({type:ue}),ue.\u0275inj=e.cJS({providers:[C,{provide:N,useClass:Ie},Q,{provide:h,useExisting:Q}],imports:[[Te.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ue})()},5e3:(Fe,Y,p)=>{"use strict";p.d(Y,{$8M:()=>T1,$Z:()=>_4,AFp:()=>Lf,ALo:()=>Kh,AaK:()=>N,AsE:()=>O4,BQk:()=>b4,CHM:()=>Ja,CRH:()=>Mu,CZH:()=>Ou,CqO:()=>M4,DdM:()=>zh,Dn7:()=>hu,EJc:()=>Wp,EiD:()=>l3,EpF:()=>kc,F$t:()=>wd,F4k:()=>Nl,FYo:()=>Ah,FiY:()=>Wo,G48:()=>u9,Gf:()=>xu,GfV:()=>Oh,GkF:()=>Oc,Gpc:()=>D,Gre:()=>Wd,HOy:()=>qc,Hsn:()=>Ld,Ikx:()=>In,JOm:()=>Hs,JVY:()=>W1,Jf7:()=>C0,L6k:()=>ho,LAX:()=>x6,LFG:()=>Oa,LSH:()=>d3,Lbi:()=>Gp,MAs:()=>ps,MGl:()=>Rl,NdJ:()=>M2,O4$:()=>ur,OlP:()=>Mr,Oqu:()=>Kc,PXZ:()=>r9,PiD:()=>Ns,Q6J:()=>v4,QGY:()=>ms,Qsj:()=>Dh,R0b:()=>bo,RDi:()=>Fr,Rgc:()=>Wl,SBq:()=>F4,Sil:()=>jp,Suo:()=>bu,TTD:()=>Jr,TgZ:()=>Pl,Tol:()=>Rd,Udp:()=>Zc,VKq:()=>Bh,VLi:()=>n9,W1O:()=>df,WFA:()=>Pc,WLB:()=>Uh,X6Q:()=>zf,XFs:()=>De,Xpm:()=>ht,Y36:()=>M1,YKP:()=>au,YNc:()=>s4,Yjl:()=>rt,Yz7:()=>se,ZZ4:()=>Yu,_Bn:()=>bh,_UZ:()=>b2,_Vd:()=>s6,_c5:()=>A9,_uU:()=>jc,aQg:()=>ju,c2e:()=>Ef,cJS:()=>xe,cg1:()=>Sa,d8E:()=>wn,dDg:()=>If,deG:()=>So,dqk:()=>ui,eBb:()=>s3,eFA:()=>Nf,ekj:()=>E4,f3M:()=>o1,g9A:()=>Pu,h0i:()=>Ul,hGG:()=>D9,hij:()=>I4,iGM:()=>rf,ifc:()=>ut,ip1:()=>Iu,kEZ:()=>Gh,kL8:()=>Tr,kcU:()=>nt,lG2:()=>Ue,lcZ:()=>Qh,lnq:()=>Qc,mCW:()=>c1,n5z:()=>S1,n_E:()=>l6,oAB:()=>tt,oJD:()=>s0,oxw:()=>bd,pB0:()=>r8,q3G:()=>oa,qLn:()=>K2,qOj:()=>i4,qZA:()=>x2,qzn:()=>vs,s9C:()=>Rc,sBO:()=>Uf,sIi:()=>Ml,s_b:()=>B4,soG:()=>p6,tBr:()=>co,tb:()=>Nu,tp0:()=>Es,uIk:()=>wc,vHH:()=>L,vpe:()=>Ho,wAp:()=>ln,xi3:()=>qh,xp6:()=>R0,yhl:()=>Rs,ynx:()=>x4,z2F:()=>Bu,z3N:()=>sa,zSh:()=>X3,zs3:()=>go});var t=p(7579),e=p(727),f=p(8306),M=p(6451),a=p(3099);function b(s){for(let l in s)if(s[l]===b)return l;throw Error("Could not find renamed property on target object.")}function d(s,l){for(const g in l)l.hasOwnProperty(g)&&!s.hasOwnProperty(g)&&(s[g]=l[g])}function N(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(N).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 g=l.indexOf("\n");return-1===g?l:l.substring(0,g)}function h(s,l){return null==s||""===s?null===l?"":l:null==l||""===l?s:s+" "+l}const A=b({__forward_ref__:b});function D(s){return s.__forward_ref__=D,s.toString=function(){return N(this())},s}function w(s){return S(s)?s():s}function S(s){return"function"==typeof s&&s.hasOwnProperty(A)&&s.__forward_ref__===D}class L extends Error{constructor(l,g){super(function U(s,l){return`NG0${Math.abs(s)}${l?": "+l:""}`}(l,g)),this.code=l}}function Z(s){return"string"==typeof s?s:null==s?"":String(s)}function j(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():Z(s)}function ee(s,l){const g=l?` in ${l}`:"";throw new L(-201,`No provider for ${j(s)} found${g}`)}function n(s,l){null==s&&function v(s,l,g,T){throw new Error(`ASSERTION ERROR: ${s}`+(null==T?"":` [Expected=> ${g} ${T} ${l} <=Actual]`))}(l,s,null,"!=")}function se(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function xe(s){return{providers:s.providers||[],imports:s.imports||[]}}function Re(s){return we(s,F)||we(s,lt)}function we(s,l){return s.hasOwnProperty(l)?s[l]:null}function ve(s){return s&&(s.hasOwnProperty(Ae)||s.hasOwnProperty(Ie))?s[Ae]:null}const F=b({\u0275prov:b}),Ae=b({\u0275inj:b}),lt=b({ngInjectableDef:b}),Ie=b({ngInjectorDef:b});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 oe;function ye(s){const l=oe;return oe=s,l}function W(s,l,g){const T=Re(s);return T&&"root"==T.providedIn?void 0===T.value?T.value=T.factory():T.value:g&De.Optional?null:void 0!==l?l:void ee(N(s),"Injector")}function ue(s){return{toString:s}.toString()}var Ce=(()=>((Ce=Ce||{})[Ce.OnPush=0]="OnPush",Ce[Ce.Default=1]="Default",Ce))(),ut=(()=>{return(s=ut||(ut={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",ut;var s})();const Dt="undefined"!=typeof globalThis&&globalThis,di="undefined"!=typeof window&&window,Yt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ui=Dt||"undefined"!=typeof global&&global||di||Yt,gt={},et=[],vt=b({\u0275cmp:b}),$t=b({\u0275dir:b}),jt=b({\u0275pipe:b}),Pe=b({\u0275mod:b}),Oe=b({\u0275fac:b}),le=b({__NG_ELEMENT_ID__:b});let be=0;function ht(s){return ue(()=>{const g={},T={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:g,inputs:null,outputs:null,exportAs:s.exportAs||null,onPush:s.changeDetection===Ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:s.selectors||et,viewQuery:s.viewQuery||null,features:s.features||null,data:s.data||{},encapsulation:s.encapsulation||ut.Emulated,id:"c",styles:s.styles||et,_:null,setInput:null,schemas:s.schemas||null,tView:null},R=s.directives,G=s.features,ae=s.pipes;return T.id+=be++,T.inputs=Se(s.inputs,g),T.outputs=Se(s.outputs),G&&G.forEach(Ee=>Ee(T)),T.directiveDefs=R?()=>("function"==typeof R?R():R).map(Ht):null,T.pipeDefs=ae?()=>("function"==typeof ae?ae():ae).map(it):null,T})}function Ht(s){return at(s)||function yt(s){return s[$t]||null}(s)}function it(s){return function gi(s){return s[jt]||null}(s)}const Ne={};function tt(s){return ue(()=>{const l={type:s.type,bootstrap:s.bootstrap||et,declarations:s.declarations||et,imports:s.imports||et,exports:s.exports||et,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null};return null!=s.id&&(Ne[s.id]=s.type),l})}function Se(s,l){if(null==s)return gt;const g={};for(const T in s)if(s.hasOwnProperty(T)){let R=s[T],G=R;Array.isArray(R)&&(G=R[1],R=R[0]),g[R]=T,l&&(l[R]=G)}return g}const Ue=ht;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[vt]||null}function Qt(s,l){const g=s[Pe]||null;if(!g&&!0===l)throw new Error(`Type ${N(s)} does not have '\u0275mod' property.`);return g}function Fi(s){return Array.isArray(s)&&"object"==typeof s[1]}function pn(s){return Array.isArray(s)&&!0===s[1]}function Fn(s){return 0!=(8&s.flags)}function Dn(s){return 2==(2&s.flags)}function Ai(s){return 1==(1&s.flags)}function Ri(s){return null!==s.template}function cn(s){return 0!=(512&s[2])}function Zr(s,l){return s.hasOwnProperty(Oe)?s[Oe]:null}class Ea{constructor(l,g,T){this.previousValue=l,this.currentValue=g,this.firstChange=T}isFirstChange(){return this.firstChange}}function Jr(){return Dr}function Dr(s){return s.type.prototype.ngOnChanges&&(s.setInput=Wr),Rr}function Rr(){const s=Ir(this),l=null==s?void 0:s.current;if(l){const g=s.previous;if(g===gt)s.previous=l;else for(let T in l)g[T]=l[T];s.current=null,this.ngOnChanges(l)}}function Wr(s,l,g,T){const R=Ir(s)||function ua(s,l){return s[gr]=l}(s,{previous:gt,current:null}),G=R.current||(R.current={}),ae=R.previous,Ee=this.declaredInputs[g],Ze=ae[Ee];G[Ee]=new Ea(Ze&&Ze.currentValue,l,ae===gt),s[T]=l}Jr.ngInherit=!0;const gr="__ngSimpleChanges__";function Ir(s){return s[gr]||null}let Sr;function Fr(s){Sr=s}function ya(){return void 0!==Sr?Sr:"undefined"!=typeof document?document:void 0}function Wn(s){return!!s.listen}const Xe={createRenderer:(s,l)=>ya()};function Ke(s){for(;Array.isArray(s);)s=s[0];return s}function Ti(s,l){return Ke(l[s])}function ki(s,l){return Ke(l[s.index])}function It(s,l){return s.data[l]}function hi(s,l){return s[l]}function mt(s,l){const g=l[s];return Fi(g)?g:g[0]}function Zt(s){return 4==(4&s[2])}function Hi(s){return 128==(128&s[2])}function Ln(s,l){return null==l?null:s[l]}function Qe(s){s[18]=0}function We(s,l){s[5]+=l;let g=s,T=s[3];for(;null!==T&&(1===l&&1===g[5]||-1===l&&0===g[5]);)T[5]+=l,g=T,T=T[3]}const He={lFrame:Tn(null),bindingsEnabled:!0};function Wa(){return He.bindingsEnabled}function zi(){return He.lFrame.lView}function zn(){return He.lFrame.tView}function Ja(s){return He.lFrame.contextLView=s,s[8]}function Cr(){let s=Gs();for(;null!==s&&64===s.type;)s=s.parent;return s}function Gs(){return He.lFrame.currentTNode}function ha(s,l){const g=He.lFrame;g.currentTNode=s,g.isParent=l}function xs(){return He.lFrame.isParent}function bs(){He.lFrame.isParent=!1}function Vr(){const s=He.lFrame;let l=s.bindingRootIndex;return-1===l&&(l=s.bindingRootIndex=s.tView.bindingStartIndex),l}function Va(){return He.lFrame.bindingIndex}function re(){return He.lFrame.bindingIndex++}function he(s){const l=He.lFrame,g=l.bindingIndex;return l.bindingIndex=l.bindingIndex+s,g}function Ft(s,l){const g=He.lFrame;g.bindingIndex=g.bindingRootIndex=s,ni(l)}function ni(s){He.lFrame.currentDirectiveIndex=s}function yi(s){const l=He.lFrame.currentDirectiveIndex;return-1===l?null:s[l]}function Pi(){return He.lFrame.currentQueryIndex}function nn(s){He.lFrame.currentQueryIndex=s}function un(s){const l=s[1];return 2===l.type?l.declTNode:1===l.type?s[6]:null}function Sn(s,l,g){if(g&De.SkipSelf){let R=l,G=s;for(;!(R=R.parent,null!==R||g&De.Host||(R=un(G),null===R||(G=G[15],10&R.type))););if(null===R)return!1;l=R,s=G}const T=He.lFrame=yn();return T.currentTNode=l,T.lView=s,!0}function Pn(s){const l=yn(),g=s[1];He.lFrame=l,l.currentTNode=g.firstChild,l.lView=s,l.tView=g,l.contextLView=s,l.bindingIndex=g.bindingStartIndex,l.inI18n=!1}function yn(){const s=He.lFrame,l=null===s?null:s.child;return null===l?Tn(s):l}function Tn(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=He.lFrame;return He.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const xr=qn;function cr(){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 dr(){return He.lFrame.selectedIndex}function zr(s){He.lFrame.selectedIndex=s}function Bn(){const s=He.lFrame;return It(s.tView,s.selectedIndex)}function ur(){He.lFrame.currentNamespace="svg"}function nt(){!function Et(){He.lFrame.currentNamespace=null}()}function qt(s,l){for(let g=l.directiveStart,T=l.directiveEnd;g=T)break}else l[Ze]<0&&(s[18]+=65536),(Ee>11>16&&(3&s[2])===l){s[2]+=2048;try{G.call(Ee)}finally{}}}else try{G.call(Ee)}finally{}}class on{constructor(l,g,T){this.factory=l,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=T}}function kr(s,l,g){const T=Wn(s);let R=0;for(;Rl){ae=G-1;break}}}for(;G>16}(s),T=l;for(;g>0;)T=T[15],g--;return T}let t1=!0;function Be(s){const l=t1;return t1=s,l}let ot=0;function Xt(s,l){const g=Ni(s,l);if(-1!==g)return g;const T=l[1];T.firstCreatePass&&(s.injectorIndex=l.length,oi(T.data,s),oi(l,null),oi(T.blueprint,null));const R=dn(s,l),G=s.injectorIndex;if(Cs(R)){const ae=Ws(R),Ee=Ys(R,l),Ze=Ee[1].data;for(let dt=0;dt<8;dt++)l[G+dt]=Ee[ae+dt]|Ze[ae+dt]}return l[G+8]=R,G}function oi(s,l){s.push(0,0,0,0,0,0,0,0,l)}function Ni(s,l){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===l[s.injectorIndex+8]?-1:s.injectorIndex}function dn(s,l){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let g=0,T=null,R=l;for(;null!==R;){const G=R[1],ae=G.type;if(T=2===ae?G.declTNode:1===ae?R[6]:null,null===T)return-1;if(g++,R=R[15],-1!==T.injectorIndex)return T.injectorIndex|g<<16}return-1}function Rn(s,l,g){!function kt(s,l,g){let T;"string"==typeof g?T=g.charCodeAt(0)||0:g.hasOwnProperty(le)&&(T=g[le]),null==T&&(T=g[le]=ot++);const R=255&T;l.data[s+(R>>5)]|=1<=0?255&l:Fo:l}(g);if("function"==typeof G){if(!Sn(l,s,T))return T&De.Host?rr(R,g,T):Hn(l,g,T,R);try{const ae=G(T);if(null!=ae||T&De.Optional)return ae;ee(g)}finally{xr()}}else if("number"==typeof G){let ae=null,Ee=Ni(s,l),Ze=-1,dt=T&De.Host?l[16][6]:null;for((-1===Ee||T&De.SkipSelf)&&(Ze=-1===Ee?dn(s,l):l[Ee+8],-1!==Ze&&D2(T,!1)?(ae=l[1],Ee=Ws(Ze),l=Ys(Ze,l)):Ee=-1);-1!==Ee;){const Tt=l[1];if(js(G,Ee,Tt.data)){const Wt=n1(Ee,l,g,ae,T,dt);if(Wt!==ws)return Wt}Ze=l[Ee+8],-1!==Ze&&D2(T,l[1].data[Ee+8]===dt)&&js(G,Ee,l)?(ae=Tt,Ee=Ws(Ze),l=Ys(Ze,l)):Ee=-1}}}return Hn(l,g,T,R)}const ws={};function Fo(){return new Vo(Cr(),zi())}function n1(s,l,g,T,R,G){const ae=l[1],Ee=ae.data[s+8],Tt=ba(Ee,ae,g,null==T?Dn(Ee)&&t1:T!=ae&&0!=(3&Ee.type),R&De.Host&&G===Ee);return null!==Tt?io(l,ae,Tt,Ee):ws}function ba(s,l,g,T,R){const G=s.providerIndexes,ae=l.data,Ee=1048575&G,Ze=s.directiveStart,Tt=G>>20,ci=R?Ee+Tt:s.directiveEnd;for(let xi=T?Ee:Ee+Tt;xi=Ze&&Vi.type===g)return xi}if(R){const xi=ae[Ze];if(xi&&Ri(xi)&&xi.type===g)return Ze}return null}function io(s,l,g,T){let R=s[g];const G=l.data;if(function bn(s){return s instanceof on}(R)){const ae=R;ae.resolving&&function ne(s,l){const g=l?`. Dependency path: ${l.join(" > ")} > ${s}`:"";throw new L(-200,`Circular dependency in DI detected for ${s}${g}`)}(j(G[g]));const Ee=Be(ae.canSeeViewProviders);ae.resolving=!0;const Ze=ae.injectImpl?ye(ae.injectImpl):null;Sn(s,T,De.Default);try{R=s[g]=ae.factory(void 0,G,s,T),l.firstCreatePass&&g>=T.directiveStart&&function Rt(s,l,g){const{ngOnChanges:T,ngOnInit:R,ngDoCheck:G}=l.type.prototype;if(T){const ae=Dr(l);(g.preOrderHooks||(g.preOrderHooks=[])).push(s,ae),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(s,ae)}R&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-s,R),G&&((g.preOrderHooks||(g.preOrderHooks=[])).push(s,G),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(s,G))}(g,G[g],l)}finally{null!==Ze&&ye(Ze),Be(Ee),ae.resolving=!1,xr()}}return R}function js(s,l,g){return!!(g[l+(s>>5)]&1<{const l=s.prototype.constructor,g=l[Oe]||E1(l),T=Object.prototype;let R=Object.getPrototypeOf(s.prototype).constructor;for(;R&&R!==T;){const G=R[Oe]||E1(R);if(G&&G!==g)return G;R=Object.getPrototypeOf(R)}return G=>new G})}function E1(s){return S(s)?()=>{const l=E1(w(s));return l&&l()}:Zr(s)}function T1(s){return function Mn(s,l){if("class"===l)return s.classes;if("style"===l)return s.styles;const g=s.attrs;if(g){const T=g.length;let R=0;for(;R{const T=function A1(s){return function(...g){if(s){const T=s(...g);for(const R in T)this[R]=T[R]}}}(l);function R(...G){if(this instanceof R)return T.apply(this,G),this;const ae=new R(...G);return Ee.annotation=ae,Ee;function Ee(Ze,dt,Tt){const Wt=Ze.hasOwnProperty(no)?Ze[no]:Object.defineProperty(Ze,no,{value:[]})[no];for(;Wt.length<=Tt;)Wt.push(null);return(Wt[Tt]=Wt[Tt]||[]).push(ae),Ze}}return g&&(R.prototype=Object.create(g.prototype)),R.prototype.ngMetadataName=s,R.annotationCls=R,R})}class Mr{constructor(l,g){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=se({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const So=new Mr("AnalyzeForEntryComponents");function ds(s,l){void 0===l&&(l=s);for(let g=0;gArray.isArray(g)?ja(g,l):l(g))}function k2(s,l,g){l>=s.length?s.push(g):s.splice(l,0,g)}function Uo(s,l){return l>=s.length-1?s.pop():s.splice(l,1)[0]}function ao(s,l){const g=[];for(let T=0;T=0?s[1|T]=g:(T=~T,function Jl(s,l,g,T){let R=s.length;if(R==l)s.push(g,T);else if(1===R)s.push(T,s[0]),s[0]=g;else{for(R--,s.push(s[R-1],s[R]);R>l;)s[R]=s[R-2],R--;s[l]=g,s[l+1]=T}}(s,T,l,g)),T}function Ka(s,l){const g=so(s,l);if(g>=0)return s[1|g]}function so(s,l){return function Ls(s,l,g){let T=0,R=s.length>>g;for(;R!==T;){const G=T+(R-T>>1),ae=s[G<l?R=G:T=G+1}return~(R<({token:s})),-1),Wo=lo(Lo("Optional"),8),Ns=lo(Lo("Self"),2),Es=lo(Lo("SkipSelf"),4);let As,Ve;function uo(s){var l;return(null===(l=function Z1(){if(void 0===As&&(As=null,ui.trustedTypes))try{As=ui.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return As}())||void 0===l?void 0:l.createHTML(s))||s}function _e(s){var l;return(null===(l=function H(){if(void 0===Ve&&(Ve=null,ui.trustedTypes))try{Ve=ui.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Ve}())||void 0===l?void 0:l.createHTML(s))||s}class xn{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class _r extends xn{getTypeName(){return"HTML"}}class Un extends xn{getTypeName(){return"Style"}}class ea extends xn{getTypeName(){return"Script"}}class hs extends xn{getTypeName(){return"URL"}}class ar extends xn{getTypeName(){return"ResourceURL"}}function sa(s){return s instanceof xn?s.changingThisBreaksApplicationSecurity:s}function vs(s,l){const g=Rs(s);if(null!=g&&g!==l){if("ResourceURL"===g&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===l}function Rs(s){return s instanceof xn&&s.getTypeName()||null}function W1(s){return new _r(s)}function ho(s){return new Un(s)}function s3(s){return new ea(s)}function x6(s){return new hs(s)}function r8(s){return new ar(s)}class X4{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l=""+l;try{const g=(new window.DOMParser).parseFromString(uo(l),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(l):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class $4{constructor(l){if(this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const T=this.inertDocument.createElement("body");g.appendChild(T)}}getInertBodyElement(l){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=uo(l),g;const T=this.inertDocument.createElement("body");return T.innerHTML=uo(l),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(T),T}stripCustomNsAttrs(l){const g=l.attributes;for(let R=g.length-1;0c1(l.trim())).join(", ")),this.buf.push(" ",ae,'="',a0(Ze),'"')}var s;return this.buf.push(">"),!0}endElement(l){const g=l.nodeName.toLowerCase();wa.hasOwnProperty(g)&&!t0.hasOwnProperty(g)&&(this.buf.push(""))}chars(l){this.buf.push(a0(l))}checkClobberedElement(l,g){if(g&&(l.compareDocumentPosition(g)&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 g}}const w6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L6=/([^\#-~ |!])/g;function a0(s){return s.replace(/&/g,"&").replace(w6,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(L6,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(//g,">")}let q1;function l3(s,l){let g=null;try{q1=q1||function J4(s){const l=new $4(s);return function a8(){try{return!!(new window.DOMParser).parseFromString(uo(""),"text/html")}catch(s){return!1}}()?new X4(l):l}(s);let T=l?String(l):"";g=q1.getInertBodyElement(T);let R=5,G=T;do{if(0===R)throw new Error("Failed to sanitize html because the input is unstable");R--,T=G,G=g.innerHTML,g=q1.getInertBodyElement(T)}while(T!==G);return uo((new r0).sanitizeChildren(J1(g)||g))}finally{if(g){const T=J1(g)||g;for(;T.firstChild;)T.removeChild(T.firstChild)}}}function J1(s){return"content"in s&&function S6(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var oa=(()=>((oa=oa||{})[oa.NONE=0]="NONE",oa[oa.HTML=1]="HTML",oa[oa.STYLE=2]="STYLE",oa[oa.SCRIPT=3]="SCRIPT",oa[oa.URL=4]="URL",oa[oa.RESOURCE_URL=5]="RESOURCE_URL",oa))();function s0(s){const l=Ko();return l?_e(l.sanitize(oa.HTML,s)||""):vs(s,"HTML")?_e(sa(s)):l3(ya(),Z(s))}function d3(s){const l=Ko();return l?l.sanitize(oa.URL,s)||"":vs(s,"URL")?sa(s):c1(Z(s))}function Ko(){const s=zi();return s&&s[12]}const u3="__ngContext__";function qa(s,l){s[u3]=l}function h3(s){const l=function $1(s){return s[u3]||null}(s);return l?Array.isArray(l)?l:l.lView:null}function j2(s){return s.ngOriginalError}function C3(s,...l){s.error(...l)}class K2{constructor(){this._console=console}handleError(l){const g=this._findOriginalError(l),T=function R6(s){return s&&s.ngErrorLogger||C3}(l);T(this._console,"ERROR",l),g&&T(this._console,"ORIGINAL ERROR",g)}_findOriginalError(l){let g=l&&j2(l);for(;g&&j2(g);)g=j2(g);return g||null}}const G6=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ui))();function C0(s){return s.ownerDocument.defaultView}function qs(s){return s instanceof Function?s():s}var Hs=(()=>((Hs=Hs||{})[Hs.Important=1]="Important",Hs[Hs.DashCase=2]="DashCase",Hs))();function y3(s,l){return undefined(s,l)}function h1(s){const l=s[3];return pn(l)?l[3]:l}function x3(s){return j6(s[13])}function b0(s){return j6(s[4])}function j6(s){for(;null!==s&&!pn(s);)s=s[4];return s}function f1(s,l,g,T,R){if(null!=T){let G,ae=!1;pn(T)?G=T:Fi(T)&&(ae=!0,T=T[0]);const Ee=Ke(T);0===s&&null!==g?null==R?t2(l,g,Ee):qo(l,g,Ee,R||null,!0):1===s&&null!==g?qo(l,g,Ee,R||null,!0):2===s?function E3(s,l,g){const T=Jo(s,l);T&&function e5(s,l,g,T){Wn(s)?s.removeChild(l,g,T):l.removeChild(g)}(s,T,l,g)}(l,Ee,ae):3===s&&l.destroyNode(Ee),null!=G&&function I0(s,l,g,T,R){const G=g[7];G!==Ke(g)&&f1(l,s,T,G,R);for(let Ee=10;Ee0&&(s[g-1][4]=T[4]);const G=Uo(s,10+l);!function J2(s,l){r2(s,l,l[11],2,null,null),l[0]=null,l[6]=null}(T[1],T);const ae=G[19];null!==ae&&ae.detachView(G[1]),T[3]=null,T[4]=null,T[2]&=-129}return T}function L0(s,l){if(!(256&l[2])){const g=l[11];Wn(g)&&g.destroyNode&&r2(s,l,g,3,null,null),function J6(s){let l=s[13];if(!l)return w3(s[1],s);for(;l;){let g=null;if(Fi(l))g=l[13];else{const T=l[10];T&&(g=T)}if(!g){for(;l&&!l[4]&&l!==s;)Fi(l)&&w3(l[1],l),l=l[3];null===l&&(l=s),Fi(l)&&w3(l[1],l),g=l&&l[4]}l=g}}(l)}}function w3(s,l){if(!(256&l[2])){l[2]&=-129,l[2]|=256,function S0(s,l){let g;if(null!=s&&null!=(g=s.destroyHooks))for(let T=0;T=0?T[R=dt]():T[R=-dt].unsubscribe(),G+=2}else{const ae=T[R=g[G+1]];g[G].call(ae)}if(null!==T){for(let G=R+1;GG?"":R[Wt+1].toLowerCase();const xi=8&T?ci:null;if(xi&&-1!==O0(xi,dt,0)||2&T&&dt!==ci){if(Ds(T))return!1;ae=!0}}}}else{if(!ae&&!Ds(T)&&!Ds(Ze))return!1;if(ae&&Ds(Ze))continue;ae=!1,T=Ze|1&T}}return Ds(T)||ae}function Ds(s){return 0==(1&s)}function i5(s,l,g,T){if(null===l)return-1;let R=0;if(T||!g){let G=!1;for(;R-1)for(g++;g0?'="'+Ee+'"':"")+"]"}else 8&T?R+="."+ae:4&T&&(R+=" "+ae);else""!==R&&!Ds(ae)&&(l+=al(G,R),R=""),T=ae,G=G||!Ds(T);g++}return""!==R&&(l+=al(G,R)),l}const Gn={};function R0(s){H0(zn(),zi(),dr()+s,!1)}function H0(s,l,g,T){if(!T)if(3==(3&l[2])){const G=s.preOrderCheckHooks;null!==G&&_i(l,G,g)}else{const G=s.preOrderHooks;null!==G&&ei(l,G,0,g)}zr(g)}function s2(s,l){return s<<17|l<<2}function Is(s){return s>>17&32767}function k3(s){return 2|s}function Js(s){return(131068&s)>>2}function P3(s,l){return-131069&s|l<<2}function sl(s){return 1|s}function _5(s,l){const g=s.contentQueries;if(null!==g)for(let T=0;T20&&H0(s,l,20,!1),g(T,R)}finally{zr(G)}}function Q0(s,l,g){if(Fn(l)){const R=l.directiveEnd;for(let G=l.directiveStart;G0;){const g=s[--l];if("number"==typeof g&&g<0)return g}return 0})(Ee)!=Ze&&Ee.push(Ze),Ee.push(T,R,ae)}}function T5(s,l){null!==s.hostBindings&&s.hostBindings(1,l)}function D5(s,l){l.flags|=2,(s.components||(s.components=[])).push(l.index)}function S8(s,l,g){if(g){if(l.exportAs)for(let T=0;T0&&gl(g)}}function gl(s){for(let T=x3(s);null!==T;T=b0(T))for(let R=10;R0&&gl(G)}const g=s[1].components;if(null!==g)for(let T=0;T0&&gl(R)}}function N5(s,l){const g=mt(l,s),T=g[1];(function oc(s,l){for(let g=l.length;gPromise.resolve(null))();function cc(s){return s[7]||(s[7]=[])}function dc(s){return s.cleanup||(s.cleanup=[])}function uc(s,l,g){return(null===s||Ri(s))&&(g=function Ot(s){for(;Array.isArray(s);){if("object"==typeof s[1])return s;s=s[0]}return null}(g[l.index])),g[11]}function V5(s,l){const g=s[9],T=g?g.get(K2,null):null;T&&T.handleError(l)}function hc(s,l,g,T,R){for(let G=0;Gthis.processProvider(Ee,l,g)),ja([l],Ee=>this.processInjectorType(Ee,[],G)),this.records.set(J3,o2(void 0,this));const ae=this.records.get(X3);this.scope=null!=ae?ae.value:null,this.source=R||("object"==typeof l?null:N(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,g=Qs,T=De.Default){this.assertNotDestroyed();const R=V1(this),G=ye(void 0);try{if(!(T&De.SkipSelf)){let Ee=this.records.get(l);if(void 0===Ee){const Ze=function N8(s){return"function"==typeof s||"object"==typeof s&&s instanceof Mr}(l)&&Re(l);Ee=Ze&&this.injectableDefInScope(Ze)?o2(t4(l),xl):null,this.records.set(l,Ee)}if(null!=Ee)return this.hydrate(l,Ee)}return(T&De.Self?e4():this.parent).get(l,g=T&De.Optional&&g===Qs?null:g)}catch(ae){if("NullInjectorError"===ae.name){if((ae[oo]=ae[oo]||[]).unshift(N(l)),R)throw ae;return function e3(s,l,g,T){const R=s[oo];throw l[Go]&&R.unshift(l[Go]),s.message=function H2(s,l,g,T=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.substr(2):s;let R=N(l);if(Array.isArray(l))R=l.map(N).join(" -> ");else if("object"==typeof l){let G=[];for(let ae in l)if(l.hasOwnProperty(ae)){let Ee=l[ae];G.push(ae+":"+("string"==typeof Ee?JSON.stringify(Ee):N(Ee)))}R=`{${G.join(", ")}}`}return`${g}${T?"("+T+")":""}[${R}]: ${s.replace(F1,"\n ")}`}("\n"+s.message,R,g,T),s.ngTokenPath=R,s[oo]=null,s}(ae,l,"R3InjectorError",this.source)}throw ae}finally{ye(G),V1(R)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(l=>this.get(l))}toString(){const l=[];return this.records.forEach((T,R)=>l.push(N(R))),`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new L(205,!1)}processInjectorType(l,g,T){if(!(l=w(l)))return!1;let R=ve(l);const G=null==R&&l.ngModule||void 0,ae=void 0===G?l:G,Ee=-1!==T.indexOf(ae);if(void 0!==G&&(R=ve(G)),null==R)return!1;if(null!=R.imports&&!Ee){let Tt;T.push(ae);try{ja(R.imports,Wt=>{this.processInjectorType(Wt,g,T)&&(void 0===Tt&&(Tt=[]),Tt.push(Wt))})}finally{}if(void 0!==Tt)for(let Wt=0;Wtthis.processProvider(Vi,ci,xi||et))}}this.injectorDefTypes.add(ae);const Ze=Zr(ae)||(()=>new ae);this.records.set(ae,o2(Ze,xl));const dt=R.providers;if(null!=dt&&!Ee){const Tt=l;ja(dt,Wt=>this.processProvider(Wt,Tt,dt))}return void 0!==G&&void 0!==l.providers}processProvider(l,g,T){let R=l2(l=w(l))?l:w(l&&l.provide);const G=function Y5(s,l,g){return j5(s)?o2(void 0,s.useValue):o2(fc(s),xl)}(l);if(l2(l)||!0!==l.multi)this.records.get(R);else{let ae=this.records.get(R);ae||(ae=o2(void 0,xl,!0),ae.factory=()=>N2(ae.multi),this.records.set(R,ae)),R=l,ae.multi.push(l)}this.records.set(R,G)}hydrate(l,g){return g.value===xl&&(g.value=G5,g.value=g.factory()),"object"==typeof g.value&&g.value&&function P8(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(l){if(!l.providedIn)return!1;const g=w(l.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function t4(s){const l=Re(s),g=null!==l?l.factory:Zr(s);if(null!==g)return g;if(s instanceof Mr)throw new L(204,!1);if(s instanceof Function)return function I8(s){const l=s.length;if(l>0)throw ao(l,"?"),new L(204,!1);const g=function Q(s){const l=s&&(s[F]||s[lt]);if(l){const g=function Ge(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 "${g}" 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 "${g}" class.`),l}return null}(s);return null!==g?()=>g.factory(s):()=>new s}(s);throw new L(204,!1)}function fc(s,l,g){let T;if(l2(s)){const R=w(s);return Zr(R)||t4(R)}if(j5(s))T=()=>w(s.useValue);else if(function pc(s){return!(!s||!s.useFactory)}(s))T=()=>s.useFactory(...N2(s.deps||[]));else if(function O8(s){return!(!s||!s.useExisting)}(s))T=()=>Oa(w(s.useExisting));else{const R=w(s&&(s.useClass||s.provide));if(!function k8(s){return!!s.deps}(s))return Zr(R)||t4(R);T=()=>new R(...N2(s.deps))}return T}function o2(s,l,g=!1){return{factory:s,value:l,multi:g?[]:void 0}}function j5(s){return null!==s&&"object"==typeof s&&$l in s}function l2(s){return"function"==typeof s}let go=(()=>{class s{static create(g,T){var R;if(Array.isArray(g))return Z5({name:""},T,g,"");{const G=null!==(R=g.name)&&void 0!==R?R:"";return Z5({name:G},g.parent,g.providers,G)}}}return s.THROW_IF_NOT_FOUND=Qs,s.NULL=new U5,s.\u0275prov=se({token:s,providedIn:"any",factory:()=>Oa(J3)}),s.__NG_ELEMENT_ID__=-1,s})();function sd(s,l){qt(h3(s)[1],Cr())}function i4(s){let l=function od(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),g=!0;const T=[s];for(;l;){let R;if(Ri(s))R=l.\u0275cmp||l.\u0275dir;else{if(l.\u0275cmp)throw new L(903,"");R=l.\u0275dir}if(R){if(g){T.push(R);const ae=s;ae.inputs=bc(s.inputs),ae.declaredInputs=bc(s.declaredInputs),ae.outputs=bc(s.outputs);const Ee=R.hostBindings;Ee&&G8(s,Ee);const Ze=R.viewQuery,dt=R.contentQueries;if(Ze&&B8(s,Ze),dt&&U8(s,dt),d(s.inputs,R.inputs),d(s.declaredInputs,R.declaredInputs),d(s.outputs,R.outputs),Ri(R)&&R.data.animation){const Tt=s.data;Tt.animation=(Tt.animation||[]).concat(R.data.animation)}}const G=R.features;if(G)for(let ae=0;ae=0;T--){const R=s[T];R.hostVars=l+=R.hostVars,R.hostAttrs=ls(R.hostAttrs,g=ls(g,R.hostAttrs))}}(T)}function bc(s){return s===gt?{}:s===et?[]:s}function B8(s,l){const g=s.viewQuery;s.viewQuery=g?(T,R)=>{l(T,R),g(T,R)}:l}function U8(s,l){const g=s.contentQueries;s.contentQueries=g?(T,R,G)=>{l(T,R,G),g(T,R,G)}:l}function G8(s,l){const g=s.hostBindings;s.hostBindings=g?(T,R)=>{l(T,R),g(T,R)}:l}let bl=null;function _1(){if(!bl){const s=ui.Symbol;if(s&&s.iterator)bl=s.iterator;else{const l=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gEe(Ke(ir[T.index])):T.index;if(Wn(g)){let ir=null;if(!Ee&&Ze&&(ir=function Nc(s,l,g,T){const R=s.cleanup;if(null!=R)for(let G=0;GZe?Ee[Ze]:null}"string"==typeof ae&&(G+=2)}return null}(s,l,R,T.index)),null!==ir)(ir.__ngLastListenerFn__||ir).__ngNextListenerFn__=G,ir.__ngLastListenerFn__=G,xi=!1;else{G=w4(T,l,Wt,G,!1);const Lr=g.listen(Cn,R,G);ci.push(G,Lr),Tt&&Tt.push(R,An,Ui,Ui+1)}}else G=w4(T,l,Wt,G,!0),Cn.addEventListener(R,G,ae),ci.push(G),Tt&&Tt.push(R,An,Ui,ae)}else G=w4(T,l,Wt,G,!1);const Vi=T.outputs;let Ji;if(xi&&null!==Vi&&(Ji=Vi[R])){const sn=Ji.length;if(sn)for(let Cn=0;Cn0;)l=l[15],s--;return l}(s,He.lFrame.contextLView))[8]}(s)}function Md(s,l){let g=null;const T=function r5(s){const l=s.attrs;if(null!=l){const g=l.indexOf(5);if(0==(1&g))return l[g+1]}return null}(s);for(let R=0;R=0}const ka={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function L4(s){return s.substring(ka.key,ka.keyEnd)}function Id(s,l){const g=ka.textEnd;return g===l?-1:(l=ka.keyEnd=function Q8(s,l,g){for(;l32;)l++;return l}(s,ka.key=l,g),w2(s,l,g))}function w2(s,l,g){for(;l=0;g=Id(l,g))Ma(s,L4(l),!0)}function eo(s,l,g,T){const R=zi(),G=zn(),ae=he(2);G.firstUpdatePass&&Wc(G,s,ae,T),l!==Gn&&is(R,ae,l)&&Yc(G,G.data[dr()],R,R[11],s,R[ae+1]=function Bd(s,l){return null==s||("string"==typeof l?s+=l:"object"==typeof s&&(s=N(sa(s)))),s}(l,g),T,ae)}function to(s,l,g,T){const R=zn(),G=he(2);R.firstUpdatePass&&Wc(R,null,G,T);const ae=zi();if(g!==Gn&&is(ae,G,g)){const Ee=R.data[dr()];if(Ud(Ee,T)&&!Hd(R,G)){let Ze=T?Ee.classesWithoutHost:Ee.stylesWithoutHost;null!==Ze&&(g=h(Ze,g||"")),kl(R,Ee,ae,g,T)}else!function Vd(s,l,g,T,R,G,ae,Ee){R===Gn&&(R=et);let Ze=0,dt=0,Tt=0=s.expandoStartIndex}function Wc(s,l,g,T){const R=s.data;if(null===R[g+1]){const G=R[dr()],ae=Hd(s,g);Ud(G,T)&&null===l&&!ae&&(l=!1),l=function X8(s,l,g,T){const R=yi(s);let G=T?l.residualClasses:l.residualStyles;if(null===R)0===(T?l.classBindings:l.styleBindings)&&(g=Hl(g=A4(null,s,l,g,T),l.attrs,T),G=null);else{const ae=l.directiveStylingLast;if(-1===ae||s[ae]!==R)if(g=A4(R,s,l,g,T),null===G){let Ze=function $8(s,l,g){const T=g?l.classBindings:l.styleBindings;if(0!==Js(T))return s[Is(T)]}(s,l,T);void 0!==Ze&&Array.isArray(Ze)&&(Ze=A4(null,s,l,Ze[1],T),Ze=Hl(Ze,l.attrs,T),function Fd(s,l,g,T){s[Is(g?l.classBindings:l.styleBindings)]=T}(s,l,T,Ze))}else G=function eh(s,l,g){let T;const R=l.directiveEnd;for(let G=1+l.directiveStylingLast;G0)&&(dt=!0)}else Tt=g;if(R)if(0!==Ze){const ci=Is(s[Ee+1]);s[T+1]=s2(ci,Ee),0!==ci&&(s[ci+1]=P3(s[ci+1],T)),s[Ee+1]=function V0(s,l){return 131071&s|l<<17}(s[Ee+1],T)}else s[T+1]=s2(Ee,0),0!==Ee&&(s[Ee+1]=P3(s[Ee+1],T)),Ee=T;else s[T+1]=s2(Ze,0),0===Ee?Ee=T:s[Ze+1]=P3(s[Ze+1],T),Ze=T;dt&&(s[T+1]=k3(s[T+1])),zc(s,Tt,T,!0),zc(s,Tt,T,!1),function Dd(s,l,g,T,R){const G=R?s.residualClasses:s.residualStyles;null!=G&&"string"==typeof l&&so(G,l)>=0&&(g[T+1]=sl(g[T+1]))}(l,Tt,s,T,G),ae=s2(Ee,Ze),G?l.classBindings=ae:l.styleBindings=ae}(R,G,l,g,ae,T)}}function A4(s,l,g,T,R){let G=null;const ae=g.directiveEnd;let Ee=g.directiveStylingLast;for(-1===Ee?Ee=g.directiveStart:Ee++;Ee0;){const Ze=s[R],dt=Array.isArray(Ze),Tt=dt?Ze[1]:Ze,Wt=null===Tt;let ci=g[R+1];ci===Gn&&(ci=Wt?et:void 0);let xi=Wt?Ka(ci,T):Tt===T?ci:void 0;if(dt&&!D4(xi)&&(xi=Ka(Ze,T)),D4(xi)&&(Ee=xi,ae))return Ee;const Vi=s[R+1];R=ae?Is(Vi):Js(Vi)}if(null!==l){let Ze=G?l.residualClasses:l.residualStyles;null!=Ze&&(Ee=Ka(Ze,T))}return Ee}function D4(s){return void 0!==s}function Ud(s,l){return 0!=(s.flags&(l?16:32))}function jc(s,l=""){const g=zi(),T=zn(),R=s+20,G=T.firstCreatePass?g1(T,R,1,l,null):T.data[R],ae=g[R]=function q2(s,l){return Wn(s)?s.createText(l):s.createTextNode(l)}(g[11],l);el(T,g,ae,G),ha(G,!1)}function Kc(s){return I4("",s,""),Kc}function I4(s,l,g){const T=zi(),R=y1(T,s,l,g);return R!==Gn&&mo(T,dr(),R),I4}function O4(s,l,g,T,R){const G=zi(),ae=function d2(s,l,g,T,R,G){const Ee=v1(s,Va(),g,R);return he(2),Ee?l+Z(g)+T+Z(R)+G:Gn}(G,s,l,g,T,R);return ae!==Gn&&mo(G,dr(),ae),O4}function Qc(s,l,g,T,R,G,ae){const Ee=zi(),Ze=function u2(s,l,g,T,R,G,ae,Ee){const dt=Ll(s,Va(),g,R,ae);return he(3),dt?l+Z(g)+T+Z(R)+G+Z(ae)+Ee:Gn}(Ee,s,l,g,T,R,G,ae);return Ze!==Gn&&mo(Ee,dr(),Ze),Qc}function qc(s,l,g,T,R,G,ae,Ee,Ze){const dt=zi(),Tt=x1(dt,s,l,g,T,R,G,ae,Ee,Ze);return Tt!==Gn&&mo(dt,dr(),Tt),qc}function Wd(s,l,g){to(Ma,$s,y1(zi(),s,l,g),!0)}function In(s,l,g){const T=zi();return is(T,re(),l)&&fs(zn(),Bn(),T,s,l,T[11],g,!0),In}function wn(s,l,g){const T=zi();if(is(T,re(),l)){const G=zn(),ae=Bn();fs(G,ae,T,s,l,uc(yi(G.data),ae,T),g,!0)}return wn}const fr=void 0;var Pa=["en",[["a","p"],["AM","PM"],fr],[["AM","PM"],fr,fr],[["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"]],fr,[["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"]],fr,[["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}",fr,"{1} 'at' {0}",fr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function wr(s){const g=Math.floor(Math.abs(s)),T=s.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===T?1:5}];let Er={};function Sa(s){const l=function rs(s){return s.toLowerCase().replace(/_/g,"-")}(s);let g=ns(l);if(g)return g;const T=l.split("-")[0];if(g=ns(T),g)return g;if("en"===T)return Pa;throw new Error(`Missing locale data for the locale "${s}".`)}function Tr(s){return Sa(s)[ln.PluralCase]}function ns(s){return s in Er||(Er[s]=ui.ng&&ui.ng.common&&ui.ng.common.locales&&ui.ng.common.locales[s]),Er[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 Kr="en-US";let Ga=Kr;function $d(s,l,g,T,R){if(s=w(s),Array.isArray(s))for(let G=0;G>20;if(l2(s)||!s.multi){const xi=new on(Ze,R,M1),Vi=tu(Ee,l,R?Tt:Tt+ci,Wt);-1===Vi?(Rn(Xt(dt,ae),G,Ee),eu(G,s,l.length),l.push(Ee),dt.directiveStart++,dt.directiveEnd++,R&&(dt.providerIndexes+=1048576),g.push(xi),ae.push(xi)):(g[Vi]=xi,ae[Vi]=xi)}else{const xi=tu(Ee,l,Tt+ci,Wt),Vi=tu(Ee,l,Tt,Tt+ci),Ji=xi>=0&&g[xi],sn=Vi>=0&&g[Vi];if(R&&!sn||!R&&!Ji){Rn(Xt(dt,ae),G,Ee);const Cn=function Q7(s,l,g,T,R){const G=new on(s,g,M1);return G.multi=[],G.index=l,G.componentProviders=0,r6(G,R,T&&!g),G}(R?K7:a6,g.length,R,T,Ze);!R&&sn&&(g[Vi].providerFactory=Cn),eu(G,s,l.length,0),l.push(Ee),dt.directiveStart++,dt.directiveEnd++,R&&(dt.providerIndexes+=1048576),g.push(Cn),ae.push(Cn)}else eu(G,s,xi>-1?xi:Vi,r6(g[R?Vi:xi],Ze,!R&&T));!R&&T&&sn&&g[Vi].componentProviders++}}}function eu(s,l,g,T){const R=l2(l),G=function K5(s){return!!s.useClass}(l);if(R||G){const Ze=(G?w(l.useClass):l).prototype.ngOnDestroy;if(Ze){const dt=s.destroyHooks||(s.destroyHooks=[]);if(!R&&l.multi){const Tt=dt.indexOf(g);-1===Tt?dt.push(g,[T,Ze]):dt[Tt+1].push(T,Ze)}else dt.push(g,Ze)}}}function r6(s,l,g){return g&&s.componentProviders++,s.multi.push(l)-1}function tu(s,l,g,T){for(let R=g;R{g.providersResolver=(T,R)=>function xh(s,l,g){const T=zn();if(T.firstCreatePass){const R=Ri(s);$d(g,T.data,T.blueprint,R,!0),$d(l,T.data,T.blueprint,R,!1)}}(T,R?R(s):s,l)}}class wh{}class q7{resolveComponentFactory(l){throw function Lh(s){const l=Error(`No component factory found for ${N(s)}. Did you add it to @NgModule.entryComponents?`);return l.ngComponent=s,l}(l)}}let s6=(()=>{class s{}return s.NULL=new q7,s})();function Th(){return Bl(Cr(),zi())}function Bl(s,l){return new F4(ki(s,l))}let F4=(()=>{class s{constructor(g){this.nativeElement=g}}return s.__NG_ELEMENT_ID__=Th,s})();function J7(s){return s instanceof F4?s.nativeElement:s}class Ah{}let Dh=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function Ih(){const s=zi(),g=mt(Cr().index,s);return function $7(s){return s[11]}(Fi(g)?g:s)}(),s})(),ep=(()=>{class s{}return s.\u0275prov=se({token:s,providedIn:"root",factory:()=>null}),s})();class Oh{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const kh=new Oh("13.3.11"),nu={};function o6(s,l,g,T,R=!1){for(;null!==g;){const G=l[g.index];if(null!==G&&T.push(Ke(G)),pn(G))for(let Ee=10;Ee-1&&(Qo(l,T),Uo(g,T))}this._attachedToViewContainer=!1}L0(this._lView[1],this._lView)}onDestroy(l){ec(this._lView[1],this._lView,null,l)}markForCheck(){_l(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Q3(s,l,g){const T=l[10];T.begin&&T.begin();try{Xo(s,l,s.template,g)}catch(R){throw V5(l,R),R}finally{T.end&&T.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new L(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function q6(s,l){r2(s,l,l[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new L(902,"");this._appRef=l}}class tp extends V4{constructor(l){super(l),this._view=l}detectChanges(){q3(this._view)}checkNoChanges(){}get context(){return null}}class Ph extends s6{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const g=at(l);return new ru(g,this.ngModule)}}function Nh(s){const l=[];for(let g in s)s.hasOwnProperty(g)&&l.push({propName:s[g],templateName:g});return l}class ru extends wh{constructor(l,g){super(),this.componentDef=l,this.ngModule=g,this.componentType=l.type,this.selector=function o5(s){return s.map(s5).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return Nh(this.componentDef.inputs)}get outputs(){return Nh(this.componentDef.outputs)}create(l,g,T,R){const G=(R=R||this.ngModule)?function Hh(s,l){return{get:(g,T,R)=>{const G=s.get(g,nu,R);return G!==nu||T===nu?G:l.get(g,T,R)}}}(l,R.injector):l,ae=G.get(Ah,Xe),Ee=G.get(ep,null),Ze=ae.createRenderer(null,this.componentDef),dt=this.componentDef.selectors[0][0]||"div",Tt=T?function $0(s,l,g){if(Wn(s))return s.selectRootElement(l,g===ut.ShadowDom);let T="string"==typeof l?s.querySelector(l):l;return T.textContent="",T}(Ze,T,this.componentDef.encapsulation):Ao(ae.createRenderer(null,this.componentDef),dt,function Rh(s){const l=s.toLowerCase();return"svg"===l?"svg":"math"===l?"math":null}(dt)),Wt=this.componentDef.onPush?576:528,ci=function xc(s,l){return{components:[],scheduler:s||G6,clean:F5,playerHandler:l||null,flags:0}}(),xi=pl(0,null,null,1,0,null,null,null,null,null),Vi=fl(null,xi,ci,Wt,null,null,ae,Ze,Ee,G);let Ji,sn;Pn(Vi);try{const Cn=function yc(s,l,g,T,R,G){const ae=g[1];g[20]=s;const Ze=g1(ae,20,2,"#host",null),dt=Ze.mergedAttrs=l.hostAttrs;null!==dt&&(yl(Ze,dt,!0),null!==s&&(kr(R,s,dt),null!==Ze.classes&&A3(R,s,Ze.classes),null!==Ze.styles&&T3(R,s,Ze.styles)));const Tt=T.createRenderer(s,l),Wt=fl(g,q0(l),null,l.onPush?64:16,g[20],Ze,T,Tt,G||null,null);return ae.firstCreatePass&&(Rn(Xt(Ze,g),ae,l.type),D5(ae,Ze),j3(Ze,g.length,1)),Cl(g,Wt),g[20]=Wt}(Tt,this.componentDef,Vi,ae,Ze);if(Tt)if(T)kr(Ze,Tt,["ng-version",kh.full]);else{const{attrs:Ui,classes:An}=function N0(s){const l=[],g=[];let T=1,R=2;for(;T0&&A3(Ze,Tt,An.join(" "))}if(sn=It(xi,20),void 0!==g){const Ui=sn.projection=[];for(let An=0;AnZe(ae,l)),l.contentQueries){const Ze=Cr();l.contentQueries(1,ae,Ze.directiveStart)}const Ee=Cr();return!G.firstCreatePass||null===l.hostBindings&&null===l.hostAttrs||(zr(Ee.index),E5(g[1],Ee,0,Ee.directiveStart,Ee.directiveEnd,l),T5(l,ae)),ae}(Cn,this.componentDef,Vi,ci,[sd]),Fs(xi,Vi,null)}finally{cr()}return new rp(this.componentType,Ji,Bl(sn,Vi),Vi,sn)}}class rp extends class Mh{}{constructor(l,g,T,R,G){super(),this.location=T,this._rootLView=R,this._tNode=G,this.instance=g,this.hostView=this.changeDetectorRef=new tp(R),this.componentType=l}get injector(){return new Vo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(l){this.hostView.onDestroy(l)}}class Ul{}class au{}const Gl=new Map;class ou extends Ul{constructor(l,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ph(this);const T=Qt(l);this._bootstrapComponents=qs(T.bootstrap),this._r3Injector=W5(l,g,[{provide:Ul,useValue:this},{provide:s6,useValue:this.componentFactoryResolver}],N(l)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(l)}get(l,g=go.THROW_IF_NOT_FOUND,T=De.Default){return l===go||l===Ul||l===J3?this:this._r3Injector.get(l,g,T)}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class lu extends au{constructor(l){super(),this.moduleType=l,null!==Qt(l)&&function sp(s){const l=new Set;!function g(T){const R=Qt(T,!0),G=R.id;null!==G&&(function Vh(s,l,g){if(l&&l!==g)throw new Error(`Duplicate module registered for ${s} - ${N(l)} vs ${N(l.name)}`)}(G,Gl.get(G),T),Gl.set(G,T));const ae=qs(R.imports);for(const Ee of ae)l.has(Ee)||(l.add(Ee),g(Ee))}(s)}(l)}create(l){return new ou(this.moduleType,l)}}function zh(s,l,g){const T=Vr()+s,R=zi();return R[T]===Gn?Co(R,T,g?l.call(g):l()):function wl(s,l){return s[l]}(R,T)}function Bh(s,l,g,T){return cu(zi(),Vr(),s,l,g,T)}function Uh(s,l,g,T,R){return Yh(zi(),Vr(),s,l,g,T,R)}function Gh(s,l,g,T,R,G){return du(zi(),Vr(),s,l,g,T,R,G)}function z4(s,l){const g=s[l];return g===Gn?void 0:g}function cu(s,l,g,T,R,G){const ae=l+g;return is(s,ae,R)?Co(s,ae+1,G?T.call(G,R):T(R)):z4(s,ae+1)}function Yh(s,l,g,T,R,G,ae){const Ee=l+g;return v1(s,Ee,R,G)?Co(s,Ee+2,ae?T.call(ae,R,G):T(R,G)):z4(s,Ee+2)}function du(s,l,g,T,R,G,ae,Ee){const Ze=l+g;return Ll(s,Ze,R,G,ae)?Co(s,Ze+3,Ee?T.call(Ee,R,G,ae):T(R,G,ae)):z4(s,Ze+3)}function Kh(s,l){const g=zn();let T;const R=s+20;g.firstCreatePass?(T=function up(s,l){if(l)for(let g=l.length-1;g>=0;g--){const T=l[g];if(s===T.name)return T}}(l,g.pipeRegistry),g.data[R]=T,T.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(R,T.onDestroy)):T=g.data[R];const G=T.factory||(T.factory=Zr(T.type)),ae=ye(M1);try{const Ee=Be(!1),Ze=G();return Be(Ee),function o4(s,l,g,T){g>=s.data.length&&(s.data[g]=null,s.blueprint[g]=null),l[g]=T}(g,zi(),R,Ze),Ze}finally{ye(ae)}}function Qh(s,l,g){const T=s+20,R=zi(),G=hi(R,T);return Zl(R,T)?cu(R,Vr(),l,G.transform,g,G):G.transform(g)}function qh(s,l,g,T){const R=s+20,G=zi(),ae=hi(G,R);return Zl(G,R)?Yh(G,Vr(),l,ae.transform,g,T,ae):ae.transform(g,T)}function hu(s,l,g,T,R){const G=s+20,ae=zi(),Ee=hi(ae,G);return Zl(ae,G)?du(ae,Vr(),l,Ee.transform,g,T,R,Ee):Ee.transform(g,T,R)}function Zl(s,l){return s[1].data[l].pure}function fu(s){return l=>{setTimeout(s,void 0,l)}}const Ho=class pp extends t.x{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,g,T){var R,G,ae;let Ee=l,Ze=g||(()=>null),dt=T;if(l&&"object"==typeof l){const Wt=l;Ee=null===(R=Wt.next)||void 0===R?void 0:R.bind(Wt),Ze=null===(G=Wt.error)||void 0===G?void 0:G.bind(Wt),dt=null===(ae=Wt.complete)||void 0===ae?void 0:ae.bind(Wt)}this.__isAsync&&(Ze=fu(Ze),Ee&&(Ee=fu(Ee)),dt&&(dt=fu(dt)));const Tt=super.subscribe({next:Ee,error:Ze,complete:dt});return l instanceof e.w0&&l.add(Tt),Tt}};function mp(){return this._results[_1()]()}class l6{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 g=_1(),T=l6.prototype;T[g]||(T[g]=mp)}get changes(){return this._changes||(this._changes=new Ho)}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,g){return this._results.reduce(l,g)}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,g){const T=this;T.dirty=!1;const R=ds(l);(this._changesDetected=!function O2(s,l,g){if(s.length!==l.length)return!1;for(let T=0;T{class s{}return s.__NG_ELEMENT_ID__=_p,s})();const gp=Wl,Cp=class extends gp{constructor(l,g,T){super(),this._declarationLView=l,this._declarationTContainer=g,this.elementRef=T}createEmbeddedView(l){const g=this._declarationTContainer.tViews,T=fl(this._declarationLView,g,l,16,null,g.declTNode,null,null,null,null);T[17]=this._declarationLView[this._declarationTContainer.index];const G=this._declarationLView[19];return null!==G&&(T[19]=G.createEmbeddedView(g)),Fs(g,T,l),new V4(T)}};function _p(){return c6(Cr(),zi())}function c6(s,l){return 4&s.type?new Cp(l,s,Bl(s,l)):null}let B4=(()=>{class s{}return s.__NG_ELEMENT_ID__=vp,s})();function vp(){return ef(Cr(),zi())}const Jh=B4,Xh=class extends Jh{constructor(l,g,T){super(),this._lContainer=l,this._hostTNode=g,this._hostLView=T}get element(){return Bl(this._hostTNode,this._hostLView)}get injector(){return new Vo(this._hostTNode,this._hostLView)}get parentInjector(){const l=dn(this._hostTNode,this._hostLView);if(Cs(l)){const g=Ys(l,this._hostLView),T=Ws(l);return new Vo(g[1].data[T+8],g)}return new Vo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const g=$h(this._lContainer);return null!==g&&g[l]||null}get length(){return this._lContainer.length-10}createEmbeddedView(l,g,T){const R=l.createEmbeddedView(g||{});return this.insert(R,T),R}createComponent(l,g,T,R,G){const ae=l&&!function ro(s){return"function"==typeof s}(l);let Ee;if(ae)Ee=g;else{const Wt=g||{};Ee=Wt.index,T=Wt.injector,R=Wt.projectableNodes,G=Wt.ngModuleRef}const Ze=ae?l:new ru(at(l)),dt=T||this.parentInjector;if(!G&&null==Ze.ngModule){const ci=(ae?dt:this.parentInjector).get(Ul,null);ci&&(G=ci)}const Tt=Ze.create(dt,R,void 0,G);return this.insert(Tt.hostView,Ee),Tt}insert(l,g){const T=l._lView,R=T[1];if(function Zi(s){return pn(s[3])}(T)){const Tt=this.indexOf(l);if(-1!==Tt)this.detach(Tt);else{const Wt=T[3],ci=new Xh(Wt,Wt[6],Wt[3]);ci.detach(ci.indexOf(l))}}const G=this._adjustIndex(g),ae=this._lContainer;!function b3(s,l,g,T){const R=10+T,G=g.length;T>0&&(g[R-1][4]=l),T0)T.push(ae[Ee/2]);else{const dt=G[Ee+1],Tt=l[-Ze];for(let Wt=10;Wt{class s{constructor(g){this.appInits=g,this.resolve=f6,this.reject=f6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((T,R)=>{this.resolve=T,this.reject=R})}runInitializers(){if(this.initialized)return;const g=[],T=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let R=0;R{G.subscribe({complete:Ee,error:Ze})});g.push(ae)}}Promise.all(g).then(()=>{T()}).catch(R=>{this.reject(R)}),0===g.length&&T(),this.initialized=!0}}return s.\u0275fac=function(g){return new(g||s)(Oa(Iu,8))},s.\u0275prov=se({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Lf=new Mr("AppId",{providedIn:"root",factory:function Sf(){return`${ku()}${ku()}${ku()}`}});function ku(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Pu=new Mr("Platform Initializer"),Gp=new Mr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Nu=new Mr("appBootstrapListener");let Ef=(()=>{class s{log(g){console.log(g)}warn(g){console.warn(g)}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=se({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const p6=new Mr("LocaleId",{providedIn:"root",factory:()=>o1(p6,De.Optional|De.SkipSelf)||function Zp(){return"undefined"!=typeof $localize&&$localize.locale||Kr}()}),Wp=new Mr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Yp{constructor(l,g){this.ngModuleFactory=l,this.componentFactories=g}}let jp=(()=>{class s{compileModuleSync(g){return new lu(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const T=this.compileModuleSync(g),G=qs(Qt(g).declarations).reduce((ae,Ee)=>{const Ze=at(Ee);return Ze&&ae.push(new ru(Ze)),ae},[]);return new Yp(T,G)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=se({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Tf=(()=>Promise.resolve(0))();function m6(s){"undefined"==typeof Zone?Tf.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class bo{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:T=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ho(!1),this.onMicrotaskEmpty=new Ho(!1),this.onStable=new Ho(!1),this.onError=new Ho(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const R=this;R._nesting=0,R._outer=R._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(R._inner=R._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(R._inner=R._inner.fork(Zone.longStackTraceZoneSpec)),R.shouldCoalesceEventChangeDetection=!T&&g,R.shouldCoalesceRunChangeDetection=T,R.lastRequestAnimationFrameId=-1,R.nativeRequestAnimationFrame=function qp(){let s=ui.requestAnimationFrame,l=ui.cancelAnimationFrame;if("undefined"!=typeof Zone&&s&&l){const g=s[Zone.__symbol__("OriginalDelegate")];g&&(s=g);const T=l[Zone.__symbol__("OriginalDelegate")];T&&(l=T)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function $p(s){const l=()=>{!function Xp(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(ui,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Ru(s),s.isCheckStableRunning=!0,g6(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Ru(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,T,R,G,ae,Ee)=>{try{return Af(s),g.invokeTask(R,G,ae,Ee)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===G.type||s.shouldCoalesceRunChangeDetection)&&l(),Df(s)}},onInvoke:(g,T,R,G,ae,Ee,Ze)=>{try{return Af(s),g.invoke(R,G,ae,Ee,Ze)}finally{s.shouldCoalesceRunChangeDetection&&l(),Df(s)}},onHasTask:(g,T,R,G)=>{g.hasTask(R,G),T===R&&("microTask"==G.change?(s._hasPendingMicrotasks=G.microTask,Ru(s),g6(s)):"macroTask"==G.change&&(s.hasPendingMacrotasks=G.macroTask))},onHandleError:(g,T,R,G)=>(g.handleError(R,G),s.runOutsideAngular(()=>s.onError.emit(G)),!1)})}(R)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(bo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(l,g,T){return this._inner.run(l,g,T)}runTask(l,g,T,R){const G=this._inner,ae=G.scheduleEventTask("NgZoneEvent: "+R,l,Jp,f6,f6);try{return G.runTask(ae,g,T)}finally{G.cancelTask(ae)}}runGuarded(l,g,T){return this._inner.runGuarded(l,g,T)}runOutsideAngular(l){return this._outer.run(l)}}const Jp={};function g6(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 Ru(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Af(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function Df(s){s._nesting--,g6(s)}class e9{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ho,this.onMicrotaskEmpty=new Ho,this.onStable=new Ho,this.onError=new Ho}run(l,g,T){return l.apply(g,T)}runGuarded(l,g,T){return l.apply(g,T)}runOutsideAngular(l){return l()}runTask(l,g,T,R){return l.apply(g,T)}}let If=(()=>{class s{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.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:()=>{bo.assertNotInAngularZone(),m6(()=>{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())m6(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(T=>!T.updateCb||!T.updateCb(g)||(clearTimeout(T.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,T,R){let G=-1;T&&T>0&&(G=setTimeout(()=>{this._callbacks=this._callbacks.filter(ae=>ae.timeoutId!==G),g(this._didWork,this.getPendingTasks())},T)),this._callbacks.push({doneCb:g,timeoutId:G,updateCb:R})}whenStable(g,T,R){if(R&&!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(g,T,R),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,T,R){return[]}}return s.\u0275fac=function(g){return new(g||s)(Oa(bo))},s.\u0275prov=se({token:s,factory:s.\u0275fac}),s})(),t9=(()=>{class s{constructor(){this._applications=new Map,Hu.addToWindow(this)}registerApplication(g,T){this._applications.set(g,T)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,T=!0){return Hu.findTestabilityInTree(this,g,T)}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=se({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();class i9{addToWindow(l){}findTestabilityInTree(l,g,T){return null}}function n9(s){Hu=s}let Hu=new i9,E2=null;const Fu=new Mr("AllowMultipleToken"),Of=new Mr("PlatformOnDestroy");class r9{constructor(l,g){this.name=l,this.token=g}}function Nf(s,l,g=[]){const T=`Platform: ${l}`,R=new Mr(T);return(G=[])=>{let ae=Vu();if(!ae||ae.injector.get(Fu,!1)){const Ee=[...g,...G,{provide:R,useValue:!0}];s?s(Ee):function a9(s){if(E2&&!E2.get(Fu,!1))throw new L(400,"");E2=s;const l=s.get(zu),g=s.get(Pu,null);g&&g.forEach(T=>T())}(function o9(s=[],l){return go.create({name:l,providers:[{provide:X3,useValue:"platform"},{provide:Of,useValue:()=>E2=null},...s]})}(Ee,T))}return function s9(s){const l=Vu();if(!l)throw new L(401,"");return l}()}}function Vu(){var s;return null!==(s=null==E2?void 0:E2.get(zu))&&void 0!==s?s:null}let zu=(()=>{class s{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,T){const Ee=function l9(s,l){let g;return g="noop"===s?new e9:("zone.js"===s?void 0:s)||new bo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==l?void 0:l.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==l?void 0:l.ngZoneRunCoalescing)}),g}(T?T.ngZone:void 0,{ngZoneEventCoalescing:T&&T.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:T&&T.ngZoneRunCoalescing||!1}),Ze=[{provide:bo,useValue:Ee}];return Ee.run(()=>{const dt=go.create({providers:Ze,parent:this.injector,name:g.moduleType.name}),Tt=g.create(dt),Wt=Tt.injector.get(K2,null);if(!Wt)throw new L(402,"");return Ee.runOutsideAngular(()=>{const ci=Ee.onError.subscribe({next:xi=>{Wt.handleError(xi)}});Tt.onDestroy(()=>{C6(this._modules,Tt),ci.unsubscribe()})}),function c9(s,l,g){try{const T=g();return ms(T)?T.catch(R=>{throw l.runOutsideAngular(()=>s.handleError(R)),R}):T}catch(T){throw l.runOutsideAngular(()=>s.handleError(T)),T}}(Wt,Ee,()=>{const ci=Tt.injector.get(Ou);return ci.runInitializers(),ci.donePromise.then(()=>(function Vl(s){n(s,"Expected localeId to be defined"),"string"==typeof s&&(Ga=s.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(p6,Kr)||Kr),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(g,T=[]){const R=Rf({},T);return function kf(s,l,g){const T=new lu(g);return Promise.resolve(T)}(0,0,g).then(G=>this.bootstrapModuleFactory(G,R))}_moduleDoBootstrap(g){const T=g.injector.get(Bu);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(R=>T.bootstrap(R));else{if(!g.instance.ngDoBootstrap)throw new L(403,"");g.instance.ngDoBootstrap(T)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new L(404,"");this._modules.slice().forEach(T=>T.destroy()),this._destroyListeners.forEach(T=>T());const g=this._injector.get(Of,null);null==g||g(),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(g){return new(g||s)(Oa(go))},s.\u0275prov=se({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function Rf(s,l){return Array.isArray(l)?l.reduce(Rf,s):Object.assign(Object.assign({},s),l)}let Bu=(()=>{class s{constructor(g,T,R,G){this._zone=g,this._injector=T,this._exceptionHandler=R,this._initStatus=G,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 f.y(Ze=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ze.next(this._stable),Ze.complete()})}),Ee=new f.y(Ze=>{let dt;this._zone.runOutsideAngular(()=>{dt=this._zone.onStable.subscribe(()=>{bo.assertNotInAngularZone(),m6(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ze.next(!0))})})});const Tt=this._zone.onUnstable.subscribe(()=>{bo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ze.next(!1)}))});return()=>{dt.unsubscribe(),Tt.unsubscribe()}});this.isStable=(0,M.T)(ae,Ee.pipe((0,a.B)()))}bootstrap(g,T){if(!this._initStatus.done)throw new L(405,"");let R;R=g instanceof wh?g:this._injector.get(s6).resolveComponentFactory(g),this.componentTypes.push(R.componentType);const G=function Pf(s){return s.isBoundToModule}(R)?void 0:this._injector.get(Ul),Ee=R.create(go.NULL,[],T||R.selector,G),Ze=Ee.location.nativeElement,dt=Ee.injector.get(If,null),Tt=dt&&Ee.injector.get(t9);return dt&&Tt&&Tt.registerApplication(Ze,dt),Ee.onDestroy(()=>{this.detachView(Ee.hostView),C6(this.components,Ee),Tt&&Tt.unregisterApplication(Ze)}),this._loadComponent(Ee),Ee}tick(){if(this._runningTick)throw new L(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const T=g;this._views.push(T),T.attachToAppRef(this)}detachView(g){const T=g;C6(this._views,T),T.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Nu,[]).concat(this._bootstrapListeners).forEach(R=>R(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return s.\u0275fac=function(g){return new(g||s)(Oa(bo),Oa(go),Oa(K2),Oa(Ou))},s.\u0275prov=se({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function C6(s,l){const g=s.indexOf(l);g>-1&&s.splice(g,1)}let Ff=!0,Vf=!1;function zf(){return Vf=!0,Ff}function u9(){if(Vf)throw new Error("Cannot enable prod mode after platform setup.");Ff=!1}let Uf=(()=>{class s{}return s.__NG_ELEMENT_ID__=f9,s})();function f9(s){return function Gf(s,l,g){if(Dn(s)&&!g){const T=mt(s.index,l);return new V4(T,T)}return 47&s.type?new V4(l[16],l):null}(Cr(),zi(),16==(16&s))}class Wu{constructor(){}supports(l){return Ml(l)}create(l){return new b9(l)}}const x9=(s,l)=>l;class b9{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||x9}forEachItem(l){let g;for(g=this._itHead;null!==g;g=g._next)l(g)}forEachOperation(l){let g=this._itHead,T=this._removalsHead,R=0,G=null;for(;g||T;){const ae=!T||g&&g.currentIndex{ae=this._trackByFn(R,Ee),null!==g&&Object.is(g.trackById,ae)?(T&&(g=this._verifyReinsertion(g,Ee,ae,R)),Object.is(g.item,Ee)||this._addIdentityChange(g,Ee)):(g=this._mismatch(g,Ee,ae,R),T=!0),g=g._next,R++}),this.length=R;return this._truncate(g),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,g,T,R){let G;return null===l?G=this._itTail:(G=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(T,null))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._reinsertAfter(l,G,R)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(T,R))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._moveAfter(l,G,R)):l=this._addAfter(new M9(g,T),G,R),l}_verifyReinsertion(l,g,T,R){let G=null===this._unlinkedRecords?null:this._unlinkedRecords.get(T,null);return null!==G?l=this._reinsertAfter(G,l._prev,R):l.currentIndex!=R&&(l.currentIndex=R,this._addToMoves(l,R)),l}_truncate(l){for(;null!==l;){const g=l._next;this._addToRemovals(this._unlink(l)),l=g}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,g,T){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const R=l._prevRemoved,G=l._nextRemoved;return null===R?this._removalsHead=G:R._nextRemoved=G,null===G?this._removalsTail=R:G._prevRemoved=R,this._insertAfter(l,g,T),this._addToMoves(l,T),l}_moveAfter(l,g,T){return this._unlink(l),this._insertAfter(l,g,T),this._addToMoves(l,T),l}_addAfter(l,g,T){return this._insertAfter(l,g,T),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,g,T){const R=null===g?this._itHead:g._next;return l._next=R,l._prev=g,null===R?this._itTail=l:R._prev=l,null===g?this._itHead=l:g._next=l,null===this._linkedRecords&&(this._linkedRecords=new Yf),this._linkedRecords.put(l),l.currentIndex=T,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const g=l._prev,T=l._next;return null===g?this._itHead=T:g._next=T,null===T?this._itTail=g:T._prev=g,l}_addToMoves(l,g){return l.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yf),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,g){return l.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class M9{constructor(l,g){this.item=l,this.trackById=g,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 w9{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,g){let T;for(T=this._head;null!==T;T=T._nextDup)if((null===g||g<=T.currentIndex)&&Object.is(T.trackById,l))return T;return null}remove(l){const g=l._prevDup,T=l._nextDup;return null===g?this._head=T:g._nextDup=T,null===T?this._tail=g:T._prevDup=g,null===this._head}}class Yf{constructor(){this.map=new Map}put(l){const g=l.trackById;let T=this.map.get(g);T||(T=new w9,this.map.set(g,T)),T.add(l)}get(l,g){const R=this.map.get(l);return R?R.get(l,g):null}remove(l){const g=l.trackById;return this.map.get(g).remove(l)&&this.map.delete(g),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jf(s,l,g){const T=s.previousIndex;if(null===T)return T;let R=0;return g&&T{if(g&&g.key===R)this._maybeAddToChanges(g,T),this._appendAfter=g,g=g._next;else{const G=this._getOrCreateRecordForKey(R,T);g=this._insertBeforeOrAppend(g,G)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let T=g;null!==T;T=T._nextRemoved)T===this._mapHead&&(this._mapHead=null),this._records.delete(T.key),T._nextRemoved=T._next,T.previousValue=T.currentValue,T.currentValue=null,T._prev=null,T._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,g){if(l){const T=l._prev;return g._next=l,g._prev=T,l._prev=g,T&&(T._next=g),l===this._mapHead&&(this._mapHead=g),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(l,g){if(this._records.has(l)){const R=this._records.get(l);this._maybeAddToChanges(R,g);const G=R._prev,ae=R._next;return G&&(G._next=ae),ae&&(ae._prev=G),R._next=null,R._prev=null,R}const T=new S9(l);return this._records.set(l,T),T.currentValue=g,this._addToAdditions(T),T}_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,g){Object.is(g,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=g,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,g){l instanceof Map?l.forEach(g):Object.keys(l).forEach(T=>g(l[T],T))}}class S9{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 Qf(){return new Yu([new Wu])}let Yu=(()=>{class s{constructor(g){this.factories=g}static create(g,T){if(null!=T){const R=T.factories.slice();g=g.concat(R)}return new s(g)}static extend(g){return{provide:s,useFactory:T=>s.create(g,T||Qf()),deps:[[s,new Es,new Wo]]}}find(g){const T=this.factories.find(R=>R.supports(g));if(null!=T)return T;throw new L(901,"")}}return s.\u0275prov=se({token:s,providedIn:"root",factory:Qf}),s})();function qf(){return new ju([new Kf])}let ju=(()=>{class s{constructor(g){this.factories=g}static create(g,T){if(T){const R=T.factories.slice();g=g.concat(R)}return new s(g)}static extend(g){return{provide:s,useFactory:T=>s.create(g,T||qf()),deps:[[s,new Es,new Wo]]}}find(g){const T=this.factories.find(G=>G.supports(g));if(T)return T;throw new L(901,"")}}return s.\u0275prov=se({token:s,providedIn:"root",factory:qf}),s})();const A9=Nf(null,"core",[]);let D9=(()=>{class s{constructor(g){}}return s.\u0275fac=function(g){return new(g||s)(Oa(Bu))},s.\u0275mod=tt({type:s}),s.\u0275inj=xe({}),s})()},9042:(Fe,Y,p)=>{"use strict";function t(A){for(let D in A){let w=A[D]||"";switch(D){case"display":A.display="flex"===w?["-webkit-flex","flex"]:"inline-flex"===w?["-webkit-inline-flex","inline-flex"]:w;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":A["-webkit-"+D]=w;break;case"flex-direction":w=w||"row",A["-webkit-flex-direction"]=w,A["flex-direction"]=w;break;case"order":A.order=A["-webkit-"+D]=isNaN(+w)?"0":w}}return A}p.d(Y,{Ar:()=>M,GK:()=>t,iQ:()=>f,kt:()=>h,tj:()=>b});const e="inline",f=["row","column","row-reverse","column-reverse"];function M(A){let[D,w,S]=a(A);return function N(A,D=null,w=!1){return{display:w?"inline-flex":"flex","box-sizing":"border-box","flex-direction":A,"flex-wrap":D||null}}(D,w,S)}function a(A){var D;A=null!==(D=null==A?void 0:A.toLowerCase())&&void 0!==D?D:"";let[w,S,I]=A.split(" ");return f.find(L=>L===w)||(w=f[0]),S===e&&(S=I!==e?I:"",I=e),[w,d(S),!!I]}function b(A){let[D]=a(A);return D.indexOf("row")>-1}function d(A){if(A)switch(A.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":A="wrap-reverse";break;case"no":case"none":case"nowrap":A="nowrap";break;default:A="wrap"}return A}function h(A,...D){if(null==A)throw TypeError("Cannot convert undefined or null to object");for(let w of D)if(null!=w)for(let S in w)w.hasOwnProperty(S)&&(A[S]=w[S]);return A}},3270:(Fe,Y,p)=>{"use strict";p.d(Y,{Bs:()=>ne,FL:()=>ui,IR:()=>S,Ot:()=>di,QI:()=>de,RK:()=>ee,WU:()=>Z,g5:()=>U,iR:()=>ye,wY:()=>j,yB:()=>oe});var t=p(5e3),e=p(9808),f=p(1135),M=p(8306),a=p(6451),b=p(7579),d=p(9042),N=p(9300),h=p(8505);const D={provide:t.tb,useFactory:function A(xt,Nt){return()=>{if((0,e.NF)(Nt)){const gt=Array.from(xt.querySelectorAll(`[class*=${w}]`)),et=/\bflex-layout-.+?\b/g;gt.forEach(vt=>{vt.classList.contains(`${w}ssr`)&&vt.parentNode?vt.parentNode.removeChild(vt):vt.className.replace(et,"")})}}},deps:[e.K0,t.Lbi],multi:!0},w="flex-layout-";let S=(()=>{class xt{}return xt.\u0275fac=function(gt){return new(gt||xt)},xt.\u0275mod=t.oAB({type:xt}),xt.\u0275inj=t.cJS({providers:[D]}),xt})();class I{constructor(Nt=!1,gt="all",et="",vt="",$t=0){this.matches=Nt,this.mediaQuery=gt,this.mqAlias=et,this.suffix=vt,this.priority=$t,this.property=""}clone(){return new I(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let L=(()=>{class xt{constructor(){this.stylesheet=new Map}addStyleToElement(gt,et,vt){const $t=this.stylesheet.get(gt);$t?$t.set(et,vt):this.stylesheet.set(gt,new Map([[et,vt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(gt,et){const vt=this.stylesheet.get(gt);let $t="";if(vt){const jt=vt.get(et);("number"==typeof jt||"string"==typeof jt)&&($t=jt+"")}return $t}}return xt.\u0275fac=function(gt){return new(gt||xt)},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();const U={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Z=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>U}),j=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ne=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function X(xt,Nt){return xt=xt?xt.clone():new I,Nt&&(xt.mqAlias=Nt.alias,xt.mediaQuery=Nt.mediaQuery,xt.suffix=Nt.suffix,xt.priority=Nt.priority),xt}class de{constructor(){this.shouldCache=!0}sideEffect(Nt,gt,et){}}let ee=(()=>{class xt{constructor(gt,et,vt,$t){this._serverStylesheet=gt,this._serverModuleLoaded=et,this._platformId=vt,this.layoutConfig=$t}applyStyleToElement(gt,et,vt=null){let $t={};"string"==typeof et&&($t[et]=vt,et=$t),$t=this.layoutConfig.disableVendorPrefixes?et:(0,d.GK)(et),this._applyMultiValueStyleToElement($t,gt)}applyStyleToElements(gt,et=[]){const vt=this.layoutConfig.disableVendorPrefixes?gt:(0,d.GK)(gt);et.forEach($t=>{this._applyMultiValueStyleToElement(vt,$t)})}getFlowDirection(gt){const et="flex-direction";let vt=this.lookupStyle(gt,et);return[vt||"row",this.lookupInlineStyle(gt,et)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?vt:""]}hasWrap(gt){return"wrap"===this.lookupStyle(gt,"flex-wrap")}lookupAttributeValue(gt,et){var vt;return null!==(vt=gt.getAttribute(et))&&void 0!==vt?vt:""}lookupInlineStyle(gt,et){return(0,e.NF)(this._platformId)?gt.style.getPropertyValue(et):function te(xt,Nt){var gt;return null!==(gt=ge(xt)[Nt])&&void 0!==gt?gt:""}(gt,et)}lookupStyle(gt,et,vt=!1){let $t="";return gt&&(($t=this.lookupInlineStyle(gt,et))||((0,e.NF)(this._platformId)?vt||($t=getComputedStyle(gt).getPropertyValue(et)):this._serverModuleLoaded&&($t=this._serverStylesheet.getStyleForElement(gt,et)))),$t?$t.trim():""}_applyMultiValueStyleToElement(gt,et){Object.keys(gt).sort().forEach(vt=>{const $t=gt[vt],jt=Array.isArray($t)?$t:[$t];jt.sort();for(let Pe of jt)Pe=Pe?Pe+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?et.style.setProperty(vt,Pe):ce(et,vt,Pe):this._serverStylesheet.addStyleToElement(et,vt,Pe)})}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(L),t.LFG(j),t.LFG(t.Lbi),t.LFG(Z))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();function ce(xt,Nt,gt){Nt=Nt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const et=ge(xt);et[Nt]=null!=gt?gt:"",function J(xt,Nt){let gt="";for(const et in Nt)Nt[et]&&(gt+=`${et}:${Nt[et]};`);xt.setAttribute("style",gt)}(xt,et)}function ge(xt){const Nt={},gt=xt.getAttribute("style");if(gt){const et=gt.split(/;+/g);for(let vt=0;vt0){const jt=$t.indexOf(":");if(-1===jt)throw new Error(`Invalid CSS style: ${$t}`);Nt[$t.substr(0,jt).trim()]=$t.substr(jt+1).trim()}}}return Nt}function y(xt,Nt){return(Nt&&Nt.priority||0)-(xt&&xt.priority||0)}function i(xt,Nt){return(xt.priority||0)-(Nt.priority||0)}let r=(()=>{class xt{constructor(gt,et,vt){this._zone=gt,this._platformId=et,this._document=vt,this.source=new f.X(new I(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const gt=[];return this.registry.forEach((et,vt)=>{et.matches&>.push(vt)}),gt}isActive(gt){var et;const vt=this.registry.get(gt);return null!==(et=null==vt?void 0:vt.matches)&&void 0!==et?et:this.registerQuery(gt).some($t=>$t.matches)}observe(gt,et=!1){if(gt&>.length){const vt=this._observable$.pipe((0,N.h)(jt=>!et||gt.indexOf(jt.mediaQuery)>-1)),$t=new M.y(jt=>{const Pe=this.registerQuery(gt);if(Pe.length){const Oe=Pe.pop();Pe.forEach(le=>{jt.next(le)}),this.source.next(Oe)}jt.complete()});return(0,a.T)($t,vt)}return this._observable$}registerQuery(gt){const et=Array.isArray(gt)?gt:[gt],vt=[];return function c(xt,Nt){const gt=xt.filter(et=>!u[et]);if(gt.length>0){const et=gt.join(", ");try{const vt=Nt.createElement("style");vt.setAttribute("type","text/css"),vt.styleSheet||vt.appendChild(Nt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${et} {.fx-query-test{ }}\n`)),Nt.head.appendChild(vt),gt.forEach($t=>u[$t]=vt)}catch(vt){console.error(vt)}}}(et,this._document),et.forEach($t=>{const jt=Oe=>{this._zone.run(()=>this.source.next(new I(Oe.matches,$t)))};let Pe=this.registry.get($t);Pe||(Pe=this.buildMQL($t),Pe.addListener(jt),this.pendingRemoveListenerFns.push(()=>Pe.removeListener(jt)),this.registry.set($t,Pe)),Pe.matches&&vt.push(new I(!0,$t))}),vt}ngOnDestroy(){let gt;for(;gt=this.pendingRemoveListenerFns.pop();)gt()}buildMQL(gt){return function C(xt,Nt){return Nt&&window.matchMedia("all").addListener?window.matchMedia(xt):{matches:"all"===xt||""===xt,media:xt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(gt,(0,e.NF)(this._platformId))}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();const u={},E=[{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}],O="(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)",v="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",B="(orientation: portrait) and (min-width: 840px)",P="(orientation: landscape) and (min-width: 1280px)",z={HANDSET:`${O}, ${_}`,TABLET:`${n} , ${v}`,WEB:`${B}, ${P} `,HANDSET_PORTRAIT:`${O}`,TABLET_PORTRAIT:`${n} `,WEB_PORTRAIT:`${B}`,HANDSET_LANDSCAPE:`${_}`,TABLET_LANDSCAPE:`${v}`,WEB_LANDSCAPE:`${P}`},se=[{alias:"handset",priority:2e3,mediaQuery:z.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:z.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:z.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:z.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:z.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:z.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:z.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:z.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:z.WEB_PORTRAIT,overlapping:!0}],fe=/(\.|-|_)/g;function xe(xt){let Nt=xt.length>0?xt.charAt(0):"",gt=xt.length>1?xt.slice(1):"";return Nt.toUpperCase()+gt}const Ge=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const xt=(0,t.f3M)(ne),Nt=(0,t.f3M)(Z),gt=[].concat.apply([],(xt||[]).map(vt=>Array.isArray(vt)?vt:[vt]));return function Q(xt,Nt=[]){const gt={};return xt.forEach(et=>{gt[et.alias]=et}),Nt.forEach(et=>{gt[et.alias]?(0,d.kt)(gt[et.alias],et):gt[et.alias]=et}),function we(xt){return xt.forEach(Nt=>{Nt.suffix||(Nt.suffix=function Re(xt){return xt.replace(fe,"|").split("|").map(xe).join("")}(Nt.alias),Nt.overlapping=!!Nt.overlapping)}),xt}(Object.keys(gt).map(et=>gt[et]))}((Nt.disableDefaultBps?[]:E).concat(Nt.addOrientationBps?se:[]),gt)}});let ve=(()=>{class xt{constructor(gt){this.findByMap=new Map,this.items=[...gt].sort(i)}findByAlias(gt){return gt?this.findWithPredicate(gt,et=>et.alias===gt):null}findByQuery(gt){return this.findWithPredicate(gt,et=>et.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 et;return null!==(et=null==gt?void 0:gt.suffix)&&void 0!==et?et:""})}findWithPredicate(gt,et){var vt;let $t=this.findByMap.get(gt);return $t||($t=null!==(vt=this.items.find(et))&&void 0!==vt?vt:null,this.findByMap.set(gt,$t)),null!=$t?$t:null}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(Ge))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();const F="print",Ae={alias:F,mediaQuery:F,priority:1e3};let lt=(()=>{class xt{constructor(gt,et,vt){this.breakpoints=gt,this.layoutConfig=et,this._document=vt,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,F]}isPrintEvent(gt){return gt.mediaQuery.startsWith(F)}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 et=this.breakpoints.findByQuery(gt);return(et?[...this.printBreakPoints,et]:this.printBreakPoints).sort(y)}updateEvent(gt){var et;let vt=this.breakpoints.findByQuery(gt.mediaQuery);return this.isPrintEvent(gt)&&(vt=this.getEventBreakpoints(gt)[0],gt.mediaQuery=null!==(et=null==vt?void 0:vt.mediaQuery)&&void 0!==et?et:""),X(gt,vt)}registerBeforeAfterPrintHooks(gt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const et=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(gt,this.getEventBreakpoints(new I(!0,F))),gt.updateStyles())},vt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(gt),gt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",et),this._document.defaultView.addEventListener("afterprint",vt),this.beforePrintEventListeners.push(et),this.afterPrintEventListeners.push(vt)}interceptEvents(gt){return et=>{this.isPrintEvent(et)?et.matches&&!this.isPrinting?(this.startPrinting(gt,this.getEventBreakpoints(et)),gt.updateStyles()):!et.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(gt),gt.updateStyles()):this.collectActivations(gt,et)}}blockPropagation(){return gt=>!(this.isPrinting||this.isPrintEvent(gt))}startPrinting(gt,et){this.isPrinting=!0,this.formerActivations=gt.activatedBreakpoints,gt.activatedBreakpoints=this.queue.addPrintBreakpoints(et)}stopPrinting(gt){gt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(gt,et){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!et.matches){const vt=this.breakpoints.findByQuery(et.mediaQuery);if(vt){const $t=this.formerActivations&&this.formerActivations.includes(vt),jt=!this.formerActivations&>.activatedBreakpoints.includes(vt);($t||jt)&&(this.deactivations.push(vt),this.deactivations.sort(y))}}}}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 xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(ve),t.LFG(Z),t.LFG(e.K0))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();class Ie{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Nt){return Nt.push(Ae),Nt.sort(y),Nt.forEach(gt=>this.addBreakpoint(gt)),this.printBreakpoints}addBreakpoint(Nt){Nt&&void 0===this.printBreakpoints.find(et=>et.mediaQuery===Nt.mediaQuery)&&(this.printBreakpoints=function De(xt){var Nt;return null!==(Nt=null==xt?void 0:xt.mediaQuery.startsWith(F))&&void 0!==Nt&&Nt}(Nt)?[Nt,...this.printBreakpoints]:[...this.printBreakpoints,Nt])}clear(){this.printBreakpoints=[]}}let oe=(()=>{class xt{constructor(gt,et,vt){this.matchMedia=gt,this.breakpoints=et,this.hook=vt,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 b.x,this.observeActivations()}get activatedAlias(){var gt,et;return null!==(et=null===(gt=this.activatedBreakpoints[0])||void 0===gt?void 0:gt.alias)&&void 0!==et?et:""}set activatedBreakpoints(gt){this._activatedBreakpoints=[...gt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(gt){this._useFallbacks=gt}onMediaChange(gt){const et=this.findByQuery(gt.mediaQuery);if(et){gt=X(gt,et);const vt=this.activatedBreakpoints.indexOf(et);gt.matches&&-1===vt?(this._activatedBreakpoints.push(et),this._activatedBreakpoints.sort(y),this.updateStyles()):!gt.matches&&-1!==vt&&(this._activatedBreakpoints.splice(vt,1),this._activatedBreakpoints.sort(y),this.updateStyles())}}init(gt,et,vt,$t,jt=[]){Te(this.updateMap,gt,et,vt),Te(this.clearMap,gt,et,$t),this.buildElementKeyMap(gt,et),this.watchExtraTriggers(gt,et,jt)}getValue(gt,et,vt){const $t=this.elementMap.get(gt);if($t){const jt=void 0!==vt?$t.get(vt):this.getActivatedValues($t,et);if(jt)return jt.get(et)}}hasValue(gt,et){const vt=this.elementMap.get(gt);if(vt){const $t=this.getActivatedValues(vt,et);if($t)return void 0!==$t.get(et)||!1}return!1}setValue(gt,et,vt,$t){var jt;let Pe=this.elementMap.get(gt);if(Pe){const le=(null!==(jt=Pe.get($t))&&void 0!==jt?jt:new Map).set(et,vt);Pe.set($t,le),this.elementMap.set(gt,Pe)}else Pe=(new Map).set($t,(new Map).set(et,vt)),this.elementMap.set(gt,Pe);const Oe=this.getValue(gt,et);void 0!==Oe&&this.updateElement(gt,et,Oe)}trackValue(gt,et){return this.subject.asObservable().pipe((0,N.h)(vt=>vt.element===gt&&vt.key===et))}updateStyles(){this.elementMap.forEach((gt,et)=>{const vt=new Set(this.elementKeyMap.get(et));let $t=this.getActivatedValues(gt);$t&&$t.forEach((jt,Pe)=>{this.updateElement(et,Pe,jt),vt.delete(Pe)}),vt.forEach(jt=>{if($t=this.getActivatedValues(gt,jt),$t){const Pe=$t.get(jt);this.updateElement(et,jt,Pe)}else this.clearElement(et,jt)})})}clearElement(gt,et){const vt=this.clearMap.get(gt);if(vt){const $t=vt.get(et);$t&&($t(),this.subject.next({element:gt,key:et,value:""}))}}updateElement(gt,et,vt){const $t=this.updateMap.get(gt);if($t){const jt=$t.get(et);jt&&(jt(vt),this.subject.next({element:gt,key:et,value:vt}))}}releaseElement(gt){const et=this.watcherMap.get(gt);et&&(et.forEach($t=>$t.unsubscribe()),this.watcherMap.delete(gt));const vt=this.elementMap.get(gt);vt&&(vt.forEach(($t,jt)=>vt.delete(jt)),this.elementMap.delete(gt))}triggerUpdate(gt,et){const vt=this.elementMap.get(gt);if(vt){const $t=this.getActivatedValues(vt,et);$t&&(et?this.updateElement(gt,et,$t.get(et)):$t.forEach((jt,Pe)=>this.updateElement(gt,Pe,jt)))}}buildElementKeyMap(gt,et){let vt=this.elementKeyMap.get(gt);vt||(vt=new Set,this.elementKeyMap.set(gt,vt)),vt.add(et)}watchExtraTriggers(gt,et,vt){if(vt&&vt.length){let $t=this.watcherMap.get(gt);if($t||($t=new Map,this.watcherMap.set(gt,$t)),!$t.get(et)){const Pe=(0,a.T)(...vt).subscribe(()=>{const Oe=this.getValue(gt,et);this.updateElement(gt,et,Oe)});$t.set(et,Pe)}}}findByQuery(gt){return this.breakpoints.findByQuery(gt)}getActivatedValues(gt,et){for(let $t=0;$tet.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(gt)).pipe((0,h.b)(this.hook.interceptEvents(this)),(0,N.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.LFG(r),t.LFG(ve),t.LFG(lt))},xt.\u0275prov=t.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();function Te(xt,Nt,gt,et){var vt;if(void 0!==et){const $t=null!==(vt=xt.get(Nt))&&void 0!==vt?vt:new Map;$t.set(gt,et),xt.set(Nt,$t)}}let ye=(()=>{class xt{constructor(gt,et,vt,$t){this.elementRef=gt,this.styleBuilder=et,this.styler=vt,this.marshal=$t,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new b.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(et=>{if(-1!==this.inputs.indexOf(et)){const vt=et.split(".").slice(1).join(".");this.setValue(gt[et].currentValue,vt)}})}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,et){const vt=this.styleBuilder,$t=vt.shouldCache;let jt=this.styleCache.get(gt);(!jt||!$t)&&(jt=vt.buildStyles(gt,et),$t&&this.styleCache.set(gt,jt)),this.mru=Object.assign({},jt),this.applyStyleToElement(jt),vt.sideEffect(gt,jt,et)}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,et=!1){if(gt){const[vt,$t]=this.styler.getFlowDirection(gt);if(!$t&&et){const jt=(0,d.Ar)(vt);this.styler.applyStyleToElements(jt,[gt])}return vt.trim()}return"row"}hasWrap(gt){return this.styler.hasWrap(gt)}applyStyleToElement(gt,et,vt=this.nativeElement){this.styler.applyStyleToElement(vt,gt,et)}setValue(gt,et){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,et)}updateWithValue(gt){this.currentValue!==gt&&(this.addStyles(gt),this.currentValue=gt)}}return xt.\u0275fac=function(gt){return new(gt||xt)(t.Y36(t.SBq),t.Y36(de),t.Y36(ee),t.Y36(oe))},xt.\u0275dir=t.lG2({type:xt,features:[t.TTD]}),xt})();function di(xt,Nt="1",gt="1"){let et=[Nt,gt,xt],vt=xt.indexOf("calc");if(vt>0){et[2]=Yt(xt.substring(vt).trim());let $t=xt.substr(0,vt).trim().split(" ");2==$t.length&&(et[0]=$t[0],et[1]=$t[1])}else if(0==vt)et[2]=Yt(xt.trim());else{let $t=xt.split(" ");et=3===$t.length?$t:[Nt,gt,xt]}return et}function Yt(xt){return xt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function ui(xt,Nt){if(void 0===Nt)return xt;const gt=et=>{const vt=+et.slice(0,-"x".length);return xt.endsWith("x")&&!isNaN(vt)?`${vt*Nt.value}${Nt.unit}`:xt};return xt.includes(" ")?xt.split(" ").map(gt).join(" "):gt(xt)}},3322:(Fe,Y,p)=>{"use strict";p.d(Y,{Zl:()=>E,aT:()=>n,oO:()=>U});var t=p(5e3),e=p(3270),f=p(9808),b=(p(3191),p(2722),p(2313));let S=(()=>{class v extends e.iR{constructor(P,z,se,fe,xe,Re,we){super(P,null,z,se),this.ngClassInstance=we,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new f.mk(fe,xe,P,Re)),this.init(),this.setValue("","")}set klass(P){this.ngClassInstance.klass=P,this.setValue(P,"")}updateWithValue(P){this.ngClassInstance.ngClass=P,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return v.\u0275fac=function(P){return new(P||v)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.mk,10))},v.\u0275dir=t.lG2({type:v,inputs:{klass:["class","klass"]},features:[t.qOj]}),v})();const I=["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 U=(()=>{class v extends S{constructor(){super(...arguments),this.inputs=I}}return v.\u0275fac=function(){let B;return function(z){return(B||(B=t.n5z(v)))(z||v)}}(),v.\u0275dir=t.lG2({type:v,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:[t.qOj]}),v})();class te{constructor(B,P,z=!0){this.key=B,this.value=P,this.key=z?B.replace(/['"]/g,"").trim():B.trim(),this.value=z?P.replace(/['"]/g,"").trim():P.trim(),this.value=this.value.replace(/;/,"")}}function ce(v){let B=typeof v;return"object"===B?v.constructor===Array?"array":v.constructor===Set?"set":"object":B}function i(v){const[B,...P]=v.split(":");return new te(B,P.join(":"))}function r(v,B){return B.key&&(v[B.key]=B.value),v}let u=(()=>{class v extends e.iR{constructor(P,z,se,fe,xe,Re,we,Q,Ge){var ve;super(P,null,z,se),this.sanitizer=fe,this.ngStyleInstance=we,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new f.PC(P,xe,Re)),this.init();const F=null!==(ve=this.nativeElement.getAttribute("style"))&&void 0!==ve?ve:"";this.fallbackStyles=this.buildStyleMap(F),this.isServer=Q&&(0,f.PM)(Ge)}updateWithValue(P){const z=this.buildStyleMap(P);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),z),this.isServer&&this.applyStyleToElement(z),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(P){const z=se=>{var fe;return null!==(fe=this.sanitizer.sanitize(t.q3G.STYLE,se))&&void 0!==fe?fe:""};if(P)switch(ce(P)){case"string":return O(function J(v,B=";"){return String(v).trim().split(B).map(P=>P.trim()).filter(P=>""!==P)}(P),z);case"array":return O(P,z);default:return function y(v,B){let P=[];return"set"===ce(v)?v.forEach(z=>P.push(z)):Object.keys(v).forEach(z=>{P.push(`${z}:${v[z]}`)}),function ge(v,B){return v.map(i).filter(z=>!!z).map(z=>(B&&(z.value=B(z.value)),z)).reduce(r,{})}(P,B)}(P,z)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return v.\u0275fac=function(P){return new(P||v)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(b.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},v.\u0275dir=t.lG2({type:v,features:[t.qOj]}),v})();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 E=(()=>{class v extends u{constructor(){super(...arguments),this.inputs=c}}return v.\u0275fac=function(){let B;return function(z){return(B||(B=t.n5z(v)))(z||v)}}(),v.\u0275dir=t.lG2({type:v,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[t.qOj]}),v})();function O(v,B){return v.map(i).filter(z=>!!z).map(z=>(B&&(z.value=B(z.value)),z)).reduce(r,{})}let n=(()=>{class v{}return v.\u0275fac=function(P){return new(P||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[[e.IR]]}),v})()},7093:(Fe,Y,p)=>{"use strict";p.d(Y,{Wh:()=>Yt,ae:()=>Pe,xw:()=>D,yH:()=>C});var t=p(5e3),e=p(226),f=p(3270),M=p(9042),b=(p(7579),p(2722));let d=(()=>{class Oe extends f.QI{buildStyles(be,{display:ht}){const ft=(0,M.Ar)(be);return Object.assign(Object.assign({},ft),{display:"none"===ht?ht:ft.display})}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275prov=t.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();const N=["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 A=(()=>{class Oe extends f.iR{constructor(be,ht,ft,Ht,it){super(be,ft,ht,Ht),this._config=it,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(be){var ht;const Ht=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(ht=w.get(Ht))&&void 0!==ht?ht:new Map,w.set(Ht,this.styleCache),this.currentValue!==be&&(this.addStyles(be,{display:Ht}),this.currentValue=be)}}return Oe.\u0275fac=function(be){return new(be||Oe)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(d),t.Y36(f.yB),t.Y36(f.WU))},Oe.\u0275dir=t.lG2({type:Oe,features:[t.qOj]}),Oe})(),D=(()=>{class Oe extends A{constructor(){super(...arguments),this.inputs=N}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275dir=t.lG2({type:Oe,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:[t.qOj]}),Oe})();const w=new Map;let i=(()=>{class Oe extends f.QI{constructor(be){super(),this.layoutConfig=be}buildStyles(be,ht){let[ft,Ht,...it]=be.split(" "),Ne=it.join(" ");const tt=ht.direction.indexOf("column")>-1?"column":"row",Je=(0,M.tj)(tt)?"max-width":"max-height",Se=(0,M.tj)(tt)?"min-width":"min-height",Ue=String(Ne).indexOf("calc")>-1,rt=Ue||"auto"===Ne,at=String(Ne).indexOf("%")>-1&&!Ue,yt=String(Ne).indexOf("px")>-1||String(Ne).indexOf("rem")>-1||String(Ne).indexOf("em")>-1||String(Ne).indexOf("vw")>-1||String(Ne).indexOf("vh")>-1;let gi=Ue||yt;ft="0"==ft?0:ft,Ht="0"==Ht?0:Ht;const Qt=!ft&&!Ht;let Jt={};const Xi={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Ne||""){case"":const fi=!1!==this.layoutConfig.useColumnBasisZero;Ne="row"===tt?"0%":fi?"0.000000001px":"auto";break;case"initial":case"nogrow":ft=0,Ne="auto";break;case"grow":Ne="100%";break;case"noshrink":Ht=0,Ne="auto";break;case"auto":break;case"none":ft=0,Ht=0,Ne="auto";break;default:!gi&&!at&&!isNaN(Ne)&&(Ne+="%"),"0%"===Ne&&(gi=!0),"0px"===Ne&&(Ne="0%"),Jt=(0,M.kt)(Xi,Ue?{"flex-grow":ft,"flex-shrink":Ht,"flex-basis":gi?Ne:"100%"}:{flex:`${ft} ${Ht} ${gi?Ne:"100%"}`})}return Jt.flex||Jt["flex-grow"]||(Jt=(0,M.kt)(Xi,Ue?{"flex-grow":ft,"flex-shrink":Ht,"flex-basis":Ne}:{flex:`${ft} ${Ht} ${Ne}`})),"0%"!==Ne&&"0px"!==Ne&&"0.000000001px"!==Ne&&"auto"!==Ne&&(Jt[Se]=Qt||gi&&ft?Ne:null,Jt[Je]=Qt||!rt&&Ht?Ne:null),Jt[Se]||Jt[Je]?ht.hasWrap&&(Jt[Ue?"flex-basis":"flex"]=Jt[Je]?Ue?Jt[Je]:`${ft} ${Ht} ${Jt[Je]}`:Ue?Jt[Se]:`${ft} ${Ht} ${Jt[Se]}`):Jt=(0,M.kt)(Xi,Ue?{"flex-grow":ft,"flex-shrink":Ht,"flex-basis":Ne}:{flex:`${ft} ${Ht} ${Ne}`}),(0,M.kt)(Jt,{"box-sizing":"border-box"})}}return Oe.\u0275fac=function(be){return new(be||Oe)(t.LFG(f.WU))},Oe.\u0275prov=t.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();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 Oe extends f.iR{constructor(be,ht,ft,Ht,it){super(be,Ht,ht,it),this.layoutConfig=ft,this.marshal=it,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(be){this.flexShrink=be||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(be){this.flexGrow=be||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,b.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,b.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(be){const ft=be.value.split(" ");this.direction=ft[0],this.wrap=void 0!==ft[1]&&"wrap"===ft[1],this.triggerUpdate()}updateWithValue(be){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,Ht=ft.startsWith("row"),it=this.wrap;Ht&&it?this.styleCache=_:Ht&&!it?this.styleCache=E:!Ht&&it?this.styleCache=n:!Ht&&!it&&(this.styleCache=O);const Ne=String(be).replace(";",""),tt=(0,f.Ot)(Ne,this.flexGrow,this.flexShrink);this.addStyles(tt.join(" "),{direction:ft,hasWrap:it})}triggerReflow(){const be=this.activatedValue;if(void 0!==be){const ht=(0,f.Ot)(be+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ht.join(" "))}}}return Oe.\u0275fac=function(be){return new(be||Oe)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(f.WU),t.Y36(i),t.Y36(f.yB))},Oe.\u0275dir=t.lG2({type:Oe,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),Oe})(),C=(()=>{class Oe extends c{constructor(){super(...arguments),this.inputs=r}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275dir=t.lG2({type:Oe,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:[t.qOj]}),Oe})();const E=new Map,O=new Map,_=new Map,n=new Map;let ct=(()=>{class Oe extends f.QI{buildStyles(be,ht){const ft={},[Ht,it]=be.split(" ");switch(Ht){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(it){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,M.kt)(ft,{display:ht.inline?"inline-flex":"flex","flex-direction":ht.layout,"box-sizing":"border-box","max-width":"stretch"===it?(0,M.tj)(ht.layout)?null:"100%":null,"max-height":"stretch"===it&&(0,M.tj)(ht.layout)?"100%":null})}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275prov=t.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();const ut=["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 di=(()=>{class Oe extends f.iR{constructor(be,ht,ft,Ht){super(be,ft,ht,Ht),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,b.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(be){const ht=this.layout||"row",ft=this.inline;"row"===ht&&ft?this.styleCache=gt:"row"!==ht||ft?"row-reverse"===ht&&ft?this.styleCache=vt:"row-reverse"!==ht||ft?"column"===ht&&ft?this.styleCache=et:"column"!==ht||ft?"column-reverse"===ht&&ft?this.styleCache=$t:"column-reverse"===ht&&!ft&&(this.styleCache=Nt):this.styleCache=ui:this.styleCache=xt:this.styleCache=Gt,this.addStyles(be,{layout:ht,inline:ft})}onLayoutChange(be){const ht=be.value.split(" ");this.layout=ht[0],this.inline=be.value.includes("inline"),M.iQ.find(ft=>ft===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Oe.\u0275fac=function(be){return new(be||Oe)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(ct),t.Y36(f.yB))},Oe.\u0275dir=t.lG2({type:Oe,features:[t.qOj]}),Oe})(),Yt=(()=>{class Oe extends di{constructor(){super(...arguments),this.inputs=ut}}return Oe.\u0275fac=function(){let le;return function(ht){return(le||(le=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275dir=t.lG2({type:Oe,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:[t.qOj]}),Oe})();const Gt=new Map,ui=new Map,xt=new Map,Nt=new Map,gt=new Map,et=new Map,vt=new Map,$t=new Map;let Pe=(()=>{class Oe{}return Oe.\u0275fac=function(be){return new(be||Oe)},Oe.\u0275mod=t.oAB({type:Oe}),Oe.\u0275inj=t.cJS({imports:[[f.IR,e.vT]]}),Oe})()},3075:(Fe,Y,p)=>{"use strict";p.d(Y,{Cf:()=>Z,F:()=>zt,Fd:()=>Ia,Fj:()=>I,JJ:()=>De,JL:()=>oe,JU:()=>N,NI:()=>Ei,On:()=>Dn,Q7:()=>Fr,UX:()=>Zt,Zs:()=>ya,_Y:()=>Ai,a5:()=>ve,kI:()=>X,oH:()=>Na,qQ:()=>ra,qu:()=>Zi,sg:()=>nr,u:()=>fn,u5:()=>mt,wV:()=>cn});var t=p(5e3),e=p(9808),f=p(457),M=p(4128),a=p(4004);let b=(()=>{class Qe{constructor(He,bt){this._renderer=He,this._elementRef=bt,this.onChange=Si=>{},this.onTouched=()=>{}}setProperty(He,bt){this._renderer.setProperty(this._elementRef.nativeElement,He,bt)}registerOnTouched(He){this.onTouched=He}registerOnChange(He){this.onChange=He}setDisabledState(He){this.setProperty("disabled",He)}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(t.Qsj),t.Y36(t.SBq))},Qe.\u0275dir=t.lG2({type:Qe}),Qe})(),d=(()=>{class Qe extends b{}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,features:[t.qOj]}),Qe})();const N=new t.OlP("NgValueAccessor"),D={provide:N,useExisting:(0,t.Gpc)(()=>I),multi:!0},S=new t.OlP("CompositionEventMode");let I=(()=>{class Qe extends b{constructor(He,bt,Si){super(He,bt),this._compositionMode=Si,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function w(){const Qe=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(Qe.toLowerCase())}())}writeValue(He){this.setProperty("value",null==He?"":He)}_handleInput(He){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(He)}_compositionStart(){this._composing=!0}_compositionEnd(He){this._composing=!1,this._compositionMode&&this.onChange(He)}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(S,8))},Qe.\u0275dir=t.lG2({type:Qe,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(He,bt){1&He&&t.NdJ("input",function(Qi){return bt._handleInput(Qi.target.value)})("blur",function(){return bt.onTouched()})("compositionstart",function(){return bt._compositionStart()})("compositionend",function(Qi){return bt._compositionEnd(Qi.target.value)})},features:[t._Bn([D]),t.qOj]}),Qe})();function L(Qe){return null==Qe||0===Qe.length}function U(Qe){return null!=Qe&&"number"==typeof Qe.length}const Z=new t.OlP("NgValidators"),j=new t.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 X{static min(We){return de(We)}static max(We){return ee(We)}static required(We){return te(We)}static requiredTrue(We){return ce(We)}static email(We){return function J(Qe){return L(Qe.value)||ne.test(Qe.value)?null:{email:!0}}(We)}static minLength(We){return function ge(Qe){return We=>L(We.value)||!U(We.value)?null:We.value.lengthU(We.value)&&We.value.length>Qe?{maxlength:{requiredLength:Qe,actualLength:We.value.length}}:null}(We)}static pattern(We){return function i(Qe){if(!Qe)return r;let We,He;return"string"==typeof Qe?(He="","^"!==Qe.charAt(0)&&(He+="^"),He+=Qe,"$"!==Qe.charAt(Qe.length-1)&&(He+="$"),We=new RegExp(He)):(He=Qe.toString(),We=Qe),bt=>{if(L(bt.value))return null;const Si=bt.value;return We.test(Si)?null:{pattern:{requiredPattern:He,actualValue:Si}}}}(We)}static nullValidator(We){return null}static compose(We){return n(We)}static composeAsync(We){return B(We)}}function de(Qe){return We=>{if(L(We.value)||L(Qe))return null;const He=parseFloat(We.value);return!isNaN(He)&&He{if(L(We.value)||L(Qe))return null;const He=parseFloat(We.value);return!isNaN(He)&&He>Qe?{max:{max:Qe,actual:We.value}}:null}}function te(Qe){return L(Qe.value)?{required:!0}:null}function ce(Qe){return!0===Qe.value?null:{required:!0}}function r(Qe){return null}function u(Qe){return null!=Qe}function c(Qe){const We=(0,t.QGY)(Qe)?(0,f.D)(Qe):Qe;return(0,t.CqO)(We),We}function C(Qe){let We={};return Qe.forEach(He=>{We=null!=He?Object.assign(Object.assign({},We),He):We}),0===Object.keys(We).length?null:We}function E(Qe,We){return We.map(He=>He(Qe))}function _(Qe){return Qe.map(We=>function O(Qe){return!Qe.validate}(We)?We:He=>We.validate(He))}function n(Qe){if(!Qe)return null;const We=Qe.filter(u);return 0==We.length?null:function(He){return C(E(He,We))}}function v(Qe){return null!=Qe?n(_(Qe)):null}function B(Qe){if(!Qe)return null;const We=Qe.filter(u);return 0==We.length?null:function(He){const bt=E(He,We).map(c);return(0,M.D)(bt).pipe((0,a.U)(C))}}function P(Qe){return null!=Qe?B(_(Qe)):null}function z(Qe,We){return null===Qe?[We]:Array.isArray(Qe)?[...Qe,We]:[Qe,We]}function se(Qe){return Qe._rawValidators}function fe(Qe){return Qe._rawAsyncValidators}function xe(Qe){return Qe?Array.isArray(Qe)?Qe:[Qe]:[]}function Re(Qe,We){return Array.isArray(Qe)?Qe.includes(We):Qe===We}function we(Qe,We){const He=xe(We);return xe(Qe).forEach(Si=>{Re(He,Si)||He.push(Si)}),He}function Q(Qe,We){return xe(We).filter(He=>!Re(Qe,He))}class Ge{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(We){this._rawValidators=We||[],this._composedValidatorFn=v(this._rawValidators)}_setAsyncValidators(We){this._rawAsyncValidators=We||[],this._composedAsyncValidatorFn=P(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(We){this._onDestroyCallbacks.push(We)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(We=>We()),this._onDestroyCallbacks=[]}reset(We){this.control&&this.control.reset(We)}hasError(We,He){return!!this.control&&this.control.hasError(We,He)}getError(We,He){return this.control?this.control.getError(We,He):null}}class ve extends Ge{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class F extends Ge{get formDirective(){return null}get path(){return null}}class Ae{constructor(We){this._cd=We}is(We){var He,bt,Si;return"submitted"===We?!!(null===(He=this._cd)||void 0===He?void 0:He.submitted):!!(null===(Si=null===(bt=this._cd)||void 0===bt?void 0:bt.control)||void 0===Si?void 0:Si[We])}}let De=(()=>{class Qe extends Ae{constructor(He){super(He)}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(ve,2))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(He,bt){2&He&&t.ekj("ng-untouched",bt.is("untouched"))("ng-touched",bt.is("touched"))("ng-pristine",bt.is("pristine"))("ng-dirty",bt.is("dirty"))("ng-valid",bt.is("valid"))("ng-invalid",bt.is("invalid"))("ng-pending",bt.is("pending"))},features:[t.qOj]}),Qe})(),oe=(()=>{class Qe extends Ae{constructor(He){super(He)}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(F,10))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(He,bt){2&He&&t.ekj("ng-untouched",bt.is("untouched"))("ng-touched",bt.is("touched"))("ng-pristine",bt.is("pristine"))("ng-dirty",bt.is("dirty"))("ng-valid",bt.is("valid"))("ng-invalid",bt.is("invalid"))("ng-pending",bt.is("pending"))("ng-submitted",bt.is("submitted"))},features:[t.qOj]}),Qe})();function gt(Qe,We){return[...We.path,Qe]}function et(Qe,We){Pe(Qe,We),We.valueAccessor.writeValue(Qe.value),function le(Qe,We){We.valueAccessor.registerOnChange(He=>{Qe._pendingValue=He,Qe._pendingChange=!0,Qe._pendingDirty=!0,"change"===Qe.updateOn&&ht(Qe,We)})}(Qe,We),function ft(Qe,We){const He=(bt,Si)=>{We.valueAccessor.writeValue(bt),Si&&We.viewToModelUpdate(bt)};Qe.registerOnChange(He),We._registerOnDestroy(()=>{Qe._unregisterOnChange(He)})}(Qe,We),function be(Qe,We){We.valueAccessor.registerOnTouched(()=>{Qe._pendingTouched=!0,"blur"===Qe.updateOn&&Qe._pendingChange&&ht(Qe,We),"submit"!==Qe.updateOn&&Qe.markAsTouched()})}(Qe,We),function jt(Qe,We){if(We.valueAccessor.setDisabledState){const He=bt=>{We.valueAccessor.setDisabledState(bt)};Qe.registerOnDisabledChange(He),We._registerOnDestroy(()=>{Qe._unregisterOnDisabledChange(He)})}}(Qe,We)}function vt(Qe,We,He=!0){const bt=()=>{};We.valueAccessor&&(We.valueAccessor.registerOnChange(bt),We.valueAccessor.registerOnTouched(bt)),Oe(Qe,We),Qe&&(We._invokeOnDestroyCallbacks(),Qe._registerOnCollectionChange(()=>{}))}function $t(Qe,We){Qe.forEach(He=>{He.registerOnValidatorChange&&He.registerOnValidatorChange(We)})}function Pe(Qe,We){const He=se(Qe);null!==We.validator?Qe.setValidators(z(He,We.validator)):"function"==typeof He&&Qe.setValidators([He]);const bt=fe(Qe);null!==We.asyncValidator?Qe.setAsyncValidators(z(bt,We.asyncValidator)):"function"==typeof bt&&Qe.setAsyncValidators([bt]);const Si=()=>Qe.updateValueAndValidity();$t(We._rawValidators,Si),$t(We._rawAsyncValidators,Si)}function Oe(Qe,We){let He=!1;if(null!==Qe){if(null!==We.validator){const Si=se(Qe);if(Array.isArray(Si)&&Si.length>0){const Qi=Si.filter(Yn=>Yn!==We.validator);Qi.length!==Si.length&&(He=!0,Qe.setValidators(Qi))}}if(null!==We.asyncValidator){const Si=fe(Qe);if(Array.isArray(Si)&&Si.length>0){const Qi=Si.filter(Yn=>Yn!==We.asyncValidator);Qi.length!==Si.length&&(He=!0,Qe.setAsyncValidators(Qi))}}}const bt=()=>{};return $t(We._rawValidators,bt),$t(We._rawAsyncValidators,bt),He}function ht(Qe,We){Qe._pendingDirty&&Qe.markAsDirty(),Qe.setValue(Qe._pendingValue,{emitModelToViewChange:!1}),We.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1}function Ht(Qe,We){Pe(Qe,We)}function Ue(Qe,We){if(!Qe.hasOwnProperty("model"))return!1;const He=Qe.model;return!!He.isFirstChange()||!Object.is(We,He.currentValue)}function at(Qe,We){Qe._syncPendingControls(),We.forEach(He=>{const bt=He.control;"submit"===bt.updateOn&&bt._pendingChange&&(He.viewToModelUpdate(bt._pendingValue),bt._pendingChange=!1)})}function yt(Qe,We){if(!We)return null;let He,bt,Si;return Array.isArray(We),We.forEach(Qi=>{Qi.constructor===I?He=Qi:function rt(Qe){return Object.getPrototypeOf(Qe.constructor)===d}(Qi)?bt=Qi:Si=Qi}),Si||bt||He||null}function gi(Qe,We){const He=Qe.indexOf(We);He>-1&&Qe.splice(He,1)}const Xi="VALID",fi="INVALID",ai="PENDING",tn="DISABLED";function Gi(Qe){return(pe(Qe)?Qe.validators:Qe)||null}function Yi(Qe){return Array.isArray(Qe)?v(Qe):Qe||null}function ze(Qe,We){return(pe(We)?We.asyncValidators:Qe)||null}function Lt(Qe){return Array.isArray(Qe)?P(Qe):Qe||null}function pe(Qe){return null!=Qe&&!Array.isArray(Qe)&&"object"==typeof Qe}const je=Qe=>Qe instanceof Ei,Ct=Qe=>Qe instanceof en,ie=Qe=>Qe instanceof ji;function qe(Qe){return je(Qe)?Qe.value:Qe.getRawValue()}function Mt(Qe,We){const He=Ct(Qe),bt=Qe.controls;if(!(He?Object.keys(bt):bt).length)throw new t.vHH(1e3,"");if(!bt[We])throw new t.vHH(1001,"")}function Vt(Qe,We){Ct(Qe),Qe._forEachChild((bt,Si)=>{if(void 0===We[Si])throw new t.vHH(1002,"")})}class Mi{constructor(We,He){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=We,this._rawAsyncValidators=He,this._composedValidatorFn=Yi(this._rawValidators),this._composedAsyncValidatorFn=Lt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(We){this._rawValidators=this._composedValidatorFn=We}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(We){this._rawAsyncValidators=this._composedAsyncValidatorFn=We}get parent(){return this._parent}get valid(){return this.status===Xi}get invalid(){return this.status===fi}get pending(){return this.status==ai}get disabled(){return this.status===tn}get enabled(){return this.status!==tn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(We){this._rawValidators=We,this._composedValidatorFn=Yi(We)}setAsyncValidators(We){this._rawAsyncValidators=We,this._composedAsyncValidatorFn=Lt(We)}addValidators(We){this.setValidators(we(We,this._rawValidators))}addAsyncValidators(We){this.setAsyncValidators(we(We,this._rawAsyncValidators))}removeValidators(We){this.setValidators(Q(We,this._rawValidators))}removeAsyncValidators(We){this.setAsyncValidators(Q(We,this._rawAsyncValidators))}hasValidator(We){return Re(this._rawValidators,We)}hasAsyncValidator(We){return Re(this._rawAsyncValidators,We)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(We={}){this.touched=!0,this._parent&&!We.onlySelf&&this._parent.markAsTouched(We)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(We=>We.markAllAsTouched())}markAsUntouched(We={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(He=>{He.markAsUntouched({onlySelf:!0})}),this._parent&&!We.onlySelf&&this._parent._updateTouched(We)}markAsDirty(We={}){this.pristine=!1,this._parent&&!We.onlySelf&&this._parent.markAsDirty(We)}markAsPristine(We={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(He=>{He.markAsPristine({onlySelf:!0})}),this._parent&&!We.onlySelf&&this._parent._updatePristine(We)}markAsPending(We={}){this.status=ai,!1!==We.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!We.onlySelf&&this._parent.markAsPending(We)}disable(We={}){const He=this._parentMarkedDirty(We.onlySelf);this.status=tn,this.errors=null,this._forEachChild(bt=>{bt.disable(Object.assign(Object.assign({},We),{onlySelf:!0}))}),this._updateValue(),!1!==We.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},We),{skipPristineCheck:He})),this._onDisabledChange.forEach(bt=>bt(!0))}enable(We={}){const He=this._parentMarkedDirty(We.onlySelf);this.status=Xi,this._forEachChild(bt=>{bt.enable(Object.assign(Object.assign({},We),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:We.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},We),{skipPristineCheck:He})),this._onDisabledChange.forEach(bt=>bt(!1))}_updateAncestors(We){this._parent&&!We.onlySelf&&(this._parent.updateValueAndValidity(We),We.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(We){this._parent=We}updateValueAndValidity(We={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xi||this.status===ai)&&this._runAsyncValidator(We.emitEvent)),!1!==We.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!We.onlySelf&&this._parent.updateValueAndValidity(We)}_updateTreeValidity(We={emitEvent:!0}){this._forEachChild(He=>He._updateTreeValidity(We)),this.updateValueAndValidity({onlySelf:!0,emitEvent:We.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?tn:Xi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(We){if(this.asyncValidator){this.status=ai,this._hasOwnPendingAsyncValidator=!0;const He=c(this.asyncValidator(this));this._asyncValidationSubscription=He.subscribe(bt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(bt,{emitEvent:We})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(We,He={}){this.errors=We,this._updateControlsErrors(!1!==He.emitEvent)}get(We){return function Wi(Qe,We,He){if(null==We||(Array.isArray(We)||(We=We.split(He)),Array.isArray(We)&&0===We.length))return null;let bt=Qe;return We.forEach(Si=>{bt=Ct(bt)?bt.controls.hasOwnProperty(Si)?bt.controls[Si]:null:ie(bt)&&bt.at(Si)||null}),bt}(this,We,".")}getError(We,He){const bt=He?this.get(He):this;return bt&&bt.errors?bt.errors[We]:null}hasError(We,He){return!!this.getError(We,He)}get root(){let We=this;for(;We._parent;)We=We._parent;return We}_updateControlsErrors(We){this.status=this._calculateStatus(),We&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(We)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?tn:this.errors?fi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ai)?ai:this._anyControlsHaveStatus(fi)?fi:Xi}_anyControlsHaveStatus(We){return this._anyControls(He=>He.status===We)}_anyControlsDirty(){return this._anyControls(We=>We.dirty)}_anyControlsTouched(){return this._anyControls(We=>We.touched)}_updatePristine(We={}){this.pristine=!this._anyControlsDirty(),this._parent&&!We.onlySelf&&this._parent._updatePristine(We)}_updateTouched(We={}){this.touched=this._anyControlsTouched(),this._parent&&!We.onlySelf&&this._parent._updateTouched(We)}_isBoxedValue(We){return"object"==typeof We&&null!==We&&2===Object.keys(We).length&&"value"in We&&"disabled"in We}_registerOnCollectionChange(We){this._onCollectionChange=We}_setUpdateStrategy(We){pe(We)&&null!=We.updateOn&&(this._updateOn=We.updateOn)}_parentMarkedDirty(We){return!We&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ei extends Mi{constructor(We=null,He,bt){super(Gi(He),ze(bt,He)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(We),this._setUpdateStrategy(He),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pe(He)&&He.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(We)?We.value:We)}setValue(We,He={}){this.value=this._pendingValue=We,this._onChange.length&&!1!==He.emitModelToViewChange&&this._onChange.forEach(bt=>bt(this.value,!1!==He.emitViewToModelChange)),this.updateValueAndValidity(He)}patchValue(We,He={}){this.setValue(We,He)}reset(We=this.defaultValue,He={}){this._applyFormState(We),this.markAsPristine(He),this.markAsUntouched(He),this.setValue(this.value,He),this._pendingChange=!1}_updateValue(){}_anyControls(We){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(We){this._onChange.push(We)}_unregisterOnChange(We){gi(this._onChange,We)}registerOnDisabledChange(We){this._onDisabledChange.push(We)}_unregisterOnDisabledChange(We){gi(this._onDisabledChange,We)}_forEachChild(We){}_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(We){this._isBoxedValue(We)?(this.value=this._pendingValue=We.value,We.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=We}}class en extends Mi{constructor(We,He,bt){super(Gi(He),ze(bt,He)),this.controls=We,this._initObservables(),this._setUpdateStrategy(He),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(We,He){return this.controls[We]?this.controls[We]:(this.controls[We]=He,He.setParent(this),He._registerOnCollectionChange(this._onCollectionChange),He)}addControl(We,He,bt={}){this.registerControl(We,He),this.updateValueAndValidity({emitEvent:bt.emitEvent}),this._onCollectionChange()}removeControl(We,He={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),delete this.controls[We],this.updateValueAndValidity({emitEvent:He.emitEvent}),this._onCollectionChange()}setControl(We,He,bt={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),delete this.controls[We],He&&this.registerControl(We,He),this.updateValueAndValidity({emitEvent:bt.emitEvent}),this._onCollectionChange()}contains(We){return this.controls.hasOwnProperty(We)&&this.controls[We].enabled}setValue(We,He={}){Vt(this,We),Object.keys(We).forEach(bt=>{Mt(this,bt),this.controls[bt].setValue(We[bt],{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He)}patchValue(We,He={}){null!=We&&(Object.keys(We).forEach(bt=>{this.controls[bt]&&this.controls[bt].patchValue(We[bt],{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He))}reset(We={},He={}){this._forEachChild((bt,Si)=>{bt.reset(We[Si],{onlySelf:!0,emitEvent:He.emitEvent})}),this._updatePristine(He),this._updateTouched(He),this.updateValueAndValidity(He)}getRawValue(){return this._reduceChildren({},(We,He,bt)=>(We[bt]=qe(He),We))}_syncPendingControls(){let We=this._reduceChildren(!1,(He,bt)=>!!bt._syncPendingControls()||He);return We&&this.updateValueAndValidity({onlySelf:!0}),We}_forEachChild(We){Object.keys(this.controls).forEach(He=>{const bt=this.controls[He];bt&&We(bt,He)})}_setUpControls(){this._forEachChild(We=>{We.setParent(this),We._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(We){for(const He of Object.keys(this.controls)){const bt=this.controls[He];if(this.contains(He)&&We(bt))return!0}return!1}_reduceValue(){return this._reduceChildren({},(We,He,bt)=>((He.enabled||this.disabled)&&(We[bt]=He.value),We))}_reduceChildren(We,He){let bt=We;return this._forEachChild((Si,Qi)=>{bt=He(bt,Si,Qi)}),bt}_allControlsDisabled(){for(const We of Object.keys(this.controls))if(this.controls[We].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class ji extends Mi{constructor(We,He,bt){super(Gi(He),ze(bt,He)),this.controls=We,this._initObservables(),this._setUpdateStrategy(He),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(We){return this.controls[We]}push(We,He={}){this.controls.push(We),this._registerControl(We),this.updateValueAndValidity({emitEvent:He.emitEvent}),this._onCollectionChange()}insert(We,He,bt={}){this.controls.splice(We,0,He),this._registerControl(He),this.updateValueAndValidity({emitEvent:bt.emitEvent})}removeAt(We,He={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),this.controls.splice(We,1),this.updateValueAndValidity({emitEvent:He.emitEvent})}setControl(We,He,bt={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),this.controls.splice(We,1),He&&(this.controls.splice(We,0,He),this._registerControl(He)),this.updateValueAndValidity({emitEvent:bt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(We,He={}){Vt(this,We),We.forEach((bt,Si)=>{Mt(this,Si),this.at(Si).setValue(bt,{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He)}patchValue(We,He={}){null!=We&&(We.forEach((bt,Si)=>{this.at(Si)&&this.at(Si).patchValue(bt,{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He))}reset(We=[],He={}){this._forEachChild((bt,Si)=>{bt.reset(We[Si],{onlySelf:!0,emitEvent:He.emitEvent})}),this._updatePristine(He),this._updateTouched(He),this.updateValueAndValidity(He)}getRawValue(){return this.controls.map(We=>qe(We))}clear(We={}){this.controls.length<1||(this._forEachChild(He=>He._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:We.emitEvent}))}_syncPendingControls(){let We=this.controls.reduce((He,bt)=>!!bt._syncPendingControls()||He,!1);return We&&this.updateValueAndValidity({onlySelf:!0}),We}_forEachChild(We){this.controls.forEach((He,bt)=>{We(He,bt)})}_updateValue(){this.value=this.controls.filter(We=>We.enabled||this.disabled).map(We=>We.value)}_anyControls(We){return this.controls.some(He=>He.enabled&&We(He))}_setUpControls(){this._forEachChild(We=>this._registerControl(We))}_allControlsDisabled(){for(const We of this.controls)if(We.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(We){We.setParent(this),We._registerOnCollectionChange(this._onCollectionChange)}}const Kt={provide:F,useExisting:(0,t.Gpc)(()=>zt)},Oi=(()=>Promise.resolve(null))();let zt=(()=>{class Qe extends F{constructor(He,bt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new en({},v(He),P(bt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(He){Oi.then(()=>{const bt=this._findContainer(He.path);He.control=bt.registerControl(He.name,He.control),et(He.control,He),He.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(He)})}getControl(He){return this.form.get(He.path)}removeControl(He){Oi.then(()=>{const bt=this._findContainer(He.path);bt&&bt.removeControl(He.name),this._directives.delete(He)})}addFormGroup(He){Oi.then(()=>{const bt=this._findContainer(He.path),Si=new en({});Ht(Si,He),bt.registerControl(He.name,Si),Si.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(He){Oi.then(()=>{const bt=this._findContainer(He.path);bt&&bt.removeControl(He.name)})}getFormGroup(He){return this.form.get(He.path)}updateModel(He,bt){Oi.then(()=>{this.form.get(He.path).setValue(bt)})}setValue(He){this.control.setValue(He)}onSubmit(He){return this.submitted=!0,at(this.form,this._directives),this.ngSubmit.emit(He),!1}onReset(){this.resetForm()}resetForm(He){this.form.reset(He),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(He){return He.pop(),He.length?this.form.get(He):this.form}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(Z,10),t.Y36(j,10))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(He,bt){1&He&&t.NdJ("submit",function(Qi){return bt.onSubmit(Qi)})("reset",function(){return bt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Kt]),t.qOj]}),Qe})();const pn={provide:ve,useExisting:(0,t.Gpc)(()=>Dn)},Fn=(()=>Promise.resolve(null))();let Dn=(()=>{class Qe extends ve{constructor(He,bt,Si,Qi,Yn){super(),this._changeDetectorRef=Yn,this.control=new Ei,this._registered=!1,this.update=new t.vpe,this._parent=He,this._setValidators(bt),this._setAsyncValidators(Si),this.valueAccessor=yt(0,Qi)}ngOnChanges(He){if(this._checkForErrors(),!this._registered||"name"in He){if(this._registered&&(this._checkName(),this.formDirective)){const bt=He.name.previousValue;this.formDirective.removeControl({name:bt,path:this._getPath(bt)})}this._setUpControl()}"isDisabled"in He&&this._updateDisabled(He),Ue(He,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(He){this.viewModel=He,this.update.emit(He)}_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(){et(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(He){Fn.then(()=>{var bt;this.control.setValue(He,{emitViewToModelChange:!1}),null===(bt=this._changeDetectorRef)||void 0===bt||bt.markForCheck()})}_updateDisabled(He){const bt=He.isDisabled.currentValue,Si=""===bt||bt&&"false"!==bt;Fn.then(()=>{var Qi;Si&&!this.control.disabled?this.control.disable():!Si&&this.control.disabled&&this.control.enable(),null===(Qi=this._changeDetectorRef)||void 0===Qi||Qi.markForCheck()})}_getPath(He){return this._parent?gt(He,this._parent):[He]}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(F,9),t.Y36(Z,10),t.Y36(j,10),t.Y36(N,10),t.Y36(t.sBO,8))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([pn]),t.qOj,t.TTD]}),Qe})(),Ai=(()=>{class Qe{}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Qe})();const Ri={provide:N,useExisting:(0,t.Gpc)(()=>cn),multi:!0};let cn=(()=>{class Qe extends d{writeValue(He){this.setProperty("value",null==He?"":He)}registerOnChange(He){this.onChange=bt=>{He(""==bt?null:parseFloat(bt))}}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(He,bt){1&He&&t.NdJ("input",function(Qi){return bt.onChange(Qi.target.value)})("blur",function(){return bt.onTouched()})},features:[t._Bn([Ri]),t.qOj]}),Qe})(),Jn=(()=>{class Qe{}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275mod=t.oAB({type:Qe}),Qe.\u0275inj=t.cJS({}),Qe})();const ga=new t.OlP("NgModelWithFormControlWarning"),Ca={provide:ve,useExisting:(0,t.Gpc)(()=>Na)};let Na=(()=>{class Qe extends ve{constructor(He,bt,Si,Qi){super(),this._ngModelWarningConfig=Qi,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(He),this._setAsyncValidators(bt),this.valueAccessor=yt(0,Si)}set isDisabled(He){}ngOnChanges(He){if(this._isControlChanged(He)){const bt=He.form.previousValue;bt&&vt(bt,this,!1),et(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ue(He,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&vt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(He){this.viewModel=He,this.update.emit(He)}_isControlChanged(He){return He.hasOwnProperty("form")}}return Qe._ngModelWarningSentOnce=!1,Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(Z,10),t.Y36(j,10),t.Y36(N,10),t.Y36(ga,8))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Ca]),t.qOj,t.TTD]}),Qe})();const Ra={provide:F,useExisting:(0,t.Gpc)(()=>nr)};let nr=(()=>{class Qe extends F{constructor(He,bt){super(),this.validators=He,this.asyncValidators=bt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(He),this._setAsyncValidators(bt)}ngOnChanges(He){this._checkFormPresent(),He.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Oe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(He){const bt=this.form.get(He.path);return et(bt,He),bt.updateValueAndValidity({emitEvent:!1}),this.directives.push(He),bt}getControl(He){return this.form.get(He.path)}removeControl(He){vt(He.control||null,He,!1),gi(this.directives,He)}addFormGroup(He){this._setUpFormContainer(He)}removeFormGroup(He){this._cleanUpFormContainer(He)}getFormGroup(He){return this.form.get(He.path)}addFormArray(He){this._setUpFormContainer(He)}removeFormArray(He){this._cleanUpFormContainer(He)}getFormArray(He){return this.form.get(He.path)}updateModel(He,bt){this.form.get(He.path).setValue(bt)}onSubmit(He){return this.submitted=!0,at(this.form,this.directives),this.ngSubmit.emit(He),!1}onReset(){this.resetForm()}resetForm(He){this.form.reset(He),this.submitted=!1}_updateDomValue(){this.directives.forEach(He=>{const bt=He.control,Si=this.form.get(He.path);bt!==Si&&(vt(bt||null,He),je(Si)&&(et(Si,He),He.control=Si))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(He){const bt=this.form.get(He.path);Ht(bt,He),bt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(He){if(this.form){const bt=this.form.get(He.path);bt&&function it(Qe,We){return Oe(Qe,We)}(bt,He)&&bt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pe(this.form,this),this._oldForm&&Oe(this._oldForm,this)}_checkFormPresent(){}}return Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(Z,10),t.Y36(j,10))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formGroup",""]],hostBindings:function(He,bt){1&He&&t.NdJ("submit",function(Qi){return bt.onSubmit(Qi)})("reset",function(){return bt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Ra]),t.qOj,t.TTD]}),Qe})();const lr={provide:ve,useExisting:(0,t.Gpc)(()=>fn)};let fn=(()=>{class Qe extends ve{constructor(He,bt,Si,Qi,Yn){super(),this._ngModelWarningConfig=Yn,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=He,this._setValidators(bt),this._setAsyncValidators(Si),this.valueAccessor=yt(0,Qi)}set isDisabled(He){}ngOnChanges(He){this._added||this._setUpControl(),Ue(He,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(He){this.viewModel=He,this.update.emit(He)}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 Qe._ngModelWarningSentOnce=!1,Qe.\u0275fac=function(He){return new(He||Qe)(t.Y36(F,13),t.Y36(Z,10),t.Y36(j,10),t.Y36(N,10),t.Y36(ga,8))},Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([lr]),t.qOj,t.TTD]}),Qe})();function va(Qe){return"number"==typeof Qe?Qe:parseFloat(Qe)}let $n=(()=>{class Qe{constructor(){this._validator=r}ngOnChanges(He){if(this.inputName in He){const bt=this.normalizeInput(He[this.inputName].currentValue);this._enabled=this.enabled(bt),this._validator=this._enabled?this.createValidator(bt):r,this._onChange&&this._onChange()}}validate(He){return this._validator(He)}registerOnValidatorChange(He){this._onChange=He}enabled(He){return null!=He}}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275dir=t.lG2({type:Qe,features:[t.TTD]}),Qe})();const Ta={provide:Z,useExisting:(0,t.Gpc)(()=>Ia),multi:!0};let Ia=(()=>{class Qe extends $n{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=He=>va(He),this.createValidator=He=>ee(He)}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(He,bt){2&He&&t.uIk("max",bt._enabled?bt.max:null)},inputs:{max:"max"},features:[t._Bn([Ta]),t.qOj]}),Qe})();const Kn={provide:Z,useExisting:(0,t.Gpc)(()=>ra),multi:!0};let ra=(()=>{class Qe extends $n{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=He=>va(He),this.createValidator=He=>de(He)}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(He,bt){2&He&&t.uIk("min",bt._enabled?bt.min:null)},inputs:{min:"min"},features:[t._Bn([Kn]),t.qOj]}),Qe})();const Hr={provide:Z,useExisting:(0,t.Gpc)(()=>Fr),multi:!0},Sr={provide:Z,useExisting:(0,t.Gpc)(()=>ya),multi:!0};let Fr=(()=>{class Qe extends $n{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=He=>function _a(Qe){return null!=Qe&&!1!==Qe&&"false"!=`${Qe}`}(He),this.createValidator=He=>te}enabled(He){return He}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(He,bt){2&He&&t.uIk("required",bt._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Hr]),t.qOj]}),Qe})(),ya=(()=>{class Qe extends Fr{constructor(){super(...arguments),this.createValidator=He=>ce}}return Qe.\u0275fac=function(){let We;return function(bt){return(We||(We=t.n5z(Qe)))(bt||Qe)}}(),Qe.\u0275dir=t.lG2({type:Qe,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(He,bt){2&He&&t.uIk("required",bt._enabled?"":null)},features:[t._Bn([Sr]),t.qOj]}),Qe})(),hi=(()=>{class Qe{}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275mod=t.oAB({type:Qe}),Qe.\u0275inj=t.cJS({imports:[[Jn]]}),Qe})(),mt=(()=>{class Qe{}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275mod=t.oAB({type:Qe}),Qe.\u0275inj=t.cJS({imports:[hi]}),Qe})(),Zt=(()=>{class Qe{static withConfig(He){return{ngModule:Qe,providers:[{provide:ga,useValue:He.warnOnNgModelWithFormControl}]}}}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275mod=t.oAB({type:Qe}),Qe.\u0275inj=t.cJS({imports:[hi]}),Qe})(),Zi=(()=>{class Qe{group(He,bt=null){const Si=this._reduceControls(He);let Or,Qi=null,Yn=null;return null!=bt&&(function Hi(Qe){return void 0!==Qe.asyncValidators||void 0!==Qe.validators||void 0!==Qe.updateOn}(bt)?(Qi=null!=bt.validators?bt.validators:null,Yn=null!=bt.asyncValidators?bt.asyncValidators:null,Or=null!=bt.updateOn?bt.updateOn:void 0):(Qi=null!=bt.validator?bt.validator:null,Yn=null!=bt.asyncValidator?bt.asyncValidator:null)),new en(Si,{asyncValidators:Yn,updateOn:Or,validators:Qi})}control(He,bt,Si){return new Ei(He,bt,Si)}array(He,bt,Si){const Qi=He.map(Yn=>this._createControl(Yn));return new ji(Qi,bt,Si)}_reduceControls(He){const bt={};return Object.keys(He).forEach(Si=>{bt[Si]=this._createControl(He[Si])}),bt}_createControl(He){return je(He)||Ct(He)||ie(He)?He:Array.isArray(He)?this.control(He[0],He.length>1?He[1]:null,He.length>2?He[2]:null):this.control(He)}}return Qe.\u0275fac=function(He){return new(He||Qe)},Qe.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:Zt}),Qe})()},1079:(Fe,Y,p)=>{"use strict";p.d(Y,{Bb:()=>Q,XC:()=>n,ZL:()=>xe});var t=p(5664),e=p(3191),f=p(5e3),M=p(508),a=p(727),b=p(7579),d=p(9770),N=p(6451),h=p(9646),A=p(4968),D=p(925),w=p(9808),S=p(9776),I=p(5303),L=p(1159),U=p(7429),Z=p(3075),j=p(7322),ne=p(8675),X=p(3900),de=p(5698),ee=p(9300),te=p(4004),ce=p(8505),J=p(4086),ge=p(226);const y=["panel"];function i(Ge,ve){if(1&Ge&&(f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA()),2&Ge){const F=ve.id,Ae=f.oxw();f.Q6J("id",Ae.id)("ngClass",Ae._classList),f.uIk("aria-label",Ae.ariaLabel||null)("aria-labelledby",Ae._getPanelAriaLabelledby(F))}}const r=["*"];let u=0;class c{constructor(ve,F){this.source=ve,this.option=F}}const C=(0,M.Kr)(class{}),E=new f.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function O(){return{autoActiveFirstOption:!1}}});let _=(()=>{class Ge extends C{constructor(F,Ae,lt,Ie){super(),this._changeDetectorRef=F,this._elementRef=Ae,this._activeOptionChanges=a.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new f.vpe,this.opened=new f.vpe,this.closed=new f.vpe,this.optionActivated=new f.vpe,this._classList={},this.id="mat-autocomplete-"+u++,this.inertGroups=(null==Ie?void 0:Ie.SAFARI)||!1,this._autoActiveFirstOption=!!lt.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(F){this._autoActiveFirstOption=(0,e.Ig)(F)}set classList(F){this._classList=F&&F.length?(0,e.du)(F).reduce((Ae,lt)=>(Ae[lt]=!0,Ae),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new t.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(F=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[F]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(F){this.panel&&(this.panel.nativeElement.scrollTop=F)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(F){const Ae=new c(this,F);this.optionSelected.emit(Ae)}_getPanelAriaLabelledby(F){return this.ariaLabel?null:this.ariaLabelledby?(F?F+" ":"")+this.ariaLabelledby:F}_setVisibilityClasses(F){F[this._visibleClass]=this.showPanel,F[this._hiddenClass]=!this.showPanel}}return Ge.\u0275fac=function(F){return new(F||Ge)(f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(E),f.Y36(D.t4))},Ge.\u0275dir=f.lG2({type:Ge,viewQuery:function(F,Ae){if(1&F&&(f.Gf(f.Rgc,7),f.Gf(y,5)),2&F){let lt;f.iGM(lt=f.CRH())&&(Ae.template=lt.first),f.iGM(lt=f.CRH())&&(Ae.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:[f.qOj]}),Ge})(),n=(()=>{class Ge extends _{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ge.\u0275fac=function(){let ve;return function(Ae){return(ve||(ve=f.n5z(Ge)))(Ae||Ge)}}(),Ge.\u0275cmp=f.Xpm({type:Ge,selectors:[["mat-autocomplete"]],contentQueries:function(F,Ae,lt){if(1&F&&(f.Suo(lt,M.K7,5),f.Suo(lt,M.ey,5)),2&F){let Ie;f.iGM(Ie=f.CRH())&&(Ae.optionGroups=Ie),f.iGM(Ie=f.CRH())&&(Ae.options=Ie)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[f._Bn([{provide:M.HF,useExisting:Ge}]),f.qOj],ngContentSelectors:r,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(F,Ae){1&F&&(f.F$t(),f.YNc(0,i,3,4,"ng-template"))},directives:[w.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}),Ge})();const v=new f.OlP("mat-autocomplete-scroll-strategy"),P={provide:v,deps:[S.aV],useFactory:function B(Ge){return()=>Ge.scrollStrategies.reposition()}},z={provide:Z.JU,useExisting:(0,f.Gpc)(()=>xe),multi:!0};let fe=(()=>{class Ge{constructor(F,Ae,lt,Ie,De,oe,Te,ye,W,$,ue){this._element=F,this._overlay=Ae,this._viewContainerRef=lt,this._zone=Ie,this._changeDetectorRef=De,this._dir=Te,this._formField=ye,this._document=W,this._viewportRuler=$,this._defaults=ue,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new b.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 Ce=this.autocomplete?this.autocomplete.options:null;return Ce?Ce.changes.pipe((0,ne.O)(Ce),(0,X.w)(()=>(0,N.T)(...Ce.map(Le=>Le.onSelectionChange)))):this._zone.onStable.pipe((0,de.q)(1),(0,X.w)(()=>this.optionSelections))}),this._scrollStrategy=oe}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(F){this._autocompleteDisabled=(0,e.Ig)(F)}ngAfterViewInit(){const F=this._getWindow();void 0!==F&&this._zone.runOutsideAngular(()=>F.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(F){F.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const F=this._getWindow();void 0!==F&&F.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,N.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ee.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ee.h)(()=>this._overlayAttached)):(0,h.of)()).pipe((0,te.U)(F=>F instanceof M.rN?F:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,N.T)((0,A.R)(this._document,"click"),(0,A.R)(this._document,"auxclick"),(0,A.R)(this._document,"touchend")).pipe((0,ee.h)(F=>{const Ae=(0,D.sA)(F),lt=this._formField?this._formField._elementRef.nativeElement:null,Ie=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ae!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!lt||!lt.contains(Ae))&&(!Ie||!Ie.contains(Ae))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ae)}))}writeValue(F){Promise.resolve().then(()=>this._setTriggerValue(F))}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this._element.nativeElement.disabled=F}_handleKeydown(F){const Ae=F.keyCode,lt=(0,L.Vb)(F);if(Ae===L.hY&&!lt&&F.preventDefault(),this.activeOption&&Ae===L.K5&&this.panelOpen&&!lt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),F.preventDefault();else if(this.autocomplete){const Ie=this.autocomplete._keyManager.activeItem,De=Ae===L.LH||Ae===L.JH;Ae===L.Mf||De&&!lt&&this.panelOpen?this.autocomplete._keyManager.onKeydown(F):De&&this._canOpen()&&this.openPanel(),(De||this.autocomplete._keyManager.activeItem!==Ie)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(F){let Ae=F.target,lt=Ae.value;"number"===Ae.type&&(lt=""==lt?null:parseFloat(lt)),this._previousValue!==lt&&(this._previousValue=lt,this._onChange(lt),this._canOpen()&&this._document.activeElement===F.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(F=!1){this._formField&&"auto"===this._formField.floatLabel&&(F?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const F=this._zone.onStable.pipe((0,de.q)(1)),Ae=this.autocomplete.options.changes.pipe((0,ce.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,J.g)(0));return(0,N.T)(F,Ae).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(F){const Ae=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(F):F,lt=null!=Ae?Ae:"";this._formField?this._formField._control.value=lt:this._element.nativeElement.value=lt,this._previousValue=lt}_setValueAndClose(F){const Ae=F&&F.source;Ae&&(this._clearPreviousSelectedOption(Ae),this._setTriggerValue(Ae.value),this._onChange(Ae.value),this.autocomplete._emitSelectEvent(Ae),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(F){this.autocomplete.options.forEach(Ae=>{Ae!==F&&Ae.selected&&Ae.deselect()})}_attachOverlay(){var F;let Ae=this._overlayRef;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new U.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(F=this._formField)||void 0===F?void 0:F.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,Ae.keydownEvents().subscribe(Ie=>{(Ie.keyCode===L.hY&&!(0,L.Vb)(Ie)||Ie.keyCode===L.LH&&(0,L.Vb)(Ie,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Ie.stopPropagation(),Ie.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ae&&Ae.updateSize({width:this._getPanelWidth()})})),Ae&&!Ae.hasAttached()&&(Ae.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 F;return new S.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(F=this._defaults)||void 0===F?void 0:F.overlayPanelClass})}_getOverlayPosition(){const F=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(F),this._positionStrategy=F,F}_setStrategyPositions(F){const Ae=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],lt=this._aboveClass,Ie=[{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?Ie:"below"===this.position?Ae:[...Ae,...Ie],F.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 F=this.autocomplete;F.autoActiveFirstOption?F._keyManager.setFirstItemActive():F._keyManager.setActiveItem(-1)}_canOpen(){const F=this._element.nativeElement;return!F.readOnly&&!F.disabled&&!this._autocompleteDisabled}_getWindow(){var F;return(null===(F=this._document)||void 0===F?void 0:F.defaultView)||window}_scrollToOption(F){const Ae=this.autocomplete,lt=(0,M.CB)(F,Ae.options,Ae.optionGroups);if(0===F&&1===lt)Ae._setScrollTop(0);else if(Ae.panel){const Ie=Ae.options.toArray()[F];if(Ie){const De=Ie._getHostElement(),oe=(0,M.jH)(De.offsetTop,De.offsetHeight,Ae._getScrollTop(),Ae.panel.nativeElement.offsetHeight);Ae._setScrollTop(oe)}}}}return Ge.\u0275fac=function(F){return new(F||Ge)(f.Y36(f.SBq),f.Y36(S.aV),f.Y36(f.s_b),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(v),f.Y36(ge.Is,8),f.Y36(j.G_,9),f.Y36(w.K0,8),f.Y36(I.rL),f.Y36(E,8))},Ge.\u0275dir=f.lG2({type:Ge,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[f.TTD]}),Ge})(),xe=(()=>{class Ge extends fe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ge.\u0275fac=function(){let ve;return function(Ae){return(ve||(ve=f.n5z(Ge)))(Ae||Ge)}}(),Ge.\u0275dir=f.lG2({type:Ge,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(F,Ae){1&F&&f.NdJ("focusin",function(){return Ae._handleFocus()})("blur",function(){return Ae._onTouched()})("input",function(Ie){return Ae._handleInput(Ie)})("keydown",function(Ie){return Ae._handleKeydown(Ie)})("click",function(){return Ae._handleClick()}),2&F&&f.uIk("autocomplete",Ae.autocompleteAttribute)("role",Ae.autocompleteDisabled?null:"combobox")("aria-autocomplete",Ae.autocompleteDisabled?null:"list")("aria-activedescendant",Ae.panelOpen&&Ae.activeOption?Ae.activeOption.id:null)("aria-expanded",Ae.autocompleteDisabled?null:Ae.panelOpen.toString())("aria-owns",Ae.autocompleteDisabled||!Ae.panelOpen||null==Ae.autocomplete?null:Ae.autocomplete.id)("aria-haspopup",Ae.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[f._Bn([z]),f.qOj]}),Ge})(),Q=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275mod=f.oAB({type:Ge}),Ge.\u0275inj=f.cJS({providers:[P],imports:[[S.U8,M.Ng,M.BQ,w.ez],I.ZD,M.Ng,M.BQ]}),Ge})()},7544:(Fe,Y,p)=>{"use strict";p.d(Y,{g:()=>A,k:()=>h});var t=p(5e3),e=p(508),f=p(5664),M=p(3191),a=p(6360);let b=0;const d=(0,e.Id)(class{}),N="mat-badge-content";let h=(()=>{class D extends d{constructor(S,I,L,U,Z){super(),this._ngZone=S,this._elementRef=I,this._ariaDescriber=L,this._renderer=U,this._animationMode=Z,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=b++,this._isInitialized=!1}get color(){return this._color}set color(S){this._setColor(S),this._color=S}get overlap(){return this._overlap}set overlap(S){this._overlap=(0,M.Ig)(S)}get content(){return this._content}set content(S){this._updateRenderedContent(S)}get description(){return this._description}set description(S){this._updateHostAriaDescription(S)}get hidden(){return this._hidden}set hidden(S){this._hidden=(0,M.Ig)(S)}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 S=this._renderer.createElement("span"),I="mat-badge-active";return S.setAttribute("id",`mat-badge-content-${this._id}`),S.setAttribute("aria-hidden","true"),S.classList.add(N),"NoopAnimations"===this._animationMode&&S.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(S),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{S.classList.add(I)})}):S.classList.add(I),S}_updateRenderedContent(S){const I=`${null!=S?S:""}`.trim();this._isInitialized&&I&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=I),this._content=I}_updateHostAriaDescription(S){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),S&&this._ariaDescriber.describe(this._elementRef.nativeElement,S),this._description=S}_setColor(S){const I=this._elementRef.nativeElement.classList;I.remove(`mat-badge-${this._color}`),S&&I.add(`mat-badge-${S}`)}_clearExistingBadges(){const S=this._elementRef.nativeElement.querySelectorAll(`:scope > .${N}`);for(const I of Array.from(S))I!==this._badgeElement&&I.remove()}}return D.\u0275fac=function(S){return new(S||D)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(f.$s),t.Y36(t.Qsj),t.Y36(a.Qb,8))},D.\u0275dir=t.lG2({type:D,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(S,I){2&S&&t.ekj("mat-badge-overlap",I.overlap)("mat-badge-above",I.isAbove())("mat-badge-below",!I.isAbove())("mat-badge-before",!I.isAfter())("mat-badge-after",I.isAfter())("mat-badge-small","small"===I.size)("mat-badge-medium","medium"===I.size)("mat-badge-large","large"===I.size)("mat-badge-hidden",I.hidden||!I.content)("mat-badge-disabled",I.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:[t.qOj]}),D})(),A=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[f.rt,e.BQ],e.BQ]}),D})()},7423:(Fe,Y,p)=>{"use strict";p.d(Y,{lW:()=>D,ot:()=>S});var t=p(5e3),e=p(508),f=p(6360),M=p(5664);const a=["mat-button",""],b=["*"],h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],A=(0,e.pj)((0,e.Id)((0,e.Kr)(class{constructor(I){this._elementRef=I}})));let D=(()=>{class I extends A{constructor(U,Z,j){super(U),this._focusMonitor=Z,this._animationMode=j,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ne of h)this._hasHostAttributes(ne)&&this._getHostElement().classList.add(ne);U.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(U,Z){U?this._focusMonitor.focusVia(this._getHostElement(),U,Z):this._getHostElement().focus(Z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...U){return U.some(Z=>this._getHostElement().hasAttribute(Z))}}return I.\u0275fac=function(U){return new(U||I)(t.Y36(t.SBq),t.Y36(M.tE),t.Y36(f.Qb,8))},I.\u0275cmp=t.Xpm({type:I,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(U,Z){if(1&U&&t.Gf(e.wG,5),2&U){let j;t.iGM(j=t.CRH())&&(Z.ripple=j.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(U,Z){2&U&&(t.uIk("disabled",Z.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:a,ngContentSelectors:b,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(U,Z){1&U&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&U&&(t.xp6(2),t.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),t.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[e.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}),I})(),S=(()=>{class I{}return I.\u0275fac=function(U){return new(U||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),I})()},9224:(Fe,Y,p)=>{"use strict";p.d(Y,{$j:()=>w,QW:()=>ce,a8:()=>de,dk:()=>ee,dn:()=>A,n5:()=>D});var t=p(5e3),e=p(6360),f=p(508);const M=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],b=[[["","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 A=(()=>{class J{}return J.\u0275fac=function(y){return new(y||J)},J.\u0275dir=t.lG2({type:J,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),J})(),D=(()=>{class J{}return J.\u0275fac=function(y){return new(y||J)},J.\u0275dir=t.lG2({type:J,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),J})(),w=(()=>{class J{}return J.\u0275fac=function(y){return new(y||J)},J.\u0275dir=t.lG2({type:J,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),J})(),de=(()=>{class J{constructor(y){this._animationMode=y}}return J.\u0275fac=function(y){return new(y||J)(t.Y36(e.Qb,8))},J.\u0275cmp=t.Xpm({type:J,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(y,i){2&y&&t.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(y,i){1&y&&(t.F$t(M),t.Hsn(0),t.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})(),ee=(()=>{class J{}return J.\u0275fac=function(y){return new(y||J)},J.\u0275cmp=t.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(y,i){1&y&&(t.F$t(b),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),J})(),ce=(()=>{class J{}return J.\u0275fac=function(y){return new(y||J)},J.\u0275mod=t.oAB({type:J}),J.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),J})()},7446:(Fe,Y,p)=>{"use strict";p.d(Y,{oG:()=>j,p9:()=>ee});var t=p(3191),e=p(5e3),f=p(3075),M=p(508),a=p(6360),b=p(5664),d=p(7144);const N=["input"],h=function(te){return{enterDuration:te}},A=["*"],D=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:w});function w(){return{color:"accent",clickAction:"check-indeterminate"}}let S=0;const I=w(),L={provide:f.JU,useExisting:(0,e.Gpc)(()=>j),multi:!0};class U{}const Z=(0,M.sb)((0,M.pj)((0,M.Kr)((0,M.Id)(class{constructor(te){this._elementRef=te}}))));let j=(()=>{class te extends Z{constructor(J,ge,y,i,r,u,c){super(J),this._changeDetectorRef=ge,this._focusMonitor=y,this._ngZone=i,this._animationMode=u,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++S,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||I,this.color=this.defaultColor=this._options.color||I.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,t.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 ge=(0,t.Ig)(J);ge!=this.checked&&(this._checked=ge,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(J){const ge=(0,t.Ig)(J);ge!==this.disabled&&(this._disabled=ge,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(J){const ge=J!=this._indeterminate;this._indeterminate=(0,t.Ig)(J),ge&&(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 ge=this._currentCheckState,y=this._elementRef.nativeElement;if(ge!==J&&(this._currentAnimationClass.length>0&&y.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ge,J),this._currentCheckState=J,this._currentAnimationClass.length>0)){y.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{y.classList.remove(i)},1e3)})}}_emitChangeEvent(){const J=new U;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 ge;const y=null===(ge=this._options)||void 0===ge?void 0:ge.clickAction;J.stopPropagation(),this.disabled||"noop"===y?!this.disabled&&"noop"===y&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==y&&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,ge){J?this._focusMonitor.focusVia(this._inputElement,J,ge):this._inputElement.nativeElement.focus(ge)}_onInteractionEvent(J){J.stopPropagation()}_getAnimationClassForCheckStateTransition(J,ge){if("NoopAnimations"===this._animationMode)return"";let y="";switch(J){case 0:if(1===ge)y="unchecked-checked";else{if(3!=ge)return"";y="unchecked-indeterminate"}break;case 2:y=1===ge?"unchecked-checked":"unchecked-indeterminate";break;case 1:y=2===ge?"checked-unchecked":"checked-indeterminate";break;case 3:y=1===ge?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${y}`}_syncIndeterminate(J){const ge=this._inputElement;ge&&(ge.nativeElement.indeterminate=J)}}return te.\u0275fac=function(J){return new(J||te)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(b.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(a.Qb,8),e.Y36(D,8))},te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-checkbox"]],viewQuery:function(J,ge){if(1&J&&(e.Gf(N,5),e.Gf(M.wG,5)),2&J){let y;e.iGM(y=e.CRH())&&(ge._inputElement=y.first),e.iGM(y=e.CRH())&&(ge.ripple=y.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(J,ge){2&J&&(e.Ikx("id",ge.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.ekj("mat-checkbox-indeterminate",ge.indeterminate)("mat-checkbox-checked",ge.checked)("mat-checkbox-disabled",ge.disabled)("mat-checkbox-label-before","before"==ge.labelPosition)("_mat-animation-noopable","NoopAnimations"===ge._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:[e._Bn([L]),e.qOj],ngContentSelectors:A,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,ge){if(1&J&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.NdJ("change",function(i){return ge._onInteractionEvent(i)})("click",function(i){return ge._onInputClick(i)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e._UZ(7,"span",7),e.TgZ(8,"span",8),e.O4$(),e.TgZ(9,"svg",9),e._UZ(10,"path",10),e.qZA(),e.kcU(),e._UZ(11,"span",11),e.qZA()(),e.TgZ(12,"span",12,13),e.NdJ("cdkObserveContent",function(){return ge._onLabelTextChange()}),e.TgZ(14,"span",14),e._uU(15,"\xa0"),e.qZA(),e.Hsn(16),e.qZA()()),2&J){const y=e.MAs(1),i=e.MAs(13);e.uIk("for",ge.inputId),e.xp6(2),e.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(1),e.Q6J("id",ge.inputId)("required",ge.required)("checked",ge.checked)("disabled",ge.disabled)("tabIndex",ge.tabIndex),e.uIk("value",ge.value)("name",ge.name)("aria-label",ge.ariaLabel||null)("aria-labelledby",ge.ariaLabelledby)("aria-checked",ge._getAriaChecked())("aria-describedby",ge.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",y)("matRippleDisabled",ge._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.VKq(19,h,"NoopAnimations"===ge._animationMode?0:150))}},directives:[M.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}),te})(),de=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({}),te})(),ee=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({imports:[[M.si,M.BQ,d.Q8,de],M.BQ,de]}),te})()},508:(Fe,Y,p)=>{"use strict";p.d(Y,{yN:()=>ne,mZ:()=>X,_A:()=>_,rD:()=>Re,sG:()=>n,K7:()=>Gt,HF:()=>ut,Y2:()=>$,BQ:()=>te,X2:()=>we,uc:()=>ve,XK:()=>fe,ey:()=>et,Ng:()=>jt,rN:()=>Nt,nP:()=>Le,us:()=>ct,wG:()=>ue,si:()=>Ce,LF:()=>P,IR:()=>Te,CB:()=>vt,jH:()=>$t,pj:()=>i,Kr:()=>r,Id:()=>y,FD:()=>c,dB:()=>C,sb:()=>u,E0:()=>Q});var t=p(5e3),e=p(226),M=p(9808),a=p(925),b=p(5664),d=p(3191),N=p(7579),h=p(8306),A=p(8675),D=p(6360),w=p(1159);function L(Pe,Oe){if(1&Pe&&t._UZ(0,"mat-pseudo-checkbox",4),2&Pe){const le=t.oxw();t.Q6J("state",le.selected?"checked":"unchecked")("disabled",le.disabled)}}function U(Pe,Oe){if(1&Pe&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&Pe){const le=t.oxw();t.xp6(1),t.hij("(",le.group.label,")")}}const Z=["*"];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})(),X=(()=>{class Pe{}return Pe.COMPLEX="375ms",Pe.ENTERING="225ms",Pe.EXITING="195ms",Pe})();const ee=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function de(){return!0}});let te=(()=>{class Pe{constructor(le,be,ht){this._sanityChecks=be,this._document=ht,this._hasDoneGlobalChecks=!1,le._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(le){return!(0,a.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[le])}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.LFG(b.qm),t.LFG(ee,8),t.LFG(M.K0))},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[e.vT],e.vT]}),Pe})();function y(Pe){return class extends Pe{constructor(...Oe){super(...Oe),this._disabled=!1}get disabled(){return this._disabled}set disabled(Oe){this._disabled=(0,d.Ig)(Oe)}}}function i(Pe,Oe){return class extends Pe{constructor(...le){super(...le),this.defaultColor=Oe,this.color=Oe}get color(){return this._color}set color(le){const be=le||this.defaultColor;be!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),be&&this._elementRef.nativeElement.classList.add(`mat-${be}`),this._color=be)}}}function r(Pe){return class extends Pe{constructor(...Oe){super(...Oe),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Oe){this._disableRipple=(0,d.Ig)(Oe)}}}function u(Pe,Oe=0){return class extends Pe{constructor(...le){super(...le),this._tabIndex=Oe,this.defaultTabIndex=Oe}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(le){this._tabIndex=null!=le?(0,d.su)(le):this.defaultTabIndex}}}function c(Pe){return class extends Pe{constructor(...Oe){super(...Oe),this.stateChanges=new N.x,this.errorState=!1}updateErrorState(){const Oe=this.errorState,ft=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ft!==Oe&&(this.errorState=ft,this.stateChanges.next())}}}function C(Pe){return class extends Pe{constructor(...Oe){super(...Oe),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(le=>{this._isInitialized?this._notifySubscriber(le):this._pendingSubscribers.push(le)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Oe){Oe.next(),Oe.complete()}}}const E=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function O(){return(0,t.f3M)(t.soG)}});class _{constructor(){this._localeChanges=new N.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Oe){return this.isDateInstance(Oe)&&this.isValid(Oe)?Oe:null}deserialize(Oe){return null==Oe||this.isDateInstance(Oe)&&this.isValid(Oe)?Oe:this.invalid()}setLocale(Oe){this.locale=Oe,this._localeChanges.next()}compareDate(Oe,le){return this.getYear(Oe)-this.getYear(le)||this.getMonth(Oe)-this.getMonth(le)||this.getDate(Oe)-this.getDate(le)}sameDate(Oe,le){if(Oe&&le){let be=this.isValid(Oe),ht=this.isValid(le);return be&&ht?!this.compareDate(Oe,le):be==ht}return Oe==le}clampDate(Oe,le,be){return le&&this.compareDate(Oe,le)<0?le:be&&this.compareDate(Oe,be)>0?be:Oe}}const n=new t.OlP("mat-date-formats"),v=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function B(Pe,Oe){const le=Array(Pe);for(let be=0;be{class Pe extends _{constructor(le,be){super(),this.useUtcForDisplay=!1,super.setLocale(le)}getYear(le){return le.getFullYear()}getMonth(le){return le.getMonth()}getDate(le){return le.getDate()}getDayOfWeek(le){return le.getDay()}getMonthNames(le){const be=new Intl.DateTimeFormat(this.locale,{month:le,timeZone:"utc"});return B(12,ht=>this._format(be,new Date(2017,ht,1)))}getDateNames(){const le=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return B(31,be=>this._format(le,new Date(2017,0,be+1)))}getDayOfWeekNames(le){const be=new Intl.DateTimeFormat(this.locale,{weekday:le,timeZone:"utc"});return B(7,ht=>this._format(be,new Date(2017,0,ht+1)))}getYearName(le){const be=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(be,le)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(le){return this.getDate(this._createDateWithOverflow(this.getYear(le),this.getMonth(le)+1,0))}clone(le){return new Date(le.getTime())}createDate(le,be,ht){let ft=this._createDateWithOverflow(le,be,ht);return ft.getMonth(),ft}today(){return new Date}parse(le){return"number"==typeof le?new Date(le):le?new Date(Date.parse(le)):null}format(le,be){if(!this.isValid(le))throw Error("NativeDateAdapter: Cannot format invalid date.");const ht=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},be),{timeZone:"utc"}));return this._format(ht,le)}addCalendarYears(le,be){return this.addCalendarMonths(le,12*be)}addCalendarMonths(le,be){let ht=this._createDateWithOverflow(this.getYear(le),this.getMonth(le)+be,this.getDate(le));return this.getMonth(ht)!=((this.getMonth(le)+be)%12+12)%12&&(ht=this._createDateWithOverflow(this.getYear(ht),this.getMonth(ht),0)),ht}addCalendarDays(le,be){return this._createDateWithOverflow(this.getYear(le),this.getMonth(le),this.getDate(le)+be)}toIso8601(le){return[le.getUTCFullYear(),this._2digit(le.getUTCMonth()+1),this._2digit(le.getUTCDate())].join("-")}deserialize(le){if("string"==typeof le){if(!le)return null;if(v.test(le)){let be=new Date(le);if(this.isValid(be))return be}}return super.deserialize(le)}isDateInstance(le){return le instanceof Date}isValid(le){return!isNaN(le.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(le,be,ht){const ft=new Date;return ft.setFullYear(le,be,ht),ft.setHours(0,0,0,0),ft}_2digit(le){return("00"+le).slice(-2)}_format(le,be){const ht=new Date;return ht.setUTCFullYear(be.getFullYear(),be.getMonth(),be.getDate()),ht.setUTCHours(be.getHours(),be.getMinutes(),be.getSeconds(),be.getMilliseconds()),le.format(ht)}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.LFG(E,8),t.LFG(a.t4))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const z={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 se=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:[{provide:_,useClass:P}]}),Pe})(),fe=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:[{provide:n,useValue:z}],imports:[[se]]}),Pe})(),Re=(()=>{class Pe{isErrorState(le,be){return!!(le&&le.invalid&&(le.touched||be&&be.submitted))}}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),we=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275dir=t.lG2({type:Pe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Pe})();function Q(Pe,Oe,le="mat"){Pe.changes.pipe((0,A.O)(Pe)).subscribe(({length:be})=>{Ge(Oe,`${le}-2-line`,!1),Ge(Oe,`${le}-3-line`,!1),Ge(Oe,`${le}-multi-line`,!1),2===be||3===be?Ge(Oe,`${le}-${be}-line`,!0):be>3&&Ge(Oe,`${le}-multi-line`,!0)})}function Ge(Pe,Oe,le){Pe.nativeElement.classList.toggle(Oe,le)}let ve=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[te],te]}),Pe})();class F{constructor(Oe,le,be){this._renderer=Oe,this.element=le,this.config=be,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ae={enterDuration:225,exitDuration:150},Ie=(0,a.i$)({passive:!0}),De=["mousedown","touchstart"],oe=["mouseup","mouseleave","touchend","touchcancel"];class Te{constructor(Oe,le,be,ht){this._target=Oe,this._ngZone=le,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ht.isBrowser&&(this._containerElement=(0,d.fI)(be))}fadeInRipple(Oe,le,be={}){const ht=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ft=Object.assign(Object.assign({},Ae),be.animation);be.centered&&(Oe=ht.left+ht.width/2,le=ht.top+ht.height/2);const Ht=be.radius||function W(Pe,Oe,le){const be=Math.max(Math.abs(Pe-le.left),Math.abs(Pe-le.right)),ht=Math.max(Math.abs(Oe-le.top),Math.abs(Oe-le.bottom));return Math.sqrt(be*be+ht*ht)}(Oe,le,ht),it=Oe-ht.left,Ne=le-ht.top,tt=ft.enterDuration,Je=document.createElement("div");Je.classList.add("mat-ripple-element"),Je.style.left=it-Ht+"px",Je.style.top=Ne-Ht+"px",Je.style.height=2*Ht+"px",Je.style.width=2*Ht+"px",null!=be.color&&(Je.style.backgroundColor=be.color),Je.style.transitionDuration=`${tt}ms`,this._containerElement.appendChild(Je),function ye(Pe){window.getComputedStyle(Pe).getPropertyValue("opacity")}(Je),Je.style.transform="scale(1)";const Se=new F(this,Je,be);return Se.state=0,this._activeRipples.add(Se),be.persistent||(this._mostRecentTransientRipple=Se),this._runTimeoutOutsideZone(()=>{const Ue=Se===this._mostRecentTransientRipple;Se.state=1,!be.persistent&&(!Ue||!this._isPointerDown)&&Se.fadeOut()},tt),Se}fadeOutRipple(Oe){const le=this._activeRipples.delete(Oe);if(Oe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!le)return;const be=Oe.element,ht=Object.assign(Object.assign({},Ae),Oe.config.animation);be.style.transitionDuration=`${ht.exitDuration}ms`,be.style.opacity="0",Oe.state=2,this._runTimeoutOutsideZone(()=>{Oe.state=3,be.remove()},ht.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Oe=>Oe.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Oe=>{Oe.config.persistent||Oe.fadeOut()})}setupTriggerEvents(Oe){const le=(0,d.fI)(Oe);!le||le===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=le,this._registerEvents(De))}handleEvent(Oe){"mousedown"===Oe.type?this._onMousedown(Oe):"touchstart"===Oe.type?this._onTouchStart(Oe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(oe),this._pointerUpEventsRegistered=!0)}_onMousedown(Oe){const le=(0,b.X6)(Oe),be=this._lastTouchStartEvent&&Date.now(){!Oe.config.persistent&&(1===Oe.state||Oe.config.terminateOnPointerUp&&0===Oe.state)&&Oe.fadeOut()}))}_runTimeoutOutsideZone(Oe,le=0){this._ngZone.runOutsideAngular(()=>setTimeout(Oe,le))}_registerEvents(Oe){this._ngZone.runOutsideAngular(()=>{Oe.forEach(le=>{this._triggerElement.addEventListener(le,this,Ie)})})}_removeTriggerEvents(){this._triggerElement&&(De.forEach(Oe=>{this._triggerElement.removeEventListener(Oe,this,Ie)}),this._pointerUpEventsRegistered&&oe.forEach(Oe=>{this._triggerElement.removeEventListener(Oe,this,Ie)}))}}const $=new t.OlP("mat-ripple-global-options");let ue=(()=>{class Pe{constructor(le,be,ht,ft,Ht){this._elementRef=le,this._animationMode=Ht,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ft||{},this._rippleRenderer=new Te(this,be,le,ht)}get disabled(){return this._disabled}set disabled(le){le&&this.fadeOutAllNonPersistent(),this._disabled=le,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(le){this._trigger=le,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(le,be=0,ht){return"number"==typeof le?this._rippleRenderer.fadeInRipple(le,be,Object.assign(Object.assign({},this.rippleConfig),ht)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),le))}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.t4),t.Y36($,8),t.Y36(D.Qb,8))},Pe.\u0275dir=t.lG2({type:Pe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(le,be){2&le&&t.ekj("mat-ripple-unbounded",be.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})(),Ce=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[te],te]}),Pe})(),Le=(()=>{class Pe{constructor(le){this._animationMode=le,this.state="unchecked",this.disabled=!1}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.Y36(D.Qb,8))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(le,be){2&le&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===be.state)("mat-pseudo-checkbox-checked","checked"===be.state)("mat-pseudo-checkbox-disabled",be.disabled)("_mat-animation-noopable","NoopAnimations"===be._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(le,be){},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})(),ct=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[te]]}),Pe})();const ut=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),Gt=new t.OlP("MatOptgroup");let xt=0;class Nt{constructor(Oe,le=!1){this.source=Oe,this.isUserInput=le}}let gt=(()=>{class Pe{constructor(le,be,ht,ft){this._element=le,this._changeDetectorRef=be,this._parent=ht,this.group=ft,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+xt++,this.onSelectionChange=new t.vpe,this._stateChanges=new N.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(le){this._disabled=(0,d.Ig)(le)}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(le,be){const ht=this._getHostElement();"function"==typeof ht.focus&&ht.focus(be)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(le){(le.keyCode===w.K5||le.keyCode===w.L_)&&!(0,w.Vb)(le)&&(this._selectViaInteraction(),le.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 le=this.viewValue;le!==this._mostRecentViewValue&&(this._mostRecentViewValue=le,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(le=!1){this.onSelectionChange.emit(new Nt(this,le))}}return Pe.\u0275fac=function(le){t.$Z()},Pe.\u0275dir=t.lG2({type:Pe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Pe})(),et=(()=>{class Pe extends gt{constructor(le,be,ht,ft){super(le,be,ht,ft)}}return Pe.\u0275fac=function(le){return new(le||Pe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ut,8),t.Y36(Gt,8))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(le,be){1&le&&t.NdJ("click",function(){return be._selectViaInteraction()})("keydown",function(ft){return be._handleKeydown(ft)}),2&le&&(t.Ikx("id",be.id),t.uIk("tabindex",be._getTabIndex())("aria-selected",be._getAriaSelected())("aria-disabled",be.disabled.toString()),t.ekj("mat-selected",be.selected)("mat-option-multiple",be.multiple)("mat-active",be.active)("mat-option-disabled",be.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:Z,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(le,be){1&le&&(t.F$t(),t.YNc(0,L,1,2,"mat-pseudo-checkbox",0),t.TgZ(1,"span",1),t.Hsn(2),t.qZA(),t.YNc(3,U,2,1,"span",2),t._UZ(4,"div",3)),2&le&&(t.Q6J("ngIf",be.multiple),t.xp6(3),t.Q6J("ngIf",be.group&&be.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",be._getHostElement())("matRippleDisabled",be.disabled||be.disableRipple))},directives:[Le,M.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 vt(Pe,Oe,le){if(le.length){let be=Oe.toArray(),ht=le.toArray(),ft=0;for(let Ht=0;Htle+be?Math.max(0,Pe-be+Oe):le}let jt=(()=>{class Pe{}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({imports:[[Ce,M.ez,te,ct]]}),Pe})()},6856:(Fe,Y,p)=>{"use strict";p.d(Y,{FA:()=>pe,Mq:()=>Ne,hl:()=>at,nW:()=>gi});var t=p(5664),e=p(9776),f=p(7429),M=p(9808),a=p(5e3),b=p(7423),d=p(5303),N=p(508),h=p(7579),A=p(727),D=p(6451),w=p(9646),S=p(1159),I=p(5698),L=p(8675),U=p(9300),Z=p(226),j=p(3191),ne=p(925),X=p(1777),de=p(3075),ee=p(7322),te=p(7531);const ce=["mat-calendar-body",""];function J(je,Ct){if(1&je&&(a.TgZ(0,"tr",2)(1,"td",3),a._uU(2),a.qZA()()),2&je){const ie=a.oxw();a.xp6(1),a.Udp("padding-top",ie._cellPadding)("padding-bottom",ie._cellPadding),a.uIk("colspan",ie.numCols),a.xp6(1),a.hij(" ",ie.label," ")}}function ge(je,Ct){if(1&je&&(a.TgZ(0,"td",3),a._uU(1),a.qZA()),2&je){const ie=a.oxw(2);a.Udp("padding-top",ie._cellPadding)("padding-bottom",ie._cellPadding),a.uIk("colspan",ie._firstRowOffset),a.xp6(1),a.hij(" ",ie._firstRowOffset>=ie.labelMinRequiredCells?ie.label:""," ")}}function y(je,Ct){if(1&je){const ie=a.EpF();a.TgZ(0,"td",7)(1,"button",8),a.NdJ("click",function(Mt){const Mi=a.CHM(ie).$implicit;return a.oxw(2)._cellClicked(Mi,Mt)}),a.TgZ(2,"div",9),a._uU(3),a.qZA(),a._UZ(4,"div",10),a.qZA()()}if(2&je){const ie=Ct.$implicit,qe=Ct.index,Mt=a.oxw().index,Vt=a.oxw();a.Udp("width",Vt._cellWidth)("padding-top",Vt._cellPadding)("padding-bottom",Vt._cellPadding),a.uIk("data-mat-row",Mt)("data-mat-col",qe),a.xp6(1),a.ekj("mat-calendar-body-disabled",!ie.enabled)("mat-calendar-body-active",Vt._isActiveCell(Mt,qe))("mat-calendar-body-range-start",Vt._isRangeStart(ie.compareValue))("mat-calendar-body-range-end",Vt._isRangeEnd(ie.compareValue))("mat-calendar-body-in-range",Vt._isInRange(ie.compareValue))("mat-calendar-body-comparison-bridge-start",Vt._isComparisonBridgeStart(ie.compareValue,Mt,qe))("mat-calendar-body-comparison-bridge-end",Vt._isComparisonBridgeEnd(ie.compareValue,Mt,qe))("mat-calendar-body-comparison-start",Vt._isComparisonStart(ie.compareValue))("mat-calendar-body-comparison-end",Vt._isComparisonEnd(ie.compareValue))("mat-calendar-body-in-comparison-range",Vt._isInComparisonRange(ie.compareValue))("mat-calendar-body-preview-start",Vt._isPreviewStart(ie.compareValue))("mat-calendar-body-preview-end",Vt._isPreviewEnd(ie.compareValue))("mat-calendar-body-in-preview",Vt._isInPreview(ie.compareValue)),a.Q6J("ngClass",ie.cssClasses)("tabindex",Vt._isActiveCell(Mt,qe)?0:-1),a.uIk("aria-label",ie.ariaLabel)("aria-disabled",!ie.enabled||null)("aria-pressed",Vt._isSelected(ie.compareValue))("aria-current",Vt.todayValue===ie.compareValue?"date":null),a.xp6(1),a.ekj("mat-calendar-body-selected",Vt._isSelected(ie.compareValue))("mat-calendar-body-comparison-identical",Vt._isComparisonIdentical(ie.compareValue))("mat-calendar-body-today",Vt.todayValue===ie.compareValue),a.xp6(1),a.hij(" ",ie.displayValue," ")}}function i(je,Ct){if(1&je&&(a.TgZ(0,"tr",4),a.YNc(1,ge,2,6,"td",5),a.YNc(2,y,5,47,"td",6),a.qZA()),2&je){const ie=Ct.$implicit,qe=Ct.index,Mt=a.oxw();a.xp6(1),a.Q6J("ngIf",0===qe&&Mt._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",ie)}}function r(je,Ct){if(1&je&&(a.TgZ(0,"th",5)(1,"span",6),a._uU(2),a.qZA(),a.TgZ(3,"span",7),a._uU(4),a.qZA()()),2&je){const ie=Ct.$implicit;a.xp6(2),a.Oqu(ie.long),a.xp6(2),a.Oqu(ie.narrow)}}const u=["*"];function c(je,Ct){}function C(je,Ct){if(1&je){const ie=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(Mt){return a.CHM(ie),a.oxw().activeDate=Mt})("_userSelection",function(Mt){return a.CHM(ie),a.oxw()._dateSelected(Mt)}),a.qZA()}if(2&je){const ie=a.oxw();a.Q6J("activeDate",ie.activeDate)("selected",ie.selected)("dateFilter",ie.dateFilter)("maxDate",ie.maxDate)("minDate",ie.minDate)("dateClass",ie.dateClass)("comparisonStart",ie.comparisonStart)("comparisonEnd",ie.comparisonEnd)}}function E(je,Ct){if(1&je){const ie=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(Mt){return a.CHM(ie),a.oxw().activeDate=Mt})("monthSelected",function(Mt){return a.CHM(ie),a.oxw()._monthSelectedInYearView(Mt)})("selectedChange",function(Mt){return a.CHM(ie),a.oxw()._goToDateInView(Mt,"month")}),a.qZA()}if(2&je){const ie=a.oxw();a.Q6J("activeDate",ie.activeDate)("selected",ie.selected)("dateFilter",ie.dateFilter)("maxDate",ie.maxDate)("minDate",ie.minDate)("dateClass",ie.dateClass)}}function O(je,Ct){if(1&je){const ie=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(Mt){return a.CHM(ie),a.oxw().activeDate=Mt})("yearSelected",function(Mt){return a.CHM(ie),a.oxw()._yearSelectedInMultiYearView(Mt)})("selectedChange",function(Mt){return a.CHM(ie),a.oxw()._goToDateInView(Mt,"year")}),a.qZA()}if(2&je){const ie=a.oxw();a.Q6J("activeDate",ie.activeDate)("selected",ie.selected)("dateFilter",ie.dateFilter)("maxDate",ie.maxDate)("minDate",ie.minDate)("dateClass",ie.dateClass)}}function _(je,Ct){}const n=["button"];function v(je,Ct){1&je&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const B=[[["","matDatepickerToggleIcon",""]]],P=["[matDatepickerToggleIcon]"];class Re{constructor(Ct,ie,qe,Mt,Vt={},Mi=Ct,Ei){this.value=Ct,this.displayValue=ie,this.ariaLabel=qe,this.enabled=Mt,this.cssClasses=Vt,this.compareValue=Mi,this.rawValue=Ei}}let we=(()=>{class je{constructor(ie,qe){this._elementRef=ie,this._ngZone=qe,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=Mt=>{if(this._skipNextFocus&&"focus"===Mt.type)this._skipNextFocus=!1;else if(Mt.target&&this.isRange){const Vt=this._getCellFromElement(Mt.target);Vt&&this._ngZone.run(()=>this.previewChange.emit({value:Vt.enabled?Vt:null,event:Mt}))}},this._leaveHandler=Mt=>{null!==this.previewEnd&&this.isRange&&Mt.target&&this._getCellFromElement(Mt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Mt}))},qe.runOutsideAngular(()=>{const Mt=ie.nativeElement;Mt.addEventListener("mouseenter",this._enterHandler,!0),Mt.addEventListener("focus",this._enterHandler,!0),Mt.addEventListener("mouseleave",this._leaveHandler,!0),Mt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(ie,qe){ie.enabled&&this.selectedValueChange.emit({value:ie.value,event:qe})}_isSelected(ie){return this.startValue===ie||this.endValue===ie}ngOnChanges(ie){const qe=ie.numCols,{rows:Mt,numCols:Vt}=this;(ie.rows||qe)&&(this._firstRowOffset=Mt&&Mt.length&&Mt[0].length?Vt-Mt[0].length:0),(ie.cellAspectRatio||qe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Vt+"%"),(qe||!this._cellWidth)&&(this._cellWidth=100/Vt+"%")}ngOnDestroy(){const ie=this._elementRef.nativeElement;ie.removeEventListener("mouseenter",this._enterHandler,!0),ie.removeEventListener("focus",this._enterHandler,!0),ie.removeEventListener("mouseleave",this._leaveHandler,!0),ie.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(ie,qe){let Mt=ie*this.numCols+qe;return ie&&(Mt-=this._firstRowOffset),Mt==this.activeCell}_focusActiveCell(ie=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{setTimeout(()=>{const qe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");qe&&(ie||(this._skipNextFocus=!0),qe.focus())})})})}_isRangeStart(ie){return Ge(ie,this.startValue,this.endValue)}_isRangeEnd(ie){return ve(ie,this.startValue,this.endValue)}_isInRange(ie){return F(ie,this.startValue,this.endValue,this.isRange)}_isComparisonStart(ie){return Ge(ie,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(ie,qe,Mt){if(!this._isComparisonStart(ie)||this._isRangeStart(ie)||!this._isInRange(ie))return!1;let Vt=this.rows[qe][Mt-1];if(!Vt){const Mi=this.rows[qe-1];Vt=Mi&&Mi[Mi.length-1]}return Vt&&!this._isRangeEnd(Vt.compareValue)}_isComparisonBridgeEnd(ie,qe,Mt){if(!this._isComparisonEnd(ie)||this._isRangeEnd(ie)||!this._isInRange(ie))return!1;let Vt=this.rows[qe][Mt+1];if(!Vt){const Mi=this.rows[qe+1];Vt=Mi&&Mi[0]}return Vt&&!this._isRangeStart(Vt.compareValue)}_isComparisonEnd(ie){return ve(ie,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(ie){return F(ie,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(ie){return this.comparisonStart===this.comparisonEnd&&ie===this.comparisonStart}_isPreviewStart(ie){return Ge(ie,this.previewStart,this.previewEnd)}_isPreviewEnd(ie){return ve(ie,this.previewStart,this.previewEnd)}_isInPreview(ie){return F(ie,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(ie){let qe;if(Q(ie)?qe=ie:Q(ie.parentNode)&&(qe=ie.parentNode),qe){const Mt=qe.getAttribute("data-mat-row"),Vt=qe.getAttribute("data-mat-col");if(Mt&&Vt)return this.rows[parseInt(Mt)][parseInt(Vt)]}return null}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.SBq),a.Y36(a.R0b))},je.\u0275cmp=a.Xpm({type:je,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:ce,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(ie,qe){1&ie&&(a.YNc(0,J,3,6,"tr",0),a.YNc(1,i,3,2,"tr",1)),2&ie&&(a.Q6J("ngIf",qe._firstRowOffset.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}),je})();function Q(je){return"TD"===je.nodeName}function Ge(je,Ct,ie){return null!==ie&&Ct!==ie&&je=Ct&&je===ie}function F(je,Ct,ie,qe){return qe&&null!==Ct&&null!==ie&&Ct!==ie&&je>=Ct&&je<=ie}class Ae{constructor(Ct,ie){this.start=Ct,this.end=ie}}let lt=(()=>{class je{constructor(ie,qe){this.selection=ie,this._adapter=qe,this._selectionChanged=new h.x,this.selectionChanged=this._selectionChanged,this.selection=ie}updateSelection(ie,qe){const Mt=this.selection;this.selection=ie,this._selectionChanged.next({selection:ie,source:qe,oldValue:Mt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(ie){return this._adapter.isDateInstance(ie)&&this._adapter.isValid(ie)}}return je.\u0275fac=function(ie){a.$Z()},je.\u0275prov=a.Yz7({token:je,factory:je.\u0275fac}),je})(),Ie=(()=>{class je extends lt{constructor(ie){super(null,ie)}add(ie){super.updateSelection(ie,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const ie=new je(this._adapter);return ie.updateSelection(this.selection,this),ie}}return je.\u0275fac=function(ie){return new(ie||je)(a.LFG(N._A))},je.\u0275prov=a.Yz7({token:je,factory:je.\u0275fac}),je})();const Te={provide:lt,deps:[[new a.FiY,new a.tp0,lt],N._A],useFactory:function oe(je,Ct){return je||new Ie(Ct)}},$=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let ut=(()=>{class je{constructor(ie,qe,Mt,Vt,Mi){this._changeDetectorRef=ie,this._dateFormats=qe,this._dateAdapter=Mt,this._dir=Vt,this._rangeStrategy=Mi,this._rerenderSubscription=A.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(ie){const qe=this._activeDate,Mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Mt,this.minDate,this.maxDate),this._hasSameMonthAndYear(qe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof Ae?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,L.O)(null)).subscribe(()=>this._init())}ngOnChanges(ie){const qe=ie.comparisonStart||ie.comparisonEnd;qe&&!qe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(ie){const qe=ie.value,Mt=this._dateAdapter.getYear(this.activeDate),Vt=this._dateAdapter.getMonth(this.activeDate),Mi=this._dateAdapter.createDate(Mt,Vt,qe);let Ei,en;this._selected instanceof Ae?(Ei=this._getDateInCurrentMonth(this._selected.start),en=this._getDateInCurrentMonth(this._selected.end)):Ei=en=this._getDateInCurrentMonth(this._selected),(Ei!==qe||en!==qe)&&this.selectedChange.emit(Mi),this._userSelection.emit({value:Mi,event:ie.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(ie){const qe=this._activeDate,Mt=this._isRtl();switch(ie.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Mt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Mt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case S.Ku:this.activeDate=ie.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case S.VM:this.activeDate=ie.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case S.K5:case S.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&ie.preventDefault());case S.hY:return void(null!=this._previewEnd&&!(0,S.Vb)(ie)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:ie}),ie.preventDefault(),ie.stopPropagation()));default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ie.preventDefault()}_handleCalendarBodyKeyup(ie){(ie.keyCode===S.L_||ie.keyCode===S.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:ie}),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 ie=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(ie)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(ie){this._matCalendarBody._focusActiveCell(ie)}_previewChanged({event:ie,value:qe}){if(this._rangeStrategy){const Vt=this._rangeStrategy.createPreview(qe?qe.rawValue:null,this.selected,ie);this._previewStart=this._getCellCompareValue(Vt.start),this._previewEnd=this._getCellCompareValue(Vt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const ie=this._dateAdapter.getFirstDayOfWeek(),qe=this._dateAdapter.getDayOfWeekNames("narrow");let Vt=this._dateAdapter.getDayOfWeekNames("long").map((Mi,Ei)=>({long:Mi,narrow:qe[Ei]}));this._weekdays=Vt.slice(ie).concat(Vt.slice(0,ie))}_createWeekCells(){const ie=this._dateAdapter.getNumDaysInMonth(this.activeDate),qe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Mt=0,Vt=this._firstWeekOffset;Mt=0)&&(!this.maxDate||this._dateAdapter.compareDate(ie,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(ie))}_getDateInCurrentMonth(ie){return ie&&this._hasSameMonthAndYear(ie,this.activeDate)?this._dateAdapter.getDate(ie):null}_hasSameMonthAndYear(ie,qe){return!(!ie||!qe||this._dateAdapter.getMonth(ie)!=this._dateAdapter.getMonth(qe)||this._dateAdapter.getYear(ie)!=this._dateAdapter.getYear(qe))}_getCellCompareValue(ie){if(ie){const qe=this._dateAdapter.getYear(ie),Mt=this._dateAdapter.getMonth(ie),Vt=this._dateAdapter.getDate(ie);return new Date(qe,Mt,Vt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(ie){ie instanceof Ae?(this._rangeStart=this._getCellCompareValue(ie.start),this._rangeEnd=this._getCellCompareValue(ie.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(ie),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(ie){return!this.dateFilter||this.dateFilter(ie)}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.sBO),a.Y36(N.sG,8),a.Y36(N._A,8),a.Y36(Z.Is,8),a.Y36($,8))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-month-view"]],viewQuery:function(ie,qe){if(1&ie&&a.Gf(we,5),2&ie){let Mt;a.iGM(Mt=a.CRH())&&(qe._matCalendarBody=Mt.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(ie,qe){1&ie&&(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 qe._dateSelected(Vt)})("previewChange",function(Vt){return qe._previewChanged(Vt)})("keyup",function(Vt){return qe._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return qe._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&ie&&(a.xp6(3),a.Q6J("ngForOf",qe._weekdays),a.xp6(3),a.Q6J("label",qe._monthLabel)("rows",qe._weeks)("todayValue",qe._todayDate)("startValue",qe._rangeStart)("endValue",qe._rangeEnd)("comparisonStart",qe._comparisonRangeStart)("comparisonEnd",qe._comparisonRangeEnd)("previewStart",qe._previewStart)("previewEnd",qe._previewEnd)("isRange",qe._isRange)("labelMinRequiredCells",3)("activeCell",qe._dateAdapter.getDate(qe.activeDate)-1))},directives:[we,M.sg],encapsulation:2,changeDetection:0}),je})(),Yt=(()=>{class je{constructor(ie,qe,Mt){this._changeDetectorRef=ie,this._dateAdapter=qe,this._dir=Mt,this._rerenderSubscription=A.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(ie){let qe=this._activeDate;const Mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Mt,this.minDate,this.maxDate),Gt(this._dateAdapter,qe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof Ae?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie)),this._setSelectedYear(ie)}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,L.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const qe=this._dateAdapter.getYear(this._activeDate)-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Mt=0,Vt=[];Mt<24;Mt++)Vt.push(qe+Mt),4==Vt.length&&(this._years.push(Vt.map(Mi=>this._createCellForYear(Mi))),Vt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(ie){const qe=ie.value;this.yearSelected.emit(this._dateAdapter.createDate(qe,0,1));let Mt=this._dateAdapter.getMonth(this.activeDate),Vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(qe,Mt,1));this.selectedChange.emit(this._dateAdapter.createDate(qe,Mt,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(ie){const qe=this._activeDate,Mt=this._isRtl();switch(ie.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Mt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Mt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?-240:-24);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?240:24);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ie.preventDefault()}_handleCalendarBodyKeyup(ie){(ie.keyCode===S.L_||ie.keyCode===S.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:ie}),this._selectionKeyPressed=!1)}_getActiveCell(){return ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(ie){const qe=this._dateAdapter.createDate(ie,0,1),Mt=this._dateAdapter.getYearName(qe),Vt=this.dateClass?this.dateClass(qe,"multi-year"):void 0;return new Re(ie,Mt,Mt,this._shouldEnableYear(ie),Vt)}_shouldEnableYear(ie){if(null==ie||this.maxDate&&ie>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ie{class je{constructor(ie,qe,Mt,Vt){this._changeDetectorRef=ie,this._dateFormats=qe,this._dateAdapter=Mt,this._dir=Vt,this._rerenderSubscription=A.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(ie){let qe=this._activeDate;const Mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Mt,this.minDate,this.maxDate),this._dateAdapter.getYear(qe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof Ae?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie)),this._setSelectedMonth(ie)}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,L.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(ie){const qe=ie.value,Mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),qe,1);this.monthSelected.emit(Mt);const Vt=this._dateAdapter.getNumDaysInMonth(Mt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),qe,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(ie){const qe=this._activeDate,Mt=this._isRtl();switch(ie.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Mt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Mt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?-10:-1);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?10:1);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ie.preventDefault()}_handleCalendarBodyKeyup(ie){(ie.keyCode===S.L_||ie.keyCode===S.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:ie}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let ie=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(qe=>qe.map(Mt=>this._createCellForMonth(Mt,ie[Mt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(ie){return ie&&this._dateAdapter.getYear(ie)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(ie):null}_createCellForMonth(ie,qe){const Mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ie,1),Vt=this._dateAdapter.format(Mt,this._dateFormats.display.monthYearA11yLabel),Mi=this.dateClass?this.dateClass(Mt,"year"):void 0;return new Re(ie,qe.toLocaleUpperCase(),Vt,this._shouldEnableMonth(ie),Mi)}_shouldEnableMonth(ie){const qe=this._dateAdapter.getYear(this.activeDate);if(null==ie||this._isYearAndMonthAfterMaxDate(qe,ie)||this._isYearAndMonthBeforeMinDate(qe,ie))return!1;if(!this.dateFilter)return!0;for(let Vt=this._dateAdapter.createDate(qe,ie,1);this._dateAdapter.getMonth(Vt)==ie;Vt=this._dateAdapter.addCalendarDays(Vt,1))if(this.dateFilter(Vt))return!0;return!1}_isYearAndMonthAfterMaxDate(ie,qe){if(this.maxDate){const Mt=this._dateAdapter.getYear(this.maxDate),Vt=this._dateAdapter.getMonth(this.maxDate);return ie>Mt||ie===Mt&&qe>Vt}return!1}_isYearAndMonthBeforeMinDate(ie,qe){if(this.minDate){const Mt=this._dateAdapter.getYear(this.minDate),Vt=this._dateAdapter.getMonth(this.minDate);return ie{class je{constructor(){this.changes=new h.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(ie,qe){return`${ie} \u2013 ${qe}`}}return je.\u0275fac=function(ie){return new(ie||je)},je.\u0275prov=a.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),vt=0,$t=(()=>{class je{constructor(ie,qe,Mt,Vt,Mi){this._intl=ie,this.calendar=qe,this._dateAdapter=Mt,this._dateFormats=Vt,this._buttonDescriptionId="mat-calendar-button-"+vt++,this.calendar.stateChanges.subscribe(()=>Mi.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 qe=this._dateAdapter.getYear(this.calendar.activeDate)-ui(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Mt=qe+24-1,Vt=this._dateAdapter.getYearName(this._dateAdapter.createDate(qe,0,1)),Mi=this._dateAdapter.getYearName(this._dateAdapter.createDate(Mt,0,1));return this._intl.formatYearRange(Vt,Mi)}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(ie,qe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(ie)==this._dateAdapter.getYear(qe)&&this._dateAdapter.getMonth(ie)==this._dateAdapter.getMonth(qe):"year"==this.calendar.currentView?this._dateAdapter.getYear(ie)==this._dateAdapter.getYear(qe):Gt(this._dateAdapter,ie,qe,this.calendar.minDate,this.calendar.maxDate)}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(et),a.Y36((0,a.Gpc)(()=>jt)),a.Y36(N._A,8),a.Y36(N.sG,8),a.Y36(a.sBO))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:u,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(ie,qe){1&ie&&(a.F$t(),a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return qe.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 qe.previousClicked()}),a.qZA(),a.TgZ(10,"button",7),a.NdJ("click",function(){return qe.nextClicked()}),a.qZA()()()),2&ie&&(a.xp6(2),a.uIk("aria-label",qe.periodButtonLabel)("aria-describedby",qe._buttonDescriptionId),a.xp6(1),a.uIk("id",qe._buttonDescriptionId),a.xp6(1),a.Oqu(qe.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==qe.calendar.currentView),a.xp6(4),a.Q6J("disabled",!qe.previousEnabled()),a.uIk("aria-label",qe.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!qe.nextEnabled()),a.uIk("aria-label",qe.nextButtonLabel))},directives:[b.lW],encapsulation:2,changeDetection:0}),je})(),jt=(()=>{class je{constructor(ie,qe,Mt,Vt){this._dateAdapter=qe,this._dateFormats=Mt,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 h.x,this._intlChanges=ie.changes.subscribe(()=>{Vt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(ie){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof Ae?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get activeDate(){return this._clampedActiveDate}set activeDate(ie){this._clampedActiveDate=this._dateAdapter.clampDate(ie,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(ie){const qe=this._currentView!==ie?ie:null;this._currentView=ie,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),qe&&this.viewChanged.emit(qe)}ngAfterContentInit(){this._calendarHeaderPortal=new f.C5(this.headerComponent||$t),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(ie){const qe=ie.minDate&&!this._dateAdapter.sameDate(ie.minDate.previousValue,ie.minDate.currentValue)?ie.minDate:void 0,Mt=ie.maxDate&&!this._dateAdapter.sameDate(ie.maxDate.previousValue,ie.maxDate.currentValue)?ie.maxDate:void 0,Vt=qe||Mt||ie.dateFilter;if(Vt&&!Vt.firstChange){const Mi=this._getCurrentViewComponent();Mi&&(this._changeDetectorRef.detectChanges(),Mi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(ie){const qe=ie.value;(this.selected instanceof Ae||qe&&!this._dateAdapter.sameDate(qe,this.selected))&&this.selectedChange.emit(qe),this._userSelection.emit(ie)}_yearSelectedInMultiYearView(ie){this.yearSelected.emit(ie)}_monthSelectedInYearView(ie){this.monthSelected.emit(ie)}_goToDateInView(ie,qe){this.activeDate=ie,this.currentView=qe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(et),a.Y36(N._A,8),a.Y36(N.sG,8),a.Y36(a.sBO))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-calendar"]],viewQuery:function(ie,qe){if(1&ie&&(a.Gf(ut,5),a.Gf(gt,5),a.Gf(Yt,5)),2&ie){let Mt;a.iGM(Mt=a.CRH())&&(qe.monthView=Mt.first),a.iGM(Mt=a.CRH())&&(qe.yearView=Mt.first),a.iGM(Mt=a.CRH())&&(qe.multiYearView=Mt.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(ie,qe){1&ie&&(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,E,1,6,"mat-year-view",3),a.YNc(4,O,1,6,"mat-multi-year-view",4),a.qZA()),2&ie&&(a.Q6J("cdkPortalOutlet",qe._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",qe.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[ut,gt,Yt,f.Pl,t.kH,M.RF,M.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}),je})();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 Oe=0;const le=new a.OlP("mat-datepicker-scroll-strategy"),ht={provide:le,deps:[e.aV],useFactory:function be(je){return()=>je.scrollStrategies.reposition()}},ft=(0,N.pj)(class{constructor(je){this._elementRef=je}});let Ht=(()=>{class je extends ft{constructor(ie,qe,Mt,Vt,Mi,Ei){super(ie),this._changeDetectorRef=qe,this._globalModel=Mt,this._dateAdapter=Vt,this._rangeSelectionStrategy=Mi,this._subscriptions=new A.w0,this._animationDone=new h.x,this._actionsPortal=null,this._closeButtonText=Ei.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(ie){const qe=this._model.selection,Mt=ie.value,Vt=qe instanceof Ae;if(Vt&&this._rangeSelectionStrategy){const Mi=this._rangeSelectionStrategy.selectionFinished(Mt,qe,ie.event);this._model.updateSelection(Mi,this)}else Mt&&(Vt||!this._dateAdapter.sameDate(Mt,qe))&&this._model.add(Mt);(!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 je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(lt),a.Y36(N._A),a.Y36($,8),a.Y36(et))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-datepicker-content"]],viewQuery:function(ie,qe){if(1&ie&&a.Gf(jt,5),2&ie){let Mt;a.iGM(Mt=a.CRH())&&(qe._calendar=Mt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(ie,qe){1&ie&&a.WFA("@transformPanel.done",function(){return qe._animationDone.next()}),2&ie&&(a.d8E("@transformPanel",qe._animationState),a.ekj("mat-datepicker-content-touch",qe.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(ie,qe){if(1&ie&&(a.TgZ(0,"div",0)(1,"mat-calendar",1),a.NdJ("yearSelected",function(Vt){return qe.datepicker._selectYear(Vt)})("monthSelected",function(Vt){return qe.datepicker._selectMonth(Vt)})("viewChanged",function(Vt){return qe.datepicker._viewChanged(Vt)})("_userSelection",function(Vt){return qe._handleUserSelection(Vt)}),a.qZA(),a.YNc(2,_,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return qe._closeButtonFocused=!0})("blur",function(){return qe._closeButtonFocused=!1})("click",function(){return qe.datepicker.close()}),a._uU(4),a.qZA()()),2&ie){let Mt;a.ekj("mat-datepicker-content-container-with-custom-header",qe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",qe._actionsPortal),a.uIk("aria-modal",!0)("aria-labelledby",null!==(Mt=qe._dialogLabelId)&&void 0!==Mt?Mt:void 0),a.xp6(1),a.Q6J("id",qe.datepicker.id)("ngClass",qe.datepicker.panelClass)("startAt",qe.datepicker.startAt)("startView",qe.datepicker.startView)("minDate",qe.datepicker._getMinDate())("maxDate",qe.datepicker._getMaxDate())("dateFilter",qe.datepicker._getDateFilter())("headerComponent",qe.datepicker.calendarHeaderComponent)("selected",qe._getSelected())("dateClass",qe.datepicker.dateClass)("comparisonStart",qe.comparisonStart)("comparisonEnd",qe.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",qe._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!qe._closeButtonFocused),a.Q6J("color",qe.color||"primary"),a.xp6(1),a.Oqu(qe._closeButtonText)}},directives:[jt,b.lW,t.mK,M.mk,f.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}),je})(),it=(()=>{class je{constructor(ie,qe,Mt,Vt,Mi,Ei,en){this._overlay=ie,this._ngZone=qe,this._viewContainerRef=Mt,this._dateAdapter=Mi,this._dir=Ei,this._model=en,this._inputStateChanges=A.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-"+Oe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.x,this._scrollStrategy=Vt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(ie){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(ie){this._color=ie}get touchUi(){return this._touchUi}set touchUi(ie){this._touchUi=(0,j.Ig)(ie)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(ie){const qe=(0,j.Ig)(ie);qe!==this._disabled&&(this._disabled=qe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(ie){this._restoreFocus=(0,j.Ig)(ie)}get panelClass(){return this._panelClass}set panelClass(ie){this._panelClass=(0,j.du)(ie)}get opened(){return this._opened}set opened(ie){(0,j.Ig)(ie)?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(ie){const qe=ie.xPosition||ie.yPosition;if(qe&&!qe.firstChange&&this._overlayRef){const Mt=this._overlayRef.getConfig().positionStrategy;Mt instanceof e._G&&(this._setConnectedPositions(Mt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(ie){this._model.add(ie)}_selectYear(ie){this.yearSelected.emit(ie)}_selectMonth(ie){this.monthSelected.emit(ie)}_viewChanged(ie){this.viewChanged.emit(ie)}registerInput(ie){return this._inputStateChanges.unsubscribe(),this.datepickerInput=ie,this._inputStateChanges=ie.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(ie){this._actionsPortal=ie}removeActions(ie){ie===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 qe=this._componentRef.instance;qe._startExitAnimation(),qe._animationDone.pipe((0,I.q)(1)).subscribe(()=>this._destroyOverlay())}const ie=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(ie)):ie()}_applyPendingSelection(){var ie,qe;null===(qe=null===(ie=this._componentRef)||void 0===ie?void 0:ie.instance)||void 0===qe||qe._applyPendingSelection()}_forwardContentValues(ie){ie.datepicker=this,ie.color=this.color,ie._actionsPortal=this._actionsPortal,ie._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const ie=this.touchUi,qe=new f.C5(Ht,this._viewContainerRef),Mt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:ie?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[ie?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:ie?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(ie?"dialog":"popup")}));this._getCloseStream(Mt).subscribe(Vt=>{Vt&&Vt.preventDefault(),this.close()}),Mt.keydownEvents().subscribe(Vt=>{const Mi=Vt.keyCode;(Mi===S.LH||Mi===S.JH||Mi===S.oh||Mi===S.SV||Mi===S.Ku||Mi===S.VM)&&Vt.preventDefault()}),this._componentRef=Mt.attach(qe),this._forwardContentValues(this._componentRef.instance),ie||this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>Mt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const ie=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(ie)}_setConnectedPositions(ie){const qe="end"===this.xPosition?"end":"start",Mt="start"===qe?"end":"start",Vt="above"===this.yPosition?"bottom":"top",Mi="top"===Vt?"bottom":"top";return ie.withPositions([{originX:qe,originY:Mi,overlayX:qe,overlayY:Vt},{originX:qe,originY:Vt,overlayX:qe,overlayY:Mi},{originX:Mt,originY:Mi,overlayX:Mt,overlayY:Vt},{originX:Mt,originY:Vt,overlayX:Mt,overlayY:Mi}])}_getCloseStream(ie){return(0,D.T)(ie.backdropClick(),ie.detachments(),ie.keydownEvents().pipe((0,U.h)(qe=>qe.keyCode===S.hY&&!(0,S.Vb)(qe)||this.datepickerInput&&(0,S.Vb)(qe,"altKey")&&qe.keyCode===S.LH)))}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(e.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(le),a.Y36(N._A,8),a.Y36(Z.Is,8),a.Y36(lt))},je.\u0275dir=a.lG2({type:je,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]}),je})(),Ne=(()=>{class je extends it{}return je.\u0275fac=function(){let Ct;return function(qe){return(Ct||(Ct=a.n5z(je)))(qe||je)}}(),je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([Te,{provide:it,useExisting:je}]),a.qOj],decls:0,vars:0,template:function(ie,qe){},encapsulation:2,changeDetection:0}),je})();class tt{constructor(Ct,ie){this.target=Ct,this.targetElement=ie,this.value=this.target.value}}let Je=(()=>{class je{constructor(ie,qe,Mt){this._elementRef=ie,this._dateAdapter=qe,this._dateFormats=Mt,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new h.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=A.w0.EMPTY,this._localeSubscription=A.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Vt=>{const Mi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value));return!Mi||this._matchesFilter(Mi)?null:{matDatepickerFilter:!0}},this._minValidator=Vt=>{const Mi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Ei=this._getMinDate();return!Ei||!Mi||this._dateAdapter.compareDate(Ei,Mi)<=0?null:{matDatepickerMin:{min:Ei,actual:Mi}}},this._maxValidator=Vt=>{const Mi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Ei=this._getMaxDate();return!Ei||!Mi||this._dateAdapter.compareDate(Ei,Mi)>=0?null:{matDatepickerMax:{max:Ei,actual:Mi}}},this._lastValueValid=!1,this._localeSubscription=qe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(ie){this._assignValueProgrammatically(ie)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(ie){const qe=(0,j.Ig)(ie),Mt=this._elementRef.nativeElement;this._disabled!==qe&&(this._disabled=qe,this.stateChanges.next(void 0)),qe&&this._isInitialized&&Mt.blur&&Mt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(ie){this._model=ie,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(qe=>{if(this._shouldHandleChangeEvent(qe)){const Mt=this._getValueFromModel(qe.selection);this._lastValueValid=this._isValidValue(Mt),this._cvaOnChange(Mt),this._onTouched(),this._formatValue(Mt),this.dateInput.emit(new tt(this,this._elementRef.nativeElement)),this.dateChange.emit(new tt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(ie){(function Se(je,Ct){const ie=Object.keys(je);for(let qe of ie){const{previousValue:Mt,currentValue:Vt}=je[qe];if(!Ct.isDateInstance(Mt)||!Ct.isDateInstance(Vt))return!0;if(!Ct.sameDate(Mt,Vt))return!0}return!1})(ie,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(ie){this._validatorOnChange=ie}validate(ie){return this._validator?this._validator(ie):null}writeValue(ie){this._assignValueProgrammatically(ie)}registerOnChange(ie){this._cvaOnChange=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this.disabled=ie}_onKeydown(ie){ie.altKey&&ie.keyCode===S.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),ie.preventDefault())}_onInput(ie){const qe=this._lastValueValid;let Mt=this._dateAdapter.parse(ie,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Mt),Mt=this._dateAdapter.getValidDateOrNull(Mt);const Vt=!this._dateAdapter.sameDate(Mt,this.value);!Mt||Vt?this._cvaOnChange(Mt):(ie&&!this.value&&this._cvaOnChange(Mt),qe!==this._lastValueValid&&this._validatorOnChange()),Vt&&(this._assignValue(Mt),this.dateInput.emit(new tt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new tt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(ie){this._elementRef.nativeElement.value=null!=ie?this._dateAdapter.format(ie,this._dateFormats.display.dateInput):""}_assignValue(ie){this._model?(this._assignValueToModel(ie),this._pendingValue=null):this._pendingValue=ie}_isValidValue(ie){return!ie||this._dateAdapter.isValid(ie)}_parentDisabled(){return!1}_assignValueProgrammatically(ie){ie=this._dateAdapter.deserialize(ie),this._lastValueValid=this._isValidValue(ie),ie=this._dateAdapter.getValidDateOrNull(ie),this._assignValue(ie),this._formatValue(ie)}_matchesFilter(ie){const qe=this._getDateFilter();return!qe||qe(ie)}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.SBq),a.Y36(N._A,8),a.Y36(N.sG,8))},je.\u0275dir=a.lG2({type:je,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),je})();const Ue={provide:de.JU,useExisting:(0,a.Gpc)(()=>at),multi:!0},rt={provide:de.Cf,useExisting:(0,a.Gpc)(()=>at),multi:!0};let at=(()=>{class je extends Je{constructor(ie,qe,Mt,Vt){super(ie,qe,Mt),this._formField=Vt,this._closedSubscription=A.w0.EMPTY,this._validator=de.kI.compose(super._getValidators())}set matDatepicker(ie){ie&&(this._datepicker=ie,this._closedSubscription=ie.closedStream.subscribe(()=>this._onTouched()),this._registerModel(ie.registerInput(this)))}get min(){return this._min}set min(ie){const qe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie));this._dateAdapter.sameDate(qe,this._min)||(this._min=qe,this._validatorOnChange())}get max(){return this._max}set max(ie){const qe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie));this._dateAdapter.sameDate(qe,this._max)||(this._max=qe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(ie){const qe=this._matchesFilter(this.value);this._dateFilter=ie,this._matchesFilter(this.value)!==qe&&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(ie){return ie}_assignValueToModel(ie){this._model&&this._model.updateSelection(ie,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(ie){return ie.source!==this}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(a.SBq),a.Y36(N._A,8),a.Y36(N.sG,8),a.Y36(ee.G_,8))},je.\u0275dir=a.lG2({type:je,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(ie,qe){1&ie&&a.NdJ("input",function(Vt){return qe._onInput(Vt.target.value)})("change",function(){return qe._onChange()})("blur",function(){return qe._onBlur()})("keydown",function(Vt){return qe._onKeydown(Vt)}),2&ie&&(a.Ikx("disabled",qe.disabled),a.uIk("aria-haspopup",qe._datepicker?"dialog":null)("aria-owns",(null==qe._datepicker?null:qe._datepicker.opened)&&qe._datepicker.id||null)("min",qe.min?qe._dateAdapter.toIso8601(qe.min):null)("max",qe.max?qe._dateAdapter.toIso8601(qe.max):null)("data-mat-calendar",qe._datepicker?qe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([Ue,rt,{provide:te.Jk,useExisting:je}]),a.qOj]}),je})(),yt=(()=>{class je{}return je.\u0275fac=function(ie){return new(ie||je)},je.\u0275dir=a.lG2({type:je,selectors:[["","matDatepickerToggleIcon",""]]}),je})(),gi=(()=>{class je{constructor(ie,qe,Mt){this._intl=ie,this._changeDetectorRef=qe,this._stateChanges=A.w0.EMPTY;const Vt=Number(Mt);this.tabIndex=Vt||0===Vt?Vt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(ie){this._disabled=(0,j.Ig)(ie)}ngOnChanges(ie){ie.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(ie){this.datepicker&&!this.disabled&&(this.datepicker.open(),ie.stopPropagation())}_watchStateChanges(){const ie=this.datepicker?this.datepicker.stateChanges:(0,w.of)(),qe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,w.of)(),Mt=this.datepicker?(0,D.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,w.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,D.T)(this._intl.changes,ie,qe,Mt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return je.\u0275fac=function(ie){return new(ie||je)(a.Y36(et),a.Y36(a.sBO),a.$8M("tabindex"))},je.\u0275cmp=a.Xpm({type:je,selectors:[["mat-datepicker-toggle"]],contentQueries:function(ie,qe,Mt){if(1&ie&&a.Suo(Mt,yt,5),2&ie){let Vt;a.iGM(Vt=a.CRH())&&(qe._customIcon=Vt.first)}},viewQuery:function(ie,qe){if(1&ie&&a.Gf(n,5),2&ie){let Mt;a.iGM(Mt=a.CRH())&&(qe._button=Mt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(ie,qe){1&ie&&a.NdJ("click",function(Vt){return qe._open(Vt)}),2&ie&&(a.uIk("tabindex",null)("data-mat-calendar",qe.datepicker?qe.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",qe.datepicker&&qe.datepicker.opened)("mat-accent",qe.datepicker&&"accent"===qe.datepicker.color)("mat-warn",qe.datepicker&&"warn"===qe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:P,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(ie,qe){1&ie&&(a.F$t(B),a.TgZ(0,"button",0,1),a.YNc(2,v,2,0,"svg",2),a.Hsn(3),a.qZA()),2&ie&&(a.Q6J("disabled",qe.disabled)("disableRipple",qe.disableRipple),a.uIk("aria-haspopup",qe.datepicker?"dialog":null)("aria-label",qe.ariaLabel||qe._intl.openCalendarLabel)("tabindex",qe.disabled?-1:qe.tabIndex),a.xp6(2),a.Q6J("ngIf",!qe._customIcon))},directives:[b.lW,M.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}),je})(),pe=(()=>{class je{}return je.\u0275fac=function(ie){return new(ie||je)},je.\u0275mod=a.oAB({type:je}),je.\u0275inj=a.cJS({providers:[et,ht],imports:[[M.ez,b.ot,e.U8,t.rt,f.eL,N.BQ],d.ZD]}),je})()},8966:(Fe,Y,p)=>{"use strict";p.d(Y,{Bq:()=>i,Is:()=>fe,WI:()=>y,ZT:()=>v,so:()=>J,uw:()=>O});var t=p(9776),e=p(7429),f=p(5e3),M=p(508),a=p(226),b=p(7579),d=p(9770),N=p(9646),h=p(9300),A=p(5698),D=p(8675),w=p(925),S=p(9808),I=p(1777),L=p(5664),U=p(1159),Z=p(6360);function j(xe,Re){}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 X={dialogContainer:(0,I.X$)("dialogContainer",[(0,I.SB)("void, exit",(0,I.oB)({opacity:0,transform:"scale(0.7)"})),(0,I.SB)("enter",(0,I.oB)({transform:"none"})),(0,I.eR)("* => enter",(0,I.ru)([(0,I.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,I.oB)({transform:"none",opacity:1})),(0,I.IO)("@*",(0,I.pV)(),{optional:!0})])),(0,I.eR)("* => void, * => exit",(0,I.ru)([(0,I.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,I.oB)({opacity:0})),(0,I.IO)("@*",(0,I.pV)(),{optional:!0})]))])};let ee=(()=>{class xe extends e.en{constructor(we,Q,Ge,ve,F,Ae,lt,Ie){super(),this._elementRef=we,this._focusTrapFactory=Q,this._changeDetectorRef=Ge,this._config=F,this._interactivityChecker=Ae,this._ngZone=lt,this._focusMonitor=Ie,this._animationStateChanged=new f.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=De=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(De)),this._ariaLabelledBy=F.ariaLabelledBy||null,this._document=ve}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,w.ht)())}attachComponentPortal(we){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(we)}attachTemplatePortal(we){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(we)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(we,Q){this._interactivityChecker.isFocusable(we)||(we.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ge=()=>{we.removeEventListener("blur",Ge),we.removeEventListener("mousedown",Ge),we.removeAttribute("tabindex")};we.addEventListener("blur",Ge),we.addEventListener("mousedown",Ge)})),we.focus(Q)}_focusByCssSelector(we,Q){let Ge=this._elementRef.nativeElement.querySelector(we);Ge&&this._forceFocus(Ge,Q)}_trapFocus(){const we=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||we.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Q=>{Q||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 we=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&we&&"function"==typeof we.focus){const Q=(0,w.ht)(),Ge=this._elementRef.nativeElement;(!Q||Q===this._document.body||Q===Ge||Ge.contains(Q))&&(this._focusMonitor?(this._focusMonitor.focusVia(we,this._closeInteractionType),this._closeInteractionType=null):we.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const we=this._elementRef.nativeElement,Q=(0,w.ht)();return we===Q||we.contains(Q)}}return xe.\u0275fac=function(we){return new(we||xe)(f.Y36(f.SBq),f.Y36(L.qV),f.Y36(f.sBO),f.Y36(S.K0,8),f.Y36(ne),f.Y36(L.ic),f.Y36(f.R0b),f.Y36(L.tE))},xe.\u0275dir=f.lG2({type:xe,viewQuery:function(we,Q){if(1&we&&f.Gf(e.Pl,7),2&we){let Ge;f.iGM(Ge=f.CRH())&&(Q._portalOutlet=Ge.first)}},features:[f.qOj]}),xe})(),te=(()=>{class xe extends ee{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:we,totalTime:Q}){"enter"===we?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Q})):"exit"===we&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Q}))}_onAnimationStart({toState:we,totalTime:Q}){"enter"===we?this._animationStateChanged.next({state:"opening",totalTime:Q}):("exit"===we||"void"===we)&&this._animationStateChanged.next({state:"closing",totalTime:Q})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return xe.\u0275fac=function(){let Re;return function(Q){return(Re||(Re=f.n5z(xe)))(Q||xe)}}(),xe.\u0275cmp=f.Xpm({type:xe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(we,Q){1&we&&f.WFA("@dialogContainer.start",function(ve){return Q._onAnimationStart(ve)})("@dialogContainer.done",function(ve){return Q._onAnimationDone(ve)}),2&we&&(f.Ikx("id",Q._id),f.uIk("role",Q._config.role)("aria-labelledby",Q._config.ariaLabel?null:Q._ariaLabelledBy)("aria-label",Q._config.ariaLabel)("aria-describedby",Q._config.ariaDescribedBy||null),f.d8E("@dialogContainer",Q._state))},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(we,Q){1&we&&f.YNc(0,j,0,0,"ng-template",0)},directives:[e.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]}}),xe})(),ce=0;class J{constructor(Re,we,Q="mat-dialog-"+ce++){this._overlayRef=Re,this._containerInstance=we,this.id=Q,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new b.x,this._afterClosed=new b.x,this._beforeClosed=new b.x,this._state=0,we._id=Q,we._animationStateChanged.pipe((0,h.h)(Ge=>"opened"===Ge.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),we._animationStateChanged.pipe((0,h.h)(Ge=>"closed"===Ge.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Re.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Re.keydownEvents().pipe((0,h.h)(Ge=>Ge.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Ge))).subscribe(Ge=>{Ge.preventDefault(),ge(this,"keyboard")}),Re.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ge(this,"mouse")})}close(Re){this._result=Re,this._containerInstance._animationStateChanged.pipe((0,h.h)(we=>"closing"===we.state),(0,A.q)(1)).subscribe(we=>{this._beforeClosed.next(Re),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),we.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(Re){let we=this._getPositionStrategy();return Re&&(Re.left||Re.right)?Re.left?we.left(Re.left):we.right(Re.right):we.centerHorizontally(),Re&&(Re.top||Re.bottom)?Re.top?we.top(Re.top):we.bottom(Re.bottom):we.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Re="",we=""){return this._overlayRef.updateSize({width:Re,height:we}),this._overlayRef.updatePosition(),this}addPanelClass(Re){return this._overlayRef.addPanelClass(Re),this}removePanelClass(Re){return this._overlayRef.removePanelClass(Re),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ge(xe,Re,we){return void 0!==xe._containerInstance&&(xe._containerInstance._closeInteractionType=Re),xe.close(we)}const y=new f.OlP("MatDialogData"),i=new f.OlP("mat-dialog-default-options"),r=new f.OlP("mat-dialog-scroll-strategy"),C={provide:r,deps:[t.aV],useFactory:function c(xe){return()=>xe.scrollStrategies.block()}};let E=(()=>{class xe{constructor(we,Q,Ge,ve,F,Ae,lt,Ie,De,oe){this._overlay=we,this._injector=Q,this._defaultOptions=Ge,this._parentDialog=ve,this._overlayContainer=F,this._dialogRefConstructor=lt,this._dialogContainerType=Ie,this._dialogDataToken=De,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.x,this._afterOpenedAtThisLevel=new b.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,D.O)(void 0))),this._scrollStrategy=Ae}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const we=this._parentDialog;return we?we._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(we,Q){Q=function _(xe,Re){return Object.assign(Object.assign({},Re),xe)}(Q,this._defaultOptions||new ne),Q.id&&this.getDialogById(Q.id);const Ge=this._createOverlay(Q),ve=this._attachDialogContainer(Ge,Q),F=this._attachDialogContent(we,ve,Ge,Q);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(F),F.afterClosed().subscribe(()=>this._removeOpenDialog(F)),this.afterOpened.next(F),ve._initializeWithAttachedContent(),F}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(we){return this.openDialogs.find(Q=>Q.id===we)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(we){const Q=this._getOverlayConfig(we);return this._overlay.create(Q)}_getOverlayConfig(we){const Q=new t.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:we.scrollStrategy||this._scrollStrategy(),panelClass:we.panelClass,hasBackdrop:we.hasBackdrop,direction:we.direction,minWidth:we.minWidth,minHeight:we.minHeight,maxWidth:we.maxWidth,maxHeight:we.maxHeight,disposeOnNavigation:we.closeOnNavigation});return we.backdropClass&&(Q.backdropClass=we.backdropClass),Q}_attachDialogContainer(we,Q){const ve=f.zs3.create({parent:Q&&Q.viewContainerRef&&Q.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:Q}]}),F=new e.C5(this._dialogContainerType,Q.viewContainerRef,ve,Q.componentFactoryResolver);return we.attach(F).instance}_attachDialogContent(we,Q,Ge,ve){const F=new this._dialogRefConstructor(Ge,Q,ve.id);if(we instanceof f.Rgc)Q.attachTemplatePortal(new e.UE(we,null,{$implicit:ve.data,dialogRef:F}));else{const Ae=this._createInjector(ve,F,Q),lt=Q.attachComponentPortal(new e.C5(we,ve.viewContainerRef,Ae,ve.componentFactoryResolver));F.componentInstance=lt.instance}return F.updateSize(ve.width,ve.height).updatePosition(ve.position),F}_createInjector(we,Q,Ge){const ve=we&&we.viewContainerRef&&we.viewContainerRef.injector,F=[{provide:this._dialogContainerType,useValue:Ge},{provide:this._dialogDataToken,useValue:we.data},{provide:this._dialogRefConstructor,useValue:Q}];return we.direction&&(!ve||!ve.get(a.Is,null,f.XFs.Optional))&&F.push({provide:a.Is,useValue:{value:we.direction,change:(0,N.of)()}}),f.zs3.create({parent:ve||this._injector,providers:F})}_removeOpenDialog(we){const Q=this.openDialogs.indexOf(we);Q>-1&&(this.openDialogs.splice(Q,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ge,ve)=>{Ge?ve.setAttribute("aria-hidden",Ge):ve.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const we=this._overlayContainer.getContainerElement();if(we.parentElement){const Q=we.parentElement.children;for(let Ge=Q.length-1;Ge>-1;Ge--){let ve=Q[Ge];ve!==we&&"SCRIPT"!==ve.nodeName&&"STYLE"!==ve.nodeName&&!ve.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ve,ve.getAttribute("aria-hidden")),ve.setAttribute("aria-hidden","true"))}}}_closeDialogs(we){let Q=we.length;for(;Q--;)we[Q].close()}}return xe.\u0275fac=function(we){f.$Z()},xe.\u0275dir=f.lG2({type:xe}),xe})(),O=(()=>{class xe extends E{constructor(we,Q,Ge,ve,F,Ae,lt,Ie){super(we,Q,ve,Ae,lt,F,J,te,y,Ie)}}return xe.\u0275fac=function(we){return new(we||xe)(f.LFG(t.aV),f.LFG(f.zs3),f.LFG(S.Ye,8),f.LFG(i,8),f.LFG(r),f.LFG(xe,12),f.LFG(t.Xj),f.LFG(Z.Qb,8))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac}),xe})(),v=(()=>{class xe{constructor(we,Q,Ge){this.dialogRef=we,this._elementRef=Q,this._dialog=Ge,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function se(xe,Re){let we=xe.nativeElement.parentElement;for(;we&&!we.classList.contains("mat-dialog-container");)we=we.parentElement;return we?Re.find(Q=>Q.id===we.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(we){const Q=we._matDialogClose||we._matDialogCloseResult;Q&&(this.dialogResult=Q.currentValue)}_onButtonClick(we){ge(this.dialogRef,0===we.screenX&&0===we.screenY?"keyboard":"mouse",this.dialogResult)}}return xe.\u0275fac=function(we){return new(we||xe)(f.Y36(J,8),f.Y36(f.SBq),f.Y36(O))},xe.\u0275dir=f.lG2({type:xe,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(we,Q){1&we&&f.NdJ("click",function(ve){return Q._onButtonClick(ve)}),2&we&&f.uIk("aria-label",Q.ariaLabel||null)("type",Q.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[f.TTD]}),xe})(),fe=(()=>{class xe{}return xe.\u0275fac=function(we){return new(we||xe)},xe.\u0275mod=f.oAB({type:xe}),xe.\u0275inj=f.cJS({providers:[O,C],imports:[[t.U8,e.eL,M.BQ],M.BQ]}),xe})()},4834:(Fe,Y,p)=>{"use strict";p.d(Y,{d:()=>M,t:()=>a});var t=p(5e3),e=p(3191),f=p(508);let M=(()=>{class b{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(N){this._vertical=(0,e.Ig)(N)}get inset(){return this._inset}set inset(N){this._inset=(0,e.Ig)(N)}}return b.\u0275fac=function(N){return new(N||b)},b.\u0275cmp=t.Xpm({type:b,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(N,h){2&N&&(t.uIk("aria-orientation",h.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",h.vertical)("mat-divider-horizontal",!h.vertical)("mat-divider-inset",h.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(N,h){},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}),b})(),a=(()=>{class b{}return b.\u0275fac=function(N){return new(N||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),b})()},1125:(Fe,Y,p)=>{"use strict";p.d(Y,{pp:()=>we,To:()=>Q,ib:()=>B,u4:()=>xe,yz:()=>fe,yK:()=>Re});var t=p(5e3),e=p(3191),f=p(7579),M=p(727),a=p(449);let b=0;const d=new t.OlP("CdkAccordion");let N=(()=>{class Ge{constructor(){this._stateChanges=new f.x,this._openCloseAllActions=new f.x,this.id="cdk-accordion-"+b++,this._multi=!1}get multi(){return this._multi}set multi(F){this._multi=(0,e.Ig)(F)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(F){this._stateChanges.next(F)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:d,useExisting:Ge}]),t.TTD]}),Ge})(),h=0,A=(()=>{class Ge{constructor(F,Ae,lt){this.accordion=F,this._changeDetectorRef=Ae,this._expansionDispatcher=lt,this._openCloseAllSubscription=M.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=lt.listen((Ie,De)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===De&&this.id!==Ie&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(F){F=(0,e.Ig)(F),this._expanded!==F&&(this._expanded=F,this.expandedChange.emit(F),F?(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(F){this._disabled=(0,e.Ig)(F)}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(F=>{this.disabled||(this.expanded=F)})}}return Ge.\u0275fac=function(F){return new(F||Ge)(t.Y36(d,12),t.Y36(t.sBO),t.Y36(a.A8))},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:d,useValue:void 0}])]}),Ge})(),D=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275mod=t.oAB({type:Ge}),Ge.\u0275inj=t.cJS({}),Ge})();var w=p(7429),S=p(9808),I=p(508),L=p(5664),U=p(1884),Z=p(8675),j=p(9300),ne=p(5698),X=p(1159),de=p(6360),ee=p(515),te=p(6451),ce=p(1777);const J=["body"];function ge(Ge,ve){}const y=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function r(Ge,ve){if(1&Ge&&t._UZ(0,"span",2),2&Ge){const F=t.oxw();t.Q6J("@indicatorRotate",F._getExpandedState())}}const u=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],c=["mat-panel-title","mat-panel-description","*"],C=new t.OlP("MAT_ACCORDION"),E="225ms cubic-bezier(0.4,0.0,0.2,1)",O={indicatorRotate:(0,ce.X$)("indicatorRotate",[(0,ce.SB)("collapsed, void",(0,ce.oB)({transform:"rotate(0deg)"})),(0,ce.SB)("expanded",(0,ce.oB)({transform:"rotate(180deg)"})),(0,ce.eR)("expanded <=> collapsed, void => collapsed",(0,ce.jt)(E))]),bodyExpansion:(0,ce.X$)("bodyExpansion",[(0,ce.SB)("collapsed, void",(0,ce.oB)({height:"0px",visibility:"hidden"})),(0,ce.SB)("expanded",(0,ce.oB)({height:"*",visibility:"visible"})),(0,ce.eR)("expanded <=> collapsed, void => collapsed",(0,ce.jt)(E))])};let _=(()=>{class Ge{constructor(F){this._template=F}}return Ge.\u0275fac=function(F){return new(F||Ge)(t.Y36(t.Rgc))},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ge})(),n=0;const v=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let B=(()=>{class Ge extends A{constructor(F,Ae,lt,Ie,De,oe,Te){super(F,Ae,lt),this._viewContainerRef=Ie,this._animationMode=oe,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new f.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new f.x,this.accordion=F,this._document=De,this._bodyAnimationDone.pipe((0,U.x)((ye,W)=>ye.fromState===W.fromState&&ye.toState===W.toState)).subscribe(ye=>{"void"!==ye.fromState&&("expanded"===ye.toState?this.afterExpand.emit():"collapsed"===ye.toState&&this.afterCollapse.emit())}),Te&&(this.hideToggle=Te.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(F){this._hideToggle=(0,e.Ig)(F)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(F){this._togglePosition=F}_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,Z.O)(null),(0,j.h)(()=>this.expanded&&!this._portal),(0,ne.q)(1)).subscribe(()=>{this._portal=new w.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(F){this._inputChanges.next(F)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const F=this._document.activeElement,Ae=this._body.nativeElement;return F===Ae||Ae.contains(F)}return!1}}return Ge.\u0275fac=function(F){return new(F||Ge)(t.Y36(C,12),t.Y36(t.sBO),t.Y36(a.A8),t.Y36(t.s_b),t.Y36(S.K0),t.Y36(de.Qb,8),t.Y36(v,8))},Ge.\u0275cmp=t.Xpm({type:Ge,selectors:[["mat-expansion-panel"]],contentQueries:function(F,Ae,lt){if(1&F&&t.Suo(lt,_,5),2&F){let Ie;t.iGM(Ie=t.CRH())&&(Ae._lazyContent=Ie.first)}},viewQuery:function(F,Ae){if(1&F&&t.Gf(J,5),2&F){let lt;t.iGM(lt=t.CRH())&&(Ae._body=lt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(F,Ae){2&F&&t.ekj("mat-expanded",Ae.expanded)("_mat-animation-noopable","NoopAnimations"===Ae._animationMode)("mat-expansion-panel-spacing",Ae._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:C,useValue:void 0}]),t.qOj,t.TTD],ngContentSelectors:i,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(F,Ae){1&F&&(t.F$t(y),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(Ie){return Ae._bodyAnimationDone.next(Ie)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,ge,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&F&&(t.xp6(1),t.Q6J("@bodyExpansion",Ae._getExpandedState())("id",Ae.id),t.uIk("aria-labelledby",Ae._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",Ae._portal))},directives:[w.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:[O.bodyExpansion]},changeDetection:0}),Ge})();class z{}const se=(0,I.sb)(z);let fe=(()=>{class Ge extends se{constructor(F,Ae,lt,Ie,De,oe,Te){super(),this.panel=F,this._element=Ae,this._focusMonitor=lt,this._changeDetectorRef=Ie,this._animationMode=oe,this._parentChangeSubscription=M.w0.EMPTY;const ye=F.accordion?F.accordion._stateChanges.pipe((0,j.h)(W=>!(!W.hideToggle&&!W.togglePosition))):ee.E;this.tabIndex=parseInt(Te||"")||0,this._parentChangeSubscription=(0,te.T)(F.opened,F.closed,ye,F._inputChanges.pipe((0,j.h)(W=>!!(W.hideToggle||W.disabled||W.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),F.closed.pipe((0,j.h)(()=>F._containsFocus())).subscribe(()=>lt.focusVia(Ae,"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 F=this._isExpanded();return F&&this.expandedHeight?this.expandedHeight:!F&&this.collapsedHeight?this.collapsedHeight:null}_keydown(F){switch(F.keyCode){case X.L_:case X.K5:(0,X.Vb)(F)||(F.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(F))}}focus(F,Ae){F?this._focusMonitor.focusVia(this._element,F,Ae):this._element.nativeElement.focus(Ae)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(F=>{F&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ge.\u0275fac=function(F){return new(F||Ge)(t.Y36(B,1),t.Y36(t.SBq),t.Y36(L.tE),t.Y36(t.sBO),t.Y36(v,8),t.Y36(de.Qb,8),t.$8M("tabindex"))},Ge.\u0275cmp=t.Xpm({type:Ge,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(F,Ae){1&F&&t.NdJ("click",function(){return Ae._toggle()})("keydown",function(Ie){return Ae._keydown(Ie)}),2&F&&(t.uIk("id",Ae.panel._headerId)("tabindex",Ae.tabIndex)("aria-controls",Ae._getPanelId())("aria-expanded",Ae._isExpanded())("aria-disabled",Ae.panel.disabled),t.Udp("height",Ae._getHeaderHeight()),t.ekj("mat-expanded",Ae._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ae._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ae._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ae._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:c,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(F,Ae){1&F&&(t.F$t(u),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,r,1,1,"span",1)),2&F&&(t.xp6(4),t.Q6J("ngIf",Ae._showToggle()))},directives:[S.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:[O.indicatorRotate]},changeDetection:0}),Ge})(),xe=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ge})(),Re=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275dir=t.lG2({type:Ge,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ge})(),we=(()=>{class Ge extends N{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(F){this._hideToggle=(0,e.Ig)(F)}ngAfterContentInit(){this._headers.changes.pipe((0,Z.O)(this._headers)).subscribe(F=>{this._ownHeaders.reset(F.filter(Ae=>Ae.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new L.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(F){this._keyManager.onKeydown(F)}_handleHeaderFocus(F){this._keyManager.updateActiveItem(F)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ge.\u0275fac=function(){let ve;return function(Ae){return(ve||(ve=t.n5z(Ge)))(Ae||Ge)}}(),Ge.\u0275dir=t.lG2({type:Ge,selectors:[["mat-accordion"]],contentQueries:function(F,Ae,lt){if(1&F&&t.Suo(lt,fe,5),2&F){let Ie;t.iGM(Ie=t.CRH())&&(Ae._headers=Ie)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(F,Ae){2&F&&t.ekj("mat-accordion-multi",Ae.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:C,useExisting:Ge}]),t.qOj]}),Ge})(),Q=(()=>{class Ge{}return Ge.\u0275fac=function(F){return new(F||Ge)},Ge.\u0275mod=t.oAB({type:Ge}),Ge.\u0275inj=t.cJS({imports:[[S.ez,I.BQ,D,w.eL]]}),Ge})()},7322:(Fe,Y,p)=>{"use strict";p.d(Y,{Eo:()=>n,G_:()=>oe,KE:()=>Te,R9:()=>ve,TO:()=>O,bx:()=>fe,lN:()=>ye});var t=p(7144),e=p(9808),f=p(5e3),M=p(508),a=p(3191),b=p(7579),d=p(6451),N=p(4968),h=p(8675),A=p(2722),D=p(5698),w=p(1777),S=p(6360),I=p(226),L=p(925);const U=["connectionContainer"],Z=["inputContainer"],j=["label"];function ne(W,$){1&W&&(f.ynx(0),f.TgZ(1,"div",14),f._UZ(2,"div",15)(3,"div",16)(4,"div",17),f.qZA(),f.TgZ(5,"div",18),f._UZ(6,"div",15)(7,"div",16)(8,"div",17),f.qZA(),f.BQk())}function X(W,$){if(1&W){const ue=f.EpF();f.TgZ(0,"div",19),f.NdJ("cdkObserveContent",function(){return f.CHM(ue),f.oxw().updateOutlineGap()}),f.Hsn(1,1),f.qZA()}if(2&W){const ue=f.oxw();f.Q6J("cdkObserveContentDisabled","outline"!=ue.appearance)}}function de(W,$){if(1&W&&(f.ynx(0),f.Hsn(1,2),f.TgZ(2,"span"),f._uU(3),f.qZA(),f.BQk()),2&W){const ue=f.oxw(2);f.xp6(3),f.Oqu(ue._control.placeholder)}}function ee(W,$){1&W&&f.Hsn(0,3,["*ngSwitchCase","true"])}function te(W,$){1&W&&(f.TgZ(0,"span",23),f._uU(1," *"),f.qZA())}function ce(W,$){if(1&W){const ue=f.EpF();f.TgZ(0,"label",20,21),f.NdJ("cdkObserveContent",function(){return f.CHM(ue),f.oxw().updateOutlineGap()}),f.YNc(2,de,4,1,"ng-container",12),f.YNc(3,ee,1,0,"ng-content",12),f.YNc(4,te,2,0,"span",22),f.qZA()}if(2&W){const ue=f.oxw();f.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),f.Q6J("cdkObserveContentDisabled","outline"!=ue.appearance)("id",ue._labelId)("ngSwitch",ue._hasLabel()),f.uIk("for",ue._control.id)("aria-owns",ue._control.id),f.xp6(2),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngIf",!ue.hideRequiredMarker&&ue._control.required&&!ue._control.disabled)}}function J(W,$){1&W&&(f.TgZ(0,"div",24),f.Hsn(1,4),f.qZA())}function ge(W,$){if(1&W&&(f.TgZ(0,"div",25),f._UZ(1,"span",26),f.qZA()),2&W){const ue=f.oxw();f.xp6(1),f.ekj("mat-accent","accent"==ue.color)("mat-warn","warn"==ue.color)}}function y(W,$){if(1&W&&(f.TgZ(0,"div"),f.Hsn(1,5),f.qZA()),2&W){const ue=f.oxw();f.Q6J("@transitionMessages",ue._subscriptAnimationState)}}function i(W,$){if(1&W&&(f.TgZ(0,"div",30),f._uU(1),f.qZA()),2&W){const ue=f.oxw(2);f.Q6J("id",ue._hintLabelId),f.xp6(1),f.Oqu(ue.hintLabel)}}function r(W,$){if(1&W&&(f.TgZ(0,"div",27),f.YNc(1,i,2,2,"div",28),f.Hsn(2,6),f._UZ(3,"div",29),f.Hsn(4,7),f.qZA()),2&W){const ue=f.oxw();f.Q6J("@transitionMessages",ue._subscriptAnimationState),f.xp6(1),f.Q6J("ngIf",ue.hintLabel)}}const u=["*",[["","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 E=new f.OlP("MatError");let O=(()=>{class W{constructor(ue,Ce){this.id="mat-error-"+C++,ue||Ce.nativeElement.setAttribute("aria-live","polite")}}return W.\u0275fac=function(ue){return new(ue||W)(f.$8M("aria-live"),f.Y36(f.SBq))},W.\u0275dir=f.lG2({type:W,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ue,Ce){2&ue&&f.uIk("id",Ce.id)},inputs:{id:"id"},features:[f._Bn([{provide:E,useExisting:W}])]}),W})();const _={transitionMessages:(0,w.X$)("transitionMessages",[(0,w.SB)("enter",(0,w.oB)({opacity:1,transform:"translateY(0%)"})),(0,w.eR)("void => enter",[(0,w.oB)({opacity:0,transform:"translateY(-5px)"}),(0,w.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let n=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W}),W})(),z=0;const se=new f.OlP("MatHint");let fe=(()=>{class W{constructor(){this.align="start",this.id="mat-hint-"+z++}}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(ue,Ce){2&ue&&(f.uIk("id",Ce.id)("align",null),f.ekj("mat-form-field-hint-end","end"===Ce.align))},inputs:{align:"align",id:"id"},features:[f._Bn([{provide:se,useExisting:W}])]}),W})(),xe=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-label"]]}),W})(),Re=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-placeholder"]]}),W})();const we=new f.OlP("MatPrefix"),Ge=new f.OlP("MatSuffix");let ve=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=f.lG2({type:W,selectors:[["","matSuffix",""]],features:[f._Bn([{provide:Ge,useExisting:W}])]}),W})(),F=0;const Ie=(0,M.pj)(class{constructor(W){this._elementRef=W}},"primary"),De=new f.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),oe=new f.OlP("MatFormField");let Te=(()=>{class W extends Ie{constructor(ue,Ce,Le,ct,ut,Dt,di){super(ue),this._changeDetectorRef=Ce,this._dir=Le,this._defaults=ct,this._platform=ut,this._ngZone=Dt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new b.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+F++,this._labelId="mat-form-field-label-"+F++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==di,this.appearance=ct&&ct.appearance?ct.appearance:"legacy",this._hideRequiredMarker=!(!ct||null==ct.hideRequiredMarker)&&ct.hideRequiredMarker}get appearance(){return this._appearance}set appearance(ue){const Ce=this._appearance;this._appearance=ue||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Ce!==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,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),ue.ngControl&&ue.ngControl.valueChanges&&ue.ngControl.valueChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,A.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,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,A.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 Ce=this._control?this._control.ngControl:null;return Ce&&Ce[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,N.R)(this._label.nativeElement,"transitionend").pipe((0,D.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 Ce=this._hintChildren?this._hintChildren.find(ct=>"start"===ct.align):null,Le=this._hintChildren?this._hintChildren.find(ct=>"end"===ct.align):null;Ce?ue.push(Ce.id):this._hintLabel&&ue.push(this._hintLabelId),Le&&ue.push(Le.id)}else this._errorChildren&&ue.push(...this._errorChildren.map(Ce=>Ce.id));this._control.setDescribedByIds(ue)}}_validateControlChild(){}updateOutlineGap(){const ue=this._label?this._label.nativeElement:null,Ce=this._connectionContainerRef.nativeElement,Le=".mat-form-field-outline-start",ct=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!ue||!ue.children.length||!ue.textContent.trim()){const Gt=Ce.querySelectorAll(`${Le}, ${ct}`);for(let ui=0;ui0?.75*gt+10:0}for(let Gt=0;Gt{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275mod=f.oAB({type:W}),W.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.Q8],M.BQ]}),W})()},3954:(Fe,Y,p)=>{"use strict";p.d(Y,{DX:()=>w,Il:()=>J,N6:()=>ge});var t=p(5e3),e=p(508),f=p(3191),M=p(226);const a=["*"];class h{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,u){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(r),this.tracker.fill(0,0,this.tracker.length),this.positions=u.map(c=>this._trackTile(c))}_trackTile(r){const u=this._findMatchingGap(r.colspan);return this._markTilePosition(u,r),this.columnIndex=u+r.colspan,new A(this.rowIndex,u)}_findMatchingGap(r){let u=-1,c=-1;do{this.columnIndex+r>this.tracker.length?(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)):(u=this.tracker.indexOf(0,this.columnIndex),-1!=u?(c=this._findGapEndIndex(u),this.columnIndex=u+1):(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)))}while(c-u{class i{constructor(u,c){this._element=u,this._gridList=c,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(u){this._rowspan=Math.round((0,f.su)(u))}get colspan(){return this._colspan}set colspan(u){this._colspan=Math.round((0,f.su)(u))}_setStyle(u,c){this._element.nativeElement.style[u]=c}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(D,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(u,c){2&u&&t.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(u,c){1&u&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.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}),i})();const Z=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class j{constructor(){this._rows=0,this._rowspan=0}init(r,u,c,C){this._gutterSize=te(r),this._rows=u.rowCount,this._rowspan=u.rowspan,this._cols=c,this._direction=C}getBaseTileSize(r,u){return`(${r}% - (${this._gutterSize} * ${u}))`}getTilePosition(r,u){return 0===u?"0":ee(`(${r} + ${this._gutterSize}) * ${u}`)}getTileSize(r,u){return`(${r} * ${u}) + (${u-1} * ${this._gutterSize})`}setStyle(r,u,c){let C=100/this._cols,E=(this._cols-1)/this._cols;this.setColStyles(r,c,C,E),this.setRowStyles(r,u,C,E)}setColStyles(r,u,c,C){let E=this.getBaseTileSize(c,C);r._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(E,u)),r._setStyle("width",ee(this.getTileSize(E,r.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(r){return`${this._rowspan} * ${this.getTileSize(r,1)}`}getComputedHeight(){return null}}class ne extends j{constructor(r){super(),this.fixedRowHeight=r}init(r,u,c,C){super.init(r,u,c,C),this.fixedRowHeight=te(this.fixedRowHeight),Z.test(this.fixedRowHeight)}setRowStyles(r,u){r._setStyle("top",this.getTilePosition(this.fixedRowHeight,u)),r._setStyle("height",ee(this.getTileSize(this.fixedRowHeight,r.rowspan)))}getComputedHeight(){return["height",ee(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["height",null]),r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}class X extends j{constructor(r){super(),this._parseRatio(r)}setRowStyles(r,u,c,C){this.baseTileHeight=this.getBaseTileSize(c/this.rowHeightRatio,C),r._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,u)),r._setStyle("paddingTop",ee(this.getTileSize(this.baseTileHeight,r.rowspan)))}getComputedHeight(){return["paddingBottom",ee(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["paddingBottom",null]),r._tiles.forEach(u=>{u._setStyle("marginTop",null),u._setStyle("paddingTop",null)})}_parseRatio(r){const u=r.split(":");this.rowHeightRatio=parseFloat(u[0])/parseFloat(u[1])}}class de extends j{setRowStyles(r,u){let E=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);r._setStyle("top",this.getTilePosition(E,u)),r._setStyle("height",ee(this.getTileSize(E,r.rowspan)))}reset(r){r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}function ee(i){return`calc(${i})`}function te(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let J=(()=>{class i{constructor(u,c){this._element=u,this._dir=c,this._gutter="1px"}get cols(){return this._cols}set cols(u){this._cols=Math.max(1,Math.round((0,f.su)(u)))}get gutterSize(){return this._gutter}set gutterSize(u){this._gutter=`${null==u?"":u}`}get rowHeight(){return this._rowHeight}set rowHeight(u){const c=`${null==u?"":u}`;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(u){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===u?new de:u&&u.indexOf(":")>-1?new X(u):new ne(u)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new h);const u=this._tileCoordinator,c=this._tiles.filter(E=>!E._gridList||E._gridList===this),C=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,c),this._tileStyler.init(this.gutterSize,u,this.cols,C),c.forEach((E,O)=>{const _=u.positions[O];this._tileStyler.setStyle(E,_.row,_.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(u){u&&(this._element.nativeElement.style[u[0]]=u[1])}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(M.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(u,c,C){if(1&u&&t.Suo(C,w,5),2&u){let E;t.iGM(E=t.CRH())&&(c._tiles=E)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(u,c){2&u&&t.uIk("cols",c.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:D,useExisting:i}])],ngContentSelectors:a,decls:2,vars:0,template:function(u,c){1&u&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.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}),i})(),ge=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[e.uc,e.BQ],e.uc,e.BQ]}),i})()},5245:(Fe,Y,p)=>{"use strict";p.d(Y,{Hw:()=>B,Ps:()=>P});var t=p(5e3),e=p(508),f=p(3191),M=p(9808),a=p(9646),b=p(2843),d=p(4128),N=p(727),h=p(8505),A=p(4004),D=p(262),w=p(8746),S=p(3099),I=p(5698),L=p(8138),U=p(2313);const Z=["*"];let j;function X(z){var se;return(null===(se=function ne(){if(void 0===j&&(j=null,"undefined"!=typeof window)){const z=window;void 0!==z.trustedTypes&&(j=z.trustedTypes.createPolicy("angular#components",{createHTML:se=>se}))}return j}())||void 0===se?void 0:se.createHTML(z))||z}function de(z){return Error(`Unable to find icon with the name "${z}"`)}function te(z){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${z}".`)}function ce(z){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${z}".`)}class J{constructor(se,fe,xe){this.url=se,this.svgText=fe,this.options=xe}}let ge=(()=>{class z{constructor(fe,xe,Re,we){this._httpClient=fe,this._sanitizer=xe,this._errorHandler=we,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=Re}addSvgIcon(fe,xe,Re){return this.addSvgIconInNamespace("",fe,xe,Re)}addSvgIconLiteral(fe,xe,Re){return this.addSvgIconLiteralInNamespace("",fe,xe,Re)}addSvgIconInNamespace(fe,xe,Re,we){return this._addSvgIconConfig(fe,xe,new J(Re,null,we))}addSvgIconResolver(fe){return this._resolvers.push(fe),this}addSvgIconLiteralInNamespace(fe,xe,Re,we){const Q=this._sanitizer.sanitize(t.q3G.HTML,Re);if(!Q)throw ce(Re);const Ge=X(Q);return this._addSvgIconConfig(fe,xe,new J("",Ge,we))}addSvgIconSet(fe,xe){return this.addSvgIconSetInNamespace("",fe,xe)}addSvgIconSetLiteral(fe,xe){return this.addSvgIconSetLiteralInNamespace("",fe,xe)}addSvgIconSetInNamespace(fe,xe,Re){return this._addSvgIconSetConfig(fe,new J(xe,null,Re))}addSvgIconSetLiteralInNamespace(fe,xe,Re){const we=this._sanitizer.sanitize(t.q3G.HTML,xe);if(!we)throw ce(xe);const Q=X(we);return this._addSvgIconSetConfig(fe,new J("",Q,Re))}registerFontClassAlias(fe,xe=fe){return this._fontCssClassesByAlias.set(fe,xe),this}classNameForFontAlias(fe){return this._fontCssClassesByAlias.get(fe)||fe}setDefaultFontSetClass(fe){return this._defaultFontSetClass=fe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(fe){const xe=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,fe);if(!xe)throw te(fe);const Re=this._cachedIconsByUrl.get(xe);return Re?(0,a.of)(r(Re)):this._loadSvgIconFromConfig(new J(fe,null)).pipe((0,h.b)(we=>this._cachedIconsByUrl.set(xe,we)),(0,A.U)(we=>r(we)))}getNamedSvgIcon(fe,xe=""){const Re=u(xe,fe);let we=this._svgIconConfigs.get(Re);if(we)return this._getSvgFromConfig(we);if(we=this._getIconConfigFromResolvers(xe,fe),we)return this._svgIconConfigs.set(Re,we),this._getSvgFromConfig(we);const Q=this._iconSetConfigs.get(xe);return Q?this._getSvgFromIconSetConfigs(fe,Q):(0,b._)(de(Re))}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,A.U)(xe=>r(xe)))}_getSvgFromIconSetConfigs(fe,xe){const Re=this._extractIconWithNameFromAnySet(fe,xe);if(Re)return(0,a.of)(Re);const we=xe.filter(Q=>!Q.svgText).map(Q=>this._loadSvgIconSetFromConfig(Q).pipe((0,D.K)(Ge=>{const F=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,Q.url)} failed: ${Ge.message}`;return this._errorHandler.handleError(new Error(F)),(0,a.of)(null)})));return(0,d.D)(we).pipe((0,A.U)(()=>{const Q=this._extractIconWithNameFromAnySet(fe,xe);if(!Q)throw de(fe);return Q}))}_extractIconWithNameFromAnySet(fe,xe){for(let Re=xe.length-1;Re>=0;Re--){const we=xe[Re];if(we.svgText&&we.svgText.toString().indexOf(fe)>-1){const Q=this._svgElementFromConfig(we),Ge=this._extractSvgIconFromSet(Q,fe,we.options);if(Ge)return Ge}}return null}_loadSvgIconFromConfig(fe){return this._fetchIcon(fe).pipe((0,h.b)(xe=>fe.svgText=xe),(0,A.U)(()=>this._svgElementFromConfig(fe)))}_loadSvgIconSetFromConfig(fe){return fe.svgText?(0,a.of)(null):this._fetchIcon(fe).pipe((0,h.b)(xe=>fe.svgText=xe))}_extractSvgIconFromSet(fe,xe,Re){const we=fe.querySelector(`[id="${xe}"]`);if(!we)return null;const Q=we.cloneNode(!0);if(Q.removeAttribute("id"),"svg"===Q.nodeName.toLowerCase())return this._setSvgAttributes(Q,Re);if("symbol"===Q.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Q),Re);const Ge=this._svgElementFromString(X(""));return Ge.appendChild(Q),this._setSvgAttributes(Ge,Re)}_svgElementFromString(fe){const xe=this._document.createElement("DIV");xe.innerHTML=fe;const Re=xe.querySelector("svg");if(!Re)throw Error(" tag not found");return Re}_toSvgElement(fe){const xe=this._svgElementFromString(X("")),Re=fe.attributes;for(let we=0;weX(Ae)),(0,w.x)(()=>this._inProgressUrlFetches.delete(Ge)),(0,S.B)());return this._inProgressUrlFetches.set(Ge,F),F}_addSvgIconConfig(fe,xe,Re){return this._svgIconConfigs.set(u(fe,xe),Re),this}_addSvgIconSetConfig(fe,xe){const Re=this._iconSetConfigs.get(fe);return Re?Re.push(xe):this._iconSetConfigs.set(fe,[xe]),this}_svgElementFromConfig(fe){if(!fe.svgElement){const xe=this._svgElementFromString(fe.svgText);this._setSvgAttributes(xe,fe.options),fe.svgElement=xe}return fe.svgElement}_getIconConfigFromResolvers(fe,xe){for(let Re=0;Rese?se.pathname+se.search:""}}}),_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],n=_.map(z=>`[${z}]`).join(", "),v=/^url\(['"]?#(.*?)['"]?\)$/;let B=(()=>{class z extends C{constructor(fe,xe,Re,we,Q){super(fe),this._iconRegistry=xe,this._location=we,this._errorHandler=Q,this._inline=!1,this._currentIconFetch=N.w0.EMPTY,Re||fe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(fe){this._inline=(0,f.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 xe=this._cleanupFontValue(fe);xe!==this._fontSet&&(this._fontSet=xe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(fe){const xe=this._cleanupFontValue(fe);xe!==this._fontIcon&&(this._fontIcon=xe,this._updateFontIconClasses())}_splitIconName(fe){if(!fe)return["",""];const xe=fe.split(":");switch(xe.length){case 1:return["",xe[0]];case 2:return xe;default:throw Error(`Invalid icon name: "${fe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const fe=this._elementsWithExternalReferences;if(fe&&fe.size){const xe=this._location.getPathname();xe!==this._previousPath&&(this._previousPath=xe,this._prependPathToReferences(xe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(fe){this._clearSvgElement();const xe=this._location.getPathname();this._previousPath=xe,this._cacheChildrenWithExternalReferences(fe),this._prependPathToReferences(xe),this._elementRef.nativeElement.appendChild(fe)}_clearSvgElement(){const fe=this._elementRef.nativeElement;let xe=fe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();xe--;){const Re=fe.childNodes[xe];(1!==Re.nodeType||"svg"===Re.nodeName.toLowerCase())&&Re.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const fe=this._elementRef.nativeElement,xe=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();xe!=this._previousFontSetClass&&(this._previousFontSetClass&&fe.classList.remove(this._previousFontSetClass),xe&&fe.classList.add(xe),this._previousFontSetClass=xe),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 xe=this._elementsWithExternalReferences;xe&&xe.forEach((Re,we)=>{Re.forEach(Q=>{we.setAttribute(Q.name,`url('${fe}#${Q.value}')`)})})}_cacheChildrenWithExternalReferences(fe){const xe=fe.querySelectorAll(n),Re=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let we=0;we{const Ge=xe[we],ve=Ge.getAttribute(Q),F=ve?ve.match(v):null;if(F){let Ae=Re.get(Ge);Ae||(Ae=[],Re.set(Ge,Ae)),Ae.push({name:Q,value:F[1]})}})}_updateSvgIcon(fe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),fe){const[xe,Re]=this._splitIconName(fe);xe&&(this._svgNamespace=xe),Re&&(this._svgName=Re),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Re,xe).pipe((0,I.q)(1)).subscribe(we=>this._setSvgElement(we),we=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${xe}:${Re}! ${we.message}`))})}}}return z.\u0275fac=function(fe){return new(fe||z)(t.Y36(t.SBq),t.Y36(ge),t.$8M("aria-hidden"),t.Y36(E),t.Y36(t.qLn))},z.\u0275cmp=t.Xpm({type:z,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(fe,xe){2&fe&&(t.uIk("data-mat-icon-type",xe._usingFontIcon()?"font":"svg")("data-mat-icon-name",xe._svgName||xe.fontIcon)("data-mat-icon-namespace",xe._svgNamespace||xe.fontSet),t.ekj("mat-icon-inline",xe.inline)("mat-icon-no-color","primary"!==xe.color&&"accent"!==xe.color&&"warn"!==xe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:Z,decls:1,vars:0,template:function(fe,xe){1&fe&&(t.F$t(),t.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}),z})(),P=(()=>{class z{}return z.\u0275fac=function(fe){return new(fe||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),z})()},7531:(Fe,Y,p)=>{"use strict";p.d(Y,{Jk:()=>L,Nt:()=>ne,c:()=>X});var t=p(3191),e=p(925),f=p(5e3),M=p(3075),a=p(508),b=p(7322),d=p(7579),N=p(515);const h=(0,e.i$)({passive:!0});let A=(()=>{class de{constructor(te,ce){this._platform=te,this._ngZone=ce,this._monitoredElements=new Map}monitor(te){if(!this._platform.isBrowser)return N.E;const ce=(0,t.fI)(te),J=this._monitoredElements.get(ce);if(J)return J.subject;const ge=new d.x,y="cdk-text-field-autofilled",i=r=>{"cdk-text-field-autofill-start"!==r.animationName||ce.classList.contains(y)?"cdk-text-field-autofill-end"===r.animationName&&ce.classList.contains(y)&&(ce.classList.remove(y),this._ngZone.run(()=>ge.next({target:r.target,isAutofilled:!1}))):(ce.classList.add(y),this._ngZone.run(()=>ge.next({target:r.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ce.addEventListener("animationstart",i,h),ce.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ce,{subject:ge,unlisten:()=>{ce.removeEventListener("animationstart",i,h)}}),ge}stopMonitoring(te){const ce=(0,t.fI)(te),J=this._monitoredElements.get(ce);J&&(J.unlisten(),J.subject.complete(),ce.classList.remove("cdk-text-field-autofill-monitored"),ce.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ce))}ngOnDestroy(){this._monitoredElements.forEach((te,ce)=>this.stopMonitoring(ce))}}return de.\u0275fac=function(te){return new(te||de)(f.LFG(e.t4),f.LFG(f.R0b))},de.\u0275prov=f.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),S=(()=>{class de{}return de.\u0275fac=function(te){return new(te||de)},de.\u0275mod=f.oAB({type:de}),de.\u0275inj=f.cJS({}),de})();const L=new f.OlP("MAT_INPUT_VALUE_ACCESSOR"),U=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Z=0;const j=(0,a.FD)(class{constructor(de,ee,te,ce){this._defaultErrorStateMatcher=de,this._parentForm=ee,this._parentFormGroup=te,this.ngControl=ce}});let ne=(()=>{class de extends j{constructor(te,ce,J,ge,y,i,r,u,c,C){super(i,ge,y,J),this._elementRef=te,this._platform=ce,this._autofillMonitor=u,this._formField=C,this._uid="mat-input-"+Z++,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,e.qK)().has(_)),this._iOSKeyupListener=_=>{const n=_.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const E=this._elementRef.nativeElement,O=E.nodeName.toLowerCase();this._inputValueAccessor=r||E,this._previousNativeValue=this.value,this.id=this.id,ce.IOS&&c.runOutsideAngular(()=>{te.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===O,this._isTextarea="textarea"===O,this._isInFormField=!!C,this._isNativeSelect&&(this.controlType=E.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(te){this._disabled=(0,t.Ig)(te),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(te){this._id=te||this._uid}get required(){var te,ce,J,ge;return null!==(ge=null!==(te=this._required)&&void 0!==te?te:null===(J=null===(ce=this.ngControl)||void 0===ce?void 0:ce.control)||void 0===J?void 0:J.hasValidator(M.kI.required))&&void 0!==ge&&ge}set required(te){this._required=(0,t.Ig)(te)}get type(){return this._type}set type(te){this._type=te||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(te){te!==this.value&&(this._inputValueAccessor.value=te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(te){this._readonly=(0,t.Ig)(te)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(te=>{this.autofilled=te.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(te){this._elementRef.nativeElement.focus(te)}_focusChanged(te){te!==this.focused&&(this.focused=te,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var te,ce;const J=(null===(ce=null===(te=this._formField)||void 0===te?void 0:te._hideControlPlaceholder)||void 0===ce?void 0:ce.call(te))?null:this.placeholder;if(J!==this._previousPlaceholder){const ge=this._elementRef.nativeElement;this._previousPlaceholder=J,J?ge.setAttribute("placeholder",J):ge.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const te=this._elementRef.nativeElement.value;this._previousNativeValue!==te&&(this._previousNativeValue=te,this.stateChanges.next())}_validateType(){U.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let te=this._elementRef.nativeElement.validity;return te&&te.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const te=this._elementRef.nativeElement,ce=te.options[0];return this.focused||te.multiple||!this.empty||!!(te.selectedIndex>-1&&ce&&ce.label)}return this.focused||!this.empty}setDescribedByIds(te){te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const te=this._elementRef.nativeElement;return this._isNativeSelect&&(te.multiple||te.size>1)}}return de.\u0275fac=function(te){return new(te||de)(f.Y36(f.SBq),f.Y36(e.t4),f.Y36(M.a5,10),f.Y36(M.F,8),f.Y36(M.sg,8),f.Y36(a.rD),f.Y36(L,10),f.Y36(A),f.Y36(f.R0b),f.Y36(b.G_,8))},de.\u0275dir=f.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(te,ce){1&te&&f.NdJ("focus",function(){return ce._focusChanged(!0)})("blur",function(){return ce._focusChanged(!1)})("input",function(){return ce._onInput()}),2&te&&(f.Ikx("disabled",ce.disabled)("required",ce.required),f.uIk("id",ce.id)("data-placeholder",ce.placeholder)("name",ce.name||null)("readonly",ce.readonly&&!ce._isNativeSelect||null)("aria-invalid",ce.empty&&ce.required?null:ce.errorState)("aria-required",ce.required),f.ekj("mat-input-server",ce._isServer)("mat-native-select-inline",ce._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:[f._Bn([{provide:b.Eo,useExisting:de}]),f.qOj,f.TTD]}),de})(),X=(()=>{class de{}return de.\u0275fac=function(te){return new(te||de)},de.\u0275mod=f.oAB({type:de}),de.\u0275inj=f.cJS({providers:[a.rD],imports:[[S,b.lN,a.BQ],S,b.lN]}),de})()},4623:(Fe,Y,p)=>{"use strict";p.d(Y,{Tg:()=>u,i$:()=>ge,ie:()=>v});var t=p(9808),e=p(5e3),f=p(508),M=p(3191),a=p(7579),b=p(2722),w=(p(8675),p(5664),p(449),p(1159),p(3075),p(4834));const S=["*"],L=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],U=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],de=(0,f.Id)((0,f.Kr)(class{})),ee=(0,f.Kr)(class{}),te=new e.OlP("MatList"),ce=new e.OlP("MatNavList");let ge=(()=>{class B extends de{constructor(z){super(),this._elementRef=z,this._stateChanges=new a.x,"action-list"===this._getListType()&&z.nativeElement.classList.add("mat-action-list")}_getListType(){const z=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===z?"list":"mat-action-list"===z?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return B.\u0275fac=function(z){return new(z||B)(e.Y36(e.SBq))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:te,useExisting:B}]),e.qOj,e.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(z,se){1&z&&(e.F$t(),e.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})(),y=(()=>{class B{}return B.\u0275fac=function(z){return new(z||B)},B.\u0275dir=e.lG2({type:B,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),B})(),i=(()=>{class B{}return B.\u0275fac=function(z){return new(z||B)},B.\u0275dir=e.lG2({type:B,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),B})(),u=(()=>{class B extends ee{constructor(z,se,fe,xe){super(),this._element=z,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(fe||xe&&"action-list"===xe._getListType()),this._list=fe||xe;const Re=this._getHostElement();"button"===Re.nodeName.toLowerCase()&&!Re.hasAttribute("type")&&Re.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,b.R)(this._destroyed)).subscribe(()=>{se.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(z){this._disabled=(0,M.Ig)(z)}ngAfterContentInit(){(0,f.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(z){return new(z||B)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ce,8),e.Y36(te,8))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(z,se,fe){if(1&z&&(e.Suo(fe,y,5),e.Suo(fe,i,5),e.Suo(fe,f.X2,5)),2&z){let xe;e.iGM(xe=e.CRH())&&(se._avatar=xe.first),e.iGM(xe=e.CRH())&&(se._icon=xe.first),e.iGM(xe=e.CRH())&&(se._lines=xe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(z,se){2&z&&e.ekj("mat-list-item-disabled",se.disabled)("mat-list-item-avatar",se._avatar||se._icon)("mat-list-item-with-avatar",se._avatar||se._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:U,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(z,se){1&z&&(e.F$t(L),e.TgZ(0,"span",0),e._UZ(1,"span",1),e.Hsn(2),e.TgZ(3,"span",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("matRippleTrigger",se._getHostElement())("matRippleDisabled",se._isRippleDisabled()))},directives:[f.wG],encapsulation:2,changeDetection:0}),B})(),v=(()=>{class B{}return B.\u0275fac=function(z){return new(z||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[[f.uc,f.si,f.BQ,f.us,t.ez],f.uc,f.BQ,f.us,w.t]}),B})()},2181:(Fe,Y,p)=>{"use strict";p.d(Y,{OP:()=>z,Tx:()=>De,VK:()=>we,p6:()=>Ie});var t=p(5664),e=p(3191),f=p(1159),M=p(5e3),a=p(7579),b=p(727),d=p(6451),N=p(9646),h=p(3101),A=p(8675),D=p(3900),w=p(5698),S=p(2722),I=p(9300),L=p(4086),U=p(1777),Z=p(7429),j=p(9808),ne=p(508),X=p(9776),de=p(925),ee=p(226),te=p(5303);const ce=["mat-menu-item",""];function J(oe,Te){1&oe&&(M.O4$(),M.TgZ(0,"svg",2),M._UZ(1,"polygon",3),M.qZA())}const ge=["*"];function y(oe,Te){if(1&oe){const ye=M.EpF();M.TgZ(0,"div",0),M.NdJ("keydown",function($){return M.CHM(ye),M.oxw()._handleKeydown($)})("click",function(){return M.CHM(ye),M.oxw().closed.emit("click")})("@transformMenu.start",function($){return M.CHM(ye),M.oxw()._onAnimationStart($)})("@transformMenu.done",function($){return M.CHM(ye),M.oxw()._onAnimationDone($)}),M.TgZ(1,"div",1),M.Hsn(2),M.qZA()()}if(2&oe){const ye=M.oxw();M.Q6J("id",ye.panelId)("ngClass",ye._classList)("@transformMenu",ye._panelAnimationState),M.uIk("aria-label",ye.ariaLabel||null)("aria-labelledby",ye.ariaLabelledby||null)("aria-describedby",ye.ariaDescribedby||null)}}const i={transformMenu:(0,U.X$)("transformMenu",[(0,U.SB)("void",(0,U.oB)({opacity:0,transform:"scale(0.8)"})),(0,U.eR)("void => enter",(0,U.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,U.oB)({opacity:1,transform:"scale(1)"}))),(0,U.eR)("* => void",(0,U.jt)("100ms 25ms linear",(0,U.oB)({opacity:0})))]),fadeInItems:(0,U.X$)("fadeInItems",[(0,U.SB)("showing",(0,U.oB)({opacity:1})),(0,U.eR)("void => *",[(0,U.oB)({opacity:0}),(0,U.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},c=new M.OlP("MatMenuContent"),B=new M.OlP("MAT_MENU_PANEL"),P=(0,ne.Kr)((0,ne.Id)(class{}));let z=(()=>{class oe extends P{constructor(ye,W,$,ue,Ce){var Le;super(),this._elementRef=ye,this._document=W,this._focusMonitor=$,this._parentMenu=ue,this._changeDetectorRef=Ce,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(ye,W){this._focusMonitor&&ye?this._focusMonitor.focusVia(this._getHostElement(),ye,W):this._getHostElement().focus(W),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(ye){this.disabled&&(ye.preventDefault(),ye.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ye;const W=this._elementRef.nativeElement.cloneNode(!0),$=W.querySelectorAll("mat-icon, .material-icons");for(let ue=0;ue<$.length;ue++)$[ue].remove();return(null===(ye=W.textContent)||void 0===ye?void 0:ye.trim())||""}_setHighlighted(ye){var W;this._highlighted=ye,null===(W=this._changeDetectorRef)||void 0===W||W.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return oe.\u0275fac=function(ye){return new(ye||oe)(M.Y36(M.SBq),M.Y36(j.K0),M.Y36(t.tE),M.Y36(B,8),M.Y36(M.sBO))},oe.\u0275cmp=M.Xpm({type:oe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ye,W){1&ye&&M.NdJ("click",function(ue){return W._checkDisabled(ue)})("mouseenter",function(){return W._handleMouseEnter()}),2&ye&&(M.uIk("role",W.role)("tabindex",W._getTabIndex())("aria-disabled",W.disabled.toString())("disabled",W.disabled||null),M.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",W._highlighted)("mat-menu-item-submenu-trigger",W._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[M.qOj],attrs:ce,ngContentSelectors:ge,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ye,W){1&ye&&(M.F$t(),M.Hsn(0),M._UZ(1,"div",0),M.YNc(2,J,2,0,"svg",1)),2&ye&&(M.xp6(1),M.Q6J("matRippleDisabled",W.disableRipple||W.disabled)("matRippleTrigger",W._getHostElement()),M.xp6(1),M.Q6J("ngIf",W._triggersSubmenu))},directives:[ne.wG,j.O5],encapsulation:2,changeDetection:0}),oe})();const se=new M.OlP("mat-menu-default-options",{providedIn:"root",factory:function fe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let xe=0,Re=(()=>{class oe{constructor(ye,W,$,ue){this._elementRef=ye,this._ngZone=W,this._defaultOptions=$,this._changeDetectorRef=ue,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new M.n_E,this._tabSubscription=b.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 M.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+xe++}get xPosition(){return this._xPosition}set xPosition(ye){this._xPosition=ye,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ye){this._yPosition=ye,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ye){this._overlapTrigger=(0,e.Ig)(ye)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ye){this._hasBackdrop=(0,e.Ig)(ye)}set panelClass(ye){const W=this._previousPanelClass;W&&W.length&&W.split(" ").forEach($=>{this._classList[$]=!1}),this._previousPanelClass=ye,ye&&ye.length&&(ye.split(" ").forEach($=>{this._classList[$]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ye){this.panelClass=ye}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new t.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,A.O)(this._directDescendantItems),(0,D.w)(ye=>(0,d.T)(...ye.map(W=>W._focused)))).subscribe(ye=>this._keyManager.updateActiveItem(ye)),this._directDescendantItems.changes.subscribe(ye=>{var W;const $=this._keyManager;if("enter"===this._panelAnimationState&&(null===(W=$.activeItem)||void 0===W?void 0:W._hasFocus())){const ue=ye.toArray(),Ce=Math.max(0,Math.min(ue.length-1,$.activeItemIndex||0));ue[Ce]&&!ue[Ce].disabled?$.setActiveItem(Ce):$.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,A.O)(this._directDescendantItems),(0,D.w)(W=>(0,d.T)(...W.map($=>$._hovered))))}addItem(ye){}removeItem(ye){}_handleKeydown(ye){const W=ye.keyCode,$=this._keyManager;switch(W){case f.hY:(0,f.Vb)(ye)||(ye.preventDefault(),this.closed.emit("keydown"));break;case f.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case f.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(W===f.LH||W===f.JH)&&$.setFocusOrigin("keyboard"),void $.onKeydown(ye)}ye.stopPropagation()}focusFirstItem(ye="program"){this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>{let W=null;if(this._directDescendantItems.length&&(W=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!W||!W.contains(document.activeElement)){const $=this._keyManager;$.setFocusOrigin(ye).setFirstItemActive(),!$.activeItem&&W&&W.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ye){const W=Math.min(this._baseElevation+ye,24),$=`${this._elevationPrefix}${W}`,ue=Object.keys(this._classList).find(Ce=>Ce.startsWith(this._elevationPrefix));(!ue||ue===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[$]=!0,this._previousElevation=$)}setPositionClasses(ye=this.xPosition,W=this.yPosition){var $;const ue=this._classList;ue["mat-menu-before"]="before"===ye,ue["mat-menu-after"]="after"===ye,ue["mat-menu-above"]="above"===W,ue["mat-menu-below"]="below"===W,null===($=this._changeDetectorRef)||void 0===$||$.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ye){this._animationDone.next(ye),this._isAnimating=!1}_onAnimationStart(ye){this._isAnimating=!0,"enter"===ye.toState&&0===this._keyManager.activeItemIndex&&(ye.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,A.O)(this._allItems)).subscribe(ye=>{this._directDescendantItems.reset(ye.filter(W=>W._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return oe.\u0275fac=function(ye){return new(ye||oe)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(se),M.Y36(M.sBO))},oe.\u0275dir=M.lG2({type:oe,contentQueries:function(ye,W,$){if(1&ye&&(M.Suo($,c,5),M.Suo($,z,5),M.Suo($,z,4)),2&ye){let ue;M.iGM(ue=M.CRH())&&(W.lazyContent=ue.first),M.iGM(ue=M.CRH())&&(W._allItems=ue),M.iGM(ue=M.CRH())&&(W.items=ue)}},viewQuery:function(ye,W){if(1&ye&&M.Gf(M.Rgc,5),2&ye){let $;M.iGM($=M.CRH())&&(W.templateRef=$.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"}}),oe})(),we=(()=>{class oe extends Re{constructor(ye,W,$,ue){super(ye,W,$,ue),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return oe.\u0275fac=function(ye){return new(ye||oe)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(se),M.Y36(M.sBO))},oe.\u0275cmp=M.Xpm({type:oe,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ye,W){2&ye&&M.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[M._Bn([{provide:B,useExisting:oe}]),M.qOj],ngContentSelectors:ge,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ye,W){1&ye&&(M.F$t(),M.YNc(0,y,3,6,"ng-template"))},directives:[j.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:[i.transformMenu,i.fadeInItems]},changeDetection:0}),oe})();const Q=new M.OlP("mat-menu-scroll-strategy"),ve={provide:Q,deps:[X.aV],useFactory:function Ge(oe){return()=>oe.scrollStrategies.reposition()}},Ae=(0,de.i$)({passive:!0});let lt=(()=>{class oe{constructor(ye,W,$,ue,Ce,Le,ct,ut,Dt){this._overlay=ye,this._element=W,this._viewContainerRef=$,this._menuItemInstance=Le,this._dir=ct,this._focusMonitor=ut,this._ngZone=Dt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.w0.EMPTY,this._hoverSubscription=b.w0.EMPTY,this._menuCloseSubscription=b.w0.EMPTY,this._handleTouchStart=di=>{(0,t.yG)(di)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new M.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new M.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=ue,this._parentMaterialMenu=Ce instanceof Re?Ce:void 0,W.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ae),Le&&(Le._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ye){this.menu=ye}get menu(){return this._menu}set menu(ye){ye!==this._menu&&(this._menu=ye,this._menuCloseSubscription.unsubscribe(),ye&&(this._menuCloseSubscription=ye.close.subscribe(W=>{this._destroyMenu(W),("click"===W||"tab"===W)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(W)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ae),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 ye=this._createOverlay(),W=ye.getConfig(),$=W.positionStrategy;this._setPosition($),W.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ye.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Re&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,S.R)(this.menu.close)).subscribe(()=>{$.withLockedPosition(!1).reapplyLastPosition(),$.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(ye,W){this._focusMonitor&&ye?this._focusMonitor.focusVia(this._element,ye,W):this._element.nativeElement.focus(W)}updatePosition(){var ye;null===(ye=this._overlayRef)||void 0===ye||ye.updatePosition()}_destroyMenu(ye){if(!this._overlayRef||!this.menuOpen)return;const W=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ye||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,W instanceof Re?(W._resetAnimation(),W.lazyContent?W._animationDone.pipe((0,I.h)($=>"void"===$.toState),(0,w.q)(1),(0,S.R)(W.lazyContent._attached)).subscribe({next:()=>W.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),W.lazyContent&&W.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 ye=0,W=this.menu.parentMenu;for(;W;)ye++,W=W.parentMenu;this.menu.setElevation(ye)}}_setIsMenuOpen(ye){this._menuOpen=ye,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ye)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ye=this._getOverlayConfig();this._subscribeToPositions(ye.positionStrategy),this._overlayRef=this._overlay.create(ye),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(ye){this.menu.setPositionClasses&&ye.positionChanges.subscribe(W=>{const $="start"===W.connectionPair.overlayX?"after":"before",ue="top"===W.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses($,ue)):this.menu.setPositionClasses($,ue)})}_setPosition(ye){let[W,$]="before"===this.menu.xPosition?["end","start"]:["start","end"],[ue,Ce]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Le,ct]=[ue,Ce],[ut,Dt]=[W,$],di=0;this.triggersSubmenu()?(Dt=W="before"===this.menu.xPosition?"start":"end",$=ut="end"===W?"start":"end",di="bottom"===ue?8:-8):this.menu.overlapTrigger||(Le="top"===ue?"bottom":"top",ct="top"===Ce?"bottom":"top"),ye.withPositions([{originX:W,originY:Le,overlayX:ut,overlayY:ue,offsetY:di},{originX:$,originY:Le,overlayX:Dt,overlayY:ue,offsetY:di},{originX:W,originY:ct,overlayX:ut,overlayY:Ce,offsetY:-di},{originX:$,originY:ct,overlayX:Dt,overlayY:Ce,offsetY:-di}])}_menuClosingActions(){const ye=this._overlayRef.backdropClick(),W=this._overlayRef.detachments(),$=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,N.of)(),ue=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,I.h)(Ce=>Ce!==this._menuItemInstance),(0,I.h)(()=>this._menuOpen)):(0,N.of)();return(0,d.T)(ye,$,ue,W)}_handleMousedown(ye){(0,t.X6)(ye)||(this._openedBy=0===ye.button?"mouse":void 0,this.triggersSubmenu()&&ye.preventDefault())}_handleKeydown(ye){const W=ye.keyCode;(W===f.K5||W===f.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(W===f.SV&&"ltr"===this.dir||W===f.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ye){this.triggersSubmenu()?(ye.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,I.h)(ye=>ye===this._menuItemInstance&&!ye.disabled),(0,L.g)(0,h.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Re&&this.menu._isAnimating?this.menu._animationDone.pipe((0,w.q)(1),(0,L.g)(0,h.E),(0,S.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return oe.\u0275fac=function(ye){return new(ye||oe)(M.Y36(X.aV),M.Y36(M.SBq),M.Y36(M.s_b),M.Y36(Q),M.Y36(B,8),M.Y36(z,10),M.Y36(ee.Is,8),M.Y36(t.tE),M.Y36(M.R0b))},oe.\u0275dir=M.lG2({type:oe,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ye,W){1&ye&&M.NdJ("click",function(ue){return W._handleClick(ue)})("mousedown",function(ue){return W._handleMousedown(ue)})("keydown",function(ue){return W._handleKeydown(ue)}),2&ye&&M.uIk("aria-expanded",W.menuOpen||null)("aria-controls",W.menuOpen?W.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"}}),oe})(),Ie=(()=>{class oe extends lt{}return oe.\u0275fac=function(){let Te;return function(W){return(Te||(Te=M.n5z(oe)))(W||oe)}}(),oe.\u0275dir=M.lG2({type:oe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[M.qOj]}),oe})(),De=(()=>{class oe{}return oe.\u0275fac=function(ye){return new(ye||oe)},oe.\u0275mod=M.oAB({type:oe}),oe.\u0275inj=M.cJS({providers:[ve],imports:[[j.ez,ne.BQ,ne.si,X.U8],te.ZD,ne.BQ]}),oe})()},6087:(Fe,Y,p)=>{"use strict";p.d(Y,{NW:()=>ce,TU:()=>J,ye:()=>U});var t=p(9808),e=p(5e3),f=p(508),M=p(7423),a=p(4107),b=p(7238),d=p(3191),N=p(7579),h=p(7322);function A(ge,y){if(1&ge&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&ge){const i=y.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}function D(ge,y){if(1&ge){const i=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(u){return e.CHM(i),e.oxw(2)._changePageSize(u.value)}),e.YNc(2,A,2,2,"mat-option",18),e.qZA()()}if(2&ge){const i=e.oxw(2);e.Q6J("appearance",i._formFieldAppearance)("color",i.color),e.xp6(1),e.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),e.xp6(1),e.Q6J("ngForOf",i._displayedPageSizeOptions)}}function w(ge,y){if(1&ge&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&ge){const i=e.oxw(2);e.xp6(1),e.Oqu(i.pageSize)}}function S(ge,y){if(1&ge&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,D,3,6,"mat-form-field",14),e.YNc(4,w,2,1,"div",15),e.qZA()),2&ge){const i=e.oxw();e.xp6(2),e.hij(" ",i._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function I(ge,y){if(1&ge){const i=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(i),e.oxw().firstPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&ge){const i=e.oxw();e.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.firstPageLabel)}}function L(ge,y){if(1&ge){const i=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){return e.CHM(i),e.oxw().lastPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&ge){const i=e.oxw();e.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.lastPageLabel)}}let U=(()=>{class ge{constructor(){this.changes=new N.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,r,u)=>{if(0==u||0==r)return`0 of ${u}`;const c=i*r;return`${c+1} \u2013 ${c<(u=Math.max(u,0))?Math.min(c+r,u):c+r} of ${u}`}}}return ge.\u0275fac=function(i){return new(i||ge)},ge.\u0275prov=e.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();const j={provide:U,deps:[[new e.FiY,new e.tp0,U]],useFactory:function Z(ge){return ge||new U}},de=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ee=(0,f.Id)((0,f.dB)(class{}));let te=(()=>{class ge extends ee{constructor(i,r,u){if(super(),this._intl=i,this._changeDetectorRef=r,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new e.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:c,pageSizeOptions:C,hidePageSize:E,showFirstLastButtons:O}=u;null!=c&&(this._pageSize=c),null!=C&&(this._pageSizeOptions=C),null!=E&&(this._hidePageSize=E),null!=O&&(this._showFirstLastButtons=O)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,d.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,d.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,d.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(r=>(0,d.su)(r)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,d.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,d.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndexi-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ge.\u0275fac=function(i){e.$Z()},ge.\u0275dir=e.lG2({type:ge,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[e.qOj]}),ge})(),ce=(()=>{class ge extends te{constructor(i,r,u){super(i,r,u),u&&null!=u.formFieldAppearance&&(this._formFieldAppearance=u.formFieldAppearance)}}return ge.\u0275fac=function(i){return new(i||ge)(e.Y36(U),e.Y36(e.sBO),e.Y36(de,8))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.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(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,S,5,3,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,I,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return r.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return r.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,L,3,5,"button",11),e.qZA()()()),2&i&&(e.xp6(2),e.Q6J("ngIf",!r.hidePageSize),e.xp6(3),e.hij(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),e.xp6(1),e.Q6J("ngIf",r.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),e.uIk("aria-label",r._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),e.uIk("aria-label",r._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",r.showFirstLastButtons))},directives:[h.KE,a.gD,f.ey,M.lW,t.O5,t.sg,b.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}),ge})(),J=(()=>{class ge{}return ge.\u0275fac=function(i){return new(i||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({providers:[j],imports:[[t.ez,M.ot,a.LD,b.AV,f.BQ]]}),ge})()},5899:(Fe,Y,p)=>{"use strict";p.d(Y,{Cv:()=>Z,pW:()=>L});var t=p(5e3),e=p(9808),f=p(508),M=p(3191),a=p(6360),b=p(727),d=p(4968),N=p(9300);const h=["primaryValueBar"],A=(0,f.pj)(class{constructor(j){this._elementRef=j}},"primary"),D=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function w(){const j=(0,t.f3M)(e.K0),ne=j?j.location:null;return{getPathname:()=>ne?ne.pathname+ne.search:""}}}),S=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let I=0,L=(()=>{class j extends A{constructor(X,de,ee,te,ce,J){super(X),this._ngZone=de,this._animationMode=ee,this._changeDetectorRef=J,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._animationEndSubscription=b.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+I++;const ge=te?te.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${ge}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ee,ce&&(ce.color&&(this.color=this.defaultColor=ce.color),this.mode=ce.mode||this.mode)}get value(){return this._value}set value(X){var de;this._value=U((0,M.su)(X)||0),null===(de=this._changeDetectorRef)||void 0===de||de.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(X){var de;this._bufferValue=U(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,d.R)(X,"transitionend").pipe((0,N.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 j.\u0275fac=function(X){return new(X||j)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.Qb,8),t.Y36(D,8),t.Y36(S,8),t.Y36(t.sBO))},j.\u0275cmp=t.Xpm({type:j,selectors:[["mat-progress-bar"]],viewQuery:function(X,de){if(1&X&&t.Gf(h,5),2&X){let ee;t.iGM(ee=t.CRH())&&(de._primaryValueBar=ee.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(X,de){2&X&&(t.uIk("aria-valuenow","indeterminate"===de.mode||"query"===de.mode?null:de.value)("mode",de.mode),t.ekj("_mat-animation-noopable",de._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.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&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&X&&(t.xp6(3),t.Q6J("id",de.progressbarId),t.xp6(2),t.uIk("fill",de._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",de._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",de._primaryTransform()))},directives:[e.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}),j})();function U(j,ne=0,X=100){return Math.max(ne,Math.min(X,j))}let Z=(()=>{class j{}return j.\u0275fac=function(X){return new(X||j)},j.\u0275mod=t.oAB({type:j}),j.\u0275inj=t.cJS({imports:[[e.ez,f.BQ],f.BQ]}),j})()},773:(Fe,Y,p)=>{"use strict";p.d(Y,{Cq:()=>j,Ou:()=>Z});var t=p(3191),e=p(925),f=p(9808),M=p(5e3),a=p(508),b=p(6360),d=p(727),N=p(5303);function h(X,de){if(1&X&&(M.O4$(),M._UZ(0,"circle",4)),2&X){const ee=M.oxw(),te=M.MAs(1);M.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ee._spinnerAnimationLabel)("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(te)),M.uIk("r",ee._getCircleRadius())}}function A(X,de){if(1&X&&(M.O4$(),M._UZ(0,"circle",4)),2&X){const ee=M.oxw(),te=M.MAs(1);M.Udp("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(te)),M.uIk("r",ee._getCircleRadius())}}const S=(0,a.pj)(class{constructor(X){this._elementRef=X}},"primary"),I=new M.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function L(){return{diameter:100}}});class Z extends S{constructor(de,ee,te,ce,J,ge,y,i){super(de),this._document=te,this._diameter=100,this._value=0,this._resizeSubscription=d.w0.EMPTY,this.mode="determinate";const r=Z._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(te.head)||r.set(te.head,new Set([100])),this._noopAnimations="NoopAnimations"===ce&&!!J&&!J._forceAnimations,"mat-spinner"===de.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),J&&(J.diameter&&(this.diameter=J.diameter),J.strokeWidth&&(this.strokeWidth=J.strokeWidth)),ee.isBrowser&&ee.SAFARI&&y&&ge&&i&&(this._resizeSubscription=y.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>ge.markForCheck())}))}get diameter(){return this._diameter}set diameter(de){this._diameter=(0,t.su)(de),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(de){this._strokeWidth=(0,t.su)(de)}get value(){return"determinate"===this.mode?this._value:0}set value(de){this._value=Math.max(0,Math.min(100,(0,t.su)(de)))}ngOnInit(){const de=this._elementRef.nativeElement;this._styleRoot=(0,e.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 ee;const te=50*(null!==(ee=de.currentScale)&&void 0!==ee?ee:1);return`${te}% ${te}%`}_attachStyleNode(){const de=this._styleRoot,ee=this._diameter,te=Z._diameters;let ce=te.get(de);if(!ce||!ce.has(ee)){const J=this._document.createElement("style");J.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),J.textContent=this._getAnimationText(),de.appendChild(J),ce||(ce=new Set,te.set(de,ce)),ce.add(ee)}}_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(".","_")}}Z._diameters=new WeakMap,Z.\u0275fac=function(de){return new(de||Z)(M.Y36(M.SBq),M.Y36(e.t4),M.Y36(f.K0,8),M.Y36(b.Qb,8),M.Y36(I),M.Y36(M.sBO),M.Y36(N.rL),M.Y36(M.R0b))},Z.\u0275cmp=M.Xpm({type:Z,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(de,ee){2&de&&(M.uIk("aria-valuemin","determinate"===ee.mode?0:null)("aria-valuemax","determinate"===ee.mode?100:null)("aria-valuenow","determinate"===ee.mode?ee.value:null)("mode",ee.mode),M.Udp("width",ee.diameter,"px")("height",ee.diameter,"px"),M.ekj("_mat-animation-noopable",ee._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[M.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,ee){1&de&&(M.O4$(),M.TgZ(0,"svg",0,1),M.YNc(2,h,1,11,"circle",2),M.YNc(3,A,1,9,"circle",3),M.qZA()),2&de&&(M.Udp("width",ee.diameter,"px")("height",ee.diameter,"px"),M.Q6J("ngSwitch","indeterminate"===ee.mode),M.uIk("viewBox",ee._getViewBox()),M.xp6(2),M.Q6J("ngSwitchCase",!0),M.xp6(1),M.Q6J("ngSwitchCase",!1))},directives:[f.RF,f.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 j=(()=>{class X{}return X.\u0275fac=function(ee){return new(ee||X)},X.\u0275mod=M.oAB({type:X}),X.\u0275inj=M.cJS({imports:[[a.BQ,f.ez],a.BQ]}),X})()},9814:(Fe,Y,p)=>{"use strict";p.d(Y,{Fk:()=>te,U0:()=>ee,VQ:()=>j});var t=p(5e3),e=p(508),f=p(3191),M=p(3075),a=p(6360),b=p(5664),d=p(449);const N=["input"],h=function(ce){return{enterDuration:ce}},A=["*"],D=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function w(){return{color:"accent"}}});let S=0;const I={provide:M.JU,useExisting:(0,t.Gpc)(()=>j),multi:!0};class L{constructor(J,ge){this.source=J,this.value=ge}}const U=new t.OlP("MatRadioGroup");let Z=(()=>{class ce{constructor(ge){this._changeDetector=ge,this._value=null,this._name="mat-radio-group-"+S++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.vpe}get name(){return this._name}set name(ge){this._name=ge,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ge){this._labelPosition="before"===ge?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ge){this._value!==ge&&(this._value=ge,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ge){this._selected=ge,this.value=ge?ge.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ge){this._disabled=(0,f.Ig)(ge),this._markRadiosForCheck()}get required(){return this._required}set required(ge){this._required=(0,f.Ig)(ge),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ge=>{ge.name=this.name,ge._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(y=>{y.checked=this.value===y.value,y.checked&&(this._selected=y)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new L(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ge=>ge._markForCheck())}writeValue(ge){this.value=ge,this._changeDetector.markForCheck()}registerOnChange(ge){this._controlValueAccessorChangeFn=ge}registerOnTouched(ge){this.onTouched=ge}setDisabledState(ge){this.disabled=ge,this._changeDetector.markForCheck()}}return ce.\u0275fac=function(ge){return new(ge||ce)(t.Y36(t.sBO))},ce.\u0275dir=t.lG2({type:ce,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ce})(),j=(()=>{class ce extends Z{}return ce.\u0275fac=function(){let J;return function(y){return(J||(J=t.n5z(ce)))(y||ce)}}(),ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-radio-group"]],contentQueries:function(ge,y,i){if(1&ge&&t.Suo(i,ee,5),2&ge){let r;t.iGM(r=t.CRH())&&(y._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([I,{provide:U,useExisting:ce}]),t.qOj]}),ce})();class ne{constructor(J){this._elementRef=J}}const X=(0,e.Kr)((0,e.sb)(ne));let de=(()=>{class ce extends X{constructor(ge,y,i,r,u,c,C,E){super(y),this._changeDetector=i,this._focusMonitor=r,this._radioDispatcher=u,this._providerOverride=C,this._uniqueId="mat-radio-"+ ++S,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ge,this._noopAnimations="NoopAnimations"===c,E&&(this.tabIndex=(0,f.su)(E,0)),this._removeUniqueSelectionListener=u.listen((O,_)=>{O!==this.id&&_===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ge){const y=(0,f.Ig)(ge);this._checked!==y&&(this._checked=y,y&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!y&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),y&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ge){this._value!==ge&&(this._value=ge,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ge),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ge){this._labelPosition=ge}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ge){this._setDisabled((0,f.Ig)(ge))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ge){this._required=(0,f.Ig)(ge)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ge){this._color=ge}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ge,y){y?this._focusMonitor.focusVia(this._inputElement,y,ge):this._inputElement.nativeElement.focus(ge)}_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(ge=>{!ge&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new L(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ge){ge.stopPropagation()}_onInputInteraction(ge){if(ge.stopPropagation(),!this.checked&&!this.disabled){const y=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),y&&this.radioGroup._emitChangeEvent())}}_setDisabled(ge){this._disabled!==ge&&(this._disabled=ge,this._changeDetector.markForCheck())}_updateTabIndex(){var ge;const y=this.radioGroup;let i;if(i=y&&y.selected&&!this.disabled?y.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const r=null===(ge=this._inputElement)||void 0===ge?void 0:ge.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}}return ce.\u0275fac=function(ge){t.$Z()},ce.\u0275dir=t.lG2({type:ce,viewQuery:function(ge,y){if(1&ge&&t.Gf(N,5),2&ge){let i;t.iGM(i=t.CRH())&&(y._inputElement=i.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:[t.qOj]}),ce})(),ee=(()=>{class ce extends de{constructor(ge,y,i,r,u,c,C,E){super(ge,y,i,r,u,c,C,E)}}return ce.\u0275fac=function(ge){return new(ge||ce)(t.Y36(U,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(b.tE),t.Y36(d.A8),t.Y36(a.Qb,8),t.Y36(D,8),t.$8M("tabindex"))},ce.\u0275cmp=t.Xpm({type:ce,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ge,y){1&ge&&t.NdJ("focus",function(){return y._inputElement.nativeElement.focus()}),2&ge&&(t.uIk("tabindex",null)("id",y.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",y.checked)("mat-radio-disabled",y.disabled)("_mat-animation-noopable",y._noopAnimations)("mat-primary","primary"===y.color)("mat-accent","accent"===y.color)("mat-warn","warn"===y.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:A,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(ge,y){if(1&ge&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(r){return y._onInputInteraction(r)})("click",function(r){return y._onInputClick(r)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&ge){const i=t.MAs(1);t.uIk("for",y.inputId),t.xp6(5),t.Q6J("id",y.inputId)("checked",y.checked)("disabled",y.disabled)("required",y.required),t.uIk("name",y.name)("value",y.value)("aria-label",y.ariaLabel)("aria-labelledby",y.ariaLabelledby)("aria-describedby",y.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",y._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,h,y._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==y.labelPosition)}},directives:[e.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}),ce})(),te=(()=>{class ce{}return ce.\u0275fac=function(ge){return new(ge||ce)},ce.\u0275mod=t.oAB({type:ce}),ce.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),ce})()},4107:(Fe,Y,p)=>{"use strict";p.d(Y,{$L:()=>lt,LD:()=>oe,gD:()=>De});var t=p(9776),e=p(9808),f=p(5e3),M=p(508),a=p(7322),b=p(5303),d=p(5664),N=p(3191),h=p(449),A=p(1159),D=p(3075),w=p(7579),S=p(9770),I=p(6451),L=p(8675),U=p(3900),Z=p(5698),j=p(9300),ne=p(4004),X=p(1884),de=p(2722),ee=p(1777),te=p(226);const ce=["trigger"],J=["panel"];function ge(Te,ye){if(1&Te&&(f.TgZ(0,"span",8),f._uU(1),f.qZA()),2&Te){const W=f.oxw();f.xp6(1),f.Oqu(W.placeholder)}}function y(Te,ye){if(1&Te&&(f.TgZ(0,"span",12),f._uU(1),f.qZA()),2&Te){const W=f.oxw(2);f.xp6(1),f.Oqu(W.triggerValue)}}function i(Te,ye){1&Te&&f.Hsn(0,0,["*ngSwitchCase","true"])}function r(Te,ye){if(1&Te&&(f.TgZ(0,"span",9),f.YNc(1,y,2,1,"span",10),f.YNc(2,i,1,0,"ng-content",11),f.qZA()),2&Te){const W=f.oxw();f.Q6J("ngSwitch",!!W.customTrigger),f.xp6(2),f.Q6J("ngSwitchCase",!0)}}function u(Te,ye){if(1&Te){const W=f.EpF();f.TgZ(0,"div",13)(1,"div",14,15),f.NdJ("@transformPanel.done",function(ue){return f.CHM(W),f.oxw()._panelDoneAnimatingStream.next(ue.toState)})("keydown",function(ue){return f.CHM(W),f.oxw()._handleKeydown(ue)}),f.Hsn(3,1),f.qZA()()}if(2&Te){const W=f.oxw();f.Q6J("@transformPanelWrap",void 0),f.xp6(1),f.Gre("mat-select-panel ",W._getPanelTheme(),""),f.Udp("transform-origin",W._transformOrigin)("font-size",W._triggerFontSize,"px"),f.Q6J("ngClass",W.panelClass)("@transformPanel",W.multiple?"showing-multiple":"showing"),f.uIk("id",W.id+"-panel")("aria-multiselectable",W.multiple)("aria-label",W.ariaLabel||null)("aria-labelledby",W._getPanelAriaLabelledby())}}const c=[[["mat-select-trigger"]],"*"],C=["mat-select-trigger","*"],E={transformPanelWrap:(0,ee.X$)("transformPanelWrap",[(0,ee.eR)("* => void",(0,ee.IO)("@transformPanel",[(0,ee.pV)()],{optional:!0}))]),transformPanel:(0,ee.X$)("transformPanel",[(0,ee.SB)("void",(0,ee.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ee.SB)("showing",(0,ee.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ee.SB)("showing-multiple",(0,ee.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ee.eR)("void => *",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ee.eR)("* => void",(0,ee.jt)("100ms 25ms linear",(0,ee.oB)({opacity:0})))])};let v=0;const B=256,Re=new f.OlP("mat-select-scroll-strategy"),Q=new f.OlP("MAT_SELECT_CONFIG"),Ge={provide:Re,deps:[t.aV],useFactory:function we(Te){return()=>Te.scrollStrategies.reposition()}};class ve{constructor(ye,W){this.source=ye,this.value=W}}const F=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(Te,ye,W,$,ue){this._elementRef=Te,this._defaultErrorStateMatcher=ye,this._parentForm=W,this._parentFormGroup=$,this.ngControl=ue}})))),Ae=new f.OlP("MatSelectTrigger");let lt=(()=>{class Te{}return Te.\u0275fac=function(W){return new(W||Te)},Te.\u0275dir=f.lG2({type:Te,selectors:[["mat-select-trigger"]],features:[f._Bn([{provide:Ae,useExisting:Te}])]}),Te})(),Ie=(()=>{class Te extends F{constructor(W,$,ue,Ce,Le,ct,ut,Dt,di,Yt,Gt,ui,xt,Nt){var gt,et,vt;super(Le,Ce,ut,Dt,Yt),this._viewportRuler=W,this._changeDetectorRef=$,this._ngZone=ue,this._dir=ct,this._parentFormField=di,this._liveAnnouncer=xt,this._defaultOptions=Nt,this._panelOpen=!1,this._compareWith=($t,jt)=>$t===jt,this._uid="mat-select-"+v++,this._triggerAriaLabelledBy=null,this._destroy=new w.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+v++,this._panelDoneAnimatingStream=new w.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!==(vt=null===(et=this._defaultOptions)||void 0===et?void 0:et.disableOptionCentering)&&void 0!==vt&&vt,this.ariaLabel="",this.optionSelectionChanges=(0,S.P)(()=>{const $t=this.options;return $t?$t.changes.pipe((0,L.O)($t),(0,U.w)(()=>(0,I.T)(...$t.map(jt=>jt.onSelectionChange)))):this._ngZone.onStable.pipe((0,Z.q)(1),(0,U.w)(()=>this.optionSelectionChanges))}),this.openedChange=new f.vpe,this._openedStream=this.openedChange.pipe((0,j.h)($t=>$t),(0,ne.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,j.h)($t=>!$t),(0,ne.U)(()=>{})),this.selectionChange=new f.vpe,this.valueChange=new f.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Nt?void 0:Nt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Nt.typeaheadDebounceInterval),this._scrollStrategyFactory=ui,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(W){this._placeholder=W,this.stateChanges.next()}get required(){var W,$,ue,Ce;return null!==(Ce=null!==(W=this._required)&&void 0!==W?W:null===(ue=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===ue?void 0:ue.hasValidator(D.kI.required))&&void 0!==Ce&&Ce}set required(W){this._required=(0,N.Ig)(W),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(W){this._multiple=(0,N.Ig)(W)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(W){this._disableOptionCentering=(0,N.Ig)(W)}get compareWith(){return this._compareWith}set compareWith(W){this._compareWith=W,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(W){this._assignValue(W)&&this._onChange(W)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(W){this._typeaheadDebounceInterval=(0,N.su)(W)}get id(){return this._id}set id(W){this._id=W||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.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(W=>{W.added.forEach($=>$.select()),W.removed.forEach($=>$.deselect())}),this.options.changes.pipe((0,L.O)(null),(0,de.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const W=this._getTriggerAriaLabelledby(),$=this.ngControl;if(W!==this._triggerAriaLabelledBy){const ue=this._elementRef.nativeElement;this._triggerAriaLabelledBy=W,W?ue.setAttribute("aria-labelledby",W):ue.removeAttribute("aria-labelledby")}$&&(this._previousControl!==$.control&&(void 0!==this._previousControl&&null!==$.disabled&&$.disabled!==this.disabled&&(this.disabled=$.disabled),this._previousControl=$.control),this.updateErrorState())}ngOnChanges(W){W.disabled&&this.stateChanges.next(),W.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(W){this._assignValue(W)}registerOnChange(W){this._onChange=W}registerOnTouched(W){this._onTouched=W}setDisabledState(W){this.disabled=W,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var W,$;return this.multiple?(null===(W=this._selectionModel)||void 0===W?void 0:W.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const W=this._selectionModel.selected.map($=>$.viewValue);return this._isRtl()&&W.reverse(),W.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(W){this.disabled||(this.panelOpen?this._handleOpenKeydown(W):this._handleClosedKeydown(W))}_handleClosedKeydown(W){const $=W.keyCode,ue=$===A.JH||$===A.LH||$===A.oh||$===A.SV,Ce=$===A.K5||$===A.L_,Le=this._keyManager;if(!Le.isTyping()&&Ce&&!(0,A.Vb)(W)||(this.multiple||W.altKey)&&ue)W.preventDefault(),this.open();else if(!this.multiple){const ct=this.selected;Le.onKeydown(W);const ut=this.selected;ut&&ct!==ut&&this._liveAnnouncer.announce(ut.viewValue,1e4)}}_handleOpenKeydown(W){const $=this._keyManager,ue=W.keyCode,Ce=ue===A.JH||ue===A.LH,Le=$.isTyping();if(Ce&&W.altKey)W.preventDefault(),this.close();else if(Le||ue!==A.K5&&ue!==A.L_||!$.activeItem||(0,A.Vb)(W))if(!Le&&this._multiple&&ue===A.A&&W.ctrlKey){W.preventDefault();const ct=this.options.some(ut=>!ut.disabled&&!ut.selected);this.options.forEach(ut=>{ut.disabled||(ct?ut.select():ut.deselect())})}else{const ct=$.activeItemIndex;$.onKeydown(W),this._multiple&&Ce&&W.shiftKey&&$.activeItem&&$.activeItemIndex!==ct&&$.activeItem._selectViaInteraction()}else W.preventDefault(),$.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,Z.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(W){if(this._selectionModel.selected.forEach($=>$.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&W)Array.isArray(W),W.forEach($=>this._selectOptionByValue($)),this._sortValues();else{const $=this._selectOptionByValue(W);$?this._keyManager.updateActiveItem($):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(W){const $=this.options.find(ue=>{if(this._selectionModel.isSelected(ue))return!1;try{return null!=ue.value&&this._compareWith(ue.value,W)}catch(Ce){return!1}});return $&&this._selectionModel.select($),$}_assignValue(W){return!!(W!==this._value||this._multiple&&Array.isArray(W))&&(this.options&&this._setSelectionByValue(W),this._value=W,!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,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 W=(0,I.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,de.R)(W)).subscribe($=>{this._onSelect($.source,$.isUserInput),$.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,I.T)(...this.options.map($=>$._stateChanges)).pipe((0,de.R)(W)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(W,$){const ue=this._selectionModel.isSelected(W);null!=W.value||this._multiple?(ue!==W.selected&&(W.selected?this._selectionModel.select(W):this._selectionModel.deselect(W)),$&&this._keyManager.setActiveItem(W),this.multiple&&(this._sortValues(),$&&this.focus())):(W.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(W.value)),ue!==this._selectionModel.isSelected(W)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const W=this.options.toArray();this._selectionModel.sort(($,ue)=>this.sortComparator?this.sortComparator($,ue,W):W.indexOf($)-W.indexOf(ue)),this.stateChanges.next()}}_propagateChanges(W){let $=null;$=this.multiple?this.selected.map(ue=>ue.value):this.selected?this.selected.value:W,this._value=$,this.valueChange.emit($),this._onChange($),this.selectionChange.emit(this._getChangeEvent($)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var W;return!this._panelOpen&&!this.disabled&&(null===(W=this.options)||void 0===W?void 0:W.length)>0}focus(W){this._elementRef.nativeElement.focus(W)}_getPanelAriaLabelledby(){var W;if(this.ariaLabel)return null;const $=null===(W=this._parentFormField)||void 0===W?void 0:W.getLabelId();return this.ariaLabelledby?($?$+" ":"")+this.ariaLabelledby:$}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var W;if(this.ariaLabel)return null;const $=null===(W=this._parentFormField)||void 0===W?void 0:W.getLabelId();let ue=($?$+" ":"")+this._valueId;return this.ariaLabelledby&&(ue+=" "+this.ariaLabelledby),ue}_panelDoneAnimating(W){this.openedChange.emit(W)}setDescribedByIds(W){this._ariaDescribedby=W.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Te.\u0275fac=function(W){return new(W||Te)(f.Y36(b.rL),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(M.rD),f.Y36(f.SBq),f.Y36(te.Is,8),f.Y36(D.F,8),f.Y36(D.sg,8),f.Y36(a.G_,8),f.Y36(D.a5,10),f.$8M("tabindex"),f.Y36(Re),f.Y36(d.Kd),f.Y36(Q,8))},Te.\u0275dir=f.lG2({type:Te,viewQuery:function(W,$){if(1&W&&(f.Gf(ce,5),f.Gf(J,5),f.Gf(t.pI,5)),2&W){let ue;f.iGM(ue=f.CRH())&&($.trigger=ue.first),f.iGM(ue=f.CRH())&&($.panel=ue.first),f.iGM(ue=f.CRH())&&($._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:[f.qOj,f.TTD]}),Te})(),De=(()=>{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(W,$,ue){const Ce=this._getItemHeight();return Math.min(Math.max(0,Ce*W-$+Ce/2),ue)}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,Z.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(W){const $=(0,M.CB)(W,this.options,this.optionGroups),ue=this._getItemHeight();this.panel.nativeElement.scrollTop=0===W&&1===$?0:(0,M.jH)((W+$)*ue,ue,this.panel.nativeElement.scrollTop,B)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(W){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(W)}_getChangeEvent(W){return new ve(this,W)}_calculateOverlayOffsetX(){const W=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),$=this._viewportRuler.getViewportSize(),ue=this._isRtl(),Ce=this.multiple?56:32;let Le;if(this.multiple)Le=40;else if(this.disableOptionCentering)Le=16;else{let Dt=this._selectionModel.selected[0]||this.options.first;Le=Dt&&Dt.group?32:16}ue||(Le*=-1);const ct=0-(W.left+Le-(ue?Ce:0)),ut=W.right+Le-$.width+(ue?0:Ce);ct>0?Le+=ct+8:ut>0&&(Le-=ut+8),this._overlayDir.offsetX=Math.round(Le),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(W,$,ue){const Ce=this._getItemHeight(),Le=(Ce-this._triggerRect.height)/2,ct=Math.floor(B/Ce);let ut;return this.disableOptionCentering?0:(ut=0===this._scrollTop?W*Ce:this._scrollTop===ue?(W-(this._getItemCount()-ct))*Ce+(Ce-(this._getItemCount()*Ce-B)%Ce):$-Ce/2,Math.round(-1*ut-Le))}_checkOverlayWithinViewport(W){const $=this._getItemHeight(),ue=this._viewportRuler.getViewportSize(),Ce=this._triggerRect.top-8,Le=ue.height-this._triggerRect.bottom-8,ct=Math.abs(this._offsetY),Dt=Math.min(this._getItemCount()*$,B)-ct-this._triggerRect.height;Dt>Le?this._adjustPanelUp(Dt,Le):ct>Ce?this._adjustPanelDown(ct,Ce,W):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(W,$){const ue=Math.round(W-$);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(W,$,ue){const Ce=Math.round(W-$);if(this._scrollTop+=Ce,this._offsetY+=Ce,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=ue)return this._scrollTop=ue,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const W=this._getItemHeight(),$=this._getItemCount(),ue=Math.min($*W,B),Le=$*W-ue;let ct;ct=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ct+=(0,M.CB)(ct,this.options,this.optionGroups);const ut=ue/2;this._scrollTop=this._calculateOverlayScroll(ct,ut,Le),this._offsetY=this._calculateOverlayOffsetY(ct,ut,Le),this._checkOverlayWithinViewport(Le)}_getOriginBasedOnOption(){const W=this._getItemHeight(),$=(W-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-$+W/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Te.\u0275fac=function(){let ye;return function($){return(ye||(ye=f.n5z(Te)))($||Te)}}(),Te.\u0275cmp=f.Xpm({type:Te,selectors:[["mat-select"]],contentQueries:function(W,$,ue){if(1&W&&(f.Suo(ue,Ae,5),f.Suo(ue,M.ey,5),f.Suo(ue,M.K7,5)),2&W){let Ce;f.iGM(Ce=f.CRH())&&($.customTrigger=Ce.first),f.iGM(Ce=f.CRH())&&($.options=Ce),f.iGM(Ce=f.CRH())&&($.optionGroups=Ce)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(W,$){1&W&&f.NdJ("keydown",function(Ce){return $._handleKeydown(Ce)})("focus",function(){return $._onFocus()})("blur",function(){return $._onBlur()}),2&W&&(f.uIk("id",$.id)("tabindex",$.tabIndex)("aria-controls",$.panelOpen?$.id+"-panel":null)("aria-expanded",$.panelOpen)("aria-label",$.ariaLabel||null)("aria-required",$.required.toString())("aria-disabled",$.disabled.toString())("aria-invalid",$.errorState)("aria-describedby",$._ariaDescribedby||null)("aria-activedescendant",$._getAriaActiveDescendant()),f.ekj("mat-select-disabled",$.disabled)("mat-select-invalid",$.errorState)("mat-select-required",$.required)("mat-select-empty",$.empty)("mat-select-multiple",$.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[f._Bn([{provide:a.Eo,useExisting:Te},{provide:M.HF,useExisting:Te}]),f.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(W,$){if(1&W&&(f.F$t(c),f.TgZ(0,"div",0,1),f.NdJ("click",function(){return $.toggle()}),f.TgZ(3,"div",2),f.YNc(4,ge,2,1,"span",3),f.YNc(5,r,3,2,"span",4),f.qZA(),f.TgZ(6,"div",5),f._UZ(7,"div",6),f.qZA()(),f.YNc(8,u,4,14,"ng-template",7),f.NdJ("backdropClick",function(){return $.close()})("attach",function(){return $._onAttached()})("detach",function(){return $.close()})),2&W){const ue=f.MAs(1);f.uIk("aria-owns",$.panelOpen?$.id+"-panel":null),f.xp6(3),f.Q6J("ngSwitch",$.empty),f.uIk("id",$._valueId),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1),f.xp6(3),f.Q6J("cdkConnectedOverlayPanelClass",$._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",$._scrollStrategy)("cdkConnectedOverlayOrigin",ue)("cdkConnectedOverlayOpen",$.panelOpen)("cdkConnectedOverlayPositions",$._positions)("cdkConnectedOverlayMinWidth",null==$._triggerRect?null:$._triggerRect.width)("cdkConnectedOverlayOffsetY",$._offsetY)}},directives:[t.xu,e.RF,e.n9,e.ED,t.pI,e.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:[E.transformPanelWrap,E.transformPanel]},changeDetection:0}),Te})(),oe=(()=>{class Te{}return Te.\u0275fac=function(W){return new(W||Te)},Te.\u0275mod=f.oAB({type:Te}),Te.\u0275inj=f.cJS({providers:[Ge],imports:[[e.ez,t.U8,M.Ng,M.BQ],b.ZD,a.lN,M.Ng,M.BQ]}),Te})()},2638:(Fe,Y,p)=>{"use strict";p.d(Y,{JX:()=>xe,Rh:()=>fe,SJ:()=>we,TM:()=>Re});var t=p(5303),e=p(9808),f=p(5e3),M=p(508),a=p(3191),b=p(1159),d=p(7579),N=p(4968),h=p(6451),A=p(9300),D=p(4004),w=p(9718),S=p(2722),I=p(1884),L=p(5698),U=p(8675),Z=p(8372),j=p(1777),ne=p(6360),X=p(5664),de=p(925),ee=p(226);const te=["*"],ce=["content"];function J(Q,Ge){if(1&Q){const ve=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(ve),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&Q){const ve=f.oxw();f.ekj("mat-drawer-shown",ve._isShowingBackdrop())}}function ge(Q,Ge){1&Q&&(f.TgZ(0,"mat-drawer-content"),f.Hsn(1,2),f.qZA())}const y=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],i=["mat-drawer","mat-drawer-content","*"];function r(Q,Ge){if(1&Q){const ve=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(ve),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&Q){const ve=f.oxw();f.ekj("mat-drawer-shown",ve._isShowingBackdrop())}}function u(Q,Ge){1&Q&&(f.TgZ(0,"mat-sidenav-content"),f.Hsn(1,2),f.qZA())}const c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],C=["mat-sidenav","mat-sidenav-content","*"],O={transformDrawer:(0,j.X$)("transform",[(0,j.SB)("open, open-instant",(0,j.oB)({transform:"none",visibility:"visible"})),(0,j.SB)("void",(0,j.oB)({"box-shadow":"none",visibility:"hidden"})),(0,j.eR)("void => open-instant",(0,j.jt)("0ms")),(0,j.eR)("void <=> open, open-instant => void",(0,j.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},n=new f.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function B(){return!1}}),v=new f.OlP("MAT_DRAWER_CONTAINER");let P=(()=>{class Q extends t.PQ{constructor(ve,F,Ae,lt,Ie){super(Ae,lt,Ie),this._changeDetectorRef=ve,this._container=F}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Q.\u0275fac=function(ve){return new(ve||Q)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>se)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(ve,F){2&ve&&f.Udp("margin-left",F._container._contentMargins.left,"px")("margin-right",F._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:Q}]),f.qOj],ngContentSelectors:te,decls:1,vars:0,template:function(ve,F){1&ve&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),Q})(),z=(()=>{class Q{constructor(ve,F,Ae,lt,Ie,De,oe,Te){this._elementRef=ve,this._focusTrapFactory=F,this._focusMonitor=Ae,this._platform=lt,this._ngZone=Ie,this._interactivityChecker=De,this._doc=oe,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 f.vpe(!0),this._openedStream=this.openedChange.pipe((0,A.h)(ye=>ye),(0,D.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,A.h)(ye=>ye.fromState!==ye.toState&&0===ye.toState.indexOf("open")),(0,w.h)(void 0)),this._closedStream=this.openedChange.pipe((0,A.h)(ye=>!ye),(0,D.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,A.h)(ye=>ye.fromState!==ye.toState&&"void"===ye.toState),(0,w.h)(void 0)),this._destroyed=new d.x,this.onPositionChanged=new f.vpe,this._modeChanged=new d.x,this.openedChange.subscribe(ye=>{ye?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,N.R)(this._elementRef.nativeElement,"keydown").pipe((0,A.h)(ye=>ye.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(ye)),(0,S.R)(this._destroyed)).subscribe(ye=>this._ngZone.run(()=>{this.close(),ye.stopPropagation(),ye.preventDefault()}))}),this._animationEnd.pipe((0,I.x)((ye,W)=>ye.fromState===W.fromState&&ye.toState===W.toState)).subscribe(ye=>{const{fromState:W,toState:$}=ye;(0===$.indexOf("open")&&"void"===W||"void"===$&&0===W.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(ve){(ve="end"===ve?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(ve),this._position=ve,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(ve){this._mode=ve,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(ve){this._disableClose=(0,a.Ig)(ve)}get autoFocus(){const ve=this._autoFocus;return null==ve?"side"===this.mode?"dialog":"first-tabbable":ve}set autoFocus(ve){("true"===ve||"false"===ve||null==ve)&&(ve=(0,a.Ig)(ve)),this._autoFocus=ve}get opened(){return this._opened}set opened(ve){this.toggle((0,a.Ig)(ve))}_forceFocus(ve,F){this._interactivityChecker.isFocusable(ve)||(ve.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ae=()=>{ve.removeEventListener("blur",Ae),ve.removeEventListener("mousedown",Ae),ve.removeAttribute("tabindex")};ve.addEventListener("blur",Ae),ve.addEventListener("mousedown",Ae)})),ve.focus(F)}_focusByCssSelector(ve,F){let Ae=this._elementRef.nativeElement.querySelector(ve);Ae&&this._forceFocus(Ae,F)}_takeFocus(){if(!this._focusTrap)return;const ve=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(F=>{!F&&"function"==typeof this._elementRef.nativeElement.focus&&ve.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(ve){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,ve):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const ve=this._doc.activeElement;return!!ve&&this._elementRef.nativeElement.contains(ve)}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 ve;this._focusTrap&&this._focusTrap.destroy(),null===(ve=this._anchor)||void 0===ve||ve.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(ve){return this.toggle(!0,ve)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ve=!this.opened,F){ve&&F&&(this._openedVia=F);const Ae=this._setOpen(ve,!ve&&this._isFocusWithinDrawer(),this._openedVia||"program");return ve||(this._openedVia=null),Ae}_setOpen(ve,F,Ae){return this._opened=ve,ve?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",F&&this._restoreFocus(Ae)),this._updateFocusTrapState(),new Promise(lt=>{this.openedChange.pipe((0,L.q)(1)).subscribe(Ie=>lt(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(ve){const F=this._elementRef.nativeElement,Ae=F.parentNode;"end"===ve?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ae.insertBefore(this._anchor,F)),Ae.appendChild(F)):this._anchor&&this._anchor.parentNode.insertBefore(F,this._anchor)}}return Q.\u0275fac=function(ve){return new(ve||Q)(f.Y36(f.SBq),f.Y36(X.qV),f.Y36(X.tE),f.Y36(de.t4),f.Y36(f.R0b),f.Y36(X.ic),f.Y36(e.K0,8),f.Y36(v,8))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-drawer"]],viewQuery:function(ve,F){if(1&ve&&f.Gf(ce,5),2&ve){let Ae;f.iGM(Ae=f.CRH())&&(F._content=Ae.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ve,F){1&ve&&f.WFA("@transform.start",function(lt){return F._animationStarted.next(lt)})("@transform.done",function(lt){return F._animationEnd.next(lt)}),2&ve&&(f.uIk("align",null),f.d8E("@transform",F._animationState),f.ekj("mat-drawer-end","end"===F.position)("mat-drawer-over","over"===F.mode)("mat-drawer-push","push"===F.mode)("mat-drawer-side","side"===F.mode)("mat-drawer-opened",F.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:te,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ve,F){1&ve&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[O.transformDrawer]},changeDetection:0}),Q})(),se=(()=>{class Q{constructor(ve,F,Ae,lt,Ie,De=!1,oe){this._dir=ve,this._element=F,this._ngZone=Ae,this._changeDetectorRef=lt,this._animationMode=oe,this._drawers=new f.n_E,this.backdropClick=new f.vpe,this._destroyed=new d.x,this._doCheckSubject=new d.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.x,ve&&ve.change.pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ie.change().pipe((0,S.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(ve){this._autosize=(0,a.Ig)(ve)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(ve){this._backdropOverride=null==ve?null:(0,a.Ig)(ve)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,U.O)(this._allDrawers),(0,S.R)(this._destroyed)).subscribe(ve=>{this._drawers.reset(ve.filter(F=>!F._container||F._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,U.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(ve=>{this._watchDrawerToggle(ve),this._watchDrawerPosition(ve),this._watchDrawerMode(ve)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Z.b)(10),(0,S.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(ve=>ve.open())}close(){this._drawers.forEach(ve=>ve.close())}updateContentMargins(){let ve=0,F=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ve+=this._left._getWidth();else if("push"==this._left.mode){const Ae=this._left._getWidth();ve+=Ae,F-=Ae}if(this._right&&this._right.opened)if("side"==this._right.mode)F+=this._right._getWidth();else if("push"==this._right.mode){const Ae=this._right._getWidth();F+=Ae,ve-=Ae}ve=ve||null,F=F||null,(ve!==this._contentMargins.left||F!==this._contentMargins.right)&&(this._contentMargins={left:ve,right:F},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(ve){ve._animationStarted.pipe((0,A.h)(F=>F.fromState!==F.toState),(0,S.R)(this._drawers.changes)).subscribe(F=>{"open-instant"!==F.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ve.mode&&ve.openedChange.pipe((0,S.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ve.opened))}_watchDrawerPosition(ve){!ve||ve.onPositionChanged.pipe((0,S.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,L.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(ve){ve&&ve._modeChanged.pipe((0,S.R)((0,h.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ve){const F=this._element.nativeElement.classList,Ae="mat-drawer-container-has-open";ve?F.add(Ae):F.remove(Ae)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(ve=>{"end"==ve.position?this._end=ve:this._start=ve}),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(ve=>ve&&!ve.disableClose&&this._canHaveBackdrop(ve)).forEach(ve=>ve._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(ve){return"side"!==ve.mode||!!this._backdropOverride}_isDrawerOpen(ve){return null!=ve&&ve.opened}}return Q.\u0275fac=function(ve){return new(ve||Q)(f.Y36(ee.Is,8),f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(t.rL),f.Y36(n),f.Y36(ne.Qb,8))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-drawer-container"]],contentQueries:function(ve,F,Ae){if(1&ve&&(f.Suo(Ae,P,5),f.Suo(Ae,z,5)),2&ve){let lt;f.iGM(lt=f.CRH())&&(F._content=lt.first),f.iGM(lt=f.CRH())&&(F._allDrawers=lt)}},viewQuery:function(ve,F){if(1&ve&&f.Gf(P,5),2&ve){let Ae;f.iGM(Ae=f.CRH())&&(F._userContent=Ae.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ve,F){2&ve&&f.ekj("mat-drawer-container-explicit-backdrop",F._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[f._Bn([{provide:v,useExisting:Q}])],ngContentSelectors:i,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(ve,F){1&ve&&(f.F$t(y),f.YNc(0,J,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,ge,2,0,"mat-drawer-content",1)),2&ve&&(f.Q6J("ngIf",F.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!F._content))},directives:[P,e.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}),Q})(),fe=(()=>{class Q extends P{constructor(ve,F,Ae,lt,Ie){super(ve,F,Ae,lt,Ie)}}return Q.\u0275fac=function(ve){return new(ve||Q)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>Re)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(ve,F){2&ve&&f.Udp("margin-left",F._container._contentMargins.left,"px")("margin-right",F._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:Q}]),f.qOj],ngContentSelectors:te,decls:1,vars:0,template:function(ve,F){1&ve&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),Q})(),xe=(()=>{class Q extends z{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(ve){this._fixedInViewport=(0,a.Ig)(ve)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(ve){this._fixedTopGap=(0,a.su)(ve)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(ve){this._fixedBottomGap=(0,a.su)(ve)}}return Q.\u0275fac=function(){let Ge;return function(F){return(Ge||(Ge=f.n5z(Q)))(F||Q)}}(),Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(ve,F){2&ve&&(f.uIk("align",null),f.Udp("top",F.fixedInViewport?F.fixedTopGap:null,"px")("bottom",F.fixedInViewport?F.fixedBottomGap:null,"px"),f.ekj("mat-drawer-end","end"===F.position)("mat-drawer-over","over"===F.mode)("mat-drawer-push","push"===F.mode)("mat-drawer-side","side"===F.mode)("mat-drawer-opened",F.opened)("mat-sidenav-fixed",F.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[f.qOj],ngContentSelectors:te,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ve,F){1&ve&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[O.transformDrawer]},changeDetection:0}),Q})(),Re=(()=>{class Q extends se{}return Q.\u0275fac=function(){let Ge;return function(F){return(Ge||(Ge=f.n5z(Q)))(F||Q)}}(),Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-sidenav-container"]],contentQueries:function(ve,F,Ae){if(1&ve&&(f.Suo(Ae,fe,5),f.Suo(Ae,xe,5)),2&ve){let lt;f.iGM(lt=f.CRH())&&(F._content=lt.first),f.iGM(lt=f.CRH())&&(F._allDrawers=lt)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(ve,F){2&ve&&f.ekj("mat-drawer-container-explicit-backdrop",F._backdropOverride)},exportAs:["matSidenavContainer"],features:[f._Bn([{provide:v,useExisting:Q}]),f.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(ve,F){1&ve&&(f.F$t(c),f.YNc(0,r,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,u,2,0,"mat-sidenav-content",1)),2&ve&&(f.Q6J("ngIf",F.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!F._content))},directives:[fe,e.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}),Q})(),we=(()=>{class Q{}return Q.\u0275fac=function(ve){return new(ve||Q)},Q.\u0275mod=f.oAB({type:Q}),Q.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.ZD],t.ZD,M.BQ]}),Q})()},2368:(Fe,Y,p)=>{"use strict";p.d(Y,{Rr:()=>j,rP:()=>ee});var t=p(7144),e=p(5e3),f=p(508),M=p(3191),a=p(3075),b=p(6360),d=p(5664);const N=["thumbContainer"],h=["toggleBar"],A=["input"],D=function(te){return{enterDuration:te}},w=["*"],S=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let I=0;const L={provide:a.JU,useExisting:(0,e.Gpc)(()=>j),multi:!0};class U{constructor(ce,J){this.source=ce,this.checked=J}}const Z=(0,f.sb)((0,f.pj)((0,f.Kr)((0,f.Id)(class{constructor(te){this._elementRef=te}}))));let j=(()=>{class te extends Z{constructor(J,ge,y,i,r,u){super(J),this._focusMonitor=ge,this._changeDetectorRef=y,this.defaults=r,this._onChange=c=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++I,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 e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===u}get required(){return this._required}set required(J){this._required=(0,M.Ig)(J)}get checked(){return this._checked}set checked(J){this._checked=(0,M.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,ge){ge?this._focusMonitor.focusVia(this._inputElement,ge,J):this._inputElement.nativeElement.focus(J)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new U(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return te.\u0275fac=function(J){return new(J||te)(e.Y36(e.SBq),e.Y36(d.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(S),e.Y36(b.Qb,8))},te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-slide-toggle"]],viewQuery:function(J,ge){if(1&J&&(e.Gf(N,5),e.Gf(h,5),e.Gf(A,5)),2&J){let y;e.iGM(y=e.CRH())&&(ge._thumbEl=y.first),e.iGM(y=e.CRH())&&(ge._thumbBarEl=y.first),e.iGM(y=e.CRH())&&(ge._inputElement=y.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(J,ge){2&J&&(e.Ikx("id",ge.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),e.ekj("mat-checked",ge.checked)("mat-disabled",ge.disabled)("mat-slide-toggle-label-before","before"==ge.labelPosition)("_mat-animation-noopable",ge._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:[e._Bn([L]),e.qOj],ngContentSelectors:w,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,ge){if(1&J&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),e.NdJ("change",function(i){return ge._onChangeEvent(i)})("click",function(i){return ge._onInputClick(i)}),e.qZA(),e.TgZ(6,"span",6,7),e._UZ(8,"span",8),e.TgZ(9,"span",9),e._UZ(10,"span",10),e.qZA()()(),e.TgZ(11,"span",11,12),e.NdJ("cdkObserveContent",function(){return ge._onLabelTextChange()}),e.TgZ(13,"span",13),e._uU(14,"\xa0"),e.qZA(),e.Hsn(15),e.qZA()()),2&J){const y=e.MAs(1),i=e.MAs(12);e.uIk("for",ge.inputId),e.xp6(2),e.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(2),e.Q6J("id",ge.inputId)("required",ge.required)("tabIndex",ge.tabIndex)("checked",ge.checked)("disabled",ge.disabled),e.uIk("name",ge.name)("aria-checked",ge.checked)("aria-label",ge.ariaLabel)("aria-labelledby",ge.ariaLabelledby)("aria-describedby",ge.ariaDescribedby),e.xp6(5),e.Q6J("matRippleTrigger",y)("matRippleDisabled",ge.disableRipple||ge.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,D,ge._noopAnimations?0:150))}},directives:[f.wG,t.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}),te})(),de=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({}),te})(),ee=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({imports:[[de,f.si,f.BQ,t.Q8],de,f.BQ]}),te})()},7261:(Fe,Y,p)=>{"use strict";p.d(Y,{Ve:()=>ce,ZX:()=>te,ux:()=>y});var t=p(9776),e=p(7429),f=p(9808),M=p(5e3),a=p(508),b=p(7423),d=p(7579),N=p(5698),h=p(2722),A=p(1777),D=p(925),w=p(5113),S=p(5664);function I(i,r){if(1&i){const u=M.EpF();M.TgZ(0,"div",2)(1,"button",3),M.NdJ("click",function(){return M.CHM(u),M.oxw().action()}),M._uU(2),M.qZA()()}if(2&i){const u=M.oxw();M.xp6(2),M.Oqu(u.data.action)}}function L(i,r){}const U=new M.OlP("MatSnackBarData");class Z{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const j=Math.pow(2,31)-1;class ne{constructor(r,u){this._overlayRef=u,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,j))}_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 i{constructor(u,c){this.snackBarRef=u,this.data=c}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(ne),M.Y36(U))},i.\u0275cmp=M.Xpm({type:i,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(u,c){1&u&&(M.TgZ(0,"span",0),M._uU(1),M.qZA(),M.YNc(2,I,3,1,"div",1)),2&u&&(M.xp6(1),M.Oqu(c.data.message),M.xp6(1),M.Q6J("ngIf",c.hasAction))},directives:[b.lW,f.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}),i})();const de={snackBarState:(0,A.X$)("state",[(0,A.SB)("void, hidden",(0,A.oB)({transform:"scale(0.8)",opacity:0})),(0,A.SB)("visible",(0,A.oB)({transform:"scale(1)",opacity:1})),(0,A.eR)("* => visible",(0,A.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,A.eR)("* => void, * => hidden",(0,A.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,A.oB)({opacity:0})))])};let ee=(()=>{class i extends e.en{constructor(u,c,C,E,O){super(),this._ngZone=u,this._elementRef=c,this._changeDetectorRef=C,this._platform=E,this.snackBarConfig=O,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"!==O.politeness||O.announcementMessage?"off"===O.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(u)}attachTemplatePortal(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(u)}onAnimationEnd(u){const{fromState:c,toState:C}=u;if(("void"===C&&"void"!==c||"hidden"===C)&&this._completeExit(),"visible"===C){const E=this._onEnter;this._ngZone.run(()=>{E.next(),E.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,N.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const u=this._elementRef.nativeElement,c=this.snackBarConfig.panelClass;c&&(Array.isArray(c)?c.forEach(C=>u.classList.add(C)):u.classList.add(c)),"center"===this.snackBarConfig.horizontalPosition&&u.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&u.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const u=this._elementRef.nativeElement.querySelector("[aria-hidden]"),c=this._elementRef.nativeElement.querySelector("[aria-live]");if(u&&c){let C=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&u.contains(document.activeElement)&&(C=document.activeElement),u.removeAttribute("aria-hidden"),c.appendChild(u),null==C||C.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(M.R0b),M.Y36(M.SBq),M.Y36(M.sBO),M.Y36(D.t4),M.Y36(Z))},i.\u0275cmp=M.Xpm({type:i,selectors:[["snack-bar-container"]],viewQuery:function(u,c){if(1&u&&M.Gf(e.Pl,7),2&u){let C;M.iGM(C=M.CRH())&&(c._portalOutlet=C.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(u,c){1&u&&M.WFA("@state.done",function(E){return c.onAnimationEnd(E)}),2&u&&M.d8E("@state",c._animationState)},features:[M.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(u,c){1&u&&(M.TgZ(0,"div",0),M.YNc(1,L,0,0,"ng-template",1),M.qZA(),M._UZ(2,"div")),2&u&&(M.xp6(2),M.uIk("aria-live",c._live)("role",c._role))},directives:[e.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]}}),i})(),te=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=M.oAB({type:i}),i.\u0275inj=M.cJS({imports:[[t.U8,e.eL,f.ez,b.ot,a.BQ],a.BQ]}),i})();const ce=new M.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function J(){return new Z}});let ge=(()=>{class i{constructor(u,c,C,E,O,_){this._overlay=u,this._live=c,this._injector=C,this._breakpointObserver=E,this._parentSnackBar=O,this._defaultConfig=_,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}openFromComponent(u,c){return this._attach(u,c)}openFromTemplate(u,c){return this._attach(u,c)}open(u,c="",C){const E=Object.assign(Object.assign({},this._defaultConfig),C);return E.data={message:u,action:c},E.announcementMessage===u&&(E.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,E)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,c){const E=M.zs3.create({parent:c&&c.viewContainerRef&&c.viewContainerRef.injector||this._injector,providers:[{provide:Z,useValue:c}]}),O=new e.C5(this.snackBarContainerComponent,c.viewContainerRef,E),_=u.attach(O);return _.instance.snackBarConfig=c,_.instance}_attach(u,c){const C=Object.assign(Object.assign(Object.assign({},new Z),this._defaultConfig),c),E=this._createOverlay(C),O=this._attachSnackBarContainer(E,C),_=new ne(O,E);if(u instanceof M.Rgc){const n=new e.UE(u,null,{$implicit:C.data,snackBarRef:_});_.instance=O.attachTemplatePortal(n)}else{const n=this._createInjector(C,_),v=new e.C5(u,void 0,n),B=O.attachComponentPortal(v);_.instance=B.instance}return this._breakpointObserver.observe(w.u3.HandsetPortrait).pipe((0,h.R)(E.detachments())).subscribe(n=>{E.overlayElement.classList.toggle(this.handsetCssClass,n.matches)}),C.announcementMessage&&O._onAnnounce.subscribe(()=>{this._live.announce(C.announcementMessage,C.politeness)}),this._animateSnackBar(_,C),this._openedSnackBarRef=_,this._openedSnackBarRef}_animateSnackBar(u,c){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),c.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter(),c.duration&&c.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(c.duration))}_createOverlay(u){const c=new t.X_;c.direction=u.direction;let C=this._overlay.position().global();const E="rtl"===u.direction,O="left"===u.horizontalPosition||"start"===u.horizontalPosition&&!E||"end"===u.horizontalPosition&&E,_=!O&&"center"!==u.horizontalPosition;return O?C.left("0"):_?C.right("0"):C.centerHorizontally(),"top"===u.verticalPosition?C.top("0"):C.bottom("0"),c.positionStrategy=C,this._overlay.create(c)}_createInjector(u,c){return M.zs3.create({parent:u&&u.viewContainerRef&&u.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:c},{provide:U,useValue:u.data}]})}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(S.Kd),M.LFG(M.zs3),M.LFG(w.Yg),M.LFG(i,12),M.LFG(ce))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac}),i})(),y=(()=>{class i extends ge{constructor(u,c,C,E,O,_){super(u,c,C,E,O,_),this.simpleSnackBarComponent=X,this.snackBarContainerComponent=ee,this.handsetCssClass="mat-snack-bar-handset"}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(S.Kd),M.LFG(M.zs3),M.LFG(w.Yg),M.LFG(i,12),M.LFG(ce))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac,providedIn:te}),i})()},4847:(Fe,Y,p)=>{"use strict";p.d(Y,{JX:()=>i,YE:()=>ce,nU:()=>y});var t=p(5e3),e=p(3191),f=p(1159),M=p(508),a=p(7579),b=p(6451),d=p(1777),N=p(5664),h=p(9808);const A=["mat-sort-header",""];function D(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!1}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&r){const c=t.oxw();t.Q6J("@arrowOpacity",c._getArrowViewState())("@arrowPosition",c._getArrowViewState())("@allowChildren",c._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",c._getArrowDirectionState())}}const w=["*"],S=M.mZ.ENTERING+" "+M.yN.STANDARD_CURVE,I={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)(S))]),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)(S))]),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)(S))]),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)(S))]),arrowPosition:(0,d.X$)("arrowPosition",[(0,d.eR)("* => desc-to-hint, * => desc-to-active",(0,d.jt)(S,(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)(S,(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)(S,(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)(S,(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=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const de={provide:ne,deps:[[new t.FiY,new t.tp0,ne]],useFactory:function X(r){return r||new ne}},ee=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),te=(0,M.dB)((0,M.Id)(class{}));let ce=(()=>{class r extends te{constructor(c){super(),this._defaultOptions=c,this.sortables=new Map,this._stateChanges=new a.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}get direction(){return this._direction}set direction(c){this._direction=c}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,e.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,E,O;if(!c)return"";const _=null!==(E=null!==(C=null==c?void 0:c.disableClear)&&void 0!==C?C:this.disableClear)&&void 0!==E?E:!!(null===(O=this._defaultOptions)||void 0===O?void 0:O.disableClear);let n=function J(r,u){let c=["asc","desc"];return"desc"==r&&c.reverse(),u||c.push(""),c}(c.start||this.start,_),v=n.indexOf(this.direction)+1;return v>=n.length&&(v=0),n[v]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(c){return new(c||r)(t.Y36(ee,8))},r.\u0275dir=t.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:[t.qOj,t.TTD]}),r})();const ge=(0,M.Id)(class{});let y=(()=>{class r extends ge{constructor(c,C,E,O,_,n,v){super(),this._intl=c,this._changeDetectorRef=C,this._sort=E,this._columnDef=O,this._focusMonitor=_,this._elementRef=n,this._ariaDescriber=v,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,e.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===f.L_||c.keyCode===f.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,E;this._sortButton&&(null===(C=this._ariaDescriber)||void 0===C||C.removeDescription(this._sortButton,this._sortActionDescription),null===(E=this._ariaDescriber)||void 0===E||E.describe(this._sortButton,c)),this._sortActionDescription=c}_handleStateChanges(){this._rerenderSubscription=(0,b.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)(t.Y36(ne),t.Y36(t.sBO),t.Y36(ce,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(N.tE),t.Y36(t.SBq),t.Y36(N.$s,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(c,C){1&c&&t.NdJ("click",function(){return C._handleClick()})("keydown",function(O){return C._handleKeydown(O)})("mouseenter",function(){return C._setIndicatorHintVisible(!0)})("mouseleave",function(){return C._setIndicatorHintVisible(!1)}),2&c&&(t.uIk("aria-sort",C._getAriaSortAttribute()),t.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:[t.qOj],attrs:A,ngContentSelectors:w,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&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,D,6,6,"div",2),t.qZA()),2&c&&(t.ekj("mat-sort-header-sorted",C._isSorted())("mat-sort-header-position-before","before"==C.arrowPosition),t.uIk("tabindex",C._isDisabled()?null:0)("role",C._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",C._renderArrow()))},directives:[h.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:[I.indicator,I.leftPointer,I.rightPointer,I.arrowOpacity,I.arrowPosition,I.allowChildren]},changeDetection:0}),r})(),i=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({providers:[de],imports:[[h.ez,M.BQ]]}),r})()},5615:(Fe,Y,p)=>{"use strict";p.d(Y,{C0:()=>ve,Ic:()=>De,T5:()=>Te,VY:()=>P,Vq:()=>Ie,fd:()=>oe,z9:()=>Q});var t=p(7429),e=p(1555),f=p(9808),M=p(5e3),a=p(7423),b=p(508),d=p(5245),N=p(7579),h=p(727),A=p(5664),D=p(3900),w=p(4004),S=p(8675),I=p(2722),L=p(1884),U=p(1777),Z=p(226);function j(ye,W){if(1&ye&&M.GkF(0,8),2&ye){const $=M.oxw();M.Q6J("ngTemplateOutlet",$.iconOverrides[$.state])("ngTemplateOutletContext",$._getIconContext())}}function ne(ye,W){if(1&ye&&(M.TgZ(0,"span",13),M._uU(1),M.qZA()),2&ye){const $=M.oxw(2);M.xp6(1),M.Oqu($._getDefaultTextForState($.state))}}function X(ye,W){if(1&ye&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&ye){const $=M.oxw(2);M.xp6(1),M.Oqu($._intl.completedLabel)}}function de(ye,W){if(1&ye&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&ye){const $=M.oxw(2);M.xp6(1),M.Oqu($._intl.editableLabel)}}function ee(ye,W){if(1&ye&&(M.TgZ(0,"mat-icon",13),M._uU(1),M.qZA()),2&ye){const $=M.oxw(2);M.xp6(1),M.Oqu($._getDefaultTextForState($.state))}}function te(ye,W){if(1&ye&&(M.ynx(0,9),M.YNc(1,ne,2,1,"span",10),M.YNc(2,X,2,1,"span",11),M.YNc(3,de,2,1,"span",11),M.YNc(4,ee,2,1,"mat-icon",12),M.BQk()),2&ye){const $=M.oxw();M.Q6J("ngSwitch",$.state),M.xp6(1),M.Q6J("ngSwitchCase","number"),M.xp6(1),M.Q6J("ngIf","done"===$.state),M.xp6(1),M.Q6J("ngIf","edit"===$.state)}}function ce(ye,W){if(1&ye&&(M.TgZ(0,"div",15),M.GkF(1,16),M.qZA()),2&ye){const $=M.oxw();M.xp6(1),M.Q6J("ngTemplateOutlet",$._templateLabel().template)}}function J(ye,W){if(1&ye&&(M.TgZ(0,"div",15),M._uU(1),M.qZA()),2&ye){const $=M.oxw();M.xp6(1),M.Oqu($.label)}}function ge(ye,W){if(1&ye&&(M.TgZ(0,"div",17),M._uU(1),M.qZA()),2&ye){const $=M.oxw();M.xp6(1),M.Oqu($._intl.optionalLabel)}}function y(ye,W){if(1&ye&&(M.TgZ(0,"div",18),M._uU(1),M.qZA()),2&ye){const $=M.oxw();M.xp6(1),M.Oqu($.errorMessage)}}function i(ye,W){}function r(ye,W){if(1&ye&&(M.Hsn(0),M.YNc(1,i,0,0,"ng-template",0)),2&ye){const $=M.oxw();M.xp6(1),M.Q6J("cdkPortalOutlet",$._portal)}}const u=["*"];function c(ye,W){1&ye&&M._UZ(0,"div",9)}const C=function(ye,W){return{step:ye,i:W}};function E(ye,W){if(1&ye&&(M.ynx(0),M.GkF(1,7),M.YNc(2,c,1,0,"div",8),M.BQk()),2&ye){const $=W.$implicit,ue=W.index,Ce=W.last;M.oxw(2);const Le=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",Le)("ngTemplateOutletContext",M.WLB(3,C,$,ue)),M.xp6(1),M.Q6J("ngIf",!Ce)}}function O(ye,W){if(1&ye){const $=M.EpF();M.TgZ(0,"div",10),M.NdJ("@horizontalStepTransition.done",function(Ce){return M.CHM($),M.oxw(2)._animationDone.next(Ce)}),M.GkF(1,11),M.qZA()}if(2&ye){const $=W.$implicit,ue=W.index,Ce=M.oxw(2);M.Q6J("@horizontalStepTransition",Ce._getAnimationDirection(ue))("id",Ce._getStepContentId(ue)),M.uIk("aria-labelledby",Ce._getStepLabelId(ue))("aria-expanded",Ce.selectedIndex===ue),M.xp6(1),M.Q6J("ngTemplateOutlet",$.content)}}function _(ye,W){if(1&ye&&(M.ynx(0),M.TgZ(1,"div",3),M.YNc(2,E,3,6,"ng-container",4),M.qZA(),M.TgZ(3,"div",5),M.YNc(4,O,2,5,"div",6),M.qZA(),M.BQk()),2&ye){const $=M.oxw();M.xp6(2),M.Q6J("ngForOf",$.steps),M.xp6(2),M.Q6J("ngForOf",$.steps)}}function n(ye,W){if(1&ye){const $=M.EpF();M.TgZ(0,"div",13),M.GkF(1,7),M.TgZ(2,"div",14)(3,"div",15),M.NdJ("@verticalStepTransition.done",function(Ce){return M.CHM($),M.oxw(2)._animationDone.next(Ce)}),M.TgZ(4,"div",16),M.GkF(5,11),M.qZA()()()()}if(2&ye){const $=W.$implicit,ue=W.index,Ce=W.last,Le=M.oxw(2),ct=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",M.WLB(9,C,$,ue)),M.xp6(1),M.ekj("mat-stepper-vertical-line",!Ce),M.xp6(1),M.Q6J("@verticalStepTransition",Le._getAnimationDirection(ue))("id",Le._getStepContentId(ue)),M.uIk("aria-labelledby",Le._getStepLabelId(ue))("aria-expanded",Le.selectedIndex===ue),M.xp6(2),M.Q6J("ngTemplateOutlet",$.content)}}function v(ye,W){if(1&ye&&(M.ynx(0),M.YNc(1,n,6,12,"div",12),M.BQk()),2&ye){const $=M.oxw();M.xp6(1),M.Q6J("ngForOf",$.steps)}}function B(ye,W){if(1&ye){const $=M.EpF();M.TgZ(0,"mat-step-header",17),M.NdJ("click",function(){return M.CHM($).step.select()})("keydown",function(Ce){return M.CHM($),M.oxw()._onKeydown(Ce)}),M.qZA()}if(2&ye){const $=W.step,ue=W.i,Ce=M.oxw();M.ekj("mat-horizontal-stepper-header","horizontal"===Ce.orientation)("mat-vertical-stepper-header","vertical"===Ce.orientation),M.Q6J("tabIndex",Ce._getFocusIndex()===ue?0:-1)("id",Ce._getStepLabelId(ue))("index",ue)("state",Ce._getIndicatorType(ue,$.state))("label",$.stepLabel||$.label)("selected",Ce.selectedIndex===ue)("active",Ce._stepIsNavigable(ue,$))("optional",$.optional)("errorMessage",$.errorMessage)("iconOverrides",Ce._iconOverrides)("disableRipple",Ce.disableRipple||!Ce._stepIsNavigable(ue,$))("color",$.color||Ce.color),M.uIk("aria-posinset",ue+1)("aria-setsize",Ce.steps.length)("aria-controls",Ce._getStepContentId(ue))("aria-selected",Ce.selectedIndex==ue)("aria-label",$.ariaLabel||null)("aria-labelledby",!$.ariaLabel&&$.ariaLabelledby?$.ariaLabelledby:null)("aria-disabled",!Ce._stepIsNavigable(ue,$)||null)}}let P=(()=>{class ye extends e.u6{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["","matStepLabel",""]],features:[M.qOj]}),ye})(),z=(()=>{class ye{constructor(){this.changes=new N.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=M.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const fe={provide:z,deps:[[new M.FiY,new M.tp0,z]],useFactory:function se(ye){return ye||new z}},xe=(0,b.pj)(class extends e.KL{constructor(W){super(W)}},"primary");let Re=(()=>{class ye extends xe{constructor($,ue,Ce,Le){super(Ce),this._intl=$,this._focusMonitor=ue,this._intlSubscription=$.changes.subscribe(()=>Le.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus($,ue){$?this._focusMonitor.focusVia(this._elementRef,$,ue):this._elementRef.nativeElement.focus(ue)}_stringLabel(){return this.label instanceof P?null:this.label}_templateLabel(){return this.label instanceof P?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState($){return"number"==$?`${this.index+1}`:"edit"==$?"create":"error"==$?"warning":$}}return ye.\u0275fac=function($){return new($||ye)(M.Y36(z),M.Y36(A.tE),M.Y36(M.SBq),M.Y36(M.sBO))},ye.\u0275cmp=M.Xpm({type:ye,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:[M.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($,ue){1&$&&(M._UZ(0,"div",0),M.TgZ(1,"div")(2,"div",1),M.YNc(3,j,1,2,"ng-container",2),M.YNc(4,te,5,4,"ng-container",3),M.qZA()(),M.TgZ(5,"div",4),M.YNc(6,ce,2,1,"div",5),M.YNc(7,J,2,1,"div",5),M.YNc(8,ge,2,1,"div",6),M.YNc(9,y,2,1,"div",7),M.qZA()),2&$&&(M.Q6J("matRippleTrigger",ue._getHostElement())("matRippleDisabled",ue.disableRipple),M.xp6(1),M.Gre("mat-step-icon-state-",ue.state," mat-step-icon"),M.ekj("mat-step-icon-selected",ue.selected),M.xp6(1),M.Q6J("ngSwitch",!(!ue.iconOverrides||!ue.iconOverrides[ue.state])),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(2),M.ekj("mat-step-label-active",ue.active)("mat-step-label-selected",ue.selected)("mat-step-label-error","error"==ue.state),M.xp6(1),M.Q6J("ngIf",ue._templateLabel()),M.xp6(1),M.Q6J("ngIf",ue._stringLabel()),M.xp6(1),M.Q6J("ngIf",ue.optional&&"error"!=ue.state),M.xp6(1),M.Q6J("ngIf","error"==ue.state))},directives:[d.Hw,b.wG,f.RF,f.n9,f.tP,f.ED,f.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}),ye})();const we={horizontalStepTransition:(0,U.X$)("horizontalStepTransition",[(0,U.SB)("previous",(0,U.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,U.SB)("current",(0,U.oB)({transform:"none",visibility:"inherit"})),(0,U.SB)("next",(0,U.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,U.eR)("* => *",(0,U.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,U.X$)("verticalStepTransition",[(0,U.SB)("previous",(0,U.oB)({height:"0px",visibility:"hidden"})),(0,U.SB)("next",(0,U.oB)({height:"0px",visibility:"hidden"})),(0,U.SB)("current",(0,U.oB)({height:"*",visibility:"inherit"})),(0,U.eR)("* <=> current",(0,U.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let Q=(()=>{class ye{constructor($){this.templateRef=$}}return ye.\u0275fac=function($){return new($||ye)(M.Y36(M.Rgc))},ye.\u0275dir=M.lG2({type:ye,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ye})(),Ge=(()=>{class ye{constructor($){this._template=$}}return ye.\u0275fac=function($){return new($||ye)(M.Y36(M.Rgc))},ye.\u0275dir=M.lG2({type:ye,selectors:[["ng-template","matStepContent",""]]}),ye})(),ve=(()=>{class ye extends e.be{constructor($,ue,Ce,Le){super($,Le),this._errorStateMatcher=ue,this._viewContainerRef=Ce,this._isSelected=h.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,D.w)(()=>this._stepper.selectionChange.pipe((0,w.U)($=>$.selectedStep===this),(0,S.O)(this._stepper.selected===this)))).subscribe($=>{$&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState($,ue){return this._errorStateMatcher.isErrorState($,ue)||!!($&&$.invalid&&this.interacted)}}return ye.\u0275fac=function($){return new($||ye)(M.Y36((0,M.Gpc)(()=>Ie)),M.Y36(b.rD,4),M.Y36(M.s_b),M.Y36(e.gx,8))},ye.\u0275cmp=M.Xpm({type:ye,selectors:[["mat-step"]],contentQueries:function($,ue,Ce){if(1&$&&(M.Suo(Ce,P,5),M.Suo(Ce,Ge,5)),2&$){let Le;M.iGM(Le=M.CRH())&&(ue.stepLabel=Le.first),M.iGM(Le=M.CRH())&&(ue._lazyContent=Le.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[M._Bn([{provide:b.rD,useExisting:ye},{provide:e.be,useExisting:ye}]),M.qOj],ngContentSelectors:u,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function($,ue){1&$&&(M.F$t(),M.YNc(0,r,2,1,"ng-template"))},directives:[t.Pl],encapsulation:2,changeDetection:0}),ye})(),F=(()=>{class ye extends e.B8{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,features:[M.qOj]}),ye})(),Ae=(()=>{class ye extends F{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["mat-horizontal-stepper"]],features:[M.qOj]}),ye})(),lt=(()=>{class ye extends F{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["mat-vertical-stepper"]],features:[M.qOj]}),ye})(),Ie=(()=>{class ye extends e.B8{constructor($,ue,Ce,Le){super($,ue,Ce,Le),this.steps=new M.n_E,this.animationDone=new M.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new N.x;const ct=Ce.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ct?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:$,templateRef:ue})=>this._iconOverrides[$]=ue),this.steps.changes.pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,L.x)(($,ue)=>$.fromState===ue.fromState&&$.toState===ue.toState),(0,I.R)(this._destroyed)).subscribe($=>{"current"===$.toState&&this.animationDone.emit()})}_stepIsNavigable($,ue){return ue.completed||this.selectedIndex===$||!this.linear}}return ye.\u0275fac=function($){return new($||ye)(M.Y36(Z.Is,8),M.Y36(M.sBO),M.Y36(M.SBq),M.Y36(f.K0))},ye.\u0275cmp=M.Xpm({type:ye,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function($,ue,Ce){if(1&$&&(M.Suo(Ce,ve,5),M.Suo(Ce,Q,5)),2&$){let Le;M.iGM(Le=M.CRH())&&(ue._steps=Le),M.iGM(Le=M.CRH())&&(ue._icons=Le)}},viewQuery:function($,ue){if(1&$&&M.Gf(Re,5),2&$){let Ce;M.iGM(Ce=M.CRH())&&(ue._stepHeader=Ce)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function($,ue){2&$&&(M.uIk("aria-orientation",ue.orientation),M.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:[M._Bn([{provide:e.B8,useExisting:ye},{provide:Ae,useExisting:ye},{provide:lt,useExisting:ye}]),M.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($,ue){1&$&&(M.ynx(0,0),M.YNc(1,_,5,2,"ng-container",1),M.YNc(2,v,2,1,"ng-container",1),M.BQk(),M.YNc(3,B,1,23,"ng-template",null,2,M.W1O)),2&$&&(M.Q6J("ngSwitch",ue.orientation),M.xp6(1),M.Q6J("ngSwitchCase","horizontal"),M.xp6(1),M.Q6J("ngSwitchCase","vertical"))},directives:[Re,f.RF,f.n9,f.sg,f.tP,f.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:[we.horizontalStepTransition,we.verticalStepTransition]},changeDetection:0}),ye})(),De=(()=>{class ye extends e.st{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function($,ue){2&$&&M.Ikx("type",ue.type)},inputs:{type:"type"},features:[M.qOj]}),ye})(),oe=(()=>{class ye extends e.po{}return ye.\u0275fac=function(){let W;return function(ue){return(W||(W=M.n5z(ye)))(ue||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function($,ue){2&$&&M.Ikx("type",ue.type)},inputs:{type:"type"},features:[M.qOj]}),ye})(),Te=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=M.oAB({type:ye}),ye.\u0275inj=M.cJS({providers:[fe,b.rD],imports:[[b.BQ,f.ez,t.eL,a.ot,e.U5,d.Ps,b.si],b.BQ]}),ye})()},2075:(Fe,Y,p)=>{"use strict";p.d(Y,{ev:()=>Ue,Dz:()=>Ht,w1:()=>tt,yh:()=>Se,mD:()=>Ne,Q2:()=>Qt,Ke:()=>at,ge:()=>Je,fO:()=>it,XQ:()=>gi,as:()=>rt,Gk:()=>Jt,nj:()=>yt,BZ:()=>ft,by:()=>Yi,p0:()=>tn});var t=p(5e3),e=p(3191),f=p(449),M=p(9808),a=p(7579),b=p(457),d=p(1135),N=p(5191),h=p(9646),A=p(2722),D=p(5698),w=p(226),S=p(925),I=p(5303);const L=[[["caption"]],[["colgroup"],["col"]]],U=["caption","colgroup, col"];function ne(ze){return class extends ze{constructor(...Lt){super(...Lt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Lt){const pe=this._sticky;this._sticky=(0,e.Ig)(Lt),this._hasStickyChanged=pe!==this._sticky}hasStickyChanged(){const Lt=this._hasStickyChanged;return this._hasStickyChanged=!1,Lt}resetStickyChanged(){this._hasStickyChanged=!1}}}const X=new t.OlP("CDK_TABLE");let ee=(()=>{class ze{constructor(pe){this.template=pe}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkCellDef",""]]}),ze})(),te=(()=>{class ze{constructor(pe){this.template=pe}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkHeaderCellDef",""]]}),ze})(),ce=(()=>{class ze{constructor(pe){this.template=pe}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkFooterCellDef",""]]}),ze})();class J{}const ge=ne(J);let y=(()=>{class ze extends ge{constructor(pe){super(),this._table=pe,this._stickyEnd=!1}get name(){return this._name}set name(pe){this._setNameInput(pe)}get stickyEnd(){return this._stickyEnd}set stickyEnd(pe){const je=this._stickyEnd;this._stickyEnd=(0,e.Ig)(pe),this._hasStickyChanged=je!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(pe){pe&&(this._name=pe,this.cssClassFriendlyName=pe.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(X,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkColumnDef",""]],contentQueries:function(pe,je,Ct){if(1&pe&&(t.Suo(Ct,ee,5),t.Suo(Ct,te,5),t.Suo(Ct,ce,5)),2&pe){let ie;t.iGM(ie=t.CRH())&&(je.cell=ie.first),t.iGM(ie=t.CRH())&&(je.headerCell=ie.first),t.iGM(ie=t.CRH())&&(je.footerCell=ie.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ze}]),t.qOj]}),ze})();class i{constructor(Lt,pe){pe.nativeElement.classList.add(...Lt._columnCssClassName)}}let r=(()=>{class ze extends i{constructor(pe,je){super(pe,je)}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(y),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),ze})(),u=(()=>{class ze extends i{constructor(pe,je){var Ct;if(super(pe,je),1===(null===(Ct=pe._table)||void 0===Ct?void 0:Ct._elementRef.nativeElement.nodeType)){const ie=pe._table._elementRef.nativeElement.getAttribute("role");je.nativeElement.setAttribute("role","grid"===ie||"treegrid"===ie?"gridcell":"cell")}}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(y),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),ze})(),c=(()=>{class ze extends i{constructor(pe,je){var Ct;if(super(pe,je),1===(null===(Ct=pe._table)||void 0===Ct?void 0:Ct._elementRef.nativeElement.nodeType)){const ie=pe._table._elementRef.nativeElement.getAttribute("role");je.nativeElement.setAttribute("role","grid"===ie||"treegrid"===ie?"gridcell":"cell")}}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(y),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),ze})();class C{constructor(){this.tasks=[],this.endTasks=[]}}const E=new t.OlP("_COALESCED_STYLE_SCHEDULER");let O=(()=>{class ze{constructor(pe){this._ngZone=pe,this._currentSchedule=null,this._destroyed=new a.x}schedule(pe){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(pe)}scheduleEnd(pe){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(pe)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new C,this._getScheduleObservable().pipe((0,A.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const pe=this._currentSchedule;this._currentSchedule=new C;for(const je of pe.tasks)je();for(const je of pe.endTasks)je()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,b.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,D.q)(1))}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.LFG(t.R0b))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),n=(()=>{class ze{constructor(pe,je){this.template=pe,this._differs=je}ngOnChanges(pe){if(!this._columnsDiffer){const je=pe.columns&&pe.columns.currentValue||[];this._columnsDiffer=this._differs.find(je).create(),this._columnsDiffer.diff(je)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(pe){return this instanceof P?pe.headerCell.template:this instanceof fe?pe.footerCell.template:pe.cell.template}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},ze.\u0275dir=t.lG2({type:ze,features:[t.TTD]}),ze})();class v extends n{}const B=ne(v);let P=(()=>{class ze extends B{constructor(pe,je,Ct){super(pe,je),this._table=Ct}ngOnChanges(pe){super.ngOnChanges(pe)}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(X,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),ze})();class z extends n{}const se=ne(z);let fe=(()=>{class ze extends se{constructor(pe,je,Ct){super(pe,je),this._table=Ct}ngOnChanges(pe){super.ngOnChanges(pe)}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(X,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),ze})(),xe=(()=>{class ze extends n{constructor(pe,je,Ct){super(pe,je),this._table=Ct}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(X,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),ze})(),Re=(()=>{class ze{constructor(pe){this._viewContainer=pe,ze.mostRecentCellOutlet=this}ngOnDestroy(){ze.mostRecentCellOutlet===this&&(ze.mostRecentCellOutlet=null)}}return ze.mostRecentCellOutlet=null,ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.s_b))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","cdkCellOutlet",""]]}),ze})(),we=(()=>{class ze{}return ze.\u0275fac=function(pe){return new(pe||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pe,je){1&pe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),Q=(()=>{class ze{}return ze.\u0275fac=function(pe){return new(pe||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pe,je){1&pe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),Ge=(()=>{class ze{}return ze.\u0275fac=function(pe){return new(pe||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pe,je){1&pe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),ve=(()=>{class ze{constructor(pe){this.templateRef=pe,this._contentClassName="cdk-no-data-row"}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["ng-template","cdkNoDataRow",""]]}),ze})();const F=["top","bottom","left","right"];class Ae{constructor(Lt,pe,je,Ct,ie=!0,qe=!0,Mt){this._isNativeHtmlTable=Lt,this._stickCellCss=pe,this.direction=je,this._coalescedStyleScheduler=Ct,this._isBrowser=ie,this._needsPositionStickyOnElement=qe,this._positionListener=Mt,this._cachedCellWidths=[],this._borderCellCss={top:`${pe}-border-elem-top`,bottom:`${pe}-border-elem-bottom`,left:`${pe}-border-elem-left`,right:`${pe}-border-elem-right`}}clearStickyPositioning(Lt,pe){const je=[];for(const Ct of Lt)if(Ct.nodeType===Ct.ELEMENT_NODE){je.push(Ct);for(let ie=0;ie{for(const Ct of je)this._removeStickyStyle(Ct,pe)})}updateStickyColumns(Lt,pe,je,Ct=!0){if(!Lt.length||!this._isBrowser||!pe.some(ji=>ji)&&!je.some(ji=>ji))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const ie=Lt[0],qe=ie.children.length,Mt=this._getCellWidths(ie,Ct),Vt=this._getStickyStartColumnPositions(Mt,pe),Mi=this._getStickyEndColumnPositions(Mt,je),Ei=pe.lastIndexOf(!0),en=je.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const ji="rtl"===this.direction,Kt=ji?"right":"left",Oi=ji?"left":"right";for(const zt of Lt)for(let si=0;sipe[si]?zt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===en?[]:Mt.slice(en).map((zt,si)=>je[si+en]?zt:null).reverse()}))})}stickRows(Lt,pe,je){if(!this._isBrowser)return;const Ct="bottom"===je?Lt.slice().reverse():Lt,ie="bottom"===je?pe.slice().reverse():pe,qe=[],Mt=[],Vt=[];for(let Ei=0,en=0;Ei{var Ei,en;for(let ji=0;ji{pe.some(Ct=>!Ct)?this._removeStickyStyle(je,["bottom"]):this._addStickyStyle(je,"bottom",0,!1)})}_removeStickyStyle(Lt,pe){for(const Ct of pe)Lt.style[Ct]="",Lt.classList.remove(this._borderCellCss[Ct]);F.some(Ct=>-1===pe.indexOf(Ct)&&Lt.style[Ct])?Lt.style.zIndex=this._getCalculatedZIndex(Lt):(Lt.style.zIndex="",this._needsPositionStickyOnElement&&(Lt.style.position=""),Lt.classList.remove(this._stickCellCss))}_addStickyStyle(Lt,pe,je,Ct){Lt.classList.add(this._stickCellCss),Ct&&Lt.classList.add(this._borderCellCss[pe]),Lt.style[pe]=`${je}px`,Lt.style.zIndex=this._getCalculatedZIndex(Lt),this._needsPositionStickyOnElement&&(Lt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Lt){const pe={top:100,bottom:10,left:1,right:1};let je=0;for(const Ct of F)Lt.style[Ct]&&(je+=pe[Ct]);return je?`${je}`:""}_getCellWidths(Lt,pe=!0){if(!pe&&this._cachedCellWidths.length)return this._cachedCellWidths;const je=[],Ct=Lt.children;for(let ie=0;ie0;ie--)pe[ie]&&(je[ie]=Ct,Ct+=Lt[ie]);return je}}const ue=new t.OlP("CDK_SPL");let Le=(()=>{class ze{constructor(pe,je){this.viewContainer=pe,this.elementRef=je}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.s_b),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","rowOutlet",""]]}),ze})(),ct=(()=>{class ze{constructor(pe,je){this.viewContainer=pe,this.elementRef=je}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.s_b),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","headerRowOutlet",""]]}),ze})(),ut=(()=>{class ze{constructor(pe,je){this.viewContainer=pe,this.elementRef=je}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.s_b),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","footerRowOutlet",""]]}),ze})(),Dt=(()=>{class ze{constructor(pe,je){this.viewContainer=pe,this.elementRef=je}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.s_b),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","noDataRowOutlet",""]]}),ze})(),Gt=(()=>{class ze{constructor(pe,je,Ct,ie,qe,Mt,Vt,Mi,Ei,en,ji,Kt){this._differs=pe,this._changeDetectorRef=je,this._elementRef=Ct,this._dir=qe,this._platform=Vt,this._viewRepeater=Mi,this._coalescedStyleScheduler=Ei,this._viewportRuler=en,this._stickyPositioningListener=ji,this._ngZone=Kt,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 t.vpe,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),ie||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Mt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(pe){this._trackByFn=pe}get dataSource(){return this._dataSource}set dataSource(pe){this._dataSource!==pe&&this._switchDataSource(pe)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(pe){this._multiTemplateDataRows=(0,e.Ig)(pe),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(pe){this._fixedLayout=(0,e.Ig)(pe),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((pe,je)=>this.trackBy?this.trackBy(je.dataIndex,je.data):je),this._viewportRuler.change().pipe((0,A.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const je=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||je,this._forceRecalculateCellWidths=je,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(pe=>{pe.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const pe=this._dataDiffer.diff(this._renderRows);if(!pe)return this._updateNoDataRow(),void this.contentChanged.next();const je=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(pe,je,(Ct,ie,qe)=>this._getEmbeddedViewArgs(Ct.item,qe),Ct=>Ct.item.data,Ct=>{1===Ct.operation&&Ct.context&&this._renderCellTemplateForItem(Ct.record.item.rowDef,Ct.context)}),this._updateRowIndexContext(),pe.forEachIdentityChange(Ct=>{je.get(Ct.currentIndex).context.$implicit=Ct.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,D.q)(1),(0,A.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(pe){this._customColumnDefs.add(pe)}removeColumnDef(pe){this._customColumnDefs.delete(pe)}addRowDef(pe){this._customRowDefs.add(pe)}removeRowDef(pe){this._customRowDefs.delete(pe)}addHeaderRowDef(pe){this._customHeaderRowDefs.add(pe),this._headerRowDefChanged=!0}removeHeaderRowDef(pe){this._customHeaderRowDefs.delete(pe),this._headerRowDefChanged=!0}addFooterRowDef(pe){this._customFooterRowDefs.add(pe),this._footerRowDefChanged=!0}removeFooterRowDef(pe){this._customFooterRowDefs.delete(pe),this._footerRowDefChanged=!0}setNoDataRow(pe){this._customNoDataRow=pe}updateStickyHeaderRowStyles(){const pe=this._getRenderedRows(this._headerRowOutlet),Ct=this._elementRef.nativeElement.querySelector("thead");Ct&&(Ct.style.display=pe.length?"":"none");const ie=this._headerRowDefs.map(qe=>qe.sticky);this._stickyStyler.clearStickyPositioning(pe,["top"]),this._stickyStyler.stickRows(pe,ie,"top"),this._headerRowDefs.forEach(qe=>qe.resetStickyChanged())}updateStickyFooterRowStyles(){const pe=this._getRenderedRows(this._footerRowOutlet),Ct=this._elementRef.nativeElement.querySelector("tfoot");Ct&&(Ct.style.display=pe.length?"":"none");const ie=this._footerRowDefs.map(qe=>qe.sticky);this._stickyStyler.clearStickyPositioning(pe,["bottom"]),this._stickyStyler.stickRows(pe,ie,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ie),this._footerRowDefs.forEach(qe=>qe.resetStickyChanged())}updateStickyColumnStyles(){const pe=this._getRenderedRows(this._headerRowOutlet),je=this._getRenderedRows(this._rowOutlet),Ct=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...pe,...je,...Ct],["left","right"]),this._stickyColumnStylesNeedReset=!1),pe.forEach((ie,qe)=>{this._addStickyColumnStyles([ie],this._headerRowDefs[qe])}),this._rowDefs.forEach(ie=>{const qe=[];for(let Mt=0;Mt{this._addStickyColumnStyles([ie],this._footerRowDefs[qe])}),Array.from(this._columnDefsByName.values()).forEach(ie=>ie.resetStickyChanged())}_getAllRenderRows(){const pe=[],je=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Ct=0;Ct{const Mt=Ct&&Ct.has(qe)?Ct.get(qe):[];if(Mt.length){const Vt=Mt.shift();return Vt.dataIndex=je,Vt}return{data:pe,rowDef:qe,dataIndex:je}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ui(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(je=>{this._columnDefsByName.has(je.name),this._columnDefsByName.set(je.name,je)})}_cacheRowDefs(){this._headerRowDefs=ui(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ui(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ui(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const pe=this._rowDefs.filter(je=>!je.when);this._defaultRowDef=pe[0]}_renderUpdatedColumns(){const pe=(qe,Mt)=>qe||!!Mt.getColumnsDiff(),je=this._rowDefs.reduce(pe,!1);je&&this._forceRenderDataRows();const Ct=this._headerRowDefs.reduce(pe,!1);Ct&&this._forceRenderHeaderRows();const ie=this._footerRowDefs.reduce(pe,!1);return ie&&this._forceRenderFooterRows(),je||Ct||ie}_switchDataSource(pe){this._data=[],(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),pe||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=pe}_observeRenderChanges(){if(!this.dataSource)return;let pe;(0,f.Z9)(this.dataSource)?pe=this.dataSource.connect(this):(0,N.b)(this.dataSource)?pe=this.dataSource:Array.isArray(this.dataSource)&&(pe=(0,h.of)(this.dataSource)),this._renderChangeSubscription=pe.pipe((0,A.R)(this._onDestroy)).subscribe(je=>{this._data=je||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((pe,je)=>this._renderRow(this._headerRowOutlet,pe,je)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((pe,je)=>this._renderRow(this._footerRowOutlet,pe,je)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(pe,je){const Ct=Array.from(je.columns||[]).map(Mt=>this._columnDefsByName.get(Mt)),ie=Ct.map(Mt=>Mt.sticky),qe=Ct.map(Mt=>Mt.stickyEnd);this._stickyStyler.updateStickyColumns(pe,ie,qe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(pe){const je=[];for(let Ct=0;Ct!ie.when||ie.when(je,pe));else{let ie=this._rowDefs.find(qe=>qe.when&&qe.when(je,pe))||this._defaultRowDef;ie&&Ct.push(ie)}return Ct}_getEmbeddedViewArgs(pe,je){return{templateRef:pe.rowDef.template,context:{$implicit:pe.data},index:je}}_renderRow(pe,je,Ct,ie={}){const qe=pe.viewContainer.createEmbeddedView(je.template,ie,Ct);return this._renderCellTemplateForItem(je,ie),qe}_renderCellTemplateForItem(pe,je){for(let Ct of this._getCellTemplates(pe))Re.mostRecentCellOutlet&&Re.mostRecentCellOutlet._viewContainer.createEmbeddedView(Ct,je);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const pe=this._rowOutlet.viewContainer;for(let je=0,Ct=pe.length;je{const Ct=this._columnDefsByName.get(je);return pe.extractCellTemplate(Ct)}):[]}_applyNativeTableSections(){const pe=this._document.createDocumentFragment(),je=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Ct of je){const ie=this._document.createElement(Ct.tag);ie.setAttribute("role","rowgroup");for(const qe of Ct.outlets)ie.appendChild(qe.elementRef.nativeElement);pe.appendChild(ie)}this._elementRef.nativeElement.appendChild(pe)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const pe=(je,Ct)=>je||Ct.hasStickyChanged();this._headerRowDefs.reduce(pe,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(pe,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(pe,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ae(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,h.of)()).pipe((0,A.R)(this._onDestroy)).subscribe(je=>{this._stickyStyler.direction=je,this.updateStickyColumnStyles()})}_getOwnDefs(pe){return pe.filter(je=>!je._table||je._table===this)}_updateNoDataRow(){const pe=this._customNoDataRow||this._noDataRow;if(!pe)return;const je=0===this._rowOutlet.viewContainer.length;if(je===this._isShowingNoDataRow)return;const Ct=this._noDataRowOutlet.viewContainer;if(je){const ie=Ct.createEmbeddedView(pe.templateRef),qe=ie.rootNodes[0];1===ie.rootNodes.length&&(null==qe?void 0:qe.nodeType)===this._document.ELEMENT_NODE&&(qe.setAttribute("role","row"),qe.classList.add(pe._contentClassName))}else Ct.clear();this._isShowingNoDataRow=je}}return ze.\u0275fac=function(pe){return new(pe||ze)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(w.Is,8),t.Y36(M.K0),t.Y36(S.t4),t.Y36(f.k),t.Y36(E),t.Y36(I.rL),t.Y36(ue,12),t.Y36(t.R0b,8))},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(pe,je,Ct){if(1&pe&&(t.Suo(Ct,ve,5),t.Suo(Ct,y,5),t.Suo(Ct,xe,5),t.Suo(Ct,P,5),t.Suo(Ct,fe,5)),2&pe){let ie;t.iGM(ie=t.CRH())&&(je._noDataRow=ie.first),t.iGM(ie=t.CRH())&&(je._contentColumnDefs=ie),t.iGM(ie=t.CRH())&&(je._contentRowDefs=ie),t.iGM(ie=t.CRH())&&(je._contentHeaderRowDefs=ie),t.iGM(ie=t.CRH())&&(je._contentFooterRowDefs=ie)}},viewQuery:function(pe,je){if(1&pe&&(t.Gf(Le,7),t.Gf(ct,7),t.Gf(ut,7),t.Gf(Dt,7)),2&pe){let Ct;t.iGM(Ct=t.CRH())&&(je._rowOutlet=Ct.first),t.iGM(Ct=t.CRH())&&(je._headerRowOutlet=Ct.first),t.iGM(Ct=t.CRH())&&(je._footerRowOutlet=Ct.first),t.iGM(Ct=t.CRH())&&(je._noDataRowOutlet=Ct.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(pe,je){2&pe&&t.ekj("cdk-table-fixed-layout",je.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:X,useExisting:ze},{provide:f.k,useClass:f.yy},{provide:E,useClass:O},{provide:ue,useValue:null}])],ngContentSelectors:U,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pe,je){1&pe&&(t.F$t(L),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[ct,Le,Dt,ut],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ze})();function ui(ze,Lt){return ze.concat(Array.from(Lt))}let gt=(()=>{class ze{}return ze.\u0275fac=function(pe){return new(pe||ze)},ze.\u0275mod=t.oAB({type:ze}),ze.\u0275inj=t.cJS({imports:[[I.Cl]]}),ze})();var et=p(508),vt=p(6451),$t=p(9841),jt=p(4004);const Pe=[[["caption"]],[["colgroup"],["col"]]],Oe=["caption","colgroup, col"];let ft=(()=>{class ze extends Gt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275cmp=t.Xpm({type:ze,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(pe,je){2&pe&&t.ekj("mat-table-fixed-layout",je.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:f.k,useClass:f.yy},{provide:Gt,useExisting:ze},{provide:X,useExisting:ze},{provide:E,useClass:O},{provide:ue,useValue:null}]),t.qOj],ngContentSelectors:Oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pe,je){1&pe&&(t.F$t(Pe),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[ct,Le,Dt,ut],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}),ze})(),Ht=(()=>{class ze extends ee{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:ee,useExisting:ze}]),t.qOj]}),ze})(),it=(()=>{class ze extends te{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:te,useExisting:ze}]),t.qOj]}),ze})(),Ne=(()=>{class ze extends ce{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:ce,useExisting:ze}]),t.qOj]}),ze})(),tt=(()=>{class ze extends y{get name(){return this._name}set name(pe){this._setNameInput(pe)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:y,useExisting:ze},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ze}]),t.qOj]}),ze})(),Je=(()=>{class ze extends r{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]}),ze})(),Se=(()=>{class ze extends u{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]}),ze})(),Ue=(()=>{class ze extends c{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]}),ze})(),rt=(()=>{class ze extends P{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:P,useExisting:ze}]),t.qOj]}),ze})(),at=(()=>{class ze extends fe{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:fe,useExisting:ze}]),t.qOj]}),ze})(),yt=(()=>{class ze extends xe{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275dir=t.lG2({type:ze,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:xe,useExisting:ze}]),t.qOj]}),ze})(),gi=(()=>{class ze extends we{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275cmp=t.Xpm({type:ze,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:we,useExisting:ze}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pe,je){1&pe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),Qt=(()=>{class ze extends Q{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275cmp=t.Xpm({type:ze,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:Q,useExisting:ze}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pe,je){1&pe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),Jt=(()=>{class ze extends Ge{}return ze.\u0275fac=function(){let Lt;return function(je){return(Lt||(Lt=t.n5z(ze)))(je||ze)}}(),ze.\u0275cmp=t.Xpm({type:ze,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:Ge,useExisting:ze}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pe,je){1&pe&&t.GkF(0,0)},directives:[Re],encapsulation:2}),ze})(),tn=(()=>{class ze{}return ze.\u0275fac=function(pe){return new(pe||ze)},ze.\u0275mod=t.oAB({type:ze}),ze.\u0275inj=t.cJS({imports:[[gt,et.BQ],et.BQ]}),ze})();class Gi extends f.o2{constructor(Lt=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new a.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(pe,je)=>{const Ct=pe[je];if((0,e.t6)(Ct)){const ie=Number(Ct);return ie<9007199254740991?ie:Ct}return Ct},this.sortData=(pe,je)=>{const Ct=je.active,ie=je.direction;return Ct&&""!=ie?pe.sort((qe,Mt)=>{let Vt=this.sortingDataAccessor(qe,Ct),Mi=this.sortingDataAccessor(Mt,Ct);const Ei=typeof Vt,en=typeof Mi;Ei!==en&&("number"===Ei&&(Vt+=""),"number"===en&&(Mi+=""));let ji=0;return null!=Vt&&null!=Mi?Vt>Mi?ji=1:Vt{const Ct=Object.keys(pe).reduce((qe,Mt)=>qe+pe[Mt]+"\u25ec","").toLowerCase(),ie=je.trim().toLowerCase();return-1!=Ct.indexOf(ie)},this._data=new d.X(Lt),this._updateChangeSubscription()}get data(){return this._data.value}set data(Lt){Lt=Array.isArray(Lt)?Lt:[],this._data.next(Lt),this._renderChangesSubscription||this._filterData(Lt)}get filter(){return this._filter.value}set filter(Lt){this._filter.next(Lt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Lt){this._sort=Lt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Lt){this._paginator=Lt,this._updateChangeSubscription()}_updateChangeSubscription(){var Lt;const pe=this._sort?(0,vt.T)(this._sort.sortChange,this._sort.initialized):(0,h.of)(null),je=this._paginator?(0,vt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,h.of)(null),ie=(0,$t.a)([this._data,this._filter]).pipe((0,jt.U)(([Vt])=>this._filterData(Vt))),qe=(0,$t.a)([ie,pe]).pipe((0,jt.U)(([Vt])=>this._orderData(Vt))),Mt=(0,$t.a)([qe,je]).pipe((0,jt.U)(([Vt])=>this._pageData(Vt)));null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=Mt.subscribe(Vt=>this._renderData.next(Vt))}_filterData(Lt){return this.filteredData=null==this.filter||""===this.filter?Lt:Lt.filter(pe=>this.filterPredicate(pe,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Lt){return this.sort?this.sortData(Lt.slice(),this.sort):Lt}_pageData(Lt){if(!this.paginator)return Lt;const pe=this.paginator.pageIndex*this.paginator.pageSize;return Lt.slice(pe,pe+this.paginator.pageSize)}_updatePaginator(Lt){Promise.resolve().then(()=>{const pe=this.paginator;if(pe&&(pe.length=Lt,pe.pageIndex>0)){const je=Math.ceil(pe.length/pe.pageSize)-1||0,Ct=Math.min(pe.pageIndex,je);Ct!==pe.pageIndex&&(pe.pageIndex=Ct,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Lt;null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=null}}class Yi extends Gi{}},3251:(Fe,Y,p)=>{"use strict";p.d(Y,{BU:()=>le,Nh:()=>it,Nj:()=>ft,SP:()=>jt,uD:()=>De,uX:()=>ye});var t=p(5664),e=p(7144),f=p(7429),M=p(9808),a=p(5e3),b=p(508),d=p(6360),N=p(5698),h=p(8675),A=p(1884),D=p(2722),w=p(3900),S=p(5684),I=p(7579),L=p(727),U=p(4968),Z=p(9646),j=p(6451),ne=p(515),X=p(8306),de=p(2805),ee=p(1777),te=p(226),ce=p(3191),J=p(1159),ge=p(925),y=p(5303);function i(Ne,tt){1&Ne&&a.Hsn(0)}const r=["*"];function u(Ne,tt){}const c=function(Ne){return{animationDuration:Ne}},C=function(Ne,tt){return{value:Ne,params:tt}},E=["tabListContainer"],O=["tabList"],_=["tabListInner"],n=["nextPaginator"],v=["previousPaginator"],B=["tabBodyWrapper"],P=["tabHeader"];function z(Ne,tt){}function se(Ne,tt){if(1&Ne&&a.YNc(0,z,0,0,"ng-template",10),2&Ne){const Je=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",Je.templateLabel)}}function fe(Ne,tt){if(1&Ne&&a._uU(0),2&Ne){const Je=a.oxw().$implicit;a.Oqu(Je.textLabel)}}function xe(Ne,tt){if(1&Ne){const Je=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const Ue=a.CHM(Je),rt=Ue.$implicit,at=Ue.index,yt=a.oxw(),gi=a.MAs(1);return yt._handleClick(rt,gi,at)})("cdkFocusChange",function(Ue){const at=a.CHM(Je).index;return a.oxw()._tabFocusChanged(Ue,at)}),a.TgZ(1,"div",7),a.YNc(2,se,1,1,"ng-template",8),a.YNc(3,fe,1,1,"ng-template",null,9,a.W1O),a.qZA()()}if(2&Ne){const Je=tt.$implicit,Se=tt.index,Ue=a.MAs(4),rt=a.oxw();a.ekj("mat-tab-label-active",rt.selectedIndex===Se),a.Q6J("id",rt._getTabLabelId(Se))("ngClass",Je.labelClass)("disabled",Je.disabled)("matRippleDisabled",Je.disabled||rt.disableRipple),a.uIk("tabIndex",rt._getTabIndex(Je,Se))("aria-posinset",Se+1)("aria-setsize",rt._tabs.length)("aria-controls",rt._getTabContentId(Se))("aria-selected",rt.selectedIndex===Se)("aria-label",Je.ariaLabel||null)("aria-labelledby",!Je.ariaLabel&&Je.ariaLabelledby?Je.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",Je.templateLabel)("ngIfElse",Ue)}}function Re(Ne,tt){if(1&Ne){const Je=a.EpF();a.TgZ(0,"mat-tab-body",11),a.NdJ("_onCentered",function(){return a.CHM(Je),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ue){return a.CHM(Je),a.oxw()._setTabBodyWrapperHeight(Ue)}),a.qZA()}if(2&Ne){const Je=tt.$implicit,Se=tt.index,Ue=a.oxw();a.ekj("mat-tab-body-active",Ue.selectedIndex===Se),a.Q6J("id",Ue._getTabContentId(Se))("ngClass",Je.bodyClass)("content",Je.content)("position",Je.position)("origin",Je.origin)("animationDuration",Ue.animationDuration),a.uIk("tabindex",null!=Ue.contentTabIndex&&Ue.selectedIndex===Se?Ue.contentTabIndex:null)("aria-labelledby",Ue._getTabLabelId(Se))}}const we=["mat-tab-nav-bar",""],Q=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ge(){return tt=>({left:tt?(tt.offsetLeft||0)+"px":"0",width:tt?(tt.offsetWidth||0)+"px":"0"})}});let ve=(()=>{class Ne{constructor(Je,Se,Ue,rt){this._elementRef=Je,this._ngZone=Se,this._inkBarPositioner=Ue,this._animationMode=rt}alignToElement(Je){this.show(),this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{const Se=this._inkBarPositioner(Je),Ue=this._elementRef.nativeElement;Ue.style.left=Se.left,Ue.style.width=Se.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(Q),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Je,Se){2&Je&&a.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode)}}),Ne})();const F=new a.OlP("MatTabContent"),lt=new a.OlP("MatTabLabel"),Ie=new a.OlP("MAT_TAB");let De=(()=>{class Ne extends f.ig{constructor(Je,Se,Ue){super(Je,Se),this._closestTab=Ue}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(Ie,8))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:lt,useExisting:Ne}]),a.qOj]}),Ne})();const oe=(0,b.Id)(class{}),Te=new a.OlP("MAT_TAB_GROUP");let ye=(()=>{class Ne extends oe{constructor(Je,Se){super(),this._viewContainerRef=Je,this._closestTabGroup=Se,this.textLabel="",this._contentPortal=null,this._stateChanges=new I.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Je){this._setTemplateLabelInput(Je)}get content(){return this._contentPortal}ngOnChanges(Je){(Je.hasOwnProperty("textLabel")||Je.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new f.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Je){Je&&Je._closestTab===this&&(this._templateLabel=Je)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.s_b),a.Y36(Te,8))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["mat-tab"]],contentQueries:function(Je,Se,Ue){if(1&Je&&(a.Suo(Ue,lt,5),a.Suo(Ue,F,7,a.Rgc)),2&Je){let rt;a.iGM(rt=a.CRH())&&(Se.templateLabel=rt.first),a.iGM(rt=a.CRH())&&(Se._explicitContent=rt.first)}},viewQuery:function(Je,Se){if(1&Je&&a.Gf(a.Rgc,7),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._implicitContent=Ue.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:Ne}]),a.qOj,a.TTD],ngContentSelectors:r,decls:1,vars:0,template:function(Je,Se){1&Je&&(a.F$t(),a.YNc(0,i,1,0,"ng-template"))},encapsulation:2}),Ne})();const W={translateTab:(0,ee.X$)("translateTab",[(0,ee.SB)("center, void, left-origin-center, right-origin-center",(0,ee.oB)({transform:"none"})),(0,ee.SB)("left",(0,ee.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,ee.SB)("right",(0,ee.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,ee.eR)("* => left, * => right, left => center, right => center",(0,ee.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ee.eR)("void => left-origin-center",[(0,ee.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,ee.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ee.eR)("void => right-origin-center",[(0,ee.oB)({transform:"translate3d(100%, 0, 0)"}),(0,ee.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let $=(()=>{class Ne extends f.Pl{constructor(Je,Se,Ue,rt){super(Je,Se,rt),this._host=Ue,this._centeringSub=L.w0.EMPTY,this._leavingSub=L.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,h.O)(this._host._isCenterPosition(this._host._position))).subscribe(Je=>{Je&&!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 Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>Ce)),a.Y36(M.K0))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),Ne})(),ue=(()=>{class Ne{constructor(Je,Se,Ue){this._elementRef=Je,this._dir=Se,this._dirChangeSubscription=L.w0.EMPTY,this._translateTabComplete=new I.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",Se&&(this._dirChangeSubscription=Se.change.subscribe(rt=>{this._computePositionAnimationState(rt),Ue.markForCheck()})),this._translateTabComplete.pipe((0,A.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(Je){this._positionIndex=Je,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Je){const Se=this._isCenterPosition(Je.toState);this._beforeCentering.emit(Se),Se&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Je){return"center"==Je||"left-origin-center"==Je||"right-origin-center"==Je}_computePositionAnimationState(Je=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Je?"left":"right":this._positionIndex>0?"ltr"==Je?"right":"left":"center"}_computePositionFromOrigin(Je){const Se=this._getLayoutDirection();return"ltr"==Se&&Je<=0||"rtl"==Se&&Je>0?"left-origin-center":"right-origin-center"}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(te.Is,8),a.Y36(a.sBO))},Ne.\u0275dir=a.lG2({type:Ne,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ne})(),Ce=(()=>{class Ne extends ue{constructor(Je,Se,Ue){super(Je,Se,Ue)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(te.Is,8),a.Y36(a.sBO))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["mat-tab-body"]],viewQuery:function(Je,Se){if(1&Je&&a.Gf(f.Pl,5),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._portalHost=Ue.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Je,Se){1&Je&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(rt){return Se._onTranslateTabStarted(rt)})("@translateTab.done",function(rt){return Se._translateTabComplete.next(rt)}),a.YNc(2,u,0,0,"ng-template",2),a.qZA()),2&Je&&a.Q6J("@translateTab",a.WLB(3,C,Se._position,a.VKq(1,c,Se.animationDuration)))},directives:[$],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:[W.translateTab]}}),Ne})();const Le=new a.OlP("MAT_TABS_CONFIG"),ct=(0,b.Id)(class{});let ut=(()=>{class Ne extends ct{constructor(Je){super(),this.elementRef=Je}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Je,Se){2&Je&&(a.uIk("aria-disabled",!!Se.disabled),a.ekj("mat-tab-disabled",Se.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),Ne})();const Dt=(0,ge.i$)({passive:!0});let ui=(()=>{class Ne{constructor(Je,Se,Ue,rt,at,yt,gi){this._elementRef=Je,this._changeDetectorRef=Se,this._viewportRuler=Ue,this._dir=rt,this._ngZone=at,this._platform=yt,this._animationMode=gi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new I.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new I.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,at.runOutsideAngular(()=>{(0,U.R)(Je.nativeElement,"mouseleave").pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Je){Je=(0,ce.su)(Je),this._selectedIndex!=Je&&(this._selectedIndexChanged=!0,this._selectedIndex=Je,this._keyManager&&this._keyManager.updateActiveItem(Je))}ngAfterViewInit(){(0,U.R)(this._previousPaginator.nativeElement,"touchstart",Dt).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,U.R)(this._nextPaginator.nativeElement,"touchstart",Dt).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Je=this._dir?this._dir.change:(0,Z.of)("ltr"),Se=this._viewportRuler.change(150),Ue=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new t.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(Ue),(0,j.T)(Je,Se,this._items.changes,this._itemsResized()).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ue()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,D.R)(this._destroyed)).subscribe(rt=>{this.indexFocused.emit(rt),this._setTabFocus(rt)})}_itemsResized(){return"function"!=typeof ResizeObserver?ne.E:this._items.changes.pipe((0,h.O)(this._items),(0,w.w)(Je=>new X.y(Se=>this._ngZone.runOutsideAngular(()=>{const Ue=new ResizeObserver(()=>{Se.next()});return Je.forEach(rt=>{Ue.observe(rt.elementRef.nativeElement)}),()=>{Ue.disconnect()}}))),(0,S.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(Je){if(!(0,J.Vb)(Je))switch(Je.keyCode){case J.K5:case J.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Je));break;default:this._keyManager.onKeydown(Je)}}_onContentChanges(){const Je=this._elementRef.nativeElement.textContent;Je!==this._currentTextContent&&(this._currentTextContent=Je||"",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(Je){!this._isValidIndex(Je)||this.focusIndex===Je||!this._keyManager||this._keyManager.setActiveItem(Je)}_isValidIndex(Je){if(!this._items)return!0;const Se=this._items?this._items.toArray()[Je]:null;return!!Se&&!Se.disabled}_setTabFocus(Je){if(this._showPaginationControls&&this._scrollToLabel(Je),this._items&&this._items.length){this._items.toArray()[Je].focus();const Se=this._tabListContainer.nativeElement;Se.scrollLeft="ltr"==this._getLayoutDirection()?0:Se.scrollWidth-Se.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Je=this.scrollDistance,Se="ltr"===this._getLayoutDirection()?-Je:Je;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Se)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Je){this._scrollTo(Je)}_scrollHeader(Je){return this._scrollTo(this._scrollDistance+("before"==Je?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Je){this._stopInterval(),this._scrollHeader(Je)}_scrollToLabel(Je){if(this.disablePagination)return;const Se=this._items?this._items.toArray()[Je]:null;if(!Se)return;const Ue=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:rt,offsetWidth:at}=Se.elementRef.nativeElement;let yt,gi;"ltr"==this._getLayoutDirection()?(yt=rt,gi=yt+at):(gi=this._tabListInner.nativeElement.offsetWidth-rt,yt=gi-at);const Qt=this.scrollDistance,Jt=this.scrollDistance+Ue;ytJt&&(this.scrollDistance+=gi-Jt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Je=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Je||(this.scrollDistance=0),Je!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Je}}_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 Je=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Se=Je?Je.elementRef.nativeElement:null;Se?this._inkBar.alignToElement(Se):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Je,Se){Se&&null!=Se.button&&0!==Se.button||(this._stopInterval(),(0,de.H)(650,100).pipe((0,D.R)((0,j.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ue,distance:rt}=this._scrollHeader(Je);(0===rt||rt>=Ue)&&this._stopInterval()}))}_scrollTo(Je){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Se=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Se,Je)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Se,distance:this._scrollDistance}}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(y.rL),a.Y36(te.Is,8),a.Y36(a.R0b),a.Y36(ge.t4),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,inputs:{disablePagination:"disablePagination"}}),Ne})(),xt=(()=>{class Ne extends ui{constructor(Je,Se,Ue,rt,at,yt,gi){super(Je,Se,Ue,rt,at,yt,gi),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Je){this._disableRipple=(0,ce.Ig)(Je)}_itemSelected(Je){Je.preventDefault()}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(y.rL),a.Y36(te.Is,8),a.Y36(a.R0b),a.Y36(ge.t4),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),Ne})(),Nt=(()=>{class Ne extends xt{constructor(Je,Se,Ue,rt,at,yt,gi){super(Je,Se,Ue,rt,at,yt,gi)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(y.rL),a.Y36(te.Is,8),a.Y36(a.R0b),a.Y36(ge.t4),a.Y36(d.Qb,8))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["mat-tab-header"]],contentQueries:function(Je,Se,Ue){if(1&Je&&a.Suo(Ue,ut,4),2&Je){let rt;a.iGM(rt=a.CRH())&&(Se._items=rt)}},viewQuery:function(Je,Se){if(1&Je&&(a.Gf(ve,7),a.Gf(E,7),a.Gf(O,7),a.Gf(_,7),a.Gf(n,5),a.Gf(v,5)),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._inkBar=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabListContainer=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabList=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabListInner=Ue.first),a.iGM(Ue=a.CRH())&&(Se._nextPaginator=Ue.first),a.iGM(Ue=a.CRH())&&(Se._previousPaginator=Ue.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Je,Se){2&Je&&a.ekj("mat-tab-header-pagination-controls-enabled",Se._showPaginationControls)("mat-tab-header-rtl","rtl"==Se._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(Je,Se){1&Je&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Se._handlePaginatorClick("before")})("mousedown",function(rt){return Se._handlePaginatorPress("before",rt)})("touchend",function(){return Se._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return Se._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Se._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 Se._handlePaginatorPress("after",rt)})("click",function(){return Se._handlePaginatorClick("after")})("touchend",function(){return Se._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Je&&(a.ekj("mat-tab-header-pagination-disabled",Se._disableScrollBefore),a.Q6J("matRippleDisabled",Se._disableScrollBefore||Se.disableRipple)("disabled",Se._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Se._disableScrollAfter),a.Q6J("matRippleDisabled",Se._disableScrollAfter||Se.disableRipple)("disabled",Se._disableScrollAfter||null))},directives:[b.wG,e.wD,ve],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}),Ne})(),gt=0;class et{}const vt=(0,b.pj)((0,b.Kr)(class{constructor(Ne){this._elementRef=Ne}}),"primary");let $t=(()=>{class Ne extends vt{constructor(Je,Se,Ue,rt){var at;super(Je),this._changeDetectorRef=Se,this._animationMode=rt,this._tabs=new a.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=L.w0.EMPTY,this._tabLabelSubscription=L.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=Ue&&Ue.animationDuration?Ue.animationDuration:"500ms",this.disablePagination=!(!Ue||null==Ue.disablePagination)&&Ue.disablePagination,this.dynamicHeight=!(!Ue||null==Ue.dynamicHeight)&&Ue.dynamicHeight,this.contentTabIndex=null!==(at=null==Ue?void 0:Ue.contentTabIndex)&&void 0!==at?at:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Je){this._dynamicHeight=(0,ce.Ig)(Je)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Je){this._indexToSelect=(0,ce.su)(Je,null)}get animationDuration(){return this._animationDuration}set animationDuration(Je){this._animationDuration=/^\d+$/.test(Je+"")?Je+"ms":Je}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Je){this._contentTabIndex=(0,ce.su)(Je,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Je){const Se=this._elementRef.nativeElement;Se.classList.remove(`mat-background-${this.backgroundColor}`),Je&&Se.classList.add(`mat-background-${Je}`),this._backgroundColor=Je}ngAfterContentChecked(){const Je=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Je){const Se=null==this._selectedIndex;if(!Se){this.selectedTabChange.emit(this._createChangeEvent(Je));const Ue=this._tabBodyWrapper.nativeElement;Ue.style.minHeight=Ue.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ue,rt)=>Ue.isActive=rt===Je),Se||(this.selectedIndexChange.emit(Je),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Se,Ue)=>{Se.position=Ue-Je,null!=this._selectedIndex&&0==Se.position&&!Se.origin&&(Se.origin=Je-this._selectedIndex)}),this._selectedIndex!==Je&&(this._selectedIndex=Je,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Je=this._clampTabIndex(this._indexToSelect);if(Je===this._selectedIndex){const Se=this._tabs.toArray();let Ue;for(let rt=0;rt{Se[Je].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Je))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,h.O)(this._allTabs)).subscribe(Je=>{this._tabs.reset(Je.filter(Se=>Se._closestTabGroup===this||!Se._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(Je){const Se=this._tabHeader;Se&&(Se.focusIndex=Je)}_focusChanged(Je){this._lastFocusedTabIndex=Je,this.focusChange.emit(this._createChangeEvent(Je))}_createChangeEvent(Je){const Se=new et;return Se.index=Je,this._tabs&&this._tabs.length&&(Se.tab=this._tabs.toArray()[Je]),Se}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,j.T)(...this._tabs.map(Je=>Je._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Je){return Math.min(this._tabs.length-1,Math.max(Je||0,0))}_getTabLabelId(Je){return`mat-tab-label-${this._groupId}-${Je}`}_getTabContentId(Je){return`mat-tab-content-${this._groupId}-${Je}`}_setTabBodyWrapperHeight(Je){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Se=this._tabBodyWrapper.nativeElement;Se.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Se.style.height=Je+"px")}_removeTabBodyWrapperHeight(){const Je=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Je.clientHeight,Je.style.height="",this.animationDone.emit()}_handleClick(Je,Se,Ue){Je.disabled||(this.selectedIndex=Se.focusIndex=Ue)}_getTabIndex(Je,Se){var Ue;return Je.disabled?null:Se===(null!==(Ue=this._lastFocusedTabIndex)&&void 0!==Ue?Ue:this.selectedIndex)?0:-1}_tabFocusChanged(Je,Se){Je&&"mouse"!==Je&&"touch"!==Je&&(this._tabHeader.focusIndex=Se)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,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]}),Ne})(),jt=(()=>{class Ne extends $t{constructor(Je,Se,Ue,rt){super(Je,Se,Ue,rt)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(d.Qb,8))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["mat-tab-group"]],contentQueries:function(Je,Se,Ue){if(1&Je&&a.Suo(Ue,ye,5),2&Je){let rt;a.iGM(rt=a.CRH())&&(Se._allTabs=rt)}},viewQuery:function(Je,Se){if(1&Je&&(a.Gf(B,5),a.Gf(P,5)),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._tabBodyWrapper=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabHeader=Ue.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Je,Se){2&Je&&a.ekj("mat-tab-group-dynamic-height",Se.dynamicHeight)("mat-tab-group-inverted-header","below"===Se.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:Te,useExisting:Ne}]),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(Je,Se){1&Je&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(rt){return Se._focusChanged(rt)})("selectFocusedIndex",function(rt){return Se.selectedIndex=rt}),a.YNc(2,xe,5,15,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,Re,1,10,"mat-tab-body",5),a.qZA()),2&Je&&(a.Q6J("selectedIndex",Se.selectedIndex||0)("disableRipple",Se.disableRipple)("disablePagination",Se.disablePagination),a.xp6(2),a.Q6J("ngForOf",Se._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),a.xp6(2),a.Q6J("ngForOf",Se._tabs))},directives:[Nt,Ce,M.sg,ut,b.wG,t.kH,M.mk,M.O5,f.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}),Ne})(),Pe=0,Oe=(()=>{class Ne extends ui{constructor(Je,Se,Ue,rt,at,yt,gi){super(Je,rt,at,Se,Ue,yt,gi),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Je){const Se=this._elementRef.nativeElement.classList;Se.remove(`mat-background-${this.backgroundColor}`),Je&&Se.add(`mat-background-${Je}`),this._backgroundColor=Je}get disableRipple(){return this._disableRipple}set disableRipple(Je){this._disableRipple=(0,ce.Ig)(Je)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,h.O)(null),(0,D.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Je=this._items.toArray();for(let Se=0;Se{class Ne extends Oe{constructor(Je,Se,Ue,rt,at,yt,gi){super(Je,Se,Ue,rt,at,yt,gi)}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(a.SBq),a.Y36(te.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(y.rL),a.Y36(ge.t4),a.Y36(d.Qb,8))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Je,Se,Ue){if(1&Je&&a.Suo(Ue,ft,5),2&Je){let rt;a.iGM(rt=a.CRH())&&(Se._items=rt)}},viewQuery:function(Je,Se){if(1&Je&&(a.Gf(ve,7),a.Gf(E,7),a.Gf(O,7),a.Gf(_,7),a.Gf(n,5),a.Gf(v,5)),2&Je){let Ue;a.iGM(Ue=a.CRH())&&(Se._inkBar=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabListContainer=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabList=Ue.first),a.iGM(Ue=a.CRH())&&(Se._tabListInner=Ue.first),a.iGM(Ue=a.CRH())&&(Se._nextPaginator=Ue.first),a.iGM(Ue=a.CRH())&&(Se._previousPaginator=Ue.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(Je,Se){2&Je&&(a.uIk("role",Se._getRole()),a.ekj("mat-tab-header-pagination-controls-enabled",Se._showPaginationControls)("mat-tab-header-rtl","rtl"==Se._getLayoutDirection())("mat-primary","warn"!==Se.color&&"accent"!==Se.color)("mat-accent","accent"===Se.color)("mat-warn","warn"===Se.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:we,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(Je,Se){1&Je&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Se._handlePaginatorClick("before")})("mousedown",function(rt){return Se._handlePaginatorPress("before",rt)})("touchend",function(){return Se._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return Se._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Se._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 Se._handlePaginatorPress("after",rt)})("click",function(){return Se._handlePaginatorClick("after")})("touchend",function(){return Se._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Je&&(a.ekj("mat-tab-header-pagination-disabled",Se._disableScrollBefore),a.Q6J("matRippleDisabled",Se._disableScrollBefore||Se.disableRipple)("disabled",Se._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Se._disableScrollAfter),a.Q6J("matRippleDisabled",Se._disableScrollAfter||Se.disableRipple)("disabled",Se._disableScrollAfter||null))},directives:[b.wG,e.wD,ve],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}),Ne})();const be=(0,b.sb)((0,b.Kr)((0,b.Id)(class{})));let ht=(()=>{class Ne extends be{constructor(Je,Se,Ue,rt,at,yt){super(),this._tabNavBar=Je,this.elementRef=Se,this._focusMonitor=at,this._isActive=!1,this.id="mat-tab-link-"+Pe++,this.rippleConfig=Ue||{},this.tabIndex=parseInt(rt)||0,"NoopAnimations"===yt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Je){const Se=(0,ce.Ig)(Je);Se!==this._isActive&&(this._isActive=Se,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(Je){this._tabNavBar.tabPanel&&Je.keyCode===J.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var Je;return this._tabNavBar.tabPanel?null===(Je=this._tabNavBar.tabPanel)||void 0===Je?void 0:Je.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 Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(Oe),a.Y36(a.SBq),a.Y36(b.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,inputs:{active:"active",id:"id"},features:[a.qOj]}),Ne})(),ft=(()=>{class Ne extends ht{constructor(Je,Se,Ue,rt,at,yt,gi,Qt){super(Je,Se,at,yt,gi,Qt),this._tabLinkRipple=new b.IR(this,Ue,Se,rt),this._tabLinkRipple.setupTriggerEvents(Se.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ne.\u0275fac=function(Je){return new(Je||Ne)(a.Y36(le),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(ge.t4),a.Y36(b.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(d.Qb,8))},Ne.\u0275dir=a.lG2({type:Ne,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Je,Se){1&Je&&a.NdJ("focus",function(){return Se._handleFocus()})("keydown",function(rt){return Se._handleKeydown(rt)}),2&Je&&(a.uIk("aria-controls",Se._getAriaControls())("aria-current",Se._getAriaCurrent())("aria-disabled",Se.disabled)("aria-selected",Se._getAriaSelected())("id",Se.id)("tabIndex",Se._getTabIndex())("role",Se._getRole()),a.ekj("mat-tab-disabled",Se.disabled)("mat-tab-label-active",Se.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),Ne})(),it=(()=>{class Ne{}return Ne.\u0275fac=function(Je){return new(Je||Ne)},Ne.\u0275mod=a.oAB({type:Ne}),Ne.\u0275inj=a.cJS({imports:[[M.ez,b.BQ,f.eL,b.si,e.Q8,t.rt],b.BQ]}),Ne})()},4594:(Fe,Y,p)=>{"use strict";p.d(Y,{Ye:()=>h,g0:()=>D});var t=p(5e3),e=p(508),f=p(9808),M=p(925);const a=["*",[["mat-toolbar-row"]]],b=["*","mat-toolbar-row"],d=(0,e.pj)(class{constructor(w){this._elementRef=w}});let N=(()=>{class w{}return w.\u0275fac=function(I){return new(I||w)},w.\u0275dir=t.lG2({type:w,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),w})(),h=(()=>{class w extends d{constructor(I,L,U){super(I),this._platform=L,this._document=U}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return w.\u0275fac=function(I){return new(I||w)(t.Y36(t.SBq),t.Y36(M.t4),t.Y36(f.K0))},w.\u0275cmp=t.Xpm({type:w,selectors:[["mat-toolbar"]],contentQueries:function(I,L,U){if(1&I&&t.Suo(U,N,5),2&I){let Z;t.iGM(Z=t.CRH())&&(L._toolbarRows=Z)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(I,L){2&I&&t.ekj("mat-toolbar-multiple-rows",L._toolbarRows.length>0)("mat-toolbar-single-row",0===L._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:b,decls:2,vars:0,template:function(I,L){1&I&&(t.F$t(a),t.Hsn(0),t.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}),w})(),D=(()=>{class w{}return w.\u0275fac=function(I){return new(I||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),w})()},7238:(Fe,Y,p)=>{"use strict";p.d(Y,{AV:()=>O,gM:()=>c});var t=p(9776),e=p(5664),f=p(9808),M=p(5e3),a=p(508),b=p(5303),d=p(3191),N=p(1159),h=p(5113),A=p(925),D=p(7429),w=p(6360),S=p(7579),I=p(2722),L=p(5698),U=p(226);p(1777);const j=["tooltip"],de="tooltip-panel",ee=(0,A.i$)({passive:!0}),J=new M.OlP("mat-tooltip-scroll-strategy"),y={provide:J,deps:[t.aV],useFactory:function ge(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},i=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function r(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let u=(()=>{class n{constructor(B,P,z,se,fe,xe,Re,we,Q,Ge,ve,F){this._overlay=B,this._elementRef=P,this._scrollDispatcher=z,this._viewContainerRef=se,this._ngZone=fe,this._platform=xe,this._ariaDescriber=Re,this._focusMonitor=we,this._dir=Ge,this._defaultOptions=ve,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 S.x,this._scrollStrategy=Q,this._document=F,ve&&(ve.position&&(this.position=ve.position),ve.touchGestures&&(this.touchGestures=ve.touchGestures)),Ge.change.pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(B){var P;B!==this._position&&(this._position=B,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(P=this._tooltipInstance)||void 0===P||P.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(B){this._disabled=(0,d.Ig)(B),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(B){this._showDelay=(0,d.su)(B)}get hideDelay(){return this._hideDelay}set hideDelay(B){this._hideDelay=(0,d.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,I.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(([P,z])=>{B.removeEventListener(P,z,ee)}),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 P=this._createOverlay();this._detach(),this._portal=this._portal||new D.C5(this._tooltipComponent,this._viewContainerRef);const z=this._tooltipInstance=P.attach(this._portal).instance;z._triggerElement=this._elementRef.nativeElement,z._mouseLeaveHideDelay=this._hideDelay,z.afterHidden().pipe((0,I.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),z.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 P=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),z=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(P);return z.positionChanges.pipe((0,I.R)(this._destroyed)).subscribe(se=>{this._updateCurrentPositionClass(se.connectionPair),this._tooltipInstance&&se.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:z,panelClass:`${this._cssClassPrefix}-${de}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,I.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,I.R)(this._destroyed)).subscribe(()=>{var se;return null===(se=this._tooltipInstance)||void 0===se?void 0:se._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,I.R)(this._destroyed)).subscribe(se=>{this._isTooltipVisible()&&se.keyCode===N.hY&&!(0,N.Vb)(se)&&(se.preventDefault(),se.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 P=B.getConfig().positionStrategy,z=this._getOrigin(),se=this._getOverlayPosition();P.withPositions([this._addOffset(Object.assign(Object.assign({},z.main),se.main)),this._addOffset(Object.assign(Object.assign({},z.fallback),se.fallback))])}_addOffset(B){return B}_getOrigin(){const B=!this._dir||"ltr"==this._dir.value,P=this.position;let z;"above"==P||"below"==P?z={originX:"center",originY:"above"==P?"top":"bottom"}:"before"==P||"left"==P&&B||"right"==P&&!B?z={originX:"start",originY:"center"}:("after"==P||"right"==P&&B||"left"==P&&!B)&&(z={originX:"end",originY:"center"});const{x:se,y:fe}=this._invertPosition(z.originX,z.originY);return{main:z,fallback:{originX:se,originY:fe}}}_getOverlayPosition(){const B=!this._dir||"ltr"==this._dir.value,P=this.position;let z;"above"==P?z={overlayX:"center",overlayY:"bottom"}:"below"==P?z={overlayX:"center",overlayY:"top"}:"before"==P||"left"==P&&B||"right"==P&&!B?z={overlayX:"end",overlayY:"center"}:("after"==P||"right"==P&&B||"left"==P&&!B)&&(z={overlayX:"start",overlayY:"center"});const{x:se,y:fe}=this._invertPosition(z.overlayX,z.overlayY);return{main:z,fallback:{overlayX:se,overlayY:fe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,L.q)(1),(0,I.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(B){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=B,this._tooltipInstance._markForCheck())}_invertPosition(B,P){return"above"===this.position||"below"===this.position?"top"===P?P="bottom":"bottom"===P&&(P="top"):"end"===B?B="start":"start"===B&&(B="end"),{x:B,y:P}}_updateCurrentPositionClass(B){const{overlayY:P,originX:z,originY:se}=B;let fe;if(fe="center"===P?this._dir&&"rtl"===this._dir.value?"end"===z?"left":"right":"start"===z?"left":"right":"bottom"===P&&"top"===se?"above":"below",fe!==this._currentPosition){const xe=this._overlayRef;if(xe){const Re=`${this._cssClassPrefix}-${de}-`;xe.removePanelClass(Re+this._currentPosition),xe.addPanelClass(Re+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 B=[];if(this._platformSupportsMouseEvents())B.push(["mouseleave",P=>{var z;const se=P.relatedTarget;(!se||!(null===(z=this._overlayRef)||void 0===z?void 0:z.overlayElement.contains(se)))&&this.hide()}],["wheel",P=>this._wheelListener(P)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const P=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};B.push(["touchend",P],["touchcancel",P])}this._addListeners(B),this._passiveListeners.push(...B)}_addListeners(B){B.forEach(([P,z])=>{this._elementRef.nativeElement.addEventListener(P,z,ee)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(B){if(this._isTooltipVisible()){const P=this._document.elementFromPoint(B.clientX,B.clientY),z=this._elementRef.nativeElement;P!==z&&!z.contains(P)&&this.hide()}}_disableNativeGesturesIfNecessary(){const B=this.touchGestures;if("off"!==B){const P=this._elementRef.nativeElement,z=P.style;("on"===B||"INPUT"!==P.nodeName&&"TEXTAREA"!==P.nodeName)&&(z.userSelect=z.msUserSelect=z.webkitUserSelect=z.MozUserSelect="none"),("on"===B||!P.draggable)&&(z.webkitUserDrag="none"),z.touchAction="none",z.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(B){M.$Z()},n.\u0275dir=M.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 u{constructor(B,P,z,se,fe,xe,Re,we,Q,Ge,ve,F){super(B,P,z,se,fe,xe,Re,we,Q,Ge,ve,F),this._tooltipComponent=E}}return n.\u0275fac=function(B){return new(B||n)(M.Y36(t.aV),M.Y36(M.SBq),M.Y36(b.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(A.t4),M.Y36(e.$s),M.Y36(e.tE),M.Y36(J),M.Y36(U.Is,8),M.Y36(i,8),M.Y36(f.K0))},n.\u0275dir=M.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),n})(),C=(()=>{class n{constructor(B,P){this._changeDetectorRef=B,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new S.x,this._animationsDisabled="NoopAnimations"===P}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 P=this._tooltip.nativeElement,z=this._showAnimation,se=this._hideAnimation;if(P.classList.remove(B?se:z),P.classList.add(B?z:se),this._isVisible=B,B&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const fe=getComputedStyle(P);("0s"===fe.getPropertyValue("animation-duration")||"none"===fe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}B&&this._onShow(),this._animationsDisabled&&(P.classList.add("_mat-animation-noopable"),this._finalizeAnimation(B))}}return n.\u0275fac=function(B){return new(B||n)(M.Y36(M.sBO),M.Y36(w.Qb,8))},n.\u0275dir=M.lG2({type:n}),n})(),E=(()=>{class n extends C{constructor(B,P,z){super(B,z),this._breakpointObserver=P,this._isHandset=this._breakpointObserver.observe(h.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(B){return new(B||n)(M.Y36(M.sBO),M.Y36(h.Yg),M.Y36(w.Qb,8))},n.\u0275cmp=M.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(B,P){if(1&B&&M.Gf(j,7),2&B){let z;M.iGM(z=M.CRH())&&(P._tooltip=z.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(B,P){1&B&&M.NdJ("mouseleave",function(se){return P._handleMouseLeave(se)}),2&B&&M.Udp("zoom",P.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(B,P){if(1&B&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(se){return P._handleAnimationEnd(se)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&B){let z;M.ekj("mat-tooltip-handset",null==(z=M.lcZ(2,4,P._isHandset))?null:z.matches),M.Q6J("ngClass",P.tooltipClass),M.xp6(3),M.Oqu(P.message)}},directives:[f.mk],pipes:[f.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})(),O=(()=>{class n{}return n.\u0275fac=function(B){return new(B||n)},n.\u0275mod=M.oAB({type:n}),n.\u0275inj=M.cJS({providers:[y],imports:[[e.rt,f.ez,t.U8,a.BQ],a.BQ,b.ZD]}),n})()},149:(Fe,Y,p)=>{"use strict";p.d(Y,{Ar:()=>I,GZ:()=>w,WX:()=>de,dp:()=>j,eu:()=>U,fQ:()=>D,gi:()=>L,uo:()=>A});var t=p(8258),e=p(5e3),f=p(508),M=p(3191),a=p(449),b=p(1135),d=p(6451),N=p(4004);const h=(0,f.sb)((0,f.Id)(t.Hs));let A=(()=>{class ee extends h{constructor(ce,J,ge){super(ce,J),this.tabIndex=Number(ge)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return ee.\u0275fac=function(ce){return new(ce||ee)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[e._Bn([{provide:t.Hs,useExisting:ee}]),e.qOj]}),ee})(),D=(()=>{class ee extends t.rO{}return ee.\u0275fac=function(){let te;return function(J){return(te||(te=e.n5z(ee)))(J||ee)}}(),ee.\u0275dir=e.lG2({type:ee,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:ee}]),e.qOj]}),ee})(),w=(()=>{class ee extends t.Xx{constructor(ce,J,ge,y){super(ce,J,ge),this._disabled=!1,this.tabIndex=Number(y)||0}get disabled(){return this._disabled}set disabled(ce){this._disabled=(0,M.Ig)(ce)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ce){this._tabIndex=null!=ce?ce:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return ee.\u0275fac=function(ce){return new(ce||ee)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[e._Bn([{provide:t.Xx,useExisting:ee},{provide:t.Hs,useExisting:ee},{provide:t.HI,useExisting:ee}]),e.qOj]}),ee})(),I=(()=>{class ee{constructor(ce,J){this.viewContainer=ce,this._node=J}}return ee.\u0275fac=function(ce){return new(ce||ee)(e.Y36(e.s_b),e.Y36(t.HI,8))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:ee}])]}),ee})(),L=(()=>{class ee extends t._0{}return ee.\u0275fac=function(){let te;return function(J){return(te||(te=e.n5z(ee)))(J||ee)}}(),ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-tree"]],viewQuery:function(ce,J){if(1&ce&&e.Gf(I,7),2&ce){let ge;e.iGM(ge=e.CRH())&&(J._nodeOutlet=ge.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:ee}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ce,J){1&ce&&e.GkF(0,0)},directives:[I],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}),ee})(),U=(()=>{class ee extends t.Ud{}return ee.\u0275fac=function(){let te;return function(J){return(te||(te=e.n5z(ee)))(J||ee)}}(),ee.\u0275dir=e.lG2({type:ee,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:ee}]),e.qOj]}),ee})(),j=(()=>{class ee{}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({imports:[[t.nZ,f.BQ],f.BQ]}),ee})();class de extends a.o2{constructor(){super(...arguments),this._data=new b.X([])}get data(){return this._data.value}set data(te){this._data.next(te)}connect(te){return(0,d.T)(te.viewChange,this._data).pipe((0,N.U)(()=>this.data))}disconnect(){}}},6360:(Fe,Y,p)=>{"use strict";p.d(Y,{Qb:()=>Zs,PW:()=>Vr});var t=p(5e3),e=p(2313),f=p(1777);const M=!1;function b(_t){return new t.vHH(3e3,M)}function fe(){return"undefined"!=typeof window&&void 0!==window.document}function xe(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Re(_t){switch(_t.length){case 0:return new f.ZN;case 1:return _t[0];default:return new f.ZE(_t)}}function we(_t,re,he,Ye,wt={},Ft={}){const ii=[],ni=[];let yi=-1,Pi=null;if(Ye.forEach(nn=>{const un=nn.offset,Sn=un==yi,Pn=Sn&&Pi||{};Object.keys(nn).forEach(yn=>{let Tn=yn,qn=nn[yn];if("offset"!==yn)switch(Tn=re.normalizePropertyName(Tn,ii),qn){case f.k1:qn=wt[yn];break;case f.l3:qn=Ft[yn];break;default:qn=re.normalizeStyleValue(yn,Tn,qn,ii)}Pn[Tn]=qn}),Sn||ni.push(Pn),Pi=Pn,yi=un}),ii.length)throw function u(_t){return new t.vHH(3502,M)}();return ni}function Q(_t,re,he,Ye){switch(re){case"start":_t.onStart(()=>Ye(he&&Ge(he,"start",_t)));break;case"done":_t.onDone(()=>Ye(he&&Ge(he,"done",_t)));break;case"destroy":_t.onDestroy(()=>Ye(he&&Ge(he,"destroy",_t)))}}function Ge(_t,re,he){const Ye=he.totalTime,Ft=ve(_t.element,_t.triggerName,_t.fromState,_t.toState,re||_t.phaseName,null==Ye?_t.totalTime:Ye,!!he.disabled),ii=_t._data;return null!=ii&&(Ft._data=ii),Ft}function ve(_t,re,he,Ye,wt="",Ft=0,ii){return{element:_t,triggerName:re,fromState:he,toState:Ye,phaseName:wt,totalTime:Ft,disabled:!!ii}}function F(_t,re,he){let Ye;return _t instanceof Map?(Ye=_t.get(re),Ye||_t.set(re,Ye=he)):(Ye=_t[re],Ye||(Ye=_t[re]=he)),Ye}function Ae(_t){const re=_t.indexOf(":");return[_t.substring(1,re),_t.substr(re+1)]}let lt=(_t,re)=>!1,Ie=(_t,re,he)=>[],De=null;function oe(_t){const re=_t.parentNode||_t.host;return re===De?null:re}(xe()||"undefined"!=typeof Element)&&(fe()?(De=(()=>document.documentElement)(),lt=(_t,re)=>{for(;re;){if(re===_t)return!0;re=oe(re)}return!1}):lt=(_t,re)=>_t.contains(re),Ie=(_t,re,he)=>{if(he)return Array.from(_t.querySelectorAll(re));const Ye=_t.querySelector(re);return Ye?[Ye]:[]});let W=null,$=!1;function ue(_t){W||(W=function Ce(){return"undefined"!=typeof document?document.body:null}()||{},$=!!W.style&&"WebkitAppearance"in W.style);let re=!0;return W.style&&!function ye(_t){return"ebkit"==_t.substring(1,6)}(_t)&&(re=_t in W.style,!re&&$&&(re="Webkit"+_t.charAt(0).toUpperCase()+_t.substr(1)in W.style)),re}const Le=lt,ct=Ie;let Dt=(()=>{class _t{validateStyleProperty(he){return ue(he)}matchesElement(he,Ye){return!1}containsElement(he,Ye){return Le(he,Ye)}getParentElement(he){return oe(he)}query(he,Ye,wt){return ct(he,Ye,wt)}computeStyle(he,Ye,wt){return wt||""}animate(he,Ye,wt,Ft,ii,ni=[],yi){return new f.ZN(wt,Ft)}}return _t.\u0275fac=function(he){return new(he||_t)},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})(),di=(()=>{class _t{}return _t.NOOP=new Dt,_t})();const xt="ng-enter",Nt="ng-leave",gt="ng-trigger",et=".ng-trigger",vt="ng-animating",$t=".ng-animating";function jt(_t){if("number"==typeof _t)return _t;const re=_t.match(/^(-?[\.\d]+)(m?s)/);return!re||re.length<2?0:Pe(parseFloat(re[1]),re[2])}function Pe(_t,re){return"s"===re?1e3*_t:_t}function Oe(_t,re,he){return _t.hasOwnProperty("duration")?_t:function le(_t,re,he){let wt,Ft=0,ii="";if("string"==typeof _t){const ni=_t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ni)return re.push(b()),{duration:0,delay:0,easing:""};wt=Pe(parseFloat(ni[1]),ni[2]);const yi=ni[3];null!=yi&&(Ft=Pe(parseFloat(yi),ni[4]));const Pi=ni[5];Pi&&(ii=Pi)}else wt=_t;if(!he){let ni=!1,yi=re.length;wt<0&&(re.push(function d(){return new t.vHH(3100,M)}()),ni=!0),Ft<0&&(re.push(function N(){return new t.vHH(3101,M)}()),ni=!0),ni&&re.splice(yi,0,b())}return{duration:wt,delay:Ft,easing:ii}}(_t,re,he)}function be(_t,re={}){return Object.keys(_t).forEach(he=>{re[he]=_t[he]}),re}function ft(_t,re,he={}){if(re)for(let Ye in _t)he[Ye]=_t[Ye];else be(_t,he);return he}function Ht(_t,re,he){return he?re+":"+he+";":""}function it(_t){let re="";for(let he=0;he<_t.style.length;he++){const Ye=_t.style.item(he);re+=Ht(0,Ye,_t.style.getPropertyValue(Ye))}for(const he in _t.style)_t.style.hasOwnProperty(he)&&!he.startsWith("_")&&(re+=Ht(0,Jt(he),_t.style[he]));_t.setAttribute("style",re)}function Ne(_t,re,he){_t.style&&(Object.keys(re).forEach(Ye=>{const wt=Qt(Ye);he&&!he.hasOwnProperty(Ye)&&(he[Ye]=_t.style[wt]),_t.style[wt]=re[Ye]}),xe()&&it(_t))}function tt(_t,re){_t.style&&(Object.keys(re).forEach(he=>{const Ye=Qt(he);_t.style[Ye]=""}),xe()&&it(_t))}function Je(_t){return Array.isArray(_t)?1==_t.length?_t[0]:(0,f.vP)(_t):_t}const Ue=new RegExp("{{\\s*(.+?)\\s*}}","g");function rt(_t){let re=[];if("string"==typeof _t){let he;for(;he=Ue.exec(_t);)re.push(he[1]);Ue.lastIndex=0}return re}function at(_t,re,he){const Ye=_t.toString(),wt=Ye.replace(Ue,(Ft,ii)=>{let ni=re[ii];return re.hasOwnProperty(ii)||(he.push(function A(_t){return new t.vHH(3003,M)}()),ni=""),ni.toString()});return wt==Ye?_t:wt}function yt(_t){const re=[];let he=_t.next();for(;!he.done;)re.push(he.value),he=_t.next();return re}const gi=/-+([a-z0-9])/g;function Qt(_t){return _t.replace(gi,(...re)=>re[1].toUpperCase())}function Jt(_t){return _t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ai(_t,re,he){switch(re.type){case 7:return _t.visitTrigger(re,he);case 0:return _t.visitState(re,he);case 1:return _t.visitTransition(re,he);case 2:return _t.visitSequence(re,he);case 3:return _t.visitGroup(re,he);case 4:return _t.visitAnimate(re,he);case 5:return _t.visitKeyframes(re,he);case 6:return _t.visitStyle(re,he);case 8:return _t.visitReference(re,he);case 9:return _t.visitAnimateChild(re,he);case 10:return _t.visitAnimateRef(re,he);case 11:return _t.visitQuery(re,he);case 12:return _t.visitStagger(re,he);default:throw function D(_t){return new t.vHH(3004,M)}()}}function tn(_t,re){return window.getComputedStyle(_t)[re]}function ie(_t,re){const he=[];return"string"==typeof _t?_t.split(/\s*,\s*/).forEach(Ye=>function qe(_t,re,he){if(":"==_t[0]){const yi=function Mt(_t,re){switch(_t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(he,Ye)=>parseFloat(Ye)>parseFloat(he);case":decrement":return(he,Ye)=>parseFloat(Ye) *"}}(_t,he);if("function"==typeof yi)return void re.push(yi);_t=yi}const Ye=_t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Ye||Ye.length<4)return he.push(function J(_t){return new t.vHH(3015,M)}()),re;const wt=Ye[1],Ft=Ye[2],ii=Ye[3];re.push(Ei(wt,ii));"<"==Ft[0]&&!("*"==wt&&"*"==ii)&&re.push(Ei(ii,wt))}(Ye,he,re)):he.push(_t),he}const Vt=new Set(["true","1"]),Mi=new Set(["false","0"]);function Ei(_t,re){const he=Vt.has(_t)||Mi.has(_t),Ye=Vt.has(re)||Mi.has(re);return(wt,Ft)=>{let ii="*"==_t||_t==wt,ni="*"==re||re==Ft;return!ii&&he&&"boolean"==typeof wt&&(ii=wt?Vt.has(_t):Mi.has(_t)),!ni&&Ye&&"boolean"==typeof Ft&&(ni=Ft?Vt.has(re):Mi.has(re)),ii&&ni}}const ji=new RegExp("s*:selfs*,?","g");function Kt(_t,re,he,Ye){return new zt(_t).build(re,he,Ye)}class zt{constructor(re){this._driver=re}build(re,he,Ye){const wt=new mi(he);this._resetContextStyleTimingState(wt);const Ft=ai(this,Je(re),wt);return wt.unsupportedCSSPropertiesFound.size&&wt.unsupportedCSSPropertiesFound.keys(),Ft}_resetContextStyleTimingState(re){re.currentQuerySelector="",re.collectedStyles={},re.collectedStyles[""]={},re.currentTime=0}visitTrigger(re,he){let Ye=he.queryCount=0,wt=he.depCount=0;const Ft=[],ii=[];return"@"==re.name.charAt(0)&&he.errors.push(function S(){return new t.vHH(3006,M)}()),re.definitions.forEach(ni=>{if(this._resetContextStyleTimingState(he),0==ni.type){const yi=ni,Pi=yi.name;Pi.toString().split(/\s*,\s*/).forEach(nn=>{yi.name=nn,Ft.push(this.visitState(yi,he))}),yi.name=Pi}else if(1==ni.type){const yi=this.visitTransition(ni,he);Ye+=yi.queryCount,wt+=yi.depCount,ii.push(yi)}else he.errors.push(function I(){return new t.vHH(3007,M)}())}),{type:7,name:re.name,states:Ft,transitions:ii,queryCount:Ye,depCount:wt,options:null}}visitState(re,he){const Ye=this.visitStyle(re.styles,he),wt=re.options&&re.options.params||null;if(Ye.containsDynamicStyles){const Ft=new Set,ii=wt||{};Ye.styles.forEach(ni=>{if(vi(ni)){const yi=ni;Object.keys(yi).forEach(Pi=>{rt(yi[Pi]).forEach(nn=>{ii.hasOwnProperty(nn)||Ft.add(nn)})})}}),Ft.size&&(yt(Ft.values()),he.errors.push(function L(_t,re){return new t.vHH(3008,M)}()))}return{type:0,name:re.name,style:Ye,options:wt?{params:wt}:null}}visitTransition(re,he){he.queryCount=0,he.depCount=0;const Ye=ai(this,Je(re.animation),he);return{type:1,matchers:ie(re.expr,he.errors),animation:Ye,queryCount:he.queryCount,depCount:he.depCount,options:Fi(re.options)}}visitSequence(re,he){return{type:2,steps:re.steps.map(Ye=>ai(this,Ye,he)),options:Fi(re.options)}}visitGroup(re,he){const Ye=he.currentTime;let wt=0;const Ft=re.steps.map(ii=>{he.currentTime=Ye;const ni=ai(this,ii,he);return wt=Math.max(wt,he.currentTime),ni});return he.currentTime=wt,{type:3,steps:Ft,options:Fi(re.options)}}visitAnimate(re,he){const Ye=function Bi(_t,re){if(_t.hasOwnProperty("duration"))return _t;if("number"==typeof _t)return pn(Oe(_t,re).duration,0,"");const he=_t;if(he.split(/\s+/).some(Ft=>"{"==Ft.charAt(0)&&"{"==Ft.charAt(1))){const Ft=pn(0,0,"");return Ft.dynamic=!0,Ft.strValue=he,Ft}const wt=Oe(he,re);return pn(wt.duration,wt.delay,wt.easing)}(re.timings,he.errors);he.currentAnimateTimings=Ye;let wt,Ft=re.styles?re.styles:(0,f.oB)({});if(5==Ft.type)wt=this.visitKeyframes(Ft,he);else{let ii=re.styles,ni=!1;if(!ii){ni=!0;const Pi={};Ye.easing&&(Pi.easing=Ye.easing),ii=(0,f.oB)(Pi)}he.currentTime+=Ye.duration+Ye.delay;const yi=this.visitStyle(ii,he);yi.isEmptyStep=ni,wt=yi}return he.currentAnimateTimings=null,{type:4,timings:Ye,style:wt,options:null}}visitStyle(re,he){const Ye=this._makeStyleAst(re,he);return this._validateStyleAst(Ye,he),Ye}_makeStyleAst(re,he){const Ye=[];Array.isArray(re.styles)?re.styles.forEach(ii=>{"string"==typeof ii?ii==f.l3?Ye.push(ii):he.errors.push(function U(_t){return new t.vHH(3002,M)}()):Ye.push(ii)}):Ye.push(re.styles);let wt=!1,Ft=null;return Ye.forEach(ii=>{if(vi(ii)){const ni=ii,yi=ni.easing;if(yi&&(Ft=yi,delete ni.easing),!wt)for(let Pi in ni)if(ni[Pi].toString().indexOf("{{")>=0){wt=!0;break}}}),{type:6,styles:Ye,easing:Ft,offset:re.offset,containsDynamicStyles:wt,options:null}}_validateStyleAst(re,he){const Ye=he.currentAnimateTimings;let wt=he.currentTime,Ft=he.currentTime;Ye&&Ft>0&&(Ft-=Ye.duration+Ye.delay),re.styles.forEach(ii=>{"string"!=typeof ii&&Object.keys(ii).forEach(ni=>{if(!this._driver.validateStyleProperty(ni))return delete ii[ni],void he.unsupportedCSSPropertiesFound.add(ni);const yi=he.collectedStyles[he.currentQuerySelector],Pi=yi[ni];let nn=!0;Pi&&(Ft!=wt&&Ft>=Pi.startTime&&wt<=Pi.endTime&&(he.errors.push(function j(_t,re,he,Ye,wt){return new t.vHH(3010,M)}()),nn=!1),Ft=Pi.startTime),nn&&(yi[ni]={startTime:Ft,endTime:wt}),he.options&&function Se(_t,re,he){const Ye=re.params||{},wt=rt(_t);wt.length&&wt.forEach(Ft=>{Ye.hasOwnProperty(Ft)||he.push(function h(_t){return new t.vHH(3001,M)}())})}(ii[ni],he.options,he.errors)})})}visitKeyframes(re,he){const Ye={type:5,styles:[],options:null};if(!he.currentAnimateTimings)return he.errors.push(function ne(){return new t.vHH(3011,M)}()),Ye;let Ft=0;const ii=[];let ni=!1,yi=!1,Pi=0;const nn=re.steps.map(xr=>{const cr=this._makeStyleAst(xr,he);let Xr=null!=cr.offset?cr.offset:function ti(_t){if("string"==typeof _t)return null;let re=null;if(Array.isArray(_t))_t.forEach(he=>{if(vi(he)&&he.hasOwnProperty("offset")){const Ye=he;re=parseFloat(Ye.offset),delete Ye.offset}});else if(vi(_t)&&_t.hasOwnProperty("offset")){const he=_t;re=parseFloat(he.offset),delete he.offset}return re}(cr.styles),Yr=0;return null!=Xr&&(Ft++,Yr=cr.offset=Xr),yi=yi||Yr<0||Yr>1,ni=ni||Yr0&&Ft{const Xr=Sn>0?cr==Pn?1:Sn*cr:ii[cr],Yr=Xr*qn;he.currentTime=yn+Tn.delay+Yr,Tn.duration=Yr,this._validateStyleAst(xr,he),xr.offset=Xr,Ye.styles.push(xr)}),Ye}visitReference(re,he){return{type:8,animation:ai(this,Je(re.animation),he),options:Fi(re.options)}}visitAnimateChild(re,he){return he.depCount++,{type:9,options:Fi(re.options)}}visitAnimateRef(re,he){return{type:10,animation:this.visitReference(re.animation,he),options:Fi(re.options)}}visitQuery(re,he){const Ye=he.currentQuerySelector,wt=re.options||{};he.queryCount++,he.currentQuery=re;const[Ft,ii]=function si(_t){const re=!!_t.split(/\s*,\s*/).find(he=>":self"==he);return re&&(_t=_t.replace(ji,"")),_t=_t.replace(/@\*/g,et).replace(/@\w+/g,he=>et+"-"+he.substr(1)).replace(/:animating/g,$t),[_t,re]}(re.selector);he.currentQuerySelector=Ye.length?Ye+" "+Ft:Ft,F(he.collectedStyles,he.currentQuerySelector,{});const ni=ai(this,Je(re.animation),he);return he.currentQuery=null,he.currentQuerySelector=Ye,{type:11,selector:Ft,limit:wt.limit||0,optional:!!wt.optional,includeSelf:ii,animation:ni,originalSelector:re.selector,options:Fi(re.options)}}visitStagger(re,he){he.currentQuery||he.errors.push(function te(){return new t.vHH(3013,M)}());const Ye="full"===re.timings?{duration:0,delay:0,easing:"full"}:Oe(re.timings,he.errors,!0);return{type:12,animation:ai(this,Je(re.animation),he),timings:Ye,options:null}}}class mi{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 vi(_t){return!Array.isArray(_t)&&"object"==typeof _t}function Fi(_t){return _t?(_t=be(_t)).params&&(_t.params=function Pt(_t){return _t?be(_t):null}(_t.params)):_t={},_t}function pn(_t,re,he){return{duration:_t,delay:re,easing:he}}function Fn(_t,re,he,Ye,wt,Ft,ii=null,ni=!1){return{type:1,element:_t,keyframes:re,preStyleProps:he,postStyleProps:Ye,duration:wt,delay:Ft,totalTime:wt+Ft,easing:ii,subTimeline:ni}}class Dn{constructor(){this._map=new Map}get(re){return this._map.get(re)||[]}append(re,he){let Ye=this._map.get(re);Ye||this._map.set(re,Ye=[]),Ye.push(...he)}has(re){return this._map.has(re)}clear(){this._map.clear()}}const cn=new RegExp(":enter","g"),Br=new RegExp(":leave","g");function Jn(_t,re,he,Ye,wt,Ft={},ii={},ni,yi,Pi=[]){return(new mr).buildKeyframes(_t,re,he,Ye,wt,Ft,ii,ni,yi,Pi)}class mr{buildKeyframes(re,he,Ye,wt,Ft,ii,ni,yi,Pi,nn=[]){Pi=Pi||new Dn;const un=new Nr(re,he,Pi,wt,Ft,nn,[]);un.options=yi,un.currentTimeline.setStyles([ii],null,un.errors,yi),ai(this,Ye,un);const Sn=un.timelines.filter(Pn=>Pn.containsAnimation());if(Object.keys(ni).length){let Pn;for(let yn=Sn.length-1;yn>=0;yn--){const Tn=Sn[yn];if(Tn.element===he){Pn=Tn;break}}Pn&&!Pn.allowOnlyTimelineStyles()&&Pn.setStyles([ni],null,un.errors,yi)}return Sn.length?Sn.map(Pn=>Pn.buildKeyframes()):[Fn(he,[],[],[],0,0,"",!1)]}visitTrigger(re,he){}visitState(re,he){}visitTransition(re,he){}visitAnimateChild(re,he){const Ye=he.subInstructions.get(he.element);if(Ye){const wt=he.createSubContext(re.options),Ft=he.currentTimeline.currentTime,ii=this._visitSubInstructions(Ye,wt,wt.options);Ft!=ii&&he.transformIntoNewTimeline(ii)}he.previousNode=re}visitAnimateRef(re,he){const Ye=he.createSubContext(re.options);Ye.transformIntoNewTimeline(),this.visitReference(re.animation,Ye),he.transformIntoNewTimeline(Ye.currentTimeline.currentTime),he.previousNode=re}_visitSubInstructions(re,he,Ye){let Ft=he.currentTimeline.currentTime;const ii=null!=Ye.duration?jt(Ye.duration):null,ni=null!=Ye.delay?jt(Ye.delay):null;return 0!==ii&&re.forEach(yi=>{const Pi=he.appendInstructionToTimeline(yi,ii,ni);Ft=Math.max(Ft,Pi.duration+Pi.delay)}),Ft}visitReference(re,he){he.updateOptions(re.options,!0),ai(this,re.animation,he),he.previousNode=re}visitSequence(re,he){const Ye=he.subContextCount;let wt=he;const Ft=re.options;if(Ft&&(Ft.params||Ft.delay)&&(wt=he.createSubContext(Ft),wt.transformIntoNewTimeline(),null!=Ft.delay)){6==wt.previousNode.type&&(wt.currentTimeline.snapshotCurrentStyles(),wt.previousNode=Pr);const ii=jt(Ft.delay);wt.delayNextStep(ii)}re.steps.length&&(re.steps.forEach(ii=>ai(this,ii,wt)),wt.currentTimeline.applyStylesToKeyframe(),wt.subContextCount>Ye&&wt.transformIntoNewTimeline()),he.previousNode=re}visitGroup(re,he){const Ye=[];let wt=he.currentTimeline.currentTime;const Ft=re.options&&re.options.delay?jt(re.options.delay):0;re.steps.forEach(ii=>{const ni=he.createSubContext(re.options);Ft&&ni.delayNextStep(Ft),ai(this,ii,ni),wt=Math.max(wt,ni.currentTimeline.currentTime),Ye.push(ni.currentTimeline)}),Ye.forEach(ii=>he.currentTimeline.mergeTimelineCollectedStyles(ii)),he.transformIntoNewTimeline(wt),he.previousNode=re}_visitTiming(re,he){if(re.dynamic){const Ye=re.strValue;return Oe(he.params?at(Ye,he.params,he.errors):Ye,he.errors)}return{duration:re.duration,delay:re.delay,easing:re.easing}}visitAnimate(re,he){const Ye=he.currentAnimateTimings=this._visitTiming(re.timings,he),wt=he.currentTimeline;Ye.delay&&(he.incrementTime(Ye.delay),wt.snapshotCurrentStyles());const Ft=re.style;5==Ft.type?this.visitKeyframes(Ft,he):(he.incrementTime(Ye.duration),this.visitStyle(Ft,he),wt.applyStylesToKeyframe()),he.currentAnimateTimings=null,he.previousNode=re}visitStyle(re,he){const Ye=he.currentTimeline,wt=he.currentAnimateTimings;!wt&&Ye.getCurrentStyleProperties().length&&Ye.forwardFrame();const Ft=wt&&wt.easing||re.easing;re.isEmptyStep?Ye.applyEmptyStep(Ft):Ye.setStyles(re.styles,Ft,he.errors,he.options),he.previousNode=re}visitKeyframes(re,he){const Ye=he.currentAnimateTimings,wt=he.currentTimeline.duration,Ft=Ye.duration,ni=he.createSubContext().currentTimeline;ni.easing=Ye.easing,re.styles.forEach(yi=>{ni.forwardTime((yi.offset||0)*Ft),ni.setStyles(yi.styles,yi.easing,he.errors,he.options),ni.applyStylesToKeyframe()}),he.currentTimeline.mergeTimelineCollectedStyles(ni),he.transformIntoNewTimeline(wt+Ft),he.previousNode=re}visitQuery(re,he){const Ye=he.currentTimeline.currentTime,wt=re.options||{},Ft=wt.delay?jt(wt.delay):0;Ft&&(6===he.previousNode.type||0==Ye&&he.currentTimeline.getCurrentStyleProperties().length)&&(he.currentTimeline.snapshotCurrentStyles(),he.previousNode=Pr);let ii=Ye;const ni=he.invokeQuery(re.selector,re.originalSelector,re.limit,re.includeSelf,!!wt.optional,he.errors);he.currentQueryTotal=ni.length;let yi=null;ni.forEach((Pi,nn)=>{he.currentQueryIndex=nn;const un=he.createSubContext(re.options,Pi);Ft&&un.delayNextStep(Ft),Pi===he.element&&(yi=un.currentTimeline),ai(this,re.animation,un),un.currentTimeline.applyStylesToKeyframe(),ii=Math.max(ii,un.currentTimeline.currentTime)}),he.currentQueryIndex=0,he.currentQueryTotal=0,he.transformIntoNewTimeline(ii),yi&&(he.currentTimeline.mergeTimelineCollectedStyles(yi),he.currentTimeline.snapshotCurrentStyles()),he.previousNode=re}visitStagger(re,he){const Ye=he.parentContext,wt=he.currentTimeline,Ft=re.timings,ii=Math.abs(Ft.duration),ni=ii*(he.currentQueryTotal-1);let yi=ii*he.currentQueryIndex;switch(Ft.duration<0?"reverse":Ft.easing){case"reverse":yi=ni-yi;break;case"full":yi=Ye.currentStaggerTime}const nn=he.currentTimeline;yi&&nn.delayNextStep(yi);const un=nn.currentTime;ai(this,re.animation,he),he.previousNode=re,Ye.currentStaggerTime=wt.currentTime-un+(wt.startTime-Ye.currentTimeline.startTime)}}const Pr={};class Nr{constructor(re,he,Ye,wt,Ft,ii,ni,yi){this._driver=re,this.element=he,this.subInstructions=Ye,this._enterClassName=wt,this._leaveClassName=Ft,this.errors=ii,this.timelines=ni,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Pr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=yi||new ca(this._driver,he,0),ni.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(re,he){if(!re)return;const Ye=re;let wt=this.options;null!=Ye.duration&&(wt.duration=jt(Ye.duration)),null!=Ye.delay&&(wt.delay=jt(Ye.delay));const Ft=Ye.params;if(Ft){let ii=wt.params;ii||(ii=this.options.params={}),Object.keys(Ft).forEach(ni=>{(!he||!ii.hasOwnProperty(ni))&&(ii[ni]=at(Ft[ni],ii,this.errors))})}}_copyOptions(){const re={};if(this.options){const he=this.options.params;if(he){const Ye=re.params={};Object.keys(he).forEach(wt=>{Ye[wt]=he[wt]})}}return re}createSubContext(re=null,he,Ye){const wt=he||this.element,Ft=new Nr(this._driver,wt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(wt,Ye||0));return Ft.previousNode=this.previousNode,Ft.currentAnimateTimings=this.currentAnimateTimings,Ft.options=this._copyOptions(),Ft.updateOptions(re),Ft.currentQueryIndex=this.currentQueryIndex,Ft.currentQueryTotal=this.currentQueryTotal,Ft.parentContext=this,this.subContextCount++,Ft}transformIntoNewTimeline(re){return this.previousNode=Pr,this.currentTimeline=this.currentTimeline.fork(this.element,re),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(re,he,Ye){const wt={duration:null!=he?he:re.duration,delay:this.currentTimeline.currentTime+(null!=Ye?Ye:0)+re.delay,easing:""},Ft=new ga(this._driver,re.element,re.keyframes,re.preStyleProps,re.postStyleProps,wt,re.stretchStartingKeyframe);return this.timelines.push(Ft),wt}incrementTime(re){this.currentTimeline.forwardTime(this.currentTimeline.duration+re)}delayNextStep(re){re>0&&this.currentTimeline.delayNextStep(re)}invokeQuery(re,he,Ye,wt,Ft,ii){let ni=[];if(wt&&ni.push(this.element),re.length>0){re=(re=re.replace(cn,"."+this._enterClassName)).replace(Br,"."+this._leaveClassName);let Pi=this._driver.query(this.element,re,1!=Ye);0!==Ye&&(Pi=Ye<0?Pi.slice(Pi.length+Ye,Pi.length):Pi.slice(0,Ye)),ni.push(...Pi)}return!Ft&&0==ni.length&&ii.push(function ce(_t){return new t.vHH(3014,M)}()),ni}}class ca{constructor(re,he,Ye,wt){this._driver=re,this.element=he,this.startTime=Ye,this._elementTimelineStylesLookup=wt,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(he),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(he,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 he=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||he?(this.forwardTime(this.currentTime+re),he&&this.snapshotCurrentStyles()):this.startTime+=re}fork(re,he){return this.applyStylesToKeyframe(),new ca(this._driver,re,he||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,he){this._localTimelineStyles[re]=he,this._globalTimelineStyles[re]=he,this._styleSummary[re]={time:this.currentTime,value:he}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(re){re&&(this._previousKeyframe.easing=re),Object.keys(this._globalTimelineStyles).forEach(he=>{this._backFill[he]=this._globalTimelineStyles[he]||f.l3,this._currentKeyframe[he]=f.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(re,he,Ye,wt){he&&(this._previousKeyframe.easing=he);const Ft=wt&&wt.params||{},ii=function Na(_t,re){const he={};let Ye;return _t.forEach(wt=>{"*"===wt?(Ye=Ye||Object.keys(re),Ye.forEach(Ft=>{he[Ft]=f.l3})):ft(wt,!1,he)}),he}(re,this._globalTimelineStyles);Object.keys(ii).forEach(ni=>{const yi=at(ii[ni],Ft,Ye);this._pendingStyles[ni]=yi,this._localTimelineStyles.hasOwnProperty(ni)||(this._backFill[ni]=this._globalTimelineStyles.hasOwnProperty(ni)?this._globalTimelineStyles[ni]:f.l3),this._updateStyle(ni,yi)})}applyStylesToKeyframe(){const re=this._pendingStyles,he=Object.keys(re);0!=he.length&&(this._pendingStyles={},he.forEach(Ye=>{this._currentKeyframe[Ye]=re[Ye]}),Object.keys(this._localTimelineStyles).forEach(Ye=>{this._currentKeyframe.hasOwnProperty(Ye)||(this._currentKeyframe[Ye]=this._localTimelineStyles[Ye])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(re=>{const he=this._localTimelineStyles[re];this._pendingStyles[re]=he,this._updateStyle(re,he)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const re=[];for(let he in this._currentKeyframe)re.push(he);return re}mergeTimelineCollectedStyles(re){Object.keys(re._styleSummary).forEach(he=>{const Ye=this._styleSummary[he],wt=re._styleSummary[he];(!Ye||wt.time>Ye.time)&&this._updateStyle(he,wt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const re=new Set,he=new Set,Ye=1===this._keyframes.size&&0===this.duration;let wt=[];this._keyframes.forEach((ni,yi)=>{const Pi=ft(ni,!0);Object.keys(Pi).forEach(nn=>{const un=Pi[nn];un==f.k1?re.add(nn):un==f.l3&&he.add(nn)}),Ye||(Pi.offset=yi/this.duration),wt.push(Pi)});const Ft=re.size?yt(re.values()):[],ii=he.size?yt(he.values()):[];if(Ye){const ni=wt[0],yi=be(ni);ni.offset=0,yi.offset=1,wt=[ni,yi]}return Fn(this.element,wt,Ft,ii,this.duration,this.startTime,this.easing,!1)}}class ga extends ca{constructor(re,he,Ye,wt,Ft,ii,ni=!1){super(re,he,ii.delay),this.keyframes=Ye,this.preStyleProps=wt,this.postStyleProps=Ft,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:he,duration:Ye,easing:wt}=this.timings;if(this._stretchStartingKeyframe&&he){const Ft=[],ii=Ye+he,ni=he/ii,yi=ft(re[0],!1);yi.offset=0,Ft.push(yi);const Pi=ft(re[0],!1);Pi.offset=Ca(ni),Ft.push(Pi);const nn=re.length-1;for(let un=1;un<=nn;un++){let Sn=ft(re[un],!1);Sn.offset=Ca((he+Sn.offset*Ye)/ii),Ft.push(Sn)}Ye=ii,he=0,wt="",re=Ft}return Fn(this.element,re,this.preStyleProps,this.postStyleProps,Ye,he,wt,!0)}}function Ca(_t,re=3){const he=Math.pow(10,re-1);return Math.round(_t*he)/he}class nr{}class da extends nr{normalizePropertyName(re,he){return Qt(re)}normalizeStyleValue(re,he,Ye,wt){let Ft="";const ii=Ye.toString().trim();if(Ha[he]&&0!==Ye&&"0"!==Ye)if("number"==typeof Ye)Ft="px";else{const ni=Ye.match(/^[+-]?[\d\.]+([a-z]*)$/);ni&&0==ni[1].length&&wt.push(function w(_t,re){return new t.vHH(3005,M)}())}return ii+Ft}}const Ha=(()=>function Ur(_t){const re={};return _t.forEach(he=>re[he]=!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 Gr(_t,re,he,Ye,wt,Ft,ii,ni,yi,Pi,nn,un,Sn){return{type:0,element:_t,triggerName:re,isRemovalTransition:wt,fromState:he,fromStyles:Ft,toState:Ye,toStyles:ii,timelines:ni,queriedElements:yi,preStyleProps:Pi,postStyleProps:nn,totalTime:un,errors:Sn}}const lr={};class fn{constructor(re,he,Ye){this._triggerName=re,this.ast=he,this._stateStyles=Ye}match(re,he,Ye,wt){return function qr(_t,re,he,Ye,wt){return _t.some(Ft=>Ft(re,he,Ye,wt))}(this.ast.matchers,re,he,Ye,wt)}buildStyles(re,he,Ye){const wt=this._stateStyles["*"],Ft=this._stateStyles[re],ii=wt?wt.buildStyles(he,Ye):{};return Ft?Ft.buildStyles(he,Ye):ii}build(re,he,Ye,wt,Ft,ii,ni,yi,Pi,nn){const un=[],Sn=this.ast.options&&this.ast.options.params||lr,yn=this.buildStyles(Ye,ni&&ni.params||lr,un),Tn=yi&&yi.params||lr,qn=this.buildStyles(wt,Tn,un),xr=new Set,cr=new Map,Xr=new Map,Yr="void"===wt,dr={params:Object.assign(Object.assign({},Sn),Tn)},zr=nn?[]:Jn(re,he,this.ast.animation,Ft,ii,yn,qn,dr,Pi,un);let Bn=0;if(zr.forEach(za=>{Bn=Math.max(za.duration+za.delay,Bn)}),un.length)return Gr(he,this._triggerName,Ye,wt,Yr,yn,qn,[],[],cr,Xr,Bn,un);zr.forEach(za=>{const nt=za.element,Et=F(cr,nt,{});za.preStyleProps.forEach(Rt=>Et[Rt]=!0);const At=F(Xr,nt,{});za.postStyleProps.forEach(Rt=>At[Rt]=!0),nt!==he&&xr.add(nt)});const ur=yt(xr.values());return Gr(he,this._triggerName,Ye,wt,Yr,yn,qn,zr,ur,cr,Xr,Bn)}}class Xn{constructor(re,he,Ye){this.styles=re,this.defaultParams=he,this.normalizer=Ye}buildStyles(re,he){const Ye={},wt=be(this.defaultParams);return Object.keys(re).forEach(Ft=>{const ii=re[Ft];null!=ii&&(wt[Ft]=ii)}),this.styles.styles.forEach(Ft=>{if("string"!=typeof Ft){const ii=Ft;Object.keys(ii).forEach(ni=>{let yi=ii[ni];yi.length>1&&(yi=at(yi,wt,he));const Pi=this.normalizer.normalizePropertyName(ni,he);yi=this.normalizer.normalizeStyleValue(ni,Pi,yi,he),Ye[Pi]=yi})}}),Ye}}class Zr{constructor(re,he,Ye){this.name=re,this.ast=he,this._normalizer=Ye,this.transitionFactories=[],this.states={},he.states.forEach(wt=>{this.states[wt.name]=new Xn(wt.style,wt.options&&wt.options.params||{},Ye)}),Jr(this.states,"true","1"),Jr(this.states,"false","0"),he.transitions.forEach(wt=>{this.transitionFactories.push(new fn(re,wt,this.states))}),this.fallbackTransition=function Ea(_t,re,he){return new fn(_t,{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,he,Ye,wt){return this.transitionFactories.find(ii=>ii.match(re,he,Ye,wt))||null}matchStyles(re,he,Ye){return this.fallbackTransition.buildStyles(re,he,Ye)}}function Jr(_t,re,he){_t.hasOwnProperty(re)?_t.hasOwnProperty(he)||(_t[he]=_t[re]):_t.hasOwnProperty(he)&&(_t[re]=_t[he])}const Dr=new Dn;class Rr{constructor(re,he,Ye){this.bodyNode=re,this._driver=he,this._normalizer=Ye,this._animations={},this._playersById={},this.players=[]}register(re,he){const Ye=[],Ft=Kt(this._driver,he,Ye,[]);if(Ye.length)throw function c(_t){return new t.vHH(3503,M)}();this._animations[re]=Ft}_buildPlayer(re,he,Ye){const wt=re.element,Ft=we(0,this._normalizer,0,re.keyframes,he,Ye);return this._driver.animate(wt,Ft,re.duration,re.delay,re.easing,[],!0)}create(re,he,Ye={}){const wt=[],Ft=this._animations[re];let ii;const ni=new Map;if(Ft?(ii=Jn(this._driver,he,Ft,xt,Nt,{},{},Ye,Dr,wt),ii.forEach(nn=>{const un=F(ni,nn.element,{});nn.postStyleProps.forEach(Sn=>un[Sn]=null)})):(wt.push(function C(){return new t.vHH(3300,M)}()),ii=[]),wt.length)throw function E(_t){return new t.vHH(3504,M)}();ni.forEach((nn,un)=>{Object.keys(nn).forEach(Sn=>{nn[Sn]=this._driver.computeStyle(un,Sn,f.l3)})});const Pi=Re(ii.map(nn=>{const un=ni.get(nn.element);return this._buildPlayer(nn,{},un)}));return this._playersById[re]=Pi,Pi.onDestroy(()=>this.destroy(re)),this.players.push(Pi),Pi}destroy(re){const he=this._getPlayer(re);he.destroy(),delete this._playersById[re];const Ye=this.players.indexOf(he);Ye>=0&&this.players.splice(Ye,1)}_getPlayer(re){const he=this._playersById[re];if(!he)throw function O(_t){return new t.vHH(3301,M)}();return he}listen(re,he,Ye,wt){const Ft=ve(he,"","","");return Q(this._getPlayer(re),Ye,Ft,wt),()=>{}}command(re,he,Ye,wt){if("register"==Ye)return void this.register(re,wt[0]);if("create"==Ye)return void this.create(re,he,wt[0]||{});const Ft=this._getPlayer(re);switch(Ye){case"play":Ft.play();break;case"pause":Ft.pause();break;case"reset":Ft.reset();break;case"restart":Ft.restart();break;case"finish":Ft.finish();break;case"init":Ft.init();break;case"setPosition":Ft.setPosition(parseFloat(wt[0]));break;case"destroy":this.destroy(re)}}}const Wr="ng-animate-queued",Ir="ng-animate-disabled",$n=[],Ta={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ia={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Kn="__ng_removed";class ra{constructor(re,he=""){this.namespaceId=he;const Ye=re&&re.hasOwnProperty("value");if(this.value=function Xe(_t){return null!=_t?_t:null}(Ye?re.value:re),Ye){const Ft=be(re);delete Ft.value,this.options=Ft}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(re){const he=re.params;if(he){const Ye=this.options.params;Object.keys(he).forEach(wt=>{null==Ye[wt]&&(Ye[wt]=he[wt])})}}}const Hr="void",Sr=new ra(Hr);class Fr{constructor(re,he,Ye){this.id=re,this.hostElement=he,this._engine=Ye,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+re,ki(he,this._hostClassName)}listen(re,he,Ye,wt){if(!this._triggers.hasOwnProperty(he))throw function _(_t,re){return new t.vHH(3302,M)}();if(null==Ye||0==Ye.length)throw function n(_t){return new t.vHH(3303,M)}();if(!function Ke(_t){return"start"==_t||"done"==_t}(Ye))throw function v(_t,re){return new t.vHH(3400,M)}();const Ft=F(this._elementListeners,re,[]),ii={name:he,phase:Ye,callback:wt};Ft.push(ii);const ni=F(this._engine.statesByElement,re,{});return ni.hasOwnProperty(he)||(ki(re,gt),ki(re,gt+"-"+he),ni[he]=Sr),()=>{this._engine.afterFlush(()=>{const yi=Ft.indexOf(ii);yi>=0&&Ft.splice(yi,1),this._triggers[he]||delete ni[he]})}}register(re,he){return!this._triggers[re]&&(this._triggers[re]=he,!0)}_getTrigger(re){const he=this._triggers[re];if(!he)throw function B(_t){return new t.vHH(3401,M)}();return he}trigger(re,he,Ye,wt=!0){const Ft=this._getTrigger(he),ii=new Fa(this.id,he,re);let ni=this._engine.statesByElement.get(re);ni||(ki(re,gt),ki(re,gt+"-"+he),this._engine.statesByElement.set(re,ni={}));let yi=ni[he];const Pi=new ra(Ye,this.id);if(!(Ye&&Ye.hasOwnProperty("value"))&&yi&&Pi.absorbOptions(yi.options),ni[he]=Pi,yi||(yi=Sr),Pi.value!==Hr&&yi.value===Pi.value){if(!function Zt(_t,re){const he=Object.keys(_t),Ye=Object.keys(re);if(he.length!=Ye.length)return!1;for(let wt=0;wt{tt(re,qn),Ne(re,xr)})}return}const Sn=F(this._engine.playersByElement,re,[]);Sn.forEach(Tn=>{Tn.namespaceId==this.id&&Tn.triggerName==he&&Tn.queued&&Tn.destroy()});let Pn=Ft.matchTransition(yi.value,Pi.value,re,Pi.params),yn=!1;if(!Pn){if(!wt)return;Pn=Ft.fallbackTransition,yn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:he,transition:Pn,fromState:yi,toState:Pi,player:ii,isFallbackTransition:yn}),yn||(ki(re,Wr),ii.onStart(()=>{an(re,Wr)})),ii.onDone(()=>{let Tn=this.players.indexOf(ii);Tn>=0&&this.players.splice(Tn,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),Sn.push(ii),ii}deregister(re){delete this._triggers[re],this._engine.statesByElement.forEach((he,Ye)=>{delete he[re]}),this._elementListeners.forEach((he,Ye)=>{this._elementListeners.set(Ye,he.filter(wt=>wt.name!=re))})}clearElementCache(re){this._engine.statesByElement.delete(re),this._elementListeners.delete(re);const he=this._engine.playersByElement.get(re);he&&(he.forEach(Ye=>Ye.destroy()),this._engine.playersByElement.delete(re))}_signalRemovalForInnerTriggers(re,he){const Ye=this._engine.driver.query(re,et,!0);Ye.forEach(wt=>{if(wt[Kn])return;const Ft=this._engine.fetchNamespacesByElement(wt);Ft.size?Ft.forEach(ii=>ii.triggerLeaveAnimation(wt,he,!1,!0)):this.clearElementCache(wt)}),this._engine.afterFlushAnimationsDone(()=>Ye.forEach(wt=>this.clearElementCache(wt)))}triggerLeaveAnimation(re,he,Ye,wt){const Ft=this._engine.statesByElement.get(re),ii=new Map;if(Ft){const ni=[];if(Object.keys(Ft).forEach(yi=>{if(ii.set(yi,Ft[yi].value),this._triggers[yi]){const Pi=this.trigger(re,yi,Hr,wt);Pi&&ni.push(Pi)}}),ni.length)return this._engine.markElementAsRemoved(this.id,re,!0,he,ii),Ye&&Re(ni).onDone(()=>this._engine.processLeaveNode(re)),!0}return!1}prepareLeaveAnimationListeners(re){const he=this._elementListeners.get(re),Ye=this._engine.statesByElement.get(re);if(he&&Ye){const wt=new Set;he.forEach(Ft=>{const ii=Ft.name;if(wt.has(ii))return;wt.add(ii);const yi=this._triggers[ii].fallbackTransition,Pi=Ye[ii]||Sr,nn=new ra(Hr),un=new Fa(this.id,ii,re);this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:ii,transition:yi,fromState:Pi,toState:nn,player:un,isFallbackTransition:!0})})}}removeNode(re,he){const Ye=this._engine;if(re.childElementCount&&this._signalRemovalForInnerTriggers(re,he),this.triggerLeaveAnimation(re,he,!0))return;let wt=!1;if(Ye.totalAnimations){const Ft=Ye.players.length?Ye.playersByQueriedElement.get(re):[];if(Ft&&Ft.length)wt=!0;else{let ii=re;for(;ii=ii.parentNode;)if(Ye.statesByElement.get(ii)){wt=!0;break}}}if(this.prepareLeaveAnimationListeners(re),wt)Ye.markElementAsRemoved(this.id,re,!1,he);else{const Ft=re[Kn];(!Ft||Ft===Ta)&&(Ye.afterFlush(()=>this.clearElementCache(re)),Ye.destroyInnerAnimations(re),Ye._onRemovalComplete(re,he))}}insertNode(re,he){ki(re,this._hostClassName)}drainQueuedTransitions(re){const he=[];return this._queue.forEach(Ye=>{const wt=Ye.player;if(wt.destroyed)return;const Ft=Ye.element,ii=this._elementListeners.get(Ft);ii&&ii.forEach(ni=>{if(ni.name==Ye.triggerName){const yi=ve(Ft,Ye.triggerName,Ye.fromState.value,Ye.toState.value);yi._data=re,Q(Ye.player,ni.phase,yi,ni.callback)}}),wt.markedForDestroy?this._engine.afterFlush(()=>{wt.destroy()}):he.push(Ye)}),this._queue=[],he.sort((Ye,wt)=>{const Ft=Ye.transition.ast.depCount,ii=wt.transition.ast.depCount;return 0==Ft||0==ii?Ft-ii:this._engine.driver.containsElement(Ye.element,wt.element)?1:-1})}destroy(re){this.players.forEach(he=>he.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,re)}elementContainsData(re){let he=!1;return this._elementListeners.has(re)&&(he=!0),he=!!this._queue.find(Ye=>Ye.element===re)||he,he}}class ya{constructor(re,he,Ye){this.bodyNode=re,this.driver=he,this._normalizer=Ye,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=(wt,Ft)=>{}}_onRemovalComplete(re,he){this.onRemovalComplete(re,he)}get queuedPlayers(){const re=[];return this._namespaceList.forEach(he=>{he.players.forEach(Ye=>{Ye.queued&&re.push(Ye)})}),re}createNamespace(re,he){const Ye=new Fr(re,he,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,he)?this._balanceNamespaceList(Ye,he):(this.newHostElements.set(he,Ye),this.collectEnterElement(he)),this._namespaceLookup[re]=Ye}_balanceNamespaceList(re,he){const Ye=this._namespaceList,wt=this.namespacesByHostElement,Ft=Ye.length-1;if(Ft>=0){let ii=!1;if(void 0!==this.driver.getParentElement){let ni=this.driver.getParentElement(he);for(;ni;){const yi=wt.get(ni);if(yi){const Pi=Ye.indexOf(yi);Ye.splice(Pi+1,0,re),ii=!0;break}ni=this.driver.getParentElement(ni)}}else for(let ni=Ft;ni>=0;ni--)if(this.driver.containsElement(Ye[ni].hostElement,he)){Ye.splice(ni+1,0,re),ii=!0;break}ii||Ye.unshift(re)}else Ye.push(re);return wt.set(he,re),re}register(re,he){let Ye=this._namespaceLookup[re];return Ye||(Ye=this.createNamespace(re,he)),Ye}registerTrigger(re,he,Ye){let wt=this._namespaceLookup[re];wt&&wt.register(he,Ye)&&this.totalAnimations++}destroy(re,he){if(!re)return;const Ye=this._fetchNamespace(re);this.afterFlush(()=>{this.namespacesByHostElement.delete(Ye.hostElement),delete this._namespaceLookup[re];const wt=this._namespaceList.indexOf(Ye);wt>=0&&this._namespaceList.splice(wt,1)}),this.afterFlushAnimationsDone(()=>Ye.destroy(he))}_fetchNamespace(re){return this._namespaceLookup[re]}fetchNamespacesByElement(re){const he=new Set,Ye=this.statesByElement.get(re);if(Ye){const wt=Object.keys(Ye);for(let Ft=0;Ft=0&&this.collectedLeaveElements.splice(ii,1)}if(re){const ii=this._fetchNamespace(re);ii&&ii.insertNode(he,Ye)}wt&&this.collectEnterElement(he)}collectEnterElement(re){this.collectedEnterElements.push(re)}markElementAsDisabled(re,he){he?this.disabledNodes.has(re)||(this.disabledNodes.add(re),ki(re,Ir)):this.disabledNodes.has(re)&&(this.disabledNodes.delete(re),an(re,Ir))}removeNode(re,he,Ye,wt){if(St(he)){const Ft=re?this._fetchNamespace(re):null;if(Ft?Ft.removeNode(he,wt):this.markElementAsRemoved(re,he,!1,wt),Ye){const ii=this.namespacesByHostElement.get(he);ii&&ii.id!==re&&ii.removeNode(he,wt)}}else this._onRemovalComplete(he,wt)}markElementAsRemoved(re,he,Ye,wt,Ft){this.collectedLeaveElements.push(he),he[Kn]={namespaceId:re,setForRemoval:wt,hasAnimation:Ye,removedBeforeQueried:!1,previousTriggersValues:Ft}}listen(re,he,Ye,wt,Ft){return St(he)?this._fetchNamespace(re).listen(he,Ye,wt,Ft):()=>{}}_buildInstruction(re,he,Ye,wt,Ft){return re.transition.build(this.driver,re.element,re.fromState.value,re.toState.value,Ye,wt,re.fromState.options,re.toState.options,he,Ft)}destroyInnerAnimations(re){let he=this.driver.query(re,et,!0);he.forEach(Ye=>this.destroyActiveAnimationsForElement(Ye)),0!=this.playersByQueriedElement.size&&(he=this.driver.query(re,$t,!0),he.forEach(Ye=>this.finishActiveQueriedAnimationOnElement(Ye)))}destroyActiveAnimationsForElement(re){const he=this.playersByElement.get(re);he&&he.forEach(Ye=>{Ye.queued?Ye.markedForDestroy=!0:Ye.destroy()})}finishActiveQueriedAnimationOnElement(re){const he=this.playersByQueriedElement.get(re);he&&he.forEach(Ye=>Ye.finish())}whenRenderingDone(){return new Promise(re=>{if(this.players.length)return Re(this.players).onDone(()=>re());re()})}processLeaveNode(re){var he;const Ye=re[Kn];if(Ye&&Ye.setForRemoval){if(re[Kn]=Ta,Ye.namespaceId){this.destroyInnerAnimations(re);const wt=this._fetchNamespace(Ye.namespaceId);wt&&wt.clearElementCache(re)}this._onRemovalComplete(re,Ye.setForRemoval)}(null===(he=re.classList)||void 0===he?void 0:he.contains(Ir))&&this.markElementAsDisabled(re,!1),this.driver.query(re,".ng-animate-disabled",!0).forEach(wt=>{this.markElementAsDisabled(wt,!1)})}flush(re=-1){let he=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ye,wt)=>this._balanceNamespaceList(Ye,wt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ye=0;YeYe()),this._flushFns=[],this._whenQuietFns.length){const Ye=this._whenQuietFns;this._whenQuietFns=[],he.length?Re(he).onDone(()=>{Ye.forEach(wt=>wt())}):Ye.forEach(wt=>wt())}}reportError(re){throw function P(_t){return new t.vHH(3402,M)}()}_flushAnimations(re,he){const Ye=new Dn,wt=[],Ft=new Map,ii=[],ni=new Map,yi=new Map,Pi=new Map,nn=new Set;this.disabledNodes.forEach(ei=>{nn.add(ei);const pi=this.driver.query(ei,".ng-animate-queued",!0);for(let Li=0;Li{const Li=xt+Tn++;yn.set(pi,Li),ei.forEach(qi=>ki(qi,Li))});const qn=[],xr=new Set,cr=new Set;for(let ei=0;eixr.add(qi)):cr.add(pi))}const Xr=new Map,Yr=Ti(Sn,Array.from(xr));Yr.forEach((ei,pi)=>{const Li=Nt+Tn++;Xr.set(pi,Li),ei.forEach(qi=>ki(qi,Li))}),re.push(()=>{Pn.forEach((ei,pi)=>{const Li=yn.get(pi);ei.forEach(qi=>an(qi,Li))}),Yr.forEach((ei,pi)=>{const Li=Xr.get(pi);ei.forEach(qi=>an(qi,Li))}),qn.forEach(ei=>{this.processLeaveNode(ei)})});const dr=[],zr=[];for(let ei=this._namespaceList.length-1;ei>=0;ei--)this._namespaceList[ei].drainQueuedTransitions(he).forEach(Li=>{const qi=Li.player,$i=Li.element;if(dr.push(qi),this.collectedEnterElements.length){const tr=$i[Kn];if(tr&&tr.setForMove){if(tr.previousTriggersValues&&tr.previousTriggersValues.has(Li.triggerName)){const br=tr.previousTriggersValues.get(Li.triggerName),hr=this.statesByElement.get(Li.element);hr&&hr[Li.triggerName]&&(hr[Li.triggerName].value=br)}return void qi.destroy()}}const on=!un||!this.driver.containsElement(un,$i),bn=Xr.get($i),Qn=yn.get($i),kn=this._buildInstruction(Li,Ye,Qn,bn,on);if(kn.errors&&kn.errors.length)return void zr.push(kn);if(on)return qi.onStart(()=>tt($i,kn.fromStyles)),qi.onDestroy(()=>Ne($i,kn.toStyles)),void wt.push(qi);if(Li.isFallbackTransition)return qi.onStart(()=>tt($i,kn.fromStyles)),qi.onDestroy(()=>Ne($i,kn.toStyles)),void wt.push(qi);const aa=[];kn.timelines.forEach(tr=>{tr.stretchStartingKeyframe=!0,this.disabledNodes.has(tr.element)||aa.push(tr)}),kn.timelines=aa,Ye.append($i,kn.timelines),ii.push({instruction:kn,player:qi,element:$i}),kn.queriedElements.forEach(tr=>F(ni,tr,[]).push(qi)),kn.preStyleProps.forEach((tr,br)=>{const hr=Object.keys(tr);if(hr.length){let kr=yi.get(br);kr||yi.set(br,kr=new Set),hr.forEach(jr=>kr.add(jr))}}),kn.postStyleProps.forEach((tr,br)=>{const hr=Object.keys(tr);let kr=Pi.get(br);kr||Pi.set(br,kr=new Set),hr.forEach(jr=>kr.add(jr))})});if(zr.length){const ei=[];zr.forEach(pi=>{ei.push(function se(_t,re){return new t.vHH(3505,M)}())}),dr.forEach(pi=>pi.destroy()),this.reportError(ei)}const Bn=new Map,ur=new Map;ii.forEach(ei=>{const pi=ei.element;Ye.has(pi)&&(ur.set(pi,pi),this._beforeAnimationBuild(ei.player.namespaceId,ei.instruction,Bn))}),wt.forEach(ei=>{const pi=ei.element;this._getPreviousPlayers(pi,!1,ei.namespaceId,ei.triggerName,null).forEach(qi=>{F(Bn,pi,[]).push(qi),qi.destroy()})});const za=qn.filter(ei=>Hi(ei,yi,Pi)),nt=new Map;ri(nt,this.driver,cr,Pi,f.l3).forEach(ei=>{Hi(ei,yi,Pi)&&za.push(ei)});const At=new Map;Pn.forEach((ei,pi)=>{ri(At,this.driver,new Set(ei),yi,f.k1)}),za.forEach(ei=>{const pi=nt.get(ei),Li=At.get(ei);nt.set(ei,Object.assign(Object.assign({},pi),Li))});const Rt=[],qt=[],_i={};ii.forEach(ei=>{const{element:pi,player:Li,instruction:qi}=ei;if(Ye.has(pi)){if(nn.has(pi))return Li.onDestroy(()=>Ne(pi,qi.toStyles)),Li.disabled=!0,Li.overrideTotalTime(qi.totalTime),void wt.push(Li);let $i=_i;if(ur.size>1){let bn=pi;const Qn=[];for(;bn=bn.parentNode;){const kn=ur.get(bn);if(kn){$i=kn;break}Qn.push(bn)}Qn.forEach(kn=>ur.set(kn,$i))}const on=this._buildAnimation(Li.namespaceId,qi,Bn,Ft,At,nt);if(Li.setRealPlayer(on),$i===_i)Rt.push(Li);else{const bn=this.playersByElement.get($i);bn&&bn.length&&(Li.parentPlayer=Re(bn)),wt.push(Li)}}else tt(pi,qi.fromStyles),Li.onDestroy(()=>Ne(pi,qi.toStyles)),qt.push(Li),nn.has(pi)&&wt.push(Li)}),qt.forEach(ei=>{const pi=Ft.get(ei.element);if(pi&&pi.length){const Li=Re(pi);ei.setRealPlayer(Li)}}),wt.forEach(ei=>{ei.parentPlayer?ei.syncPlayerEvents(ei.parentPlayer):ei.destroy()});for(let ei=0;ei!on.destroyed);$i.length?It(this,pi,$i):this.processLeaveNode(pi)}return qn.length=0,Rt.forEach(ei=>{this.players.push(ei),ei.onDone(()=>{ei.destroy();const pi=this.players.indexOf(ei);this.players.splice(pi,1)}),ei.play()}),Rt}elementContainsData(re,he){let Ye=!1;const wt=he[Kn];return wt&&wt.setForRemoval&&(Ye=!0),this.playersByElement.has(he)&&(Ye=!0),this.playersByQueriedElement.has(he)&&(Ye=!0),this.statesByElement.has(he)&&(Ye=!0),this._fetchNamespace(re).elementContainsData(he)||Ye}afterFlush(re){this._flushFns.push(re)}afterFlushAnimationsDone(re){this._whenQuietFns.push(re)}_getPreviousPlayers(re,he,Ye,wt,Ft){let ii=[];if(he){const ni=this.playersByQueriedElement.get(re);ni&&(ii=ni)}else{const ni=this.playersByElement.get(re);if(ni){const yi=!Ft||Ft==Hr;ni.forEach(Pi=>{Pi.queued||!yi&&Pi.triggerName!=wt||ii.push(Pi)})}}return(Ye||wt)&&(ii=ii.filter(ni=>!(Ye&&Ye!=ni.namespaceId||wt&&wt!=ni.triggerName))),ii}_beforeAnimationBuild(re,he,Ye){const Ft=he.element,ii=he.isRemovalTransition?void 0:re,ni=he.isRemovalTransition?void 0:he.triggerName;for(const yi of he.timelines){const Pi=yi.element,nn=Pi!==Ft,un=F(Ye,Pi,[]);this._getPreviousPlayers(Pi,nn,ii,ni,he.toState).forEach(Pn=>{const yn=Pn.getRealPlayer();yn.beforeDestroy&&yn.beforeDestroy(),Pn.destroy(),un.push(Pn)})}tt(Ft,he.fromStyles)}_buildAnimation(re,he,Ye,wt,Ft,ii){const ni=he.triggerName,yi=he.element,Pi=[],nn=new Set,un=new Set,Sn=he.timelines.map(yn=>{const Tn=yn.element;nn.add(Tn);const qn=Tn[Kn];if(qn&&qn.removedBeforeQueried)return new f.ZN(yn.duration,yn.delay);const xr=Tn!==yi,cr=function hi(_t){const re=[];return mt(_t,re),re}((Ye.get(Tn)||$n).map(Bn=>Bn.getRealPlayer())).filter(Bn=>!!Bn.element&&Bn.element===Tn),Xr=Ft.get(Tn),Yr=ii.get(Tn),dr=we(0,this._normalizer,0,yn.keyframes,Xr,Yr),zr=this._buildPlayer(yn,dr,cr);if(yn.subTimeline&&wt&&un.add(Tn),xr){const Bn=new Fa(re,ni,Tn);Bn.setRealPlayer(zr),Pi.push(Bn)}return zr});Pi.forEach(yn=>{F(this.playersByQueriedElement,yn.element,[]).push(yn),yn.onDone(()=>function Wn(_t,re,he){let Ye;if(_t instanceof Map){if(Ye=_t.get(re),Ye){if(Ye.length){const wt=Ye.indexOf(he);Ye.splice(wt,1)}0==Ye.length&&_t.delete(re)}}else if(Ye=_t[re],Ye){if(Ye.length){const wt=Ye.indexOf(he);Ye.splice(wt,1)}0==Ye.length&&delete _t[re]}return Ye}(this.playersByQueriedElement,yn.element,yn))}),nn.forEach(yn=>ki(yn,vt));const Pn=Re(Sn);return Pn.onDestroy(()=>{nn.forEach(yn=>an(yn,vt)),Ne(yi,he.toStyles)}),un.forEach(yn=>{F(wt,yn,[]).push(Pn)}),Pn}_buildPlayer(re,he,Ye){return he.length>0?this.driver.animate(re.element,he,re.duration,re.delay,re.easing,Ye):new f.ZN(re.duration,re.delay)}}class Fa{constructor(re,he,Ye){this.namespaceId=re,this.triggerName=he,this.element=Ye,this._player=new f.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(he=>{this._queuedCallbacks[he].forEach(Ye=>Q(re,he,void 0,Ye))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(re.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(re){this.totalTime=re}syncPlayerEvents(re){const he=this._player;he.triggerCallback&&re.onStart(()=>he.triggerCallback("start")),re.onDone(()=>this.finish()),re.onDestroy(()=>this.destroy())}_queueEvent(re,he){F(this._queuedCallbacks,re,[]).push(he)}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 he=this._player;he.triggerCallback&&he.triggerCallback(re)}}function St(_t){return _t&&1===_t.nodeType}function Ot(_t,re){const he=_t.style.display;return _t.style.display=null!=re?re:"none",he}function ri(_t,re,he,Ye,wt){const Ft=[];he.forEach(yi=>Ft.push(Ot(yi)));const ii=[];Ye.forEach((yi,Pi)=>{const nn={};yi.forEach(un=>{const Sn=nn[un]=re.computeStyle(Pi,un,wt);(!Sn||0==Sn.length)&&(Pi[Kn]=Ia,ii.push(Pi))}),_t.set(Pi,nn)});let ni=0;return he.forEach(yi=>Ot(yi,Ft[ni++])),ii}function Ti(_t,re){const he=new Map;if(_t.forEach(ni=>he.set(ni,[])),0==re.length)return he;const wt=new Set(re),Ft=new Map;function ii(ni){if(!ni)return 1;let yi=Ft.get(ni);if(yi)return yi;const Pi=ni.parentNode;return yi=he.has(Pi)?Pi:wt.has(Pi)?1:ii(Pi),Ft.set(ni,yi),yi}return re.forEach(ni=>{const yi=ii(ni);1!==yi&&he.get(yi).push(ni)}),he}function ki(_t,re){var he;null===(he=_t.classList)||void 0===he||he.add(re)}function an(_t,re){var he;null===(he=_t.classList)||void 0===he||he.remove(re)}function It(_t,re,he){Re(he).onDone(()=>_t.processLeaveNode(re))}function mt(_t,re){for(let he=0;he<_t.length;he++){const Ye=_t[he];Ye instanceof f.ZE?mt(Ye.players,re):re.push(Ye)}}function Hi(_t,re,he){const Ye=he.get(_t);if(!Ye)return!1;let wt=re.get(_t);return wt?Ye.forEach(Ft=>wt.add(Ft)):re.set(_t,Ye),he.delete(_t),!0}class Zi{constructor(re,he,Ye){this.bodyNode=re,this._driver=he,this._normalizer=Ye,this._triggerCache={},this.onRemovalComplete=(wt,Ft)=>{},this._transitionEngine=new ya(re,he,Ye),this._timelineEngine=new Rr(re,he,Ye),this._transitionEngine.onRemovalComplete=(wt,Ft)=>this.onRemovalComplete(wt,Ft)}registerTrigger(re,he,Ye,wt,Ft){const ii=re+"-"+wt;let ni=this._triggerCache[ii];if(!ni){const yi=[],nn=Kt(this._driver,Ft,yi,[]);if(yi.length)throw function r(_t,re){return new t.vHH(3404,M)}();ni=function Za(_t,re,he){return new Zr(_t,re,he)}(wt,nn,this._normalizer),this._triggerCache[ii]=ni}this._transitionEngine.registerTrigger(he,wt,ni)}register(re,he){this._transitionEngine.register(re,he)}destroy(re,he){this._transitionEngine.destroy(re,he)}onInsert(re,he,Ye,wt){this._transitionEngine.insertNode(re,he,Ye,wt)}onRemove(re,he,Ye,wt){this._transitionEngine.removeNode(re,he,wt||!1,Ye)}disableAnimations(re,he){this._transitionEngine.markElementAsDisabled(re,he)}process(re,he,Ye,wt){if("@"==Ye.charAt(0)){const[Ft,ii]=Ae(Ye);this._timelineEngine.command(Ft,he,ii,wt)}else this._transitionEngine.trigger(re,he,Ye,wt)}listen(re,he,Ye,wt,Ft){if("@"==Ye.charAt(0)){const[ii,ni]=Ae(Ye);return this._timelineEngine.listen(ii,he,ni,Ft)}return this._transitionEngine.listen(re,he,Ye,wt,Ft)}flush(re=-1){this._transitionEngine.flush(re)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Qe=(()=>{class _t{constructor(he,Ye,wt){this._element=he,this._startStyles=Ye,this._endStyles=wt,this._state=0;let Ft=_t.initialStylesByElement.get(he);Ft||_t.initialStylesByElement.set(he,Ft={}),this._initialStyles=Ft}start(){this._state<1&&(this._startStyles&&Ne(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ne(this._element,this._initialStyles),this._endStyles&&(Ne(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_t.initialStylesByElement.delete(this._element),this._startStyles&&(tt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(tt(this._element,this._endStyles),this._endStyles=null),Ne(this._element,this._initialStyles),this._state=3)}}return _t.initialStylesByElement=new WeakMap,_t})();function We(_t){let re=null;const he=Object.keys(_t);for(let Ye=0;Yere()),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,he,Ye){return re.animate(he,Ye)}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 he=this._finalKeyframe;Object.keys(he).forEach(Ye=>{"offset"!=Ye&&(re[Ye]=this._finished?he[Ye]:tn(this.element,Ye))})}this.currentSnapshot=re}triggerCallback(re){const he="start"==re?this._onStartFns:this._onDoneFns;he.forEach(Ye=>Ye()),he.length=0}}class Si{validateStyleProperty(re){return ue(re)}matchesElement(re,he){return!1}containsElement(re,he){return Le(re,he)}getParentElement(re){return oe(re)}query(re,he,Ye){return ct(re,he,Ye)}computeStyle(re,he,Ye){return window.getComputedStyle(re)[he]}animate(re,he,Ye,wt,Ft,ii=[]){const yi={duration:Ye,delay:wt,fill:0==wt?"both":"forwards"};Ft&&(yi.easing=Ft);const Pi={},nn=ii.filter(Sn=>Sn instanceof bt);(function Xi(_t,re){return 0===_t||0===re})(Ye,wt)&&nn.forEach(Sn=>{let Pn=Sn.currentSnapshot;Object.keys(Pn).forEach(yn=>Pi[yn]=Pn[yn])}),he=function fi(_t,re,he){const Ye=Object.keys(he);if(Ye.length&&re.length){let Ft=re[0],ii=[];if(Ye.forEach(ni=>{Ft.hasOwnProperty(ni)||ii.push(ni),Ft[ni]=he[ni]}),ii.length)for(var wt=1;wtft(Sn,!1)),Pi);const un=function Ln(_t,re){let he=null,Ye=null;return Array.isArray(re)&&re.length?(he=We(re[0]),re.length>1&&(Ye=We(re[re.length-1]))):re&&(he=We(re)),he||Ye?new Qe(_t,he,Ye):null}(re,he);return new bt(re,he,yi,un)}}var Qi=p(9808);let Yn=(()=>{class _t extends f._j{constructor(he,Ye){super(),this._nextAnimationId=0,this._renderer=he.createRenderer(Ye.body,{id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}})}build(he){const Ye=this._nextAnimationId.toString();this._nextAnimationId++;const wt=Array.isArray(he)?(0,f.vP)(he):he;return xa(this._renderer,null,Ye,"register",[wt]),new Or(Ye,this._renderer)}}return _t.\u0275fac=function(he){return new(he||_t)(t.LFG(t.FYo),t.LFG(Qi.K0))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();class Or extends f.LC{constructor(re,he){super(),this._id=re,this._renderer=he}create(re,he){return new Wa(this._id,re,he||{},this._renderer)}}class Wa{constructor(re,he,Ye,wt){this.id=re,this.element=he,this._renderer=wt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ye)}_listen(re,he){return this._renderer.listen(this.element,`@@${this.id}:${re}`,he)}_command(re,...he){return xa(this._renderer,this.element,this.id,re,he)}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,he;return null!==(he=null===(re=this._renderer.engine.players[+this.id])||void 0===re?void 0:re.getPosition())&&void 0!==he?he:0}}function xa(_t,re,he,Ye,wt){return _t.setProperty(re,`@@${he}:${Ye}`,wt)}const zi="@.disabled";let zn=(()=>{class _t{constructor(he,Ye,wt){this.delegate=he,this.engine=Ye,this._zone=wt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Ye.onRemovalComplete=(Ft,ii)=>{const ni=null==ii?void 0:ii.parentNode(Ft);ni&&ii.removeChild(ni,Ft)}}createRenderer(he,Ye){const Ft=this.delegate.createRenderer(he,Ye);if(!(he&&Ye&&Ye.data&&Ye.data.animation)){let nn=this._rendererCache.get(Ft);return nn||(nn=new Ja("",Ft,this.engine),this._rendererCache.set(Ft,nn)),nn}const ii=Ye.id,ni=Ye.id+"-"+this._currentId;this._currentId++,this.engine.register(ni,he);const yi=nn=>{Array.isArray(nn)?nn.forEach(yi):this.engine.registerTrigger(ii,ni,he,nn.name,nn)};return Ye.data.animation.forEach(yi),new Cr(this,ni,Ft,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(he,Ye,wt){he>=0&&heYe(wt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ft=>{const[ii,ni]=Ft;ii(ni)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Ye,wt]))}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 _t.\u0275fac=function(he){return new(he||_t)(t.LFG(t.FYo),t.LFG(Zi),t.LFG(t.R0b))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();class Ja{constructor(re,he,Ye){this.namespaceId=re,this.delegate=he,this.engine=Ye,this.destroyNode=this.delegate.destroyNode?wt=>he.destroyNode(wt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(re,he){return this.delegate.createElement(re,he)}createComment(re){return this.delegate.createComment(re)}createText(re){return this.delegate.createText(re)}appendChild(re,he){this.delegate.appendChild(re,he),this.engine.onInsert(this.namespaceId,he,re,!1)}insertBefore(re,he,Ye,wt=!0){this.delegate.insertBefore(re,he,Ye),this.engine.onInsert(this.namespaceId,he,re,wt)}removeChild(re,he,Ye){this.engine.onRemove(this.namespaceId,he,this.delegate,Ye)}selectRootElement(re,he){return this.delegate.selectRootElement(re,he)}parentNode(re){return this.delegate.parentNode(re)}nextSibling(re){return this.delegate.nextSibling(re)}setAttribute(re,he,Ye,wt){this.delegate.setAttribute(re,he,Ye,wt)}removeAttribute(re,he,Ye){this.delegate.removeAttribute(re,he,Ye)}addClass(re,he){this.delegate.addClass(re,he)}removeClass(re,he){this.delegate.removeClass(re,he)}setStyle(re,he,Ye,wt){this.delegate.setStyle(re,he,Ye,wt)}removeStyle(re,he,Ye){this.delegate.removeStyle(re,he,Ye)}setProperty(re,he,Ye){"@"==he.charAt(0)&&he==zi?this.disableAnimations(re,!!Ye):this.delegate.setProperty(re,he,Ye)}setValue(re,he){this.delegate.setValue(re,he)}listen(re,he,Ye){return this.delegate.listen(re,he,Ye)}disableAnimations(re,he){this.engine.disableAnimations(re,he)}}class Cr extends Ja{constructor(re,he,Ye,wt){super(he,Ye,wt),this.factory=re,this.namespaceId=he}setProperty(re,he,Ye){"@"==he.charAt(0)?"."==he.charAt(1)&&he==zi?this.disableAnimations(re,Ye=void 0===Ye||!!Ye):this.engine.process(this.namespaceId,re,he.substr(1),Ye):this.delegate.setProperty(re,he,Ye)}listen(re,he,Ye){if("@"==he.charAt(0)){const wt=function Gs(_t){switch(_t){case"body":return document.body;case"document":return document;case"window":return window;default:return _t}}(re);let Ft=he.substr(1),ii="";return"@"!=Ft.charAt(0)&&([Ft,ii]=function Xa(_t){const re=_t.indexOf(".");return[_t.substring(0,re),_t.substr(re+1)]}(Ft)),this.engine.listen(this.namespaceId,wt,Ft,ii,ni=>{this.factory.scheduleListenerCallback(ni._data||-1,Ye,ni)})}return this.delegate.listen(re,he,Ye)}}let ha=(()=>{class _t extends Zi{constructor(he,Ye,wt){super(he.body,Ye,wt)}ngOnDestroy(){this.flush()}}return _t.\u0275fac=function(he){return new(he||_t)(t.LFG(Qi.K0),t.LFG(di),t.LFG(nr))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();const Zs=new t.OlP("AnimationModuleType"),$a=[{provide:f._j,useClass:Yn},{provide:nr,useFactory:function xs(){return new da}},{provide:Zi,useClass:ha},{provide:t.FYo,useFactory:function bs(_t,re,he){return new zn(_t,re,he)},deps:[e.se,Zi,t.R0b]}],Ms=[{provide:di,useFactory:()=>new Si},{provide:Zs,useValue:"BrowserAnimations"},...$a],gs=[{provide:di,useClass:Dt},{provide:Zs,useValue:"NoopAnimations"},...$a];let Vr=(()=>{class _t{static withConfig(he){return{ngModule:_t,providers:he.disableAnimations?gs:Ms}}}return _t.\u0275fac=function(he){return new(he||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({providers:Ms,imports:[e.b2]}),_t})()},2313:(Fe,Y,p)=>{"use strict";p.d(Y,{H7:()=>it,b2:()=>lt,q6:()=>F,se:()=>c,t6:()=>Ht});var t=p(9808),e=p(5e3);class f extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends f{static makeCurrent(){(0,t.HT)(new M)}onAndCancel(Ue,rt,at){return Ue.addEventListener(rt,at,!1),()=>{Ue.removeEventListener(rt,at,!1)}}dispatchEvent(Ue,rt){Ue.dispatchEvent(rt)}remove(Ue){Ue.parentNode&&Ue.parentNode.removeChild(Ue)}createElement(Ue,rt){return(rt=rt||this.getDefaultDocument()).createElement(Ue)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ue){return Ue.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ue){return Ue instanceof DocumentFragment}getGlobalEventTarget(Ue,rt){return"window"===rt?window:"document"===rt?Ue:"body"===rt?Ue.body:null}getBaseHref(Ue){const rt=function b(){return a=a||document.querySelector("base"),a?a.getAttribute("href"):null}();return null==rt?null:function N(Se){d=d||document.createElement("a"),d.setAttribute("href",Se);const Ue=d.pathname;return"/"===Ue.charAt(0)?Ue:`/${Ue}`}(rt)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ue){return(0,t.Mx)(document.cookie,Ue)}}let d,a=null;const h=new e.OlP("TRANSITION_ID"),D=[{provide:e.ip1,useFactory:function A(Se,Ue,rt){return()=>{rt.get(e.CZH).donePromise.then(()=>{const at=(0,t.q)(),yt=Ue.querySelectorAll(`style[ng-transition="${Se}"]`);for(let gi=0;gi{const gi=Ue.findTestabilityInTree(at,yt);if(null==gi)throw new Error("Could not find testability for element.");return gi},e.dqk.getAllAngularTestabilities=()=>Ue.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>Ue.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(at=>{const yt=e.dqk.getAllAngularTestabilities();let gi=yt.length,Qt=!1;const Jt=function(Xi){Qt=Qt||Xi,gi--,0==gi&&at(Qt)};yt.forEach(function(Xi){Xi.whenStable(Jt)})})}findTestabilityInTree(Ue,rt,at){if(null==rt)return null;const yt=Ue.getTestability(rt);return null!=yt?yt:at?(0,t.q)().isShadowRoot(rt)?this.findTestabilityInTree(Ue,rt.host,!0):this.findTestabilityInTree(Ue,rt.parentElement,!0):null}}let S=(()=>{class Se{build(){return new XMLHttpRequest}}return Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const I=new e.OlP("EventManagerPlugins");let L=(()=>{class Se{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 gi=0;gi{class Se{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 Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),j=(()=>{class Se extends Z{constructor(rt){super(),this._doc=rt,this._hostNodes=new Map,this._hostNodes.set(rt.head,[])}_addStylesToHost(rt,at,yt){rt.forEach(gi=>{const Qt=this._doc.createElement("style");Qt.textContent=gi,yt.push(at.appendChild(Qt))})}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 Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();function ne(Se){(0,t.q)().remove(Se)}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 i(Se,Ue,rt){for(let at=0;at{if("__ngUnwrap__"===Ue)return Se;!1===Se(Ue)&&(Ue.preventDefault(),Ue.returnValue=!1)}}let c=(()=>{class Se{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 e.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 e.ifc.ShadowDom:return new n(this.eventManager,this.sharedStylesHost,rt,at);default:if(!this.rendererByCompId.has(at.id)){const yt=i(at.id,at.styles,[]);this.sharedStylesHost.addStyles(yt),this.rendererByCompId.set(at.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(L),e.LFG(j),e.LFG(e.AFp))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();class C{constructor(Ue){this.eventManager=Ue,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ue,rt){return rt?document.createElementNS(X[rt]||rt,Ue):document.createElement(Ue)}createComment(Ue){return document.createComment(Ue)}createText(Ue){return document.createTextNode(Ue)}appendChild(Ue,rt){Ue.appendChild(rt)}insertBefore(Ue,rt,at){Ue&&Ue.insertBefore(rt,at)}removeChild(Ue,rt){Ue&&Ue.removeChild(rt)}selectRootElement(Ue,rt){let at="string"==typeof Ue?document.querySelector(Ue):Ue;if(!at)throw new Error(`The selector "${Ue}" did not match any elements`);return rt||(at.textContent=""),at}parentNode(Ue){return Ue.parentNode}nextSibling(Ue){return Ue.nextSibling}setAttribute(Ue,rt,at,yt){if(yt){rt=yt+":"+rt;const gi=X[yt];gi?Ue.setAttributeNS(gi,rt,at):Ue.setAttribute(rt,at)}else Ue.setAttribute(rt,at)}removeAttribute(Ue,rt,at){if(at){const yt=X[at];yt?Ue.removeAttributeNS(yt,rt):Ue.removeAttribute(`${at}:${rt}`)}else Ue.removeAttribute(rt)}addClass(Ue,rt){Ue.classList.add(rt)}removeClass(Ue,rt){Ue.classList.remove(rt)}setStyle(Ue,rt,at,yt){yt&(e.JOm.DashCase|e.JOm.Important)?Ue.style.setProperty(rt,at,yt&e.JOm.Important?"important":""):Ue.style[rt]=at}removeStyle(Ue,rt,at){at&e.JOm.DashCase?Ue.style.removeProperty(rt):Ue.style[rt]=""}setProperty(Ue,rt,at){Ue[rt]=at}setValue(Ue,rt){Ue.nodeValue=rt}listen(Ue,rt,at){return"string"==typeof Ue?this.eventManager.addGlobalEventListener(Ue,rt,r(at)):this.eventManager.addEventListener(Ue,rt,r(at))}}class _ extends C{constructor(Ue,rt,at,yt){super(Ue),this.component=at;const gi=i(yt+"-"+at.id,at.styles,[]);rt.addStyles(gi),this.contentAttr=function ge(Se){return"_ngcontent-%COMP%".replace(de,Se)}(yt+"-"+at.id),this.hostAttr=function y(Se){return"_nghost-%COMP%".replace(de,Se)}(yt+"-"+at.id)}applyToHost(Ue){super.setAttribute(Ue,this.hostAttr,"")}createElement(Ue,rt){const at=super.createElement(Ue,rt);return super.setAttribute(at,this.contentAttr,""),at}}class n extends C{constructor(Ue,rt,at,yt){super(Ue),this.sharedStylesHost=rt,this.hostEl=at,this.shadowRoot=at.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const gi=i(yt.id,yt.styles,[]);for(let Qt=0;Qt{class Se extends U{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 Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const B=["alt","control","meta","shift"],z={"\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"},se={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:Se=>Se.altKey,control:Se=>Se.ctrlKey,meta:Se=>Se.metaKey,shift:Se=>Se.shiftKey};let xe=(()=>{class Se extends U{constructor(rt){super(rt)}supports(rt){return null!=Se.parseEventName(rt)}addEventListener(rt,at,yt){const gi=Se.parseEventName(at),Qt=Se.eventCallback(gi.fullKey,yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(rt,gi.domEventName,Qt))}static parseEventName(rt){const at=rt.toLowerCase().split("."),yt=at.shift();if(0===at.length||"keydown"!==yt&&"keyup"!==yt)return null;const gi=Se._normalizeKey(at.pop());let Qt="";if(B.forEach(Xi=>{const fi=at.indexOf(Xi);fi>-1&&(at.splice(fi,1),Qt+=Xi+".")}),Qt+=gi,0!=at.length||0===gi.length)return null;const Jt={};return Jt.domEventName=yt,Jt.fullKey=Qt,Jt}static getEventFullKey(rt){let at="",yt=function Re(Se){let Ue=Se.key;if(null==Ue){if(Ue=Se.keyIdentifier,null==Ue)return"Unidentified";Ue.startsWith("U+")&&(Ue=String.fromCharCode(parseInt(Ue.substring(2),16)),3===Se.location&&se.hasOwnProperty(Ue)&&(Ue=se[Ue]))}return z[Ue]||Ue}(rt);return yt=yt.toLowerCase()," "===yt?yt="space":"."===yt&&(yt="dot"),B.forEach(gi=>{gi!=yt&&fe[gi](rt)&&(at+=gi+".")}),at+=yt,at}static eventCallback(rt,at,yt){return gi=>{Se.getEventFullKey(gi)===rt&&yt.runGuarded(()=>at(gi))}}static _normalizeKey(rt){return"esc"===rt?"escape":rt}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const F=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function we(){M.makeCurrent(),w.init()},multi:!0},{provide:t.K0,useFactory:function Ge(){return(0,e.RDi)(document),document},deps:[]}]),Ae=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Q(){return new e.qLn},deps:[]},{provide:I,useClass:v,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:I,useClass:xe,multi:!0,deps:[t.K0]},{provide:c,useClass:c,deps:[L,j,e.AFp]},{provide:e.FYo,useExisting:c},{provide:Z,useExisting:j},{provide:j,useClass:j,deps:[t.K0]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b]},{provide:L,useClass:L,deps:[I,e.R0b]},{provide:t.JF,useClass:S,deps:[]}];let lt=(()=>{class Se{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:Se,providers:[{provide:e.AFp,useValue:rt.appId},{provide:h,useExisting:e.AFp},D]}}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(Se,12))},Se.\u0275mod=e.oAB({type:Se}),Se.\u0275inj=e.cJS({providers:Ae,imports:[t.ez,e.hGG]}),Se})();"undefined"!=typeof window&&window;const Oe={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},le=new e.OlP("HammerGestureConfig"),be=new e.OlP("HammerLoader");let ht=(()=>{class Se{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 Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),ft=(()=>{class Se extends U{constructor(rt,at,yt,gi){super(rt),this._config=at,this.console=yt,this.loader=gi,this._loaderPromise=null}supports(rt){return!(!Oe.hasOwnProperty(rt.toLowerCase())&&!this.isCustomEvent(rt)||!window.Hammer&&!this.loader)}addEventListener(rt,at,yt){const gi=this.manager.getZone();if(at=at.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Qt=!1,Jt=()=>{Qt=!0};return this._loaderPromise.then(()=>{window.Hammer?Qt||(Jt=this.addEventListener(rt,at,yt)):Jt=()=>{}}).catch(()=>{Jt=()=>{}}),()=>{Jt()}}return gi.runOutsideAngular(()=>{const Qt=this._config.buildHammer(rt),Jt=function(Xi){gi.runGuarded(function(){yt(Xi)})};return Qt.on(at,Jt),()=>{Qt.off(at,Jt),"function"==typeof Qt.destroy&&Qt.destroy()}})}isCustomEvent(rt){return this._config.events.indexOf(rt)>-1}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0),e.LFG(le),e.LFG(e.c2e),e.LFG(be,8))},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),Ht=(()=>{class Se{}return Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275mod=e.oAB({type:Se}),Se.\u0275inj=e.cJS({providers:[{provide:I,useClass:ft,multi:!0,deps:[t.K0,le,e.c2e,[new e.FiY,be]]},{provide:le,useClass:ht,deps:[]}]}),Se})(),it=(()=>{class Se{}return Se.\u0275fac=function(rt){return new(rt||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:function(rt){let at=null;return at=rt?new(rt||Se):e.LFG(tt),at},providedIn:"root"}),Se})(),tt=(()=>{class Se extends it{constructor(rt){super(),this._doc=rt}sanitize(rt,at){if(null==at)return null;switch(rt){case e.q3G.NONE:return at;case e.q3G.HTML:return(0,e.qzn)(at,"HTML")?(0,e.z3N)(at):(0,e.EiD)(this._doc,String(at)).toString();case e.q3G.STYLE:return(0,e.qzn)(at,"Style")?(0,e.z3N)(at):at;case e.q3G.SCRIPT:if((0,e.qzn)(at,"Script"))return(0,e.z3N)(at);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.yhl)(at),(0,e.qzn)(at,"URL")?(0,e.z3N)(at):(0,e.mCW)(String(at));case e.q3G.RESOURCE_URL:if((0,e.qzn)(at,"ResourceURL"))return(0,e.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,e.JVY)(rt)}bypassSecurityTrustStyle(rt){return(0,e.L6k)(rt)}bypassSecurityTrustScript(rt){return(0,e.eBb)(rt)}bypassSecurityTrustUrl(rt){return(0,e.LAX)(rt)}bypassSecurityTrustResourceUrl(rt){return(0,e.pB0)(rt)}}return Se.\u0275fac=function(rt){return new(rt||Se)(e.LFG(t.K0))},Se.\u0275prov=e.Yz7({token:Se,factory:function(rt){let at=null;return at=rt?new rt:function Ne(Se){return new tt(Se.get(t.K0))}(e.LFG(e.zs3)),at},providedIn:"root"}),Se})()},1402:(Fe,Y,p)=>{"use strict";p.d(Y,{gz:()=>ji,gk:()=>z,m2:()=>P,Q3:()=>se,OD:()=>B,Av:()=>Q,F0:()=>ur,rH:()=>Et,Od:()=>qt,yS:()=>At,Bz:()=>Aa,lC:()=>Ir});var t=p(5e3),e=p(8306),f=p(727),M=p(4482),a=p(5403);function b(){return(0,M.e)((Be,Me)=>{let me=null;Be._refCount++;const $e=(0,a.x)(Me,void 0,void 0,void 0,()=>{if(!Be||Be._refCount<=0||0<--Be._refCount)return void(me=null);const ot=Be._connection,kt=me;me=null,ot&&(!kt||ot===kt)&&ot.unsubscribe(),Me.unsubscribe()});Be.subscribe($e),$e.closed||(me=Be.connect())})}class d extends e.y{constructor(Me,me){super(),this.source=Me,this.subjectFactory=me,this._subject=null,this._refCount=0,this._connection=null,(0,M.A)(Me)&&(this.lift=Me.lift)}_subscribe(Me){return this.getSubject().subscribe(Me)}getSubject(){const Me=this._subject;return(!Me||Me.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Me}=this;this._subject=this._connection=null,null==Me||Me.unsubscribe()}connect(){let Me=this._connection;if(!Me){Me=this._connection=new f.w0;const me=this.getSubject();Me.add(this.source.subscribe((0,a.x)(me,void 0,()=>{this._teardown(),me.complete()},$e=>{this._teardown(),me.error($e)},()=>this._teardown()))),Me.closed&&(this._connection=null,Me=f.w0.EMPTY)}return Me}refCount(){return b()(this)}}var N=p(457),h=p(9646),A=p(1135),D=p(9841),w=p(2843),S=p(6805),I=p(7272),L=p(9770),U=p(515),Z=p(7579),j=p(9300);function ne(Be){return Be<=0?()=>U.E:(0,M.e)((Me,me)=>{let $e=[];Me.subscribe((0,a.x)(me,ot=>{$e.push(ot),Be<$e.length&&$e.shift()},()=>{for(const ot of $e)me.next(ot);me.complete()},void 0,()=>{$e=null}))})}var X=p(8068),de=p(6590),ee=p(4671),ce=p(4004),J=p(3900),ge=p(5698),y=p(8675),i=p(5026),r=p(262),u=p(4351),c=p(590),C=p(5577),E=p(8505),O=p(8746),_=p(8189),n=p(9808);class v{constructor(Me,me){this.id=Me,this.url=me}}class B extends v{constructor(Me,me,$e="imperative",ot=null){super(Me,me),this.navigationTrigger=$e,this.restoredState=ot}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class P extends v{constructor(Me,me,$e){super(Me,me),this.urlAfterRedirects=$e}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class z extends v{constructor(Me,me,$e){super(Me,me),this.reason=$e}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class se extends v{constructor(Me,me,$e){super(Me,me),this.error=$e}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class fe extends v{constructor(Me,me,$e,ot){super(Me,me),this.urlAfterRedirects=$e,this.state=ot}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xe extends v{constructor(Me,me,$e,ot){super(Me,me),this.urlAfterRedirects=$e,this.state=ot}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Re extends v{constructor(Me,me,$e,ot,kt){super(Me,me),this.urlAfterRedirects=$e,this.state=ot,this.shouldActivate=kt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class we extends v{constructor(Me,me,$e,ot){super(Me,me),this.urlAfterRedirects=$e,this.state=ot}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q extends v{constructor(Me,me,$e,ot){super(Me,me),this.urlAfterRedirects=$e,this.state=ot}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ge{constructor(Me){this.route=Me}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ve{constructor(Me){this.route=Me}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class F{constructor(Me){this.snapshot=Me}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ae{constructor(Me){this.snapshot=Me}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lt{constructor(Me){this.snapshot=Me}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ie{constructor(Me){this.snapshot=Me}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class De{constructor(Me,me,$e){this.routerEvent=Me,this.position=me,this.anchor=$e}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const oe="primary";class Te{constructor(Me){this.params=Me||{}}has(Me){return Object.prototype.hasOwnProperty.call(this.params,Me)}get(Me){if(this.has(Me)){const me=this.params[Me];return Array.isArray(me)?me[0]:me}return null}getAll(Me){if(this.has(Me)){const me=this.params[Me];return Array.isArray(me)?me:[me]}return[]}get keys(){return Object.keys(this.params)}}function ye(Be){return new Te(Be)}const W="ngNavigationCancelingError";function $(Be){const Me=Error("NavigationCancelingError: "+Be);return Me[W]=!0,Me}function Ce(Be,Me,me){const $e=me.path.split("/");if($e.length>Be.length||"full"===me.pathMatch&&(Me.hasChildren()||$e.length$e[kt]===ot)}return Be===Me}function Dt(Be){return Array.prototype.concat.apply([],Be)}function di(Be){return Be.length>0?Be[Be.length-1]:null}function Gt(Be,Me){for(const me in Be)Be.hasOwnProperty(me)&&Me(Be[me],me)}function ui(Be){return(0,t.CqO)(Be)?Be:(0,t.QGY)(Be)?(0,N.D)(Promise.resolve(Be)):(0,h.of)(Be)}const Nt={exact:function $t(Be,Me,me){if(!it(Be.segments,Me.segments)||!le(Be.segments,Me.segments,me)||Be.numberOfChildren!==Me.numberOfChildren)return!1;for(const $e in Me.children)if(!Be.children[$e]||!$t(Be.children[$e],Me.children[$e],me))return!1;return!0},subset:Pe},gt={exact:function vt(Be,Me){return ct(Be,Me)},subset:function jt(Be,Me){return Object.keys(Me).length<=Object.keys(Be).length&&Object.keys(Me).every(me=>ut(Be[me],Me[me]))},ignored:()=>!0};function et(Be,Me,me){return Nt[me.paths](Be.root,Me.root,me.matrixParams)&>[me.queryParams](Be.queryParams,Me.queryParams)&&!("exact"===me.fragment&&Be.fragment!==Me.fragment)}function Pe(Be,Me,me){return Oe(Be,Me,Me.segments,me)}function Oe(Be,Me,me,$e){if(Be.segments.length>me.length){const ot=Be.segments.slice(0,me.length);return!(!it(ot,me)||Me.hasChildren()||!le(ot,me,$e))}if(Be.segments.length===me.length){if(!it(Be.segments,me)||!le(Be.segments,me,$e))return!1;for(const ot in Me.children)if(!Be.children[ot]||!Pe(Be.children[ot],Me.children[ot],$e))return!1;return!0}{const ot=me.slice(0,Be.segments.length),kt=me.slice(Be.segments.length);return!!(it(Be.segments,ot)&&le(Be.segments,ot,$e)&&Be.children[oe])&&Oe(Be.children[oe],Me,kt,$e)}}function le(Be,Me,me){return Me.every(($e,ot)=>gt[me](Be[ot].parameters,$e.parameters))}class be{constructor(Me,me,$e){this.root=Me,this.queryParams=me,this.fragment=$e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return Se.serialize(this)}}class ht{constructor(Me,me){this.segments=Me,this.children=me,this.parent=null,Gt(me,($e,ot)=>$e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ue(this)}}class ft{constructor(Me,me){this.path=Me,this.parameters=me}get parameterMap(){return this._parameterMap||(this._parameterMap=ye(this.parameters)),this._parameterMap}toString(){return fi(this)}}function it(Be,Me){return Be.length===Me.length&&Be.every((me,$e)=>me.path===Me[$e].path)}class tt{}class Je{parse(Me){const me=new je(Me);return new be(me.parseRootSegment(),me.parseQueryParams(),me.parseFragment())}serialize(Me){const me=`/${rt(Me.root,!0)}`,$e=function tn(Be){const Me=Object.keys(Be).map(me=>{const $e=Be[me];return Array.isArray($e)?$e.map(ot=>`${yt(me)}=${yt(ot)}`).join("&"):`${yt(me)}=${yt($e)}`}).filter(me=>!!me);return Me.length?`?${Me.join("&")}`:""}(Me.queryParams);return`${me}${$e}${"string"==typeof Me.fragment?`#${function gi(Be){return encodeURI(Be)}(Me.fragment)}`:""}`}}const Se=new Je;function Ue(Be){return Be.segments.map(Me=>fi(Me)).join("/")}function rt(Be,Me){if(!Be.hasChildren())return Ue(Be);if(Me){const me=Be.children[oe]?rt(Be.children[oe],!1):"",$e=[];return Gt(Be.children,(ot,kt)=>{kt!==oe&&$e.push(`${kt}:${rt(ot,!1)}`)}),$e.length>0?`${me}(${$e.join("//")})`:me}{const me=function Ne(Be,Me){let me=[];return Gt(Be.children,($e,ot)=>{ot===oe&&(me=me.concat(Me($e,ot)))}),Gt(Be.children,($e,ot)=>{ot!==oe&&(me=me.concat(Me($e,ot)))}),me}(Be,($e,ot)=>ot===oe?[rt(Be.children[oe],!1)]:[`${ot}:${rt($e,!1)}`]);return 1===Object.keys(Be.children).length&&null!=Be.children[oe]?`${Ue(Be)}/${me[0]}`:`${Ue(Be)}/(${me.join("//")})`}}function at(Be){return encodeURIComponent(Be).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yt(Be){return at(Be).replace(/%3B/gi,";")}function Qt(Be){return at(Be).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jt(Be){return decodeURIComponent(Be)}function Xi(Be){return Jt(Be.replace(/\+/g,"%20"))}function fi(Be){return`${Qt(Be.path)}${function ai(Be){return Object.keys(Be).map(Me=>`;${Qt(Me)}=${Qt(Be[Me])}`).join("")}(Be.parameters)}`}const Wi=/^[^\/()?;=#]+/;function Gi(Be){const Me=Be.match(Wi);return Me?Me[0]:""}const Yi=/^[^=?&#]+/,Lt=/^[^&#]+/;class je{constructor(Me){this.url=Me,this.remaining=Me}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],this.parseChildren())}parseQueryParams(){const Me={};if(this.consumeOptional("?"))do{this.parseQueryParam(Me)}while(this.consumeOptional("&"));return Me}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Me=[];for(this.peekStartsWith("(")||Me.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Me.push(this.parseSegment());let me={};this.peekStartsWith("/(")&&(this.capture("/"),me=this.parseParens(!0));let $e={};return this.peekStartsWith("(")&&($e=this.parseParens(!1)),(Me.length>0||Object.keys(me).length>0)&&($e[oe]=new ht(Me,me)),$e}parseSegment(){const Me=Gi(this.remaining);if(""===Me&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Me),new ft(Jt(Me),this.parseMatrixParams())}parseMatrixParams(){const Me={};for(;this.consumeOptional(";");)this.parseParam(Me);return Me}parseParam(Me){const me=Gi(this.remaining);if(!me)return;this.capture(me);let $e="";if(this.consumeOptional("=")){const ot=Gi(this.remaining);ot&&($e=ot,this.capture($e))}Me[Jt(me)]=Jt($e)}parseQueryParam(Me){const me=function ze(Be){const Me=Be.match(Yi);return Me?Me[0]:""}(this.remaining);if(!me)return;this.capture(me);let $e="";if(this.consumeOptional("=")){const Xt=function pe(Be){const Me=Be.match(Lt);return Me?Me[0]:""}(this.remaining);Xt&&($e=Xt,this.capture($e))}const ot=Xi(me),kt=Xi($e);if(Me.hasOwnProperty(ot)){let Xt=Me[ot];Array.isArray(Xt)||(Xt=[Xt],Me[ot]=Xt),Xt.push(kt)}else Me[ot]=kt}parseParens(Me){const me={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const $e=Gi(this.remaining),ot=this.remaining[$e.length];if("/"!==ot&&")"!==ot&&";"!==ot)throw new Error(`Cannot parse url '${this.url}'`);let kt;$e.indexOf(":")>-1?(kt=$e.substr(0,$e.indexOf(":")),this.capture(kt),this.capture(":")):Me&&(kt=oe);const Xt=this.parseChildren();me[kt]=1===Object.keys(Xt).length?Xt[oe]:new ht([],Xt),this.consumeOptional("//")}return me}peekStartsWith(Me){return this.remaining.startsWith(Me)}consumeOptional(Me){return!!this.peekStartsWith(Me)&&(this.remaining=this.remaining.substring(Me.length),!0)}capture(Me){if(!this.consumeOptional(Me))throw new Error(`Expected "${Me}".`)}}class Ct{constructor(Me){this._root=Me}get root(){return this._root.value}parent(Me){const me=this.pathFromRoot(Me);return me.length>1?me[me.length-2]:null}children(Me){const me=ie(Me,this._root);return me?me.children.map($e=>$e.value):[]}firstChild(Me){const me=ie(Me,this._root);return me&&me.children.length>0?me.children[0].value:null}siblings(Me){const me=qe(Me,this._root);return me.length<2?[]:me[me.length-2].children.map(ot=>ot.value).filter(ot=>ot!==Me)}pathFromRoot(Me){return qe(Me,this._root).map(me=>me.value)}}function ie(Be,Me){if(Be===Me.value)return Me;for(const me of Me.children){const $e=ie(Be,me);if($e)return $e}return null}function qe(Be,Me){if(Be===Me.value)return[Me];for(const me of Me.children){const $e=qe(Be,me);if($e.length)return $e.unshift(Me),$e}return[]}class Mt{constructor(Me,me){this.value=Me,this.children=me}toString(){return`TreeNode(${this.value})`}}function Vt(Be){const Me={};return Be&&Be.children.forEach(me=>Me[me.value.outlet]=me),Me}class Mi extends Ct{constructor(Me,me){super(Me),this.snapshot=me,Pt(this,Me)}toString(){return this.snapshot.toString()}}function Ei(Be,Me){const me=function en(Be,Me){const Xt=new zt([],{},{},"",{},oe,Me,null,Be.root,-1,{});return new si("",new Mt(Xt,[]))}(Be,Me),$e=new A.X([new ft("",{})]),ot=new A.X({}),kt=new A.X({}),Xt=new A.X({}),oi=new A.X(""),Ni=new ji($e,ot,Xt,oi,kt,oe,Me,me.root);return Ni.snapshot=me.root,new Mi(new Mt(Ni,[]),me)}class ji{constructor(Me,me,$e,ot,kt,Xt,oi,Ni){this.url=Me,this.params=me,this.queryParams=$e,this.fragment=ot,this.data=kt,this.outlet=Xt,this.component=oi,this._futureSnapshot=Ni}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,ce.U)(Me=>ye(Me)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ce.U)(Me=>ye(Me)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Kt(Be,Me="emptyOnly"){const me=Be.pathFromRoot;let $e=0;if("always"!==Me)for($e=me.length-1;$e>=1;){const ot=me[$e],kt=me[$e-1];if(ot.routeConfig&&""===ot.routeConfig.path)$e--;else{if(kt.component)break;$e--}}return function Oi(Be){return Be.reduce((Me,me)=>({params:Object.assign(Object.assign({},Me.params),me.params),data:Object.assign(Object.assign({},Me.data),me.data),resolve:Object.assign(Object.assign({},Me.resolve),me._resolvedData)}),{params:{},data:{},resolve:{}})}(me.slice($e))}class zt{constructor(Me,me,$e,ot,kt,Xt,oi,Ni,dn,Rn,Mn){this.url=Me,this.params=me,this.queryParams=$e,this.fragment=ot,this.data=kt,this.outlet=Xt,this.component=oi,this.routeConfig=Ni,this._urlSegment=dn,this._lastPathIndex=Rn,this._resolve=Mn}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=ye(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map($e=>$e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class si extends Ct{constructor(Me,me){super(me),this.url=Me,Pt(this,me)}toString(){return mi(this._root)}}function Pt(Be,Me){Me.value._routerState=Be,Me.children.forEach(me=>Pt(Be,me))}function mi(Be){const Me=Be.children.length>0?` { ${Be.children.map(mi).join(", ")} } `:"";return`${Be.value}${Me}`}function ti(Be){if(Be.snapshot){const Me=Be.snapshot,me=Be._futureSnapshot;Be.snapshot=me,ct(Me.queryParams,me.queryParams)||Be.queryParams.next(me.queryParams),Me.fragment!==me.fragment&&Be.fragment.next(me.fragment),ct(Me.params,me.params)||Be.params.next(me.params),function Le(Be,Me){if(Be.length!==Me.length)return!1;for(let me=0;mect(me.parameters,Me[$e].parameters))}(Be.url,Me.url);return me&&!(!Be.parent!=!Me.parent)&&(!Be.parent||vi(Be.parent,Me.parent))}function Fi(Be,Me,me){if(me&&Be.shouldReuseRoute(Me.value,me.value.snapshot)){const $e=me.value;$e._futureSnapshot=Me.value;const ot=function pn(Be,Me,me){return Me.children.map($e=>{for(const ot of me.children)if(Be.shouldReuseRoute($e.value,ot.value.snapshot))return Fi(Be,$e,ot);return Fi(Be,$e)})}(Be,Me,me);return new Mt($e,ot)}{if(Be.shouldAttach(Me.value)){const kt=Be.retrieve(Me.value);if(null!==kt){const Xt=kt.route;return Xt.value._futureSnapshot=Me.value,Xt.children=Me.children.map(oi=>Fi(Be,oi)),Xt}}const $e=function Fn(Be){return new ji(new A.X(Be.url),new A.X(Be.params),new A.X(Be.queryParams),new A.X(Be.fragment),new A.X(Be.data),Be.outlet,Be.component,Be)}(Me.value),ot=Me.children.map(kt=>Fi(Be,kt));return new Mt($e,ot)}}function Ai(Be){return"object"==typeof Be&&null!=Be&&!Be.outlets&&!Be.segmentPath}function Ri(Be){return"object"==typeof Be&&null!=Be&&Be.outlets}function cn(Be,Me,me,$e,ot){let kt={};if($e&&Gt($e,(oi,Ni)=>{kt[Ni]=Array.isArray(oi)?oi.map(dn=>`${dn}`):`${oi}`}),Be===Me)return new be(me,kt,ot);const Xt=pr(Be,Me,me);return new be(Xt,kt,ot)}function pr(Be,Me,me){const $e={};return Gt(Be.children,(ot,kt)=>{$e[kt]=ot===Me?me:pr(ot,Me,me)}),new ht(Be.segments,$e)}class Br{constructor(Me,me,$e){if(this.isAbsolute=Me,this.numberOfDoubleDots=me,this.commands=$e,Me&&$e.length>0&&Ai($e[0]))throw new Error("Root segment cannot have matrix parameters");const ot=$e.find(Ri);if(ot&&ot!==di($e))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class mr{constructor(Me,me,$e){this.segmentGroup=Me,this.processChildren=me,this.index=$e}}function ga(Be,Me,me){if(Be||(Be=new ht([],{})),0===Be.segments.length&&Be.hasChildren())return Ca(Be,Me,me);const $e=function Na(Be,Me,me){let $e=0,ot=Me;const kt={match:!1,pathIndex:0,commandIndex:0};for(;ot=me.length)return kt;const Xt=Be.segments[ot],oi=me[$e];if(Ri(oi))break;const Ni=`${oi}`,dn=$e0&&void 0===Ni)break;if(Ni&&dn&&"object"==typeof dn&&void 0===dn.outlets){if(!da(Ni,dn,Xt))return kt;$e+=2}else{if(!da(Ni,{},Xt))return kt;$e++}ot++}return{match:!0,pathIndex:ot,commandIndex:$e}}(Be,Me,me),ot=me.slice($e.commandIndex);if($e.match&&$e.pathIndex{"string"==typeof kt&&(kt=[kt]),null!==kt&&(ot[Xt]=ga(Be.children[Xt],Me,kt))}),Gt(Be.children,(kt,Xt)=>{void 0===$e[Xt]&&(ot[Xt]=kt)}),new ht(Be.segments,ot)}}function Ra(Be,Me,me){const $e=Be.segments.slice(0,Me);let ot=0;for(;ot{"string"==typeof me&&(me=[me]),null!==me&&(Me[$e]=Ra(new ht([],{}),0,me))}),Me}function Qr(Be){const Me={};return Gt(Be,(me,$e)=>Me[$e]=`${me}`),Me}function da(Be,Me,me){return Be==me.path&&ct(Me,me.parameters)}class Ur{constructor(Me,me,$e,ot){this.routeReuseStrategy=Me,this.futureState=me,this.currState=$e,this.forwardEvent=ot}activate(Me){const me=this.futureState._root,$e=this.currState?this.currState._root:null;this.deactivateChildRoutes(me,$e,Me),ti(this.futureState.root),this.activateChildRoutes(me,$e,Me)}deactivateChildRoutes(Me,me,$e){const ot=Vt(me);Me.children.forEach(kt=>{const Xt=kt.value.outlet;this.deactivateRoutes(kt,ot[Xt],$e),delete ot[Xt]}),Gt(ot,(kt,Xt)=>{this.deactivateRouteAndItsChildren(kt,$e)})}deactivateRoutes(Me,me,$e){const ot=Me.value,kt=me?me.value:null;if(ot===kt)if(ot.component){const Xt=$e.getContext(ot.outlet);Xt&&this.deactivateChildRoutes(Me,me,Xt.children)}else this.deactivateChildRoutes(Me,me,$e);else kt&&this.deactivateRouteAndItsChildren(me,$e)}deactivateRouteAndItsChildren(Me,me){Me.value.component&&this.routeReuseStrategy.shouldDetach(Me.value.snapshot)?this.detachAndStoreRouteSubtree(Me,me):this.deactivateRouteAndOutlet(Me,me)}detachAndStoreRouteSubtree(Me,me){const $e=me.getContext(Me.value.outlet),ot=$e&&Me.value.component?$e.children:me,kt=Vt(Me);for(const Xt of Object.keys(kt))this.deactivateRouteAndItsChildren(kt[Xt],ot);if($e&&$e.outlet){const Xt=$e.outlet.detach(),oi=$e.children.onOutletDeactivated();this.routeReuseStrategy.store(Me.value.snapshot,{componentRef:Xt,route:Me,contexts:oi})}}deactivateRouteAndOutlet(Me,me){const $e=me.getContext(Me.value.outlet),ot=$e&&Me.value.component?$e.children:me,kt=Vt(Me);for(const Xt of Object.keys(kt))this.deactivateRouteAndItsChildren(kt[Xt],ot);$e&&$e.outlet&&($e.outlet.deactivate(),$e.children.onOutletDeactivated(),$e.attachRef=null,$e.resolver=null,$e.route=null)}activateChildRoutes(Me,me,$e){const ot=Vt(me);Me.children.forEach(kt=>{this.activateRoutes(kt,ot[kt.value.outlet],$e),this.forwardEvent(new Ie(kt.value.snapshot))}),Me.children.length&&this.forwardEvent(new Ae(Me.value.snapshot))}activateRoutes(Me,me,$e){const ot=Me.value,kt=me?me.value:null;if(ti(ot),ot===kt)if(ot.component){const Xt=$e.getOrCreateContext(ot.outlet);this.activateChildRoutes(Me,me,Xt.children)}else this.activateChildRoutes(Me,me,$e);else if(ot.component){const Xt=$e.getOrCreateContext(ot.outlet);if(this.routeReuseStrategy.shouldAttach(ot.snapshot)){const oi=this.routeReuseStrategy.retrieve(ot.snapshot);this.routeReuseStrategy.store(ot.snapshot,null),Xt.children.onOutletReAttached(oi.contexts),Xt.attachRef=oi.componentRef,Xt.route=oi.route.value,Xt.outlet&&Xt.outlet.attach(oi.componentRef,oi.route.value),ti(oi.route.value),this.activateChildRoutes(Me,null,Xt.children)}else{const oi=function Gr(Be){for(let Me=Be.parent;Me;Me=Me.parent){const me=Me.routeConfig;if(me&&me._loadedConfig)return me._loadedConfig;if(me&&me.component)return null}return null}(ot.snapshot),Ni=oi?oi.module.componentFactoryResolver:null;Xt.attachRef=null,Xt.route=ot,Xt.resolver=Ni,Xt.outlet&&Xt.outlet.activateWith(ot,Ni),this.activateChildRoutes(Me,null,Xt.children)}}else this.activateChildRoutes(Me,null,$e)}}class lr{constructor(Me,me){this.routes=Me,this.module=me}}function fn(Be){return"function"==typeof Be}function Xn(Be){return Be instanceof be}const Dr=Symbol("INITIAL_VALUE");function Rr(){return(0,J.w)(Be=>(0,D.a)(Be.map(Me=>Me.pipe((0,ge.q)(1),(0,y.O)(Dr)))).pipe((0,i.R)((Me,me)=>{let $e=!1;return me.reduce((ot,kt,Xt)=>ot!==Dr?ot:(kt===Dr&&($e=!0),$e||!1!==kt&&Xt!==me.length-1&&!Xn(kt)?ot:kt),Me)},Dr),(0,j.h)(Me=>Me!==Dr),(0,ce.U)(Me=>Xn(Me)?Me:!0===Me),(0,ge.q)(1)))}class Wr{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(Me,me){const $e=this.getOrCreateContext(Me);$e.outlet=me,this.contexts.set(Me,$e)}onChildOutletDestroyed(Me){const me=this.getContext(Me);me&&(me.outlet=null,me.attachRef=null)}onOutletDeactivated(){const Me=this.contexts;return this.contexts=new Map,Me}onOutletReAttached(Me){this.contexts=Me}getOrCreateContext(Me){let me=this.getContext(Me);return me||(me=new Wr,this.contexts.set(Me,me)),me}getContext(Me){return this.contexts.get(Me)||null}}let Ir=(()=>{class Be{constructor(me,$e,ot,kt,Xt){this.parentContexts=me,this.location=$e,this.resolver=ot,this.changeDetector=Xt,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=kt||oe,me.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const me=this.parentContexts.getContext(this.name);me&&me.route&&(me.attachRef?this.attach(me.attachRef,me.route):this.activateWith(me.route,me.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 me=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(me.instance),me}attach(me,$e){this.activated=me,this._activatedRoute=$e,this.location.insert(me.hostView),this.attachEvents.emit(me.instance)}deactivate(){if(this.activated){const me=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(me)}}activateWith(me,$e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=me;const Xt=($e=$e||this.resolver).resolveComponentFactory(me._futureSnapshot.routeConfig.component),oi=this.parentContexts.getOrCreateContext(this.name).children,Ni=new ua(me,oi,this.location.injector);this.activated=this.location.createComponent(Xt,this.location.length,Ni),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Be.\u0275fac=function(me){return new(me||Be)(t.Y36(gr),t.Y36(t.s_b),t.Y36(t._Vd),t.$8M("name"),t.Y36(t.sBO))},Be.\u0275dir=t.lG2({type:Be,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Be})();class ua{constructor(Me,me,$e){this.route=Me,this.childContexts=me,this.parent=$e}get(Me,me){return Me===ji?this.route:Me===gr?this.childContexts:this.parent.get(Me,me)}}let _a=(()=>{class Be{}return Be.\u0275fac=function(me){return new(me||Be)},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["ng-component"]],decls:1,vars:0,template:function(me,$e){1&me&&t._UZ(0,"router-outlet")},directives:[Ir],encapsulation:2}),Be})();function va(Be,Me=""){for(let me=0;meKn($e)===Me);return me.push(...Be.filter($e=>Kn($e)!==Me)),me}const Hr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Sr(Be,Me,me){var $e;if(""===Me.path)return"full"===Me.pathMatch&&(Be.hasChildren()||me.length>0)?Object.assign({},Hr):{matched:!0,consumedSegments:[],remainingSegments:me,parameters:{},positionalParamSegments:{}};const kt=(Me.matcher||Ce)(me,Be,Me);if(!kt)return Object.assign({},Hr);const Xt={};Gt(kt.posParams,(Ni,dn)=>{Xt[dn]=Ni.path});const oi=kt.consumed.length>0?Object.assign(Object.assign({},Xt),kt.consumed[kt.consumed.length-1].parameters):Xt;return{matched:!0,consumedSegments:kt.consumed,remainingSegments:me.slice(kt.consumed.length),parameters:oi,positionalParamSegments:null!==($e=kt.posParams)&&void 0!==$e?$e:{}}}function Fr(Be,Me,me,$e,ot="corrected"){if(me.length>0&&function Wn(Be,Me,me){return me.some($e=>St(Be,Me,$e)&&Kn($e)!==oe)}(Be,me,$e)){const Xt=new ht(Me,function Fa(Be,Me,me,$e){const ot={};ot[oe]=$e,$e._sourceSegment=Be,$e._segmentIndexShift=Me.length;for(const kt of me)if(""===kt.path&&Kn(kt)!==oe){const Xt=new ht([],{});Xt._sourceSegment=Be,Xt._segmentIndexShift=Me.length,ot[Kn(kt)]=Xt}return ot}(Be,Me,$e,new ht(me,Be.children)));return Xt._sourceSegment=Be,Xt._segmentIndexShift=Me.length,{segmentGroup:Xt,slicedSegments:[]}}if(0===me.length&&function Xe(Be,Me,me){return me.some($e=>St(Be,Me,$e))}(Be,me,$e)){const Xt=new ht(Be.segments,function ya(Be,Me,me,$e,ot,kt){const Xt={};for(const oi of $e)if(St(Be,me,oi)&&!ot[Kn(oi)]){const Ni=new ht([],{});Ni._sourceSegment=Be,Ni._segmentIndexShift="legacy"===kt?Be.segments.length:Me.length,Xt[Kn(oi)]=Ni}return Object.assign(Object.assign({},ot),Xt)}(Be,Me,me,$e,Be.children,ot));return Xt._sourceSegment=Be,Xt._segmentIndexShift=Me.length,{segmentGroup:Xt,slicedSegments:me}}const kt=new ht(Be.segments,Be.children);return kt._sourceSegment=Be,kt._segmentIndexShift=Me.length,{segmentGroup:kt,slicedSegments:me}}function St(Be,Me,me){return(!(Be.hasChildren()||Me.length>0)||"full"!==me.pathMatch)&&""===me.path}function Ke(Be,Me,me,$e){return!!(Kn(Be)===$e||$e!==oe&&St(Me,me,Be))&&("**"===Be.path||Sr(Me,Be,me).matched)}function Ot(Be,Me,me){return 0===Me.length&&!Be.children[me]}class ri{constructor(Me){this.segmentGroup=Me||null}}class Ti{constructor(Me){this.urlTree=Me}}function ki(Be){return(0,w._)(new ri(Be))}function an(Be){return(0,w._)(new Ti(Be))}class Zt{constructor(Me,me,$e,ot,kt){this.configLoader=me,this.urlSerializer=$e,this.urlTree=ot,this.config=kt,this.allowRedirects=!0,this.ngModule=Me.get(t.h0i)}apply(){const Me=Fr(this.urlTree.root,[],[],this.config).segmentGroup,me=new ht(Me.segments,Me.children);return this.expandSegmentGroup(this.ngModule,this.config,me,oe).pipe((0,ce.U)(kt=>this.createUrlTree(Zi(kt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,r.K)(kt=>{if(kt instanceof Ti)return this.allowRedirects=!1,this.match(kt.urlTree);throw kt instanceof ri?this.noMatchError(kt):kt}))}match(Me){return this.expandSegmentGroup(this.ngModule,this.config,Me.root,oe).pipe((0,ce.U)(ot=>this.createUrlTree(Zi(ot),Me.queryParams,Me.fragment))).pipe((0,r.K)(ot=>{throw ot instanceof ri?this.noMatchError(ot):ot}))}noMatchError(Me){return new Error(`Cannot match any routes. URL Segment: '${Me.segmentGroup}'`)}createUrlTree(Me,me,$e){const ot=Me.segments.length>0?new ht([],{[oe]:Me}):Me;return new be(ot,me,$e)}expandSegmentGroup(Me,me,$e,ot){return 0===$e.segments.length&&$e.hasChildren()?this.expandChildren(Me,me,$e).pipe((0,ce.U)(kt=>new ht([],kt))):this.expandSegment(Me,$e,me,$e.segments,ot,!0)}expandChildren(Me,me,$e){const ot=[];for(const kt of Object.keys($e.children))"primary"===kt?ot.unshift(kt):ot.push(kt);return(0,N.D)(ot).pipe((0,u.b)(kt=>{const Xt=$e.children[kt],oi=ra(me,kt);return this.expandSegmentGroup(Me,oi,Xt,kt).pipe((0,ce.U)(Ni=>({segment:Ni,outlet:kt})))}),(0,i.R)((kt,Xt)=>(kt[Xt.outlet]=Xt.segment,kt),{}),function te(Be,Me){const me=arguments.length>=2;return $e=>$e.pipe(Be?(0,j.h)((ot,kt)=>Be(ot,kt,$e)):ee.y,ne(1),me?(0,de.d)(Me):(0,X.T)(()=>new S.K))}())}expandSegment(Me,me,$e,ot,kt,Xt){return(0,N.D)($e).pipe((0,u.b)(oi=>this.expandSegmentAgainstRoute(Me,me,$e,oi,ot,kt,Xt).pipe((0,r.K)(dn=>{if(dn instanceof ri)return(0,h.of)(null);throw dn}))),(0,c.P)(oi=>!!oi),(0,r.K)((oi,Ni)=>{if(oi instanceof S.K||"EmptyError"===oi.name)return Ot(me,ot,kt)?(0,h.of)(new ht([],{})):ki(me);throw oi}))}expandSegmentAgainstRoute(Me,me,$e,ot,kt,Xt,oi){return Ke(ot,me,kt,Xt)?void 0===ot.redirectTo?this.matchSegmentAgainstRoute(Me,me,ot,kt,Xt):oi&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Me,me,$e,ot,kt,Xt):ki(me):ki(me)}expandSegmentAgainstRouteUsingRedirect(Me,me,$e,ot,kt,Xt){return"**"===ot.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Me,$e,ot,Xt):this.expandRegularSegmentAgainstRouteUsingRedirect(Me,me,$e,ot,kt,Xt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Me,me,$e,ot){const kt=this.applyRedirectCommands([],$e.redirectTo,{});return $e.redirectTo.startsWith("/")?an(kt):this.lineralizeSegments($e,kt).pipe((0,C.z)(Xt=>{const oi=new ht(Xt,{});return this.expandSegment(Me,oi,me,Xt,ot,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Me,me,$e,ot,kt,Xt){const{matched:oi,consumedSegments:Ni,remainingSegments:dn,positionalParamSegments:Rn}=Sr(me,ot,kt);if(!oi)return ki(me);const Mn=this.applyRedirectCommands(Ni,ot.redirectTo,Rn);return ot.redirectTo.startsWith("/")?an(Mn):this.lineralizeSegments(ot,Mn).pipe((0,C.z)(rr=>this.expandSegment(Me,me,$e,rr.concat(dn),Xt,!1)))}matchSegmentAgainstRoute(Me,me,$e,ot,kt){if("**"===$e.path)return $e.loadChildren?($e._loadedConfig?(0,h.of)($e._loadedConfig):this.configLoader.load(Me.injector,$e)).pipe((0,ce.U)(Mn=>($e._loadedConfig=Mn,new ht(ot,{})))):(0,h.of)(new ht(ot,{}));const{matched:Xt,consumedSegments:oi,remainingSegments:Ni}=Sr(me,$e,ot);return Xt?this.getChildConfig(Me,$e,ot).pipe((0,C.z)(Rn=>{const Mn=Rn.module,rr=Rn.routes,{segmentGroup:Hn,slicedSegments:es}=Fr(me,oi,Ni,rr),ws=new ht(Hn.segments,Hn.children);if(0===es.length&&ws.hasChildren())return this.expandChildren(Mn,rr,ws).pipe((0,ce.U)(io=>new ht(oi,io)));if(0===rr.length&&0===es.length)return(0,h.of)(new ht(oi,{}));const Fo=Kn($e)===kt;return this.expandSegment(Mn,ws,rr,es,Fo?oe:kt,!0).pipe((0,ce.U)(ba=>new ht(oi.concat(ba.segments),ba.children)))})):ki(me)}getChildConfig(Me,me,$e){return me.children?(0,h.of)(new lr(me.children,Me)):me.loadChildren?void 0!==me._loadedConfig?(0,h.of)(me._loadedConfig):this.runCanLoadGuards(Me.injector,me,$e).pipe((0,C.z)(ot=>ot?this.configLoader.load(Me.injector,me).pipe((0,ce.U)(kt=>(me._loadedConfig=kt,kt))):function hi(Be){return(0,w._)($(`Cannot load children because the guard of the route "path: '${Be.path}'" returned false`))}(me))):(0,h.of)(new lr([],Me))}runCanLoadGuards(Me,me,$e){const ot=me.canLoad;if(!ot||0===ot.length)return(0,h.of)(!0);const kt=ot.map(Xt=>{const oi=Me.get(Xt);let Ni;if(function Za(Be){return Be&&fn(Be.canLoad)}(oi))Ni=oi.canLoad(me,$e);else{if(!fn(oi))throw new Error("Invalid CanLoad guard");Ni=oi(me,$e)}return ui(Ni)});return(0,h.of)(kt).pipe(Rr(),(0,E.b)(Xt=>{if(!Xn(Xt))return;const oi=$(`Redirecting to "${this.urlSerializer.serialize(Xt)}"`);throw oi.url=Xt,oi}),(0,ce.U)(Xt=>!0===Xt))}lineralizeSegments(Me,me){let $e=[],ot=me.root;for(;;){if($e=$e.concat(ot.segments),0===ot.numberOfChildren)return(0,h.of)($e);if(ot.numberOfChildren>1||!ot.children[oe])return(0,w._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Me.redirectTo}'`));ot=ot.children[oe]}}applyRedirectCommands(Me,me,$e){return this.applyRedirectCreatreUrlTree(me,this.urlSerializer.parse(me),Me,$e)}applyRedirectCreatreUrlTree(Me,me,$e,ot){const kt=this.createSegmentGroup(Me,me.root,$e,ot);return new be(kt,this.createQueryParams(me.queryParams,this.urlTree.queryParams),me.fragment)}createQueryParams(Me,me){const $e={};return Gt(Me,(ot,kt)=>{if("string"==typeof ot&&ot.startsWith(":")){const oi=ot.substring(1);$e[kt]=me[oi]}else $e[kt]=ot}),$e}createSegmentGroup(Me,me,$e,ot){const kt=this.createSegments(Me,me.segments,$e,ot);let Xt={};return Gt(me.children,(oi,Ni)=>{Xt[Ni]=this.createSegmentGroup(Me,oi,$e,ot)}),new ht(kt,Xt)}createSegments(Me,me,$e,ot){return me.map(kt=>kt.path.startsWith(":")?this.findPosParam(Me,kt,ot):this.findOrReturn(kt,$e))}findPosParam(Me,me,$e){const ot=$e[me.path.substring(1)];if(!ot)throw new Error(`Cannot redirect to '${Me}'. Cannot find '${me.path}'.`);return ot}findOrReturn(Me,me){let $e=0;for(const ot of me){if(ot.path===Me.path)return me.splice($e),ot;$e++}return Me}}function Zi(Be){const Me={};for(const $e of Object.keys(Be.children)){const kt=Zi(Be.children[$e]);(kt.segments.length>0||kt.hasChildren())&&(Me[$e]=kt)}return function Hi(Be){if(1===Be.numberOfChildren&&Be.children[oe]){const Me=Be.children[oe];return new ht(Be.segments.concat(Me.segments),Me.children)}return Be}(new ht(Be.segments,Me))}class Qe{constructor(Me){this.path=Me,this.route=this.path[this.path.length-1]}}class We{constructor(Me,me){this.component=Me,this.route=me}}function He(Be,Me,me){const $e=Be._root;return Yn($e,Me?Me._root:null,me,[$e.value])}function Si(Be,Me,me){const $e=function Qi(Be){if(!Be)return null;for(let Me=Be.parent;Me;Me=Me.parent){const me=Me.routeConfig;if(me&&me._loadedConfig)return me._loadedConfig}return null}(Me);return($e?$e.module.injector:me).get(Be)}function Yn(Be,Me,me,$e,ot={canDeactivateChecks:[],canActivateChecks:[]}){const kt=Vt(Me);return Be.children.forEach(Xt=>{(function Or(Be,Me,me,$e,ot={canDeactivateChecks:[],canActivateChecks:[]}){const kt=Be.value,Xt=Me?Me.value:null,oi=me?me.getContext(Be.value.outlet):null;if(Xt&&kt.routeConfig===Xt.routeConfig){const Ni=function Wa(Be,Me,me){if("function"==typeof me)return me(Be,Me);switch(me){case"pathParamsChange":return!it(Be.url,Me.url);case"pathParamsOrQueryParamsChange":return!it(Be.url,Me.url)||!ct(Be.queryParams,Me.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vi(Be,Me)||!ct(Be.queryParams,Me.queryParams);default:return!vi(Be,Me)}}(Xt,kt,kt.routeConfig.runGuardsAndResolvers);Ni?ot.canActivateChecks.push(new Qe($e)):(kt.data=Xt.data,kt._resolvedData=Xt._resolvedData),Yn(Be,Me,kt.component?oi?oi.children:null:me,$e,ot),Ni&&oi&&oi.outlet&&oi.outlet.isActivated&&ot.canDeactivateChecks.push(new We(oi.outlet.component,Xt))}else Xt&&xa(Me,oi,ot),ot.canActivateChecks.push(new Qe($e)),Yn(Be,null,kt.component?oi?oi.children:null:me,$e,ot)})(Xt,kt[Xt.value.outlet],me,$e.concat([Xt.value]),ot),delete kt[Xt.value.outlet]}),Gt(kt,(Xt,oi)=>xa(Xt,me.getContext(oi),ot)),ot}function xa(Be,Me,me){const $e=Vt(Be),ot=Be.value;Gt($e,(kt,Xt)=>{xa(kt,ot.component?Me?Me.children.getContext(Xt):null:Me,me)}),me.canDeactivateChecks.push(new We(ot.component&&Me&&Me.outlet&&Me.outlet.isActivated?Me.outlet.component:null,ot))}class xs{}function bs(Be){return new e.y(Me=>Me.error(Be))}class $a{constructor(Me,me,$e,ot,kt,Xt){this.rootComponentType=Me,this.config=me,this.urlTree=$e,this.url=ot,this.paramsInheritanceStrategy=kt,this.relativeLinkResolution=Xt}recognize(){const Me=Fr(this.urlTree.root,[],[],this.config.filter(Xt=>void 0===Xt.redirectTo),this.relativeLinkResolution).segmentGroup,me=this.processSegmentGroup(this.config,Me,oe);if(null===me)return null;const $e=new zt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},oe,this.rootComponentType,null,this.urlTree.root,-1,{}),ot=new Mt($e,me),kt=new si(this.url,ot);return this.inheritParamsAndData(kt._root),kt}inheritParamsAndData(Me){const me=Me.value,$e=Kt(me,this.paramsInheritanceStrategy);me.params=Object.freeze($e.params),me.data=Object.freeze($e.data),Me.children.forEach(ot=>this.inheritParamsAndData(ot))}processSegmentGroup(Me,me,$e){return 0===me.segments.length&&me.hasChildren()?this.processChildren(Me,me):this.processSegment(Me,me,me.segments,$e)}processChildren(Me,me){const $e=[];for(const kt of Object.keys(me.children)){const Xt=me.children[kt],oi=ra(Me,kt),Ni=this.processSegmentGroup(oi,Xt,kt);if(null===Ni)return null;$e.push(...Ni)}const ot=Va($e);return function Ms(Be){Be.sort((Me,me)=>Me.value.outlet===oe?-1:me.value.outlet===oe?1:Me.value.outlet.localeCompare(me.value.outlet))}(ot),ot}processSegment(Me,me,$e,ot){for(const kt of Me){const Xt=this.processSegmentAgainstRoute(kt,me,$e,ot);if(null!==Xt)return Xt}return Ot(me,$e,ot)?[]:null}processSegmentAgainstRoute(Me,me,$e,ot){if(Me.redirectTo||!Ke(Me,me,$e,ot))return null;let kt,Xt=[],oi=[];if("**"===Me.path){const Hn=$e.length>0?di($e).parameters:{};kt=new zt($e,Hn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ye(Me),Kn(Me),Me.component,Me,re(me),he(me)+$e.length,wt(Me))}else{const Hn=Sr(me,Me,$e);if(!Hn.matched)return null;Xt=Hn.consumedSegments,oi=Hn.remainingSegments,kt=new zt(Xt,Hn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ye(Me),Kn(Me),Me.component,Me,re(me),he(me)+Xt.length,wt(Me))}const Ni=function gs(Be){return Be.children?Be.children:Be.loadChildren?Be._loadedConfig.routes:[]}(Me),{segmentGroup:dn,slicedSegments:Rn}=Fr(me,Xt,oi,Ni.filter(Hn=>void 0===Hn.redirectTo),this.relativeLinkResolution);if(0===Rn.length&&dn.hasChildren()){const Hn=this.processChildren(Ni,dn);return null===Hn?null:[new Mt(kt,Hn)]}if(0===Ni.length&&0===Rn.length)return[new Mt(kt,[])];const Mn=Kn(Me)===ot,rr=this.processSegment(Ni,dn,Rn,Mn?oe:ot);return null===rr?null:[new Mt(kt,rr)]}}function Vr(Be){const Me=Be.value.routeConfig;return Me&&""===Me.path&&void 0===Me.redirectTo}function Va(Be){const Me=[],me=new Set;for(const $e of Be){if(!Vr($e)){Me.push($e);continue}const ot=Me.find(kt=>$e.value.routeConfig===kt.value.routeConfig);void 0!==ot?(ot.children.push(...$e.children),me.add(ot)):Me.push($e)}for(const $e of me){const ot=Va($e.children);Me.push(new Mt($e.value,ot))}return Me.filter($e=>!me.has($e))}function re(Be){let Me=Be;for(;Me._sourceSegment;)Me=Me._sourceSegment;return Me}function he(Be){let Me=Be,me=Me._segmentIndexShift?Me._segmentIndexShift:0;for(;Me._sourceSegment;)Me=Me._sourceSegment,me+=Me._segmentIndexShift?Me._segmentIndexShift:0;return me-1}function Ye(Be){return Be.data||{}}function wt(Be){return Be.resolve||{}}function Pi(Be){return[...Object.keys(Be),...Object.getOwnPropertySymbols(Be)]}function un(Be){return(0,J.w)(Me=>{const me=Be(Me);return me?(0,N.D)(me).pipe((0,ce.U)(()=>Me)):(0,h.of)(Me)})}class yn extends class Pn{shouldDetach(Me){return!1}store(Me,me){}shouldAttach(Me){return!1}retrieve(Me){return null}shouldReuseRoute(Me,me){return Me.routeConfig===me.routeConfig}}{}const Tn=new t.OlP("ROUTES");class qn{constructor(Me,me,$e,ot){this.injector=Me,this.compiler=me,this.onLoadStartListener=$e,this.onLoadEndListener=ot}load(Me,me){if(me._loader$)return me._loader$;this.onLoadStartListener&&this.onLoadStartListener(me);const ot=this.loadModuleFactory(me.loadChildren).pipe((0,ce.U)(kt=>{this.onLoadEndListener&&this.onLoadEndListener(me);const Xt=kt.create(Me);return new lr(Dt(Xt.injector.get(Tn,void 0,t.XFs.Self|t.XFs.Optional)).map(Ia),Xt)}),(0,r.K)(kt=>{throw me._loader$=void 0,kt}));return me._loader$=new d(ot,()=>new Z.x).pipe(b()),me._loader$}loadModuleFactory(Me){return ui(Me()).pipe((0,C.z)(me=>me instanceof t.YKP?(0,h.of)(me):(0,N.D)(this.compiler.compileModuleAsync(me))))}}class cr{shouldProcessUrl(Me){return!0}extract(Me){return Me}merge(Me,me){return Me}}function Xr(Be){throw Be}function Yr(Be,Me,me){return Me.parse("/")}function dr(Be,Me){return(0,h.of)(null)}const zr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Bn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ur=(()=>{class Be{constructor(me,$e,ot,kt,Xt,oi,Ni){this.rootComponentType=me,this.urlSerializer=$e,this.rootContexts=ot,this.location=kt,this.config=Ni,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Z.x,this.errorHandler=Xr,this.malformedUriErrorHandler=Yr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:dr,afterPreactivation:dr},this.urlHandlingStrategy=new cr,this.routeReuseStrategy=new yn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Xt.get(t.h0i),this.console=Xt.get(t.c2e);const Mn=Xt.get(t.R0b);this.isNgZoneEnabled=Mn instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(Ni),this.currentUrlTree=function xt(){return new be(new ht([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qn(Xt,oi,rr=>this.triggerEvent(new Ge(rr)),rr=>this.triggerEvent(new ve(rr))),this.routerState=Ei(this.currentUrlTree,this.rootComponentType),this.transitions=new A.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 me;return null===(me=this.location.getState())||void 0===me?void 0:me.\u0275routerPageId}setupNavigations(me){const $e=this.events;return me.pipe((0,j.h)(ot=>0!==ot.id),(0,ce.U)(ot=>Object.assign(Object.assign({},ot),{extractedUrl:this.urlHandlingStrategy.extract(ot.rawUrl)})),(0,J.w)(ot=>{let kt=!1,Xt=!1;return(0,h.of)(ot).pipe((0,E.b)(oi=>{this.currentNavigation={id:oi.id,initialUrl:oi.currentRawUrl,extractedUrl:oi.extractedUrl,trigger:oi.source,extras:oi.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,J.w)(oi=>{const Ni=this.browserUrlTree.toString(),dn=!this.navigated||oi.extractedUrl.toString()!==Ni||Ni!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||dn)&&this.urlHandlingStrategy.shouldProcessUrl(oi.rawUrl))return nt(oi.source)&&(this.browserUrlTree=oi.extractedUrl),(0,h.of)(oi).pipe((0,J.w)(Mn=>{const rr=this.transitions.getValue();return $e.next(new B(Mn.id,this.serializeUrl(Mn.extractedUrl),Mn.source,Mn.restoredState)),rr!==this.transitions.getValue()?U.E:Promise.resolve(Mn)}),function Ln(Be,Me,me,$e){return(0,J.w)(ot=>function mt(Be,Me,me,$e,ot){return new Zt(Be,Me,me,$e,ot).apply()}(Be,Me,me,ot.extractedUrl,$e).pipe((0,ce.U)(kt=>Object.assign(Object.assign({},ot),{urlAfterRedirects:kt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,E.b)(Mn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Mn.urlAfterRedirects})}),function Ft(Be,Me,me,$e,ot){return(0,C.z)(kt=>function Zs(Be,Me,me,$e,ot="emptyOnly",kt="legacy"){try{const Xt=new $a(Be,Me,me,$e,ot,kt).recognize();return null===Xt?bs(new xs):(0,h.of)(Xt)}catch(Xt){return bs(Xt)}}(Be,Me,kt.urlAfterRedirects,me(kt.urlAfterRedirects),$e,ot).pipe((0,ce.U)(Xt=>Object.assign(Object.assign({},kt),{targetSnapshot:Xt}))))}(this.rootComponentType,this.config,Mn=>this.serializeUrl(Mn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,E.b)(Mn=>{if("eager"===this.urlUpdateStrategy){if(!Mn.extras.skipLocationChange){const Hn=this.urlHandlingStrategy.merge(Mn.urlAfterRedirects,Mn.rawUrl);this.setBrowserUrl(Hn,Mn)}this.browserUrlTree=Mn.urlAfterRedirects}const rr=new fe(Mn.id,this.serializeUrl(Mn.extractedUrl),this.serializeUrl(Mn.urlAfterRedirects),Mn.targetSnapshot);$e.next(rr)}));if(dn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:rr,extractedUrl:Hn,source:es,restoredState:ws,extras:Fo}=oi,n1=new B(rr,this.serializeUrl(Hn),es,ws);$e.next(n1);const ba=Ei(Hn,this.rootComponentType).snapshot;return(0,h.of)(Object.assign(Object.assign({},oi),{targetSnapshot:ba,urlAfterRedirects:Hn,extras:Object.assign(Object.assign({},Fo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=oi.rawUrl,oi.resolve(null),U.E}),un(oi=>{const{targetSnapshot:Ni,id:dn,extractedUrl:Rn,rawUrl:Mn,extras:{skipLocationChange:rr,replaceUrl:Hn}}=oi;return this.hooks.beforePreactivation(Ni,{navigationId:dn,appliedUrlTree:Rn,rawUrlTree:Mn,skipLocationChange:!!rr,replaceUrl:!!Hn})}),(0,E.b)(oi=>{const Ni=new xe(oi.id,this.serializeUrl(oi.extractedUrl),this.serializeUrl(oi.urlAfterRedirects),oi.targetSnapshot);this.triggerEvent(Ni)}),(0,ce.U)(oi=>Object.assign(Object.assign({},oi),{guards:He(oi.targetSnapshot,oi.currentSnapshot,this.rootContexts)})),function os(Be,Me){return(0,C.z)(me=>{const{targetSnapshot:$e,currentSnapshot:ot,guards:{canActivateChecks:kt,canDeactivateChecks:Xt}}=me;return 0===Xt.length&&0===kt.length?(0,h.of)(Object.assign(Object.assign({},me),{guardsResult:!0})):function zi(Be,Me,me,$e){return(0,N.D)(Be).pipe((0,C.z)(ot=>function ha(Be,Me,me,$e,ot){const kt=Me&&Me.routeConfig?Me.routeConfig.canDeactivate:null;if(!kt||0===kt.length)return(0,h.of)(!0);const Xt=kt.map(oi=>{const Ni=Si(oi,Me,ot);let dn;if(function Jr(Be){return Be&&fn(Be.canDeactivate)}(Ni))dn=ui(Ni.canDeactivate(Be,Me,me,$e));else{if(!fn(Ni))throw new Error("Invalid CanDeactivate guard");dn=ui(Ni(Be,Me,me,$e))}return dn.pipe((0,c.P)())});return(0,h.of)(Xt).pipe(Rr())}(ot.component,ot.route,me,Me,$e)),(0,c.P)(ot=>!0!==ot,!0))}(Xt,$e,ot,Be).pipe((0,C.z)(oi=>oi&&function qr(Be){return"boolean"==typeof Be}(oi)?function zn(Be,Me,me,$e){return(0,N.D)(Me).pipe((0,u.b)(ot=>(0,I.z)(function Cr(Be,Me){return null!==Be&&Me&&Me(new F(Be)),(0,h.of)(!0)}(ot.route.parent,$e),function Ja(Be,Me){return null!==Be&&Me&&Me(new lt(Be)),(0,h.of)(!0)}(ot.route,$e),function Xa(Be,Me,me){const $e=Me[Me.length-1],kt=Me.slice(0,Me.length-1).reverse().map(Xt=>function bt(Be){const Me=Be.routeConfig?Be.routeConfig.canActivateChild:null;return Me&&0!==Me.length?{node:Be,guards:Me}:null}(Xt)).filter(Xt=>null!==Xt).map(Xt=>(0,L.P)(()=>{const oi=Xt.guards.map(Ni=>{const dn=Si(Ni,Xt.node,me);let Rn;if(function Ea(Be){return Be&&fn(Be.canActivateChild)}(dn))Rn=ui(dn.canActivateChild($e,Be));else{if(!fn(dn))throw new Error("Invalid CanActivateChild guard");Rn=ui(dn($e,Be))}return Rn.pipe((0,c.P)())});return(0,h.of)(oi).pipe(Rr())}));return(0,h.of)(kt).pipe(Rr())}(Be,ot.path,me),function Gs(Be,Me,me){const $e=Me.routeConfig?Me.routeConfig.canActivate:null;if(!$e||0===$e.length)return(0,h.of)(!0);const ot=$e.map(kt=>(0,L.P)(()=>{const Xt=Si(kt,Me,me);let oi;if(function Zr(Be){return Be&&fn(Be.canActivate)}(Xt))oi=ui(Xt.canActivate(Me,Be));else{if(!fn(Xt))throw new Error("Invalid CanActivate guard");oi=ui(Xt(Me,Be))}return oi.pipe((0,c.P)())}));return(0,h.of)(ot).pipe(Rr())}(Be,ot.route,me))),(0,c.P)(ot=>!0!==ot,!0))}($e,kt,Be,Me):(0,h.of)(oi)),(0,ce.U)(oi=>Object.assign(Object.assign({},me),{guardsResult:oi})))})}(this.ngModule.injector,oi=>this.triggerEvent(oi)),(0,E.b)(oi=>{if(Xn(oi.guardsResult)){const dn=$(`Redirecting to "${this.serializeUrl(oi.guardsResult)}"`);throw dn.url=oi.guardsResult,dn}const Ni=new Re(oi.id,this.serializeUrl(oi.extractedUrl),this.serializeUrl(oi.urlAfterRedirects),oi.targetSnapshot,!!oi.guardsResult);this.triggerEvent(Ni)}),(0,j.h)(oi=>!!oi.guardsResult||(this.restoreHistory(oi),this.cancelNavigationTransition(oi,""),!1)),un(oi=>{if(oi.guards.canActivateChecks.length)return(0,h.of)(oi).pipe((0,E.b)(Ni=>{const dn=new we(Ni.id,this.serializeUrl(Ni.extractedUrl),this.serializeUrl(Ni.urlAfterRedirects),Ni.targetSnapshot);this.triggerEvent(dn)}),(0,J.w)(Ni=>{let dn=!1;return(0,h.of)(Ni).pipe(function ii(Be,Me){return(0,C.z)(me=>{const{targetSnapshot:$e,guards:{canActivateChecks:ot}}=me;if(!ot.length)return(0,h.of)(me);let kt=0;return(0,N.D)(ot).pipe((0,u.b)(Xt=>function ni(Be,Me,me,$e){return function yi(Be,Me,me,$e){const ot=Pi(Be);if(0===ot.length)return(0,h.of)({});const kt={};return(0,N.D)(ot).pipe((0,C.z)(Xt=>function nn(Be,Me,me,$e){const ot=Si(Be,Me,$e);return ui(ot.resolve?ot.resolve(Me,me):ot(Me,me))}(Be[Xt],Me,me,$e).pipe((0,E.b)(oi=>{kt[Xt]=oi}))),ne(1),(0,C.z)(()=>Pi(kt).length===ot.length?(0,h.of)(kt):U.E))}(Be._resolve,Be,Me,$e).pipe((0,ce.U)(kt=>(Be._resolvedData=kt,Be.data=Object.assign(Object.assign({},Be.data),Kt(Be,me).resolve),null)))}(Xt.route,$e,Be,Me)),(0,E.b)(()=>kt++),ne(1),(0,C.z)(Xt=>kt===ot.length?(0,h.of)(me):U.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,E.b)({next:()=>dn=!0,complete:()=>{dn||(this.restoreHistory(Ni),this.cancelNavigationTransition(Ni,"At least one route resolver didn't emit any value."))}}))}),(0,E.b)(Ni=>{const dn=new Q(Ni.id,this.serializeUrl(Ni.extractedUrl),this.serializeUrl(Ni.urlAfterRedirects),Ni.targetSnapshot);this.triggerEvent(dn)}))}),un(oi=>{const{targetSnapshot:Ni,id:dn,extractedUrl:Rn,rawUrl:Mn,extras:{skipLocationChange:rr,replaceUrl:Hn}}=oi;return this.hooks.afterPreactivation(Ni,{navigationId:dn,appliedUrlTree:Rn,rawUrlTree:Mn,skipLocationChange:!!rr,replaceUrl:!!Hn})}),(0,ce.U)(oi=>{const Ni=function Bi(Be,Me,me){const $e=Fi(Be,Me._root,me?me._root:void 0);return new Mi($e,Me)}(this.routeReuseStrategy,oi.targetSnapshot,oi.currentRouterState);return Object.assign(Object.assign({},oi),{targetRouterState:Ni})}),(0,E.b)(oi=>{this.currentUrlTree=oi.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(oi.urlAfterRedirects,oi.rawUrl),this.routerState=oi.targetRouterState,"deferred"===this.urlUpdateStrategy&&(oi.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,oi),this.browserUrlTree=oi.urlAfterRedirects)}),((Be,Me,me)=>(0,ce.U)($e=>(new Ur(Me,$e.targetRouterState,$e.currentRouterState,me).activate(Be),$e)))(this.rootContexts,this.routeReuseStrategy,oi=>this.triggerEvent(oi)),(0,E.b)({next(){kt=!0},complete(){kt=!0}}),(0,O.x)(()=>{var oi;kt||Xt||this.cancelNavigationTransition(ot,`Navigation ID ${ot.id} is not equal to the current navigation id ${this.navigationId}`),(null===(oi=this.currentNavigation)||void 0===oi?void 0:oi.id)===ot.id&&(this.currentNavigation=null)}),(0,r.K)(oi=>{if(Xt=!0,function ue(Be){return Be&&Be[W]}(oi)){const Ni=Xn(oi.url);Ni||(this.navigated=!0,this.restoreHistory(ot,!0));const dn=new z(ot.id,this.serializeUrl(ot.extractedUrl),oi.message);$e.next(dn),Ni?setTimeout(()=>{const Rn=this.urlHandlingStrategy.merge(oi.url,this.rawUrlTree),Mn={skipLocationChange:ot.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||nt(ot.source)};this.scheduleNavigation(Rn,"imperative",null,Mn,{resolve:ot.resolve,reject:ot.reject,promise:ot.promise})},0):ot.resolve(!1)}else{this.restoreHistory(ot,!0);const Ni=new se(ot.id,this.serializeUrl(ot.extractedUrl),oi);$e.next(Ni);try{ot.resolve(this.errorHandler(oi))}catch(dn){ot.reject(dn)}}return U.E}))}))}resetRootComponentType(me){this.rootComponentType=me,this.routerState.root.component=this.rootComponentType}setTransition(me){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),me))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(me=>{const $e="popstate"===me.type?"popstate":"hashchange";"popstate"===$e&&setTimeout(()=>{var ot;const kt={replaceUrl:!0},Xt=(null===(ot=me.state)||void 0===ot?void 0:ot.navigationId)?me.state:null;if(Xt){const Ni=Object.assign({},Xt);delete Ni.navigationId,delete Ni.\u0275routerPageId,0!==Object.keys(Ni).length&&(kt.state=Ni)}const oi=this.parseUrl(me.url);this.scheduleNavigation(oi,$e,Xt,kt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(me){this.events.next(me)}resetConfig(me){va(me),this.config=me.map(Ia),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(me,$e={}){const{relativeTo:ot,queryParams:kt,fragment:Xt,queryParamsHandling:oi,preserveFragment:Ni}=$e,dn=ot||this.routerState.root,Rn=Ni?this.currentUrlTree.fragment:Xt;let Mn=null;switch(oi){case"merge":Mn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),kt);break;case"preserve":Mn=this.currentUrlTree.queryParams;break;default:Mn=kt||null}return null!==Mn&&(Mn=this.removeEmptyProps(Mn)),function Dn(Be,Me,me,$e,ot){if(0===me.length)return cn(Me.root,Me.root,Me.root,$e,ot);const kt=function Jn(Be){if("string"==typeof Be[0]&&1===Be.length&&"/"===Be[0])return new Br(!0,0,Be);let Me=0,me=!1;const $e=Be.reduce((ot,kt,Xt)=>{if("object"==typeof kt&&null!=kt){if(kt.outlets){const oi={};return Gt(kt.outlets,(Ni,dn)=>{oi[dn]="string"==typeof Ni?Ni.split("/"):Ni}),[...ot,{outlets:oi}]}if(kt.segmentPath)return[...ot,kt.segmentPath]}return"string"!=typeof kt?[...ot,kt]:0===Xt?(kt.split("/").forEach((oi,Ni)=>{0==Ni&&"."===oi||(0==Ni&&""===oi?me=!0:".."===oi?Me++:""!=oi&&ot.push(oi))}),ot):[...ot,kt]},[]);return new Br(me,Me,$e)}(me);if(kt.toRoot())return cn(Me.root,Me.root,new ht([],{}),$e,ot);const Xt=function Pr(Be,Me,me){if(Be.isAbsolute)return new mr(Me.root,!0,0);if(-1===me.snapshot._lastPathIndex){const kt=me.snapshot._urlSegment;return new mr(kt,kt===Me.root,0)}const $e=Ai(Be.commands[0])?0:1;return function Nr(Be,Me,me){let $e=Be,ot=Me,kt=me;for(;kt>ot;){if(kt-=ot,$e=$e.parent,!$e)throw new Error("Invalid number of '../'");ot=$e.segments.length}return new mr($e,!1,ot-kt)}(me.snapshot._urlSegment,me.snapshot._lastPathIndex+$e,Be.numberOfDoubleDots)}(kt,Me,Be),oi=Xt.processChildren?Ca(Xt.segmentGroup,Xt.index,kt.commands):ga(Xt.segmentGroup,Xt.index,kt.commands);return cn(Me.root,Xt.segmentGroup,oi,$e,ot)}(dn,this.currentUrlTree,me,Mn,null!=Rn?Rn:null)}navigateByUrl(me,$e={skipLocationChange:!1}){const ot=Xn(me)?me:this.parseUrl(me),kt=this.urlHandlingStrategy.merge(ot,this.rawUrlTree);return this.scheduleNavigation(kt,"imperative",null,$e)}navigate(me,$e={skipLocationChange:!1}){return function za(Be){for(let Me=0;Me{const kt=me[ot];return null!=kt&&($e[ot]=kt),$e},{})}processNavigations(){this.navigations.subscribe(me=>{this.navigated=!0,this.lastSuccessfulId=me.id,this.currentPageId=me.targetPageId,this.events.next(new P(me.id,this.serializeUrl(me.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,me.resolve(!0)},me=>{this.console.warn(`Unhandled Navigation Error: ${me}`)})}scheduleNavigation(me,$e,ot,kt,Xt){var oi,Ni;if(this.disposed)return Promise.resolve(!1);let dn,Rn,Mn;Xt?(dn=Xt.resolve,Rn=Xt.reject,Mn=Xt.promise):Mn=new Promise((es,ws)=>{dn=es,Rn=ws});const rr=++this.navigationId;let Hn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ot=this.location.getState()),Hn=ot&&ot.\u0275routerPageId?ot.\u0275routerPageId:kt.replaceUrl||kt.skipLocationChange?null!==(oi=this.browserPageId)&&void 0!==oi?oi:0:(null!==(Ni=this.browserPageId)&&void 0!==Ni?Ni:0)+1):Hn=0,this.setTransition({id:rr,targetPageId:Hn,source:$e,restoredState:ot,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:me,extras:kt,resolve:dn,reject:Rn,promise:Mn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Mn.catch(es=>Promise.reject(es))}setBrowserUrl(me,$e){const ot=this.urlSerializer.serialize(me),kt=Object.assign(Object.assign({},$e.extras.state),this.generateNgRouterState($e.id,$e.targetPageId));this.location.isCurrentPathEqualTo(ot)||$e.extras.replaceUrl?this.location.replaceState(ot,"",kt):this.location.go(ot,"",kt)}restoreHistory(me,$e=!1){var ot,kt;if("computed"===this.canceledNavigationResolution){const Xt=this.currentPageId-me.targetPageId;"popstate"!==me.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(ot=this.currentNavigation)||void 0===ot?void 0:ot.finalUrl)||0===Xt?this.currentUrlTree===(null===(kt=this.currentNavigation)||void 0===kt?void 0:kt.finalUrl)&&0===Xt&&(this.resetState(me),this.browserUrlTree=me.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Xt)}else"replace"===this.canceledNavigationResolution&&($e&&this.resetState(me),this.resetUrlToCurrentUrlTree())}resetState(me){this.routerState=me.currentRouterState,this.currentUrlTree=me.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,me.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(me,$e){const ot=new z(me.id,this.serializeUrl(me.extractedUrl),$e);this.triggerEvent(ot),me.resolve(!1)}generateNgRouterState(me,$e){return"computed"===this.canceledNavigationResolution?{navigationId:me,\u0275routerPageId:$e}:{navigationId:me}}}return Be.\u0275fac=function(me){t.$Z()},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})();function nt(Be){return"imperative"!==Be}let Et=(()=>{class Be{constructor(me,$e,ot,kt,Xt){this.router=me,this.route=$e,this.tabIndexAttribute=ot,this.renderer=kt,this.el=Xt,this.commands=null,this.onChanges=new Z.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(me){if(null!=this.tabIndexAttribute)return;const $e=this.renderer,ot=this.el.nativeElement;null!==me?$e.setAttribute(ot,"tabindex",me):$e.removeAttribute(ot,"tabindex")}ngOnChanges(me){this.onChanges.next(this)}set routerLink(me){null!=me?(this.commands=Array.isArray(me)?me:[me],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const me={skipLocationChange:Rt(this.skipLocationChange),replaceUrl:Rt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,me),!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:Rt(this.preserveFragment)})}}return Be.\u0275fac=function(me){return new(me||Be)(t.Y36(ur),t.Y36(ji),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(me,$e){1&me&&t.NdJ("click",function(){return $e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),Be})(),At=(()=>{class Be{constructor(me,$e,ot){this.router=me,this.route=$e,this.locationStrategy=ot,this.commands=null,this.href=null,this.onChanges=new Z.x,this.subscription=me.events.subscribe(kt=>{kt instanceof P&&this.updateTargetUrlAndHref()})}set routerLink(me){this.commands=null!=me?Array.isArray(me)?me:[me]:null}ngOnChanges(me){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(me,$e,ot,kt,Xt){if(0!==me||$e||ot||kt||Xt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const oi={skipLocationChange:Rt(this.skipLocationChange),replaceUrl:Rt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,oi),!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:Rt(this.preserveFragment)})}}return Be.\u0275fac=function(me){return new(me||Be)(t.Y36(ur),t.Y36(ji),t.Y36(n.S$))},Be.\u0275dir=t.lG2({type:Be,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(me,$e){1&me&&t.NdJ("click",function(kt){return $e.onClick(kt.button,kt.ctrlKey,kt.shiftKey,kt.altKey,kt.metaKey)}),2&me&&t.uIk("target",$e.target)("href",$e.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),Be})();function Rt(Be){return""===Be||!!Be}let qt=(()=>{class Be{constructor(me,$e,ot,kt,Xt,oi){this.router=me,this.element=$e,this.renderer=ot,this.cdr=kt,this.link=Xt,this.linkWithHref=oi,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=me.events.subscribe(Ni=>{Ni instanceof P&&this.update()})}ngAfterContentInit(){(0,h.of)(this.links.changes,this.linksWithHrefs.changes,(0,h.of)(null)).pipe((0,_.J)()).subscribe(me=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var me;null===(me=this.linkInputChangesSubscription)||void 0===me||me.unsubscribe();const $e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(ot=>!!ot).map(ot=>ot.onChanges);this.linkInputChangesSubscription=(0,N.D)($e).pipe((0,_.J)()).subscribe(ot=>{this.isActive!==this.isLinkActive(this.router)(ot)&&this.update()})}set routerLinkActive(me){const $e=Array.isArray(me)?me:me.split(" ");this.classes=$e.filter(ot=>!!ot)}ngOnChanges(me){this.update()}ngOnDestroy(){var me;this.routerEventsSubscription.unsubscribe(),null===(me=this.linkInputChangesSubscription)||void 0===me||me.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const me=this.hasActiveLinks();this.isActive!==me&&(this.isActive=me,this.cdr.markForCheck(),this.classes.forEach($e=>{me?this.renderer.addClass(this.element.nativeElement,$e):this.renderer.removeClass(this.element.nativeElement,$e)}),this.isActiveChange.emit(me))})}isLinkActive(me){const $e=function _i(Be){return!!Be.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ot=>!!ot.urlTree&&me.isActive(ot.urlTree,$e)}hasActiveLinks(){const me=this.isLinkActive(this.router);return this.link&&me(this.link)||this.linkWithHref&&me(this.linkWithHref)||this.links.some(me)||this.linksWithHrefs.some(me)}}return Be.\u0275fac=function(me){return new(me||Be)(t.Y36(ur),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Et,8),t.Y36(At,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","routerLinkActive",""]],contentQueries:function(me,$e,ot){if(1&me&&(t.Suo(ot,Et,5),t.Suo(ot,At,5)),2&me){let kt;t.iGM(kt=t.CRH())&&($e.links=kt),t.iGM(kt=t.CRH())&&($e.linksWithHrefs=kt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[t.TTD]}),Be})();class ei{}class Li{preload(Me,me){return(0,h.of)(null)}}let qi=(()=>{class Be{constructor(me,$e,ot,kt){this.router=me,this.injector=ot,this.preloadingStrategy=kt,this.loader=new qn(ot,$e,Ni=>me.triggerEvent(new Ge(Ni)),Ni=>me.triggerEvent(new ve(Ni)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.h)(me=>me instanceof P),(0,u.b)(()=>this.preload())).subscribe(()=>{})}preload(){const me=this.injector.get(t.h0i);return this.processRoutes(me,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(me,$e){const ot=[];for(const kt of $e)if(kt.loadChildren&&!kt.canLoad&&kt._loadedConfig){const Xt=kt._loadedConfig;ot.push(this.processRoutes(Xt.module,Xt.routes))}else kt.loadChildren&&!kt.canLoad?ot.push(this.preloadConfig(me,kt)):kt.children&&ot.push(this.processRoutes(me,kt.children));return(0,N.D)(ot).pipe((0,_.J)(),(0,ce.U)(kt=>{}))}preloadConfig(me,$e){return this.preloadingStrategy.preload($e,()=>($e._loadedConfig?(0,h.of)($e._loadedConfig):this.loader.load(me.injector,$e)).pipe((0,C.z)(kt=>($e._loadedConfig=kt,this.processRoutes(kt.module,kt.routes)))))}}return Be.\u0275fac=function(me){return new(me||Be)(t.LFG(ur),t.LFG(t.Sil),t.LFG(t.zs3),t.LFG(ei))},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),$i=(()=>{class Be{constructor(me,$e,ot={}){this.router=me,this.viewportScroller=$e,this.options=ot,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ot.scrollPositionRestoration=ot.scrollPositionRestoration||"disabled",ot.anchorScrolling=ot.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(me=>{me instanceof B?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=me.navigationTrigger,this.restoredId=me.restoredState?me.restoredState.navigationId:0):me instanceof P&&(this.lastId=me.id,this.scheduleScrollEvent(me,this.router.parseUrl(me.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(me=>{me instanceof De&&(me.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(me.position):me.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(me.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(me,$e){this.router.triggerEvent(new De(me,"popstate"===this.lastSource?this.store[this.restoredId]:null,$e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Be.\u0275fac=function(me){t.$Z()},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})();const bn=new t.OlP("ROUTER_CONFIGURATION"),Qn=new t.OlP("ROUTER_FORROOT_GUARD"),kn=[n.Ye,{provide:tt,useClass:Je},{provide:ur,useFactory:function jr(Be,Me,me,$e,ot,kt,Xt={},oi,Ni){const dn=new ur(null,Be,Me,me,$e,ot,Dt(kt));return oi&&(dn.urlHandlingStrategy=oi),Ni&&(dn.routeReuseStrategy=Ni),function Ya(Be,Me){Be.errorHandler&&(Me.errorHandler=Be.errorHandler),Be.malformedUriErrorHandler&&(Me.malformedUriErrorHandler=Be.malformedUriErrorHandler),Be.onSameUrlNavigation&&(Me.onSameUrlNavigation=Be.onSameUrlNavigation),Be.paramsInheritanceStrategy&&(Me.paramsInheritanceStrategy=Be.paramsInheritanceStrategy),Be.relativeLinkResolution&&(Me.relativeLinkResolution=Be.relativeLinkResolution),Be.urlUpdateStrategy&&(Me.urlUpdateStrategy=Be.urlUpdateStrategy),Be.canceledNavigationResolution&&(Me.canceledNavigationResolution=Be.canceledNavigationResolution)}(Xt,dn),Xt.enableTracing&&dn.events.subscribe(Rn=>{var Mn,rr;null===(Mn=console.group)||void 0===Mn||Mn.call(console,`Router Event: ${Rn.constructor.name}`),console.log(Rn.toString()),console.log(Rn),null===(rr=console.groupEnd)||void 0===rr||rr.call(console)}),dn},deps:[tt,gr,n.Ye,t.zs3,t.Sil,Tn,bn,[class xr{},new t.FiY],[class Sn{},new t.FiY]]},gr,{provide:ji,useFactory:function ls(Be){return Be.routerState.root},deps:[ur]},qi,Li,class pi{preload(Me,me){return me().pipe((0,r.K)(()=>(0,h.of)(null)))}},{provide:bn,useValue:{enableTracing:!1}}];function aa(){return new t.PXZ("Router",ur)}let Aa=(()=>{class Be{constructor(me,$e){}static forRoot(me,$e){return{ngModule:Be,providers:[kn,kr(me),{provide:Qn,useFactory:hr,deps:[[ur,new t.FiY,new t.tp0]]},{provide:bn,useValue:$e||{}},{provide:n.S$,useFactory:br,deps:[n.lw,[new t.tBr(n.mr),new t.FiY],bn]},{provide:$i,useFactory:tr,deps:[ur,n.EM,bn]},{provide:ei,useExisting:$e&&$e.preloadingStrategy?$e.preloadingStrategy:Li},{provide:t.PXZ,multi:!0,useFactory:aa},[cs,{provide:t.ip1,multi:!0,useFactory:Cs,deps:[cs]},{provide:Mo,useFactory:Ws,deps:[cs]},{provide:t.tb,multi:!0,useExisting:Mo}]]}}static forChild(me){return{ngModule:Be,providers:[kr(me)]}}}return Be.\u0275fac=function(me){return new(me||Be)(t.LFG(Qn,8),t.LFG(ur,8))},Be.\u0275mod=t.oAB({type:Be}),Be.\u0275inj=t.cJS({}),Be})();function tr(Be,Me,me){return me.scrollOffset&&Me.setOffset(me.scrollOffset),new $i(Be,Me,me)}function br(Be,Me,me={}){return me.useHash?new n.Do(Be,Me):new n.b0(Be,Me)}function hr(Be){return"guarded"}function kr(Be){return[{provide:t.deG,multi:!0,useValue:Be},{provide:Tn,multi:!0,useValue:Be}]}let cs=(()=>{class Be{constructor(me){this.injector=me,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Z.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let $e=null;const ot=new Promise(oi=>$e=oi),kt=this.injector.get(ur),Xt=this.injector.get(bn);return"disabled"===Xt.initialNavigation?(kt.setUpLocationChangeListener(),$e(!0)):"enabled"===Xt.initialNavigation||"enabledBlocking"===Xt.initialNavigation?(kt.hooks.afterPreactivation=()=>this.initNavigation?(0,h.of)(null):(this.initNavigation=!0,$e(!0),this.resultOfPreactivationDone),kt.initialNavigation()):$e(!0),ot})}bootstrapListener(me){const $e=this.injector.get(bn),ot=this.injector.get(qi),kt=this.injector.get($i),Xt=this.injector.get(ur),oi=this.injector.get(t.z2F);me===oi.components[0]&&(("enabledNonBlocking"===$e.initialNavigation||void 0===$e.initialNavigation)&&Xt.initialNavigation(),ot.setUpPreloading(),kt.init(),Xt.resetRootComponentType(oi.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Be.\u0275fac=function(me){return new(me||Be)(t.LFG(t.zs3))},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})();function Cs(Be){return Be.appInitializer.bind(Be)}function Ws(Be){return Be.bootstrapListener.bind(Be)}const Mo=new t.OlP("Router Initializer")},9444:(Fe,Y,p)=>{"use strict";p.d(Y,{BN:()=>Xr,uH:()=>za});var t=p(5e3);function e(nt,Et){var At=Object.keys(nt);if(Object.getOwnPropertySymbols){var Rt=Object.getOwnPropertySymbols(nt);Et&&(Rt=Rt.filter(function(qt){return Object.getOwnPropertyDescriptor(nt,qt).enumerable})),At.push.apply(At,Rt)}return At}function f(nt){for(var Et=1;Etnt.length)&&(Et=nt.length);for(var At=0,Rt=new Array(Et);At0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function Oe(nt){for(var Et=[],At=(nt||[]).length>>>0;At--;)Et[At]=nt[At];return Et}function le(nt){return nt.classList?Oe(nt.classList):(nt.getAttribute("class")||"").split(" ").filter(function(Et){return Et})}function be(nt){return"".concat(nt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ft(nt){return Object.keys(nt||{}).reduce(function(Et,At){return Et+"".concat(At,": ").concat(nt[At].trim(),";")},"")}function Ht(nt){return nt.size!==vt.size||nt.x!==vt.x||nt.y!==vt.y||nt.rotate!==vt.rotate||nt.flipX||nt.flipY}function Je(){var Et=z,At=xt.familyPrefix,Rt=xt.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"!==At||Rt!==Et){var _i=new RegExp("\\.".concat("fa","\\-"),"g"),ei=new RegExp("\\--".concat("fa","\\-"),"g"),pi=new RegExp("\\.".concat(Et),"g");qt=qt.replace(_i,".".concat(At,"-")).replace(ei,"--".concat(At,"-")).replace(pi,".".concat(Rt))}return qt}var Se=!1;function Ue(){xt.autoAddCss&&!Se&&(function $t(nt){if(nt&&_){var Et=c.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=nt;for(var At=c.head.childNodes,Rt=null,qt=At.length-1;qt>-1;qt--){var _i=At[qt],ei=(_i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ei)>-1&&(Rt=_i)}c.head.insertBefore(Et,Rt)}}(Je()),Se=!0)}var rt={mixout:function(){return{dom:{css:Je,insertCss:Ue}}},hooks:function(){return{beforeDOMElementCreation:function(){Ue()},beforeI2svg:function(){Ue()}}}},at=u||{};at[v]||(at[v]={}),at[v].styles||(at[v].styles={}),at[v].hooks||(at[v].hooks={}),at[v].shims||(at[v].shims=[]);var yt=at[v],gi=[],Jt=!1;function Xi(nt){!_||(Jt?setTimeout(nt,0):gi.push(nt))}function fi(nt){var Et=nt.tag,At=nt.attributes,Rt=void 0===At?{}:At,qt=nt.children,_i=void 0===qt?[]:qt;return"string"==typeof nt?be(nt):"<".concat(Et," ").concat(function ht(nt){return Object.keys(nt||{}).reduce(function(Et,At){return Et+"".concat(At,'="').concat(be(nt[At]),'" ')},"").trim()}(Rt),">").concat(_i.map(fi).join(""),"")}function ai(nt,Et,At){if(nt&&nt[Et]&&nt[Et][At])return{prefix:Et,iconName:At,icon:nt[Et][At]}}_&&((Jt=(c.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState))||c.addEventListener("DOMContentLoaded",function nt(){c.removeEventListener("DOMContentLoaded",nt),Jt=1,gi.map(function(Et){return Et()})}));var Wi=function(Et,At,Rt,qt){var Li,qi,$i,_i=Object.keys(Et),ei=_i.length,pi=void 0!==qt?function(Et,At){return function(Rt,qt,_i,ei){return Et.call(At,Rt,qt,_i,ei)}}(At,qt):At;for(void 0===Rt?(Li=1,$i=Et[_i[0]]):(Li=0,$i=Rt);Li=55296&&qt<=56319&&At2&&void 0!==arguments[2]?arguments[2]:{},Rt=At.skipHooks,qt=void 0!==Rt&&Rt,_i=Lt(Et);"function"!=typeof yt.hooks.addPack||qt?yt.styles[nt]=f(f({},yt.styles[nt]||{}),_i):yt.hooks.addPack(nt,Lt(Et)),"fas"===nt&&pe("fa",Et)}var Ct=yt.styles,ie=yt.shims,qe=Object.values(Ie),Mt=null,Vt={},Mi={},Ei={},en={},ji={},Kt=Object.keys(Ae);function zt(nt,Et){var At=Et.split("-"),Rt=At[0],qt=At.slice(1).join("-");return Rt!==nt||""===qt||function Oi(nt){return~ct.indexOf(nt)}(qt)?null:qt}var si=function(){var Et=function(_i){return Wi(Ct,function(ei,pi,Li){return ei[Li]=Wi(pi,_i,{}),ei},{})};Vt=Et(function(qt,_i,ei){return _i[3]&&(qt[_i[3]]=ei),_i[2]&&_i[2].filter(function(Li){return"number"==typeof Li}).forEach(function(Li){qt[Li.toString(16)]=ei}),qt}),Mi=Et(function(qt,_i,ei){return qt[ei]=ei,_i[2]&&_i[2].filter(function(Li){return"string"==typeof Li}).forEach(function(Li){qt[Li]=ei}),qt}),ji=Et(function(qt,_i,ei){var pi=_i[2];return qt[ei]=ei,pi.forEach(function(Li){qt[Li]=ei}),qt});var At="far"in Ct||xt.autoFetchSvg,Rt=Wi(ie,function(qt,_i){var ei=_i[0],pi=_i[1],Li=_i[2];return"far"===pi&&!At&&(pi="fas"),"string"==typeof ei&&(qt.names[ei]={prefix:pi,iconName:Li}),"number"==typeof ei&&(qt.unicodes[ei.toString(16)]={prefix:pi,iconName:Li}),qt},{names:{},unicodes:{}});Ei=Rt.names,en=Rt.unicodes,Mt=Fn(xt.styleDefault)};function Pt(nt,Et){return(Vt[nt]||{})[Et]}function ti(nt,Et){return(ji[nt]||{})[Et]}function vi(nt){return Ei[nt]||{prefix:null,iconName:null}}function Fi(){return Mt}function Fn(nt){return lt[nt]||lt[Ae[nt]]||(nt in yt.styles?nt:null)||null}function Dn(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},At=Et.skipLookups,Rt=void 0!==At&&At,qt=null,_i=nt.reduce(function(ei,pi){var Li=zt(xt.familyPrefix,pi);if(Ct[pi]?(pi=qe.includes(pi)?De[pi]:pi,qt=pi,ei.prefix=pi):Kt.indexOf(pi)>-1?(qt=pi,ei.prefix=Fn(pi)):Li?ei.iconName=Li:pi!==xt.replacementClass&&ei.rest.push(pi),!Rt&&ei.prefix&&ei.iconName){var qi="fa"===qt?vi(ei.iconName):{},$i=ti(ei.prefix,ei.iconName);qi.prefix&&(qt=null),ei.iconName=qi.iconName||$i||ei.iconName,ei.prefix=qi.prefix||ei.prefix,"far"===ei.prefix&&!Ct.far&&Ct.fas&&!xt.autoFetchSvg&&(ei.prefix="fas")}return ei},{prefix:null,iconName:null,rest:[]});return("fa"===_i.prefix||"fa"===qt)&&(_i.prefix=Fi()||"fas"),_i}(function gt(nt){Nt.push(nt)})(function(nt){Mt=Fn(nt.styleDefault)}),si();var Ai=function(){function nt(){(function b(nt,Et){if(!(nt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,nt),this.definitions={}}return function N(nt,Et,At){Et&&d(nt.prototype,Et),At&&d(nt,At),Object.defineProperty(nt,"prototype",{writable:!1})}(nt,[{key:"add",value:function(){for(var At=this,Rt=arguments.length,qt=new Array(Rt),_i=0;_i0&&$i.forEach(function(on){"string"==typeof on&&(At[pi][on]=qi)}),At[pi][Li]=qi}),At}}]),nt}(),Ri=[],cn={},pr={},Br=Object.keys(pr);function mr(nt,Et){for(var At=arguments.length,Rt=new Array(At>2?At-2:0),qt=2;qt1?Et-1:0),Rt=1;Rt0&&void 0!==arguments[0]?arguments[0]:{};return _?(Pr("beforeI2svg",Et),Nr("pseudoElements2svg",Et),Nr("i2svg",Et)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},At=Et.autoReplaceSvgRoot;!1===xt.autoReplaceSvg&&(xt.autoReplaceSvg=!0),xt.observeMutations=!0,Xi(function(){Qr({autoReplaceSvgRoot:At}),Pr("watch",Et)})}},nr={noAuto:function(){xt.autoReplaceSvg=!1,xt.observeMutations=!1,Pr("noAuto")},config:xt,dom:Na,parse:{icon:function(Et){if(null===Et)return null;if("object"===M(Et)&&Et.prefix&&Et.iconName)return{prefix:Et.prefix,iconName:ti(Et.prefix,Et.iconName)||Et.iconName};if(Array.isArray(Et)&&2===Et.length){var At=0===Et[1].indexOf("fa-")?Et[1].slice(3):Et[1],Rt=Fn(Et[0]);return{prefix:Rt,iconName:ti(Rt,At)||At}}if("string"==typeof Et&&(Et.indexOf("".concat(xt.familyPrefix,"-"))>-1||Et.match(oe))){var qt=Dn(Et.split(" "),{skipLookups:!0});return{prefix:qt.prefix||Fi(),iconName:ti(qt.prefix,qt.iconName)||qt.iconName}}if("string"==typeof Et){var _i=Fi();return{prefix:_i,iconName:ti(_i,Et)||Et}}}},library:ga,findIconDefinition:ca,toHtml:fi},Qr=function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},At=Et.autoReplaceSvgRoot,Rt=void 0===At?c:At;(Object.keys(yt.styles).length>0||xt.autoFetchSvg)&&_&&xt.autoReplaceSvg&&nr.dom.i2svg({node:Rt})};function da(nt,Et){return Object.defineProperty(nt,"abstract",{get:Et}),Object.defineProperty(nt,"html",{get:function(){return nt.abstract.map(function(Rt){return fi(Rt)})}}),Object.defineProperty(nt,"node",{get:function(){if(_){var Rt=c.createElement("div");return Rt.innerHTML=nt.html,Rt.children}}}),nt}function Gr(nt){var Et=nt.icons,At=Et.main,Rt=Et.mask,qt=nt.prefix,_i=nt.iconName,ei=nt.transform,pi=nt.symbol,Li=nt.title,qi=nt.maskId,$i=nt.titleId,on=nt.extra,bn=nt.watchable,Qn=void 0!==bn&&bn,kn=Rt.found?Rt:At,aa=kn.width,Aa=kn.height,tr="fak"===qt,br=[xt.replacementClass,_i?"".concat(xt.familyPrefix,"-").concat(_i):""].filter(function(Cs){return-1===on.classes.indexOf(Cs)}).filter(function(Cs){return""!==Cs||!!Cs}).concat(on.classes).join(" "),hr={children:[],attributes:f(f({},on.attributes),{},{"data-prefix":qt,"data-icon":_i,class:br,role:on.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(aa," ").concat(Aa)})},kr=tr&&!~on.classes.indexOf("fa-fw")?{width:"".concat(aa/Aa*16*.0625,"em")}:{};Qn&&(hr.attributes[se]=""),Li&&(hr.children.push({tag:"title",attributes:{id:hr.attributes["aria-labelledby"]||"title-".concat($i||Pe())},children:[Li]}),delete hr.attributes.title);var jr=f(f({},hr),{},{prefix:qt,iconName:_i,main:At,mask:Rt,maskId:qi,transform:ei,symbol:pi,styles:f(f({},kr),on.styles)}),Ya=Rt.found&&At.found?Nr("generateAbstractMask",jr)||{children:[],attributes:{}}:Nr("generateAbstractIcon",jr)||{children:[],attributes:{}},cs=Ya.attributes;return jr.children=Ya.children,jr.attributes=cs,pi?function Ur(nt){var At=nt.iconName,Rt=nt.children,qt=nt.attributes,_i=nt.symbol,ei=!0===_i?"".concat(nt.prefix,"-").concat(xt.familyPrefix,"-").concat(At):_i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:f(f({},qt),{},{id:ei}),children:Rt}]}]}(jr):function Ha(nt){var Et=nt.children,At=nt.main,Rt=nt.mask,qt=nt.attributes,_i=nt.styles,ei=nt.transform;if(Ht(ei)&&At.found&&!Rt.found){var qi={x:At.width/At.height/2,y:.5};qt.style=ft(f(f({},_i),{},{"transform-origin":"".concat(qi.x+ei.x/16,"em ").concat(qi.y+ei.y/16,"em")}))}return[{tag:"svg",attributes:qt,children:Et}]}(jr)}function lr(nt){var Et=nt.content,At=nt.width,Rt=nt.height,qt=nt.transform,_i=nt.title,ei=nt.extra,pi=nt.watchable,Li=void 0!==pi&&pi,qi=f(f(f({},ei.attributes),_i?{title:_i}:{}),{},{class:ei.classes.join(" ")});Li&&(qi[se]="");var $i=f({},ei.styles);Ht(qt)&&($i.transform=function Ne(nt){var Et=nt.transform,At=nt.width,qt=nt.height,_i=void 0===qt?16:qt,ei=nt.startCentered,pi=void 0!==ei&&ei,Li="";return Li+=pi&&n?"translate(".concat(Et.x/16-(void 0===At?16:At)/2,"em, ").concat(Et.y/16-_i/2,"em) "):pi?"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) "),(Li+="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:At,height:Rt}),$i["-webkit-transform"]=$i.transform);var on=ft($i);on.length>0&&(qi.style=on);var bn=[];return bn.push({tag:"span",attributes:qi,children:[Et]}),_i&&bn.push({tag:"span",attributes:{class:"sr-only"},children:[_i]}),bn}function fn(nt){var Et=nt.content,At=nt.title,Rt=nt.extra,qt=f(f(f({},Rt.attributes),At?{title:At}:{}),{},{class:Rt.classes.join(" ")}),_i=ft(Rt.styles);_i.length>0&&(qt.style=_i);var ei=[];return ei.push({tag:"span",attributes:qt,children:[Et]}),At&&ei.push({tag:"span",attributes:{class:"sr-only"},children:[At]}),ei}var qr=yt.styles;function Xn(nt){var Et=nt[0],At=nt[1],_i=w(nt.slice(4),1)[0];return{found:!0,width:Et,height:At,icon:Array.isArray(_i)?{tag:"g",attributes:{class:"".concat(xt.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(xt.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:_i[0]}},{tag:"path",attributes:{class:"".concat(xt.familyPrefix,"-").concat("primary"),fill:"currentColor",d:_i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:_i}}}}var Za={found:!1,width:512,height:512};function Ea(nt,Et){var At=Et;return"fa"===Et&&null!==xt.styleDefault&&(Et=Fi()),new Promise(function(Rt,qt){if(Nr("missingIconAbstract"),"fa"===At){var ei=vi(nt)||{};nt=ei.iconName||nt,Et=ei.prefix||Et}if(nt&&Et&&qr[Et]&&qr[Et][nt])return Rt(Xn(qr[Et][nt]));(function Zr(nt,Et){!F&&!xt.showMissingIcons&&nt&&console.error('Icon with name "'.concat(nt,'" and prefix "').concat(Et,'" is missing.'))})(nt,Et),Rt(f(f({},Za),{},{icon:xt.showMissingIcons&&nt&&Nr("missingIconAbstract")||{}}))})}var Jr=function(){},Dr=xt.measurePerformance&&E&&E.mark&&E.measure?E:{mark:Jr,measure:Jr},Rr='FA "6.1.2"',Ir_begin=function(Et){return Dr.mark("".concat(Rr," ").concat(Et," begins")),function(){return function(Et){Dr.mark("".concat(Rr," ").concat(Et," ends")),Dr.measure("".concat(Rr," ").concat(Et),"".concat(Rr," ").concat(Et," begins"),"".concat(Rr," ").concat(Et," ends"))}(Et)}},ua=function(){};function _a(nt){return"string"==typeof(nt.getAttribute?nt.getAttribute(se):null)}function Ia(nt){return c.createElementNS("http://www.w3.org/2000/svg",nt)}function Kn(nt){return c.createElement(nt)}function ra(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},At=Et.ceFn,Rt=void 0===At?"svg"===nt.tag?Ia:Kn:At;if("string"==typeof nt)return c.createTextNode(nt);var qt=Rt(nt.tag);Object.keys(nt.attributes||[]).forEach(function(ei){qt.setAttribute(ei,nt.attributes[ei])});var _i=nt.children||[];return _i.forEach(function(ei){qt.appendChild(ra(ei,{ceFn:Rt}))}),qt}var Sr={replace:function(Et){var At=Et[0];if(At.parentNode)if(Et[1].forEach(function(qt){At.parentNode.insertBefore(ra(qt),At)}),null===At.getAttribute(se)&&xt.keepOriginalSource){var Rt=c.createComment(function Hr(nt){var Et=" ".concat(nt.outerHTML," ");return"".concat(Et,"Font Awesome fontawesome.com ")}(At));At.parentNode.replaceChild(Rt,At)}else At.remove()},nest:function(Et){var At=Et[0],Rt=Et[1];if(~le(At).indexOf(xt.replacementClass))return Sr.replace(Et);var qt=new RegExp("".concat(xt.familyPrefix,"-.*"));if(delete Rt[0].attributes.id,Rt[0].attributes.class){var _i=Rt[0].attributes.class.split(" ").reduce(function(pi,Li){return Li===xt.replacementClass||Li.match(qt)?pi.toSvg.push(Li):pi.toNode.push(Li),pi},{toNode:[],toSvg:[]});Rt[0].attributes.class=_i.toSvg.join(" "),0===_i.toNode.length?At.removeAttribute("class"):At.setAttribute("class",_i.toNode.join(" "))}var ei=Rt.map(function(pi){return fi(pi)}).join("\n");At.setAttribute(se,""),At.innerHTML=ei}};function Fr(nt){nt()}function ya(nt,Et){var At="function"==typeof Et?Et:ua;if(0===nt.length)At();else{var Rt=Fr;"async"===xt.mutateApproach&&(Rt=u.requestAnimationFrame||Fr),Rt(function(){var qt=function Ta(){return!0===xt.autoReplaceSvg?Sr.replace:Sr[xt.autoReplaceSvg]||Sr.replace}(),_i=Ir_begin("mutate");nt.map(qt),_i(),At()})}}var Fa=!1;function Wn(){Fa=!0}function Xe(){Fa=!1}var St=null;function Ke(nt){if(C&&xt.observeMutations){var Et=nt.treeCallback,At=void 0===Et?ua:Et,Rt=nt.nodeCallback,qt=void 0===Rt?ua:Rt,_i=nt.pseudoElementsCallback,ei=void 0===_i?ua:_i,pi=nt.observeMutationsRoot,Li=void 0===pi?c:pi;St=new C(function(qi){if(!Fa){var $i=Fi();Oe(qi).forEach(function(on){if("childList"===on.type&&on.addedNodes.length>0&&!_a(on.addedNodes[0])&&(xt.searchPseudoElements&&ei(on.target),At(on.target)),"attributes"===on.type&&on.target.parentNode&&xt.searchPseudoElements&&ei(on.target.parentNode),"attributes"===on.type&&_a(on.target)&&~Ce.indexOf(on.attributeName))if("class"===on.attributeName&&function va(nt){var Et=nt.getAttribute?nt.getAttribute(Re):null,At=nt.getAttribute?nt.getAttribute(we):null;return Et&&At}(on.target)){var bn=Dn(le(on.target)),kn=bn.iconName;on.target.setAttribute(Re,bn.prefix||$i),kn&&on.target.setAttribute(we,kn)}else(function $n(nt){return nt&&nt.classList&&nt.classList.contains&&nt.classList.contains(xt.replacementClass)})(on.target)&&qt(on.target)})}}),_&&St.observe(Li,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ri(nt){var Et=nt.getAttribute("style"),At=[];return Et&&(At=Et.split(";").reduce(function(Rt,qt){var _i=qt.split(":"),ei=_i[0],pi=_i.slice(1);return ei&&pi.length>0&&(Rt[ei]=pi.join(":").trim()),Rt},{})),At}function Ti(nt){var Et=nt.getAttribute("data-prefix"),At=nt.getAttribute("data-icon"),Rt=void 0!==nt.innerText?nt.innerText.trim():"",qt=Dn(le(nt));return qt.prefix||(qt.prefix=Fi()),Et&&At&&(qt.prefix=Et,qt.iconName=At),qt.iconName&&qt.prefix||(qt.prefix&&Rt.length>0&&(qt.iconName=function mi(nt,Et){return(Mi[nt]||{})[Et]}(qt.prefix,nt.innerText)||Pt(qt.prefix,Yi(nt.innerText))),!qt.iconName&&xt.autoFetchSvg&&nt.firstChild&&nt.firstChild.nodeType===Node.TEXT_NODE&&(qt.iconName=nt.firstChild.data)),qt}function ki(nt){var Et=Oe(nt.attributes).reduce(function(qt,_i){return"class"!==qt.name&&"style"!==qt.name&&(qt[_i.name]=_i.value),qt},{}),At=nt.getAttribute("title"),Rt=nt.getAttribute("data-fa-title-id");return xt.autoA11y&&(At?Et["aria-labelledby"]="".concat(xt.replacementClass,"-title-").concat(Rt||Pe()):(Et["aria-hidden"]="true",Et.focusable="false")),Et}function It(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},At=Ti(nt),Rt=At.iconName,qt=At.prefix,_i=At.rest,ei=ki(nt),pi=mr("parseNodeAttributes",{},nt),Li=Et.styleParser?ri(nt):[];return f({iconName:Rt,title:nt.getAttribute("title"),titleId:nt.getAttribute("data-fa-title-id"),prefix:qt,transform:vt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:_i,styles:Li,attributes:ei}},pi)}var hi=yt.styles;function mt(nt){var Et="nest"===xt.autoReplaceSvg?It(nt,{styleParser:!1}):It(nt);return~Et.extra.classes.indexOf(Te)?Nr("generateLayersText",nt,Et):Nr("generateSvgReplacementMutation",nt,Et)}function Zt(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!_)return Promise.resolve();var At=c.documentElement.classList,Rt=function(on){return At.add("".concat(Q,"-").concat(on))},qt=function(on){return At.remove("".concat(Q,"-").concat(on))},_i=Object.keys(xt.autoFetchSvg?Ae:hi);_i.includes("fa")||_i.push("fa");var ei=[".".concat(Te,":not([").concat(se,"])")].concat(_i.map(function($i){return".".concat($i,":not([").concat(se,"])")})).join(", ");if(0===ei.length)return Promise.resolve();var pi=[];try{pi=Oe(nt.querySelectorAll(ei))}catch($i){}if(!(pi.length>0))return Promise.resolve();Rt("pending"),qt("complete");var Li=Ir_begin("onTree"),qi=pi.reduce(function($i,on){try{var bn=mt(on);bn&&$i.push(bn)}catch(Qn){F||"MissingIcon"===Qn.name&&console.error(Qn)}return $i},[]);return new Promise(function($i,on){Promise.all(qi).then(function(bn){ya(bn,function(){Rt("active"),Rt("complete"),qt("pending"),"function"==typeof Et&&Et(),Li(),$i()})}).catch(function(bn){Li(),on(bn)})})}function Hi(nt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;mt(nt).then(function(At){At&&ya([At],Et)})}var Ln=function(Et){var At=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Rt=At.transform,qt=void 0===Rt?vt:Rt,_i=At.symbol,ei=void 0!==_i&&_i,pi=At.mask,Li=void 0===pi?null:pi,qi=At.maskId,$i=void 0===qi?null:qi,on=At.title,bn=void 0===on?null:on,Qn=At.titleId,kn=void 0===Qn?null:Qn,aa=At.classes,Aa=void 0===aa?[]:aa,tr=At.attributes,br=void 0===tr?{}:tr,hr=At.styles,kr=void 0===hr?{}:hr;if(Et){var jr=Et.prefix,Ya=Et.iconName,ls=Et.icon;return da(f({type:"icon"},Et),function(){return Pr("beforeDOMElementCreation",{iconDefinition:Et,params:At}),xt.autoA11y&&(bn?br["aria-labelledby"]="".concat(xt.replacementClass,"-title-").concat(kn||Pe()):(br["aria-hidden"]="true",br.focusable="false")),Gr({icons:{main:Xn(ls),mask:Li?Xn(Li.icon):{found:!1,width:null,height:null,icon:{}}},prefix:jr,iconName:Ya,transform:f(f({},vt),qt),symbol:ei,title:bn,maskId:$i,titleId:kn,extra:{attributes:br,styles:kr,classes:Aa}})})}},Qe={mixout:function(){return{icon:(nt=Ln,function(Et){var At=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Rt=(Et||{}).icon?Et:ca(Et||{}),qt=At.mask;return qt&&(qt=(qt||{}).icon?qt:ca(qt||{})),nt(Rt,f(f({},At),{},{mask:qt}))})};var nt},hooks:function(){return{mutationObserverCallbacks:function(At){return At.treeCallback=Zt,At.nodeCallback=Hi,At}}},provides:function(Et){Et.i2svg=function(At){var Rt=At.node,_i=At.callback;return Zt(void 0===Rt?c:Rt,void 0===_i?function(){}:_i)},Et.generateSvgReplacementMutation=function(At,Rt){var qt=Rt.iconName,_i=Rt.title,ei=Rt.titleId,pi=Rt.prefix,Li=Rt.transform,qi=Rt.symbol,$i=Rt.mask,on=Rt.maskId,bn=Rt.extra;return new Promise(function(Qn,kn){Promise.all([Ea(qt,pi),$i.iconName?Ea($i.iconName,$i.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(aa){var Aa=w(aa,2);Qn([At,Gr({icons:{main:Aa[0],mask:Aa[1]},prefix:pi,iconName:qt,transform:Li,symbol:qi,maskId:on,title:_i,titleId:ei,extra:bn,watchable:!0})])}).catch(kn)})},Et.generateAbstractIcon=function(At){var qi,Rt=At.children,qt=At.attributes,_i=At.main,ei=At.transform,Li=ft(At.styles);return Li.length>0&&(qt.style=Li),Ht(ei)&&(qi=Nr("generateAbstractTransformGrouping",{main:_i,transform:ei,containerWidth:_i.width,iconWidth:_i.width})),Rt.push(qi||_i.icon),{children:Rt,attributes:qt}}}},We={mixout:function(){return{layer:function(At){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Rt.classes,_i=void 0===qt?[]:qt;return da({type:"layer"},function(){Pr("beforeDOMElementCreation",{assembler:At,params:Rt});var ei=[];return At(function(pi){Array.isArray(pi)?pi.map(function(Li){ei=ei.concat(Li.abstract)}):ei=ei.concat(pi.abstract)}),[{tag:"span",attributes:{class:["".concat(xt.familyPrefix,"-layers")].concat(S(_i)).join(" ")},children:ei}]})}}}},He={mixout:function(){return{counter:function(At){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Rt.title,_i=void 0===qt?null:qt,ei=Rt.classes,pi=void 0===ei?[]:ei,Li=Rt.attributes,qi=void 0===Li?{}:Li,$i=Rt.styles,on=void 0===$i?{}:$i;return da({type:"counter",content:At},function(){return Pr("beforeDOMElementCreation",{content:At,params:Rt}),fn({content:At.toString(),title:_i,extra:{attributes:qi,styles:on,classes:["".concat(xt.familyPrefix,"-layers-counter")].concat(S(pi))}})})}}}},bt={mixout:function(){return{text:function(At){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Rt.transform,_i=void 0===qt?vt:qt,ei=Rt.title,pi=void 0===ei?null:ei,Li=Rt.classes,qi=void 0===Li?[]:Li,$i=Rt.attributes,on=void 0===$i?{}:$i,bn=Rt.styles,Qn=void 0===bn?{}:bn;return da({type:"text",content:At},function(){return Pr("beforeDOMElementCreation",{content:At,params:Rt}),lr({content:At,transform:f(f({},vt),_i),title:pi,extra:{attributes:on,styles:Qn,classes:["".concat(xt.familyPrefix,"-layers-text")].concat(S(qi))}})})}}},provides:function(Et){Et.generateLayersText=function(At,Rt){var qt=Rt.title,_i=Rt.transform,ei=Rt.extra,pi=null,Li=null;if(n){var qi=parseInt(getComputedStyle(At).fontSize,10),$i=At.getBoundingClientRect();pi=$i.width/qi,Li=$i.height/qi}return xt.autoA11y&&!qt&&(ei.attributes["aria-hidden"]="true"),Promise.resolve([At,lr({content:At.innerHTML,width:pi,height:Li,transform:_i,title:qt,extra:ei,watchable:!0})])}}},Si=new RegExp('"',"ug"),Qi=[1105920,1112319];function Or(nt,Et){var At="".concat("data-fa-pseudo-element-pending").concat(Et.replace(":","-"));return new Promise(function(Rt,qt){if(null!==nt.getAttribute(At))return Rt();var ei=Oe(nt.children).filter(function(Ya){return Ya.getAttribute(fe)===Et})[0],pi=u.getComputedStyle(nt,Et),Li=pi.getPropertyValue("font-family").match(ye),qi=pi.getPropertyValue("font-weight"),$i=pi.getPropertyValue("content");if(ei&&!Li)return nt.removeChild(ei),Rt();if(Li&&"none"!==$i&&""!==$i){var on=pi.getPropertyValue("content"),bn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Li[2])?lt[Li[2].toLowerCase()]:W[qi],Qn=function Yn(nt){var Et=nt.replace(Si,""),At=function ze(nt,Et){var qt,At=nt.length,Rt=nt.charCodeAt(Et);return Rt>=55296&&Rt<=56319&&At>Et+1&&(qt=nt.charCodeAt(Et+1))>=56320&&qt<=57343?1024*(Rt-55296)+qt-56320+65536:Rt}(Et,0),Rt=At>=Qi[0]&&At<=Qi[1],qt=2===Et.length&&Et[0]===Et[1];return{value:Yi(qt?Et[0]:Et),isSecondary:Rt||qt}}(on),kn=Qn.value,aa=Qn.isSecondary,Aa=Li[0].startsWith("FontAwesome"),tr=Pt(bn,kn),br=tr;if(Aa){var hr=function Bi(nt){var Et=en[nt],At=Pt("fas",nt);return Et||(At?{prefix:"fas",iconName:At}:null)||{prefix:null,iconName:null}}(kn);hr.iconName&&hr.prefix&&(tr=hr.iconName,bn=hr.prefix)}if(!tr||aa||ei&&ei.getAttribute(Re)===bn&&ei.getAttribute(we)===br)Rt();else{nt.setAttribute(At,br),ei&&nt.removeChild(ei);var kr=function an(){return{iconName:null,title:null,titleId:null,prefix:null,transform:vt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),jr=kr.extra;jr.attributes[fe]=Et,Ea(tr,bn).then(function(Ya){var ls=Gr(f(f({},kr),{},{icons:{main:Ya,mask:{prefix:null,iconName:null,rest:[]}},prefix:bn,iconName:br,extra:jr,watchable:!0})),cs=c.createElement("svg");"::before"===Et?nt.insertBefore(cs,nt.firstChild):nt.appendChild(cs),cs.outerHTML=ls.map(function(Cs){return fi(Cs)}).join("\n"),nt.removeAttribute(At),Rt()}).catch(qt)}}else Rt()})}function Wa(nt){return Promise.all([Or(nt,"::before"),Or(nt,"::after")])}function xa(nt){return!(nt.parentNode===document.head||~ve.indexOf(nt.tagName.toUpperCase())||nt.getAttribute(fe)||nt.parentNode&&"svg"===nt.parentNode.tagName)}function os(nt){if(_)return new Promise(function(Et,At){var Rt=Oe(nt.querySelectorAll("*")).filter(xa).map(Wa),qt=Ir_begin("searchPseudoElements");Wn(),Promise.all(Rt).then(function(){qt(),Xe(),Et()}).catch(function(){qt(),Xe(),At()})})}var zn=!1,Cr=function(Et){return Et.toLowerCase().split(" ").reduce(function(Rt,qt){var _i=qt.toLowerCase().split("-"),ei=_i[0],pi=_i.slice(1).join("-");if(ei&&"h"===pi)return Rt.flipX=!0,Rt;if(ei&&"v"===pi)return Rt.flipY=!0,Rt;if(pi=parseFloat(pi),isNaN(pi))return Rt;switch(ei){case"grow":Rt.size=Rt.size+pi;break;case"shrink":Rt.size=Rt.size-pi;break;case"left":Rt.x=Rt.x-pi;break;case"right":Rt.x=Rt.x+pi;break;case"up":Rt.y=Rt.y-pi;break;case"down":Rt.y=Rt.y+pi;break;case"rotate":Rt.rotate=Rt.rotate+pi}return Rt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Xa={x:0,y:0,width:"100%",height:"100%"};function ha(nt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return nt.attributes&&(nt.attributes.fill||Et)&&(nt.attributes.fill="black"),nt}!function Jn(nt,Et){var At=Et.mixoutsTo;Ri=nt,cn={},Object.keys(pr).forEach(function(Rt){-1===Br.indexOf(Rt)&&delete pr[Rt]}),Ri.forEach(function(Rt){var qt=Rt.mixout?Rt.mixout():{};if(Object.keys(qt).forEach(function(ei){"function"==typeof qt[ei]&&(At[ei]=qt[ei]),"object"===M(qt[ei])&&Object.keys(qt[ei]).forEach(function(pi){At[ei]||(At[ei]={}),At[ei][pi]=qt[ei][pi]})}),Rt.hooks){var _i=Rt.hooks();Object.keys(_i).forEach(function(ei){cn[ei]||(cn[ei]=[]),cn[ei].push(_i[ei])})}Rt.provides&&Rt.provides(pr)})}([rt,Qe,We,He,bt,{hooks:function(){return{mutationObserverCallbacks:function(At){return At.pseudoElementsCallback=os,At}}},provides:function(Et){Et.pseudoElements2svg=function(At){var Rt=At.node;xt.searchPseudoElements&&os(void 0===Rt?c:Rt)}}},{mixout:function(){return{dom:{unwatch:function(){Wn(),zn=!0}}}},hooks:function(){return{bootstrap:function(){Ke(mr("mutationObserverCallbacks",{}))},noAuto:function(){!function Ot(){!St||St.disconnect()}()},watch:function(At){var Rt=At.observeMutationsRoot;zn?Xe():Ke(mr("mutationObserverCallbacks",{observeMutationsRoot:Rt}))}}}},{mixout:function(){return{parse:{transform:function(At){return Cr(At)}}}},hooks:function(){return{parseNodeAttributes:function(At,Rt){var qt=Rt.getAttribute("data-fa-transform");return qt&&(At.transform=Cr(qt)),At}}},provides:function(Et){Et.generateAbstractTransformGrouping=function(At){var Rt=At.main,qt=At.transform,ei=At.iconWidth,pi={transform:"translate(".concat(At.containerWidth/2," 256)")},Li="translate(".concat(32*qt.x,", ").concat(32*qt.y,") "),qi="scale(".concat(qt.size/16*(qt.flipX?-1:1),", ").concat(qt.size/16*(qt.flipY?-1:1),") "),$i="rotate(".concat(qt.rotate," 0 0)"),Qn={outer:pi,inner:{transform:"".concat(Li," ").concat(qi," ").concat($i)},path:{transform:"translate(".concat(ei/2*-1," -256)")}};return{tag:"g",attributes:f({},Qn.outer),children:[{tag:"g",attributes:f({},Qn.inner),children:[{tag:Rt.icon.tag,children:Rt.icon.children,attributes:f(f({},Rt.icon.attributes),Qn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(At,Rt){var qt=Rt.getAttribute("data-fa-mask"),_i=qt?Dn(qt.split(" ").map(function(ei){return ei.trim()})):{prefix:null,iconName:null,rest:[]};return _i.prefix||(_i.prefix=Fi()),At.mask=_i,At.maskId=Rt.getAttribute("data-fa-mask-id"),At}}},provides:function(Et){Et.generateAbstractMask=function(At){var nt,Rt=At.children,qt=At.attributes,_i=At.main,ei=At.mask,pi=At.maskId,$i=_i.icon,bn=ei.icon,Qn=function it(nt){var Et=nt.transform,Rt=nt.iconWidth,qt={transform:"translate(".concat(nt.containerWidth/2," 256)")},_i="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),ei="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),pi="rotate(".concat(Et.rotate," 0 0)");return{outer:qt,inner:{transform:"".concat(_i," ").concat(ei," ").concat(pi)},path:{transform:"translate(".concat(Rt/2*-1," -256)")}}}({transform:At.transform,containerWidth:ei.width,iconWidth:_i.width}),kn={tag:"rect",attributes:f(f({},Xa),{},{fill:"white"})},aa=$i.children?{children:$i.children.map(ha)}:{},Aa={tag:"g",attributes:f({},Qn.inner),children:[ha(f({tag:$i.tag,attributes:f(f({},$i.attributes),Qn.path)},aa))]},tr={tag:"g",attributes:f({},Qn.outer),children:[Aa]},br="mask-".concat(pi||Pe()),hr="clip-".concat(pi||Pe()),kr={tag:"mask",attributes:f(f({},Xa),{},{id:br,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[kn,tr]},jr={tag:"defs",children:[{tag:"clipPath",attributes:{id:hr},children:(nt=bn,"g"===nt.tag?nt.children:[nt])},kr]};return Rt.push(jr,{tag:"rect",attributes:f({fill:"currentColor","clip-path":"url(#".concat(hr,")"),mask:"url(#".concat(br,")")},Xa)}),{children:Rt,attributes:qt}}}},{provides:function(Et){var At=!1;u.matchMedia&&(At=u.matchMedia("(prefers-reduced-motion: reduce)").matches),Et.missingIconAbstract=function(){var Rt=[],qt={fill:"currentColor"},_i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Rt.push({tag:"path",attributes:f(f({},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 ei=f(f({},_i),{},{attributeName:"opacity"}),pi={tag:"circle",attributes:f(f({},qt),{},{cx:"256",cy:"364",r:"28"}),children:[]};return At||pi.children.push({tag:"animate",attributes:f(f({},_i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:f(f({},ei),{},{values:"1;0;1;1;0;1;"})}),Rt.push(pi),Rt.push({tag:"path",attributes:f(f({},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:At?[]:[{tag:"animate",attributes:f(f({},ei),{},{values:"1;0;0;0;0;1;"})}]}),At||Rt.push({tag:"path",attributes:f(f({},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:f(f({},ei),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Rt}}}},{hooks:function(){return{parseNodeAttributes:function(At,Rt){var qt=Rt.getAttribute("data-fa-symbol");return At.symbol=null!==qt&&(""===qt||qt),At}}}}],{mixoutsTo:nr});var re=nr.parse,wt=nr.icon,yi=p(2313);const Pi=["*"],Sn=nt=>{const Et={"fa-spin":nt.spin,"fa-pulse":nt.pulse,"fa-fw":nt.fixedWidth,"fa-border":nt.border,"fa-inverse":nt.inverse,"fa-layers-counter":nt.counter,"fa-flip-horizontal":"horizontal"===nt.flip||"both"===nt.flip,"fa-flip-vertical":"vertical"===nt.flip||"both"===nt.flip,[`fa-${nt.size}`]:null!==nt.size,[`fa-rotate-${nt.rotate}`]:null!==nt.rotate,[`fa-pull-${nt.pull}`]:null!==nt.pull,[`fa-stack-${nt.stackItemSize}`]:null!=nt.stackItemSize};return Object.keys(Et).map(At=>Et[At]?At:null).filter(At=>At)};let Tn=(()=>{class nt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275prov=t.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),qn=(()=>{class nt{constructor(){this.definitions={}}addIcons(...At){for(const Rt of At){Rt.prefix in this.definitions||(this.definitions[Rt.prefix]={}),this.definitions[Rt.prefix][Rt.iconName]=Rt;for(const qt of Rt.icon[2])"string"==typeof qt&&(this.definitions[Rt.prefix][qt]=Rt)}}addIconPacks(...At){for(const Rt of At){const qt=Object.keys(Rt).map(_i=>Rt[_i]);this.addIcons(...qt)}}getIconDefinition(At,Rt){return At in this.definitions&&Rt in this.definitions[At]?this.definitions[At][Rt]:null}}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275prov=t.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),xr=(()=>{class nt{constructor(){this.stackItemSize="1x"}ngOnChanges(At){if("size"in At)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 nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275dir=t.lG2({type:nt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),nt})(),cr=(()=>{class nt{constructor(At,Rt){this.renderer=At,this.elementRef=Rt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(At){"size"in At&&(null!=At.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${At.size.currentValue}`),null!=At.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${At.size.previousValue}`))}}return nt.\u0275fac=function(At){return new(At||nt)(t.Y36(t.Qsj),t.Y36(t.SBq))},nt.\u0275cmp=t.Xpm({type:nt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:Pi,decls:1,vars:0,template:function(At,Rt){1&At&&(t.F$t(),t.Hsn(0))},encapsulation:2}),nt})(),Xr=(()=>{class nt{constructor(At,Rt,qt,_i,ei){this.sanitizer=At,this.config=Rt,this.iconLibrary=qt,this.stackItem=_i,this.classes=[],null!=ei&&null==_i&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(At){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Rt=null;if(Rt=null==this.icon?this.config.fallbackIcon:this.icon,At){const qt=this.findIconDefinition(Rt);if(null!=qt){const _i=this.buildParams();this.renderIcon(qt,_i)}}}render(){this.ngOnChanges({})}findIconDefinition(At){const Rt=((nt,Et)=>(nt=>void 0!==nt.prefix&&void 0!==nt.iconName)(nt)?nt:Array.isArray(nt)&&2===nt.length?{prefix:nt[0],iconName:nt[1]}:"string"==typeof nt?{prefix:Et,iconName:nt}:void 0)(At,this.config.defaultPrefix);if("icon"in Rt)return Rt;const qt=this.iconLibrary.getIconDefinition(Rt.prefix,Rt.iconName);return null!=qt?qt:((nt=>{throw new Error(`Could not find icon with iconName=${nt.iconName} and prefix=${nt.prefix} in the icon library.`)})(Rt),null)}buildParams(){const At={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},Rt="string"==typeof this.transform?re.transform(this.transform):this.transform;return{title:this.title,transform:Rt,classes:[...Sn(At),...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(At,Rt){const qt=wt(At,Rt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(qt.html.join("\n"))}}return nt.\u0275fac=function(At){return new(At||nt)(t.Y36(yi.H7),t.Y36(Tn),t.Y36(qn),t.Y36(xr,8),t.Y36(cr,8))},nt.\u0275cmp=t.Xpm({type:nt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(At,Rt){2&At&&(t.Ikx("innerHTML",Rt.renderedIconHTML,t.oJD),t.uIk("title",Rt.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:[t.TTD],decls:0,vars:0,template:function(At,Rt){},encapsulation:2}),nt})(),za=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=t.oAB({type:nt}),nt.\u0275inj=t.cJS({}),nt})()},6642:(Fe,Y,p)=>{"use strict";p.d(Y,{eX:()=>fe,sQ:()=>Nt,GW:()=>i,l4:()=>xe});var t=p(5620),e=p(6451),f=p(8306),M=p(7579),a=p(515),b=p(9646),d=p(2843),N=p(576);class A{constructor(Oe,le,be){this.kind=Oe,this.value=le,this.error=be,this.hasValue="N"===Oe}observe(Oe){return D(this,Oe)}do(Oe,le,be){const{kind:ht,value:ft,error:Ht}=this;return"N"===ht?null==Oe?void 0:Oe(ft):"E"===ht?null==le?void 0:le(Ht):null==be?void 0:be()}accept(Oe,le,be){var ht;return(0,N.m)(null===(ht=Oe)||void 0===ht?void 0:ht.next)?this.observe(Oe):this.do(Oe,le,be)}toObservable(){const{kind:Oe,value:le,error:be}=this,ht="N"===Oe?(0,b.of)(le):"E"===Oe?(0,d._)(()=>be):"C"===Oe?a.E:0;if(!ht)throw new TypeError(`Unexpected notification kind ${Oe}`);return ht}static createNext(Oe){return new A("N",Oe)}static createError(Oe){return new A("E",void 0,Oe)}static createComplete(){return A.completeNotification}}function D(Pe,Oe){var le,be,ht;const{kind:ft,value:Ht,error:it}=Pe;if("string"!=typeof ft)throw new TypeError('Invalid notification, missing "kind"');"N"===ft?null===(le=Oe.next)||void 0===le||le.call(Oe,Ht):"E"===ft?null===(be=Oe.error)||void 0===be||be.call(Oe,it):null===(ht=Oe.complete)||void 0===ht||ht.call(Oe)}A.completeNotification=new A("C");var w=p(4482),S=p(5403),L=p(8421);function U(Pe,Oe,le,be){return(0,w.e)((ht,ft)=>{let Ht;Oe&&"function"!=typeof Oe?({duration:le,element:Ht,connector:be}=Oe):Ht=Oe;const it=new Map,Ne=at=>{it.forEach(at),at(ft)},tt=at=>Ne(yt=>yt.error(at));let Je=0,Se=!1;const Ue=new S.Q(ft,at=>{try{const yt=Pe(at);let gi=it.get(yt);if(!gi){it.set(yt,gi=be?be():new M.x);const Qt=function rt(at,yt){const gi=new f.y(Qt=>{Je++;const Jt=yt.subscribe(Qt);return()=>{Jt.unsubscribe(),0==--Je&&Se&&Ue.unsubscribe()}});return gi.key=at,gi}(yt,gi);if(ft.next(Qt),le){const Jt=(0,S.x)(gi,()=>{gi.complete(),null==Jt||Jt.unsubscribe()},void 0,void 0,()=>it.delete(yt));Ue.add((0,L.Xf)(le(Qt)).subscribe(Jt))}}gi.next(Ht?Ht(at):at)}catch(yt){tt(yt)}},()=>Ne(at=>at.complete()),tt,()=>it.clear(),()=>(Se=!0,0===Je));ht.subscribe(Ue)})}var Z=p(4004);function j(Pe,Oe){return Oe?le=>le.pipe(j((be,ht)=>(0,L.Xf)(Pe(be,ht)).pipe((0,Z.U)((ft,Ht)=>Oe(be,ft,ht,Ht))))):(0,w.e)((le,be)=>{let ht=0,ft=null,Ht=!1;le.subscribe((0,S.x)(be,it=>{ft||(ft=(0,S.x)(be,void 0,()=>{ft=null,Ht&&be.complete()}),(0,L.Xf)(Pe(it,ht++)).subscribe(ft))},()=>{Ht=!0,!ft&&be.complete()}))})}var X=p(8502),de=p(262),ee=p(9300),te=p(5577),ce=p(5698),J=p(5e3);const ge={dispatch:!0,useEffectsErrorHandler:!0},y="__@ngrx/effects_create__";function i(Pe,Oe){const le=Pe(),be=Object.assign(Object.assign({},ge),Oe);return Object.defineProperty(le,y,{value:be}),le}function r(Pe){return Object.getOwnPropertyNames(Pe).filter(be=>!(!Pe[be]||!Pe[be].hasOwnProperty(y))&&Pe[be][y].hasOwnProperty("dispatch")).map(be=>Object.assign({propertyName:be},Pe[be][y]))}function u(Pe){return Object.getPrototypeOf(Pe)}const c="__@ngrx/effects__";function E(Pe){return(0,t.qC)(n,u)(Pe)}function n(Pe){return function O(Pe){return Pe.constructor.hasOwnProperty(c)}(Pe)?Pe.constructor[c]:[]}function P(Pe,Oe,le){const be=u(Pe).constructor.name,ht=function B(Pe){return[E,r].reduce((le,be)=>le.concat(be(Pe)),[])}(Pe).map(({propertyName:ft,dispatch:Ht,useEffectsErrorHandler:it})=>{const Ne="function"==typeof Pe[ft]?Pe[ft]():Pe[ft],tt=it?le(Ne,Oe):Ne;return!1===Ht?tt.pipe((0,X.l)()):tt.pipe(function I(){return(0,w.e)((Pe,Oe)=>{Pe.subscribe((0,S.x)(Oe,le=>{Oe.next(A.createNext(le))},()=>{Oe.next(A.createComplete()),Oe.complete()},le=>{Oe.next(A.createError(le)),Oe.complete()}))})}()).pipe((0,Z.U)(Se=>({effect:Pe[ft],notification:Se,propertyName:ft,sourceName:be,sourceInstance:Pe})))});return(0,e.T)(...ht)}function se(Pe,Oe,le=10){return Pe.pipe((0,de.K)(be=>(Oe&&Oe.handleError(be),le<=1?Pe:se(Pe,Oe,le-1))))}let fe=(()=>{class Pe extends f.y{constructor(le){super(),le&&(this.source=le)}lift(le){const be=new Pe;return be.source=this,be.operator=le,be}}return Pe.\u0275fac=function(le){return new(le||Pe)(J.LFG(t.Y$))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function xe(...Pe){return(0,ee.h)(Oe=>Pe.some(le=>"string"==typeof le?le===Oe.type:le.type===Oe.type))}function De(Pe){return oe(Pe,"ngrxOnInitEffects")}function oe(Pe,Oe){return Pe&&Oe in Pe&&"function"==typeof Pe[Oe]}const Te=new J.OlP("@ngrx/effects Internal Root Guard"),ye=new J.OlP("@ngrx/effects User Provided Effects"),W=new J.OlP("@ngrx/effects Internal Root Effects"),$=new J.OlP("@ngrx/effects Root Effects"),ue=new J.OlP("@ngrx/effects Internal Feature Effects"),Ce=new J.OlP("@ngrx/effects Feature Effects"),Le=new J.OlP("@ngrx/effects Effects Error Handler");let ct=(()=>{class Pe extends M.x{constructor(le,be){super(),this.errorHandler=le,this.effectsErrorHandler=be}addEffects(le){this.next(le)}toActions(){return this.pipe(U(u),(0,te.z)(le=>le.pipe(U(ut))),(0,te.z)(le=>{const be=le.pipe(j(ft=>function Dt(Pe,Oe){return le=>{const be=P(le,Pe,Oe);return function lt(Pe){return oe(Pe,"ngrxOnRunEffects")}(le)?le.ngrxOnRunEffects(be):be}}(this.errorHandler,this.effectsErrorHandler)(ft)),(0,Z.U)(ft=>(function Re(Pe,Oe){if("N"===Pe.notification.kind){const le=Pe.notification.value;!function we(Pe){return"function"!=typeof Pe&&Pe&&Pe.type&&"string"==typeof Pe.type}(le)&&Oe.handleError(new Error(`Effect ${function Q({propertyName:Pe,sourceInstance:Oe,sourceName:le}){const be="function"==typeof Oe[Pe];return`"${le}.${String(Pe)}${be?"()":""}"`}(Pe)} dispatched an invalid action: ${function Ge(Pe){try{return JSON.stringify(Pe)}catch(Oe){return Pe}}(le)}`))}}(ft,this.errorHandler),ft.notification)),(0,ee.h)(ft=>"N"===ft.kind&&null!=ft.value),function ne(){return(0,w.e)((Pe,Oe)=>{Pe.subscribe((0,S.x)(Oe,le=>D(le,Oe)))})}()),ht=le.pipe((0,ce.q)(1),(0,ee.h)(De),(0,Z.U)(ft=>ft.ngrxOnInitEffects()));return(0,e.T)(be,ht)}))}}return Pe.\u0275fac=function(le){return new(le||Pe)(J.LFG(J.qLn),J.LFG(Le))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function ut(Pe){return function F(Pe){return oe(Pe,"ngrxOnIdentifyEffects")}(Pe)?Pe.ngrxOnIdentifyEffects():""}let di=(()=>{class Pe{constructor(le,be){this.effectSources=le,this.store=be,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(le){return new(le||Pe)(J.LFG(ct),J.LFG(t.yh))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const Yt="@ngrx/effects/init";(0,t.PH)(Yt);let ui=(()=>{class Pe{constructor(le,be,ht,ft,Ht,it,Ne){this.sources=le,be.start(),ft.forEach(tt=>le.addEffects(tt)),ht.dispatch({type:Yt})}addEffects(le){this.sources.addEffects(le)}}return Pe.\u0275fac=function(le){return new(le||Pe)(J.LFG(ct),J.LFG(di),J.LFG(t.yh),J.LFG($),J.LFG(t.cr,8),J.LFG(t.CK,8),J.LFG(Te,8))},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})(),xt=(()=>{class Pe{constructor(le,be,ht,ft){be.forEach(Ht=>Ht.forEach(it=>le.addEffects(it)))}}return Pe.\u0275fac=function(le){return new(le||Pe)(J.LFG(ui),J.LFG(Ce),J.LFG(t.cr,8),J.LFG(t.CK,8))},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})(),Nt=(()=>{class Pe{static forFeature(le=[]){return{ngModule:xt,providers:[le,{provide:ue,multi:!0,useValue:le},{provide:ye,multi:!0,useValue:[]},{provide:Ce,multi:!0,useFactory:gt,deps:[J.zs3,ue,ye]}]}}static forRoot(le=[]){return{ngModule:ui,providers:[{provide:Le,useValue:se},di,ct,fe,le,{provide:W,useValue:[le]},{provide:Te,useFactory:vt,deps:[[di,new J.FiY,new J.tp0],[W,new J.PiD]]},{provide:ye,multi:!0,useValue:[]},{provide:$,useFactory:gt,deps:[J.zs3,W,ye]}]}}}return Pe.\u0275fac=function(le){return new(le||Pe)},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})();function gt(Pe,Oe,le){const be=[];for(const ht of Oe)be.push(...ht);for(const ht of le)be.push(...ht);return function et(Pe,Oe){return Oe.map(le=>Pe.get(le))}(Pe,be)}function vt(Pe,Oe){if((1!==Oe.length||0!==Oe[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(Fe){const Y={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 Fe?Fe():Fe,f=Object.assign({},Y,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||Y.features},p);if(f.maxAge&&f.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${f.maxAge}`);return f}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(Y,p){if(this.action=Y,this.timestamp=p,this.type=PERFORM_ACTION,void 0===Y.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(Y){this.timestamp=Y,this.type=RESET}}class Rollback{constructor(Y){this.timestamp=Y,this.type=ROLLBACK}}class Commit{constructor(Y){this.timestamp=Y,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(Y){this.id=Y,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(Y,p,t=!0){this.start=Y,this.end=p,this.active=t,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(Y){this.index=Y,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(Y){this.actionId=Y,this.type=JUMP_TO_ACTION}}class ImportState{constructor(Y){this.nextLiftedState=Y,this.type=IMPORT_STATE}}class LockChanges{constructor(Y){this.status=Y,this.type=LOCK_CHANGES}}class PauseRecording{constructor(Y){this.status=Y,this.type=PAUSE_RECORDING}}function difference(Fe,Y){return Fe.filter(p=>Y.indexOf(p)<0)}function unliftState(Fe){const{computedStates:Y,currentStateIndex:p}=Fe;if(p>=Y.length){const{state:e}=Y[Y.length-1];return e}const{state:t}=Y[p];return t}function unliftAction(Fe){return Fe.actionsById[Fe.nextActionId-1]}function liftAction(Fe){return new PerformAction(Fe,+Date.now())}function sanitizeActions(Fe,Y){return Object.keys(Y).reduce((p,t)=>{const e=Number(t);return p[e]=sanitizeAction(Fe,Y[e],e),p},{})}function sanitizeAction(Fe,Y,p){return Object.assign(Object.assign({},Y),{action:Fe(Y.action,p)})}function sanitizeStates(Fe,Y){return Y.map((p,t)=>({state:sanitizeState(Fe,p.state,t),error:p.error}))}function sanitizeState(Fe,Y,p){return Fe(Y,p)}function shouldFilterActions(Fe){return Fe.predicate||Fe.actionsSafelist||Fe.actionsBlocklist}function filterLiftedState(Fe,Y,p,t){const e=[],f={},M=[];return Fe.stagedActionIds.forEach((a,b)=>{const d=Fe.actionsById[a];!d||b&&isActionFiltered(Fe.computedStates[b],d,Y,p,t)||(f[a]=d,e.push(a),M.push(Fe.computedStates[b]))}),Object.assign(Object.assign({},Fe),{stagedActionIds:e,actionsById:f,computedStates:M})}function isActionFiltered(Fe,Y,p,t,e){const f=p&&!p(Fe,Y.action),M=t&&!Y.action.type.match(t.map(b=>escapeRegExp(b)).join("|")),a=e&&Y.action.type.match(e.map(b=>escapeRegExp(b)).join("|"));return f||M||a}function escapeRegExp(Fe){return Fe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Fe,Y,p,t,e){if(t)return{state:p,error:"Interrupted by an error up the chain"};let M,f=p;try{f=Fe(p,Y)}catch(a){M=a.toString(),e.handleError(a)}return{state:f,error:M}}function recomputeStates(Fe,Y,p,t,e,f,M,a,b){if(Y>=Fe.length&&Fe.length===f.length)return Fe;const d=Fe.slice(0,Y),N=f.length-(b?1:0);for(let h=Y;h-1?w:computeNextEntry(p,D,S,I,a);d.push(U)}return b&&d.push(Fe[Fe.length-1]),d}function liftInitialState(Fe,Y){return{monitorState:Y(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Fe,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Fe,Y,p,t,e={}){return f=>(M,a)=>{let{monitorState:b,actionsById:d,nextActionId:N,stagedActionIds:h,skippedActionIds:A,committedState:D,currentStateIndex:w,computedStates:S,isLocked:I,isPaused:L}=M||Y;function U(ne){let X=ne,de=h.slice(1,X+1);for(let ee=0;ee-1===de.indexOf(ee)),h=[0,...h.slice(X+1)],D=S[X].state,S=S.slice(X),w=w>X?w-X:0}function Z(){d={0:liftAction(INIT_ACTION)},N=1,h=[0],A=[],D=S[w].state,w=0,S=[]}M||(d=Object.create(d));let j=0;switch(a.type){case LOCK_CHANGES:I=a.status,j=1/0;break;case PAUSE_RECORDING:L=a.status,L?(h=[...h,N],d[N]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),N++,j=h.length-1,S=S.concat(S[S.length-1]),w===h.length-2&&w++,j=1/0):Z();break;case RESET:d={0:liftAction(INIT_ACTION)},N=1,h=[0],A=[],D=Fe,w=0,S=[];break;case COMMIT:Z();break;case ROLLBACK:d={0:liftAction(INIT_ACTION)},N=1,h=[0],A=[],w=0,S=[];break;case TOGGLE_ACTION:{const{id:ne}=a;A=-1===A.indexOf(ne)?[ne,...A]:A.filter(de=>de!==ne),j=h.indexOf(ne);break}case SET_ACTIONS_ACTIVE:{const{start:ne,end:X,active:de}=a,ee=[];for(let te=ne;tee.maxAge&&(S=recomputeStates(S,j,f,D,d,h,A,p,L),U(h.length-e.maxAge),j=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(S.filter(X=>X.error).length>0)j=0,e.maxAge&&h.length>e.maxAge&&(S=recomputeStates(S,j,f,D,d,h,A,p,L),U(h.length-e.maxAge),j=1/0);else{if(!L&&!I){w===h.length-1&&w++;const X=N++;d[X]=new PerformAction(a,+Date.now()),h=[...h,X],j=h.length-1,S=recomputeStates(S,j,f,D,d,h,A,p,L)}S=S.map(X=>Object.assign(Object.assign({},X),{state:f(X.state,RECOMPUTE_ACTION)})),w=h.length-1,e.maxAge&&h.length>e.maxAge&&U(h.length-e.maxAge),j=1/0}break;default:j=1/0}return S=recomputeStates(S,j,f,D,d,h,A,p,L),b=t(b,a),{monitorState:b,actionsById:d,nextActionId:N,stagedActionIds:h,skippedActionIds:A,committedState:D,currentStateIndex:w,computedStates:S,isLocked:I,isPaused:L}}}let DevtoolsDispatcher=(()=>{class Fe extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Fe.\u0275fac=function(){let Y;return function(t){return(Y||(Y=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Fe)))(t||Fe)}}(),Fe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Fe,factory:Fe.\u0275fac}),Fe})();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(Fe,Y,p){this.config=Y,this.dispatcher=p,this.devtoolsExtension=Fe,this.createActionStreams()}notify(Fe,Y){if(this.devtoolsExtension)if(Fe.type===PERFORM_ACTION){if(Y.isLocked||Y.isPaused)return;const p=unliftState(Y);if(shouldFilterActions(this.config)&&isActionFiltered(p,Fe,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,Y.currentStateIndex):p,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Fe,Y.nextActionId):Fe;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const p=Object.assign(Object.assign({},Y),{stagedActionIds:Y.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,Y.actionsById):Y.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,Y.computedStates):Y.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Fe=>{const Y=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=Y,Y.init(),Y.subscribe(p=>Fe.next(p)),Y.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Fe=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),Y=Fe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.START)),p=Fe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.STOP)),t=Fe.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)(b=>b.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))),f=Fe.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)),M=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>f)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>M))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Fe){var Y;const p={name:Fe.name,features:Fe.features,serialize:Fe.serialize,autoPause:null!==(Y=Fe.autoPause)&&void 0!==Y&&Y};return!1!==Fe.maxAge&&(p.maxAge=Fe.maxAge),p}sendToReduxDevtools(Fe){try{Fe()}catch(Y){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",Y)}}}return DevtoolsExtension.\u0275fac=function Fe(Y){return new(Y||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 Fe{constructor(p,t,e,f,M,a,b,d){const N=liftInitialState(b,d.monitor),h=liftReducerWith(b,N,a,d.monitor,d),A=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),f.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,f.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),D=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(h)),w=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),S=A.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(D),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:Z},[j,ne])=>{let X=ne(Z,j);return j.type!==PERFORM_ACTION&&shouldFilterActions(d)&&(X=filterLiftedState(X,d.predicate,d.actionsSafelist,d.actionsBlocklist)),f.notify(j,X),{state:X,action:j}},{state:N,action:null})).subscribe(({state:Z,action:j})=>{w.next(Z),j.type===PERFORM_ACTION&&M.next(j.action)}),I=f.start$.subscribe(()=>{this.refresh()}),L=w.asObservable(),U=L.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=I,this.stateSubscription=S,this.dispatcher=p,this.liftedState=L,this.state=U}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 Fe.\u0275fac=function(p){return new(p||Fe)(_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))},Fe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Fe,factory:Fe.\u0275fac}),Fe})();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(Fe,Y){return Boolean(Fe)||Y.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Fe="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Fe]?window[Fe]:null}function createStateObservable(Fe){return Fe.state}let StoreDevtoolsModule=(()=>{class Fe{static instrument(p={}){return{ngModule:Fe,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 Fe.\u0275fac=function(p){return new(p||Fe)},Fe.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Fe}),Fe.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Fe})()},5620:(Fe,Y,p)=>{"use strict";p.d(Y,{UO:()=>ce,qg:()=>te,Y6:()=>i,mK:()=>De,n$:()=>Ie,Y$:()=>W,FR:()=>ue,yh:()=>ut,CK:()=>Mt,Aw:()=>Vt,cr:()=>qe,wb:()=>oe,qC:()=>F,PH:()=>I,ZF:()=>rt,Lq:()=>si,P1:()=>Je,on:()=>zt,Ky:()=>L});var t=p(5e3),e=p(1135),f=p(8306),M=p(7579),a=p(233),b=p(4004),N=p(5363),h=p(1365),A=p(5026),D=p(1884);const w={};function I(Pt,mi){if(w[Pt]=(w[Pt]||0)+1,"function"==typeof mi)return Z(Pt,(...vi)=>Object.assign(Object.assign({},mi(...vi)),{type:Pt}));switch(mi?mi._as:"empty"){case"empty":return Z(Pt,()=>({type:Pt}));case"props":return Z(Pt,vi=>Object.assign(Object.assign({},vi),{type:Pt}));default:throw new Error("Unexpected config.")}}function L(){return{_as:"props",_p:void 0}}function Z(Pt,mi){return Object.defineProperty(mi,"type",{value:Pt,writable:!1})}const te="@ngrx/store/init";let ce=(()=>{class Pt extends e.X{constructor(){super({type:te})}next(ti){if("function"==typeof ti)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===ti)throw new TypeError("Actions must be objects");if(void 0===ti.type)throw new TypeError("Actions must have a type property");super.next(ti)}complete(){}ngOnDestroy(){super.complete()}}return Pt.\u0275fac=function(ti){return new(ti||Pt)},Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const J=[ce],ge=new t.OlP("@ngrx/store Internal Root Guard"),y=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),r=new t.OlP("@ngrx/store Reducer Factory"),u=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),c=new t.OlP("@ngrx/store Initial Reducers"),C=new t.OlP("@ngrx/store Internal Initial Reducers"),E=new t.OlP("@ngrx/store Store Features"),O=new t.OlP("@ngrx/store Internal Store Reducers"),_=new t.OlP("@ngrx/store Internal Feature Reducers"),n=new t.OlP("@ngrx/store Internal Feature Configs"),v=new t.OlP("@ngrx/store Internal Store Features"),B=new t.OlP("@ngrx/store Internal Feature Reducers Token"),P=new t.OlP("@ngrx/store Feature Reducers"),z=new t.OlP("@ngrx/store User Provided Meta Reducers"),se=new t.OlP("@ngrx/store Meta Reducers"),fe=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),xe=new t.OlP("@ngrx/store User Runtime Checks Config"),Re=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),we=new t.OlP("@ngrx/store Internal Runtime Checks"),Q=new t.OlP("@ngrx/store Check if Action types are unique");function Ge(Pt,mi={}){const ti=Object.keys(Pt),vi={};for(let Fi=0;FiFi(Bi),ti(mi))}}function Ae(Pt,mi){return Array.isArray(mi)&&mi.length>0&&(Pt=F.apply(null,[...mi,Pt])),(ti,vi)=>{const Bi=Pt(ti);return(Fi,pn)=>Bi(Fi=void 0===Fi?vi:Fi,pn)}}class Ie extends f.y{}class De extends ce{}const oe="@ngrx/store/update-reducers";let Te=(()=>{class Pt extends e.X{constructor(ti,vi,Bi,Fi){super(Fi(Bi,vi)),this.dispatcher=ti,this.initialState=vi,this.reducers=Bi,this.reducerFactory=Fi}get currentReducers(){return this.reducers}addFeature(ti){this.addFeatures([ti])}addFeatures(ti){const vi=ti.reduce((Bi,{reducers:Fi,reducerFactory:pn,metaReducers:Fn,initialState:Dn,key:Ai})=>{const Ri="function"==typeof Fi?function lt(Pt){const mi=Array.isArray(Pt)&&Pt.length>0?F(...Pt):ti=>ti;return(ti,vi)=>(ti=mi(ti),(Bi,Fi)=>ti(Bi=void 0===Bi?vi:Bi,Fi))}(Fn)(Fi,Dn):Ae(pn,Fn)(Fi,Dn);return Bi[Ai]=Ri,Bi},{});this.addReducers(vi)}removeFeature(ti){this.removeFeatures([ti])}removeFeatures(ti){this.removeReducers(ti.map(vi=>vi.key))}addReducer(ti,vi){this.addReducers({[ti]:vi})}addReducers(ti){this.reducers=Object.assign(Object.assign({},this.reducers),ti),this.updateReducers(Object.keys(ti))}removeReducer(ti){this.removeReducers([ti])}removeReducers(ti){ti.forEach(vi=>{this.reducers=function ve(Pt,mi){return Object.keys(Pt).filter(ti=>ti!==mi).reduce((ti,vi)=>Object.assign(ti,{[vi]:Pt[vi]}),{})}(this.reducers,vi)}),this.updateReducers(ti)}updateReducers(ti){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:oe,features:ti})}ngOnDestroy(){this.complete()}}return Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(De),t.LFG(i),t.LFG(c),t.LFG(r))},Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const ye=[Te,{provide:Ie,useExisting:Te},{provide:De,useExisting:ce}];let W=(()=>{class Pt extends M.x{ngOnDestroy(){this.complete()}}return Pt.\u0275fac=function(){let mi;return function(vi){return(mi||(mi=t.n5z(Pt)))(vi||Pt)}}(),Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const $=[W];class ue extends f.y{}let Ce=(()=>{class Pt extends e.X{constructor(ti,vi,Bi,Fi){super(Fi);const Ai=ti.pipe((0,N.Q)(a.N)).pipe((0,h.M)(vi)).pipe((0,A.R)(Le,{state:Fi}));this.stateSubscription=Ai.subscribe(({state:Ri,action:cn})=>{this.next(Ri),Bi.next(cn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return Pt.INIT=te,Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(ce),t.LFG(Ie),t.LFG(W),t.LFG(i))},Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();function Le(Pt={state:void 0},[mi,ti]){const{state:vi}=Pt;return{state:ti(vi,mi),action:mi}}const ct=[Ce,{provide:ue,useExisting:Ce}];let ut=(()=>{class Pt extends f.y{constructor(ti,vi,Bi){super(),this.actionsObserver=vi,this.reducerManager=Bi,this.source=ti}select(ti,...vi){return di.call(null,ti,...vi)(this)}lift(ti){const vi=new Pt(this,this.actionsObserver,this.reducerManager);return vi.operator=ti,vi}dispatch(ti){this.actionsObserver.next(ti)}next(ti){this.actionsObserver.next(ti)}error(ti){this.actionsObserver.error(ti)}complete(){this.actionsObserver.complete()}addReducer(ti,vi){this.reducerManager.addReducer(ti,vi)}removeReducer(ti){this.reducerManager.removeReducer(ti)}}return Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(ue),t.LFG(ce),t.LFG(Te))},Pt.\u0275prov=t.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const Dt=[ut];function di(Pt,mi,...ti){return function(Bi){let Fi;if("string"==typeof Pt){const pn=[mi,...ti].filter(Boolean);Fi=Bi.pipe(function d(...Pt){const mi=Pt.length;if(0===mi)throw new Error("list of properties cannot be empty.");return(0,b.U)(ti=>{let vi=ti;for(let Bi=0;BiPt(pn,mi)))}return Fi.pipe((0,D.x)())}}const Yt="https://ngrx.io/guide/store/configuration/runtime-checks";function Gt(Pt){return void 0===Pt}function ui(Pt){return null===Pt}function xt(Pt){return Array.isArray(Pt)}function vt(Pt){return"object"==typeof Pt&&null!==Pt}function Pe(Pt){return"function"==typeof Pt}function Ht(Pt,mi){return Pt===mi}function it(Pt,mi,ti){for(let vi=0;viRi.release&&"function"==typeof Ri.release),Fn=Pt(function(...Ri){return Fi.apply(null,Ri)}),Dn=tt(function(Ri,cn){return mi.stateFn.apply(null,[Ri,Bi,cn,Fn])});return Object.assign(Dn.memoized,{release:function Ai(){Dn.reset(),Fn.reset(),pn.forEach(Ri=>Ri.release())},projector:Fn.memoized,setResult:Dn.setResult,clearResult:Dn.clearResult})}}(tt)(...Pt)}function Se(Pt,mi,ti,vi){if(void 0===ti){const Fi=mi.map(pn=>pn(Pt));return vi.memoized.apply(null,Fi)}const Bi=mi.map(Fi=>Fi(Pt,ti));return vi.memoized.apply(null,[...Bi,ti])}function rt(Pt){return Je(mi=>{const ti=mi[Pt];return(0,t.X6Q)()&&!(Pt in mi)&&console.warn(`@ngrx/store: The feature name "${Pt}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${Pt}', ...) or StoreModule.forFeature('${Pt}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),ti},mi=>mi)}function Jt(Pt){Object.freeze(Pt);const mi=Pe(Pt);return Object.getOwnPropertyNames(Pt).forEach(ti=>{if(!ti.startsWith("\u0275")&&function le(Pt,mi){return Object.prototype.hasOwnProperty.call(Pt,mi)}(Pt,ti)&&(!mi||"caller"!==ti&&"callee"!==ti&&"arguments"!==ti)){const vi=Pt[ti];(vt(vi)||Pe(vi))&&!Object.isFrozen(vi)&&Jt(vi)}}),Pt}function fi(Pt,mi=[]){return(Gt(Pt)||ui(Pt))&&0===mi.length?{path:["root"],value:Pt}:Object.keys(Pt).reduce((vi,Bi)=>{if(vi)return vi;const Fi=Pt[Bi];return function Oe(Pt){return Pe(Pt)&&Pt.hasOwnProperty("\u0275cmp")}(Fi)?vi:!(Gt(Fi)||ui(Fi)||function et(Pt){return"number"==typeof Pt}(Fi)||function gt(Pt){return"boolean"==typeof Pt}(Fi)||function Nt(Pt){return"string"==typeof Pt}(Fi)||xt(Fi))&&(function jt(Pt){if(!function $t(Pt){return vt(Pt)&&!xt(Pt)}(Pt))return!1;const mi=Object.getPrototypeOf(Pt);return mi===Object.prototype||null===mi}(Fi)?fi(Fi,[...mi,Bi]):{path:[...mi,Bi],value:Fi})},!1)}function ai(Pt,mi){if(!1===Pt)return;const ti=Pt.path.join("."),vi=new Error(`Detected unserializable ${mi} at "${ti}". ${Yt}#strict${mi}serializability`);throw vi.value=Pt.value,vi.unserializablePath=ti,vi}function Wi(Pt){return(0,t.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},Pt):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Gi({strictActionSerializability:Pt,strictStateSerializability:mi}){return ti=>Pt||mi?function Xi(Pt,mi){return function(ti,vi){mi.action(vi)&&ai(fi(vi),"action");const Bi=Pt(ti,vi);return mi.state()&&ai(fi(Bi),"state"),Bi}}(ti,{action:vi=>Pt&&!ze(vi),state:()=>mi}):ti}function Yi({strictActionImmutability:Pt,strictStateImmutability:mi}){return ti=>Pt||mi?function Qt(Pt,mi){return function(ti,vi){const Bi=mi.action(vi)?Jt(vi):vi,Fi=Pt(ti,Bi);return mi.state()?Jt(Fi):Fi}}(ti,{action:vi=>Pt&&!ze(vi),state:()=>mi}):ti}function ze(Pt){return Pt.type.startsWith("@ngrx")}function Lt({strictActionWithinNgZone:Pt}){return mi=>Pt?function tn(Pt,mi){return function(ti,vi){if(mi.action(vi)&&!t.R0b.isInAngularZone())throw new Error(`Action '${vi.type}' running outside NgZone. ${Yt}#strictactionwithinngzone`);return Pt(ti,vi)}}(mi,{action:ti=>Pt&&!ze(ti)}):mi}function pe(Pt){return[{provide:Re,useValue:Pt},{provide:xe,useFactory:Ct,deps:[Re]},{provide:we,deps:[xe],useFactory:Wi},{provide:se,multi:!0,deps:[we],useFactory:Yi},{provide:se,multi:!0,deps:[we],useFactory:Gi},{provide:se,multi:!0,deps:[we],useFactory:Lt}]}function je(){return[{provide:Q,multi:!0,deps:[we],useFactory:ie}]}function Ct(Pt){return Pt}function ie(Pt){if(!Pt.strictActionTypeUniqueness)return;const mi=Object.entries(w).filter(([,ti])=>ti>1).map(([ti])=>ti);if(mi.length)throw new Error(`Action types are registered more than once, ${mi.map(ti=>`"${ti}"`).join(", ")}. ${Yt}#strictactiontypeuniqueness`)}let qe=(()=>{class Pt{constructor(ti,vi,Bi,Fi,pn,Fn){}}return Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(ce),t.LFG(Ie),t.LFG(W),t.LFG(ut),t.LFG(ge,8),t.LFG(Q,8))},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({}),Pt})(),Mt=(()=>{class Pt{constructor(ti,vi,Bi,Fi,pn){this.features=ti,this.featureReducers=vi,this.reducerManager=Bi;const Fn=ti.map((Dn,Ai)=>{const cn=vi.shift()[Ai];return Object.assign(Object.assign({},Dn),{reducers:cn,initialState:ji(Dn.initialState)})});Bi.addFeatures(Fn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return Pt.\u0275fac=function(ti){return new(ti||Pt)(t.LFG(v),t.LFG(P),t.LFG(Te),t.LFG(qe),t.LFG(Q,8))},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({}),Pt})(),Vt=(()=>{class Pt{static forRoot(ti,vi={}){return{ngModule:qe,providers:[{provide:ge,useFactory:Oi,deps:[[ut,new t.FiY,new t.tp0]]},{provide:y,useValue:vi.initialState},{provide:i,useFactory:ji,deps:[y]},{provide:C,useValue:ti},{provide:O,useExisting:ti instanceof t.OlP?ti:C},{provide:c,deps:[t.zs3,C,[new t.tBr(O)]],useFactory:Mi},{provide:z,useValue:vi.metaReducers?vi.metaReducers:[]},{provide:fe,deps:[se,z],useFactory:Kt},{provide:u,useValue:vi.reducerFactory?vi.reducerFactory:Ge},{provide:r,deps:[u,fe],useFactory:Ae},J,ye,$,ct,Dt,pe(vi.runtimeChecks),je()]}}static forFeature(ti,vi,Bi={}){return{ngModule:Mt,providers:[{provide:n,multi:!0,useValue:ti instanceof Object?{}:Bi},{provide:E,multi:!0,useValue:{key:ti instanceof Object?ti.name:ti,reducerFactory:Bi instanceof t.OlP||!Bi.reducerFactory?Ge:Bi.reducerFactory,metaReducers:Bi instanceof t.OlP||!Bi.metaReducers?[]:Bi.metaReducers,initialState:Bi instanceof t.OlP||!Bi.initialState?void 0:Bi.initialState}},{provide:v,deps:[t.zs3,n,E],useFactory:Ei},{provide:_,multi:!0,useValue:ti instanceof Object?ti.reducer:vi},{provide:B,multi:!0,useExisting:vi instanceof t.OlP?vi:_},{provide:P,multi:!0,deps:[t.zs3,_,[new t.tBr(B)]],useFactory:en},je()]}}}return Pt.\u0275fac=function(ti){return new(ti||Pt)},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({}),Pt})();function Mi(Pt,mi){return mi instanceof t.OlP?Pt.get(mi):mi}function Ei(Pt,mi,ti){return ti.map((vi,Bi)=>{if(mi[Bi]instanceof t.OlP){const Fi=Pt.get(mi[Bi]);return{key:vi.key,reducerFactory:Fi.reducerFactory?Fi.reducerFactory:Ge,metaReducers:Fi.metaReducers?Fi.metaReducers:[],initialState:Fi.initialState}}return vi})}function en(Pt,mi){return mi.map(vi=>vi instanceof t.OlP?Pt.get(vi):vi)}function ji(Pt){return"function"==typeof Pt?Pt():Pt}function Kt(Pt,mi){return Pt.concat(mi)}function Oi(Pt){if(Pt)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function zt(...Pt){return{reducer:Pt.pop(),types:Pt.map(vi=>vi.type)}}function si(Pt,...mi){const ti=new Map;for(const vi of mi)for(const Bi of vi.types){const Fi=ti.get(Bi);ti.set(Bi,Fi?(Fn,Dn)=>vi.reducer(Fi(Fn,Dn),Dn):vi.reducer)}return function(vi=Pt,Bi){const Fi=ti.get(Bi.type);return Fi?Fi(vi,Bi):vi}}},1210:(Fe,Y,p)=>{"use strict";p.d(Y,{H5:()=>zc,K$:()=>Dd,a4:()=>jd});var t=p(5e3),e=p(9808),f=p(655),M=p(7429),a=p(4968),b=p(8372),d=p(1777);function N(){}function h(m){return null==m?N:function(){return this.querySelector(m)}}function D(m){return"object"==typeof m&&"length"in m?m:Array.from(m)}function w(){return[]}function S(m){return null==m?w:function(){return this.querySelectorAll(m)}}function U(m){return function(){return this.matches(m)}}function Z(m){return function(k){return k.matches(m)}}var j=Array.prototype.find;function X(){return this.firstElementChild}var ee=Array.prototype.filter;function te(){return this.children}function y(m){return new Array(m.length)}function r(m,k){this.ownerDocument=m.ownerDocument,this.namespaceURI=m.namespaceURI,this._next=null,this._parent=m,this.__data__=k}function u(m){return function(){return m}}function c(m,k,o,x,V,q){for(var st,ke=0,Ut=k.length,Bt=q.length;kek?1:m>=k?0:NaN}r.prototype={constructor:r,appendChild:function(m){return this._parent.insertBefore(m,this._next)},insertBefore:function(m,k){return this._parent.insertBefore(m,k)},querySelector:function(m){return this._parent.querySelector(m)},querySelectorAll:function(m){return this._parent.querySelectorAll(m)}};var Ge="http://www.w3.org/1999/xhtml";const ve={svg:"http://www.w3.org/2000/svg",xhtml:Ge,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function F(m){var k=m+="",o=k.indexOf(":");return o>=0&&"xmlns"!==(k=m.slice(0,o))&&(m=m.slice(o+1)),ve.hasOwnProperty(k)?{space:ve[k],local:m}:m}function Ae(m){return function(){this.removeAttribute(m)}}function lt(m){return function(){this.removeAttributeNS(m.space,m.local)}}function Ie(m,k){return function(){this.setAttribute(m,k)}}function De(m,k){return function(){this.setAttributeNS(m.space,m.local,k)}}function oe(m,k){return function(){var o=k.apply(this,arguments);null==o?this.removeAttribute(m):this.setAttribute(m,o)}}function Te(m,k){return function(){var o=k.apply(this,arguments);null==o?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,o)}}function W(m){return m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView}function $(m){return function(){this.style.removeProperty(m)}}function ue(m,k,o){return function(){this.style.setProperty(m,k,o)}}function Ce(m,k,o){return function(){var x=k.apply(this,arguments);null==x?this.style.removeProperty(m):this.style.setProperty(m,x,o)}}function ct(m,k){return m.style.getPropertyValue(k)||W(m).getComputedStyle(m,null).getPropertyValue(k)}function ut(m){return function(){delete this[m]}}function Dt(m,k){return function(){this[m]=k}}function di(m,k){return function(){var o=k.apply(this,arguments);null==o?delete this[m]:this[m]=o}}function Gt(m){return m.trim().split(/^|\s+/)}function ui(m){return m.classList||new xt(m)}function xt(m){this._node=m,this._names=Gt(m.getAttribute("class")||"")}function Nt(m,k){for(var o=ui(m),x=-1,V=k.length;++x=0&&(o=k.slice(x+1),k=k.slice(0,x)),{type:k,name:o}})}function ze(m){return function(){var k=this.__on;if(k){for(var q,o=0,x=-1,V=k.length;o=0&&(this._names.splice(k,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(m){return this._names.indexOf(m)>=0}};var Vt=[null];function Mi(m,k){this._groups=m,this._parents=k}function Ei(){return new Mi([[document.documentElement]],Vt)}Mi.prototype=Ei.prototype={constructor:Mi,select:function A(m){"function"!=typeof m&&(m=h(m));for(var k=this._groups,o=k.length,x=new Array(o),V=0;V=gn&&(gn=_n+1);!(In=Ii[gn])&&++gn=0;)(ke=x[V])&&(q&&4^ke.compareDocumentPosition(q)&&q.parentNode.insertBefore(ke,q),q=ke);return this},sort:function P(m){function k(bi,wi){return bi&&wi?m(bi.__data__,wi.__data__):!bi-!wi}m||(m=z);for(var o=this._groups,x=o.length,V=new Array(x),q=0;q1?this.each((null==k?$:"function"==typeof k?Ce:ue)(m,k,null==o?"":o)):ct(this.node(),m)},property:function Yt(m,k){return arguments.length>1?this.each((null==k?ut:"function"==typeof k?di:Dt)(m,k)):this.node()[m]},classed:function jt(m,k){var o=Gt(m+"");if(arguments.length<2){for(var x=ui(this.node()),V=-1,q=o.length;++V{}};function zt(){for(var x,m=0,k=arguments.length,o={};m=0&&(x=o.slice(V+1),o=o.slice(0,V)),o&&!k.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:x}})}function mi(m,k){for(var V,o=0,x=m.length;o0)for(var V,q,o=new Array(V),x=0;x>8&15|k>>4&240,k>>4&15|240&k,(15&k)<<4|15&k,1):8===o?lr(k>>24&255,k>>16&255,k>>8&255,(255&k)/255):4===o?lr(k>>12&15|k>>8&240,k>>8&15|k>>4&240,k>>4&15|240&k,((15&k)<<4|15&k)/255):null):(k=Nr.exec(m))?new Xn(k[1],k[2],k[3],1):(k=ca.exec(m))?new Xn(255*k[1]/100,255*k[2]/100,255*k[3]/100,1):(k=ga.exec(m))?lr(k[1],k[2],k[3],k[4]):(k=Ca.exec(m))?lr(255*k[1]/100,255*k[2]/100,255*k[3]/100,k[4]):(k=Na.exec(m))?Jr(k[1],k[2]/100,k[3]/100,1):(k=Ra.exec(m))?Jr(k[1],k[2]/100,k[3]/100,k[4]):nr.hasOwnProperty(m)?Gr(nr[m]):"transparent"===m?new Xn(NaN,NaN,NaN,0):null}function Gr(m){return new Xn(m>>16&255,m>>8&255,255&m,1)}function lr(m,k,o,x){return x<=0&&(m=k=o=NaN),new Xn(m,k,o,x)}function fn(m){return m instanceof Ri||(m=Ur(m)),m?new Xn((m=m.rgb()).r,m.g,m.b,m.opacity):new Xn}function qr(m,k,o,x){return 1===arguments.length?fn(m):new Xn(m,k,o,null==x?1:x)}function Xn(m,k,o,x){this.r=+m,this.g=+k,this.b=+o,this.opacity=+x}function Za(){return"#"+Ea(this.r)+Ea(this.g)+Ea(this.b)}function Zr(){var m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"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===m?")":", "+m+")")}function Ea(m){return((m=Math.max(0,Math.min(255,Math.round(m)||0)))<16?"0":"")+m.toString(16)}function Jr(m,k,o,x){return x<=0?m=k=o=NaN:o<=0||o>=1?m=k=NaN:k<=0&&(m=NaN),new Wr(m,k,o,x)}function Dr(m){if(m instanceof Wr)return new Wr(m.h,m.s,m.l,m.opacity);if(m instanceof Ri||(m=Ur(m)),!m)return new Wr;if(m instanceof Wr)return m;var k=(m=m.rgb()).r/255,o=m.g/255,x=m.b/255,V=Math.min(k,o,x),q=Math.max(k,o,x),ke=NaN,st=q-V,Ut=(q+V)/2;return st?(ke=k===q?(o-x)/st+6*(o0&&Ut<1?0:ke,new Wr(ke,st,Ut,m.opacity)}function Wr(m,k,o,x){this.h=+m,this.s=+k,this.l=+o,this.opacity=+x}function gr(m,k,o){return 255*(m<60?k+(o-k)*m/60:m<180?o:m<240?k+(o-k)*(240-m)/60:k)}function Ir(m,k,o,x,V){var q=m*m,ke=q*m;return((1-3*m+3*q-ke)*k+(4-6*q+3*ke)*o+(1+3*m+3*q-3*ke)*x+ke*V)/6}Dn(Ri,Ur,{copy:function(m){return Object.assign(new this.constructor,this,m)},displayable:function(){return this.rgb().displayable()},hex:Qr,formatHex:Qr,formatHsl:function da(){return Dr(this).formatHsl()},formatRgb:Ha,toString:Ha}),Dn(Xn,qr,Ai(Ri,{brighter:function(m){return m=null==m?pr:Math.pow(pr,m),new Xn(this.r*m,this.g*m,this.b*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new Xn(this.r*m,this.g*m,this.b*m,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:Za,formatHex:Za,formatRgb:Zr,toString:Zr})),Dn(Wr,function Rr(m,k,o,x){return 1===arguments.length?Dr(m):new Wr(m,k,o,null==x?1:x)},Ai(Ri,{brighter:function(m){return m=null==m?pr:Math.pow(pr,m),new Wr(this.h,this.s,this.l*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new Wr(this.h,this.s,this.l*m,this.opacity)},rgb:function(){var m=this.h%360+360*(this.h<0),k=isNaN(m)||isNaN(this.s)?0:this.s,o=this.l,x=o+(o<.5?o:1-o)*k,V=2*o-x;return new Xn(gr(m>=240?m-240:m+120,V,x),gr(m,V,x),gr(m<120?m+240:m-120,V,x),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 m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===m?")":", "+m+")")}}));const va=m=>()=>m;function ra(m,k){var o=k-m;return o?function $n(m,k){return function(o){return m+o*k}}(m,o):va(isNaN(m)?k:m)}const Hr=function m(k){var o=function Kn(m){return 1==(m=+m)?ra:function(k,o){return o-k?function Ta(m,k,o){return m=Math.pow(m,o),k=Math.pow(k,o)-m,o=1/o,function(x){return Math.pow(m+x*k,o)}}(k,o,m):va(isNaN(k)?o:k)}}(k);function x(V,q){var ke=o((V=qr(V)).r,(q=qr(q)).r),st=o(V.g,q.g),Ut=o(V.b,q.b),Bt=ra(V.opacity,q.opacity);return function(li){return V.r=ke(li),V.g=st(li),V.b=Ut(li),V.opacity=Bt(li),V+""}}return x.gamma=m,x}(1);function Sr(m){return function(k){var ke,st,o=k.length,x=new Array(o),V=new Array(o),q=new Array(o);for(ke=0;ke=1?(o=1,k-1):Math.floor(o*k),V=m[x],q=m[x+1];return Ir((o-x/k)*k,x>0?m[x-1]:2*V-q,V,q,xo&&(q=k.slice(o,q),st[ke]?st[ke]+=q:st[++ke]=q),(x=x[0])===(V=V[0])?st[ke]?st[ke]+=V:st[++ke]=V:(st[++ke]=null,Ut.push({i:ke,x:St(x,V)})),o=ri.lastIndex;return o=0&&m._call.call(null,k),m=m._next;--Zi}()}finally{Zi=0,function Xa(){for(var m,o,k=He,x=1/0;k;)k._call?(x>k._time&&(x=k._time),m=k,k=k._next):(o=k._next,k._next=null,k=m?m._next=o:He=o);bt=m,ha(x)}(),Qi=0}}function Gs(){var m=Or.now(),k=m-Si;k>1e3&&(Yn-=k,Si=m)}function ha(m){Zi||(Ln&&(Ln=clearTimeout(Ln)),m-Qi>24?(m<1/0&&(Ln=setTimeout(Cr,m-Or.now()-Yn)),Qe&&(Qe=clearInterval(Qe))):(Qe||(Si=Or.now(),Qe=setInterval(Gs,1e3)),Zi=1,Wa(Cr)))}function xs(m,k,o){var x=new zi;return x.restart(V=>{x.stop(),m(V+k)},k=null==k?0:+k,o),x}zi.prototype=zn.prototype={constructor:zi,restart:function(m,k,o){if("function"!=typeof m)throw new TypeError("callback is not a function");o=(null==o?xa():+o)+(null==k?0:+k),!this._next&&bt!==this&&(bt?bt._next=this:He=this,bt=this),this._call=m,this._time=o,ha()},stop:function(){this._call&&(this._call=null,this._time=1/0,ha())}};var bs=vi("start","end","cancel","interrupt"),Zs=[];function he(m,k,o,x,V,q){var ke=m.__transition;if(ke){if(o in ke)return}else m.__transition={};!function ii(m,k,o){var V,x=m.__transition;function ke(Bt){var li,bi,wi,Di;if(1!==o.state)return Ut();for(li in x)if((Di=x[li]).name===o.name){if(3===Di.state)return xs(ke);4===Di.state?(Di.state=6,Di.timer.stop(),Di.on.call("interrupt",m,m.__data__,Di.index,Di.group),delete x[li]):+li0)throw new Error("too late; already scheduled");return o}function wt(m,k){var o=Ft(m,k);if(o.state>3)throw new Error("too late; already running");return o}function Ft(m,k){var o=m.__transition;if(!o||!(o=o[k]))throw new Error("transition not found");return o}var Sn,Pi=180/Math.PI,nn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function un(m,k,o,x,V,q){var ke,st,Ut;return(ke=Math.sqrt(m*m+k*k))&&(m/=ke,k/=ke),(Ut=m*o+k*x)&&(o-=m*Ut,x-=k*Ut),(st=Math.sqrt(o*o+x*x))&&(o/=st,x/=st,Ut/=st),m*x180?li+=360:li-Bt>180&&(Bt+=360),wi.push({i:bi.push(V(bi)+"rotate(",null,x)-2,x:St(Bt,li)})):li&&bi.push(V(bi)+"rotate("+li+x)}(Bt.rotate,li.rotate,bi,wi),function st(Bt,li,bi,wi){Bt!==li?wi.push({i:bi.push(V(bi)+"skewX(",null,x)-2,x:St(Bt,li)}):li&&bi.push(V(bi)+"skewX("+li+x)}(Bt.skewX,li.skewX,bi,wi),function Ut(Bt,li,bi,wi,Di,rn){if(Bt!==bi||li!==wi){var vn=Di.push(V(Di)+"scale(",null,",",null,")");rn.push({i:vn-4,x:St(Bt,bi)},{i:vn-2,x:St(li,wi)})}else(1!==bi||1!==wi)&&Di.push(V(Di)+"scale("+bi+","+wi+")")}(Bt.scaleX,Bt.scaleY,li.scaleX,li.scaleY,bi,wi),Bt=li=null,function(Di){for(var Ii,rn=-1,vn=wi.length;++rn=0&&(k=k.slice(0,o)),!k||"start"===k})}(k)?Ye:wt;return function(){var ke=q(this,m),st=ke.on;st!==x&&(V=(x=st).copy()).on(k,o),ke.on=V}}var Ys=ji.prototype.constructor;function Me(m){return function(){this.style.removeProperty(m)}}function Xt(m,k,o){return function(x){this.style.setProperty(m,k.call(this,x),o)}}function oi(m,k,o){var x,V;function q(){var ke=k.apply(this,arguments);return ke!==V&&(x=(V=ke)&&Xt(m,ke,o)),x}return q._value=k,q}function rr(m){return function(k){this.textContent=m.call(this,k)}}function Hn(m){var k,o;function x(){var V=m.apply(this,arguments);return V!==o&&(k=(o=V)&&rr(V)),k}return x._value=m,x}var n1=0;function ba(m,k,o,x){this._groups=m,this._parents=k,this._name=o,this._id=x}function A2(){return++n1}var js=ji.prototype;ba.prototype=function io(m){return ji().transition(m)}.prototype={constructor:ba,select:function Ws(m){var k=this._name,o=this._id;"function"!=typeof m&&(m=h(m));for(var x=this._groups,V=x.length,q=new Array(V),ke=0;ke2&&x.state<5,x.state=6,x.timer.stop(),x.on.call(V?"interrupt":"cancel",m,m.__data__,x.index,x.group),delete o[ke]):q=!1;q&&delete m.__transition}}(this,m)})},ji.prototype.transition=function $r(m){var k,o;m instanceof ba?(k=m._id,m=m._name):(k=A2(),(o=E1).time=xa(),m=null==m?null:m+"");for(var x=this._groups,V=x.length,q=0;qk?1:m>=k?0:NaN}function so(m){let k=m,o=m;function x(ke,st,Ut,Bt){for(null==Ut&&(Ut=0),null==Bt&&(Bt=ke.length);Ut>>1;o(ke[li],st)<0?Ut=li+1:Bt=li}return Ut}return 1===m.length&&(k=(ke,st)=>m(ke)-st,o=function K4(m){return(k,o)=>Ka(m(k),o)}(m)),{left:x,center:function q(ke,st,Ut,Bt){null==Ut&&(Ut=0),null==Bt&&(Bt=ke.length);const li=x(ke,st,Ut,Bt-1);return li>Ut&&k(ke[li-1],st)>-k(ke[li],st)?li-1:li},right:function V(ke,st,Ut,Bt){for(null==Ut&&(Ut=0),null==Bt&&(Bt=ke.length);Ut>>1;o(ke[li],st)>0?Bt=li:Ut=li+1}return Ut}}}["w","e"].map(ja),["n","s"].map(ja),["n","w","e","s","nw","ne","sw","se"].map(ja);var Ls=Math.sqrt(50),P1=Math.sqrt(10),N1=Math.sqrt(2);function P2(m,k,o){var x=(k-m)/Math.max(0,o),V=Math.floor(Math.log(x)/Math.LN10),q=x/Math.pow(10,V);return V>=0?(q>=Ls?10:q>=P1?5:q>=N1?2:1)*Math.pow(10,V):-Math.pow(10,-V)/(q>=Ls?10:q>=P1?5:q>=N1?2:1)}function R1(m,k,o){var x=Math.abs(k-m)/Math.max(0,o),V=Math.pow(10,Math.floor(Math.log(x)/Math.LN10)),q=x/V;return q>=Ls?V*=10:q>=P1?V*=5:q>=N1&&(V*=2),k0))return Ut;do{Ut.push(Bt=new Date(+q)),k(q,st),m(q)}while(Bt=ke)for(;m(ke),!q(ke);)ke.setTime(ke-1)},function(ke,st){if(ke>=ke)if(st<0)for(;++st<=0;)for(;k(ke,-1),!q(ke););else for(;--st>=0;)for(;k(ke,1),!q(ke););})},o&&(V.count=function(q,ke){return H1.setTime(+q),F1.setTime(+ke),m(H1),m(F1),Math.floor(o(H1,F1))},V.every=function(q){return q=Math.floor(q),isFinite(q)&&q>0?q>1?V.filter(x?function(ke){return x(ke)%q==0}:function(ke){return V.count(0,ke)%q==0}):V:null}),V}var Go=pa(function(){},function(m,k){m.setTime(+m+k)},function(m,k){return k-m});Go.every=function(m){return m=Math.floor(m),isFinite(m)&&m>0?m>1?pa(function(k){k.setTime(Math.floor(k/m)*m)},function(k,o){k.setTime(+k+o*m)},function(k,o){return(o-k)/m}):Go:null};const $l=Go;const Zo=pa(function(m){m.setTime(m-m.getMilliseconds())},function(m,k){m.setTime(+m+k*Ss)},function(m,k){return(k-m)/Ss},function(m){return m.getUTCSeconds()});const o1=pa(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Ss)},function(m,k){m.setTime(+m+k*Qa)},function(m,k){return(k-m)/Qa},function(m){return m.getMinutes()});const R2=pa(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Ss-m.getMinutes()*Qa)},function(m,k){m.setTime(+m+k*us)},function(m,k){return(k-m)/us},function(m){return m.getHours()});const co=pa(m=>m.setHours(0,0,0,0),(m,k)=>m.setDate(m.getDate()+k),(m,k)=>(k-m-(k.getTimezoneOffset()-m.getTimezoneOffset())*Qa)/Eo,m=>m.getDate()-1);function Ns(m){return pa(function(k){k.setDate(k.getDate()-(k.getDay()+7-m)%7),k.setHours(0,0,0,0)},function(k,o){k.setDate(k.getDate()+7*o)},function(k,o){return(o-k-(o.getTimezoneOffset()-k.getTimezoneOffset())*Qa)/Qs})}var Es=Ns(0),l1=Ns(1),Ts=(Ns(2),Ns(3),Ns(4));const B2=(Ns(5),Ns(6),pa(function(m){m.setDate(1),m.setHours(0,0,0,0)},function(m,k){m.setMonth(m.getMonth()+k)},function(m,k){return k.getMonth()-m.getMonth()+12*(k.getFullYear()-m.getFullYear())},function(m){return m.getMonth()}));var G1=pa(function(m){m.setMonth(0,1),m.setHours(0,0,0,0)},function(m,k){m.setFullYear(m.getFullYear()+k)},function(m,k){return k.getFullYear()-m.getFullYear()},function(m){return m.getFullYear()});G1.every=function(m){return isFinite(m=Math.floor(m))&&m>0?pa(function(k){k.setFullYear(Math.floor(k.getFullYear()/m)*m),k.setMonth(0,1),k.setHours(0,0,0,0)},function(k,o){k.setFullYear(k.getFullYear()+o*m)}):null};const As=G1;const U2=pa(function(m){m.setUTCSeconds(0,0)},function(m,k){m.setTime(+m+k*Qa)},function(m,k){return(k-m)/Qa},function(m){return m.getUTCMinutes()});const Ve=pa(function(m){m.setUTCMinutes(0,0,0)},function(m,k){m.setTime(+m+k*us)},function(m,k){return(k-m)/us},function(m){return m.getUTCHours()});const pt=pa(function(m){m.setUTCHours(0,0,0,0)},function(m,k){m.setUTCDate(m.getUTCDate()+k)},function(m,k){return(k-m)/Eo},function(m){return m.getUTCDate()-1});function xn(m){return pa(function(k){k.setUTCDate(k.getUTCDate()-(k.getUTCDay()+7-m)%7),k.setUTCHours(0,0,0,0)},function(k,o){k.setUTCDate(k.getUTCDate()+7*o)},function(k,o){return(o-k)/Qs})}var _r=xn(0),Un=xn(1),ar=(xn(2),xn(3),xn(4));const $4=(xn(5),xn(6),pa(function(m){m.setUTCDate(1),m.setUTCHours(0,0,0,0)},function(m,k){m.setUTCMonth(m.getUTCMonth()+k)},function(m,k){return k.getUTCMonth()-m.getUTCMonth()+12*(k.getUTCFullYear()-m.getUTCFullYear())},function(m){return m.getUTCMonth()}));var G2=pa(function(m){m.setUTCMonth(0,1),m.setUTCHours(0,0,0,0)},function(m,k){m.setUTCFullYear(m.getUTCFullYear()+k)},function(m,k){return k.getUTCFullYear()-m.getUTCFullYear()},function(m){return m.getUTCFullYear()});G2.every=function(m){return isFinite(m=Math.floor(m))&&m>0?pa(function(k){k.setUTCFullYear(Math.floor(k.getUTCFullYear()/m)*m),k.setUTCMonth(0,1),k.setUTCHours(0,0,0,0)},function(k,o){k.setUTCFullYear(k.getUTCFullYear()+o*m)}):null};const Y1=G2;function c1(m,k,o,x,V,q){const ke=[[Zo,1,Ss],[Zo,5,5e3],[Zo,15,15e3],[Zo,30,3e4],[q,1,Qa],[q,5,5*Qa],[q,15,15*Qa],[q,30,30*Qa],[V,1,us],[V,3,3*us],[V,6,6*us],[V,12,12*us],[x,1,Eo],[x,2,2*Eo],[o,1,Qs],[k,1,a1],[k,3,3*a1],[m,1,oo]];function Ut(Bt,li,bi){const wi=Math.abs(li-Bt)/bi,Di=so(([,,Ii])=>Ii).right(ke,wi);if(Di===ke.length)return m.every(R1(Bt/oo,li/oo,bi));if(0===Di)return $l.every(Math.max(R1(Bt,li,bi),1));const[rn,vn]=ke[wi/ke[Di-1][2][k.toLowerCase(),o]))}function r0(m,k,o){var x=wa.exec(k.slice(o,o+1));return x?(m.w=+x[0],o+x[0].length):-1}function w6(m,k,o){var x=wa.exec(k.slice(o,o+1));return x?(m.u=+x[0],o+x[0].length):-1}function L6(m,k,o){var x=wa.exec(k.slice(o,o+2));return x?(m.U=+x[0],o+x[0].length):-1}function a0(m,k,o){var x=wa.exec(k.slice(o,o+2));return x?(m.V=+x[0],o+x[0].length):-1}function q1(m,k,o){var x=wa.exec(k.slice(o,o+2));return x?(m.W=+x[0],o+x[0].length):-1}function l3(m,k,o){var x=wa.exec(k.slice(o,o+4));return x?(m.y=+x[0],o+x[0].length):-1}function J1(m,k,o){var x=wa.exec(k.slice(o,o+2));return x?(m.y=+x[0]+(+x[0]>68?1900:2e3),o+x[0].length):-1}function S6(m,k,o){var x=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(k.slice(o,o+6));return x?(m.Z=x[1]?0:-(x[2]+(x[3]||"00")),o+x[0].length):-1}function oa(m,k,o){var x=wa.exec(k.slice(o,o+1));return x?(m.q=3*x[0]-3,o+x[0].length):-1}function s0(m,k,o){var x=wa.exec(k.slice(o,o+2));return x?(m.m=x[0]-1,o+x[0].length):-1}function c3(m,k,o){var x=wa.exec(k.slice(o,o+2));return x?(m.d=+x[0],o+x[0].length):-1}function d3(m,k,o){var x=wa.exec(k.slice(o,o+3));return x?(m.m=0,m.d=+x[0],o+x[0].length):-1}function Y2(m,k,o){var x=wa.exec(k.slice(o,o+2));return x?(m.H=+x[0],o+x[0].length):-1}function E6(m,k,o){var x=wa.exec(k.slice(o,o+2));return x?(m.M=+x[0],o+x[0].length):-1}function o0(m,k,o){var x=wa.exec(k.slice(o,o+2));return x?(m.S=+x[0],o+x[0].length):-1}function T6(m,k,o){var x=wa.exec(k.slice(o,o+3));return x?(m.L=+x[0],o+x[0].length):-1}function l0(m,k,o){var x=wa.exec(k.slice(o,o+6));return x?(m.L=Math.floor(x[0]/1e3),o+x[0].length):-1}function A6(m,k,o){var x=W2.exec(k.slice(o,o+1));return x?o+x[0].length:-1}function D6(m,k,o){var x=wa.exec(k.slice(o));return x?(m.Q=+x[0],o+x[0].length):-1}function o8(m,k,o){var x=wa.exec(k.slice(o));return x?(m.s=+x[0],o+x[0].length):-1}function Ko(m,k){return sr(m.getDate(),k,2)}function ts(m,k){return sr(m.getHours(),k,2)}function X1(m,k){return sr(m.getHours()%12||12,k,2)}function c0(m,k){return sr(1+co.count(As(m),m),k,3)}function u3(m,k){return sr(m.getMilliseconds(),k,3)}function qa(m,k){return u3(m,k)+"000"}function $1(m,k){return sr(m.getMonth()+1,k,2)}function h3(m,k){return sr(m.getMinutes(),k,2)}function I6(m,k){return sr(m.getSeconds(),k,2)}function O6(m){var k=m.getDay();return 0===k?7:k}function d0(m,k){return sr(Es.count(As(m)-1,m),k,2)}function u0(m){var k=m.getDay();return k>=4||0===k?Ts(m):Ts.ceil(m)}function f3(m,k){return m=u0(m),sr(Ts.count(As(m),m)+(4===As(m).getDay()),k,2)}function k6(m){return m.getDay()}function p3(m,k){return sr(l1.count(As(m)-1,m),k,2)}function h0(m,k){return sr(m.getFullYear()%100,k,2)}function P6(m,k){return sr((m=u0(m)).getFullYear()%100,k,2)}function m3(m,k){return sr(m.getFullYear()%1e4,k,4)}function N6(m,k){var o=m.getDay();return sr((m=o>=4||0===o?Ts(m):Ts.ceil(m)).getFullYear()%1e4,k,4)}function g3(m){var k=m.getTimezoneOffset();return(k>0?"-":(k*=-1,"+"))+sr(k/60|0,"0",2)+sr(k%60,"0",2)}function j2(m,k){return sr(m.getUTCDate(),k,2)}function R6(m,k){return sr(m.getUTCHours(),k,2)}function C3(m,k){return sr(m.getUTCHours()%12||12,k,2)}function K2(m,k){return sr(1+pt.count(Y1(m),m),k,3)}function f0(m,k){return sr(m.getUTCMilliseconds(),k,3)}function p0(m,k){return f0(m,k)+"000"}function H6(m,k){return sr(m.getUTCMonth()+1,k,2)}function F6(m,k){return sr(m.getUTCMinutes(),k,2)}function V6(m,k){return sr(m.getUTCSeconds(),k,2)}function m0(m){var k=m.getUTCDay();return 0===k?7:k}function z6(m,k){return sr(_r.count(Y1(m)-1,m),k,2)}function g0(m){var k=m.getUTCDay();return k>=4||0===k?ar(m):ar.ceil(m)}function B6(m,k){return m=g0(m),sr(ar.count(Y1(m),m)+(4===Y1(m).getUTCDay()),k,2)}function U6(m){return m.getUTCDay()}function G6(m,k){return sr(Un.count(Y1(m)-1,m),k,2)}function C0(m,k){return sr(m.getUTCFullYear()%100,k,2)}function _0(m,k){return sr((m=g0(m)).getUTCFullYear()%100,k,2)}function v0(m,k){return sr(m.getUTCFullYear()%1e4,k,4)}function u1(m,k){var o=m.getUTCDay();return sr((m=o>=4||0===o?ar(m):ar.ceil(m)).getUTCFullYear()%1e4,k,4)}function qs(){return"+0000"}function Z6(){return"%"}function W6(m){return+m}function _3(m){return Math.floor(+m/1e3)}function h1(m){return null===m?NaN:+m}!function x0(m){(function s8(m){var k=m.dateTime,o=m.date,x=m.time,V=m.periods,q=m.days,ke=m.shortDays,st=m.months,Ut=m.shortMonths,Bt=jo(V),li=Q1(V),bi=jo(q),wi=Q1(q),Di=jo(ke),rn=Q1(ke),vn=jo(st),Ii=Q1(st),mn=jo(Ut),_n=Q1(Ut),gn={a:function ln(hn){return ke[hn.getDay()]},A:function rs(hn){return q[hn.getDay()]},b:function vr(hn){return Ut[hn.getMonth()]},B:function Da(hn){return st[hn.getMonth()]},c:null,d:Ko,e:Ko,f:qa,g:P6,G:N6,H:ts,I:X1,j:c0,L:u3,m:$1,M:h3,p:function Kr(hn){return V[+(hn.getHours()>=12)]},q:function ma(hn){return 1+~~(hn.getMonth()/3)},Q:W6,s:_3,S:I6,u:O6,U:d0,V:f3,w:k6,W:p3,x:null,X:null,y:h0,Y:m3,Z:g3,"%":Z6},Vn={a:function No(hn){return ke[hn.getUTCDay()]},A:function xo(hn){return q[hn.getUTCDay()]},b:function Ar(hn){return Ut[hn.getUTCMonth()]},B:function L2(hn){return st[hn.getUTCMonth()]},c:null,d:j2,e:j2,f:p0,g:_0,G:u1,H:R6,I:C3,j:K2,L:f0,m:H6,M:F6,p:function Ga(hn){return V[+(hn.getUTCHours()>=12)]},q:function Vl(hn){return 1+~~(hn.getUTCMonth()/3)},Q:W6,s:_3,S:V6,u:m0,U:z6,V:B6,w:U6,W:G6,x:null,X:null,y:C0,Y:v0,Z:qs,"%":Z6},In={a:function Er(hn,Zn,er){var Ki=Di.exec(Zn.slice(er));return Ki?(hn.w=rn.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},A:function On(hn,Zn,er){var Ki=bi.exec(Zn.slice(er));return Ki?(hn.w=wi.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},b:function Sa(hn,Zn,er){var Ki=mn.exec(Zn.slice(er));return Ki?(hn.m=_n.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},B:function or(hn,Zn,er){var Ki=vn.exec(Zn.slice(er));return Ki?(hn.m=Ii.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},c:function Tr(hn,Zn,er){return wr(hn,k,Zn,er)},d:c3,e:c3,f:l0,g:J1,G:l3,H:Y2,I:Y2,j:d3,L:T6,m:s0,M:E6,p:function Pa(hn,Zn,er){var Ki=Bt.exec(Zn.slice(er));return Ki?(hn.p=li.get(Ki[0].toLowerCase()),er+Ki[0].length):-1},q:oa,Q:D6,s:o8,S:o0,u:w6,U:L6,V:a0,w:r0,W:q1,x:function ns(hn,Zn,er){return wr(hn,o,Zn,er)},X:function ia(hn,Zn,er){return wr(hn,x,Zn,er)},y:J1,Y:l3,Z:S6,"%":A6};function wn(hn,Zn){return function(er){var ss,Nn,la,Ki=[],na=-1,yr=0,as=hn.length;for(er instanceof Date||(er=new Date(+er));++na53)return null;"w"in Ki||(Ki.w=1),"Z"in Ki?(as=(yr=Z2(K1(Ki.y,0,1))).getUTCDay(),yr=as>4||0===as?Un.ceil(yr):Un(yr),yr=pt.offset(yr,7*(Ki.V-1)),Ki.y=yr.getUTCFullYear(),Ki.m=yr.getUTCMonth(),Ki.d=yr.getUTCDate()+(Ki.w+6)%7):(as=(yr=j1(K1(Ki.y,0,1))).getDay(),yr=as>4||0===as?l1.ceil(yr):l1(yr),yr=co.offset(yr,7*(Ki.V-1)),Ki.y=yr.getFullYear(),Ki.m=yr.getMonth(),Ki.d=yr.getDate()+(Ki.w+6)%7)}else("W"in Ki||"U"in Ki)&&("w"in Ki||(Ki.w="u"in Ki?Ki.u%7:"W"in Ki?1:0),as="Z"in Ki?Z2(K1(Ki.y,0,1)).getUTCDay():j1(K1(Ki.y,0,1)).getDay(),Ki.m=0,Ki.d="W"in Ki?(Ki.w+6)%7+7*Ki.W-(as+5)%7:Ki.w+7*Ki.U-(as+6)%7);return"Z"in Ki?(Ki.H+=Ki.Z/100|0,Ki.M+=Ki.Z%100,Z2(Ki)):j1(Ki)}}function wr(hn,Zn,er,Ki){for(var ss,Nn,na=0,yr=Zn.length,as=er.length;na=as)return-1;if(37===(ss=Zn.charCodeAt(na++))){if(ss=Zn.charAt(na++),!(Nn=In[ss in n0?Zn.charAt(na++):ss])||(Ki=Nn(hn,er,Ki))<0)return-1}else if(ss!=er.charCodeAt(Ki++))return-1}return Ki}return gn.x=wn(o,gn),gn.X=wn(x,gn),gn.c=wn(k,gn),Vn.x=wn(o,Vn),Vn.X=wn(x,Vn),Vn.c=wn(k,Vn),{format:function(hn){var Zn=wn(hn+="",gn);return Zn.toString=function(){return hn},Zn},parse:function(hn){var Zn=fr(hn+="",!1);return Zn.toString=function(){return hn},Zn},utcFormat:function(hn){var Zn=wn(hn+="",Vn);return Zn.toString=function(){return hn},Zn},utcParse:function(hn){var Zn=fr(hn+="",!0);return Zn.toString=function(){return hn},Zn}}})(m)}({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 x3=so(Ka).right,K6=(so(h1),x3);function f1(m,k){return m=+m,k=+k,function(o){return Math.round(m*(1-o)+k*o)}}function M0(m){return+m}var w0=[0,1];function Ao(m){return m}function J2(m,k){return(k-=m=+m)?function(o){return(o-m)/k}:function q2(m){return function(){return m}}(isNaN(k)?NaN:.5)}function q6(m,k,o){var x=m[0],V=m[1],q=k[0],ke=k[1];return Vk&&(o=m,m=k,k=o),function(x){return Math.max(m,Math.min(k,x))}}(m[0],m[wi-1])),st=wi>2?J6:q6,Ut=Bt=null,bi}function bi(wi){return null==wi||isNaN(wi=+wi)?q:(Ut||(Ut=st(m.map(x),k,o)))(x(ke(wi)))}return bi.invert=function(wi){return ke(V((Bt||(Bt=st(k,m.map(x),St)))(wi)))},bi.domain=function(wi){return arguments.length?(m=Array.from(wi,M0),li()):m.slice()},bi.range=function(wi){return arguments.length?(k=Array.from(wi),li()):k.slice()},bi.rangeRound=function(wi){return k=Array.from(wi),o=f1,li()},bi.clamp=function(wi){return arguments.length?(ke=!!wi||Ao,li()):ke!==Ao},bi.interpolate=function(wi){return arguments.length?(o=wi,li()):o},bi.unknown=function(wi){return arguments.length?(q=wi,bi):q},function(wi,Di){return x=wi,V=Di,li()}}()(Ao,Ao)}function Qo(m,k){switch(arguments.length){case 0:break;case 1:this.range(m);break;default:this.range(k).domain(m)}return this}var $2,qo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function t2(m){if(!(k=qo.exec(m)))throw new Error("invalid format: "+m);var k;return new X2({fill:k[1],align:k[2],sign:k[3],symbol:k[4],zero:k[5],width:k[6],comma:k[7],precision:k[8]&&k[8].slice(1),trim:k[9],type:k[10]})}function X2(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}function Jo(m,k){if((o=(m=k?m.toExponential(k-1):m.toExponential()).indexOf("e"))<0)return null;var o,x=m.slice(0,o);return[x.length>1?x[0]+x.slice(2):x,+m.slice(o+1)]}function p1(m){return(m=Jo(Math.abs(m)))?m[1]:NaN}function n2(m,k){var o=Jo(m,k);if(!o)return m+"";var x=o[0],V=o[1];return V<0?"0."+new Array(-V).join("0")+x:x.length>V+1?x.slice(0,V+1)+"."+x.slice(V+1):x+new Array(V-x.length+2).join("0")}t2.prototype=X2.prototype,X2.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 tl={"%":(m,k)=>(100*m).toFixed(k),b:m=>Math.round(m).toString(2),c:m=>m+"",d:function e5(m){return Math.abs(m=Math.round(m))>=1e21?m.toLocaleString("en").replace(/,/g,""):m.toString(10)},e:(m,k)=>m.toExponential(k),f:(m,k)=>m.toFixed(k),g:(m,k)=>m.toPrecision(k),o:m=>Math.round(m).toString(8),p:(m,k)=>n2(100*m,k),r:n2,s:function el(m,k){var o=Jo(m,k);if(!o)return m+"";var x=o[0],V=o[1],q=V-($2=3*Math.max(-8,Math.min(8,Math.floor(V/3))))+1,ke=x.length;return q===ke?x:q>ke?x+new Array(q-ke+1).join("0"):q>0?x.slice(0,q)+"."+x.slice(q):"0."+new Array(1-q).join("0")+Jo(m,Math.max(0,k+q-1))[0]},X:m=>Math.round(m).toString(16).toUpperCase(),x:m=>Math.round(m).toString(16)};function il(m){return m}var a2,rl,I0,E3=Array.prototype.map,nl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function l8(m){var k=m.domain;return m.ticks=function(o){var x=k();return function Xl(m,k,o){var x,q,ke,st,V=-1;if(o=+o,(m=+m)==(k=+k)&&o>0)return[m];if((x=k0){let Ut=Math.round(m/st),Bt=Math.round(k/st);for(Ut*stk&&--Bt,ke=new Array(q=Bt-Ut+1);++Vk&&--Bt,ke=new Array(q=Bt-Ut+1);++V0;){if((Bt=P2(ke,st,o))===Ut)return x[V]=ke,x[q]=st,k(x);if(Bt>0)ke=Math.floor(ke/Bt)*Bt,st=Math.ceil(st/Bt)*Bt;else{if(!(Bt<0))break;ke=Math.ceil(ke*Bt)/Bt,st=Math.floor(st*Bt)/Bt}Ut=Bt}return m},m}function Do(){var m=M3();return m.copy=function(){return b3(m,Do())},Qo.apply(m,arguments),l8(m)}function k0(m,k,o){m=+m,k=+k,o=(V=arguments.length)<2?(k=m,m=0,1):V<3?1:+o;for(var x=-1,V=0|Math.max(0,Math.ceil((k-m)/o)),q=new Array(V);++x0&&st>0&&(Ut+st+1>x&&(st=Math.max(1,x-Ut)),q.push(o.substring(V-=st,V+st)),!((Ut+=st+1)>x));)st=m[ke=(ke+1)%m.length];return q.reverse().join(k)}}(E3.call(m.grouping,Number),m.thousands+""),o=void 0===m.currency?"":m.currency[0]+"",x=void 0===m.currency?"":m.currency[1]+"",V=void 0===m.decimal?".":m.decimal+"",q=void 0===m.numerals?il:function D0(m){return function(k){return k.replace(/[0-9]/g,function(o){return m[+o]})}}(E3.call(m.numerals,String)),ke=void 0===m.percent?"%":m.percent+"",st=void 0===m.minus?"\u2212":m.minus+"",Ut=void 0===m.nan?"NaN":m.nan+"";function Bt(bi){var wi=(bi=t2(bi)).fill,Di=bi.align,rn=bi.sign,vn=bi.symbol,Ii=bi.zero,mn=bi.width,_n=bi.comma,gn=bi.precision,Vn=bi.trim,In=bi.type;"n"===In?(_n=!0,In="g"):tl[In]||(void 0===gn&&(gn=12),Vn=!0,In="g"),(Ii||"0"===wi&&"="===Di)&&(Ii=!0,wi="0",Di="=");var wn="$"===vn?o:"#"===vn&&/[boxX]/.test(In)?"0"+In.toLowerCase():"",fr="$"===vn?x:/[%p]/.test(In)?ke:"",wr=tl[In],Pa=/[defgprs%]/.test(In);function Er(On){var Tr,ns,ia,Sa=wn,or=fr;if("c"===In)or=wr(On)+or,On="";else{var ln=(On=+On)<0||1/On<0;if(On=isNaN(On)?Ut:wr(Math.abs(On),gn),Vn&&(On=function S3(m){e:for(var V,k=m.length,o=1,x=-1;o0&&(x=0)}return x>0?m.slice(0,x)+m.slice(V+1):m}(On)),ln&&0==+On&&"+"!==rn&&(ln=!1),Sa=(ln?"("===rn?rn:st:"-"===rn||"("===rn?"":rn)+Sa,or=("s"===In?nl[8+$2/3]:"")+or+(ln&&"("===rn?")":""),Pa)for(Tr=-1,ns=On.length;++Tr(ia=On.charCodeAt(Tr))||ia>57){or=(46===ia?V+On.slice(Tr+1):On.slice(Tr))+or,On=On.slice(0,Tr);break}}_n&&!Ii&&(On=k(On,1/0));var rs=Sa.length+On.length+or.length,vr=rs>1)+Sa+On+or+vr.slice(rs);break;default:On=vr+Sa+On+or}return q(On)}return gn=void 0===gn?6:/[gprs]/.test(In)?Math.max(1,Math.min(21,gn)):Math.max(0,Math.min(20,gn)),Er.toString=function(){return bi+""},Er}return{format:Bt,formatPrefix:function li(bi,wi){var Di=Bt(((bi=t2(bi)).type="f",bi)),rn=3*Math.max(-8,Math.min(8,Math.floor(p1(wi)/3))),vn=Math.pow(10,-rn),Ii=nl[8+rn/3];return function(mn){return Di(vn*mn)+Ii}}}}(m),rl=a2.format,I0=a2.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const D3=Symbol("implicit");function I3(){var m=new Map,k=[],o=[],x=D3;function V(q){var ke=q+"",st=m.get(ke);if(!st){if(x!==D3)return x;m.set(ke,st=k.push(q))}return o[(st-1)%o.length]}return V.domain=function(q){if(!arguments.length)return k.slice();k=[],m=new Map;for(const ke of q){const st=ke+"";m.has(st)||m.set(st,k.push(ke))}return V},V.range=function(q){return arguments.length?(o=Array.from(q),V):o.slice()},V.unknown=function(q){return arguments.length?(x=q,V):x},V.copy=function(){return I3(k,o).unknown(x)},Qo.apply(V,arguments),V}function m1(){var q,ke,m=I3().unknown(void 0),k=m.domain,o=m.range,x=0,V=1,st=!1,Ut=0,Bt=0,li=.5;function bi(){var wi=k().length,Di=V=1)return+o(m[x-1],x-1,m);var x,V=(x-1)*k,q=Math.floor(V),ke=+o(m[q],q,m);return ke+(+o(m[q+1],q+1,m)-ke)*(V-q)}}function P0(){var x,m=[],k=[],o=[];function V(){var ke=0,st=Math.max(1,k.length);for(o=new Array(st-1);++ke0?o[st-1]:m[0],st{return(m=jn||(jn={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",m.Center="center",jn;var m})();function s4(m,k,o){return o===jn.Top?m.top-7:o===jn.Bottom?m.top+m.height-k.height+7:o===jn.Center?m.top+m.height/2-k.height/2:void 0}function o4(m,k,o){return o===jn.Left?m.left-7:o===jn.Right?m.left+m.width-k.width+7:o===jn.Center?m.left+m.width/2-k.width/2:void 0}class ps{static calculateVerticalAlignment(k,o,x){let V=s4(k,o,x);return V+o.height>window.innerHeight&&(V=window.innerHeight-o.height),V}static calculateVerticalCaret(k,o,x,V){let q;V===jn.Top&&(q=k.height/2-x.height/2+7),V===jn.Bottom&&(q=o.height-k.height/2-x.height/2-7),V===jn.Center&&(q=o.height/2-x.height/2);const ke=s4(k,o,V);return ke+o.height>window.innerHeight&&(q+=ke+o.height-window.innerHeight),q}static calculateHorizontalAlignment(k,o,x){let V=o4(k,o,x);return V+o.width>window.innerWidth&&(V=window.innerWidth-o.width),V}static calculateHorizontalCaret(k,o,x,V){let q;V===jn.Left&&(q=k.width/2-x.width/2+7),V===jn.Right&&(q=o.width-k.width/2-x.width/2-7),V===jn.Center&&(q=o.width/2-x.width/2);const ke=o4(k,o,V);return ke+o.width>window.innerWidth&&(q+=ke+o.width-window.innerWidth),q}static shouldFlip(k,o,x,V){let q=!1;return x===jn.Right&&k.left+k.width+o.width+V>window.innerWidth&&(q=!0),x===jn.Left&&k.left-o.width-V<0&&(q=!0),x===jn.Top&&k.top-o.height-V<0&&(q=!0),x===jn.Bottom&&k.top+k.height+o.height+V>window.innerHeight&&(q=!0),q}static positionCaret(k,o,x,V,q){let ke=0,st=0;return k===jn.Right?(st=-7,ke=ps.calculateVerticalCaret(x,o,V,q)):k===jn.Left?(st=o.width,ke=ps.calculateVerticalCaret(x,o,V,q)):k===jn.Top?(ke=o.height,st=ps.calculateHorizontalCaret(x,o,V,q)):k===jn.Bottom&&(ke=-7,st=ps.calculateHorizontalCaret(x,o,V,q)),{top:ke,left:st}}static positionContent(k,o,x,V,q){let ke=0,st=0;return k===jn.Right?(st=x.left+x.width+V,ke=ps.calculateVerticalAlignment(x,o,q)):k===jn.Left?(st=x.left-o.width-V,ke=ps.calculateVerticalAlignment(x,o,q)):k===jn.Top?(ke=x.top-o.height-V,st=ps.calculateHorizontalAlignment(x,o,q)):k===jn.Bottom&&(ke=x.top+x.height+V,st=ps.calculateHorizontalAlignment(x,o,q)),{top:ke,left:st}}static determinePlacement(k,o,x,V){if(ps.shouldFlip(x,o,k,V)){if(k===jn.Right)return jn.Left;if(k===jn.Left)return jn.Right;if(k===jn.Top)return jn.Bottom;if(k===jn.Bottom)return jn.Top}return k}}let Sc=(()=>{class m{constructor(o,x,V){this.element=o,this.renderer=x,this.platformId=V}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,e.NF)(this.platformId))return;const o=this.element.nativeElement,x=this.host.nativeElement.getBoundingClientRect();if(!x.height&&!x.width)return;const V=o.getBoundingClientRect();this.checkFlip(x,V),this.positionContent(o,x,V),this.showCaret&&this.positionCaret(x,V),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,x,V){const{top:q,left:ke}=ps.positionContent(this.placement,V,x,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${q}px`),this.renderer.setStyle(o,"left",`${ke}px`)}positionCaret(o,x){const V=this.caretElm.nativeElement,q=V.getBoundingClientRect(),{top:ke,left:st}=ps.positionCaret(this.placement,x,o,q,this.alignment);this.renderer.setStyle(V,"top",`${ke}px`),this.renderer.setStyle(V,"left",`${st}px`)}checkFlip(o,x){this.placement=ps.determinePlacement(this.placement,x,o,this.spacing)}onWindowResize(){this.position()}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,x){if(1&o&&t.Gf(a5,5),2&o){let V;t.iGM(V=t.CRH())&&(x.caretElm=V.first)}},hostVars:2,hostBindings:function(o,x){1&o&&t.NdJ("resize",function(){return x.onWindowResize()},!1,t.Jf7),2&o&&t.Tol(x.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,x){1&o&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,o5,2,4,"span",3),t.YNc(5,N0,1,1,"span",4),t.qZA()()),2&o&&(t.xp6(1),t.Gre("tooltip-caret position-",x.placement,""),t.Q6J("hidden",!x.showCaret),t.xp6(3),t.Q6J("ngIf",!x.title),t.xp6(1),t.Q6J("ngIf",x.title))},directives:[e.O5,e.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,f.gn)([Lc(100)],m.prototype,"onWindowResize",null),m})(),c4=(()=>{class m{constructor(o,x,V){this.applicationRef=o,this.componentFactoryResolver=x,this.injector=V}static setGlobalRootViewContainer(o){m.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(m.globalRootViewContainer)return m.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 l4(m){return m.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,x){if(x){if(void 0!==x.inputs){const V=Object.getOwnPropertyNames(x.inputs);for(const q of V)o.instance[q]=x.inputs[q]}if(void 0!==x.outputs){const V=Object.getOwnPropertyNames(x.outputs);for(const q of V)o.instance[q]=x.outputs[q]}}return o}appendComponent(o,x={},V){V||(V=this.getRootViewContainer());const q=this.getComponentRootNode(V),ke=new M.u0(q,this.componentFactoryResolver,this.applicationRef,this.injector),st=new M.C5(o),Ut=ke.attach(st);return this.projectComponentBindings(Ut,x),Ut}}return m.globalRootViewContainer=null,m.\u0275fac=function(o){return new(o||m)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})(),d4=(()=>{class m extends class Cd{constructor(k){this.injectionService=k,this.defaults={},this.components=new Map}getByType(k=this.type){return this.components.get(k)}create(k){return this.createByType(this.type,k)}createByType(k,o){o=this.assignDefaults(o);const x=this.injectComponent(k,o);return this.register(k,x),x}destroy(k){const o=this.components.get(k.componentType);if(o&&o.length){const x=o.indexOf(k);x>-1&&(o[x].destroy(),o.splice(x,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(k){const o=this.components.get(k);if(o&&o.length){let x=o.length-1;for(;x>=0;)this.destroy(o[x--])}}injectComponent(k,o){return this.injectionService.appendComponent(k,o)}assignDefaults(k){const o=Object.assign({},this.defaults.inputs),x=Object.assign({},this.defaults.outputs);return!k.inputs&&!k.outputs&&(k={inputs:k}),o&&(k.inputs=Object.assign(Object.assign({},o),k.inputs)),x&&(k.outputs=Object.assign(Object.assign({},x),k.outputs)),k}register(k,o){this.components.has(k)||this.components.set(k,[]),this.components.get(k).push(o)}}{constructor(o){super(o),this.type=Sc}}return m.\u0275fac=function(o){return new(o||m)(t.LFG(c4))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})();var Vs=(()=>{return(m=Vs||(Vs={})).Right="right",m.Below="below",Vs;var m})(),$o=(()=>{return(m=$o||($o={})).ScaleLegend="scaleLegend",m.Legend="legend",$o;var m})(),En=(()=>{return(m=En||(En={})).Time="time",m.Linear="linear",m.Ordinal="ordinal",m.Quantile="quantile",En;var m})();let Sl=(()=>{class m{constructor(){this.horizontal=!1}ngOnChanges(o){const x=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${x})`}gradientString(o,x){x.push(1);const V=[];return o.reverse().forEach((q,ke)=>{V.push(`${q} ${Math.round(100*x[ke])}%`)}),V.join(", ")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(o,x){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&o&&(t.Udp("height",x.horizontal?void 0:x.height,"px")("width",x.width,"px"),t.ekj("horizontal-legend",x.horizontal),t.xp6(3),t.Oqu(x.valueRange[1].toLocaleString()),t.xp6(1),t.Udp("background",x.gradient),t.xp6(3),t.Oqu(x.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}),m})();function g2(m){return m instanceof Date?m.toLocaleDateString():m.toLocaleString()}let El=(()=>{class m{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,x){1&o&&t.NdJ("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(){return x.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,x){1&o&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return x.select.emit(x.formattedLabel)}),t.TgZ(1,"span",1),t.NdJ("click",function(){return x.toggle.emit(x.formattedLabel)}),t.qZA(),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&o&&(t.ekj("active",x.isActive),t.Q6J("title",x.formattedLabel),t.xp6(1),t.Udp("background-color",x.color),t.xp6(2),t.hij(" ",x.trimmedLabel," "))},encapsulation:2,changeDetection:0}),m})(),Tl=(()=>{class m{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const x of this.data){const V=g2(x);-1===o.findIndex(ke=>ke.label===V)&&o.push({label:x,formattedLabel:V,color:this.colors.getColor(x)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(V=>o.label===V.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,x){return x.label}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.sBO))},m.\u0275cmp=t.Xpm({type:m,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:[t.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,x){1&o&&(t.TgZ(0,"div"),t.YNc(1,Gn,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,R0,2,4,"li",3),t.qZA()()()),2&o&&(t.Udp("width",x.width,"px"),t.xp6(1),t.Q6J("ngIf",(null==x.title?null:x.title.length)>0),t.xp6(2),t.Udp("max-height",x.height-45,"px"),t.ekj("horizontal-legend",x.horizontal),t.xp6(1),t.Q6J("ngForOf",x.legendEntries)("ngForTrackBy",x.trackBy))},directives:[El,e.O5,e.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}),m})(),u4=(()=>{class m{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=Vs,this.LegendType=$o}ngOnChanges(o){this.update()}update(){let o=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Vs.Right)&&(o=this.legendType===$o.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Vs.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===En.Linear?$o.ScaleLegend:$o.Legend}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,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:[t._Bn([d4]),t.TTD],ngContentSelectors:s2,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,x){1&o&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,H0,1,5,"ngx-charts-scale-legend",2),t.YNc(4,F0,1,7,"ngx-charts-legend",3),t.qZA()),2&o&&(t.Udp("width",x.view[0],"px"),t.xp6(1),t.uIk("width",x.chartWidth)("height",x.view[1]),t.xp6(2),t.Q6J("ngIf",x.showLegend&&x.legendType===x.LegendType.ScaleLegend),t.xp6(1),t.Q6J("ngIf",x.showLegend&&x.legendType===x.LegendType.Legend))},directives:[Sl,Tl,e.O5],encapsulation:2,changeDetection:0}),m})(),Y8=(()=>{class m{constructor(o,x){this.element=o,this.zone=x,this.visible=new t.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:x,offsetWidth:V}=this.element.nativeElement;x&&V?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b))},m.\u0275dir=t.lG2({type:m,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),m})();function h4(m){return"[object Date]"===toString.call(m)}let Al=(()=>{class m{constructor(o,x,V,q){this.chartElement=o,this.zone=x,this.cd=V,this.platformId=q,this.scheme="cool",this.schemeType=En.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Y8(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,x;const V=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==V.parentNode){const q=V.parentNode.getBoundingClientRect();o=q.width,x=q.height}return o&&x?{width:o,height:x}:null}formatDates(){for(let o=0;o{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=x}cloneData(o){const x=[];for(const V of o){const q={name:V.name};if(void 0!==V.value&&(q.value=V.value),void 0!==V.series){q.series=[];for(const ke of V.series){const st=Object.assign({},ke);q.series.push(st)}}void 0!==V.extra&&(q.extra=JSON.parse(JSON.stringify(V.extra))),x.push(q)}return x}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(o,x){1&o&&t._UZ(0,"div")},encapsulation:2}),m})();var La=(()=>{return(m=La||(La={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",La;var m})();let Ec=(()=>{class m{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 La.Top:case La.Bottom:this.y=this.offset,this.x=this.width/2;break;case La.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case La.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:Is,decls:2,vars:6,template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&o&&(t.uIk("stroke-width",x.strokeWidth)("x",x.x)("y",x.y)("text-anchor",x.textAnchor)("transform",x.transform),t.xp6(1),t.hij(" ",x.label," "))},encapsulation:2,changeDetection:0}),m})();function ko(m,k=16){return"string"!=typeof m?"number"==typeof m?m+"":"":(m=m.trim()).length<=k?m:`${m.slice(0,k)}...`}function f4(m,k){if(m.length>k){const o=[],x=Math.floor(m.length/k);for(let V=0;V{return(m=ks||(ks={})).Start="start",m.Middle="middle",m.End="end",ks;var m})();let p4=(()=>{class m{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 t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=ks.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.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(V){return"Date"===V.constructor.name?V.toLocaleDateString():V.toLocaleString()};const x=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(V){return this.scale(V)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",x&&0!==x?(this.textTransform=`rotate(${x})`,this.textAnchor=ks.End,this.verticalSpacing=10):this.textAnchor=ks.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(o){let x=0;this.maxTicksLength=0;for(let Bt=0;Btthis.maxTicksLength&&(this.maxTicksLength=bi)}const ke=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let st=ke;const Ut=Math.floor(this.width/o.length);for(;st>Ut&&x>-90;)x-=30,st=Math.cos(x*(Math.PI/180))*ke;return this.approxHeight=Math.max(Math.abs(Math.sin(x*(Math.PI/180))*ke),10),x}getTicks(){let o;const x=this.getMaxTicks(20),V=this.getMaxTicks(100);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[V]):(o=this.scale.domain(),o=f4(o,x)),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?ko(o,this.maxTickLength):o}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(o,x){if(1&o&&t.Gf(O3,5),2&o){let V;t.iGM(V=t.CRH())&&(x.ticksElement=V.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:[t.TTD],attrs:V0,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,x){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,k3,5,7,"g",1),t.qZA(),t.YNc(3,P3,2,2,"g",2)),2&o&&(t.xp6(2),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngForOf",x.ticks))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),Dl=(()=>{class m{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=La.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new t.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=La}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 x=o+25+5;x!==this.labelOffset&&(this.labelOffset=x,setTimeout(()=>{this.dimensionsChanged.emit({height:o})},0))}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(o,x){if(1&o&&t.Gf(p4,5),2&o){let V;t.iGM(V=t.CRH())&&(x.ticksComponent=V.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:[t.TTD],attrs:z0,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,x){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,sl,1,12,"g",0),t.YNc(2,d8,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",x.xAxisClassName)("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.xScale),t.xp6(1),t.Q6J("ngIf",x.showLabel))},directives:[p4,Ec,e.O5],encapsulation:2,changeDetection:0}),m})();function Ps(m,k,o,x,V,[q,ke,st,Ut]){let Bt="";return Bt=`M${[m+V,k]}`,Bt+="h"+((o=0===(o=Math.floor(o))?1:o)-2*V),Bt+=ke?`a${[V,V]} 0 0 1 ${[V,V]}`:`h${V}v${V}`,Bt+="v"+((x=0===(x=Math.floor(x))?1:x)-2*V),Bt+=Ut?`a${[V,V]} 0 0 1 ${[-V,V]}`:`v${V}h${-V}`,Bt+="h"+(2*V-o),Bt+=st?`a${[V,V]} 0 0 1 ${[-V,-V]}`:`h${-V}v${-V}`,Bt+="v"+(2*V-x),Bt+=q?`a${[V,V]} 0 0 1 ${[V,-V]}`:`v${-V}h${V}`,Bt+="z",Bt}let Tc=(()=>{class m{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 t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=ks.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=La}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.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 x=this.orient===La.Top||this.orient===La.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(V){return"Date"===V.constructor.name?V.toLocaleDateString():V.toLocaleString()},this.adjustedScale=o.bandwidth?function(V){return o(V)+.5*o.bandwidth()}:o,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case La.Top:case La.Bottom:this.transform=function(V){return"translate("+this.adjustedScale(V)+",0)"},this.textAnchor=ks.Middle,this.y2=this.innerTickSize*x,this.y1=this.tickSpacing*x,this.dy=x<0?"0em":".71em";break;case La.Left:this.transform=function(V){return"translate(0,"+this.adjustedScale(V)+")"},this.textAnchor=ks.End,this.x2=this.innerTickSize*-x,this.x1=this.tickSpacing*-x,this.dy=".32em";break;case La.Right:this.transform=function(V){return"translate(0,"+this.adjustedScale(V)+")"},this.textAnchor=ks.Start,this.x2=this.innerTickSize*-x,this.x1=this.tickSpacing*-x,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 x=this.getMaxTicks(20),V=this.getMaxTicks(50);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[V]):(o=this.scale.domain(),o=f4(o,x)),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?ko(o,this.maxTickLength):o}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(V=>this.tickTrim(this.tickFormat(V)).length))}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(o,x){if(1&o&&t.Gf(O3,5),2&o){let V;t.iGM(V=t.CRH())&&(x.ticksElement=V.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:[t.TTD],attrs:N3,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,x){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,u8,5,9,"g",1),t.qZA(),t.YNc(3,ol,1,2,"path",2),t.YNc(4,H3,2,2,"g",3),t.YNc(5,c5,2,1,"g",3)),2&o&&(t.xp6(2),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngIf",x.referenceLineLength>1&&x.refMax&&x.refMin&&x.showRefLines),t.xp6(1),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngForOf",x.referenceLines))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),m4=(()=>{class m{constructor(){this.showGridLines=!1,this.yOrient=La.Left,this.yAxisOffset=0,this.dimensionsChanged=new t.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===La.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===La.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 m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(o,x){if(1&o&&t.Gf(Tc,5),2&o){let V;t.iGM(V=t.CRH())&&(x.ticksComponent=V.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:[t.TTD],attrs:dl,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,x){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,d5,1,14,"g",0),t.YNc(2,B0,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",x.yAxisClassName)("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.yScale),t.xp6(1),t.Q6J("ngIf",x.showLabel))},directives:[Tc,Ec,e.O5],encapsulation:2,changeDetection:0}),m})(),Ac=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez]]}),m})();var e1=(()=>{return(m=e1||(e1={})).popover="popover",m.tooltip="tooltip",e1;var m})(),Po=(()=>{return(m=Po||(Po={}))[m.all="all"]="all",m[m.focus="focus"]="focus",m[m.mouseover="mouseover"]="mouseover",Po;var m})();let g4=(()=>{class m{constructor(o,x,V){this.tooltipService=o,this.viewContainerRef=x,this.renderer=V,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=jn.Top,this.tooltipAlignment=jn.Center,this.tooltipType=e1.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Po.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Po.all||this.tooltipShowEvent===Po.focus}get listensForHover(){return this.tooltipShowEvent===Po.all||this.tooltipShowEvent===Po.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 x=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 V=this.createBoundOptions();this.component=this.tooltipService.create(V),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},x)}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",x=>{o.contains(x.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const x=()=>{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?x():this.timeout=setTimeout(x,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 m.\u0275fac=function(o){return new(o||m)(t.Y36(d4),t.Y36(t.s_b),t.Y36(t.Qsj))},m.\u0275dir=t.lG2({type:m,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,x){1&o&&t.NdJ("focusin",function(){return x.onFocus()})("blur",function(){return x.onBlur()})("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(q){return x.onMouseLeave(q.target)})("click",function(){return x.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"}}),m})(),Dc=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({providers:[c4,d4],imports:[[e.ez]]}),m})();const C4={};function _2(){let m=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return m=`a${m}`,C4[m]?_2():(C4[m]=!0,m)}var ta=(()=>{return(m=ta||(ta={})).Vertical="vertical",m.Horizontal="horizontal",ta;var m})();let b1=(()=>{class m{constructor(){this.orientation=ta.Vertical}ngOnChanges(o){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===ta.Horizontal?this.x2="100%":this.orientation===ta.Vertical&&(this.y1="100%")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:f8,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,U0,1,5,"stop",1),t.qZA()),2&o&&(t.Q6J("id",x.name),t.uIk("x1",x.x1)("y1",x.y1)("x2",x.x2)("y2",x.y2),t.xp6(1),t.Q6J("ngForOf",x.stops))},directives:[e.sg],encapsulation:2,changeDetection:0}),m})(),Ic=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:g8,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(o,x){1&o&&(t.O4$(),t._UZ(0,"rect",0)),2&o&&t.uIk("height",x.height)("width",x.width)("x",x.x)("y",x.y)},encapsulation:2,changeDetection:0}),m})();var y2=(()=>{return(m=y2||(y2={})).Odd="odd",m.Even="even",y2;var m})();let b2,M1=(()=>{class m{ngOnChanges(o){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(o=>{let x,V,q,ke,st,Ut=y2.Odd;if(this.orient===ta.Vertical){const Bt=this.xScale(o.name);Number.parseInt((Bt/this.xScale.step()).toString(),10)%2==1&&(Ut=y2.Even),x=this.xScale.bandwidth()*this.xScale.paddingInner(),V=this.xScale.bandwidth()+x,q=this.dims.height,ke=this.xScale(o.name)-x/2,st=0}else if(this.orient===ta.Horizontal){const Bt=this.yScale(o.name);Number.parseInt((Bt/this.yScale.step()).toString(),10)%2==1&&(Ut=y2.Even),x=this.yScale.bandwidth()*this.yScale.paddingInner(),V=this.dims.width,q=this.yScale.bandwidth()+x,ke=0,st=this.yScale(o.name)-x/2}return{name:o.name,class:Ut,height:q,width:V,x:ke,y:st}})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:u5,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,x){1&o&&t.YNc(0,C8,1,10,"g",0),2&o&&t.Q6J("ngForOf",x.gridPanels)},directives:[Ic,e.sg],encapsulation:2,changeDetection:0}),m})();"undefined"!=typeof window?b2=window:"undefined"!=typeof global&&(b2=global);let ms=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez,Ac,Dc],e.ez,Ac,Dc]}),m})();function Nl({width:m,height:k,margins:o,showXAxis:x=!1,showYAxis:V=!1,xAxisHeight:q=0,yAxisWidth:ke=0,showXLabel:st=!1,showYLabel:Ut=!1,showLegend:Bt=!1,legendType:li=En.Ordinal,legendPosition:bi=Vs.Right,columns:wi=12}){let Di=o[3],rn=m,vn=k-o[0]-o[2];return Bt&&bi===Vs.Right&&(wi-=li===En.Ordinal?2:1),rn=rn*wi/12,rn=rn-o[1]-o[3],x&&(vn-=5,vn-=q,st&&(vn-=30)),V&&(rn-=5,rn-=ke,Di+=ke,Di+=10,Ut&&(rn-=30,Di+=30)),rn=Math.max(0,rn),vn=Math.max(0,vn),{width:Math.floor(rn),height:Math.floor(vn),xOffset:Math.floor(Di)}}let M4=[{name:"vivid",selectable:!0,group:En.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:En.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:En.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:En.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:En.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:En.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:En.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:En.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:En.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:En.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:En.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:En.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:En.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:En.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:En.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class M2{constructor(k,o,x,V){"string"==typeof k&&(k=M4.find(q=>q.name===k)),this.colorDomain=k.domain,this.scaleType=o,this.domain=x,this.customColors=V,this.scale=this.generateColorScheme(k,o,this.domain)}generateColorScheme(k,o,x){let V;switch("string"==typeof k&&(k=M4.find(q=>q.name===k)),o){case En.Quantile:V=P0().range(k.domain).domain(x);break;case En.Ordinal:V=I3().range(k.domain).domain(x);break;case En.Linear:{const q=[...k.domain];1===q.length&&(q.push(q[0]),this.colorDomain=q);const ke=k0(0,1,1/q.length);V=Do().range(q).domain(ke)}}return V}getColor(k){if(null==k)throw new Error("Value can not be null");if(this.scaleType===En.Linear){const o=Do().domain(this.domain).range([0,1]);return this.scale(o(k))}{if("function"==typeof this.customColors)return this.customColors(k);const o=k.toString();let x;return this.customColors&&this.customColors.length>0&&(x=this.customColors.find(V=>V.name.toLowerCase()===o.toLowerCase())),x?x.value:this.scale(k)}}getLinearGradientStops(k,o){void 0===o&&(o=this.domain[0]);const x=Do().domain(this.domain).range([0,1]),V=m1().domain(this.colorDomain).range([0,1]),q=this.getColor(k),ke=x(o),st=this.getColor(o),Ut=x(k);let Bt=1,li=ke;const bi=[];for(bi.push({color:st,offset:ke,originalOffset:ke,opacity:1});li=(Ut-V.bandwidth()).toFixed(4))break;bi.push({color:wi,offset:Di,opacity:1}),li=Di,Bt++}}if(bi[bi.length-1].offset<100&&bi.push({color:q,offset:Ut,opacity:1}),Ut===ke)bi[0].offset=0,bi[1].offset=100;else if(100!==bi[bi.length-1].offset)for(const wi of bi)wi.offset=(wi.offset-ke)/(Ut-ke)*100;return bi}}let Rl=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Hc=(()=>{class m{constructor(o){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=o.nativeElement}ngOnChanges(o){o.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+_2().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 Kt(m){return"string"==typeof m?new Mi([[document.querySelector(m)]],[document.documentElement]):new Mi([[m]],Vt)}(this.element).select(".bar"),x=this.getPath();this.animations?o.transition().duration(500).attr("d",x):o.attr("d",x)}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 x,o=this.getRadius();return this.roundEdges?this.orientation===ta.Vertical?(o=Math.min(this.height,o),x=Ps(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===ta.Horizontal&&(o=Math.min(this.width,o),x=Ps(this.x,this.y,1,this.height,0,this.edges)):this.orientation===ta.Vertical?x=Ps(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===ta.Horizontal&&(x=Ps(this.x,this.y,1,this.height,0,this.edges)),x}getPath(){let x,o=this.getRadius();return this.roundEdges?this.orientation===ta.Vertical?(o=Math.min(this.height,o),x=Ps(this.x,this.y,this.width,this.height,o,this.edges)):this.orientation===ta.Horizontal&&(o=Math.min(this.width,o),x=Ps(this.x,this.y,this.width,this.height,o,this.edges)):x=Ps(this.x,this.y,this.width,this.height,o,this.edges),x}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===ta.Vertical?o=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===ta.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===ta.Vertical&&0===this.height||this.orientation===ta.Horizontal&&0===this.width)}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(o,x){1&o&&t.NdJ("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(){return x.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:[t.TTD],attrs:b5,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,x){1&o&&(t.YNc(0,fs,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return x.select.emit(x.data)}),t.qZA()),2&o&&(t.Q6J("ngIf",x.hasGradient),t.xp6(1),t.ekj("active",x.isActive)("hidden",x.hideBar),t.uIk("d",x.path)("aria-label",x.ariaLabel)("fill",x.hasGradient?x.gradientFill:x.fill))},directives:[b1,e.O5],encapsulation:2,changeDetection:0}),m})();var zs=(()=>{return(m=zs||(zs={})).Standard="standard",m.Normalized="normalized",m.Stacked="stacked",zs;var m})(),vo=(()=>{return(m=vo||(vo={})).positive="positive",m.negative="negative",vo;var m})();let Fc=(()=>{class m{constructor(o){this.dimensionsChanged=new t.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):g2(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 m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,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:[t.TTD],attrs:M5,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&o&&(t.uIk("text-anchor",x.textAnchor)("transform",x.transform)("x",x.x)("y",x.y),t.xp6(1),t.hij(" ",x.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),m})(),Vc=(()=>{class m{constructor(o){this.platformId=o,this.type=zs.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.dataLabelHeightChanged=new t.vpe,this.barsForDataLabels=[],this.barOrientation=ta,this.isSSR=!1}ngOnInit(){(0,e.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 x=Math.max(this.yScale.domain()[0],0),V={[vo.positive]:0,[vo.negative]:0};let ke,q=vo.positive;this.type===zs.Normalized&&(ke=this.series.map(st=>st.value).reduce((st,Ut)=>st+Ut,0)),this.bars=this.series.map((st,Ut)=>{let Bt=st.value;const li=this.getLabel(st),bi=g2(li);q=Bt>0?vo.positive:vo.negative;const Di={value:Bt,label:li,roundEdges:this.roundEdges,data:st,width:o,formattedLabel:bi,height:0,x:0,y:0};if(this.type===zs.Standard)Di.height=Math.abs(this.yScale(Bt)-this.yScale(x)),Di.x=this.xScale(li),Di.y=this.yScale(Bt<0?0:Bt);else if(this.type===zs.Stacked){const vn=V[q],Ii=vn+Bt;V[q]+=Bt,Di.height=this.yScale(vn)-this.yScale(Ii),Di.x=0,Di.y=this.yScale(Ii),Di.offset0=vn,Di.offset1=Ii}else if(this.type===zs.Normalized){let vn=V[q],Ii=vn+Bt;V[q]+=Bt,ke>0?(vn=100*vn/ke,Ii=100*Ii/ke):(vn=0,Ii=0),Di.height=this.yScale(vn)-this.yScale(Ii),Di.x=0,Di.y=this.yScale(Ii),Di.offset0=vn,Di.offset1=Ii,Bt=(Ii-vn).toFixed(2)+"%"}this.colors.scaleType===En.Ordinal?Di.color=this.colors.getColor(li):this.type===zs.Standard?(Di.color=this.colors.getColor(Bt),Di.gradientStops=this.colors.getLinearGradientStops(Bt)):(Di.color=this.colors.getColor(Di.offset1),Di.gradientStops=this.colors.getLinearGradientStops(Di.offset1,Di.offset0));let rn=bi;return Di.ariaLabel=bi+" "+Bt.toLocaleString(),null!=this.seriesName&&(rn=`${this.seriesName} \u2022 ${bi}`,Di.data.series=this.seriesName,Di.ariaLabel=this.seriesName+" "+Di.ariaLabel),Di.tooltipText=this.tooltipDisabled?void 0:`\n ${function C2(m){return m.toLocaleString().replace(/[&'`"<>]/g,k=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[k]))}(rn)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(Bt):Bt.toLocaleString()}\n `,Di}),this.updateDataLabels()}updateDataLabels(){if(this.type===zs.Stacked){this.barsForDataLabels=[];const o={};o.series=this.seriesName;const x=this.series.map(q=>q.value).reduce((q,ke)=>ke>0?q+ke:q,0),V=this.series.map(q=>q.value).reduce((q,ke)=>ke<0?q+ke:q,0);o.total=x+V,o.x=0,o.y=0,o.height=this.yScale(o.total>0?x:V),o.width=this.xScale.bandwidth(),this.barsForDataLabels.push(o)}else this.barsForDataLabels=this.series.map(o=>{var x;const V={};return V.series=null!==(x=this.seriesName)&&void 0!==x?x:o.label,V.total=o.value,V.x=this.xScale(o.label),V.y=this.yScale(0),V.height=this.yScale(V.total)-this.yScale(0),V.width=this.xScale.bandwidth(),V})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:jn.Top,this.tooltipType=this.tooltipDisabled?void 0:e1.tooltip}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(V=>o.name===V.name&&o.value===V.value)}onClick(o){this.select.emit(o)}getLabel(o){return o.label?o.label:o.name}trackBy(o,x){return x.label}trackDataLabelBy(o,x){return o+"#"+x.series+"#"+x.total}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,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:[t.TTD],attrs:K3,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,x){1&o&&(t.YNc(0,sc,2,2,"g",0),t.YNc(1,gl,2,2,"g",0),t.YNc(2,oc,2,2,"g",0)),2&o&&(t.Q6J("ngIf",!x.isSSR),t.xp6(1),t.Q6J("ngIf",x.isSSR),t.xp6(1),t.Q6J("ngIf",x.showDataLabel))},directives:[Hc,Fc,e.O5,e.sg,g4],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}),m})(),Dd=(()=>{class m extends Al{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Vs.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 t.vpe,this.deactivate=new t.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=Nl({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 m1().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const o=Do().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(q=>q.value);let x=this.yScaleMin?Math.min(this.yScaleMin,...o):Math.min(0,...o);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(x=Math.min(x,...this.yAxisTicks));let V=this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(V=Math.max(V,...this.yAxisTicks)),[x,V]}onClick(o){this.select.emit(o)}setColors(){let o;o=this.schemeType===En.Ordinal?this.xDomain:this.yDomain,this.colors=new M2(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===En.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,x=!1){o=this.results.find(q=>x?q.label===o.name:q.name===o.name),!(this.activeEntries.findIndex(q=>q.name===o.name&&q.value===o.value&&q.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,x=!1){o=this.results.find(q=>x?q.label===o.name:q.name===o.name);const V=this.activeEntries.findIndex(q=>q.name===o.name&&q.value===o.value&&q.series===o.series);this.activeEntries.splice(V,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}}return m.\u0275fac=function(){let k;return function(x){return(k||(k=t.n5z(m)))(x||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(o,x,V){if(1&o&&t.Suo(V,Y0,5),2&o){let q;t.iGM(q=t.CRH())&&(x.tooltipTemplate=q.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:[t.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,x){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function(q){return x.onClick(q)})("legendLabelActivate",function(q){return x.onActivate(q,!0)})("legendLabelDeactivate",function(q){return x.onDeactivate(q,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,Cl,1,11,"g",2),t.YNc(3,_l,1,9,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function(q){return x.onActivate(q)})("deactivate",function(q){return x.onDeactivate(q)})("select",function(q){return x.onClick(q)})("dataLabelHeightChanged",function(q){return x.onDataLabelMaxHeightChanged(q)}),t.qZA()()()),2&o&&(t.Q6J("view",t.WLB(22,Fs,x.width,x.height))("showLegend",x.legend)("legendOptions",x.legendOptions)("activeEntries",x.activeEntries)("animations",x.animations),t.xp6(1),t.uIk("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.xAxis),t.xp6(1),t.Q6J("ngIf",x.yAxis),t.xp6(1),t.Q6J("xScale",x.xScale)("yScale",x.yScale)("colors",x.colors)("series",x.results)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("activeEntries",x.activeEntries)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero))},directives:[u4,Dl,m4,Vc,e.O5],styles:[J0],encapsulation:2,changeDetection:0}),m})(),zc=(()=>{class m extends Al{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Vs.Right,this.tooltipDisabled=!1,this.scaleType=En.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 t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=ta,this.trackBy=(o,x)=>x.name}ngOnInit(){(0,e.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=Nl({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,x){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),x===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return m1().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)}getInnerScale(){const o=this.groupScale.bandwidth(),x=this.innerDomain.length/(o/this.barPadding+1);return m1().rangeRound([0,o]).paddingInner(x).domain(this.innerDomain)}getValueScale(){const o=Do().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o}getGroupDomain(){const o=[];for(const x of this.results)o.includes(x.label)||o.push(x.label);return o}getInnerDomain(){const o=[];for(const x of this.results)for(const V of x.series)o.includes(V.label)||o.push(V.label);return o}getValueDomain(){const o=[];for(const q of this.results)for(const ke of q.series)o.includes(ke.value)||o.push(ke.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,x){x&&(o.series=x.name),this.select.emit(o)}setColors(){let o;o=this.schemeType===En.Ordinal?this.innerDomain:this.valueDomain,this.colors=new M2(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===En.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,x,V=!1){const q=Object.assign({},o);x&&(q.series=x.name);const ke=this.results.map(st=>st.series).flat().filter(st=>V?st.label===q.name:st.name===q.name&&st.series===q.series);this.activeEntries=[...ke],this.activate.emit({value:q,entries:this.activeEntries})}onDeactivate(o,x,V=!1){const q=Object.assign({},o);x&&(q.series=x.name),this.activeEntries=this.activeEntries.filter(ke=>V?ke.label!==q.name:!(ke.name===q.name&&ke.series===q.series)),this.deactivate.emit({value:q,entries:this.activeEntries})}}return m.\u0275fac=function(){let k;return function(x){return(k||(k=t.n5z(m)))(x||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(o,x,V){if(1&o&&t.Suo(V,Y0,5),2&o){let q;t.iGM(q=t.CRH())&&(x.tooltipTemplate=q.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:[t.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,x){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function(q){return x.onActivate(q,void 0,!0)})("legendLabelDeactivate",function(q){return x.onDeactivate(q,void 0,!0)})("legendLabelClick",function(q){return x.onClick(q)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,R5,1,10,"g",3),t.YNc(4,vl,1,9,"g",4),t.YNc(5,q3,2,2,"g",5),t.qZA(),t.YNc(6,H5,2,2,"g",5),t.qZA()),2&o&&(t.Q6J("view",t.WLB(15,Fs,x.width,x.height))("showLegend",x.legend)("legendOptions",x.legendOptions)("activeEntries",x.activeEntries)("animations",x.animations),t.xp6(1),t.uIk("transform",x.transform),t.xp6(1),t.Q6J("xScale",x.groupScale)("yScale",x.valueScale)("data",x.results)("dims",x.dims)("orient",x.barOrientation.Vertical),t.xp6(1),t.Q6J("ngIf",x.xAxis),t.xp6(1),t.Q6J("ngIf",x.yAxis),t.xp6(1),t.Q6J("ngIf",!x.isSSR),t.xp6(1),t.Q6J("ngIf",x.isSSR))},directives:[u4,M1,Dl,m4,Vc,e.O5,e.sg],styles:[J0],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}),m})(),L4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Od=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Pd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),J8=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),T4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})();Math;let Fl=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Vd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms,Fl,T4]]}),m})(),O4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Jc=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms]]}),m})(),Yd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[ms,Fl,L4]]}),m})(),jd=(()=>{class m{constructor(){!function k4(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[ms,Rl,L4,Od,Pd,J8,T4,Vd,O4,Fl,Jc,Yd]}),m})()},159:(Fe,Y,p)=>{"use strict";p.d(Y,{OF:()=>A,uU:()=>h});var t=p(5e3),e=p(9808),f=p(655),M=p(3259);function a(D,w){if(1&D&&t._UZ(0,"canvas",1),2&D){const S=t.oxw();t.Q6J("qrCode",S.value)("qrCodeErrorCorrectionLevel",S.errorCorrectionLevel)("qrCodeCenterImageSrc",S.centerImageSrc)("qrCodeCenterImageWidth",S.centerImageSize)("qrCodeCenterImageHeight",S.centerImageSize)("qrCodeMargin",S.margin)("width",S.size)("height",S.size)("darkColor",S.darkColor)("lightColor",S.lightColor)}}const b=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let d=(()=>{class D{constructor(S){this.viewContainerRef=S,this.errorCorrectionLevel=D.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var S,I;return(0,f.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 L=this.viewContainerRef.element.nativeElement;if(!L)return;const U=L.getContext("2d");U&&U.clearRect(0,0,U.canvas.width,U.canvas.height);const Z=null!==(S=this.errorCorrectionLevel)&&void 0!==S?S:D.DEFAULT_ERROR_CORRECTION_LEVEL,j=b.test(this.darkColor)?this.darkColor:void 0,ne=b.test(this.lightColor)?this.lightColor:void 0;(0,t.X6Q)()&&(!j&&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 M.toCanvas(L,this.value,{version:this.version,errorCorrectionLevel:Z,width:this.width,margin:this.margin,color:{dark:j,light:ne}});const X=this.centerImageSrc,de=N(this.centerImageWidth,D.DEFAULT_CENTER_IMAGE_SIZE),ee=N(this.centerImageHeight,D.DEFAULT_CENTER_IMAGE_SIZE);if(X&&U){this.centerImage||(this.centerImage=new Image(de,ee)),X!==(null===(I=this.centerImage)||void 0===I?void 0:I.src)&&(this.centerImage.src=X),de!==this.centerImage.width&&(this.centerImage.width=de),ee!==this.centerImage.height&&(this.centerImage.height=ee);const te=this.centerImage;te.onload=()=>{U.drawImage(te,L.width/2-de/2,L.height/2-ee/2,de,ee)}}})}}return D.DEFAULT_ERROR_CORRECTION_LEVEL="M",D.DEFAULT_CENTER_IMAGE_SIZE=40,D.\u0275fac=function(S){return new(S||D)(t.Y36(t.s_b))},D.\u0275dir=t.lG2({type:D,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:[t.TTD]}),D})();function N(D,w){return void 0===D||""===D?w:"string"==typeof D?parseInt(D,10):D}let h=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275cmp=t.Xpm({type:D,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(S,I){1&S&&t.YNc(0,a,1,10,"canvas",0),2&S&&t.Q6J("ngIf",I.value)},directives:[e.O5,d],encapsulation:2}),D})(),A=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[e.ez]]}),D})()},8129:(Fe,Y,p)=>{"use strict";p.d(Y,{op:()=>$t,$V:()=>be,Xd:()=>Ht});var t=p(7579),e=p(4968),f=p(3601),M=p(2722),a=p(5e3),b=p(9808);function d(it){return getComputedStyle(it)}function N(it,Ne){for(var tt in Ne){var Je=Ne[tt];"number"==typeof Je&&(Je+="px"),it.style[tt]=Je}return it}function h(it){var Ne=document.createElement("div");return Ne.className=it,Ne}var A="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function D(it,Ne){if(!A)throw new Error("No element matching method supported");return A.call(it,Ne)}function w(it){it.remove?it.remove():it.parentNode&&it.parentNode.removeChild(it)}function S(it,Ne){return Array.prototype.filter.call(it.children,function(tt){return D(tt,Ne)})}var I_element_thumb=function(it){return"ps__thumb-"+it},I_element_rail=function(it){return"ps__rail-"+it},I_element_consuming="ps__child--consume",I_state_focus="ps--focus",I_state_clicking="ps--clicking",I_state_active=function(it){return"ps--active-"+it},I_state_scrolling=function(it){return"ps--scrolling-"+it},L={x:null,y:null};function U(it,Ne){var tt=it.element.classList,Je=I_state_scrolling(Ne);tt.contains(Je)?clearTimeout(L[Ne]):tt.add(Je)}function Z(it,Ne){L[Ne]=setTimeout(function(){return it.isAlive&&it.element.classList.remove(I_state_scrolling(Ne))},it.settings.scrollingThreshold)}var ne=function(Ne){this.element=Ne,this.handlers={}},X={isEmpty:{configurable:!0}};ne.prototype.bind=function(Ne,tt){void 0===this.handlers[Ne]&&(this.handlers[Ne]=[]),this.handlers[Ne].push(tt),this.element.addEventListener(Ne,tt,!1)},ne.prototype.unbind=function(Ne,tt){var Je=this;this.handlers[Ne]=this.handlers[Ne].filter(function(Se){return!(!tt||Se===tt)||(Je.element.removeEventListener(Ne,Se,!1),!1)})},ne.prototype.unbindAll=function(){for(var Ne in this.handlers)this.unbind(Ne)},X.isEmpty.get=function(){var it=this;return Object.keys(this.handlers).every(function(Ne){return 0===it.handlers[Ne].length})},Object.defineProperties(ne.prototype,X);var de=function(){this.eventElements=[]};function ee(it){if("function"==typeof window.CustomEvent)return new CustomEvent(it);var Ne=document.createEvent("CustomEvent");return Ne.initCustomEvent(it,!1,!1,void 0),Ne}function te(it,Ne,tt,Je,Se){var Ue;if(void 0===Je&&(Je=!0),void 0===Se&&(Se=!1),"top"===Ne)Ue=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Ne)throw new Error("A proper axis should be provided");Ue=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function ce(it,Ne,tt,Je,Se){var Ue=tt[0],rt=tt[1],at=tt[2],yt=tt[3],gi=tt[4],Qt=tt[5];void 0===Je&&(Je=!0),void 0===Se&&(Se=!1);var Jt=it.element;it.reach[yt]=null,Jt[at]<1&&(it.reach[yt]="start"),Jt[at]>it[Ue]-it[rt]-1&&(it.reach[yt]="end"),Ne&&(Jt.dispatchEvent(ee("ps-scroll-"+yt)),Ne<0?Jt.dispatchEvent(ee("ps-scroll-"+gi)):Ne>0&&Jt.dispatchEvent(ee("ps-scroll-"+Qt)),Je&&function j(it,Ne){U(it,Ne),Z(it,Ne)}(it,yt)),it.reach[yt]&&(Ne||Se)&&Jt.dispatchEvent(ee("ps-"+yt+"-reach-"+it.reach[yt]))}(it,tt,Ue,Je,Se)}function J(it){return parseInt(it,10)||0}de.prototype.eventElement=function(Ne){var tt=this.eventElements.filter(function(Je){return Je.element===Ne})[0];return tt||(tt=new ne(Ne),this.eventElements.push(tt)),tt},de.prototype.bind=function(Ne,tt,Je){this.eventElement(Ne).bind(tt,Je)},de.prototype.unbind=function(Ne,tt,Je){var Se=this.eventElement(Ne);Se.unbind(tt,Je),Se.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Se),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(Ne){return Ne.unbindAll()}),this.eventElements=[]},de.prototype.once=function(Ne,tt,Je){var Se=this.eventElement(Ne),Ue=function(rt){Se.unbind(tt,Ue),Je(rt)};Se.bind(tt,Ue)};var i={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(it){var Ne=it.element,tt=Math.floor(Ne.scrollTop),Je=Ne.getBoundingClientRect();it.containerWidth=Math.round(Je.width),it.containerHeight=Math.round(Je.height),it.contentWidth=Ne.scrollWidth,it.contentHeight=Ne.scrollHeight,Ne.contains(it.scrollbarXRail)||(S(Ne,I_element_rail("x")).forEach(function(Se){return w(Se)}),Ne.appendChild(it.scrollbarXRail)),Ne.contains(it.scrollbarYRail)||(S(Ne,I_element_rail("y")).forEach(function(Se){return w(Se)}),Ne.appendChild(it.scrollbarYRail)),!it.settings.suppressScrollX&&it.containerWidth+it.settings.scrollXMarginOffset=it.railXWidth-it.scrollbarXWidth&&(it.scrollbarXLeft=it.railXWidth-it.scrollbarXWidth),it.scrollbarYTop>=it.railYHeight-it.scrollbarYHeight&&(it.scrollbarYTop=it.railYHeight-it.scrollbarYHeight),function c(it,Ne){var tt={width:Ne.railXWidth},Je=Math.floor(it.scrollTop);tt.left=Ne.isRtl?Ne.negativeScrollAdjustment+it.scrollLeft+Ne.containerWidth-Ne.contentWidth:it.scrollLeft,Ne.isScrollbarXUsingBottom?tt.bottom=Ne.scrollbarXBottom-Je:tt.top=Ne.scrollbarXTop+Je,N(Ne.scrollbarXRail,tt);var Se={top:Je,height:Ne.railYHeight};Ne.isScrollbarYUsingRight?Se.right=Ne.isRtl?Ne.contentWidth-(Ne.negativeScrollAdjustment+it.scrollLeft)-Ne.scrollbarYRight-Ne.scrollbarYOuterWidth-9:Ne.scrollbarYRight-it.scrollLeft:Se.left=Ne.isRtl?Ne.negativeScrollAdjustment+it.scrollLeft+2*Ne.containerWidth-Ne.contentWidth-Ne.scrollbarYLeft-Ne.scrollbarYOuterWidth:Ne.scrollbarYLeft+it.scrollLeft,N(Ne.scrollbarYRail,Se),N(Ne.scrollbarX,{left:Ne.scrollbarXLeft,width:Ne.scrollbarXWidth-Ne.railBorderXWidth}),N(Ne.scrollbarY,{top:Ne.scrollbarYTop,height:Ne.scrollbarYHeight-Ne.railBorderYWidth})}(Ne,it),it.scrollbarXActive?Ne.classList.add(I_state_active("x")):(Ne.classList.remove(I_state_active("x")),it.scrollbarXWidth=0,it.scrollbarXLeft=0,Ne.scrollLeft=!0===it.isRtl?it.contentWidth:0),it.scrollbarYActive?Ne.classList.add(I_state_active("y")):(Ne.classList.remove(I_state_active("y")),it.scrollbarYHeight=0,it.scrollbarYTop=0,Ne.scrollTop=0)}function u(it,Ne){return it.settings.minScrollbarLength&&(Ne=Math.max(Ne,it.settings.minScrollbarLength)),it.settings.maxScrollbarLength&&(Ne=Math.min(Ne,it.settings.maxScrollbarLength)),Ne}function O(it,Ne){var tt=Ne[0],Je=Ne[1],Se=Ne[2],Ue=Ne[3],rt=Ne[4],at=Ne[5],yt=Ne[6],gi=Ne[7],Qt=Ne[8],Jt=it.element,Xi=null,fi=null,ai=null;function tn(Yi){Yi.touches&&Yi.touches[0]&&(Yi[Se]=Yi.touches[0].pageY),Jt[yt]=Xi+ai*(Yi[Se]-fi),U(it,gi),r(it),Yi.stopPropagation(),Yi.type.startsWith("touch")&&Yi.changedTouches.length>1&&Yi.preventDefault()}function Wi(){Z(it,gi),it[Qt].classList.remove(I_state_clicking),it.event.unbind(it.ownerDocument,"mousemove",tn)}function Gi(Yi,ze){Xi=Jt[yt],ze&&Yi.touches&&(Yi[Se]=Yi.touches[0].pageY),fi=Yi[Se],ai=(it[Je]-it[tt])/(it[Ue]-it[at]),ze?it.event.bind(it.ownerDocument,"touchmove",tn):(it.event.bind(it.ownerDocument,"mousemove",tn),it.event.once(it.ownerDocument,"mouseup",Wi),Yi.preventDefault()),it[Qt].classList.add(I_state_clicking),Yi.stopPropagation()}it.event.bind(it[rt],"mousedown",function(Yi){Gi(Yi)}),it.event.bind(it[rt],"touchstart",function(Yi){Gi(Yi,!0)})}var P={"click-rail":function C(it){it.event.bind(it.scrollbarY,"mousedown",function(tt){return tt.stopPropagation()}),it.event.bind(it.scrollbarYRail,"mousedown",function(tt){var Je=tt.pageY-window.pageYOffset-it.scrollbarYRail.getBoundingClientRect().top;it.element.scrollTop+=(Je>it.scrollbarYTop?1:-1)*it.containerHeight,r(it),tt.stopPropagation()}),it.event.bind(it.scrollbarX,"mousedown",function(tt){return tt.stopPropagation()}),it.event.bind(it.scrollbarXRail,"mousedown",function(tt){var Je=tt.pageX-window.pageXOffset-it.scrollbarXRail.getBoundingClientRect().left;it.element.scrollLeft+=(Je>it.scrollbarXLeft?1:-1)*it.containerWidth,r(it),tt.stopPropagation()})},"drag-thumb":function E(it){O(it,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),O(it,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function _(it){var Ne=it.element;it.event.bind(it.ownerDocument,"keydown",function(Ue){if(!(Ue.isDefaultPrevented&&Ue.isDefaultPrevented()||Ue.defaultPrevented)&&(D(Ne,":hover")||D(it.scrollbarX,":focus")||D(it.scrollbarY,":focus"))){var rt=document.activeElement?document.activeElement:it.ownerDocument.activeElement;if(rt){if("IFRAME"===rt.tagName)rt=rt.contentDocument.activeElement;else for(;rt.shadowRoot;)rt=rt.shadowRoot.activeElement;if(function ge(it){return D(it,"input,[contenteditable]")||D(it,"select,[contenteditable]")||D(it,"textarea,[contenteditable]")||D(it,"button,[contenteditable]")}(rt))return}var at=0,yt=0;switch(Ue.which){case 37:at=Ue.metaKey?-it.contentWidth:Ue.altKey?-it.containerWidth:-30;break;case 38:yt=Ue.metaKey?it.contentHeight:Ue.altKey?it.containerHeight:30;break;case 39:at=Ue.metaKey?it.contentWidth:Ue.altKey?it.containerWidth:30;break;case 40:yt=Ue.metaKey?-it.contentHeight:Ue.altKey?-it.containerHeight:-30;break;case 32:yt=Ue.shiftKey?it.containerHeight:-it.containerHeight;break;case 33:yt=it.containerHeight;break;case 34:yt=-it.containerHeight;break;case 36:yt=it.contentHeight;break;case 35:yt=-it.contentHeight;break;default:return}it.settings.suppressScrollX&&0!==at||it.settings.suppressScrollY&&0!==yt||(Ne.scrollTop-=yt,Ne.scrollLeft+=at,r(it),function Se(Ue,rt){var at=Math.floor(Ne.scrollTop);if(0===Ue){if(!it.scrollbarYActive)return!1;if(0===at&&rt>0||at>=it.contentHeight-it.containerHeight&&rt<0)return!it.settings.wheelPropagation}var yt=Ne.scrollLeft;if(0===rt){if(!it.scrollbarXActive)return!1;if(0===yt&&Ue<0||yt>=it.contentWidth-it.containerWidth&&Ue>0)return!it.settings.wheelPropagation}return!0}(at,yt)&&Ue.preventDefault())}})},wheel:function n(it){var Ne=it.element;function Ue(rt){var at=function Je(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],gi=at[1];if(!function Se(rt,at,yt){if(!i.isWebKit&&Ne.querySelector("select:focus"))return!0;if(!Ne.contains(rt))return!1;for(var gi=rt;gi&&gi!==Ne;){if(gi.classList.contains(I_element_consuming))return!0;var Qt=d(gi);if(yt&&Qt.overflowY.match(/(scroll|auto)/)){var Jt=gi.scrollHeight-gi.clientHeight;if(Jt>0&&(gi.scrollTop>0&&yt<0||gi.scrollTop0))return!0}if(at&&Qt.overflowX.match(/(scroll|auto)/)){var Xi=gi.scrollWidth-gi.clientWidth;if(Xi>0&&(gi.scrollLeft>0&&at<0||gi.scrollLeft0))return!0}gi=gi.parentNode}return!1}(rt.target,yt,gi)){var Qt=!1;it.settings.useBothWheelAxes?it.scrollbarYActive&&!it.scrollbarXActive?(gi?Ne.scrollTop-=gi*it.settings.wheelSpeed:Ne.scrollTop+=yt*it.settings.wheelSpeed,Qt=!0):it.scrollbarXActive&&!it.scrollbarYActive&&(yt?Ne.scrollLeft+=yt*it.settings.wheelSpeed:Ne.scrollLeft-=gi*it.settings.wheelSpeed,Qt=!0):(Ne.scrollTop-=gi*it.settings.wheelSpeed,Ne.scrollLeft+=yt*it.settings.wheelSpeed),r(it),Qt=Qt||function tt(rt,at){var yt=Math.floor(Ne.scrollTop),gi=0===Ne.scrollTop,Qt=yt+Ne.offsetHeight===Ne.scrollHeight,Jt=0===Ne.scrollLeft,Xi=Ne.scrollLeft+Ne.offsetWidth===Ne.scrollWidth;return!(Math.abs(at)>Math.abs(rt)?gi||Qt:Jt||Xi)||!it.settings.wheelPropagation}(yt,gi),Qt&&!rt.ctrlKey&&(rt.stopPropagation(),rt.preventDefault())}}void 0!==window.onwheel?it.event.bind(Ne,"wheel",Ue):void 0!==window.onmousewheel&&it.event.bind(Ne,"mousewheel",Ue)},touch:function v(it){if(i.supportsTouch||i.supportsIePointer){var Ne=it.element,Se={},Ue=0,rt={},at=null;i.supportsTouch?(it.event.bind(Ne,"touchstart",Qt),it.event.bind(Ne,"touchmove",Xi),it.event.bind(Ne,"touchend",fi)):i.supportsIePointer&&(window.PointerEvent?(it.event.bind(Ne,"pointerdown",Qt),it.event.bind(Ne,"pointermove",Xi),it.event.bind(Ne,"pointerup",fi)):window.MSPointerEvent&&(it.event.bind(Ne,"MSPointerDown",Qt),it.event.bind(Ne,"MSPointerMove",Xi),it.event.bind(Ne,"MSPointerUp",fi)))}function Je(ai,tn){Ne.scrollTop-=tn,Ne.scrollLeft-=ai,r(it)}function yt(ai){return ai.targetTouches?ai.targetTouches[0]:ai}function gi(ai){return!(ai.pointerType&&"pen"===ai.pointerType&&0===ai.buttons||!(ai.targetTouches&&1===ai.targetTouches.length||ai.pointerType&&"mouse"!==ai.pointerType&&ai.pointerType!==ai.MSPOINTER_TYPE_MOUSE))}function Qt(ai){if(gi(ai)){var tn=yt(ai);Se.pageX=tn.pageX,Se.pageY=tn.pageY,Ue=(new Date).getTime(),null!==at&&clearInterval(at)}}function Xi(ai){if(gi(ai)){var tn=yt(ai),Wi={pageX:tn.pageX,pageY:tn.pageY},Gi=Wi.pageX-Se.pageX,Yi=Wi.pageY-Se.pageY;if(function Jt(ai,tn,Wi){if(!Ne.contains(ai))return!1;for(var Gi=ai;Gi&&Gi!==Ne;){if(Gi.classList.contains(I_element_consuming))return!0;var Yi=d(Gi);if(Wi&&Yi.overflowY.match(/(scroll|auto)/)){var ze=Gi.scrollHeight-Gi.clientHeight;if(ze>0&&(Gi.scrollTop>0&&Wi<0||Gi.scrollTop0))return!0}if(tn&&Yi.overflowX.match(/(scroll|auto)/)){var Lt=Gi.scrollWidth-Gi.clientWidth;if(Lt>0&&(Gi.scrollLeft>0&&tn<0||Gi.scrollLeft0))return!0}Gi=Gi.parentNode}return!1}(ai.target,Gi,Yi))return;Je(Gi,Yi),Se=Wi;var ze=(new Date).getTime(),Lt=ze-Ue;Lt>0&&(rt.x=Gi/Lt,rt.y=Yi/Lt,Ue=ze),function tt(ai,tn){var Wi=Math.floor(Ne.scrollTop),Gi=Ne.scrollLeft,Yi=Math.abs(ai),ze=Math.abs(tn);if(ze>Yi){if(tn<0&&Wi===it.contentHeight-it.containerHeight||tn>0&&0===Wi)return 0===window.scrollY&&tn>0&&i.isChrome}else if(Yi>ze&&(ai<0&&Gi===it.contentWidth-it.containerWidth||ai>0&&0===Gi))return!0;return!0}(Gi,Yi)&&ai.preventDefault()}}function fi(){it.settings.swipeEasing&&(clearInterval(at),at=setInterval(function(){it.isInitialized?clearInterval(at):rt.x||rt.y?Math.abs(rt.x)<.01&&Math.abs(rt.y)<.01?clearInterval(at):it.element?(Je(30*rt.x,30*rt.y),rt.x*=.8,rt.y*=.8):clearInterval(at):clearInterval(at)},10))}}},z=function(Ne,tt){var Je=this;if(void 0===tt&&(tt={}),"string"==typeof Ne&&(Ne=document.querySelector(Ne)),!Ne||!Ne.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Se in this.element=Ne,Ne.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},tt)this.settings[Se]=tt[Se];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Qt,gi,Ue=function(){return Ne.classList.add(I_state_focus)},rt=function(){return Ne.classList.remove(I_state_focus)};this.isRtl="rtl"===d(Ne).direction,!0===this.isRtl&&Ne.classList.add("ps__rtl"),this.isNegativeScroll=(gi=Ne.scrollLeft,Ne.scrollLeft=-1,Qt=Ne.scrollLeft<0,Ne.scrollLeft=gi,Qt),this.negativeScrollAdjustment=this.isNegativeScroll?Ne.scrollWidth-Ne.clientWidth:0,this.event=new de,this.ownerDocument=Ne.ownerDocument||document,this.scrollbarXRail=h(I_element_rail("x")),Ne.appendChild(this.scrollbarXRail),this.scrollbarX=h(I_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Ue),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),N(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=J(at.marginLeft)+J(at.marginRight),N(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=h(I_element_rail("y")),Ne.appendChild(this.scrollbarYRail),this.scrollbarY=h(I_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Ue),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 y(it){var Ne=d(it);return J(Ne.width)+J(Ne.paddingLeft)+J(Ne.paddingRight)+J(Ne.borderLeftWidth)+J(Ne.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=J(yt.borderTopWidth)+J(yt.borderBottomWidth),N(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=J(yt.marginTop)+J(yt.marginBottom),N(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Ne.scrollLeft<=0?"start":Ne.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Ne.scrollTop<=0?"start":Ne.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(gi){return P[gi](Je)}),this.lastScrollTop=Math.floor(Ne.scrollTop),this.lastScrollLeft=Ne.scrollLeft,this.event.bind(this.element,"scroll",function(gi){return Je.onScroll(gi)}),r(this)};z.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,N(this.scrollbarXRail,{display:"block"}),N(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),N(this.scrollbarXRail,{display:"none"}),N(this.scrollbarYRail,{display:"none"}),r(this),te(this,"top",0,!1,!0),te(this,"left",0,!1,!0),N(this.scrollbarXRail,{display:""}),N(this.scrollbarYRail,{display:""}))},z.prototype.onScroll=function(Ne){!this.isAlive||(r(this),te(this,"top",this.element.scrollTop-this.lastScrollTop),te(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},z.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),w(this.scrollbarX),w(this.scrollbarY),w(this.scrollbarXRail),w(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},z.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Ne){return!Ne.match(/^ps([-_].+|)$/)}).join(" ")};const se=z;var fe=function(){if("undefined"!=typeof Map)return Map;function it(Ne,tt){var Je=-1;return Ne.some(function(Se,Ue){return Se[0]===tt&&(Je=Ue,!0)}),Je}return function(){function Ne(){this.__entries__=[]}return Object.defineProperty(Ne.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Ne.prototype.get=function(tt){var Je=it(this.__entries__,tt),Se=this.__entries__[Je];return Se&&Se[1]},Ne.prototype.set=function(tt,Je){var Se=it(this.__entries__,tt);~Se?this.__entries__[Se][1]=Je:this.__entries__.push([tt,Je])},Ne.prototype.delete=function(tt){var Je=this.__entries__,Se=it(Je,tt);~Se&&Je.splice(Se,1)},Ne.prototype.has=function(tt){return!!~it(this.__entries__,tt)},Ne.prototype.clear=function(){this.__entries__.splice(0)},Ne.prototype.forEach=function(tt,Je){void 0===Je&&(Je=null);for(var Se=0,Ue=this.__entries__;Se0},it.prototype.connect_=function(){!xe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ae?(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)},it.prototype.disconnect_=function(){!xe||!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)},it.prototype.onTransitionEnd_=function(Ne){var tt=Ne.propertyName,Je=void 0===tt?"":tt;F.some(function(Ue){return!!~Je.indexOf(Ue)})&&this.refresh()},it.getInstance=function(){return this.instance_||(this.instance_=new it),this.instance_},it.instance_=null,it}(),Ie=function(it,Ne){for(var tt=0,Je=Object.keys(Ne);tt0},it}(),ui="undefined"!=typeof WeakMap?new WeakMap:new fe,xt=function it(Ne){if(!(this instanceof it))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var tt=lt.getInstance(),Je=new Gt(Ne,tt,this);ui.set(this,Je)};["observe","unobserve","disconnect"].forEach(function(it){xt.prototype[it]=function(){var Ne;return(Ne=ui.get(this))[it].apply(Ne,arguments)}});const gt=void 0!==Re.ResizeObserver?Re.ResizeObserver:xt,$t=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class jt{constructor(Ne,tt,Je,Se){this.x=Ne,this.y=tt,this.w=Je,this.h=Se}}class Pe{constructor(Ne,tt){this.x=Ne,this.y=tt}}const Oe=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class le{constructor(Ne={}){this.assign(Ne)}assign(Ne={}){for(const tt in Ne)this[tt]=Ne[tt]}}let be=(()=>{class it{constructor(tt,Je,Se,Ue,rt){this.zone=tt,this.differs=Je,this.elementRef=Se,this.platformId=Ue,this.defaults=rt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new t.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,b.NF)(this.platformId)){const tt=new le(this.defaults);tt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new se(this.elementRef.nativeElement,tt)}),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(()=>{Oe.forEach(Je=>{const Se=Je.replace(/([A-Z])/g,Ue=>`-${Ue.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,Se).pipe((0,f.e)(20),(0,M.R)(this.ngDestroy)).subscribe(Ue=>{this[Je].emit(Ue)})})})}}ngOnDestroy(){(0,b.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,b.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(tt){tt.disabled&&!tt.disabled.isFirstChange()&&(0,b.NF)(this.platformId)&&tt.disabled.currentValue!==tt.disabled.previousValue&&(!0===tt.disabled.currentValue?this.ngOnDestroy():!1===tt.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(tt){}},0))}geometry(tt="scroll"){return new jt(this.elementRef.nativeElement[tt+"Left"],this.elementRef.nativeElement[tt+"Top"],this.elementRef.nativeElement[tt+"Width"],this.elementRef.nativeElement[tt+"Height"])}position(tt=!1){return!tt&&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(tt="any"){const Je=this.elementRef.nativeElement;return"any"===tt?Je.classList.contains("ps--active-x")||Je.classList.contains("ps--active-y"):"both"===tt?Je.classList.contains("ps--active-x")&&Je.classList.contains("ps--active-y"):Je.classList.contains("ps--active-"+tt)}scrollTo(tt,Je,Se){this.disabled||(null==Je&&null==Se?this.animateScrolling("scrollTop",tt,Se):(null!=tt&&this.animateScrolling("scrollLeft",tt,Se),null!=Je&&this.animateScrolling("scrollTop",Je,Se)))}scrollToX(tt,Je){this.animateScrolling("scrollLeft",tt,Je)}scrollToY(tt,Je){this.animateScrolling("scrollTop",tt,Je)}scrollToTop(tt,Je){this.animateScrolling("scrollTop",tt||0,Je)}scrollToLeft(tt,Je){this.animateScrolling("scrollLeft",tt||0,Je)}scrollToRight(tt,Je){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(tt||0),Je)}scrollToBottom(tt,Je){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(tt||0),Je)}scrollToElement(tt,Je,Se){if("string"==typeof tt&&(tt=this.elementRef.nativeElement.querySelector(tt)),tt){const Ue=tt.getBoundingClientRect(),rt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",Ue.left-rt.left+this.elementRef.nativeElement.scrollLeft+(Je||0),Se),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",Ue.top-rt.top+this.elementRef.nativeElement.scrollTop+(Je||0),Se)}}animateScrolling(tt,Je,Se){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),Se&&"undefined"!=typeof window){if(Je!==this.elementRef.nativeElement[tt]){let Ue=0,rt=0,at=performance.now(),yt=this.elementRef.nativeElement[tt];const gi=(yt-Je)/2,Qt=Jt=>{rt+=Math.PI/(Se/(Jt-at)),Ue=Math.round(Je+gi+gi*Math.cos(rt)),this.elementRef.nativeElement[tt]===yt&&(rt>=Math.PI?this.animateScrolling(tt,Je,0):(this.elementRef.nativeElement[tt]=Ue,yt=this.elementRef.nativeElement[tt],at=Jt,this.animation=window.requestAnimationFrame(Qt)))};window.requestAnimationFrame(Qt)}}else this.elementRef.nativeElement[tt]=Je}}return it.\u0275fac=function(tt){return new(tt||it)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36($t,8))},it.\u0275dir=a.lG2({type:it,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]}),it})(),Ht=(()=>{class it{}return it.\u0275fac=function(tt){return new(tt||it)},it.\u0275mod=a.oAB({type:it}),it.\u0275inj=a.cJS({imports:[[b.ez],b.ez]}),it})()},4946:Fe=>{"use strict";Fe.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:Fe=>{"use strict";Fe.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:Fe=>{"use strict";Fe.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:Fe=>{"use strict";Fe.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:Fe=>{"use strict";Fe.exports={i8:"6.5.4"}},2562:Fe=>{"use strict";Fe.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"}')}},Fe=>{Fe(Fe.s=4886)}]); \ No newline at end of file diff --git a/frontend/runtime.053e1c7068c6feb4.js b/frontend/runtime.aaa2a40c5f2b2f06.js similarity index 52% rename from frontend/runtime.053e1c7068c6feb4.js rename to frontend/runtime.aaa2a40c5f2b2f06.js index 1f82fcaa..e4e53b63 100644 --- a/frontend/runtime.053e1c7068c6feb4.js +++ b/frontend/runtime.aaa2a40c5f2b2f06.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+"."+{564:"0428ec771d033752",636:"2179ed55de2143bc",893:"9a615c46b89a5a79",924:"5f21f58ee3917b8b"}[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):(c=!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+"."+{564:"5eb6603768afa44f",636:"2179ed55de2143bc",893:"9a615c46b89a5a79",924:"5f21f58ee3917b8b"}[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,c;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(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&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,s)=>i=e[f]=[l,s]);o.push(i[2]=a);var c=r.p+r.u(f),u=new Error;r.l(c,l=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;u.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",u.name="ChunkLoadError",u.type=s,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,c]=o,l=0;if(i.some(p=>0!==e[p])){for(u in a)r.o(a,u)&&(r.m[u]=a[u]);if(c)var s=c(r)}for(f&&f(o);l { if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } options.url = req.session.selectedNode.ln_server_url + '/v1/channel/listForwards?status=' + (req.query.status ? req.query.status : 'settled'); request.get(options).then((body) => { - if (body && body.length > 0) { body = common.sortDescByKey(body, 'received_time'); } - logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Channels', msg: 'Forwarding History Received For Status' + req.query.status, data: body }); + logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Forwarding History Received For Status ' + req.query.status, data: body }); res.status(200).json(body); }).catch((errRes) => { const err = common.handleError(errRes, 'Channels', 'Forwarding History Error', req.session.selectedNode); @@ -138,7 +137,7 @@ export const listForwardsPaginated = (req, res, next) => { options.url = req.session.selectedNode.ln_server_url + '/v1/channel/listForwardsPaginated' + queryStr; logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Paginated Forwarding History url' + options.url }); request.get(options).then((body) => { - logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Channels', msg: 'Paginated Forwarding History Received For Status ' + req.query.status, data: body }); + logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Paginated Forwarding History Received For Status ' + req.query.status, data: body }); res.status(200).json(body); }).catch((errRes) => { const err = common.handleError(errRes, 'Channels', 'Paginated Forwarding History Error', req.session.selectedNode); diff --git a/src/app/cln/home/fee-info/fee-info.component.html b/src/app/cln/home/fee-info/fee-info.component.html index 662e75b2..d254f52d 100644 --- a/src/app/cln/home/fee-info/fee-info.component.html +++ b/src/app/cln/home/fee-info/fee-info.component.html @@ -1,12 +1,12 @@
-
+

Total

{{fees?.feeCollected/1000 | number}} Sats
-
+

Transactions

{{fees?.totalTxCount | number}}
diff --git a/src/app/cln/home/home.component.ts b/src/app/cln/home/home.component.ts index c4678651..0c0f9436 100644 --- a/src/app/cln/home/home.component.ts +++ b/src/app/cln/home/home.component.ts @@ -63,12 +63,12 @@ export class CLNHomeComponent implements OnInit, OnDestroy { public merchantCardHeight = '65px'; public sortField = 'Balance Score'; public errorMessages = ['', '', '', '', '', '']; - public apiCallStatusNodeInfo: ApiCallStatusPayload = null; - public apiCallStatusFees: ApiCallStatusPayload = null; - public apiCallStatusBalance: ApiCallStatusPayload = null; - public apiCallStatusLRBal: ApiCallStatusPayload = null; - public apiCallStatusChannels: ApiCallStatusPayload = null; - public apiCallStatusFHistory: ApiCallStatusPayload = null; + public apiCallStatusNodeInfo: ApiCallStatusPayload | null = null; + public apiCallStatusFees: ApiCallStatusPayload | null = null; + public apiCallStatusBalance: ApiCallStatusPayload | null = null; + public apiCallStatusLRBal: ApiCallStatusPayload | null = null; + public apiCallStatusChannels: ApiCallStatusPayload | null = null; + public apiCallStatusFHistory: ApiCallStatusPayload | null = null; public apiCallStatusEnum = APICallStatusEnum; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject(), new Subject(), new Subject()]; @@ -127,10 +127,10 @@ export class CLNHomeComponent implements OnInit, OnDestroy { this.apiCallStatusNodeInfo = infoSettingsStatusSelector.apisCallStatus[0]; this.apiCallStatusFHistory = infoSettingsStatusSelector.apisCallStatus[1]; if (this.apiCallStatusNodeInfo.status === APICallStatusEnum.ERROR) { - this.errorMessages[0] = (typeof (this.apiCallStatusNodeInfo.message) === 'object') ? JSON.stringify(this.apiCallStatusNodeInfo.message) : this.apiCallStatusNodeInfo.message; + this.errorMessages[0] = !this.apiCallStatusNodeInfo.message ? '' : (typeof (this.apiCallStatusNodeInfo.message) === 'object') ? JSON.stringify(this.apiCallStatusNodeInfo.message) : this.apiCallStatusNodeInfo.message; } if (this.apiCallStatusFHistory.status === APICallStatusEnum.ERROR) { - this.errorMessages[5] = (typeof (this.apiCallStatusFHistory.message) === 'object') ? JSON.stringify(this.apiCallStatusFHistory.message) : this.apiCallStatusFHistory.message; + this.errorMessages[5] = !this.apiCallStatusFHistory.message ? '' : (typeof (this.apiCallStatusFHistory.message) === 'object') ? JSON.stringify(this.apiCallStatusFHistory.message) : this.apiCallStatusFHistory.message; } this.selNode = infoSettingsStatusSelector.nodeSettings; this.information = infoSettingsStatusSelector.information; @@ -140,7 +140,7 @@ export class CLNHomeComponent implements OnInit, OnDestroy { this.errorMessages[1] = ''; this.apiCallStatusFees = feesSeletor.apiCallStatus; if (this.apiCallStatusFees.status === APICallStatusEnum.ERROR) { - this.errorMessages[1] = (typeof (this.apiCallStatusFees.message) === 'object') ? JSON.stringify(this.apiCallStatusFees.message) : this.apiCallStatusFees.message; + this.errorMessages[1] = !this.apiCallStatusFees.message ? '' : (typeof (this.apiCallStatusFees.message) === 'object') ? JSON.stringify(this.apiCallStatusFees.message) : this.apiCallStatusFees.message; } this.fees = feesSeletor.fees; this.logger.info(feesSeletor); @@ -150,17 +150,17 @@ export class CLNHomeComponent implements OnInit, OnDestroy { this.errorMessages[4] = ''; this.apiCallStatusChannels = channelsSeletor.apiCallStatus; if (this.apiCallStatusChannels.status === APICallStatusEnum.ERROR) { - this.errorMessages[4] = (typeof (this.apiCallStatusChannels.message) === 'object') ? JSON.stringify(this.apiCallStatusChannels.message) : this.apiCallStatusChannels.message; + this.errorMessages[4] = !this.apiCallStatusChannels.message ? '' : (typeof (this.apiCallStatusChannels.message) === 'object') ? JSON.stringify(this.apiCallStatusChannels.message) : this.apiCallStatusChannels.message; } this.totalInboundLiquidity = 0; this.totalOutboundLiquidity = 0; this.activeChannels = channelsSeletor.activeChannels; this.activeChannelsCapacity = JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels, 'balancedness'))) || []; - this.allInboundChannels = JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter((channel) => channel.msatoshi_to_them > 0), 'msatoshi_to_them'))) || []; - this.allOutboundChannels = JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter((channel) => channel.msatoshi_to_us > 0), 'msatoshi_to_us'))) || []; + this.allInboundChannels = JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter((channel) => channel.msatoshi_to_them ? channel.msatoshi_to_them > 0 : false), 'msatoshi_to_them'))) || []; + this.allOutboundChannels = JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter((channel) => channel.msatoshi_to_us ? channel.msatoshi_to_us > 0 : false), 'msatoshi_to_us'))) || []; this.activeChannels.forEach((channel) => { - this.totalInboundLiquidity = this.totalInboundLiquidity + Math.ceil(channel.msatoshi_to_them / 1000); - this.totalOutboundLiquidity = this.totalOutboundLiquidity + Math.floor(channel.msatoshi_to_us / 1000); + this.totalInboundLiquidity = this.totalInboundLiquidity + Math.ceil((channel.msatoshi_to_them || 0) / 1000); + this.totalOutboundLiquidity = this.totalOutboundLiquidity + Math.floor((channel.msatoshi_to_us || 0) / 1000); }); this.channelsStatus.active.channels = channelsSeletor.activeChannels.length || 0; this.channelsStatus.pending.channels = channelsSeletor.pendingChannels.length || 0; @@ -173,15 +173,15 @@ export class CLNHomeComponent implements OnInit, OnDestroy { this.errorMessages[2] = ''; this.apiCallStatusBalance = balanceSeletor.apiCallStatus; if (this.apiCallStatusBalance.status === APICallStatusEnum.ERROR) { - this.errorMessages[2] = (typeof (this.apiCallStatusBalance.message) === 'object') ? JSON.stringify(this.apiCallStatusBalance.message) : this.apiCallStatusBalance.message; + this.errorMessages[2] = !this.apiCallStatusBalance.message ? '' : (typeof (this.apiCallStatusBalance.message) === 'object') ? JSON.stringify(this.apiCallStatusBalance.message) : this.apiCallStatusBalance.message; } this.errorMessages[3] = ''; this.apiCallStatusLRBal = lrBalanceSeletor.apiCallStatus; if (this.apiCallStatusLRBal.status === APICallStatusEnum.ERROR) { - this.errorMessages[3] = (typeof (this.apiCallStatusLRBal.message) === 'object') ? JSON.stringify(this.apiCallStatusLRBal.message) : this.apiCallStatusLRBal.message; + this.errorMessages[3] = !this.apiCallStatusLRBal.message ? '' : (typeof (this.apiCallStatusLRBal.message) === 'object') ? JSON.stringify(this.apiCallStatusLRBal.message) : this.apiCallStatusLRBal.message; } this.totalBalance = balanceSeletor.balance; - this.balances.onchain = balanceSeletor.balance.totalBalance; + this.balances.onchain = balanceSeletor.balance.totalBalance || 0; this.balances.lightning = lrBalanceSeletor.localRemoteBalance.localBalance; this.balances.total = this.balances.lightning + this.balances.onchain; this.balances = Object.assign({}, this.balances); @@ -206,8 +206,8 @@ export class CLNHomeComponent implements OnInit, OnDestroy { if (this.sortField === 'Balance Score') { this.sortField = 'Capacity'; this.activeChannelsCapacity = this.activeChannels.sort((a, b) => { - const x = +a.msatoshi_to_us + +a.msatoshi_to_them; - const y = +b.msatoshi_to_them + +b.msatoshi_to_them; + const x = (a.msatoshi_to_us ? +a.msatoshi_to_us : 0) + (a.msatoshi_to_them ? +a.msatoshi_to_them : 0); + const y = (b.msatoshi_to_them ? +b.msatoshi_to_them : 0) + (b.msatoshi_to_them ? +b.msatoshi_to_them : 0); return ((x > y) ? -1 : ((x < y) ? 1 : 0)); }); } else { @@ -218,7 +218,7 @@ export class CLNHomeComponent implements OnInit, OnDestroy { ngOnDestroy() { this.unSubs.forEach((completeSub) => { - completeSub.next(null); + completeSub.next(null); completeSub.complete(); }); } diff --git a/src/app/cln/reports/routing/routing-report.component.ts b/src/app/cln/reports/routing/routing-report.component.ts index 91041a59..7c43c82b 100644 --- a/src/app/cln/reports/routing/routing-report.component.ts +++ b/src/app/cln/reports/routing/routing-report.component.ts @@ -1,9 +1,9 @@ import { Component, OnInit, OnDestroy, HostListener } from '@angular/core'; import { Subject } from 'rxjs'; -import { takeUntil, withLatestFrom } from 'rxjs/operators'; +import { takeUntil, take } from 'rxjs/operators'; import { Store } from '@ngrx/store'; -import { ForwardingEvent, GetInfo, ListForwards } from '../../../shared/models/clnModels'; +import { ForwardingEvent, ListForwards } from '../../../shared/models/clnModels'; import { APICallStatusEnum, CLNForwardingEventsStatusEnum, MONTHS, ReportBy, ScreenSizeEnum, SCROLL_RANGES } from '../../../shared/services/consts-enums-functions'; import { ApiCallStatusPayload } from '../../../shared/models/apiCallsPayload'; import { LoggerService } from '../../../shared/services/logger.service'; @@ -11,7 +11,8 @@ import { CommonService } from '../../../shared/services/common.service'; import { fadeIn } from '../../../shared/animation/opacity-animation'; import { RTLState } from '../../../store/rtl.state'; -import { clnNodeInformation, forwardingHistory } from '../../store/cln.selector'; +import { forwardingHistory } from '../../store/cln.selector'; +import { getForwardingHistory } from '../../store/cln.actions'; import { DataService } from '../../../shared/services/data.service'; @Component({ @@ -29,7 +30,7 @@ export class CLNRoutingReportComponent implements OnInit, OnDestroy { public eventFilterValue = ''; public reportBy = ReportBy; public selReportBy = ReportBy.FEES; - public totalFeeMsat = null; + public totalFeeMsat: number | null = null; public today = new Date(Date.now()); public startDate = new Date(this.today.getFullYear(), this.today.getMonth(), 1, 0, 0, 0); public endDate = new Date(this.today.getFullYear(), this.today.getMonth(), this.getMonthDays(this.today.getMonth(), this.today.getFullYear()), 23, 59, 59); @@ -43,7 +44,7 @@ export class CLNRoutingReportComponent implements OnInit, OnDestroy { public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; public errorMessage = ''; - public apiCallStatus: ApiCallStatusPayload = null; + public apiCallStatus: ApiCallStatusPayload | null = null; public apiCallStatusEnum = APICallStatusEnum; private unSubs: Array> = [new Subject(), new Subject()]; @@ -52,27 +53,23 @@ export class CLNRoutingReportComponent implements OnInit, OnDestroy { ngOnInit() { this.screenSize = this.commonService.getScreenSize(); this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); - this.store.select(forwardingHistory).pipe(takeUntil(this.unSubs[0]), - withLatestFrom(this.store.select(clnNodeInformation))). - subscribe(([fhSeletor, nodeInfo]: [{ forwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }, GetInfo]) => { - if (fhSeletor.forwardingHistory.status === CLNForwardingEventsStatusEnum.SETTLED && (fhSeletor.apiCallStatus.status === APICallStatusEnum.COMPLETED || fhSeletor.apiCallStatus.status === APICallStatusEnum.ERROR)) { - if (nodeInfo.api_version && this.commonService.isVersionCompatible(nodeInfo.api_version, '0.7.3')) { - this.dataService.getForwardingHistory('CLN', '', '', CLNForwardingEventsStatusEnum.SETTLED).pipe(takeUntil(this.unSubs[0])). - subscribe((response: ForwardingEvent[]) => { - this.events = response || []; - this.filterForwardingEvents(this.startDate, this.endDate); - this.logger.info(response); - }); - } else { - this.errorMessage = ''; - this.apiCallStatus = fhSeletor.apiCallStatus; - if (this.apiCallStatus.status === APICallStatusEnum.ERROR) { - this.errorMessage = (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; - } + this.store.pipe(take(1)).subscribe((state) => { + if (state.cln.apisCallStatus.FetchForwardingHistoryS.status === APICallStatusEnum.UN_INITIATED && !state.cln.forwardingHistory.listForwards?.length) { + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED } })); + } + }); + this.store.select(forwardingHistory).pipe(takeUntil(this.unSubs[0])). + subscribe((fhSeletor: { forwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }) => { + if (fhSeletor.forwardingHistory.status === CLNForwardingEventsStatusEnum.SETTLED) { + this.errorMessage = ''; + this.apiCallStatus = fhSeletor.apiCallStatus; + if (this.apiCallStatus.status === APICallStatusEnum.ERROR) { + this.errorMessage = !this.apiCallStatus.message ? '' : (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; + } else if (this.apiCallStatus.status === APICallStatusEnum.COMPLETED) { this.events = fhSeletor.forwardingHistory.listForwards || []; this.filterForwardingEvents(this.startDate, this.endDate); - this.logger.info(fhSeletor); } + this.logger.info(fhSeletor); } }); this.commonService.containerSizeUpdated.pipe(takeUntil(this.unSubs[1])).subscribe((CONTAINER_SIZE) => { @@ -103,7 +100,7 @@ export class CLNRoutingReportComponent implements OnInit, OnDestroy { this.totalFeeMsat = null; if (this.events && this.events.length > 0) { this.events.forEach((event) => { - if (event.received_time >= startDateInSeconds && event.received_time < endDateInSeconds) { + if (event.received_time && event.received_time >= startDateInSeconds && event.received_time < endDateInSeconds) { this.filteredEventsBySelectedPeriod.push(event); } }); @@ -127,17 +124,17 @@ export class CLNRoutingReportComponent implements OnInit, OnDestroy { prepareFeeReport(start: Date) { const startDateInSeconds = Math.round(start.getTime() / 1000); - const feeReport = []; + const feeReport: any[] = []; this.totalFeeMsat = 0; if (this.reportPeriod === SCROLL_RANGES[1]) { for (let i = 0; i < 12; i++) { feeReport.push({ name: MONTHS[i].name, value: 0.0, extra: { totalEvents: 0 } }); } this.filteredEventsBySelectedPeriod.map((event) => { - const monthNumber = new Date((+event.received_time) * 1000).getMonth(); - feeReport[monthNumber].value = feeReport[monthNumber].value + (+event.fee / 1000); + const monthNumber = event.received_time ? new Date((+event.received_time) * 1000).getMonth() : 12; + feeReport[monthNumber].value = event.fee ? feeReport[monthNumber].value + (+event.fee / 1000) : feeReport[monthNumber].value; feeReport[monthNumber].extra.totalEvents = feeReport[monthNumber].extra.totalEvents + 1; - this.totalFeeMsat = (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee; + this.totalFeeMsat = event.fee ? (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee : this.totalFeeMsat; return this.filteredEventsBySelectedPeriod; }); } else { @@ -145,10 +142,10 @@ export class CLNRoutingReportComponent implements OnInit, OnDestroy { feeReport.push({ name: i + 1, value: 0.0, extra: { totalEvents: 0 } }); } this.filteredEventsBySelectedPeriod.map((event) => { - const dateNumber = Math.floor((+event.received_time - startDateInSeconds) / this.secondsInADay); - feeReport[dateNumber].value = feeReport[dateNumber].value + (+event.fee / 1000); + const dateNumber = event.received_time ? Math.floor((+event.received_time - startDateInSeconds) / this.secondsInADay) : 0; + feeReport[dateNumber].value = event.fee ? feeReport[dateNumber].value + (+event.fee / 1000) : feeReport[dateNumber].value; feeReport[dateNumber].extra.totalEvents = feeReport[dateNumber].extra.totalEvents + 1; - this.totalFeeMsat = (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee; + this.totalFeeMsat = event.fee ? (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee : this.totalFeeMsat; return this.filteredEventsBySelectedPeriod; }); } @@ -157,17 +154,17 @@ export class CLNRoutingReportComponent implements OnInit, OnDestroy { prepareEventsReport(start: Date) { const startDateInSeconds = Math.round(start.getTime() / 1000); - const eventsReport = []; + const eventsReport: any[] = []; this.totalFeeMsat = 0; if (this.reportPeriod === SCROLL_RANGES[1]) { for (let i = 0; i < 12; i++) { eventsReport.push({ name: MONTHS[i].name, value: 0, extra: { totalFees: 0.0 } }); } this.filteredEventsBySelectedPeriod.map((event) => { - const monthNumber = new Date((+event.received_time) * 1000).getMonth(); + const monthNumber = event.received_time ? new Date((+event.received_time) * 1000).getMonth() : 12; eventsReport[monthNumber].value = eventsReport[monthNumber].value + 1; - eventsReport[monthNumber].extra.totalFees = eventsReport[monthNumber].extra.totalFees + (+event.fee / 1000); - this.totalFeeMsat = (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee; + eventsReport[monthNumber].extra.totalFees = event.fee ? eventsReport[monthNumber].extra.totalFees + (+event.fee / 1000) : eventsReport[monthNumber].extra.totalFees; + this.totalFeeMsat = event.fee ? (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee : this.totalFeeMsat; return this.filteredEventsBySelectedPeriod; }); } else { @@ -175,10 +172,10 @@ export class CLNRoutingReportComponent implements OnInit, OnDestroy { eventsReport.push({ name: i + 1, value: 0, extra: { totalFees: 0.0 } }); } this.filteredEventsBySelectedPeriod.map((event) => { - const dateNumber = Math.floor((+event.received_time - startDateInSeconds) / this.secondsInADay); + const dateNumber = event.received_time ? Math.floor((+event.received_time - startDateInSeconds) / this.secondsInADay) : 0; eventsReport[dateNumber].value = eventsReport[dateNumber].value + 1; - eventsReport[dateNumber].extra.totalFees = eventsReport[dateNumber].extra.totalFees + (+event.fee / 1000); - this.totalFeeMsat = (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee; + eventsReport[dateNumber].extra.totalFees = event.fee ? eventsReport[dateNumber].extra.totalFees + (+event.fee / 1000) : eventsReport[dateNumber].extra.totalFees; + this.totalFeeMsat = event.fee ? (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee : this.totalFeeMsat; return this.filteredEventsBySelectedPeriod; }); } @@ -211,7 +208,7 @@ export class CLNRoutingReportComponent implements OnInit, OnDestroy { ngOnDestroy() { this.unSubs.forEach((completeSub) => { - completeSub.next(null); + completeSub.next(null); completeSub.complete(); }); } diff --git a/src/app/cln/routing/failed-transactions/failed-transactions.component.ts b/src/app/cln/routing/failed-transactions/failed-transactions.component.ts index a6cf54a1..07a90a0c 100644 --- a/src/app/cln/routing/failed-transactions/failed-transactions.component.ts +++ b/src/app/cln/routing/failed-transactions/failed-transactions.component.ts @@ -2,13 +2,13 @@ import { Component, OnInit, ViewChild, OnDestroy, AfterViewInit } from '@angular import { Router } from '@angular/router'; import { DatePipe } from '@angular/common'; import { Subject } from 'rxjs'; -import { takeUntil, withLatestFrom } from 'rxjs/operators'; +import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; -import { ForwardingEvent, GetInfo, ListForwards } from '../../../shared/models/clnModels'; +import { ForwardingEvent, ListForwards } from '../../../shared/models/clnModels'; import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, AlertTypeEnum, DataTypeEnum, ScreenSizeEnum, APICallStatusEnum, CLNForwardingEventsStatusEnum } from '../../../shared/services/consts-enums-functions'; import { ApiCallStatusPayload } from '../../../shared/models/apiCallsPayload'; import { LoggerService } from '../../../shared/services/logger.service'; @@ -17,7 +17,7 @@ import { CommonService } from '../../../shared/services/common.service'; import { RTLState } from '../../../store/rtl.state'; import { openAlert } from '../../../store/rtl.actions'; import { getForwardingHistory } from '../../store/cln.actions'; -import { clnNodeInformation, failedForwardingHistory } from '../../store/cln.selector'; +import { failedForwardingHistory } from '../../store/cln.selector'; @Component({ selector: 'rtl-cln-failed-history', @@ -31,8 +31,6 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On @ViewChild(MatSort, { static: false }) sort: MatSort | undefined; @ViewChild(MatPaginator, { static: false }) paginator: MatPaginator | undefined; - public flgCompatible = true; - public information: GetInfo = {}; public failedEvents: any; public errorMessage = ''; public displayedColumns: any[] = []; @@ -45,7 +43,7 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On public pageSizeOptions = PAGE_SIZE_OPTIONS; public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; - public apiCallStatus: ApiCallStatusPayload = null; + public apiCallStatus: ApiCallStatusPayload | null = null; public apiCallStatusEnum = APICallStatusEnum; private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; @@ -66,26 +64,18 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On ngOnInit() { this.router.routeReuseStrategy.shouldReuseRoute = () => false; this.router.onSameUrlNavigation = 'reload'; - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.FAILED, maxLen: this.pageSize, offset: 0 } })); - this.store.select(failedForwardingHistory).pipe(takeUntil(this.unSubs[0]), - withLatestFrom(this.store.select(clnNodeInformation))). - subscribe(([ffhSeletor, nodeInfo]: [{ failedForwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }, GetInfo]) => { - this.information = nodeInfo; - this.flgCompatible = (this.information.api_version) ? this.commonService.isVersionCompatible(this.information.api_version, '0.7.3') : true; + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.FAILED } })); + this.store.select(failedForwardingHistory).pipe(takeUntil(this.unSubs[0])). + subscribe((ffhSeletor: { failedForwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }) => { this.errorMessage = ''; this.apiCallStatus = ffhSeletor.apiCallStatus; if (this.apiCallStatus.status === APICallStatusEnum.ERROR) { - this.errorMessage = (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; + this.errorMessage = !this.apiCallStatus.message ? '' : (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; } - this.totalFailedTransactions = ffhSeletor.failedForwardingHistory.totalForwards; - this.indexOffset = ffhSeletor.failedForwardingHistory.offset; + this.totalFailedTransactions = ffhSeletor.failedForwardingHistory.totalForwards || 0; this.failedEvents = ffhSeletor.failedForwardingHistory.listForwards || []; if (this.failedEvents.length > 0 && this.sort && this.paginator) { - if (this.flgCompatible) { - this.loadFailedEventsTable(this.failedEvents); - } else { - this.loadFailedEventsTable(this.failedEvents.slice(0, this.pageSize)); - } + this.loadFailedEventsTable(this.failedEvents.slice(0, this.pageSize)); } this.logger.info(ffhSeletor); }); @@ -93,11 +83,7 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On ngAfterViewInit() { if (this.failedEvents.length > 0) { - if (this.flgCompatible) { - this.loadFailedEventsTable(this.failedEvents); - } else { - this.loadFailedEventsTable(this.failedEvents.slice(0, this.pageSize)); - } + this.loadFailedEventsTable(this.failedEvents.slice(0, this.pageSize)); } } @@ -130,13 +116,13 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On this.failedForwardingEvents.sort = this.sort; this.failedForwardingEvents.sortingDataAccessor = (data: any, sortHeaderId: string) => ((data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null); this.failedForwardingEvents.filterPredicate = (event: ForwardingEvent, fltr: string) => { - const newEvent = ((event.received_time ? this.datePipe.transform(new Date(event.received_time * 1000), 'dd/MMM/YYYY HH:mm').toLowerCase() : '') + - (event.resolved_time ? this.datePipe.transform(new Date(event.resolved_time * 1000), 'dd/MMM/YYYY HH:mm').toLowerCase() : '') + + const newEvent = (event.received_time ? this.datePipe.transform(new Date(event.received_time * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '' + + (event.resolved_time ? this.datePipe.transform(new Date(event.resolved_time * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + (event.payment_hash ? event.payment_hash.toLowerCase() : '') + (event.in_channel ? event.in_channel.toLowerCase() : '') + (event.out_channel ? event.out_channel.toLowerCase() : '') + (event.in_channel_alias ? event.in_channel_alias.toLowerCase() : '') + (event.out_channel_alias ? event.out_channel_alias.toLowerCase() : '') + (event.in_msatoshi ? (event.in_msatoshi / 1000) : '') + (event.out_msatoshi ? (event.out_msatoshi / 1000) : '') + (event.fee ? event.fee : '')); - return newEvent.includes(fltr); + return newEvent?.includes(fltr) || false; }; this.applyFilter(); this.logger.info(this.failedForwardingEvents); @@ -159,16 +145,12 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On } else { this.indexOffset = event.pageIndex * this.pageSize; } - if (this.flgCompatible) { - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.FAILED, maxLen: this.pageSize, offset: this.indexOffset } })); - } else { - this.loadFailedEventsTable(this.failedEvents.slice(this.indexOffset, (this.indexOffset + this.pageSize))); - } + this.loadFailedEventsTable(this.failedEvents.slice(this.indexOffset, (this.indexOffset + this.pageSize))); } ngOnDestroy() { this.unSubs.forEach((completeSub) => { - completeSub.next(null); + completeSub.next(null); completeSub.complete(); }); } diff --git a/src/app/cln/routing/forwarding-history/forwarding-history.component.ts b/src/app/cln/routing/forwarding-history/forwarding-history.component.ts index 2ca5d22d..980b1fc6 100644 --- a/src/app/cln/routing/forwarding-history/forwarding-history.component.ts +++ b/src/app/cln/routing/forwarding-history/forwarding-history.component.ts @@ -1,13 +1,14 @@ import { Component, OnInit, OnChanges, ViewChild, OnDestroy, SimpleChanges, Input, AfterViewInit } from '@angular/core'; +import { Router } from '@angular/router'; import { DatePipe } from '@angular/common'; import { Subject } from 'rxjs'; -import { takeUntil, withLatestFrom } from 'rxjs/operators'; +import { takeUntil, take } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; -import { ForwardingEvent, GetInfo, ListForwards } from '../../../shared/models/clnModels'; +import { ForwardingEvent, ListForwards } from '../../../shared/models/clnModels'; import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, AlertTypeEnum, DataTypeEnum, ScreenSizeEnum, APICallStatusEnum, CLNForwardingEventsStatusEnum } from '../../../shared/services/consts-enums-functions'; import { ApiCallStatusPayload } from '../../../shared/models/apiCallsPayload'; import { LoggerService } from '../../../shared/services/logger.service'; @@ -15,7 +16,7 @@ import { CommonService } from '../../../shared/services/common.service'; import { RTLState } from '../../../store/rtl.state'; import { openAlert } from '../../../store/rtl.actions'; -import { clnNodeInformation, forwardingHistory } from '../../store/cln.selector'; +import { forwardingHistory } from '../../store/cln.selector'; import { getForwardingHistory } from '../../store/cln.actions'; @Component({ @@ -32,9 +33,7 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi @ViewChild(MatPaginator, { static: false }) paginator: MatPaginator | undefined; @Input() eventsData = []; @Input() filterValue = ''; - public flgCompatible = true; - public information: GetInfo = {}; - public successfulEvents = []; + public successfulEvents: ForwardingEvent[] = []; public displayedColumns: any[] = []; public forwardingHistoryEvents: any; public flgSticky = false; @@ -45,11 +44,11 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; public errorMessage = ''; - public apiCallStatus: ApiCallStatusPayload = null; + public apiCallStatus: ApiCallStatusPayload | null = null; public apiCallStatusEnum = APICallStatusEnum; private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; - constructor(private logger: LoggerService, private commonService: CommonService, private store: Store, private datePipe: DatePipe) { + constructor(private logger: LoggerService, private commonService: CommonService, private store: Store, private datePipe: DatePipe, private router: Router) { this.screenSize = this.commonService.getScreenSize(); if (this.screenSize === ScreenSizeEnum.XS) { this.flgSticky = false; @@ -64,26 +63,25 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi } ngOnInit() { - this.store.select(forwardingHistory).pipe(takeUntil(this.unSubs[0]), - withLatestFrom(this.store.select(clnNodeInformation))). - subscribe(([fhSeletor, nodeInfo]: [{ forwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }, GetInfo]) => { - this.information = nodeInfo; - this.flgCompatible = (this.information.api_version) ? this.commonService.isVersionCompatible(this.information.api_version, '0.7.3') : true; + this.router.routeReuseStrategy.shouldReuseRoute = () => false; + this.router.onSameUrlNavigation = 'reload'; + this.store.pipe(take(1)).subscribe((state) => { + if (state.cln.apisCallStatus.FetchForwardingHistoryS.status === APICallStatusEnum.UN_INITIATED && !state.cln.forwardingHistory.listForwards?.length) { + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED } })); + } + }); + this.store.select(forwardingHistory).pipe(takeUntil(this.unSubs[0])). + subscribe((fhSeletor: { forwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }) => { this.errorMessage = ''; this.apiCallStatus = fhSeletor.apiCallStatus; if (this.apiCallStatus.status === APICallStatusEnum.ERROR) { - this.errorMessage = (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; + this.errorMessage = !this.apiCallStatus.message ? '' : (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; } if (this.eventsData.length <= 0 && fhSeletor.forwardingHistory.listForwards) { - this.totalForwardedTransactions = fhSeletor.forwardingHistory.totalForwards; - this.indexOffset = fhSeletor.forwardingHistory.offset; + this.totalForwardedTransactions = fhSeletor.forwardingHistory.totalForwards || 0; this.successfulEvents = fhSeletor.forwardingHistory.listForwards || []; if (this.successfulEvents.length > 0 && this.sort && this.paginator) { - if (this.flgCompatible) { - this.loadForwardingEventsTable(this.successfulEvents); - } else { - this.loadForwardingEventsTable(this.successfulEvents.slice(0, this.pageSize)); - } + this.loadForwardingEventsTable(this.successfulEvents.slice(0, this.pageSize)); } this.logger.info(fhSeletor); } @@ -92,11 +90,7 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi ngAfterViewInit() { if (this.successfulEvents.length > 0) { - if (this.flgCompatible) { - this.loadForwardingEventsTable(this.successfulEvents); - } else { - this.loadForwardingEventsTable(this.successfulEvents.slice(0, this.pageSize)); - } + this.loadForwardingEventsTable(this.successfulEvents.slice(0, this.pageSize)); } } @@ -145,8 +139,8 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi this.forwardingHistoryEvents.sort = this.sort; this.forwardingHistoryEvents.sortingDataAccessor = (data: any, sortHeaderId: string) => ((data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null); this.forwardingHistoryEvents.filterPredicate = (event: ForwardingEvent, fltr: string) => { - const newEvent = (event.received_time ? this.datePipe.transform(new Date(event.received_time * 1000), 'dd/MMM/YYYY HH:mm').toLowerCase() + ' ' : '') + - (event.resolved_time ? this.datePipe.transform(new Date(event.resolved_time * 1000), 'dd/MMM/YYYY HH:mm').toLowerCase() + ' ' : '') + + const newEvent = (event.received_time ? this.datePipe.transform(new Date(event.received_time * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() + ' ' : '') + + (event.resolved_time ? this.datePipe.transform(new Date(event.resolved_time * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() + ' ' : '') + (event.in_channel ? event.in_channel.toLowerCase() + ' ' : '') + (event.out_channel ? event.out_channel.toLowerCase() + ' ' : '') + (event.in_channel_alias ? event.in_channel_alias.toLowerCase() + ' ' : '') + (event.out_channel_alias ? event.out_channel_alias.toLowerCase() + ' ' : '') + (event.in_msatoshi ? (event.in_msatoshi / 1000) + ' ' : '') + (event.out_msatoshi ? (event.out_msatoshi / 1000) + ' ' : '') + (event.fee ? event.fee + ' ' : ''); @@ -174,16 +168,12 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi } else { this.indexOffset = event.pageIndex * this.pageSize; } - if (this.flgCompatible) { - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED, maxLen: this.pageSize, offset: this.indexOffset } })); - } else { - this.loadForwardingEventsTable(this.successfulEvents.slice(this.indexOffset, (this.indexOffset + this.pageSize))); - } + this.loadForwardingEventsTable(this.successfulEvents.slice(this.indexOffset, (this.indexOffset + this.pageSize))); } ngOnDestroy() { this.unSubs.forEach((completeSub) => { - completeSub.next(null); + completeSub.next(null); completeSub.complete(); }); } diff --git a/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts b/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts index bdfef312..ee2d0af1 100644 --- a/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts +++ b/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts @@ -2,13 +2,13 @@ import { Component, OnInit, ViewChild, OnDestroy, AfterViewInit } from '@angular import { Router } from '@angular/router'; import { DatePipe } from '@angular/common'; import { Subject } from 'rxjs'; -import { takeUntil, withLatestFrom } from 'rxjs/operators'; +import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; -import { GetInfo, ListForwards, LocalFailedEvent } from '../../../shared/models/clnModels'; +import { ListForwards, LocalFailedEvent } from '../../../shared/models/clnModels'; import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, AlertTypeEnum, DataTypeEnum, ScreenSizeEnum, APICallStatusEnum, CLNFailReason, CLNForwardingEventsStatusEnum } from '../../../shared/services/consts-enums-functions'; import { ApiCallStatusPayload } from '../../../shared/models/apiCallsPayload'; import { LoggerService } from '../../../shared/services/logger.service'; @@ -17,7 +17,7 @@ import { CommonService } from '../../../shared/services/common.service'; import { RTLState } from '../../../store/rtl.state'; import { openAlert } from '../../../store/rtl.actions'; import { getForwardingHistory } from '../../store/cln.actions'; -import { clnNodeInformation, localFailedForwardingHistory } from '../../store/cln.selector'; +import { localFailedForwardingHistory } from '../../store/cln.selector'; @Component({ selector: 'rtl-cln-local-failed-history', @@ -31,8 +31,6 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni @ViewChild(MatSort, { static: false }) sort: MatSort | undefined; @ViewChild(MatPaginator, { static: false }) paginator: MatPaginator | undefined; - public flgCompatible = true; - public information: GetInfo = {}; public CLNFailReason = CLNFailReason; public failedLocalEvents: any; public errorMessage = ''; @@ -40,13 +38,13 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni public failedLocalForwardingEvents: any; public flgSticky = false; public selFilter = ''; - private indexOffset = -1; + private indexOffset = 0; public totalLocalFailedTransactions = 0; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; - public apiCallStatus: ApiCallStatusPayload = null; + public apiCallStatus: ApiCallStatusPayload | null = null; public apiCallStatusEnum = APICallStatusEnum; private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; @@ -67,26 +65,18 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni ngOnInit() { this.router.routeReuseStrategy.shouldReuseRoute = () => false; this.router.onSameUrlNavigation = 'reload'; - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.LOCAL_FAILED, maxLen: this.pageSize, offset: 0 } })); - this.store.select(localFailedForwardingHistory).pipe(takeUntil(this.unSubs[0]), - withLatestFrom(this.store.select(clnNodeInformation))). - subscribe(([lffhSeletor, nodeInfo]: [{ localFailedForwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }, GetInfo]) => { - this.information = nodeInfo; - this.flgCompatible = (this.information.api_version) ? this.commonService.isVersionCompatible(this.information.api_version, '0.7.3') : true; + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.LOCAL_FAILED } })); + this.store.select(localFailedForwardingHistory).pipe(takeUntil(this.unSubs[0])). + subscribe((lffhSeletor: { localFailedForwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }) => { this.errorMessage = ''; this.apiCallStatus = lffhSeletor.apiCallStatus; if (this.apiCallStatus.status === APICallStatusEnum.ERROR) { - this.errorMessage = (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; + this.errorMessage = !this.apiCallStatus.message ? '' : (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; } - this.totalLocalFailedTransactions = lffhSeletor.localFailedForwardingHistory.totalForwards; - this.indexOffset = lffhSeletor.localFailedForwardingHistory.offset; + this.totalLocalFailedTransactions = lffhSeletor.localFailedForwardingHistory.totalForwards || 0; this.failedLocalEvents = lffhSeletor.localFailedForwardingHistory.listForwards || []; if (this.failedLocalEvents.length > 0 && this.sort && this.paginator) { - if (this.flgCompatible) { - this.loadLocalfailedLocalEventsTable(this.failedLocalEvents); - } else { - this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(0, this.pageSize)); - } + this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(0, this.pageSize)); } this.logger.info(lffhSeletor); }); @@ -94,11 +84,7 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni ngAfterViewInit() { if (this.failedLocalEvents.length > 0) { - if (this.flgCompatible) { - this.loadLocalfailedLocalEventsTable(this.failedLocalEvents); - } else { - this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(0, this.pageSize)); - } + this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(0, this.pageSize)); } } @@ -107,7 +93,7 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni [{ key: 'received_time', value: selFEvent.received_time, title: 'Received Time', width: 50, type: DataTypeEnum.DATE_TIME }, { key: 'in_channel_alias', value: selFEvent.in_channel_alias, title: 'Inbound Channel', width: 50, type: DataTypeEnum.STRING }], [{ key: 'in_msatoshi', value: selFEvent.in_msatoshi, title: 'Amount In (mSats)', width: 100, type: DataTypeEnum.NUMBER }], - [{ key: 'failreason', value: this.CLNFailReason[selFEvent.failreason], title: 'Reason for Failure', width: 100, type: DataTypeEnum.STRING }] + [{ key: 'failreason', value: selFEvent.failreason ? this.CLNFailReason[selFEvent.failreason] : '', title: 'Reason for Failure', width: 100, type: DataTypeEnum.STRING }] ]; this.store.dispatch(openAlert({ payload: { @@ -123,17 +109,17 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni loadLocalfailedLocalEventsTable(forwardingEvents: LocalFailedEvent[]) { this.failedLocalForwardingEvents = new MatTableDataSource([...forwardingEvents]); this.failedLocalForwardingEvents.filterPredicate = (event: LocalFailedEvent, fltr: string) => { - const newEvent = ((event.received_time ? this.datePipe.transform(new Date(event.received_time * 1000), 'dd/MMM/YYYY HH:mm').toLowerCase() : '') + + const newEvent = (event.received_time ? this.datePipe.transform(new Date(event.received_time * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + (event.in_channel_alias ? event.in_channel_alias.toLowerCase() : '') + ((event.failreason && this.CLNFailReason[event.failreason]) ? this.CLNFailReason[event.failreason].toLowerCase() : '') + - (event.in_msatoshi ? (event.in_msatoshi / 1000) : '')); - return newEvent.includes(fltr); + (event.in_msatoshi ? (event.in_msatoshi / 1000) : ''); + return newEvent?.includes(fltr) || false; }; this.failedLocalForwardingEvents.sort = this.sort; this.failedLocalForwardingEvents.sortingDataAccessor = (data: LocalFailedEvent, sortHeaderId: string) => { switch (sortHeaderId) { case 'failreason': - return this.CLNFailReason[data.failreason]; + return data.failreason ? this.CLNFailReason[data.failreason] : ''; default: return (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; @@ -160,16 +146,12 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni } else { this.indexOffset = event.pageIndex * this.pageSize; } - if (this.flgCompatible) { - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.LOCAL_FAILED, maxLen: this.pageSize, offset: this.indexOffset } })); - } else { - this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(this.indexOffset, (this.indexOffset + this.pageSize))); - } + this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(this.indexOffset, (this.indexOffset + this.pageSize))); } ngOnDestroy() { this.unSubs.forEach((completeSub) => { - completeSub.next(null); + completeSub.next(null); completeSub.complete(); }); } diff --git a/src/app/cln/store/cln.actions.ts b/src/app/cln/store/cln.actions.ts index 9b099762..f286d4d6 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, CLNForwardingEventsStatusEnum } from '../../shared/services/consts-enums-functions'; +import { CLNActions } 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 } from '../../shared/models/clnModels'; diff --git a/src/app/cln/store/cln.effects.ts b/src/app/cln/store/cln.effects.ts index 8aab50ae..710bfb1b 100644 --- a/src/app/cln/store/cln.effects.ts +++ b/src/app/cln/store/cln.effects.ts @@ -4,7 +4,7 @@ import { Router } from '@angular/router'; import { Store } from '@ngrx/store'; import { Actions, createEffect, ofType } from '@ngrx/effects'; import { Subject, of } from 'rxjs'; -import { map, mergeMap, catchError, takeUntil, withLatestFrom } from 'rxjs/operators'; +import { map, mergeMap, catchError, takeUntil } from 'rxjs/operators'; import { Location } from '@angular/common'; import { environment, API_URL } from '../../../environments/environment'; @@ -328,7 +328,7 @@ export class CLNEffects implements OnDestroy { map((channels: Channel[]) => { this.logger.info(channels); this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'FetchChannels', status: APICallStatusEnum.COMPLETED } })); - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED, maxLen: 10, offset: 0 } })); + // this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED } })); const sortedChannels = { activeChannels: [], pendingChannels: [], inactiveChannels: [] }; channels.forEach((channel) => { if (channel.state === 'CHANNELD_NORMAL') { @@ -656,57 +656,28 @@ export class CLNEffects implements OnDestroy { fetchForwardingHistoryCL = createEffect(() => this.actions.pipe( ofType(CLNActions.GET_FORWARDING_HISTORY_CLN), - withLatestFrom(this.store.select(clnNodeInformation)), - mergeMap(([action, nodeInfo]: [{ type: string, payload: FetchListForwards }, GetInfo]) => { - const status = (action.payload.status) ? action.payload.status : 'settled'; - const maxLen = (action.payload.maxLen) ? action.payload.maxLen : 10; - const offset = (action.payload.offset) ? action.payload.offset : 0; - const statusInitial = status.charAt(0).toUpperCase(); + mergeMap((action: { type: string, payload: { status: string } }) => { + const statusInitial = action.payload.status.charAt(0).toUpperCase(); this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'FetchForwardingHistory' + statusInitial, status: APICallStatusEnum.INITIATED } })); - const isNewerVersion = (nodeInfo.api_version) ? this.commonService.isVersionCompatible(nodeInfo.api_version, '0.7.3') : false; - let listForwardsUrl = ''; - if (isNewerVersion) { - listForwardsUrl = this.CHILD_API_URL + environment.CHANNELS_API + '/listForwardsPaginated?status=' + status + '&maxLen=' + maxLen + '&offset=' + offset; - } else { - listForwardsUrl = this.CHILD_API_URL + environment.CHANNELS_API + '/listForwards?status=' + status; - } - return this.httpClient.get(listForwardsUrl).pipe( - map((fhRes: ListForwards) => { - this.logger.info(fhRes); - this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'FetchForwardingHistory' + statusInitial, status: APICallStatusEnum.COMPLETED } })); - if (!isNewerVersion) { - const filteredLocalFailedEvents: LocalFailedEvent[] = []; - const filteredFailedEvents: ForwardingEvent[] = []; - const filteredSuccessfulEvents: ForwardingEvent[] = []; - (fhRes).forEach((event: ForwardingEvent | LocalFailedEvent) => { - if (event.status === CLNForwardingEventsStatusEnum.SETTLED) { - filteredSuccessfulEvents.push(event); - } else if (event.status === CLNForwardingEventsStatusEnum.FAILED) { - filteredFailedEvents.push(event); - } else if (event.status === CLNForwardingEventsStatusEnum.LOCAL_FAILED) { - filteredLocalFailedEvents.push(event); - } - }); + return this.httpClient.get(this.CHILD_API_URL + environment.CHANNELS_API + '/listForwards?status=' + action.payload.status). + pipe( + map((fhRes: any) => { + this.logger.info(fhRes); + this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'FetchForwardingHistory' + statusInitial, status: APICallStatusEnum.COMPLETED } })); if (action.payload.status === CLNForwardingEventsStatusEnum.FAILED) { - this.store.dispatch(setForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.FAILED, offset: offset, maxLen: maxLen, totalForwards: filteredFailedEvents.length, listForwards: filteredFailedEvents } })); + this.store.dispatch(setForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.FAILED, totalForwards: fhRes.length, listForwards: fhRes } })); } else if (action.payload.status === CLNForwardingEventsStatusEnum.LOCAL_FAILED) { - this.store.dispatch(setForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.LOCAL_FAILED, offset: offset, maxLen: maxLen, totalForwards: filteredLocalFailedEvents.length, listForwards: filteredLocalFailedEvents } })); + this.store.dispatch(setForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.LOCAL_FAILED, totalForwards: fhRes.length, listForwards: fhRes } })); } else if (action.payload.status === CLNForwardingEventsStatusEnum.SETTLED) { - this.store.dispatch(setForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED, offset: offset, maxLen: maxLen, totalForwards: filteredSuccessfulEvents.length, listForwards: filteredSuccessfulEvents } })); + this.store.dispatch(setForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED, totalForwards: fhRes.length, listForwards: fhRes } })); } return { type: RTLActions.VOID }; - } else { - return { - type: CLNActions.SET_FORWARDING_HISTORY_CLN, - payload: fhRes - }; - } - }), - catchError((err: any) => { - this.handleErrorWithAlert('FetchForwardingHistory' + statusInitial, UI_MESSAGES.NO_SPINNER, 'Get ' + status + ' Forwarding History Failed', this.CHILD_API_URL + environment.CHANNELS_API + '/listForwardsPaginated?status=' + status, err); - return of({ type: RTLActions.VOID }); - }) - ); + }), + catchError((err: any) => { + this.handleErrorWithAlert('FetchForwardingHistory' + statusInitial, UI_MESSAGES.NO_SPINNER, 'Get ' + action.payload.status + ' Forwarding History Failed', this.CHILD_API_URL + environment.CHANNELS_API + '/listForwards?status=' + action.payload.status, err); + return of({ type: RTLActions.VOID }); + }) + ); }) )); diff --git a/src/app/shared/components/services/loop/swaps/swaps.component.html b/src/app/shared/components/services/loop/swaps/swaps.component.html index adda0023..282b7ae8 100644 --- a/src/app/shared/components/services/loop/swaps/swaps.component.html +++ b/src/app/shared/components/services/loop/swaps/swaps.component.html @@ -2,7 +2,7 @@
- {{swapCaption}} History, {{flgLoading}} + {{swapCaption}} History
diff --git a/src/app/shared/models/apiCallsPayload.ts b/src/app/shared/models/apiCallsPayload.ts index 8e7156d8..024ed6a7 100644 --- a/src/app/shared/models/apiCallsPayload.ts +++ b/src/app/shared/models/apiCallsPayload.ts @@ -1,7 +1,7 @@ import { APICallStatusEnum } from '../services/consts-enums-functions'; export interface ApiCallStatusPayload { - status: APICallStatusEnum; + status?: APICallStatusEnum; action?: string; statusCode?: string; message?: string; diff --git a/src/app/shared/models/clnModels.ts b/src/app/shared/models/clnModels.ts index 2c8a91fc..d1ed53e9 100644 --- a/src/app/shared/models/clnModels.ts +++ b/src/app/shared/models/clnModels.ts @@ -285,8 +285,6 @@ export interface LocalFailedEvent { export interface ListForwards { status?: CLNForwardingEventsStatusEnum; - offset?: number; - maxLen?: number; totalForwards?: number; listForwards?: ForwardingEvent[] | LocalFailedEvent[]; } @@ -498,6 +496,4 @@ export interface FunderPolicy { export interface FetchListForwards { status?: string; - maxLen?: number; - offset?: number; } diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index cecb16fe..38fcade5 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -27,4 +27,4 @@ export const environment = { Web_SOCKET_API: '/ws' }; -export const VERSION = '0.12.4-beta'; +export const VERSION = '0.13.0-beta'; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 0f96f14a..922dd720 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -27,4 +27,4 @@ export const environment = { Web_SOCKET_API: '/ws' }; -export const VERSION = '0.12.4-beta'; +export const VERSION = '0.13.0-beta';